Relationship state machine. A log play (docs/useCases/network/relationshipMachine.md): Where you stand with someone, drawn as a state machine in the stately look. Each platform has its own states and moves, read from what really happens there: on X follows, groups and circles, engagements on your posts (like, reply, quote, repost, mention), the DM and the conversation; on Discord a shared server, the same channel, replies or mentions in a channel, a DM opened (by them or by you) and the conve...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Log Network Relationship Machine?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/matthewdonsemail-lab-log-network-relationship-machine)
---
name: log-network-relationship-machine
description: "Relationship state machine. A log play (docs/useCases/network/relationshipMachine.md): Where you stand with someone, drawn as a state machine in the stately look. Each platform has its own states and moves, read from what really happens there: on X follows, groups and circles, engagements on your posts (like, reply, quote, repost, mention), the DM and the conversation; on Discord a shared server, the same channel, replies or mentions in a channel, a DM opened (by them or by you) and the conversation, named with the real server and channel and who could introduce you; Instagram, Slack and the rest have their own. Every move is labelled with that platform's log tool. Someone linked across platforms shows one lane per platform, joined on them, standing where they are furthest along. The person's real history from log.db is the path taken, timestamped; where it stands now is highlighted, and"
when_to_use: "Use when the owner asks for this, in words like: \"where am I with <person>\", \"how do I reach <person>\"."
metadata:
summary: "Relationship state machine"
---
# Relationship state machine
This is the log play `network/relationshipMachine`. Before anything else, call the log MCP tool `getGuide({ useCase: "network/relationshipMachine" })`: it returns this page and makes it the session's play, so every log tool's answer says which step you are on and a send with no play loaded is refused (rules 157, 158). Then follow the steps in order.
Draft every message from that person's own thread and the owner's real replies (`voice` with no text, `search`), never from memory, and never send two that read alike (`sameAsSent`).
Where you stand with someone, drawn as a state machine in the stately look. Each platform has its own states and moves, read from what really happens there: on X follows, groups and circles, engagements on your posts (like, reply, quote, repost, mention), the DM and the conversation; on Discord a shared server, the same channel, replies or mentions in a channel, a DM opened (by them or by you) and the conversation, named with the real server and channel and who could introduce you; Instagram, Slack and the rest have their own. Every move is labelled with that platform's log tool. Someone linked across platforms shows one lane per platform, joined on them, standing where they are furthest along. The person's real history from log.db is the path taken, timestamped; where it stands now is highlighted, and the next move is the outgoing transition. The same machine shows the route to someone through the people you know, and your whole network: every state cell holds the people standing in it as avatar initials and handles, who matters most first (recent activity, fit, an open promise), with their lasting facts from log.db, the one they said and the date, waiting behind a click.
How the owner asks for it: "where am I with <person>", "how do I reach <person>".
## Run it from a fresh context
Say: **"go on docs/useCases/network/relationshipMachine.md"**. The agent reads this page and runs the steps. Nothing is sent: every step reads log.db and the Relate graph.
## The steps
| # | Step | Tool | Done when |
| --- | --- | --- | --- |
| 1 | Is there a Relate graph, and how far behind log.db | `relateStatus` {} | its event number; no graph means `relateBuild` {} first |
| 2 | One person: draw their machine with their real history and the next move | `relateMachine` { person } | the machine is shown, or the text says where they stand and the next move |
| 3 | The route to someone: you, then who could introduce you, then them | `relateMachine` { to } | the best connector is the highlighted next move |
| 4 | The whole network: the people standing in each state, who matters first, with +N more behind a page | `relateMachine` { view: "network" } | each state's cell lists its people; a click shows one person's facts, lanes and next move |
| 5 | The owner picks a move; it goes through that move's own play and gates, never from the view | the agent | the owner's yes for each send |
## What to know
- **It is a block.** `relateMachine` returns a `stateMachine` block in the `report` view, so any report can carry one too: `report` { title, blocks: [{ type: "stateMachine", states, transitions }] }.
- **In a Hermes GenUI page.** `relateMachine` { person, form: "genui" } returns the same block as JSON; pass it unchanged as one of `show_blocks`' blocks, between text and callouts that make the point. Each state's `explain` (where they stand, why, the next move) shows on the node, on hover and in the panel on a click.
- **The card map.** The same network drawn as person cards in rings from the ladders, joined by real rooms, chats and replies: `relateMap` {} returns a `networkMap` block (or its text fallback); `relateMap` { person } focuses one card and the shortest bridge to them, and each card carries why they stand there, the rooms, the lasting facts with their source and the next move. `relateMap` { form: "genui" } returns that block for `show_blocks`.
- **Light and dark** follow the host's theme; the colours, sizes and fonts all live in `src/relate/machine/theme.ts`.
- **Where the states come from:** one ladder per platform in `LADDERS` (`src/relate/machine/types.ts`). Follows and engagements come from log.db's interactions (their first time), servers, channels and groups from the graph's rooms (a channel counts once you have both written in it), replies and mentions from the graph's `REPLIED_TO` and `MENTIONED` edges either way, DMs from the first message each way, and the network map's ring when log.db has nothing else.
- **Layout:** a machine wider than the view is laid out top-down, so one person's machine never renders as a single long row.
- **The network's cells.** Each state shows up to six people as their initials and handle, ordered by who matters: recent activity, fit, and an open promise about them. `+N more` says how many are behind, and one state pages with `relateMachine` { view: "network", state, cursor } (or `log relate machine --view network --state <s> --cursor <n>`); `quiet: true` lists only those gone quiet for 14 days or more. The block stays small because a cell is a page, not the whole state.
- **A person in a cell** carries up to three lasting facts from `personFacts` in log.db (job, promises, money owed) with the message they came from and its date, their next move and every platform lane they stand on; the block's text lists each state's top people with one fact each.
- **Bots are not people.** The network leaves out what log.db knows to be automated or a system account: its own pipeline's bot verdict, a stored profile flag, a hand label, a name that says bot on a word boundary, and the platform account itself. Discord's own bot flag is written into log.db as each message is read (`markAutomatedIdentity`), so a bot stops appearing once its lines have been read. The person view still answers for them.
- **Group chats are their own room.** A Discord group DM is not a channel and not a direct chat: it never puts anyone at "Same channel", it is never read as a DM, and its name is shown without a `#`.
- **Who opened the DM** is counted for the side that did: a DM they opened from a channel or a reply counts under a transition that says "they DMed you", and the network's number for it matches the person's own machine.
- A DM you sent to someone who never wrote in it only shows once the chat lists them as a member.
- Rebuild the graph (`relateBuild`) after new conversations so the machine moves on.
## Related
- Up: [All use cases](https://github.com/matthewdonsemail-lab/log/blob/main/docs/useCases/README.md)
- [Who to talk to next](../log-network-who-to-talk-to/SKILL.md)
- [The Relate graph](https://github.com/matthewdonsemail-lab/log/blob/main/docs/relateGraph.md)
- [Design research](https://github.com/matthewdonsemail-lab/log/blob/main/docs/decisions/relateApp/research.md)