Repository navigation
docs(workspace): record ws-074, the repo is the database - #3291
Merged
Merged
Conversation
Every durable fact about a workspace is a file in the repo, written only through chant's write contract; a tool keeps only secrets, telemetry, rebuildable caches and its substrate's runtime state outside it. The record was written with chant workspace records new. The declaration and read-contract pages link it, the boundary page gains the rule, and the decisions README names it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This records the decision #3158 asks for as ws-074, "The repo is the database", in docs/design/decisions. Every durable fact about a workspace (anything a person or agent decided, answered, reviewed, approved, wrote or was attributed with, and any configuration of a box or member) is a file in the repo. Work in progress is uncommitted files in the working tree of the active work branch, append-only history stays on chant/lifecycle, and a tool keeps outside the repo only secrets in a broker or vault, telemetry, caches and indexes rebuildable from the repo, and its substrate's runtime state pinned by hash. Tools write only through chant's write contract (records new, amend, close and review, points ask and answer, work leases, workEvidence, workspace upgrade), and the writer conformance suite with its amnesia test (#3159) is how that gets checked. The record lists the options weighed: per-tool stores synced later, a service as source of truth, tools writing record files themselves, and committing on every write.
The record itself was written with
chant workspace records new docs/design/decisions/decision.kind.mjs --from <fields> --by lex00, so it went through the write contract it describes. It constrains #3145, #3154, #3159, #3160, #3172, #3173, ws-052, docs/data/boundary.yaml and the consumer issues arugula-salad/hud#729, #730 and arugula-salad/studio#286, #287, #289.Docs: workspace-declaration.mdx gains a paragraph under its introduction linking ws-074, and the read contract's "Writing records" section says every tool writes through chant, linking ws-074, with #3160 for how a reader sees uncommitted records and #3159 for the writer suite. That section's existing text is unchanged and nothing about uncommitted records is specified here, since #3160 owns it. The boundary page gains a rule for it (edited in scripts/boundary-roster.ts and regenerated), and the decisions README names ws-074.
The last part of the issue's done-when, hud and studio citing the decision in their contributing docs, lands in those repos (arugula-salad/hud#730, arugula-salad/studio#287).
Verified with
node scripts/import-decisions.mjs --check(74 files, 0 problems), the boundary-roster, decision-kind-doc and level0 workspace-records tests,just docs-check, the docs prose lint and the citation check.Closes #3158