Repository navigation
Description
Re-scoped 2026-10-23: studio and hud
All 16 chant-side children are closed: #3146 to #3154, #3158 to #3160, and the implementation issues arugula-salad/hud#729, arugula-salad/hud#730, arugula-salad/studio#286 and arugula-salad/studio#287. The factory reference Op (#3162, #3406) is merged as well, and packages/core/src/op/factory.e2e.test.ts covers the second Done-when line on chant's side. Nothing is left to build in this repo. What remains is in arugula-salad/studio and arugula-salad/hud, so this epic now tracks only that.
The direction is unchanged: studio is an orchestrator, the workspace spec describes a studio repo completely, and studio keeps no authoritative storage.
What is left
Checked against arugula-salad/studio main (b2b0103, 2026-10-17) on 2026-10-23. This was the failing check of the 2026-10-06 CLOSE ruling, and the findings still hold.
Done-when line 1, studio carries no x-factory, x-studio or studio config key:
-
work/work.schema.jsonandtemplate/work/work.schema.jsonstill declare anx-studioblock. -
template/box/ops/factory/queue.mjsandintent.mjsstill fall back tox-factory.tier|contract|intent|questionfor older work items. -
template/decisions/decision.kind.mjsstill readsx-studioandx-factory. -
box/box-member.mjsuses anx-studio-appkey on the listing (arugula-salad/studio#425 is closed; the key remains).
Done-when line 3, losing studio's lobby state and a box's hud database loses only cache. studio#286 and hud#729 closed with their remainder deferred, and none of these remainders has an issue yet:
- The lobby's keys and passkeys are outside the repo (studio's
reference/architecture.mdx: not yet in fountain's Vault or account model). - hud's review follow-ups and notes are not yet written as records.
Each box should become an issue in arugula-salad/studio or arugula-salad/hud when someone picks it up, linked here.
Done when
- Studio's
chant.workspace.json, template and records carry nox-factory,x-studioorstudioconfig key; every field it reads is in the declaration schema, a record kind schema in the reference workspace, or a core activity. (Open, see above.) - A second orchestrator (a test harness is enough) can pick, lease, build, check, record and publish a studio repo's work using only the spec and the read contract. (Met on chant's side by the factory e2e test.)
- Deleting studio's lobby state and a box's hud database loses only cache: nothing a person decided, answered, reviewed or approved, and no attribution. (Open, see above.)
Part of the boundaries epic #3166.
Original body (before the 2026-10-23 re-scope)
Direction (lex00, 2026-10-01)
Studio is an orchestrator. Everything it needs a repo, a record or a box to carry is promoted into the workspace spec, so the spec alone describes a studio repo and any orchestrator could drive it. Studio keeps no authoritative storage of its own: anything it stores is a local cache it can lose. Work in progress lives in the repo as files in a working branch, uncommitted until committed or applied, so a restart re-reads the working tree (see #3154).
This is the factory-side counterpart of behold, which works from customer code written against the lexicons. Studio works from the workspace spec. It extends #2731 (the steward covers what studio needs) from operations to everything else, and applies ws-056's line (specification in the workspace, runtime and experience in the studio kit, what a person sees in hud).
Where things stand
Read at arugula-salad/studio 6e0e5d8, arugula-salad/hud 1068076, chant origin/main 35e946ca2.
Already in the spec: the box block (services, capabilities, brokers, intent, cookies, state; WSP121-127), source.ask / proposed_by / acceptance / evidence on work items (WSP117), workLease and chant/work/<id> branches, decision points with table/model/people deciders and the /v1/systemone decide backend, the steward, chant.template.json, the release Op's gate and ledger.
Not in the spec: about 40 fields, kinds and conventions studio invented, mostly under x-factory on the box block and on work items, plus a studio key in delivery's chant.config.ts, a Studio-* / Factory-* commit-trailer vocabulary, and design record kinds (contracts, evidence, drivers, proposals) studio parses itself. Durable facts also live outside git: in hud's SQLite and in the lobby's JSON files.
Sub-issues
- workspace: factory fields on the box block (builds, check, builders, protected paths, publish target, plantable) replace studio's x-factory #3146 factory fields on the box block (builds, check, builders, protected paths, publish target, plantable)
- work kind: contract link, tier, intent source, attempt limit, closed lease outcomes and kept-attempt refs, replacing studio's x-factory on work items #3147 work kind: contract link, tier, intent source, attempt limit, closed lease outcomes, kept-attempt refs
- reference workspace: contract, evidence, driver and proposal record kinds, and one session kind, from studio's design member #3148 reference record kinds: contract, evidence, driver, proposal; one session kind
- workspace: commit trailers for leases, runs, records and applies, replacing studio's Studio-* and Factory-* trailers #3149 commit trailers for leases, runs, records and applies
- decision points: understand as a standard point, and slice-tier's inputs specified #3150 decision points:
understandstandard,slice-tierinputs specified - workspace: an app member kind (scripts, port, data, health) as a data-only kinds file #3151 app member kind
- workspace: declare builder agents and tiers, replacing studio's agent metadata #3152 builder agents and tiers
- delivery config: move studio's chant.config keys (protectedPaths, sites, decisions.issue, signing key) into the spec #3153 delivery config: studio's
chant.configkeys into the spec - workspace: homes for the durable facts hud's database and studio's lobby keep outside git #3154 homes for durable facts in hud's database and the lobby's state
- decision: the repo is the database: every durable workspace fact is a file in the repo, written through chant #3158 decision: the repo is the database
- workspace conformance: a writer suite (writes only through chant, every file change chant's, amnesia test) #3159 writer conformance suite and amnesia test
- read contract: report uncommitted records in the working tree, with branch and base #3160 read contract: uncommitted records in the working tree
Implementation, in their repos:
-
arugula-salad/hud#729 unwind durable facts from
.hud/events.db -
arugula-salad/hud#730 hud writes only through chant; writer conformance in CI
-
arugula-salad/studio#286 the lobby keeps no authoritative state
-
arugula-salad/studio#287 the factory reads and writes only through chant; both suites in CI
-
related, already open: Steward covers what the studio needs: a local form, the coding agent beside it, brokered credentials, leases and dispatch, decision points #2731 (steward), workspace: record what each agent run cost and which changes it made #3033 (run record), workspace: follow a squash merge to the pull request's original commits #3035-epic: workspace provenance: runs, joins that survive history, and attested agent changes #3037 (joins), decision points: typed questions with table, model and quorum deciders as workspace specification, asked on the work graph #2723 and An open decision-point question stays open after its subject changes, with no way to close it #2888 (decision points), Research: chud's factory builds on fountain, through chant's fountain lexicon #2714 and Research: studio boxes provisioned through fountain, with the workspace spec supporting fountain's sprite infrastructure #2704 (fountain)
Stays in studio (runtime)
Part of the boundaries epic #3166. #3162 moves the factory's rules (readiness, attempts, outcomes, done) into chant as a reference Op, so the list below is execution only. chud no longer exists; what it did, chant does (#3161).
How a builder runs and its prompts and context, how the app is stood up for a check, FACTORY_* knobs, lobby and door protocols (passkeys, claim/enter, egress swap, enroll), box provisioning and presets, the box site's release directory layout, apply's git mechanics, hud's env glue. These are how studio orchestrates. What they read and write is spec.
Done when
- Studio's
chant.workspace.json, template and records carry nox-factory,x-studioorstudioconfig key; every field it reads is in the declaration schema, a record kind schema in the reference workspace, or a core activity. - A second orchestrator (a test harness is enough) can pick, lease, build, check, record and publish a studio repo's work using only the spec and the read contract.
- Deleting studio's lobby state and a box's hud database loses only cache: nothing a person decided, answered, reviewed or approved, and no attribution.
Activity
lex00 commentedon Oct 6, 2026
Ruling CLOSE (user, 2026-10-06, gucci6): this epic closes if every Done-when line verifies against merged work; otherwise a comment lists what is missing and it stays open. gucci6 lane C1 checks each line.
lex00 commentedon Oct 6, 2026
Checked against merged work (CLOSE, gucci6): this stays open.
The chant side is done: #3146 to #3154, #3158 to #3160, #3162 and the factory reference Op (#3406 and its PRs) are merged, and
packages/core/src/op/factory.e2e.test.tsruns the Op with stub hooks, which covers the second Done-when line on chant's side.The first line fails on arugula-salad/studio main (e5bcddb):
work/work.schema.jsonandtemplate/work/work.schema.jsonstill declare anx-studioblock, andwork/W-006-*.mdcarriesx-factory:.template/box/ops/factory/queue.mjsandintent.mjsstill readx-factory.tier|contract|intent|question, andtemplate/decisions/decision.kind.mjsreadsx-studio.box/box-member.mjsuses anx-studio-appkey on the listing (arugula-salad/studio#425).The third line is open on the consumer side: arugula-salad/studio#286 and arugula-salad/hud#729 closed with their remainder deferred. The lobby's keys and passkeys are still outside the repo (studio's
reference/architecture.mdx: not yet in fountain's Vault or account model), and hud's review follow-ups and notes are not yet written as records.[-]epic: the workspace spec covers everything studio needs; studio is an orchestrator with no authoritative storage[/-][+]epic: studio and hud finish the workspace spec move (chant side done)[/+]lex00 commentedon Oct 23, 2026
Re-scoped to studio and hud. All 16 chant-side children are closed, and the 2026-10-06 CLOSE check failed only on arugula-salad/studio main and on consumer remainders (lobby keys and passkeys, hud notes). I rechecked studio main (
b2b0103) today and thex-studio,x-factoryandx-studio-appuses are still there. The body now lists only those remainders, and the original is kept in a details block at the end.