Decision Records
Decision records preserve why code exists — the alternatives rejected, invariants discovered, and workarounds accepted — as versioned, git-native Markdown files with YAML frontmatter. They complement this book: the book is how things work; records are why this choice won.
Where records live
| Directory | Owner | Overwritten by upgrades? |
|---|---|---|
.framework/decisions/ | framework | yes — package-owned |
custom/apps/<slug>/decisions/ | the app's publisher | yes for DAHL-shipped apps |
custom/decisions/ | your project | never |
How to use them
- Before editing, read the records whose
applies_tocovers your files — in.framework/decisions/and each app'sdecisions/. Asupersededrecord names its replacement insuperseded_by. - After a consequential choice, write a
status: proposedrecord via thespine-decision-captureskill — intocustom/decisions/only (owner: customer, idscustomer:NNNN-slug). - Never write into package-owned
decisions/dirs — upgrades replace them. To diverge from a package record, link to it from your own record.
Agent notes
supersedesnever crosses owners;linksmay.- The validator (
.framework/tests/unit/decision-records.test.ts) checks schema, ownership placement,supersedes/superseded_byreciprocity, and thataccepted/proposedrecords'applies_to/enforced_bypaths still resolve in the tree. enforced_by: []is an explicit "this rule is review-enforced only" flag, not an omission.status: proposedmeans unreviewed proposal — context, not an approved constraint. Onlyaccepted(andsuperseded, as history) carries authority; never cite a proposed record as the reason a design is right.- Releases ship strict: a proposed record fails the release gate unless a
exceptions.yamlentry in the same dir approves it for exactly that release (record,release,approved_by,reason). Exceptions expire automatically — a stale release or an adjudicated record fails validation.
Related
- Team conventions — who owns
custom/decisions/vs package-owned decision dirs, and where team rules live.