Repository navigation
Closed
Labels
area:workspacechant workspace epic (#2525)boundariesEpic: boundaries between chant, hud, studio, behold and fountaindesignDesign or research note, no deliverable yet
Description
Part of #3145.
Principle (lex00, 2026-10-01)
The point of the workspace spec is that the repo is the database. Every durable fact about a workspace is a file in the repo, and every tool built on the spec (hud, studio, behold, an agent) reads and writes those facts through chant. A tool may keep a cache or an index; it never keeps a fact the repo doesn't have.
Why this needs a decision
ws-052 already holds readers to the read contract: a reader reads only through chant and writes nothing, and hud runs that suite (reader-conformance.test.ts). Nothing holds writers to anything. In practice a box's durable facts are split:
- hud keeps reviews, review rounds, intent-walk answers, turn attribution, spend, notes and the box's listing only in
.hud/events.db(workspace: homes for the durable facts hud's database and studio's lobby keep outside git #3154, arugula-salad/hud#703). - studio's lobby keeps the app registry, accounts and spend in JSON files.
- studio's factory parses contracts and work files directly rather than through
records.
What to decide (a ws- record)
- What counts as a fact: anything a person or agent decided, answered, reviewed, approved, wrote, or was attributed with, and any configuration of a box or member. Facts live in the repo.
- Where work in progress lives: as files in the working tree of the active work branch (
chant/work/<id>, or the box's checkout when nothing is leased), uncommitted until someone commits or applies it. "Readable after a restart" means re-read from the working tree. - Where append-only history lives: the ledger branch (
chant/lifecycle, leases, gates, runs), as today. - What may live outside the repo, and only these:
- secrets, held by a broker or vault and named in the declaration (
box.capabilities) - telemetry and other observations of a running system, which may be lossy
- caches and indexes rebuildable from the repo
- runtime state of the substrate itself (a sprite's disk, a fountain conversation's transcript, pinned from records by hash)
- secrets, held by a broker or vault and named in the declaration (
- How writes happen: only through chant's write contract (
records new|amend|close|review,points ask|answer, work leases,workEvidence,workspace upgrade), never by a tool writing record files itself or keeping them elsewhere. - How it's checked: writer conformance (workspace conformance: a writer suite (writes only through chant, every file change chant's, amnesia test) #3159) and an amnesia test: delete every store a tool keeps, restart it, and every fact is still readable.
Done when
The decision is recorded, workspace-declaration.mdx and the read-contract page link it, and hud and studio cite it in their contributing docs.
Metadata
Metadata
Assignees
Labels
area:workspacechant workspace epic (#2525)boundariesEpic: boundaries between chant, hud, studio, behold and fountaindesignDesign or research note, no deliverable yet
Activity
lex00 commentedon Oct 3, 2026
Recorded as ws-074 in #3291, written through
chant workspace records new. Options weighed besides the chosen one: per-tool stores copied into the repo later, a service as source of truth with the repo as a projection, tools writing record files themselves against the schemas, and committing on every write; each is kept underrejectedwith its reason. The declaration page, the read contract's Writing records section and the boundary page's rules link it. The read contract says nothing new about uncommitted records; that stays with #3160. The contributing-doc citations in hud and studio land in arugula-salad/hud#730 and arugula-salad/studio#287.