How rdy is built v0.51.0

System

The graph

rdy knows what affects what because every link between blocks is an edge in one in-memory graph. The graph is derived from the store, rebuilt at start-up and kept current from events. It answers the questions a briefing asks: what governs a block, what depends on it, what went stale. This page describes the graph's nodes and edges, how one graph serves canon and every view, and how areas group it. It then describes how rdy computes impact and blast radius, which edges make a suspect, and how the graph reaches into code.

Nodes and edges

The nodes of the block graph are blocks of every type. The edges have types, and every edge comes from something stored in a block or a change. Nobody declares anything to the graph itself.

Table 1
EdgeFromMeaning
containsa parent block to each childthe document tree
referencesa body to each block its refs namean inline ref, pinned to the target's version at write time
describesa block to the entity it describesa reader link
supersedes, refines, revokes, answersa decision to a decision or a questionthe decision's own links; supersedes may name a part
depends_on, conditional_ona decision to a premisethe decision's premises, pinned
decided_by, implementscontent to the decision that justifies itjustification links; store-only, never in a doc file
reflectsa content block to each source it reflectsa justification link; store-only, never in a doc file; a suspect and an impact edge, never a premise edge
affectsa decision to the blocks it governsthe decision's declared reach; the decision is also in those blocks' areas
a pack linkany block to any blocka link kind the pack defines

A pinned edge remembers the target's version at the time of the write. The pin is what makes a suspect computable later. Links and refs have their home in "Blocks, docs and folders" in the rdy documentation. A ref to a doc or a section may name a key instead of an id, and the edge still points at the block.

A second graph, the coordination graph, describes the in-flight state: who changes what, and under which intent or alternative set. rdy builds it once per published state, on first read. Its nodes are blocks, changes, proposal versions, alternative sets, intents, actors, runs and areas. Its edges come from the in-flight changes, the open proposals and the open intents. rdy_context and rdy show read it for their inflight entries.

Table 2
EdgeFromTo
authored_ina blockeach in-flight change that writes it
depends_ona changeeach change it depends on
alternative_ofa change or a proposal versionthe alternative set it is a member's work in
affectsa decision that an in-flight change writeseach area the decision is in
proposed_ina changeeach open proposal version that holds it
made_bya change, a proposal version or an intentthe run that made it, or the actor when there is no run
run_ofa runits actor
coversan intenteach block and the area it covers
under_intenta changethe intent it was written under

One graph, overlays per view

Every query takes a scope: canon, view:<name>, inflight, proposal:P-x@n, or an as-of scope tag:<version> or landing:<hash>. Canon is the base graph. Each in-flight change is a copy-on-write overlay on it, built on the same persistent maps the daemon's snapshots use. A view's graph is canon plus the overlays of the view's included changes, and inflight is canon plus every live view's changes. The graph is never rebuilt per query.

Graph overlay
A graph overlay is the copy-on-write layer an in-flight change adds on the canon graph. A view's graph is canon plus the overlays of its included changes, so the graph is never rebuilt per query.
Constraint

The graph is derived state: the store is the truth, and rdy reindex rebuilds the graph from it.

The daemon builds the graph of a scope on demand, once per published snapshot, and shares it with every read on that snapshot. A write publishes a new snapshot, and the next read of a touched scope builds the new graph. Snapshots have their home in one writer and snapshot reads.

Areas

An area is a named part of the documentation that a pack declares in an areas: section. The pack declares it as a set of folder and doc path globs. A block is in an area when its doc's path matches. A decision is also in the areas of the blocks that its affects links target. A pack glob over a folder's path declares a folder-level area, so there is no second mechanism for folders.

Area
An area is a named part of the documentation that a pack declares with folder and doc path globs. A block is in an area when its doc's path matches. A decision is also in the areas of the blocks its affects links target. Areas group blast radius and route inbox events.

rdy-standard declares no areas. A project pack extends it to add some. Areas are graph nodes, and they do three jobs: they group blast radius, they trigger area-overlap tensions when two in-flight decisions touch one area, and they route inbox events, so a session hears about landings in its areas. Packs have their home in "Blocks, docs and folders" in the rdy documentation.

YAML
areas:
  wallets:
    description: Wallets, keys and transactions
    paths: ["wallets", "wallets/**"]
  onboarding:
    description: First run and sign-in
    paths: ["onboarding/*"]

Impact and blast radius

Impact follows dependency edges from a block to everything that depends on it, breadth first, in a given scope. The edges it follows are references, depends_on, conditional_on, implements, decided_by, describes, affects and reflects. A decision that refines or supersedes the block itself is listed at depth 1 and not followed. Each hit carries its depth and the edge that first reached it, so a reader can see why a block is affected. rdy impact and rdy_impact run it, and the briefing's dependents section is the same query.

Impact
Impact is the query that follows dependency edges from a block to what depends on it, in a given scope. The briefing's dependents section is impact.

Blast radius is the computed reach of a change: the affected areas, plus everything transitively dependent on what the change touches, grouped by depth. rdy computes it, as the principles require.

Constraint

Blast radius is computed from edges; it is never declared by the proposer.

Blast radius follows declared edges only. If two blocks contradict each other and share no edge, no section and no entity, the tools do not surface it. rdy accepts that gap, because the alternative is a judgment in the gate. Briefings list each block's section and entity neighbors. Those lists, agents that link what they write, and human approval cover it, and the gap has its home in "The accepted gap" in the rdy documentation.

Computed properties

The graph computes, and never stores, a few properties of every block. A decision's status is proposed, rejected, live, partially superseded, superseded or revoked. The graph derives it from the supersedes and revokes edges that point at the decision, and never writes "superseded" or "revoked" on it. A block's governing decisions are the live decisions reached through its decided_by and implements edges, and the live decisions whose affects reaches it or an entity it describes. A block inherits its effective lifecycle from its nearest ancestor that sets one. rdy computes coverage over the graph, and "Coverage and confidence" in the rdy documentation is its home.

Every read uses these four routes: decided_by, implements, a direct affects, and affects on an entity the block describes. The consequence walk and the briefing's reaches keep direct links only.

The edges a suspect follows

A suspect is a reference or premise whose target has changed, or been superseded, since the version it was pinned to. To find suspects, the graph walks pinned edges and compares each pin with the target's current version.

Table 3
EdgeSuspect when
referencesthe target changed or was deleted
depends_on, conditional_onthe premise changed or was deleted
implements, decided_bythe decision changed or was deleted
reflectsthe source changed or was deleted
any edgethe target is a decision that was superseded or revoked, unless the citing decision re-affirmed it against the same retiring decisions

Two edges never make a suspect. A decision's own supersedes or revokes link is the cause of a supersession, not a casualty of it. A ref inside that decision's text to the same target is expected. A target that changed only in status, decided_at or lifecycle is the same content, so the pin still holds. Each suspect carries its strongest reason: revoked, then superseded, then deleted, then changed, then code_changed, which has no target.

A repin pins the edge to the target's current version; it clears the suspect and records that the block still holds. A write response's consequences name each new suspect with its follow-up. Suspects and tensions have their home in "Suspects and tensions" in the rdy documentation, and consequences in "Briefings and consequences" in the rdy documentation.

The code index

The graph reaches past the docs into code through the code index, a rebuildable block-to-file index rdy derives from a linked code repository's history. A linked code repo is named by local path in the project config. Core reads its git history and never writes git.

Each commit names the blocks it carries out in an Implements: trailer, as block ids or leaf sections. Fix-up commits carry the trailer too. The index is file level: for each file it lists the blocks the file's commits cite, with plain commit counts, and it follows renames. A lint warns on a trailer that covers more than about twenty blocks. Design wins for implements: code that disagrees with the design is flagged. The code wins for reflects: the doc names the code it follows in reflects globs, and the doc goes suspect when that code changes.

The index serves three things. rdy_brief on a code path answers "what design governs this file". A change plan lists the code anchored to each block a proposal changes, deletes or retires. Each such file appears as an explicit "update implementation" item, which never blocks. Code anchored to a decision that is still proposed is marked provisional. Batch cards show how many commits depend on the decision, and a rejection flags those files for rework. Design leads and code follows, but code may merge ahead while visibly provisional; core never enforces it.

Pull-request checks, CI against decisions and cross-repo views are rdyhub's. The agent guide covers the links from design to code.

A snapshot of How rdy is built at v0.51.0.