Agent guide
As-built status and sources
Load this ruleset when you ship work, or set built, sources or code links.
As-built status
Each decision has a built field: planned, the first release version that ships it, such as 0.41.0, or none for a ruling that needs no content. A new decision starts planned, or none when it has needs_content: false. A content block takes its status from the decisions it cites through decided_by or implements: planned, since a version, or unversioned. rdy_read, rdy_context, briefings and rdy show show it. A public publication hides planned content.
- Write content for a decision that is not built yet. It stays planned, and public renders hide it until the decision is built.
- When the work ships, set
builton the decision to the release version. Do it in the docs round after the merge, in the same write that turns the planned text into built text.builtis a tracking field: on an accepted decision, the edit needseditorial. - Set a block's own
planned: trueorsince: <version>only when its decisions give it the wrong status. While the override disagrees with them, writes andrdy showgiveW_AS_BUILT_OVERRIDE. Remove the override, or confirm its as-built plan item (edgebuilt) with a reason. After the confirm lands, the warning stops until the override or the decisions'builtchanges. - Before a release, run
rdy_publication_check {profile, release: "<version>"}(CLI:--release).blockedmeans that shown content or a shown decision ships in a later version, or that shown content refers to hidden planned content. Fix each one before the tag: set the rightbuilt, or hide the content.
What does not show the status. Read the block when you need its status.
rdy_queryrows carry no as-built status.- The plain-text
rdy briefshows neither the status norW_AS_BUILT_OVERRIDE. Userdy brief --jsonorrdy show. - A briefing leaves out
as_builton an unversioned block.rdy_readandrdy_contextkeep it. - A profile with
planned: markshows planned blocks, and the release check does not count them. On anorgprofile, a reference to hidden planned content only warns. - An
instructionblock takesplannedandsince, butrdy_instructionsdelivers every landed instruction, whatever its status.
Sources, findings and code
A source block (S-…) names a release, commit or spec. Its fields are title, kind (release, commit or spec), locator and an optional version. A finding block (F-…) states what surfaced, in statement, with 1 to 20 evidence entries.
Finding: record what surfaced with rdy_write, type finding, statement and 1 to 20 evidence entries; cite it from a decision with depends_on.
- An evidence entry is
{quote, session_ref?, question?}or{source: "{{S-…}}"}. Each value takes 1 to 2000 characters. - Findings and sources go to the decision home unless you pass
parent. CLI:rdy new findingandrdy new source. - A decision cites its finding with a
depends_onlink. A superseding decision's exception card lists those findings in a Findings fact. - A finding is never deleted. Update it, or record a new finding.
The reflects justification. Use it for a change that follows a source or the code, not a decision. Pass reflects: {sources: [...], code: true} on rdy_write, with at least one of the two.
- Never pass
reflectswithimplementsoreditorial. - rdy adds a
reflectslink from each written content block to each source. The source must be in your view, or created in the same write. Otherwise rdy refuses the write withE_BAD_INPUT. - A source created in the same write counts, by its
$name. code: truerecords the code state of each written block that declaresreflectsglobs. rdy refuses it when no written block declares them.code: falseis refused: leavecodeout instead.- CLI:
rdy commit --reflects <source>and--reflects-code.rdy edittakes the same flags.
Code suspects. A block's reflects field lists globs of the code files that it describes. When those committed files change, rdy_suspects shows a code_changed row for the block.
- Read the code, fix the block if it no longer agrees, then repin with
{"op":"repin","id":"…","code":true}. CLI:rdy repin <id> --code. rdy_brief {code_path}lists the blocks whose globs match a file.- With no linked checkout, rdy records no code state and warns with
W_REFLECTS_NO_CODE. Tell the person.