Skip to content

design — crosswalk

Detail page of the design recipe card.

The umbrella rulebook’s R-rules say how to work. DESIGN’s laws and requirements say what must be true afterwards. Where both govern one behaviour, they are one obligation stated from two sides. Citing one does not discharge the other: a PR that is R2-clean while it violates D-LAW-1 is not a pass, and the reverse holds too. This table names the pairs. The text of each lives in its own document, and this file copies neither.

R-rule (AGENTS.md) DESIGN law / requirement The shared obligation
R2 — no duplication D-LAW-1 (one concept, one name, one form), D-CODE-3 one implementation and one spelling per concept; extract on the second occurrence
R3 — no workarounds D-LAW-5 (fail loud at the source), D-CODE-1 no sleep, retry, hidden default, degrade path or suppressed error
R5 — delete legacy completely D-LAW-2 (nothing dead), D-CODE-2 a replaced mechanism is deleted in the change that replaces it
R8 — live or skip D-CODE-5 a live boundary is tested against the real service, or skipped visibly
SDD — CUE before code D-LAW-4 (schema first), D-SCH-1, DESIGN §10 and §13 every shape is one CUE definition, and Go is generated from it
Clean Architecture — core is a plugin host D-LAW-3, D-LAW-8, DESIGN §3.1 concrete kinds, verbs and capabilities live in plugins, as rows of a mechanism
Repo classes and naming DESIGN §24 (D-REPO-1..3) a repository is a unit of ownership and release, and one concept’s plugin lives in one repository
History in CHANGELOG/ D-CODE-4 comments and docs describe present code; history goes to CHANGELOG/
R7 — prove behaviour D-PAT-4 every rule is enforced by the schema with a negative case, or indexed in DESIGN §12.4 with its proof