Terms dispatch's tests and docs use for the tools it drives. The multiplexer, the herdr TUI, the Herdr app or Rex, runs each worker's terminal and shows its tree, and treehouse keeps the pools of trees that tickets lease.
The user is a developer who owns the tickets, repos and rules dispatch runs. They approve a ticket by moving it to In Progress, and dispatch keeps a worker on it until its pull request is ready, telling the user when a ticket waits on them. The user keeps what gets built, the product questions, the rules and the merge.
- Worker time over the user's attention. A worker reads the design, the code and the docs and tries things before it asks, so the user is asked only for product calls. The user pays for the extra worker turns.
- Behavior in rules the user edits, not in Go. Dispatch supplies facts and actions, and the rules decide what to do with them, so the user can change any behavior by editing a rule. The user keeps near-copies of shipped rules in step, and an edit can remove a guarantee.
- A failed read is never an answer. When a source that other records point at cannot be read, the decisions that depend on it are held, except a source nothing else references, such as the GitHub inbox, which keeps its last good read. During a Linear or GitHub outage, tickets stop moving.
- A message goes out at most once. A nudge, notification, comment or post whose outcome was lost counts as sent and is not repeated. The user can miss a notification that never arrived.
- One slow clock, not retries. A failed step or an expired wait is picked up at the next resync, 5 minutes by default. The user waits up to one resync for a retry.
Hand a ticket to a worker. The user moves an ai ticket, or a local ticket made with dispatch ticket create local, to In Progress. Dispatch leases a tree, starts a worker on it and moves the ticket on as the pull request progresses.
Design a feature first. A design ticket moved to In Progress starts a design conversation that ends in a blueprint and build tickets. Dispatch then starts the children in order and closes the parent when they finish.
See who each ticket waits on. Each worker's workspace label starts with an emoji that says whether the ticket waits on the worker, CI, the user, the pull request's approvers or whoever merges.
Hear when a ticket needs them. A session that runs dispatch watch <ticket> gets a message when the ticket is ready, needs a human or goes idle. dispatch tell sends a worker text, dispatch tell --turn <at> answers one of its turns at most once, dispatch turn prints the turn a worker waits at and its closing message, and dispatch tick makes dispatch act now.
Keep pull requests moving. Dispatch nudges an idle worker about review comments and failing checks and escalates when nudges don't help. In a repo with auto_merge on, it merges an approved, ready pull request.
Change what dispatch decides. dispatch rules init, check and test write, lint and test the TypeScript rules that make every decision, and exempt switches a shipped rule off, or takes an action away, for a class of records.
Ask why it acted. dispatch cycle, dispatch explain <ticket> and dispatch replay show what each cycle read, what it wanted and how each action came out.
See where agents went wrong. dispatch collect-agent-failures reads the last week of Claude Code transcripts and prints the tool calls that failed, grouped by signature, the permission denials, the denials a subagent hit and whether its final report said so, the files one agent edited 5 or more times, and, from the merged PRs of the configured repos, fix chains and changed existing tests, each linked to the session that made the PR. It reports rows and counts; the fix chain table filters on a stated rule and calls no chain a regression.
Tool fake: An in-process Go state model of herdr, treehouse, gh or Linear that refuses what the real tool refuses. Avoid: shell fake, mock, stub
Port:
An interface dispatch owns and names for a tool's role (treehouse.Pool, herdr.Multiplexer), implemented by a real adapter and a tool fake.
Avoid: domain interface (ADR 0001 and older designs use it for the same thing), client interface
Multiplexer:
The product that runs the workers' terminals and shows them: the herdr TUI, herdr-core with the Herdr app as its window, or Rex. [plugins.herdr] host picks one of the first two, writing [plugins.rex] picks Rex, and dispatch drives only one.
Avoid: host (reads as a machine), backend
Stream: A multiplexer's report, as it happens, of each pane whose agent may have changed. Dispatch reads the pane again to learn what changed. A change on the stream only asks for a pane read, and that read is the source read an Event names. A change about a pane that holds no worker reads nothing. Only Rex has one. Avoid: event stream, watcher, subscription
Pane read:
A read of the panes a stream named, one AgentAt each, that rebuilds only the workers on them and lands like any other read.
Avoid: partial refresh, event apply
Real adapter: The production implementation of a tool's port, which invokes the installed tool. Avoid: CLI wrapper, client
Contract scenario: One situation run against both a tool fake and the real adapter, which must give the same outcome. Linear's scenarios run against the tool fake only, because the drift check never touches a Linear account. Avoid: shared test, conformance test
Drift check:
The contract scenarios run under -tags drift against the installed herdr and treehouse, in a throwaway dispatch-drift-* session and pool, against the installed hc on a scratch core (own HC_SESSION, scratch XDG paths, a /tmp socket), never the user's core, and against the installed Rex on a scratch Rex server. It never touches a GitHub or Linear account. It also runs the drift tests that have no fake to compare: the flags dispatch passes to gh against the installed gh's --help, and the launcher's commands against the installed tools. Two launcher drift tests (internal/launcher/commands_drift_test.go) launch a worker on a real, logged-in Claude and check that the kickoff and slash nudges record as sent by dispatch, one in a throwaway herdr session and one with [plugins.herdr] host = "app" on a scratch core. The app run also checks that the Worker label dispatch.session is the session id in Claude's transcript and that the worker's Stop reached its Stop record; a hook that cannot find its terminal through HC_TERMINAL_ID shows up as a timeout waiting for the worker's first turn. It also checks that the hooks' environment names the scratch core. Each spends a few short Claude turns.
Avoid: integration test, live test
Stand-in claude:
A Go program the drift check starts in place of Claude, which shows the startup prompts and reports its state to whichever multiplexer runs it.
Avoid: fake claude (that name belongs to the scripts/shims/claude test)
Repo settings:
A [repos.<label>] table in config.toml, holding a repo's path and every per-repo setting. A table with only path behaves as dispatch did before per-repo settings.
Avoid: repo config, repo entry
Listed author:
A GitHub login in a repo's ignore_comment_authors. Dispatch and the worker act as if nothing it posts exists.
Avoid: bot, ignored bot (some bots, such as CodeRabbit, are not listed and still count)
Optional check:
A check GitHub does not mark required for merging the PR. It never counts in a repo with ignore_optional_checks = true.
Avoid: non-blocking check, flaky check
Approval check:
A check that passes only after a human approves the PR, such as "Mergify Merge Protections". A repo names them in approval_checks, and they count for nothing, so a draft waiting for review is still ready.
Avoid: gate, blocking check
PR phase:
Draft or open, read from GitHub's isDraft on every resync.
Avoid: PR state (GitHub's state is OPEN for a draft too)
PR review:
A session's report, made with dispatch review start, that it is reviewing one head of an In Review ticket's PR. It shows 🔍 until dispatch review done, a push, or an hour.
Avoid: review alone (a GitHub review posted under the owner's login, which pr.approved reads)
Review question: A review or comment that asks rather than claims. The worker answers a question about what the code does, and sends a question needing a product decision to the user. Avoid: review claim (a claim asserts something to check)
- Each port has one or more real adapters (the multiplexer port has three, one for the herdr TUI, one for herdr-core with the Herdr app and one for Rex) and one tool fake, and every contract scenario runs against both, except Linear's, which run against the fake only.
- The drift check runs the scenarios against the real adapter only, and does not run Linear's.
- Every ticket belongs to exactly one Ticket system, and its id's prefix says which.
- A Local ticket has one status, and each status carries any number of Jobs.
todo,in_progress,in_review,needs_human,close_parentandblocker_doneeach belong to exactly one status,finishedandpausedto any number. - A Ticket has any number of Attributes. A Local ticket has at most one Start PR.
- A Start PR is never its ticket's PR and writes no Stack record.
- The local ticket store is not a Port: it has no Tool fake, and tests run it on a temp file.
- A Stacked ticket has exactly one Stack parent and one Stack record until a Restack removes the record.
World: What the sources say right now, held in memory and updated by each read. Every value in it is a fact. Avoid: state, store, snapshot (a snapshot is the world written at the head of a history segment)
Fact:
One value in the world, with the time it was first seen at that value (its since), or unknown.
Avoid: field, property
Unknown:
A fact whose read failed or came back cut short, such as a PR's ready and waitingOn while GitHub is still computing whether a PR whose last read was ready merges cleanly. A whenever rule that reads one holds for that record, and an on rule drops its event, so a failed read never counts as "no". A failed inbox read is the exception: it keeps the last good items known, because nothing else points at an inbox item. A failed read of a clone's remote follows it and keeps that clone's last good repo. A failed read of local tickets makes local ticket records unknown and leaves Linear's alone, and the reverse, because worker, tree and PR records point at tickets of both systems.
Avoid: missing, empty, null
Cycle:
One run of every rule over the world and the ledger, after an event. It gives what dispatch wants now, what waits for a slot, and what is held and why. dispatch rules check runs one against the world as it is now. dispatch cycle prints the latest recorded one.
Avoid: plan, pass
Once key: The value a rule gives each action, naming what must change before the action runs again, such as a comment time or a PR head. The ledger runs an action once per key. Avoid: dedupe key, idempotency key
Event:
Anything telling dispatch something changed: a source read that differs from what it knew, an action's result, the resync, dispatch tick. Each event runs a cycle.
Avoid: notification (a notification tells a follower), trigger
Resync:
The 5-minute event that re-reads every source (Linear, local tickets, GitHub, the GitHub inbox while a rule runs over it, the multiplexer, treehouse and Stop records) and runs a cycle. It is the only clock rules wait on, so a wait ends up to 5 minutes after its deadline.
Avoid: tick (dispatch tick forces one early), poll interval
Ledger: What dispatch did, one receipt per action, keyed by the action's once key. A rule asks it whether an action already happened. Avoid: log, history (history is the segment files the ledger is written to)
Receipt:
The ledger's record of one action: key, rule, outcome (done, refused, failed; absent while attempted), detail, times. A failed launch whose detail starts "interrupted: " ended after dispatch was asked to stop; dispatch explain shows its state as interrupted and the launch-failure rule does not count it.
Avoid: result, audit entry
Executor: Starts each action a cycle wants whose once key the ledger doesn't cover, off the loop, and reports how it ended. The loop writes the receipt. Avoid: runner, worker (a worker is the ticket's place on its tree, where its Claude sessions run)
Command:
A message to a worker that starts with /name, as the session took it, recorded with its arguments (cut at 1KB), the time and whether a person or dispatch sent it.
Avoid: prompt, message (both include text that isn't a command), skill (a skill the model loads by itself is not a command)
Turn: One reply a worker's session finished, ending in a Stop, with whether a background task was still running. A turn is named by the time it ended. A worker is in a turn while the multiplexer reads it working, its session has taken a message since its latest Stop, or that Stop left a background task running. Avoid: stop (a Stop record keeps only the latest turn)
Closing message:
The last thing a worker said in a turn, as the harness reports it at the Stop. Dispatch keeps it in the worker row, cut at 64 KiB, and deletes it with the row when the tree is returned. dispatch turn prints it.
Avoid: transcript (Claude's own file), last message
Decision comment:
The ## Decision comment a manager posts on the ticket that asked, naming the turn it answers.
Avoid: answer, reply
Session log:
The file of one worker session's commands, other messages (each only its time, and whether it is a task notice), asks (each only its time) and turns, appended by the running dispatch from the hooks' reports and dispatch ask, and read by the world.
Avoid: transcript (Claude's own file), history (dispatch's segments)
Transcript:
Claude Code's own JSONL file of one session, under ~/.claude/projects/<encoded directory>/<session>.jsonl, with each subagent's under <session>/subagents/. Dispatch reads transcripts for dispatch collect-agent-failures and never writes them.
Avoid: session log (dispatch's own file of a worker session)
Agent failure:
A tool call whose result Claude Code marked is_error, as dispatch collect-agent-failures counts it. A permission denial is one kind, and the command reports denials in their own table. A result that only reads like an error is not one. The command also reports files edited 5 or more times, which are successful calls, not agent failures.
Avoid: error (any error text), mistake (a judgment the command does not make)
Fix chain:
A pair of merged PRs in one repo where the later one, merged within 30 days of the earlier one, changed lines the earlier one wrote, by git blame at the later PR's merge base. Lines in tests and generated files don't count. dispatch collect-agent-failures prints the reverts and the Bug tickets where the earlier PR wrote at least half the later PR's deleted lines, a threshold no one has validated, and --json keeps every pair.
Avoid: regression (a judgment the command does not make)
Changed existing test:
A Go test function that existed at a PR's merge base and that the PR modified or deleted, which usually means behavior changed. CI labels an open PR that has one changes-existing-tests.
Session link:
The Claude Code session that made a PR: the one whose transcript holds a successful gh pr create that printed the PR's URL, or else the only session that ran on the PR's branch. A PR neither proves is "not proven", and one that merged before the oldest transcript record on disk is "not on disk". A commit SHA a session mentions proves nothing.
Ask:
A worker's statement, made by running dispatch ask, that it needs the user. The worker is asking from when it is next idle until its session takes a message from a person or from dispatch, or ends. It moves no ticket.
Avoid: Needs Human (the status dispatch moves a ticket to when it escalates), blocked (a question popup)
Task notice: A message a session takes because one of its own background tasks finished. It starts a turn and ends no ask. Avoid: message (a task notice is one, but nobody sent it)
Send record: The text of a slash command dispatch is about to send to a worker's session (a nudge) or type into its pane (a kickoff), kept so the session log can tell dispatch's commands from a person's. Avoid: ledger entry, receipt (both are in history)
Workspace emoji:
The first word of a worker's workspace label (under Rex, of its window label, which reads <emoji> <ticket> <title>). It says who the ticket is waiting on: the worker (🟢), CI (🟡), you (👀, 💤 or 🔴), a session reviewing the PR (🔍, a PR review), a PR's approvers (⏳), whoever merges the PR (🔀, you when auto_merge is off), or nobody (⏸️). In a repo with open_pr_as = "draft", a ready draft is 👀, and once you open it the PR is ⏳ until its head is approved and 🔀 after. worker-states.md lists every state, its emoji, and what dispatch does in it.
Avoid: status icon, status
Workspace: The multiplexer's place showing a worker's tree: a herdr TUI workspace, a Herdr app space whose id dispatch derives from the tree, or under Rex the window showing the tree in its repo session, with an id built from the repo session's label and the tree. Code and docs say workspace, and the word window stays inside the Rex adapter, as the app's word space stays inside the app adapter. The first word of its name is the workspace emoji. Avoid: space (the app's word, kept inside the app adapter), window
Worker label:
The multiplexer's record of whose worker a terminal is. Under the app host it is dispatch.* key=value pairs on the terminal (dispatch.tree, .session). Rex has no key-value labels, so the block's label holds dispatch <claude session id or -> <first 8 characters of the server's instance id> <tree>, at most 128 characters, which limits a tree to 73. It is distinct from the workspace and tab labels the loop renames (the workspace emoji), and from Unknown, which is a fact whose read failed, not the agent status unknown.
Avoid: tag, metadata
Repo session:
The Rex session dispatch runs a repo's workers in, labeled with the folder name of the repo's main checkout. A launch creates it when no session has that label. A close leaves it, unless [plugins.rex] delete_empty_sessions is on and the close removed a worker and left nothing else in it (no block of the user's or another worker's, and none outside every window), which deletes it.
Avoid: workspace, project, Rex session (any session, the user's included). Elsewhere session means one harness run inside a worker, so say repo session in full for the Rex object.
Structure lock:
The file lock rex.lock in dispatch's state directory, held while dispatch changes Rex sessions, windows or worker blocks, so two launches on one tree leave one worker.
Avoid: start lock, mutex
Pane record:
The file panes/<Rex session id>/<block id>.json in dispatch's state directory, naming the Claude session running in one of the user's own Rex panes, its working directory and the Rex server process it was written under. The plugin's SessionStart and Stop hooks write it, the SessionEnd hook removes it when the user quits the session, and dispatch rex restore reads it to resume the session in the same pane after a Rex restart. A worker's pane has none, because its Worker label already holds its session.
Avoid: snapshot (the world written at the head of a history segment), saved session, restore file
Worker:
The ticket's place on a tree it holds: the tree, the workspace showing that tree, and the harness session running there now, if any. Only a session of a harness dispatch has an adapter for counts; an agent of another kind a person opened in the workspace, such as a Pi, is ignored. Sessions come and go inside it: a relaunch keeps the same worker, with a new session or the earlier one resumed, and the worker lasts as long as the ticket holds the tree. A worker row exists from the start of a launch, before the ticket holds a tree, and a row with no tree is not yet a worker to a rule. A lease no worker row names is no worker either. A ticket has one worker per repo, so a ticket that holds trees in two repos has a worker on each. The worker's state is its session's: working, idle, blocked, or none when no session runs there. A worker can also be asking (see Ask), which is a fact beside its state and not a state. A rule that looks up a ticket that holds no tree gets a worker record with state none, though there is no worker. Some messages use "worker" for the session: "has no worker" and "gone" mean the state none, and "a worker is running" means a session runs there.
Avoid: agent (herdr's word for any terminal agent, kept inside the herdr adapter; dispatch's word is harness), runner, executor, session (a session is one harness run inside the worker)
Worker row:
The database's record of a worker: its ticket and repo, its tree, its kickoff record, its Stop records and closing messages. A resync deletes a row whose tree no longer holds the ticket's lease and writes worker_gone to history.
Avoid: worker record (what a rule reads, built from the worker row and live reads), lease
Branch row: The database's record of a ticket's branch in one repo, with its stack record when stacked. A launch writes it before it leases a tree, marked "not created yet" until a read shows the branch exists. A resync deletes the row of a gone branch once no ticket system lists its ticket. Avoid: branch binding, branch record
Import marker: The database's note, per repo, that the git config keys and leases an earlier dispatch kept were copied in, with the branches whose keys are still to be unset. A repo with no marker holds its launches and reads its stack records as unknown. Avoid: migrated flag
Tree:
A git worktree in a repo's treehouse pool, leased or not; a rule reads which from its leased fact. A ticket leases one and holds it under the ticket id until it is returned.
Avoid: worktree and checkout (the tools' words, used inside the tool adapters and for a plain git worktree of a repo), lease (the lease is the holding, not the tree), slot (room in the pool)
Harness:
The program that runs in a worker's session, such as Claude Code, which is the only one dispatch drives today. Every harness receives follower messages, so an adapter that cannot is not a harness dispatch drives. A harness table pairs a harness kind with a model. A kind is the name config.toml gives the program, such as claude-code; herdr detects the same program under its own agent kind, such as claude.
Avoid: agent (herdr's word, kept inside the herdr adapter), tool (the tools are herdr, treehouse, gh, Linear), model (a harness runs a model)
Harness table:
A [harness.<name>] table in config.toml, named everywhere as harness.<name>. A rule passes that name to queueLaunch; worker and design in [rules] or [repos.<label>] name the table the shipped rules use for build and design workers.
Avoid: profile, role (a role is only which of worker / design a ticket's launch reads)
Program (herdr):
What the multiplexer runs in a worker's new tab, as a harness describes it: a name for messages, the herdr agent kind, arguments, directories put ahead of PATH, tab environment, and the startup screens (dialogs to answer, the unrun launch command, the output that shows it ran, the ready input box) and the session id the launch chose, which each adapter passes with the harness's session flag (Claude: --session-id), and the flag that resumes an earlier session (Claude: --resume), which Core uses after a herdr-core restart and the Rex adapter uses when it starts a worker on a tree it did not just lease, and that tree's worker block dates from an earlier Rex server and its program has not exited.
Avoid: command line, launch spec
Launch:
A launch leases a tree for the ticket, creates the ticket's branch (at another ticket's PR head for a stacked launch, or at a local ticket's start PR head), opens a workspace, starts the harness and types the kickoff. Into a resumed session that already took that kickoff it types the carry-on message instead (see Kickoff). A launch records the worker in the database before each step it takes, so a launch that dies is carried on by the next one. A relaunch is a launch on a tree the ticket already holds. The launcher is the code that does it. Only a launch action inside dispatch run launches, and there is no dispatch launch command.
Avoid: spawn, start (starting the harness is one step of a launch)
Kickoff:
The first command a launch types into the worker's new session, /dispatch:build <ticket> unless the rule names another. A relaunch whose harness resumes the session named in the kickoff record types the carry-on message, a short message telling the worker to carry on, in place of the kickoff when the record has the same text and shows that session ran it: the record is closed, is marked taken (the session ran the kickoff before an earlier carry-on message, which is not yet confirmed), or has a Stop of that session after the record's time. The session is already in the middle of that job. A kickoff the session was never sent, such as a restack, is typed. Either way the launch confirms the text ran as it does a kickoff, and writes the kickoff record with the kickoff's text, not the carry-on message's. The kickoff record is part of the worker row. It holds the text, the time and the session that received it, is open until its launch finishes or the workspace is closed, and is deleted at the return. An open kickoff record with no Stop since means what the launch typed has not run, and the worker is unconfirmed.
Avoid: initial prompt, first message
Stacked ticket: A ticket whose branch the launcher started at another ticket's PR head instead of the default branch, so it is built and reviewed before that ticket merges. Avoid: dependent ticket, child (a child is a piece of a Linear parent)
Stack parent: The ticket whose PR head a stacked ticket's branch started from. Avoid: parent (a Linear parent ticket), base ticket
Stack record:
The stack parent and fork point, held in the stacked ticket's branch row as one value. The launcher writes it with a branch it is about to create, and the worker ends it as the last step of a restack with dispatch ticket branch <ticket> --unstack. Rules read it as t.stack.
Avoid: stack state, stack metadata
Ticket branch:
The branch a ticket's work is on, named by its branch row. A launch writes the row before it creates the branch. A branch renamed or deleted by hand is not followed: dispatch warns at each resync and refuses to launch the ticket with branch_missing until dispatch ticket branch <ticket> <name> records the new name. The ticket system's name for the branch is only the first guess for a ticket with no row, since Linear writes the id followed by a title that changes or gets cut short.
Avoid: launched branch
Fork point: The commit a stacked ticket's branch started at, the stack parent's PR head at launch. Avoid: merge base (git computes that, and it moves)
Restack: Moving a stacked ticket's own commits onto the default branch after its stack parent merged, and pointing its PR there. A worker does it when a rule tells it to. Avoid: rebase (the git step), retarget (one step of it)
Nudge:
Text dispatch delivers to a worker's session as a message through its harness, never typed into the pane. A nudge that fails sent nothing. A rule's nudge is wanted again at the next cycle, and a failed dispatch tell is reported to its caller. Dispatch sends no nudge to a blocked session, to one whose status the multiplexer reports as unknown, or to a worker whose session id the multiplexer does not report yet.
Avoid: notification (that goes to you), prompt
Close: Closing a worker's workspace, which ends its session and keeps its tree, so a relaunch can start a new session in the same worker. See Return for when the tree goes back. Avoid: kill, stop (a Stop is a turn ending)
Return:
Giving a tree back to its treehouse pool once no worker runs in it, unless its ticket is In Progress or In Review (a relaunch resumes in the tree that holds the lease), or is a Todo child of an In Progress parent that is not a design ticket (a held tree marks the child paused on purpose). dispatch closes the workspace on the tree, deletes its untracked files, and returns it with its uncommitted changes discarded. The ticket's branch and its commits stay, pushed or not, because treehouse returns a tree by detaching HEAD. Before a return that discards anything, dispatch comments on the ticket naming the branch and what is discarded. A rule's return without discard: true is refused instead while the tree has uncommitted changes or commits that no remote has. Either way a return is refused when an untracked nested repository survives the deletion (git clean skips it, and a return would discard it), and the refusal's detail says why. A return is refused for a tree no worker row names. It deletes the tree's session logs, and after the return the worker row with its Stop records, closing messages and kickoff record. A Stop that ended before a worker row was made is ignored, so a Stop reported late never reaches the next worker in the tree.
Avoid: free, delete (the untracked files are deleted, the tree is not)
Action:
One thing a cycle wants done, such as a launch, nudge, move or merge, named by the name its receipts carry, in rules and rule scenarios too, and carried out by the executor. A nudge, notify, comment, post or create is not safe to retry: when its outcome is lost it may already have gone out, so it counts as sent and never runs again.
Avoid: task, job, and the tool-named spelling such as herdr.launch (from before ADR 0003; a receipt's kind field holds the action's name and keeps its field name)
Notification:
Telling the sessions following a ticket that something happened on it, such as Needs Human, a worker asking a question, a ready PR or a worker going idle (💤). It goes to each follower as a message. A ticket nobody follows gets no notification, only its Linear status. A message about dispatch itself (Linear has more tickets than one page, GitHub rate-limits the PR reads, a rule threw or ran out of time, dispatch stopped) goes to every following session, once each.
Avoid: notice, event (an event tells dispatch; a follower's message still starts with dispatch event, which sessions act on), nudge (a nudge goes to the worker)
Inbox item:
One entry in the dispatch owner's GitHub notifications inbox, as GitHub lists it: why GitHub sent it (review_requested, mention, ...), the repo, and the PR or issue it's about. While a loaded rule runs over them, the world holds the newest 50, read on every resync. Not the loop's inbox channel or a session's inbox socket.
Avoid: notification (that means dispatch telling a follower)
Follower:
A session of a harness dispatch can deliver to that ran dispatch watch on a ticket and gets its notifications as messages through that harness. The address dispatch delivers to is the follower's session id. Followers live in the running dispatch process and end at a restart. The loop's warnings say "session", not "watcher socket".
Avoid: subscriber (dispatch subscribe is gone)
Loop:
The reconcile loop dispatch run keeps going: one goroutine that takes one event at a time and runs a cycle after each. Reads and actions run off it.
Avoid: supervisor, daemon, dispatcher (the whole program)
Memory:
What the world remembers across a restart (world.Memory): each fact's value and its since, keyed by record kind, id and field, and each ticket's previous status, waiting time, pool returns and children. Each cycle carries it forward, and a fact keeps its since only while the same key holds the same value.
Avoid: state, cache, "held in memory" (the World entry's sense, meaning the running process)
History:
The segment files dispatch writes under [history].dir. A segment is one events-<time>.jsonl file: a header with the config and rules it ran, a snapshot of the memory and ledger before it, then every event, read, change, cycle and receipt. dispatch run loads the newest segment at start.
Avoid: log, journal (the tool fakes' record of calls)
Record: One thing a rule reads: a ticket, PR, worker, tree, escalation, inbox item or the dispatch record, built from the world and the ledger each cycle. Elsewhere "record" keeps its plain sense, as in a Stop record, a send record, a kickoff record, and a receipt (the ledger's record of one action). Avoid: object, entity, fact (a fact is one value in the world, such as a ticket's status)
Replay:
Running the cycles in a stretch of history again, over the world and the ledger each one ran over, and comparing each with what the live run decided (dispatch replay).
Avoid: rerun, simulation
Explain:
dispatch explain <ticket> prints, from saved history, each cycle that changed what the rules decided for the ticket, what they read, and each receipt. With --json it prints each of those lines as one JSON object.
Avoid: trace (it follows nothing live), log
Escalation: A ticket dispatch moved to Needs Human, with the reason and how the move and its comment came out, read from the ledger's escalate receipts. Avoid: Needs Human (that is the status an escalation moves the ticket to)
Rule scenario:
A case in a *.test.ts file that dispatch rules test runs. It sets up a world, changes it step by step, and says what the cycle after each step wants.
Avoid: contract scenario (a tool fake against its adapter), unit test
Stop record:
The latest turn end of each worker session, from the harness's report through dispatch record-stop, which finds the harness from the terminal the hook runs in (HC_TERMINAL_ID under the Herdr app, HERDR_PANE_ID under the herdr TUI, REX_SESSION with REX_BLOCK under Rex), saying whether background tasks were still running. It is kept in the worker row and deleted with it at the return. A report for no worker is dropped, and a turn end from before the worker row was made is ignored.
Avoid: stop file, turn (the session log keeps every turn)
Ticket system:
Where tickets come from and are written back: Linear, or dispatch's own local tickets. A ticket's id says which: LOC- starts a local ticket's. dispatch ticket create takes the system's plugin name (linear or local) first, because a new ticket has no id yet, and every other verb finds the system from the id.
Avoid: source (what the world reads), tracker
Local ticket:
A ticket in dispatch's own database dispatch.db, beside the branch and worker rows, id LOC-<n>, which only the holder of dispatch.lock opens for writing. dispatch ticket reaches it through the running dispatch run; dispatch rules check and dispatch state reset read it without writing, under the lock or by asking the running dispatch run. Numbers count up and are never reused, and nothing deletes a ticket.
Avoid: internal ticket, offline ticket
Attribute:
A key-value pair on a ticket, beside its labels, that a rule reads as t.attributes. A local ticket stores them and dispatch ticket list --attr matches them. A Linear ticket writes them in its description, one key: value per line under an ## Attributes heading. dispatch ticket create <system> --attr and dispatch ticket edit <id> --attr set them on either system.
Avoid: field, property (both name a fact), metadata, tag
Start PR: A PR a local ticket names, whose head the ticket's own branch starts at. Avoid: base PR, stack parent (a ticket a branch is stacked on)
Job:
What dispatch does with a status: todo, in_progress, in_review, needs_human, close_parent, blocker_done, finished or paused. A local ticket database keeps each status with its jobs.
Avoid: status key (the rules' status value), role, and "job" for an action (an action is what a cycle wants done)