Give a coding agent the behavior to implement and ask it to read the governing design before changing code. The design explains the intended outcome. Code and tests show what the agent implemented.
Start with the relevant design
In a linked repository, a file briefing finds related design through commit history and declared reflects path patterns. Missing file links do not mean that no design rule applies. Ask the agent to search the feature’s documented behavior.
Handle discoveries while coding
Ask the agent to classify an adjustment before you go on:
The design leaves the implementation open. Choose an appropriate implementation and test it.
The design leaves a lasting product choice unanswered. Record a proposed decision and update the docs in the same iteration.
The implementation would contradict the design. Record a finding with the evidence, and propose a replacement decision that depends on it. Pause if the contradiction blocks the task or the decision is one-way. Otherwise, explain the provisional basis.
rdy computes the change plan of the proposal that carries the replacement decision: the docs, the decisions and the code it affects.
The finding keeps the evidence of the discrepancy for review. The approval card of the replacement decision lists the finding with its statement.
Record what the code implements
Ask the agent to cite the specific design blocks or leaf sections in the commit’s Implements: trailer, including fix-up commits. These references let later file briefings recover the design basis from git history. Broad references make that connection less useful.
Code based on a proposed decision is provisional. Review the design decision and the code. Ask the agent to identify code that depends on a choice you decline. Local rdy does not enforce git commits or merges. Your development workflow must verify the code and accept the design.
You have finished when:
The relevant tests pass.
The documentation describes the implemented behavior.
The commits cite their design basis.
The agent identifies every provisional choice.
{"blocks":[[{"kind":"text","value":"# Keep design and code aligned\n"}],[{"kind":"text","value":"Give a coding agent the behavior to implement and ask it to read the governing design before changing code. The design explains the intended outcome. Code and tests show what the agent implemented.\n"}],[{"kind":"text","value":"## Start with the relevant design\n"}],[{"kind":"text","value":"> **Example**\n>\n> Implement read-only guest links. First brief the design blocks for sharing and access. If this code repository is linked to rdy, also brief the files you plan to change. Explain the rules you must preserve and any uncertainty before you implement them.\n"}],[{"kind":"text","value":"In a linked repository, a file briefing finds related design through commit history and declared `reflects` path patterns. Missing file links do not mean that no design rule applies. Ask the agent to search the feature’s documented behavior.\n"}],[{"kind":"text","value":"## Handle discoveries while coding\n"}],[{"kind":"text","value":"Ask the agent to classify an adjustment before you go on:\n\n- **The design leaves the implementation open.** Choose an appropriate implementation and test it.\n- **The design leaves a lasting product choice unanswered.** Record a proposed decision and update the docs in the same iteration.\n- **The implementation would contradict the design.** Record a finding with the evidence, and propose a replacement decision that depends on it. Pause if the contradiction blocks the task or the decision is one-way. Otherwise, explain the provisional basis.\n"}],[{"kind":"text","value":"rdy computes the change plan of the proposal that carries the replacement decision: the docs, the decisions and the code it affects.\n"}],[{"kind":"text","value":"The finding keeps the evidence of the discrepancy for review. The approval card of the replacement decision lists the finding with its statement.\n"}],[{"kind":"text","value":"## Record what the code implements\n"}],[{"kind":"text","value":"Ask the agent to cite the specific design blocks or leaf sections in the commit’s `Implements:` trailer, including fix-up commits. These references let later file briefings recover the design basis from git history. Broad references make that connection less useful.\n"}],[{"kind":"text","value":"Code based on a proposed decision is provisional. Review the design decision and the code. Ask the agent to identify code that depends on a choice you decline. Local rdy does not enforce git commits or merges. Your development workflow must verify the code and accept the design.\n"}],[{"kind":"text","value":"You have finished when:\n\n- The relevant tests pass.\n- The documentation describes the implemented behavior.\n- The commits cite their design basis.\n- The agent identifies every provisional choice.\n"}]]}