Skip to content

docs(workspace): record ws-074, the repo is the database - #3291

Merged
lex00 merged 1 commit into
mainfrom
ws-3158-repo-is-database
Oct 3, 2026
Merged

lex00 merged 1 commit into
mainfrom
ws-3158-repo-is-database

Conversation

@lex00

@lex00 lex00 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

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

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.
@lex00 lex00 added design Design or research note, no deliverable yet area:workspace chant workspace epic (#2525) boundaries Epic: boundaries between chant, hud, studio, behold and fountain labels Oct 3, 2026
@lex00
lex00 merged commit b08a06d into main Oct 3, 2026
12 checks passed
@lex00
lex00 deleted the ws-3158-repo-is-database branch October 3, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:workspace chant workspace epic (#2525) boundaries Epic: boundaries between chant, hud, studio, behold and fountain design Design or research note, no deliverable yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

decision: the repo is the database: every durable workspace fact is a file in the repo, written through chant

1 participant