Concepts
Briefings and consequences
Nobody edits blind in rdy. Before a write, the editor gets a briefing in one call. It says what governs the blocks, what depends on them, what will go stale, and what is in flight. After a write, the response carries its consequences: what the write just affected, and what to do about each. The two close the gap in the tools, not in prompts. An agent that skips the context step cannot land a change to stable content. This doc describes both, the token that ties them together, and the form a person meets at the CLI.
The briefing
A briefing is the case file an editor gets before a write, from the MCP tool rdy_brief in the Orient group. It takes ids to cover those blocks, or path to cover every non-supporting block of a doc, or of every doc under a folder. Either also takes <doc>#<heading-slug>, which covers that section with every block under it. One briefing may cover many blocks, so a doc-wide rewrite needs one call.
To create a block, brief its parent: the parent's coverage includes new children. rdy_decide, rdy_supersede and rdy_revoke each create a decision, so brief the place it goes under. A decision at the project root needs no briefing of a parent, because the root holds no content. A briefing of the old decision does not cover a supersede or a revoke. scope defaults to the session's view, max_tokens bounds the output, and MCP tools gives the exact parameters.
- Briefing
- A briefing is the one-call case file an editor gets before a write, from
rdy_brieffor blocks, a doc, a folder or a code path. It returns what governs each covered block, what depends on it, what will go stale, open suspects, neighbors, work in flight, and the base versions with the briefing token.rdy briefis the same on the file path.
The briefing returns these sections, in this order. It also returns covers, the number of covered blocks, and omitted, a count per section when the budget cut a list.
| Section | What it answers |
|---|---|
governs | The decisions that govern each covered block, with their status, including proposed decisions "stated by you, not yet confirmed". It includes decisions that affect an entity the block describes; through names that entity. A decision cited from a linked project adds the version in force, the delivered version, newer, its tag and its live deviations. |
dependents | What depends on each covered block, following dependency edges |
will_go_stale | The blocks that turn suspect if a covered block changes, with the follow-up each would need and the covered block's literals each one states |
suspects | Open suspects on the covered blocks |
sources | The held sources that the covered blocks reflect, each with the covered blocks that reflect it |
inflight | Work in progress on the covered blocks: other views that change them, open proposals that touch them, intents on them or their area, and open tensions |
lineage | The blocks each covered block refines, supersedes or revokes, and the blocks that do so to it |
related_decisions | For a covered decision: its lineage, plus live, partly superseded and proposed decisions that affect or describe the same entities, or whose text names one. Each row says whether a link or the text relates it |
neighbors | Every section neighbor and entity neighbor of each covered block, same doc first. It pages like dependents |
neighbors_by_doc | How many neighbor rows each doc holds, over the whole list. Every page repeats it, and a cut never drops it |
findings | For a covered decision: the findings it cites with depends_on, one level deep, at most 20 in all |
reaches | For a covered decision that refines or part-supersedes another: the blocks the other decision governs, which the new decision reaches |
coverage | The coverage of the covered blocks and of each page that holds one, with their coverage issues. The briefing's confidence level with its reasons. Omitted at a past landing and in a proposal version |
links | For covered blocks that cite a linked project: one row for each cited repo, with its alias, state, last delivery and pins behind. At most 100 rows; links_omitted counts the rest |
base | The current version of each covered block, and the briefing token |
Output is compact by default and honors max_tokens. A cut drops detail, never coverage: the token always covers every requested block. A briefing on a code path answers "what design governs this file", as the agent guide describes.
A briefing over a large scope adds counts per doc. The agent pages through what the budget left out.
A briefing follows declared edges and entity links. It also lists each covered block's neighbors: the content blocks that share a section or an entity with it. A block with a declared edge can be a neighbor too. The accepted gap explains why this matters.
A briefing keeps no list of agent instructions. Until the session gets a complete rdy_instructions reply, a briefing adds one line that tells the agent to call it. That line sits outside the briefing's sections and token.
A briefing over blocks that cite a linked project shows what they rest on there. A governs row for a cited decision shows the version in force, which the covered blocks pin, and the delivered version. newer says whether the delivered content differs, with the tag and time of that delivery and the delivered statement. The row also lists each live deviation from the decision, with the deviation's statement as its reason. The token records the covered blocks' versions, whose pins hold the version in force. It never covers the delivered facts, so a delivery never stales a briefing.
The briefing token
The briefing token is the BLAKE3 hash of the sorted (block id, version) pairs over the covered blocks and every block they depend on. The dependencies follow the edges suspects follow. The token also hashes each governing route that runs through an entity, and the status of each recorded decision that is superseded, partly superseded or revoked. A missing block hashes as a tombstone. A write that creates blocks returns such a token, over the created blocks. Every write tool takes brief: <token>: rdy_write, rdy_decide, rdy_supersede, rdy_revoke, and the CLI's rdy edit.
- Briefing token
- The briefing token is the BLAKE3 hash of the sorted (block id, version) pairs over the covered blocks and everything they depend on. Every write tool takes
brief: <token>, and a briefing is current while none of those versions moved and no governing route or retired status changed. Writes to stable content must cite a current token and drafts are encouraged to; there is no editorial exemption. A write that creates blocks returns a token that covers them. The CLI fetches the briefing for humans, so they take no extra step.
A briefing is current while no recorded block, governing route or retired status has changed in the write's target view.
The briefing's base lists each covered block with its version, and depends counts the dependency blocks the token also records. A dependency is recorded, never covered: a write to it still needs its own briefing.
A write that creates blocks returns briefing: {token, covers}. The token covers the created blocks and records what they depend on, and covers counts the created blocks. A follow-up write on a created block cites it with no new rdy_brief. A create that the same write deletes does not count, and a write with no create has no briefing. A briefing covers only blocks that existed when it was taken, so an earlier token still covers no new block. rdy commit, rdy edit and rdy new print briefing: <token>.
The daemon keeps a briefing registry in memory: token to covered ids, recorded versions, the covered blocks' governing routes and the retired status of recorded decisions. It is bounded, it is not a store object, and it records no judgment. A restart loses it, and an unknown token counts as stale. The writer checks the token inside the write, against its current state, the same way the gate checks a proposal. The check is one lookup per covered block, plus a fresh read of their governing routes.
The token is an extra precondition, not a replacement for the op base. Each op still names the block version it builds on, and E_STALE_BASE still applies. A rebase that changes a covered block in a view makes every token over it stale, as any write would. Two agents that brief the same block hold two valid tokens until one writes; then the other's token is stale. A token survives any write that touches none of its blocks or their dependencies.
Enforced on stable, encouraged on drafts
A write to stable content must cite a current briefing. A write to draft content is encouraged to, and nothing is required. An op touches stable content when the block's effective lifecycle is stable before or after the op. For a create, the nearest existing ancestor decides.
A person's answer on a reaffirm card cites no token. Its card hash binds each member's version and suspects, so it stands in for the briefing.
Every op that touches stable content is covered by a current briefing.
There is no editorial exemption. A typo or clarify edit needs a briefing like any other; only a block whose type carries the presentational trait is exempt.
The briefing is cheap, and it shows whether a "typo" touches cited text. On a draft, a cited briefing that is stale gives the warning W_BRIEF_STALE in the response, and the write goes ahead. The same rule holds for a person, with the difference that the CLI fetches the briefing for them.
Refusals carry a fresh briefing
A stable write with no brief, or with a token that does not cover the block, is refused with E_BRIEF_REQUIRED. A stable write with a stale or unknown token is refused with E_BRIEF_STALE, naming the blocks that moved.
Both refusals carry a fresh briefing for exactly the blocks the write touches, and its token, so a retry with that token is one call.
An agent cannot land a stable write until it has received the briefing. A failed write changes nothing. See E_BRIEF_REQUIRED and E_BRIEF_STALE.
Consequences on every write
Every write response carries consequences, always present and empty when there are none. A consequence is one block the write affected, with what to do about it. It is the change plan delivered at write time. rdy computes it from the state after the write, on the read pool, before the reply. It never holds the writer. It honors max_tokens; a cut adds consequences_omitted with a count per kind.
- Consequence
- A consequence is one entry in every write response, with a stable id: the block affected, the kind (
suspect,dependent,conflict,tension), why, and the follow-up. It is the change plan delivered at write time, computed after the write and never stored.
- Follow-up
- A follow-up is the action a consequence asks for:
update(rewrite the dependent),confirm(it still holds; repin it),reaffirm(an accepted decision suspect on the changed block) orresolve(a conflict or tension). Aconfirmthat a refine, a part supersede or a neighbor gives needs no repin: check that the block still holds, and update it if not. Any other reach of an accepted decision givesconfirmtoo: check that it still holds, and supersede it if not; no repin is needed. Aconfirmon a superseded or revoked target needs a new link, not a repin, and itsfixsays so.
Each entry is {id, block, kind, because, follow_up}, with optional fields. id is stable, cq- and sixteen hex characters, so a plan answer can name it. because.values lists the first eight changed literals that rdy looked for, and values_omitted counts the rest it inspected. An update entry from a match adds matched: up to eight places where the block states one, by field, then line, then span. matched_omitted counts the other places it found. A confirm entry from a refine or a part supersede can carry matched as evidence, and it stays confirm.
A reaffirm entry adds fix: if it still holds, re-affirm it with a reaffirm op; otherwise supersede it. A confirm entry from a refine or a part supersede adds fix too, and so does a confirm entry on an accepted decision. So does an entry on a superseded or revoked target, and an entry for a dependent that rdy cut with no match. A kept suspect entry, for a block the write rewrote that stays suspect, adds fix and already_written: true.
| Kind | Meaning |
|---|---|
suspect | The block is newly suspect because of this write, or the write rewrote it and it stays suspect |
dependent | The block depends on a changed block or is its neighbor, and is not suspect |
conflict | The write resolved or exposed a conflict |
tension | The write opened a tension |
because.edge names the representative edge kind, and because.changed names the changed block. For a dependent or suspect entry, because.edges lists because.edge and each depends_on, conditional_on, implements, decided_by, describes, affects or reflects link to that block. A reference is listed only when it is because.edge. To answer a supersede or a revoke, change every link kind that because.edges lists. An update replaces only the link kinds it names, so a kind it leaves out still names the old decision. The write reply then lists that kept link again, with already_written: true. follow_up is one of four actions.
| Follow-up | What it asks |
|---|---|
update | Rewrite the dependent to match |
confirm | It still holds; clear the suspect with a repin. An entry from a refine, a part supersede or a neighbor needs no repin. An entry on a superseded or revoked target needs a new link instead. An accepted decision's entry needs no repin either: check that it still holds, and supersede it if not |
reaffirm | An accepted decision that is suspect on the changed block; re-affirm it |
resolve | Resolve the conflict or tension |
rdy picks the follow-up from the dependent block and the changed block. A deleted target asks update of a mutable dependent. A rejected, revoked or wholly superseded decision gets no entry, and a proposed decision gets update. An accepted or partially superseded decision gets reaffirm only when it is suspect on the changed block; any other reach gives it confirm. A decision's own affects link to the changed block gives no entry. Any other block gets update when its text states a changed literal, and confirm when it states none.
A changed literal is in the changed block's old text but not in its new text. It is a number with its unit, a code literal or an entity name. For a write in a view, the old text is both the version at the view's base and the version the write started from. A literal that the new text restores is in neither set. A supersede compares the old and new decisions' titles and statements, and a revoke compares the old ones with no text.
rdy reads at most the first 16384 bytes of a dependent, and at most 32 changed literals. A dependent that rdy cut with no match gets update.
A briefing comes before the change, so it cannot know which literals will go. Each will_go_stale row for a block that is not a decision has states: up to eight literals of the covered block that the dependent states. For a covered decision, these literals come from its title and statement only. The follow-up is update when states is not empty, or when rdy cut the dependent at 16384 bytes. It is confirm only when states is empty after a complete read. A decision dependent keeps its status follow-up, a row on a deleted block keeps update, and neither has states.
A decision that refines or part-supersedes another reaches what the other governs, because a refine changes what a ruling means without changing its text. An accepted decision that the other governs gets confirm, or reaffirm when it is suspect on the other decision. A proposed one gets update, a fully superseded or rejected one gets no entry, and any other block gets confirm. rdy gives these entries when the new decision is written. A reach's confirm entry needs no repin: its fix says to check the block, then update or supersede it if it no longer holds. The new decision's briefing lists those blocks under reaches, so an agent checks each one before it proposes.
A write also gives neighbor consequences. A write that creates, edits or deletes a content block gives each unchanged block in the same section a confirm. The blocks in the section are the other content blocks (never supporting blocks, such as decisions, questions or findings). They need only exist, so a deprecated sibling can get confirm. The entry has kind dependent, because.edge neighbor and the fix a block in its section changed: check that it still holds, and update it if not; no repin is needed.
A same-doc entity neighbor gets an entry only when it states a literal that the write removed. It then gets update, with matched and the fix update the block for the removed values. A create or a deletion gives an entity neighbor nothing. An entity neighbor that rdy cut at 16 KiB, with no match in the part it read, gets no consequence. A declared dependent in the same case gets update. A block that is both kinds of neighbor keeps confirm, with matched as evidence.
A write edits a block when a text field changes, or a reference changes its target or its label. A move, an order change, a repin, a links-only edit, a lifecycle change or a tracking-field edit gives no neighbor consequence. At propose each entry becomes a plan item with edge neighbor.
The agent reads each consequence and acts on it in the same view. It briefs on the dependent, writes the update, confirms the suspect, or re-affirms the decision. The loop between write and consequences runs as many times as the work needs. Consequences are never stored. They are recomputed from the store, like suspects, and the proposal records the answers to them. Suspects and tensions describes suspects, repin and tensions.
An entry marks its dependent already_written when the view has changed that block since the briefing. The agent confirms such a block unless its meaning changed. Two entries are exceptions, and the agent does what their follow_up and fix say. One is a kept suspect entry, as Repin describes. The other is a link that the write kept to a decision that a supersede or a revoke replaces. A ping-pong between blocks that cite each other therefore ends after one round.
A write response also carries suggestions: links that rdy proposes for what the write names. A suggestion is not a consequence, and the gate never asks for an answer to it. Links at write time describes them.
A write that changes or deletes a source gives an entry on each block linked to it by reflects, with confirm or update. Its because.edges lists reflects. A changed finding gives an entry on each decision that depends on it, with the follow-up its status gives. A change to a block gives no entry for a decision whose only link to that block is the decision's own affects link. The reach of a refine stays on direct links, never an entity that a block describes.
An accepted decision gets reaffirm only when it is suspect on the cause, and a reaffirm op then closes the item. Any other reach of an accepted decision gives confirm, such as a refine's reach, a describes link or a premise edge with no pin. A confirm plan answer records its reason and edits nothing, so the frozen decision stays as it is. In the reach of a refine or a part supersede, its fix reads a decision that governs it was refined or partly superseded: check that it still holds, and supersede it if not; no repin is needed. For any other reach, it reads a block it relies on changed: check that it still holds, and supersede it if not; no repin is needed.
Consequences on view operations and at propose
Include, exclude, replay, undo and conflict resolution return consequences too, with conflict entries whose follow-up is resolve. These operations take no brief: each included change passed the check at its own write. A resolution is an ordinary write, and it needs a briefing when it touches stable content. Canon, views and proposals describes the operations.
At propose, rdy_propose reports the consequences for canon: what the landing would make suspect, with follow-ups. They include the dependents of a decision that the proposal supersedes or revokes. The author closes or answers each change-plan item before the version is ready. The gate requires it on stable content, and on drafts it is advice, except for tension items. Nothing new surfaces after approval. A version with a blocking conflict has no consequences yet: the reply names the blocks in conflict in consequences_error. Plan answers describes the answers and the approval card.
rdy computes the change-plan items a proposal must close once, on the proposal's final state. Edits inside a view leave no answers owed; only the net effect on canon needs an answer.
A large blast radius stays workable. One answer may cover a group of change-plan items chosen by kind, follow-up, doc or edge, and a bulk repin confirms them. On stable content the bulk repin needs a justification, as a write does. A deferral records who deferred and why. The deferred blocks stay suspect in canon.
rdy_plan answers take group: {kind?, follow_up?, doc?, edge?} in place of item. The group answers every open item that matches each field it gives, with one act, and rdy records one answer per item. repin: true on a confirm group repins the matched subjects in one change, then records the answers. That change takes implements, editorial or reflects, as rdy_write does. On stable normative content a repin without one is refused before anything is written.
Change plans
A change plan is the typed, recorded to-do list that follows a change to canon, most often a decision change. Its items are update, rejustify, reaffirm, confirm, update_implementation and tension. rdy computes one per block in the blast radius, and one per file anchored to a changed, deleted or retired block. It also computes one per advisory tension that involves the version. A deferral records who deferred it and why, and a person accepts it.
- Change plan
- A change plan is the typed, recorded to-do list that follows a change, most often a decision change: update, re-justify, re-affirm, or confirm unaffected. Deferrals are recorded with who and why, and a person accepts them. It also lists the code anchored to each changed, deleted or retired block. A proposal on stable content lands only when every item except an
update_implementationitem is closed or has an accepted deferral. On drafts the plan is advice, except that eachtensionitem needs an answer.
The consequences in a write response are the same plan, delivered as the write happens. The recorded plan is the form that survives the session. It is what a superseding proposal must settle before it lands, item by item. A proposal on stable content lands only when every item except an update_implementation item is closed or has an accepted deferral. On drafts the plan is advice, except that each tension item needs an answer. Design rebase describes the two paths of a revision.
Plan items
- Plan item
- A plan item is one entry of a change plan: a kind, a cause, a subject and a stable
pi-id. rdy computes it from the proposal's final state. It closes by the version's own change or by a recorded answer.
rdy computes a plan's items, and nobody writes them. For a proposal version, rdy reads the consequences of landing it, on its final state against canon. Edits inside the view leave no items, as for consequences. For a view, rdy computes the items its changes would give on canon, so the author sees them before proposing. Conflict entries and blocking tensions are not items, because the gate covers them. Each advisory tension that involves the version is a tension item.
Each item has a cause and a subject. The cause is a block whose content the version changes or deletes, or a decision the version supersedes or revokes. For an as-built item, it can also be a decision whose built the version changes, as Decisions describes. A block it creates beside a section neighbor is a cause too. The subject is the block that must act, or a file in a linked code repo. The item id is pi- and 16 hex digits of a hash of the cause, the subject and the kind. So an item keeps its id across proposal versions, while a consequence id does not. A tension item's subject is its tension's id, and its cause is the tension's first block. Tools show it as tn- and the first 12 hex digits of the tension id.
| Item kind | From | Closes on its own when the version | Or by an answer |
|---|---|---|---|
update | A consequence with follow-up update | changes the subject's content hash, or deletes it | defer |
rejustify | A confirm consequence on a superseded or revoked target, unless the subject is an accepted decision | removes every link and reference from the subject to the retired target | defer |
reaffirm | A consequence with follow-up reaffirm | re-affirms the decision against the cause, or supersedes or revokes it | defer |
confirm | Any other confirm consequence | repins the subject, so its suspect on the cause clears | confirm with a reason, or defer |
update_implementation | A file anchored to a changed, deleted or retired block | is followed by a later commit that touched the file and cites the cause or a decision of the version | done or defer; it never blocks |
tension | An advisory tension that involves the version | changes a side, so that a canon tension its base holds is gone | confirm or dismiss, with a reason; defer does not answer it |
A computed close always wins over an answer. A recorded answer keeps the content hashes of the subject and the cause. It lapses when either one changes, as a dismissal lapses, and W_PLAN_ANSWER_LAPSED names it. A confirm item from a reach or a neighbor needs no repin, so the agent answers it confirm with a reason. So does a confirm item on an accepted decision.
An item whose subject is a block that the version deletes closes before any other rule, whatever its kind. Deleting the subject is the version's own change to it, so the item counts as answered. Its outcome is updated, and the seal keeps it with the deleted block as its subject. It never stays open, asks for an answer or raises W_PLAN_OPEN.
A briefing's will_go_stale rows forecast the plan before any change exists. A write's consequences deliver it as each write happens, and they stay advice that is never stored. The plan of a proposal version is the form that survives the session. No briefing or consequence rule changes: the follow-ups and their literal rules stay as they are.
On stable content an open item, other than an update_implementation item, makes the version not ready with E_PLAN_OPEN. On drafts an open item is advice: rdy_propose warns with W_PLAN_OPEN, and the version can still land. A tension item with no answer makes the version not ready on drafts too. At propose, a full supersede also lists the old decision's affects targets. An answer may cover a group of items by kind, follow-up, doc or edge.
A proposal version written before store format 17 has no bound plan, because no plan version names it. It has no stored assessment either, so it is not ready. Every approval path refuses it with E_PROPOSAL_NOT_READY and the issue <P-x@n> has no stored assessment. Its author proposes the view again, and the new version starts a new plan chain. rdy_plan on the old version returns plan: null with its computed items.
A decision whose only link to the changed block is its own affects link gets no item. So every reaffirm item has a suspect behind it, and a reaffirm op closes it.
Answers and deferrals
- Deferral
- A deferral is a recorded answer that leaves a change-plan item for later, with who deferred it and why. A person accepts an agent's deferral on the
defercard before the landing; a deferred code item needs no acceptance. The deferred block stays suspect in canon.
The agent answers items with rdy_plan, or with plan_answers on rdy_propose. An answer is confirm, defer, done or dismiss. confirm, defer and dismiss need a reason of 1 to 2000 characters. done is only for an update_implementation item. dismiss is only for a tension item, and defer does not answer one. The latest answer to an item wins, and MCP tools gives the shapes.
A proposal version with deferred items gets one defer card beside its batch. The card lists each item with who deferred it and why. Every approval path waits for the card's answer, with E_DEFERRAL_OPEN. When the person refuses, the version is not ready, as with a rejected decision. The queue lists it under not_ready, with no approve card. Every approval path then refuses it with E_PROPOSAL_NOT_READY, and E_VALIDATION is one of its issues. The author then closes the items and proposes again.
A deferred update_implementation item needs no acceptance and never goes on the card, because code items never block. After the landing, each deferred block that is suspect stays suspect in canon. rdy_suspects, briefings and rdy_context show the deferral beside the suspect: who, why, the landing and who accepted it. The deferral ends when the suspect clears.
Reminders, ageing and team routing of deferrals are rdyhub's. The authority policy's require names the policy role that may accept a deferral. An acceptance from a person outside that policy role fails with E_PERMISSION. With no policy, any person may accept.
The sealed plan
- Sealed plan
- The sealed plan is the change plan as the landing batch writes it: every item with its outcome, and the decisions the landing touched. It is the core record of what changed because of a decision, and never current state.
The landing batch seals the plan. The sealed version lists every item of the landed version with its outcome. The outcomes are updated, relinked, repinned, re-affirmed, retired, committed, confirmed, done, deferred, open and dismissed. A tension item seals as confirmed or dismissed after its answer, or as updated when the version's change resolves a canon tension. The seal holds the tension items the propose showed, from the version's recorded canon. An item whose subject the version deletes has the outcome updated. The seal also names the decisions the landing created, superseded, revoked, refined or re-affirmed. A landing whose version has no item and re-affirms no decision writes no plan.
The sealed plan is the core record of what changed because of a decision. It is a record of the past, like an assessment snapshot, and never current state. rdy_plan with decision lists the sealed plans that name a decision, and rdyhub builds its revision report from them.
Humans at the CLI
The rule is the same for a person, and the CLI takes the extra step for them.
rdy edit <block> fetches the briefing itself, shows it as a comment header in the edit buffer, and sends its token with the write. Comments are dropped on save. After the save it prints the consequences. A person never asks for a briefing by hand.
The working copy follows the same rule. rdy brief prints the briefing before a person edits the files, and rdy commit cites its token and prints the consequences. The working copy is for people, and agents read and write through tool calls. An agent that edits files anyway meets the same check at commit, as a safety net. "Briefings on commit" in How rdy is built describes the commands.