The order
What an order is, who writes it, which keys are read into the record, and what happens when one is missing.
_MASTER_ORDER.md — the order
What it is
The instruction one agent works from, and the record of why that work was authorized. The order is the brief: there is no second document an agent is expected to find.
Who writes it, who reads it
Written by the coordinator before the agent exists. Read by the agent, and parsed into the record — so the branch, the base and the ceilings it declares are facts anyone can audit later.
The keys that are read into the record
| key | class | what it carries |
|---|---|---|
worktree | atomic | absolute path of the worktree this agent works in — ground truth, never inferred |
branch | atomic | the branch the agent commits to |
repo | atomic | the local repository path |
base | atomic | the named base and the commit this worktree forked from — the fork point gets no key of its own |
task | prose | what this agent does. ⚠ This value reaches the merge commit's subject |
reason | prose | why this work exists |
model | vocabulary | the model displayed for this agent |
backend | vocabulary | which agent backend it is spawned on |
cap-usd | atomic | the spend ceiling |
wall | atomic | the wall-clock ceiling |
review | vocabulary | the review class — whether this stream owes a named review verdict |
capabilities | manifest | what this work requires; the older spelling requires is read as the same key |
⚠ The keys that are legal to write and read by nobody
A number of other keys are grammatical and dropped: legal in the file, and nothing downstream receives them. They are there because real orders carry them as notes for human readers — the round number, the declared quote, the actor, the machine, the workspace, the permission class, a rebase rationale, a coordinator's note, and several others.
⛔ Two of them are worth naming, because reading them as mandates is a real error:
effort— the operative value comes from the dispatch flag or your configuration. An agent reading this bullet reads a declaration, not a mandate.roleandprofile— the spawn's own record decides both. The bullet restates them for a human.
There is no state key on an order. An order does not have a state; the stream does.
What happens when a key is missing
An order with no H1 is refused (doc-h1-missing) and nothing about it is read. An order missing a
read key does not fail validation — but the fact that key carried is then simply absent from
the record, and every verb that needs it refuses later, by name and further from the cause. The
clearest example is in Pull requests and forge integrations:
a stream whose order named no repository, branch or base cannot have its local preconditions
measured at all, and that is a refusal rather than a skip precisely because a skipped check
produces a plan indistinguishable from a verified one.
An order, in the shape a real one takes
Two things in that example are deliberate and are worth copying. The order labels its own measurements as claims to be tested, so the agent knows what it is allowed to doubt — a number stated without an owner reads as physics. And contradicting the order is a completed field rather than an act of insubordination, which is what stops one author's mistake from being laundered into a merged artifact.