You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
workspace: commit trailers for leases, runs, records and applies, replacing studio's Studio-* and Factory-* trailers #3149
area:workspacechant workspace epic (#2525)boundariesEpic: boundaries between chant, hud, studio, behold and fountainenhancementNew feature or requestprovenanceWorkspace provenance: who and what made a change, why, and at what cost
The trailers are Chant-Agent (unchanged from ws-067), Chant-Lease: <fencing token>, Chant-Run: <run id>, Chant-Record: <kind>:<id> (repeatable, kind is the record kind's name) and, on the commit that applies a leased branch, Chant-Applied-By, Chant-Applied-At and Chant-Applied-Commit. The names live in packages/core/src/workspace/trailers.ts with formatChantTrailers and readChantTrailers. chant still never makes a commit; the writer adds the lines. chant workspace runs start (#3033) prints the Chant-Run line for the run it opens.
graph --intent gives every commit node a joins object: agent, lease as { token, item }, run, records as { kind, id, node } and applied as { by, at, commit }. The lease's item comes from the lease histories on the local chant/lifecycle branch (a git grep over **/_leases/*.jsonl, any member's ledger, never fetched). A Chant-Record of a kind the walk reads, or a lease's work item, gets a new carries edge, and the commit is then the own work of the decision it names or that the work item implements: decided instead of decided-by-window, and not intent-commit-bare. graph --intent --record reports the same joins and buckets such a commit own. Both are additions within read contract 1.
Studio's mapping, one to one: Studio-Unit: W-1 becomes Chant-Record: work:W-1; Studio-Contract, Studio-Driver and Studio-Evidence become Chant-Record: contract:C-1, driver:D-1, evidence:<sha256>; Factory-Lease becomes Chant-Lease; Studio-Author: factory becomes Chant-Agent: factory (the factory declared as an agent session); Applied-By/At/Commit become Chant-Applied-By/At/Commit. Factory-Note stays text in the message body. Contract, driver and evidence refs resolve to graph nodes once those kinds exist (#3148); until then they are reported with node: null, so studio can switch trailers before #3148 lands and keep its commitJoins plugin for those kinds in the meantime.
Two parts re-scoped. The apply stays a commit with trailers and does not also get a ledger line: the merge commit already holds who, when and which tip, and ws-068 keeps ledgers for facts made off the working branch (ws-075 option e, rejected with that reason). Author classes beyond Chant-Agent (studio-init, studio-migrate and plugin-defined classes) are #3080: a commit with no session is judged by its author and signature as before.
area:workspacechant workspace epic (#2525)boundariesEpic: boundaries between chant, hud, studio, behold and fountainenhancementNew feature or requestprovenanceWorkspace provenance: who and what made a change, why, and at what cost
Activity
lex00 commentedon Oct 3, 2026
Design as built in #3295, recorded as ws-075.
The trailers are
Chant-Agent(unchanged from ws-067),Chant-Lease: <fencing token>,Chant-Run: <run id>,Chant-Record: <kind>:<id>(repeatable, kind is the record kind's name) and, on the commit that applies a leased branch,Chant-Applied-By,Chant-Applied-AtandChant-Applied-Commit. The names live inpackages/core/src/workspace/trailers.tswithformatChantTrailersandreadChantTrailers. chant still never makes a commit; the writer adds the lines.chant workspace runs start(#3033) prints theChant-Runline for the run it opens.graph --intentgives every commit node ajoinsobject:agent,leaseas{ token, item },run,recordsas{ kind, id, node }andappliedas{ by, at, commit }. The lease's item comes from the lease histories on the local chant/lifecycle branch (agit grepover**/_leases/*.jsonl, any member's ledger, never fetched). A Chant-Record of a kind the walk reads, or a lease's work item, gets a newcarriesedge, and the commit is then the own work of the decision it names or that the work item implements:decidedinstead ofdecided-by-window, and notintent-commit-bare.graph --intent --recordreports the samejoinsand buckets such a commitown. Both are additions within read contract 1.Studio's mapping, one to one:
Studio-Unit: W-1becomesChant-Record: work:W-1;Studio-Contract,Studio-DriverandStudio-EvidencebecomeChant-Record: contract:C-1,driver:D-1,evidence:<sha256>;Factory-LeasebecomesChant-Lease;Studio-Author: factorybecomesChant-Agent: factory(the factory declared as an agent session);Applied-By/At/CommitbecomeChant-Applied-By/At/Commit.Factory-Notestays text in the message body. Contract, driver and evidence refs resolve to graph nodes once those kinds exist (#3148); until then they are reported withnode: null, so studio can switch trailers before #3148 lands and keep its commitJoins plugin for those kinds in the meantime.Two parts re-scoped. The apply stays a commit with trailers and does not also get a ledger line: the merge commit already holds who, when and which tip, and ws-068 keeps ledgers for facts made off the working branch (ws-075 option e, rejected with that reason). Author classes beyond
Chant-Agent(studio-init, studio-migrate and plugin-defined classes) are #3080: a commit with no session is judged by its author and signature as before.