Skip to content

Workspace Read Contract

llms.txt lists every page for an agent

Tools that show a workspace read it through one contract (#2536, D15 of #2524). behold, hud and agents all read the same JSON documents from the same commands, and an MCP tool wraps those documents rather than defining its own. The contract is the declaration format and a JSON Schema for each command’s output, with one closed list of reason codes and a chant floor for each contract version.

Contractchant floorDeclarationOutput schemas
10.81.0schema 1ls, graph, check, status, state, records, records-since, intent, intent-record, composites, points, changes, patch, work-history, agent, runs, wip, change-set, plan-summary, pr-report, run-statement, ci-last-green, ci-list, ci-run-index, releases, change-set-show, plan-stale, run-event, delivery-metrics, merge-record, search and capabilities, each at v1

Every document carries contract, the version it follows, and $schema, its schema’s $id. Most also carry chant, the version of the chant that wrote it. A reader that knows contract 1 refuses a document with any other contract value. Given a chant older than the floor, the reader can say so and name the version to install, since that chant doesn’t write the contract at all.

Within a version, fields are only added, and readers ignore fields they don’t know. A new reason code, a removed field or a changed meaning is a new contract version. Codes can still be added to version 1 until 0.81.0 is released.

Each schema ships in @intentius/chant at src/workspace/<command>.schema.json, and the package exports it as @intentius/chant/workspace/<command>.schema.json.

CommandPrints the document withSchema $id
chant workspace ls--jsonhttps://intentius.io/chant/schemas/workspace/ls/v1/ls.schema.json
chant workspace graphalwayshttps://intentius.io/chant/schemas/workspace/graph/v1/graph.schema.json
chant workspace check--format jsonhttps://intentius.io/chant/schemas/workspace/check/v1/check.schema.json
chant workspace status--jsonhttps://intentius.io/chant/schemas/workspace/status/v1/status.schema.json
chant workspace records--jsonhttps://intentius.io/chant/schemas/workspace/records/v1/records.schema.json
chant workspace records --since--jsonhttps://intentius.io/chant/schemas/workspace/records-since/v1/records-since.schema.json
chant workspace graph --intent--jsonhttps://intentius.io/chant/schemas/workspace/intent/v1/intent.schema.json
chant workspace graph --intent --record--jsonhttps://intentius.io/chant/schemas/workspace/intent-record/v1/intent-record.schema.json
chant workspace graph --compositesalwayshttps://intentius.io/chant/schemas/workspace/composites/v1/composites.schema.json
chant workspace check --changes--jsonhttps://intentius.io/chant/schemas/workspace/changes/v1/changes.schema.json
chant workspace patch--jsonhttps://intentius.io/chant/schemas/workspace/patch/v1/patch.schema.json
chant workspace points--jsonhttps://intentius.io/chant/schemas/workspace/points/v1/points.schema.json
the workEvidence Op activityits result, or the refusal it fails withhttps://intentius.io/chant/schemas/workspace/work-evidence/v1/work-evidence.schema.json
the change-set document, from the composeChangeSet Op activityits documenthttps://intentius.io/chant/schemas/workspace/change-set/v1/change-set.schema.json
the drift document, from driftDocument in @intentius/chant/drift-record; versioned by drift: "v1" rather than contractits value, and one stream line per recordhttps://intentius.io/chant/schemas/workspace/drift/v1/drift.schema.json
chant change-set summary--format jsonhttps://intentius.io/chant/schemas/workspace/plan-summary/v1/plan-summary.schema.json
chant components pr-plan, pr-record and pr-applypr-plan.json, pr-record.json and pr-apply.json under --output, or --jsonhttps://intentius.io/chant/schemas/workspace/pr-report/v1/pr-report.schema.json
chant components pr-recordthe merge record, _merges/<commit>.json on chant/lifecycle (_members/<member>/_merges/ in a member)https://intentius.io/chant/schemas/workspace/merge-record/v1/merge-record.schema.json
chant workspace work history--jsonhttps://intentius.io/chant/schemas/workspace/work-history/v1/work-history.schema.json
chant workspace agent--jsonhttps://intentius.io/chant/schemas/workspace/agent/v1/agent.schema.json
chant workspace runs--jsonhttps://intentius.io/chant/schemas/workspace/runs/v1/runs.schema.json
chant workspace runs statement and runs verifyalways for statement, --json for verifyhttps://intentius.io/chant/schemas/workspace/run-statement/v1/run-statement.schema.json
chant workspace wip--jsonhttps://intentius.io/chant/schemas/workspace/wip/v1/wip.schema.json
chant workspace signers--jsonhttps://intentius.io/chant/schemas/workspace/signers/v1/signers.schema.json
chant workspace evidence verify--jsonhttps://intentius.io/chant/schemas/workspace/evidence/v1/evidence.schema.json
chant workspace ref-gate--jsonhttps://intentius.io/chant/schemas/workspace/ref-gate/v1/ref-gate.schema.json
chant ci last-green--jsonhttps://intentius.io/chant/schemas/workspace/ci-last-green/v1/ci-last-green.schema.json
chant ci list--jsonhttps://intentius.io/chant/schemas/workspace/ci-list/v1/ci-list.schema.json
chant ci run --report-url, the file it keeps, and chant ci runs with --json<report-url>/runs/index.json, floor chant 0.124.31https://intentius.io/chant/schemas/workspace/ci-run-index/v1/ci-run-index.schema.json
chant ledger--jsonhttps://intentius.io/chant/schemas/workspace/ledger/v1/ledger.schema.json
chant release list--jsonhttps://intentius.io/chant/schemas/workspace/releases/v1/releases.schema.json
chant release candidates--json, floor chant 0.124.33https://intentius.io/chant/schemas/workspace/release-candidates/v1/release-candidates.schema.json
chant release changed--json, floor chant 0.124.100https://intentius.io/chant/schemas/workspace/release-changed/v1/release-changed.schema.json
chant change-set show--jsonhttps://intentius.io/chant/schemas/workspace/change-set-show/v1/change-set-show.schema.json
chant plan stale--json, floor chant 0.124.63https://intentius.io/chant/schemas/workspace/plan-stale/v1/plan-stale.schema.json
a run’s event stream, one event per lineas each event happenshttps://intentius.io/chant/schemas/workspace/run-event/v1/run-event.schema.json
chant workspace metrics--jsonhttps://intentius.io/chant/schemas/workspace/delivery-metrics/v1/delivery-metrics.schema.json
chant workspace state--json, floor WORKSPACE_STATE_LOCATIONS_FLOORhttps://intentius.io/chant/schemas/workspace/state/v1/state.schema.json
chant workspace search, and chant search for one project--json, floor chant 0.124.46https://intentius.io/chant/schemas/workspace/search/v1/search.schema.json
chant workspace search --capabilities, and chant search --capabilities for one project--json, floor chant 0.124.46https://intentius.io/chant/schemas/workspace/capabilities/v1/capabilities.schema.json
chant workspace drift --member <name>, the drift document with contract beside drift: "v1", or with --stream its NDJSON streamalwayshttps://intentius.io/chant/schemas/workspace/drift/v1/drift.schema.json

Each schema is a oneOf of a result and a failure. The records schema has a third branch for the set it prints without --kind (#2680), and the search schema one for the grouped counts of --count-by (#4374). The set holds a result or a failure for each record kind the declaration names. A failure has error: { code, message }, plus location for the commands that read the declaration, and exits 1. A result may still hold entries that couldn’t be read, each with a reason: { code, message }. Only check fails on those (ws-020). In check, a declaration that can’t be read is the finding WSP001 with the same code, not a failure.

A workspace is identified by its declared name and a git revision (ws-016). Every result names both. The name is workspace.name, and at is the full commit id, or null for the working tree. workspace.root is the workspace root relative to the git root, so a nested workspace is told apart from the outer one.

ls, graph, check and status also say which repository a document came from, as workspace.repo (#3168). It is the URL of the origin remote of the git repository that holds the workspace, with any user name or password removed, or null when there is no origin or no git. Workspaces in different repositories can share a name, so a reader that gathers several repositories’ documents, such as the repo members of an org workspace, tells them apart by repo. repo is a contract 1 field added in chant 0.124.47, so a document from an older chant has none, and a reader takes the repository as unknown.

ls, graph, check and records take --at <rev> and read from the local git object store. They need no checkout, no clean working tree and no network.

CommandWhat --at reads
lsthe declaration, and the member and group directories, at the revision
checkthe declaration and the lineage lock at the revision, and runs the declaration and kind checks (WSP001 to WSP012) on that tree. The ledger, pipeline and generated-file checks read the checkout, so they are left out
recordsthe records at the revision, and the files their pins name, as committed at the revision. For a session kind, its subject records at the revision too
records --sincethe records at --since and at --at, or in the working tree without --at, compared by id
graphthe declaration at the revision, and each member’s graph from its source at the revision. With --kind, the records and the files they pin or constrain at the revision too
graph --intentthe declaration, the region, the records and the files they pin at the revision, and the history reachable from it
graph --intent --recordthe declaration and the records at the revision, and the history of each path and member the record constrains, reachable from it
workspace searchthe declaration at the revision, and each member’s search over its source at the revision, run from an export of the tree as graph --at runs it

A member’s graph comes from running its chant config, so graph --at exports the workspace root’s tree at the revision to a temporary directory with git archive, links the node_modules directories installed in the working tree into it, runs each member there and removes the directory. When no member runs, nothing is exported.

Some of what --at reads still comes from the working tree, which is how it stays offline:

  • Pinned packages, and the kinds they supply, are the ones installed now.
  • The chant each member runs under is the toolchain installed now, not the one the revision pinned. A member whose config needs a package the revision used and the working tree no longer has fails with command-failed.
  • The records kind file and its schema come from the working tree.
  • The exported tree is not a git repository, so a member’s chant can’t read git history there.
  • Remote revisions and URLs are not read. Fetch first. The exception is a repo member, whose pinned revision graph fetches into the user’s cache, whatever --at says.
  • status has no --at. It reads the local chant/lifecycle branch and names the tip it read.

A recorded lifecycle snapshot is a second kind of time: what the estate looked like when the snapshot was taken, not what the source said at a commit. search keeps the two apart (#4374). In chant workspace search, --at <rev> is the git revision as in every read above, and --snapshot <ref> replays a snapshot. The document’s at is the commit, and source.snapshot names the snapshot ref, with each member’s source.commit the snapshot commit it replayed. --at given a snapshot ref such as latest fails with revision-unknown and a hint naming --snapshot, and --snapshot with --at fails with snapshot-at-revision. Plain chant search keeps --at <ref> as a snapshot for compatibility, takes --snapshot as the same flag, and always prints at: null, since it reads the working tree.

Work in progress is a file in a work branch’s working tree until someone commits or applies it (#3158). A records read of the working tree in a git repository says which records those are, so hud’s kept-records view and the studio’s apply list read them from chant instead of diffing git (#3160). Since the release after chant 0.101.0, contract 1 also carries the fields in the table below.

FieldOnHolds
worktreeeach recordcommitted when the file is as HEAD holds it, modified when it differs, new when HEAD doesn’t hold it. Staged and unstaged changes count alike.
checkoutthe records documentbranch (null when detached), head (the commit each worktree is judged against, null before the first commit), base (the merge base of head and the target branch, null without one), baseFrom (flag, origin/HEAD, main or master) and deleted (the kind’s record files head holds and the working tree doesn’t)
lastWriteeach recordThe last chant write of the record’s file in this working tree, {verb, by, agent, at}, while the file still holds the text that write left, and null otherwise (#3173). It comes from a journal in the git directory, a cache that can be lost.
uncommittedthe records documenttrue under records --uncommitted, which lists only modified and new records. The schema then requires checkout and a worktree of modified or new on every record.
checkoutthe status documentbranch, head, base and baseFrom, as above

A read under --at or outside git prints no checkout and no worktree. records --uncommitted refuses --at and --since, and outside git it fails with the existing code not-a-git-repository. The target that base is forked from is the one the trust policy is read at, so --base moves both. Records without worktree come from a chant older than #3160; read them as committed. The read takes no index lock and leaves the index unrefreshed. The records page has an example.

Uncommitted records, work branches and kept attempts live on one disk until someone commits and pushes. On a box that disk can be lost. chant keeps that work in one ref namespace, refs/chant/wip/<branch>, and replicates it to a remote under a policy the box block declares (#3172, ws-085). hud’s turn checkpoints and studio’s checkpoints and kept work use this namespace rather than one of their own.

A snapshot is a commit whose tree is the whole working tree: staged, unstaged and untracked files, with ignored files left out. Its first parent is the snapshot before it on the same ref, when there is one, and its last parent is the commit HEAD named. Its message carries Chant-Wip-Branch, Chant-Wip-Head, Chant-Wip-Kind (save, or pre-restore for the checkpoint a restore takes first), and Chant-Wip-Label and Chant-Wip-By when given. The ref’s first-parent chain is the branch’s checkpoint history. chant workspace wip save takes one and wip restore puts it back. Neither moves HEAD or the branch.

FieldOnHolds
branchesthe wip documenteach branch with snapshots: branch, ref, tip, and snapshots, newest first, each { commit, tree, branch, head, kind, label, by, at }
checkoutthe wip documentbranch and head of the checkout read
replicationthe wip and status documentsnull when no box declares replicate. Otherwise policy ({ box, remote, refs, on, every }), remoteConfigured, replicated (every ref is on the remote) and refs, each { ref, class, commit, replica, replicated, ahead }
box.replicateeach member in status{ remote, refs, on, every } with the defaults filled in, or null

class is work (refs/heads/chant/work/...), kept (refs/chant/kept/...), wip (refs/chant/wip/...) or ledger (refs/heads/chant/lifecycle). replica is what the remote held at chant’s last push or fetch, recorded under refs/chant/replica/<remote>/, or git’s remote-tracking ref for a branch. ahead counts the commits that nothing known to be on the remote reaches. Both reads look only at local refs and never fetch, so a reader can call them as often as it draws.

A composed member in the graph document carries a stamp, sha256: and 64 hex digits, which is what chant workspace graph keys its member cache on (ws-059). Two reads of a member with the same stamp read the same source, so a reader can compare stamps between documents to tell which members changed, without taking stamps of its own. The rule is stated here so that every reader means the same thing by it.

ReadWhat the stamp covers
working treeevery regular file under the member’s directory, by path relative to it, mtime in milliseconds and size, sorted by path. Directories named node_modules, dist or .git are left out, as is every directory whose name starts with . and, for member ., the other members’ directories
--at <rev>the commit id and the member’s directory, which stand in for the files since a commit’s tree never changes
boththe install around the member: node_modules/.package-lock.json and the lockfiles (package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml, bun.lock, bun.lockb) by absolute path, mtime and size, in each directory from the member’s up to the file-system root

stamp is null when no stamp could be taken, such as for a read that observes an account. Each member of a workspace search document carries a stamp by the same rule, though a search is never served from the cache (#4374). A stamp is a fact about the source only. The toolchain, the command line and the environment are also part of the cache key, so an equal stamp does not by itself mean a cached read was served. cached says that.

The root’s chant reads the declaration (ws-021). A root names its chant by pinning @intentius/chant in pins.

The declarationWho reads it
pins @intentius/chant at this chant’s versionthis chant
pins another version, installed at the workspace rootthat chant: ls, graph, check and status hand the whole command line to it and exit with its exit code
pins another version, not installed at the rootnobody: the read fails with root-chant-required (a WSP001 finding for check)
pins no chant, and minReader is this chant or olderthis chant, the reader’s own
pins no chant, and minReader is newernobody: reader-too-old

The pin is checked before minReader and before the schema, since the pinned chant may know fields this one doesn’t. The pin is read from the tree being read, so --at follows the pin at the revision. Members are never read by the root’s chant. Each runs under its own toolchain, as chant workspace build describes.

Capability search keeps the same split (#4378). Each member’s lexicon mapping and adapter run under that member’s toolchain, and its view travels on its graph entry as capabilityView, a contract 1 addition present only with chant workspace graph --capability-view. The root’s chant runs only the rules, once, over the composed views. A member whose chant prints no view has capabilityView: null in graph and member-chant-too-old in search.

A reader without chant may parse the declaration itself against its schema, which is how a Terraform-only estate stays viewable. It should apply the same two rules: defer to the pinned chant, and refuse a minReader newer than the format it knows.

One closed list covers every command. It lives in packages/core/src/workspace/reason-codes.ts, each command’s own list is a subset of it, and a test fails when a schema or the source names a code outside it.

CodeWhereMeaning
declaration-missingerrorNo chant.workspace.json or .jsonc between the directory and the git root.
declaration-ambiguouserrorBoth chant.workspace.json and chant.workspace.jsonc exist.
declaration-unparseableerrorThe declaration is not valid JSON, or not valid JSONC for .jsonc.
declaration-invaliderrorThe declaration doesn’t match its schema, repeats a name, or --member names no entry.
placement-invaliderrorA member or group match breaks a placement rule.
reader-too-olderrorThe declaration’s minReader is newer than the chant reading it.
root-chant-requirederrorThe declaration pins another chant, and it is not installed at the workspace root.
not-a-git-repositoryerror--at, status, work, release list or change-set show needs a git repository and there is none.
revision-unknownerror--at, or ci list --since, names no commit.
live-at-revisionerror, graph and search--live was given with --at. A live read is of the account now, not of a revision.
instances-each-valuenodes[].instanceRollup.code, graphThe block’s count or for_each reads each.value or each.key, which only a plan can count.
instances-mergenodes[].instanceRollup.code, graphThe block’s count or for_each calls merge(), which the declared graph does not evaluate.
instances-value-unknownnodes[].instanceRollup.code, graphThe block’s count or for_each is a form the graph reads, and the files a plan reads give it no value, or one that keys no instances.
instances-form-unreadnodes[].instanceRollup.code, graphThe block’s count or for_each is an expression the graph does not read: another function, a for expression, another conditional, arithmetic, or a resource, data or module attribute.
instances-over-limitnodes[].instanceRollup.code, graphThe block would have more than 256 instance nodes, so it is drawn alone.
instances-module-uncountednodes[].instanceRollup.code, graphThe block is under an expanded module call whose count or for_each the graph cannot count, so none of its instance ids is known.
query-invaliderror, searchNo query, a term the grammar can’t parse, or a --count-by that is not a grouping. Also a member’s reason when its own search refused the query.
usage-invaliderror, search and capabilitiesA flag that needs another one it lacks, or two that don’t go together, such as --check-live without --snapshot.
environment-unknownerror and member, search--env names an environment the project’s chant config does not declare.
snapshot-unavailableerror and member, search--snapshot names a snapshot chant can’t replay: none is recorded for the environment, or the ref is one replay does not take.
index-unavailableerror and member, search--index names an index version chant can’t read: none is recorded under the scope key in the store, or its stamp is not the scope or version asked for.
build-failederror and member, searchThe project’s build, or one of its build roots, failed, so the graph the search would answer over is incomplete.
snapshot-at-revisionerror, searchworkspace search was given --snapshot and --at: a snapshot replays the estate as recorded over the source in the working tree, not at a revision.
lexicon-has-no-mappinglexicon, capabilitiesThe lexicon ships no capability mapping, so no capability rule can read its resources (#4375).
capability-not-derivablelexicon, capabilitiesThe lexicon’s capability mapping labels none of the kinds the capability’s rule needs. The message names them.
lexicon-not-loadedlexicon, capabilitiesThe lexicon isn’t installed where the chant that wrote the catalog runs, so its mapping wasn’t read.
member-chant-too-oldmember, searchThe member’s chant prints no search document of the read contract: it predates workspace member-run, has no such command or flag, or prints search --json from before the contract. For a query with a capability term, the member’s chant printed no capability view (#4378), so nothing mapped its nodes.
environment-invaliderror, statusThe environment name can’t name a ledger directory.
dir-missingmember, ls and graphThe member’s directory does not exist.
unknown-kindmember, ls and graphNo built-in kind or pinned package supplies the member’s kind.
kind-probe-failedmember, ls and graphThe member’s directory is not what its kind reads.
no-matchesgroup, lsThe example group matches no chant project.
kind-not-runmember, graph and searchThe member’s kind is one the per-member commands don’t run, such as other.
command-failedmember, graph and searchThe member’s own chant graph or chant search exited with a failure, or the lexicon that reads a member through its kind’s graph block isn’t installed where the workspace resolves its pin. A chant member whose source fails chant lint fails this way. A member read through its kind’s graph block does not since 0.124.46: it is composed, and its lint findings are on its meta.lint (behold#919).
output-unreadablemember, graph and searchThe member’s chant printed something that isn’t a graph IR, or for search a search document.
ir-version-unsupportedmember, graphThe member’s IR has a version this chant can’t read.
ledger-unreadableledger, status; error, releases, change-set-show and ledgerReading the ledger failed, so nothing from it is listed.
ledger-malformedledger, status, releases and change-set-showSome ledger lines aren’t release records, or for releases some release files or cut lines can’t be read, and the rest are listed. For change-set-show, the file stored under the digest is not the change set that digest names.
filter-invaliderror, ledgerA --where or --since names a field the read doesn’t have, an operator its type doesn’t take, or a value not of its type; nothing was read. records and runs print the same refusal on stderr.
table-unknownerror, ledgerchant ledger was given a table that is not one of resources, snapshots, runs, gates, deploys, releases or cuts.
gates-no-ledgergate ledger, statusThe checkout has no chant/lifecycle branch, so there is no gate ledger to read.
gates-no-gate-ledgergate ledger, statusThe branch has no gate ledger for the member, because no run of it has reached a gate.
gates-ledger-unreadablegate ledger, statusReading the member’s gate ledger failed, so no gate is listed.
stewards-unreadablestewards, statusAn *.op.ts file could not be imported, so a steward it declares may be missing.
stewards-conflictstewards, statusA steward was dropped: its name, or an Op it lists, belongs to another steward.
steward-runs-unreadablestewards, statusReading an Op’s run ledger, or a ConvergeOp’s converge ledger, failed, so its last run or last tick is null.
record-unparseablerecord, recordsNo front matter, a YAML error or a value outside the JSON subset of YAML, or for a JSON kind a file that is not one object or repeats a member name.
record-schema-invalidrecord, recordsThe record’s front matter, or its JSON object, doesn’t match the kind’s schema.
record-id-duplicaterecord, recordsAn earlier record in path order has the same id.
record-supersedes-unknownrecord, recordsA supersedes link names an id no record has.
record-supersedes-conflictrecord, recordsA second closed record supersedes one another record already superseded.
record-remediates-unknownrecord, recordsA remediates link names an id no record has.
record-remediates-not-closedrecord, recordsA remediates link names a record that isn’t closed; a record still open is amended instead.
record-seal-mismatchrecord, recordsA closed record’s seal is not the whole-file seal of its text now: the record changed after it closed.
session-seal-mismatchrecord, recordsA closed session’s seal is not the whole-file seal of its text now: the session changed after it closed, or was sealed by the rule before #2546.
session-verdict-unknown-recordrecord, recordsA session’s verdict names a record that none of the session kind’s subject records has.
asset-driftwarning, recordsA file the record pins by hash has changed: its bytes no longer hash to the pinned sha256. The record stays valid.
asset-missingwarning, recordsA file the record pins by hash does not exist in the tree read. The record stays valid.
asset-stalewarning, recordsA file the record pins is unchanged at the hash a record it supersedes pinned: the decision changed and the artifact did not follow. The record stays valid.
record-supersedes-pendingwarning, recordsA supersedes link from a record whose state is weaker than the record it names, so the link has no effect yet. The record stays valid.
record-no-evidencewarning, recordsThe record’s evidence list is empty: it cites nothing and pins no file, as a decision made in a product’s own design flow may. Information for a reviewer. The record stays valid and --current lists it.
review-undigestedwarning, recordsA verdict in the record’s reviews names no digest of the text it judged. It still counts, and an amendment won’t stop it counting. The record stays valid.
source-transcript-driftwarning, recordsThe record’s source block pins a transcript by hash, the file it names can be read here, and its bytes hash to something else, so it isn’t the transcript the record means (#2708). A transcript that can’t be read gives no warning. The record stays valid.
work-needs-unknownwarning, records and graph --intentA work record’s needs names a work id no record has, so the item stays blocked. The record stays valid.
work-implements-unknownwarning, records and graph --intentA work record’s implements names a decision id no decision has. The record stays valid.
work-needs-cyclewarning, records and graph --intentA work record needs itself through its needs links, so it can never be ready. The record stays valid.
work-implements-undecidedwarning, records and graph --intentA work record implements a decision whose state is not approved, such as proposed. The record stays valid.
work-done-unpinnedwarning, records and graph --intentA work record is done and its evidence list is empty, so nothing shows the work was done. A work record never carries record-no-evidence.
work-closed-without-datewarning, records and graph --intentA work record is done or dropped and has no closed_on.
work-done-gap-openwarning, records and graph --intentA work record is done, and the finding its source names still fires on its region. records walks that region with graph --intent to raise it, when the repository is in git and has a workspace declaration.
work-acceptance-unmetwarning, records and graph --intent; finding, checkA work record is done, and one of its acceptance criteria has no passing evidence of the verification it expects (#2772). check fails on it as WSP117.
work-acceptance-self-verifiedwarning, records and graph --intent; error, workEvidenceA passing manual verdict names the record’s implementer, so it does not count. workEvidence refuses every manual criterion, since the run holding the lease is the implementer.
work-contract-unknownwarning, records and graph --intentA work record names a contract that no record of its kind’s contract kind has (#3147). The record stays valid.
work-contract-undecidedwarning, records and graph --intentA work record names a contract whose state is not approved, such as a draft. The record stays valid.
work-tier-unknownwarning, records and graph --intentA work record names a builder tier that its kind’s work.tier.tiers doesn’t list. The record stays valid.
flag-work-unknownwarning, recordsA flag record names a work item that no record of its kind’s work kind has (#4024). The record stays valid, and the flag is never stale.
flag-stalewarning, records; finding, checkEvery decision a flag’s work item implements is confirmed: in one of its kind’s closed states and superseded by nothing. The flag is due for removal (#4024), and check reports it as WSP118.
answer-points-unreadablewarning, records and pointsThe points file the answer kind names can’t be read, or is not valid (ws-058).
answer-point-unknownwarning, records and pointsThe answer’s point is not declared in the points file the answer kind names.
answer-point-changedwarning, records and pointsThe point’s declaration changed since the question was asked, so the answer is to an older version of the question.
review-deciderverdict, recordsThe verdict is the decider’s own, and the quorum counts verdicts besides the decider’s.
review-agentverdict, recordsThe reviewer holds the agent role in .chant/trust.json at base.
review-duplicateverdict, recordsA later verdict by the same principal replaces this one. Names are compared after NFKC, trimming and lower-casing.
review-older-digestverdict, recordsThe verdict’s digest is not the record’s digest now, so the record changed after the verdict.
review-unattestedverdict, recordsAn attestation policy is active at base, and the verdict carries no seal that verifies for its reviewer. The verdict’s attestation says which of the seal codes below applies.
seal-missingseal, recordsThe verdict, or the record, carries no seal.
seal-signer-unlistedseal, recordsThe reviewer, or the record’s author, has no key in the signers file at base, so the seal can’t count.
seal-signature-invalidseal, recordsThe seal is malformed, names a signer other than the reviewer or author, or its signature doesn’t verify over the verdict or record.
seal-unverifiableseal, recordsNothing here can say whose seal it is: there is no signers file at base, or ssh-keygen isn’t installed.
record-unattestedwarning, recordsA signers file is active at base, and the record names an author whose seal doesn’t verify. The record’s attestation says which seal code applies. The record stays valid.
record-ratified-below-quorumwarning, recordsThe record is in its kind’s ratified state (reviews.ratified), and its quorum isn’t met, computed with the policy at base. The record stays valid.
kind-unreadableerror, records and work; reason, lsThe record kind file is missing or could not be imported.
kind-invaliderror, records; reason, lsThe record kind file exports no recordKind, or its shape is wrong.
schema-unreadableerror, records; reason, lsThe schema file the kind names is missing or isn’t JSON.
schema-id-mismatcherror, records; reason, lsThe schema’s $id differs from the id the kind names.
schema-invaliderror, recordsThe record schema doesn’t compile.
location-missingerror, recordsThe records directory does not exist, in the tree or at the revision. With --since, a directory missing at the --since revision is read as empty.
write-usage-invaliderror, records new, amend, review and workThe command line lacks a value the write needs, or gives one it does not take.
write-input-invaliderror, records new and amendThe fields given with --from or --set can’t be read, aren’t JSON, or aren’t a JSON object.
record-not-founderror, records amend and reviewNo record of the kind has the id given.
record-id-takenerror, records newThe id given for a new record is already used, by a record or a file name.
record-id-unallocatableerror, records newNo id was given and none can be allocated: the records share no single prefix and --prefix names none.
record-path-unmatchederror, records newThe file name made from the id and title doesn’t match the kind’s location.match.
record-closederror, records amend and reviewThe record is in a closed state, so nothing in it changes. A new record supersedes it instead.
amend-id-immutableerror, records amendThe amendment changes the record’s id, and ids are never renumbered.
amend-supersede-insteaderror, records amendThe record is approved, and the amendment changes a field the approval rule doesn’t let change in place. A new record supersedes it instead.
review-unsupportederror, records reviewThe kind’s schema has no reviews field, so its records take no review.
review-note-requirederror, records reviewA dissent was given with no note.
review-sign-failederror, records review--sign was given and no seal could be made: the key can’t be read or used, git names no ssh signing key, or ssh-keygen isn’t installed.
ratify-quorum-not-meterror, records new and amendThe write puts a record in its kind’s ratified state (reviews.ratified), and the record’s quorum isn’t met: too few agreeing verdicts count.
record-sign-failederror, records new and amend--sign was given and no author seal could be made: the record names no author, the key can’t be read or used, git names no ssh signing key, or ssh-keygen isn’t installed.
source-harvest-not-proposederror, records newThe fields’ source block says via: "harvest" and the state isn’t the kind’s first, such as proposed: a harvest proposes, and a person decides (#2708).
record-state-not-initialerror, records new through chant serve mcpThe fields give a state other than the kind’s first: a record written through MCP opens proposed, and a person moves it on (#2707).
write-scope-membererror, records new, amend, review and close; finding, check --changesThe write is to a file, or a record kind, of a member outside the writer’s write scope: an agent session writes only the members it is bound to, and writeScope.<class>.members leaves the member out (#2548).
write-scope-kinderror, records new, amend, review and close; finding, check --changesThe write is to a record kind writeScope.<class>.records doesn’t list, with a verb it doesn’t list for the kind, or deletes a record.
write-scope-class-unknownerror, records new, amend, review and close; finding, check --changesThe declaration’s writeScope at base names a principal class no pinned package supplies, and the writer is judged human, so it may be in that class. The write is refused until the package that supplies the class is installed at the pinned version, or the entry is removed (#3080). A writer in a core or known domain class is judged by that class instead.
write-scope-protectedfinding, check --changes; error, box listing setThe write is to a file writeScope.<class>.protected lists, or one under a directory it lists, and the change isn’t one the entry’s except allows: a change only to the JSON file’s listed top-level keys, or to the values its JSON Pointers name (#3146, #3308). A record write is never refused with it; records are judged by writeScope.<class>.records.
agent-unknownerror, records new, amend, review, close and agent; finding, check --changesCHANT_AGENT, or a commit’s Chant-Agent trailer, names an agent session the declaration at base doesn’t declare.
session-unknownerror, records review--session names no session of a session kind whose subjects are the record’s kind (#2693).
session-not-openerror, records review--session names a closed session, which takes no more verdicts.
record-conflicterror, records amend, review and close--expect named a digest the record no longer has: another write changed it after the caller read it. conflict in the document names the digest it has now and its lastWrite; re-read the record and write again (#3173).
write-lock-timeouterror, every working-tree write and lock acquireAnother write held the working tree’s write lock for longer than the write waits (CHANT_WRITE_LOCK_WAIT_MS, 15 seconds by default). The message names the holder. Run the write again (#3173).
write-lock-not-helderror, every working-tree write and lock releaseCHANT_WRITE_LOCK names a batch’s token that no longer holds the write lock: the batch released it, or it expired and another writer took it (#3173).
points-undeclarederror, points ask, points answer and points retractNo record kind with an answers block is declared, or given with --kind, so there is no points file to ask.
points-invalidsource, points; error, points ask, points answer and points retractThe points file an answer kind names can’t be read, or does not match decision-points.schema.json and the rules checked in code.
point-unknownerror, points ask, points answer and points retractNo points file declares the point asked, or the point an answer names.
point-inputs-invaliderror, points askThe inputs are not a JSON object of the point’s declared inputs.
point-candidates-invaliderror, points askAn ad-hoc point was asked without --candidates, a declared point with them, or they are not a question and criteria of the point’s question type (#3403).
point-decider-failederror, points askA model decider that fails closed (unreachable: "fail") could not answer, so nothing was written.
answer-not-candidateerror, points answerThe answer is not one of the question’s candidates.
quorum-not-meterror, points answer and points retractToo few of the people named count toward the point’s quorum: distinct, not holding the agent role, not the steward that asked, and holding one of its roles when it names any.
answer-in-steward-turnerror, points answer and points retractThe answer was given or retracted during a steward’s turn, or by a process it started. A steward never answers a decision point (#2749).
answer-never-over-mcperror, points answer and points retractThe answer or retraction came over MCP or ACP, or from a process a session on one started, and the question’s constrains names a gate that is never resolved there. Nobody named over those channels counts toward a quorum in any case (#3817).
answer-not-answerederror, points retractThe question has no answer to retract: it is escalated or proposed, and people answer it instead (#3351).
answer-field-unsupportederror, points ask, points answer, points retract and points withdrawThe answer kind’s copy of point-answer.schema.json has no note, retractions, relayed_by, asked or withdrawn field for what the write was given. chant refuses rather than drop a person’s note, who relayed the answer, the answer it would retract or an ad-hoc question’s text and candidates; copying the schema anew turns them on (#3402, #3351, #3403).
principal-unidentifiederror, records new, amend and review, points answer and retract, work evidenceThe declaration at base sets identity.attribution to identified, and the write names a person by a bare name, such as a hud roster name. --by, an author field and each answerer must be a forge identity (github:<login>, gitlab:<login>, <forge>@<host>:<login>), a principal the signers file at base lists, or an agent, runner or service principal (#3163).
since-rev-unknownerror, records --since--since names no commit, or names a session with no opening revision whose file no commit added.
since-session-unknownerror, records --since--since has a session id’s shape and names no commit, and no session has that id (#2693).
since-session-openreason, records --since--since names a session that is still open, so the comparison runs to the working tree.
intent-region-invaliderror, graph --intentThe region’s path, or its line range, does not exist in the tree read.
intent-record-unknownerror, graph --intent --recordNo record of a decision kind read has the id.
intent-symbol-unsupportederror, graph --intentThe region names a symbol, path#symbol, in a file no symbol resolver reads: not core’s TypeScript and JavaScript resolver, and none a lexicon of the file’s member contributes (#3313). A line range still works for it.
intent-symbol-unknownerror, graph --intentThe file does not declare the symbol in the tree read. The message lists its top-level declarations.
intent-symbol-ambiguouserror, graph --intentThe symbol matches more than one declaration in the file. The message lists their qualified names, and giving one picks it.
patch-path-invaliderror, patchA --path is not a relative path inside the workspace.
intent-history-shallowreason, graph --intentThe repository is a shallow clone, so the region’s history stops at the clone’s boundary.
intent-plugin-failedreason, graph --intentA kind file’s commitJoins failed for a commit.
squash-unfollowedreason, graph --intent, runsWith --follow-squash, a squash commit’s pull request ref is not in the clone and could not be fetched from origin, so its original commits are not followed. The read keeps its answer without them (#3035).
intent-commit-undecidedfinding, graph --intentA commit changed the region when no decision constrained it at path granularity.
intent-commit-barefinding, graph --intentA commit names no unit, carries no record through its Chant-Record or Chant-Lease trailer, and has no pull request and no decision covering the region at its time.
intent-pin-driftedfinding, graph --intentA decision’s pinned artifact no longer hashes to the pin.
intent-pin-missingfinding, graph --intentA decision’s pinned artifact does not exist in the tree read.
intent-pin-stalefinding, graph --intentA current decision constraining the region pins an artifact at the hash a record it supersedes pinned, and the artifact has not changed since.
intent-artifact-unpinnedfinding, graph --intentDecisions in the graph pinned the artifact, and no current decision pins it.
intent-decision-superseded-livefinding, graph --intentEvery decision constraining the region is superseded.
intent-decision-provisionalfinding, graph --intentThe current decisions constraining the region are all in states their kind does not close, such as decided.
intent-decision-contestedfinding, graph --intentA current decision constraining the region has an open concern: a dissent neither addressed nor withdrawn. The finding’s openConcerns gives the count and the principals.
intent-constraint-coarsefinding, graph --intentThe region is constrained only through its member, not by path.
intent-constraint-lostfinding, graph --intentA decision’s path: constraint names a path that does not exist in the tree read.
intent-evidence-unpinnedfinding, graph --intentA decision’s evidence has no hash: a URL, or a path with no sha256.
intent-trailer-unverifiedfinding, graph --intentA commit carries a trailer a plugin says claims authorship, and the commit is not attested.
intent-region-unconstrainedfinding, graph --intentNo decision constrains the region at any granularity.
intent-decision-unimplementedfinding, graph --intentA decided decision constrains the region, no work item that is not dropped implements it, and no commit falls in its window. Only with a work kind read.
intent-work-blockedfinding, graph --intentA work item constraining the region has commits in its window while a work item it needs is not done.
intent-work-open-decided-codefinding, graph --intentCommits in the region are a decision’s own work while the work item implementing that decision is still open.
intent-commit-join-conflictfinding, graph --intentA commit joined to an agent run by its Chant-Run trailer or the run’s record has the patch-id of a commit another run recorded. The content join is not made, since a patch-id join never overrides the others (#3036).
intent-why-no-decisiongap, graph --intentNo current decision governs the region at any granularity, and none is carried out by the commits or runs that made its current lines. why.explained is false.
intent-why-no-rungap, graph --intentNo agent run is joined to the commits that made the region’s current lines.
intent-why-uncommittedgap, graph --intentSome of the region’s lines are not committed yet. The gap’s lines names them.
intent-why-run-ambiguousgap, graph --intentSome lines come from a commit several agent runs made, and no run’s recorded hunks say which wrote them. The gap’s lines names them.
change-uncoveredfinding, check --changesA path the diff changes is covered by no current decided record and no open work item, by path or by its member.
change-out-of-scopefinding, check --changesA record in hand for the change, such as the work item it is for or a decision that item implements, lists a path the diff changes in its out_of_scope.
commit-unlinkedfinding, check --changesA trunk commit in the range names no work item: it has no Chant-Record trailer of a work kind and no Chant-Lease trailer (#4029).
commit-wrongly-linkedfinding, check --changesA trunk commit in the range names a work item that is not there: a Chant-Record whose id no work kind has or whose kind is not a work kind, a malformed Chant-Record, or a Chant-Lease that resolves to no work item, and no other trailer links it.
composites-no-chant-memberreason, graph --compositesNo member of kind chant was read, so nothing declares a composite instance or a component.
composites-none-declaredreason, graph --compositesThe members read declare no composite instance.
composites-no-componentreason, graph --compositesThe members read declare no component, so no composite instance has one.
runtimes-config-unreadablemember, graph --compositesThe member’s chant.config.ts couldn’t be read, so its components list only the built-in local runtime, and no environment from the config.
runtimes-lexicon-unreadablemember, graph --compositesA lexicon the member’s config lists couldn’t be loaded, so it isn’t listed as a runtime.
environments-none-declaredmember, graph --compositesThe member’s chant.config.ts declares no environments, so only local and the environments in its ledger are listed.
environments-ledger-undeclaredmember, graph --compositesThe member’s ledger has releases in an environment its config doesn’t cover, so chant run --env would refuse it and it isn’t listed.
environments-ledger-unreadablemember, graph --compositesThe chant/lifecycle branch exists and the member’s ledger environments couldn’t be listed.
environments-component-undeclaredmember, graph --compositesA component declares an environment the member’s chant.config.ts environments don’t cover, so chant run --env would refuse it and it is not listed (#3153).
executor-none-declaredenvironment executor.reason, graph --compositesThe member’s chant.config.ts declares no executor for the environment, so nothing names the forge workflow that deploys it (#4402).
executor-config-unreadableenvironment executor.reason, graph --compositesThe member’s chant.config.ts couldn’t be read, so whether a forge workflow deploys the environment is unknown.
box-credential-declaredfinding, checkWSP121: a file in a box member’s directory carries a literal secret, a credential’s shape or a literal where a credential goes. A ${VAR}, $VAR or secret-manager reference isn’t one.
box-capability-unbrokeredfinding, checkWSP122: a capability in a member’s box block names no broker, so the box would hold its credential.
box-isolation-collisionfinding, checkWSP123: two boxes on one host resolve to the same port, state path or cookie name, or two ports in one box share an offset.
box-isolation-literalfinding, checkWSP124: a host’s stateRoot or a box’s state entry is a literal machine path instead of one derived from an environment reference and the box’s name.
diagram-source-missingfinding, checkWSP131: a diagram names a source, and it doesn’t exist in the tree read.
diagram-render-missingfinding, checkWSP132: a diagram names a render, and it doesn’t exist in the tree read. A mermaid or excalidraw diagram may name none.
diagram-render-driftfinding, checkWSP133: a diagram records a sourceHash, and the source’s bytes now hash to something else. check never runs the renderer to find this; it compares the recorded hash against the source in the tree read.
security-signers-missingfinding, checkWSP161: the workspace opts into verified-releases, and there is no .chant/allowed_signers to verify a release’s signature against.
security-release-gate-missingfinding, checkWSP161: under verified-releases, identity.gates has no release entry, or it names no class, so a cut is not held to a class of signers.
security-publish-allows-unsignedfinding, checkWSP161: under verified-releases, a pipeline file runs release publish with —allow-unsigned.
security-sbom-disabledfinding, checkWSP162: under supply-chain, a member’s chant.config.ts sets sbom: false on a publish target.
security-sbom-unsourcedfinding, checkWSP162: under supply-chain, a member publishes and names no sbom file, and an npm package it publishes holds none at its root, or it has no package-lock.json, pom.xml or Cargo.lock to write one from.
security-publish-no-provenancefinding, checkWSP162: under supply-chain, a pipeline file runs release publish without —require-provenance.
security-component-no-sbomfinding, checkWSP162: under supply-chain, a member’s components have no generate-sbom step.
security-component-no-verifyfinding, checkWSP162: under supply-chain, a member’s components have no verify step.
security-image-base-unpinnedfinding, checkWSP162: under supply-chain, a Dockerfile a member’s release.images names starts FROM a base not pinned by digest.
security-signed-since-unsetfinding, checkWSP163: under who-ran-it, ci.green sets no signedSince, or there is no ci.green block.
security-runner-untrustedfinding, checkWSP163: under who-ran-it, .chant/trust.json lists no runner key.
security-tick-no-keyfinding, checkWSP163: under who-ran-it, a pipeline file runs ci tick with no runner key.
security-review-not-requiredfinding, checkWSP164: under review-rules, an apply job passes —no-require-review, which the group overrides.
security-attribution-anyfinding, checkWSP164: under review-rules, identity.attribution is not identified.
security-gate-unsignedfinding, checkWSP164: under review-rules, an apply job names a gate identity.gates does not list, or identity.gates lists none.
security-runner-start-no-keyfinding, checkWSP165: under isolated-runners, .chant/trust.json lists no key under runners for a provisioner to sign runner-start statements with.
security-runner-start-no-rolefinding, checkWSP165: under isolated-runners, no principal under runners in .chant/trust.json holds the runner role.
security-trust-unreadablefinding, checkWSP165: under isolated-runners, .chant/trust.json can’t be read, so no runner-start statement can be checked.
profile-retention-shortfinding, checkWSP166 or WSP167: under a security profile, retention.changeSets.days or retention.releases.days is unset or below the profile’s days.
profile-gate-not-humanfinding, checkWSP166 or WSP167: under a security profile, the release gate or a gate an apply job names is missing from identity.gates, names no class, names a class an agent, runner or service principal holds, or sets agentPassesAlone.
profile-scan-offfinding, checkWSP166 or WSP167: under a security profile, a chant.config.ts sets release.scan: false.
profile-scan-db-unboundedfinding, checkWSP166 or WSP167: under a security profile, release.scan.db is set with no dbMaxAgeHours, or dbMaxAgeHours is above the profile’s hours.
profile-signing-offfinding, checkWSP166 or WSP167: under a security profile, a chant.config.ts sets release.signing: false.
profile-signing-modulefinding, checkWSP166 or WSP167: under a security profile, a chant.config.ts signs images or forge assets keylessly or with a cosign key and names no CHANT_COSIGN build.
profile-runner-key-eddsafinding, checkWSP166 or WSP167: under a security profile, .chant/trust.json lists an Ed25519 key under runners or local.keys.
ci-workflow-green-undeclaredfinding, checkWSP151: under ci.workflow, the declaration has no ci.green block, so no commit gets a verdict and no release can be cut.
ci-workflow-no-pre-mergefinding, checkWSP151: under ci.workflow, ci.green.preMerge names no phase, so nothing says which checks run before the branch moves.
ci-workflow-apply-in-greenfinding, checkWSP151: under ci.workflow, a phase in ci.green.require matches an apply job, which would wait on its own verdict.
ci-workflow-no-componentsfinding, checkWSP151: under ci.workflow, a member declares no component, so nothing of it can be cut or promoted.
ci-workflow-no-environmentsfinding, checkWSP151: under ci.workflow, a member’s chant.config.ts declares no environments, so a release has nowhere to be promoted to.
ci-workflow-ungated-envfinding, checkWSP151: under ci.workflow, a component has no gate, so a promote to the last environment waits on no approval.
ci-workflow-pipeline-missingfinding, checkWSP151: under ci.workflow, no pipeline file runs the plan job, the merge job or chant ci tick.
ci-workflow-pipeline-differsfinding, checkWSP151: under ci.workflow, the merge job does not match the workflow: it applies under trunk-curated, or records under trunk-curated+apply-on-merge.
ci-workflow-publish-missingfinding, checkWSP151: under ci.workflow, no pipeline file runs chant release publish.
gate-approval-unbasedfinding, checkWSP153: an Op gate’s approval block sets a quorum, policy, mode or context that identity.gates does not set at base, so the change being run can edit it.
ci-branch-route-differsfinding, checkWSP152: a member’s generated pull-request pipeline targets a branch other than the one ci.branches routes the member to.
box-fountain-callback-undeclaredfinding, checkWSP125: a box member builds a fountain Box, whose sandbox fountain gives a callback token scoped to its owner, and its box block doesn’t declare fountain-callback brokered by fountain with scope owner.
box-intent-unknownfinding, checkWSP126: a box block names an intent, and no record of a declared kind named decision has that id.
box-intent-unconstrainedfinding, checkWSP127: the decision record a box names as its intent constrains no member or path of this workspace at all.
box-noneplantable.reason, status and graphNo member’s box block declares services, so the workspace has no box for a host to plant (#3146). Not a finding: a workspace need not be plantable.
box-severalplantable.reason, status and graphMore than one member’s box block declares services, and a planted workspace runs one box.
signers-file-missingerror, signersThere is no signers file at the base revision, so there is no signer history to read.
signers-removedbroken history, signers and verifyThe signers file was removed. Commits merged before the removal keep the set they were judged by; nothing after it verifies.
rotation-unparseablebroken history, signers; rotation, verifyThe rotation file beside the signers file is not JSON.
rotation-invalidbroken history, signers; rotation, verifyThe rotation file does not match its shape: schema 1, a version, the previous set’s digest, a threshold and signatures.
rotation-first-versionbroken history, signers; rotation, verifyThe first signer set’s rotation file names a version other than 1, or a previous digest.
rotation-missingbroken history, signers; rotation, verifyThe signer set or its threshold changed with no rotation file signed by the set before it.
rotation-version-skewbroken history, signers; rotation, verifyThe rotation names a version other than the one after the set it replaces, as a replayed or skipped rotation does.
rotation-previous-mismatchbroken history, signers; rotation, verifyThe rotation names a previous digest other than the set it replaces, as a rollback does.
rotation-threshold-unsatisfiablebroken history, signers; rotation, verifyThe new threshold is more than the new set’s distinct signers, so no later rotation could meet it.
rotation-threshold-not-metbroken history, signers; rotation, verifyFewer distinct signers of the set before signed the rotation, in the chant-signers namespace, than its threshold.
trust-policy-unreadableerror, evidence and runs signThe trust policy at base can’t be read, or its signer history is broken, so no runner key is trusted.
envelope-unreadableerror, evidence verify and runs signThe --envelope file can’t be read, or is not JSON.
envelope-invaliderror, evidence verify and runs sign; statement verdict, runs and runs verifyThe file is not a DSSE envelope: payloadType, payload in canonical base64, and signatures with keyid and sig.
envelope-untrustederror, evidence verify and runs sign; statement verdict, runs and runs verifyNo signature in the envelope verifies against a runner key the policy at base lists.
evidence-payload-typeerror, evidence verifyThe envelope’s payload type is not application/vnd.in-toto+json.
evidence-statement-invaliderror, evidence verifyThe payload is not an in-toto Statement v1 with chant’s runner-evidence predicate, or has a field the predicate does not define.
evidence-runner-mismatcherror, evidence verifyThe statement names a runner other than the one whose key signed it.
runner-key-invaliderror, evidence sign, runs sign and trust runner addThe key is not an Ed25519 or ECDSA P-256 private key in PEM. For trust runner add, it is not an ssh-ed25519 or ecdsa-sha2-nistp256 public key or an Ed25519 or P-256 key in PEM.
runner-key-is-signererror, evidence sign, runs sign and trust runner addThe key is a person’s key in the signers file, or trust runner add names a signer. Evidence and run statements are signed by a service or CI identity.
runner-key-unlistederror, evidence sign and runs signThe policy at base lists no runner with the key.
ref-update-invaliderror, ref-gate pre-receive and pre-pushThe hook’s standard input is not the lines git hands a pre-receive or pre-push hook.
lifecycle-ref-deletederror, ref-gate pre-receive and pre-pushThe update deletes chant/lifecycle, which holds the audit trail and is never deleted; chant lifecycle gc prunes it with a new commit.
lifecycle-ref-rewrittenerror, ref-gate pre-receive and pre-pushThe update moves chant/lifecycle to a commit that does not descend from its old tip, which a force push does; the branch is append-only.
ref-evidence-missingcheck verdict, ref-gateNo runner evidence for a check the policy at base requires for the ref is attached to the pushed commit (#4867).
ref-evidence-stalecheck verdict, ref-gateEvidence for a required check verifies, but a record it names changed after it was signed, or it names no records and was signed over another tree.
bump-invaliderror, release-changed--bump-member is not <member>=major|minor|patch, or names a member the declaration does not have.
paths-changedreason, release-changedThe member has paths changed since its last release, after changes.ignore and generated files, or has no release yet.
needed-byreason, release-changedA member of the release depends on this one, and this one has changes since its last release.
range-broken-byreason, release-changedThe range this member last published for a dependency does not admit that dependency’s next label.
intent-pendingreason, release-changedAn intent file under .chant/release names the member, and no cut of it consumed the file.
intent-invaliderror, release-changedAn intent file under .chant/release can’t be read: its front matter is not lines of <member>: major|minor|patch, or names a member the declaration does not have.
lock-invalidfinding, checkThe lineage lock can’t be read.
manual-step-openfinding, checkA scope in the lineage lock has an open manual step.
work-kind-missingerror, workNo work kind to find the item in: --kind names a kind with no work block, or the declaration names no work kind.
work-kind-ambiguouserror, workMore than one declared work kind has a record with the id, so --kind must name one.
work-item-unknownerror, work and check --changesNo work record has the id, so there is nothing to lease, or no work item in hand for --changes --work.
work-item-closederror, work claim and workEvidenceA claim on a work item in a closed state, such as done or dropped: there is no work left to claim. workEvidence adds nothing to a closed item either.
work-criterion-unknownerror, workEvidenceThe work record lists no acceptance criterion with the id the evidence names, or its kind has no acceptance criteria.
lease-heldrefusal, work; error, workEvidenceSomeone holds a live lease on the work item: another worker, or, for a claim, the same one.
lease-not-heldrefusal, work; error, workEvidenceNobody holds a live lease on the work item: it expired, was released or was never claimed.
lease-token-mismatchrefusal, work; error, workEvidenceThe live lease on the work item carries another fencing token than the one given.
work-evidence-ops-missingerror, workEvidenceThe evidence cites a run, deploy, gate answer or release plan the local chant/lifecycle branch does not hold (#3171).
work-evidence-ops-mismatcherror, workEvidenceThe cited ops record does not hash to the sha256 given, or a cited run’s outcome disagrees with the evidence’s result.
work-evidence-ops-unfinishederror, workEvidenceThe cited run is still gated or waiting, so it has no outcome to show.
lease-racerefusal, workAnother writer changed the lease between this command’s read and its write.
lease-push-rejectedrefusal, workThe remote refused the lease push: another clone claimed the item first, or the remote could not be reached.
run-existserror, runs start and runs recordThe fields give a run id the ledger already has.
run-unknownerror, runs end, sign, statement and verifyThe ledger has no start for the run.
run-endederror, runs endThe run’s end is already recorded.
run-not-endederror, runs sign and runs statementThe run has no end recorded. A statement is signed over the run’s whole record (#3192).
run-statement-invaliderror, runs sign; statement verdict, runs and runs verifyThe envelope’s payload is not an in-toto Statement v1 with chant’s agent-run predicate, or has a field the predicate does not define.
run-statement-signer-mismatcherror, runs sign; statement verdict, runs and runs verifyThe statement names a signer other than the runner whose key signed it.
run-statement-mismatcherror, runs sign; statement verdict, runs and runs verifyA listed runner key signed the statement, and it does not match the run’s record: another run, a record that hashes differently, or another unit, harness, model, provider or principal.
runs-no-ledgerreason, runsThe checkout has no chant/lifecycle branch, so there are no agent runs to read.
runs-ledger-malformedreason, runsSome lines of the agent run ledger aren’t run events; the rest are read.
wip-no-brancherror, wip save and wip restoreHEAD is detached, or names a branch with no commit yet, so there is no branch to keep work in progress for (#3172).
wip-noneerror, wip restoreNo snapshot was named, and the branch has none under refs/chant/wip/<branch>.
wip-snapshot-unknownerror, wip restoreThe snapshot named is not a work-in-progress snapshot chant took.
wip-branch-othererror, wip restoreThe snapshot was taken on another branch than the one checked out.
wip-raceerror, wip save and wip restoreAnother writer moved refs/chant/wip/<branch> between the command’s read and its write.
wip-policy-noneerror, wip push and wip fetchNo box block declares replicate, so there is no remote.
wip-remote-unknownerror, wip push and wip fetchThe policy names a git remote the checkout doesn’t have. The host adds it, with its credential, before chant pushes.
ci-green-undeclarederror, ci last-green, ci list and ci tickThe declaration has no ci.green block, so chant does not know which check runs make a commit green (#3573).
ci-branch-unknownerror, ci last-green, ci list and ci tickThe checkout has no ref for the branch ci.green names, neither the remote-tracking branch nor a local one.
member-existserror, member addThe declaration already has an entry of that name, other than the one given. Giving the same entry again changes nothing and is not an error.
member-unknownerror, member removeThe member named is not declared.
trust-config-invaliderror, trust runner add and trust runner remove.chant/trust.json in the working tree is not JSON or does not match its schema, or the write would make it so.
trust-conflicterror, trust runner add and trust runner remove--expect named a digest .chant/trust.json no longer has. The refusal’s conflict names the digest it has now and its lastWrite.
runner-existserror, trust runner addThe principal is already listed with another key or class, or the key is listed for another principal. Giving the same entry again changes nothing and is not an error.
runner-unknownerror, trust runner remove.chant/trust.json lists no runner for the principal.
factory-member-unknownerror, box factory setThe member named is not declared.
factory-box-missingerror, box factory setThe member’s entry declares no box block, so it has no factory.
listing-member-unknownerror, box listing setThe member named is not declared.
listing-box-missingerror, box listing setThe member’s entry declares no box block, so it has no listing.
publish-member-unknownerror, box publishThe member named is not declared.
publish-noneerror, box publishThe member declares no box block, or its box block names no publisher.
publish-refusederror, box publishThe box’s publisher refused (it exited 2): nothing was published, and its message says why.
publish-failederror, box publishThe publisher could not be run, failed with another nonzero exit, or ran out of time; its message says what it had done.
publish-answer-invaliderror, box publishThe publisher exited 0 with no JSON object on stdout, or one box-publish.schema.json doesn’t allow.
publish-unrecordederror, box publishThe commit the publisher named is missing, or lacks the apply record of ws-075: Chant-Applied-By naming --by, Chant-Applied-At, Chant-Applied-Commit and a Chant-Record for the item, or a Chant-Record for each record sent.
missing-direrror, exitThe chant member’s directory does not exist.
no-lexiconerror, exitNo lexicon is named in the member’s chant.config.* or package.json.
lexicon-unsupportederror, exitA lexicon the member uses has no native target in workspace exit.
exit-failederror, exitThe member’s exit did not finish: its build failed, or it was refused.
choudoufu-steps-missingerror, exitA choudoufu member’s exit listed no roundtrip steps.
native-missingerror, exitA native file the exit wrote is missing or empty.
native-unreadableerror, exitA native file the exit wrote is not valid JSON, or has no content.
no-deploy-commanderror, exitA native file that can be deployed has no stock deploy command.
chant-config-lefterror, exitA chant.config.* file is still in the exited member.
chant-dependencyerror, exitThe member’s package.json still has a chant dependency, or a script that calls chant.
chant-in-cierror, exitA CI file of the exited member still calls chant.
declaration-not-othererror, exitThe declaration still gives the exited member a kind other than other.
member-requirederror, driftworkspace drift was given no --member, or more than one: it reads one member.
no-drift-readerror, driftThe member’s kind has no drift read, such as other, app or a nested workspace.
read-unsupportederror, drift--read names a read the member’s engine does not answer, such as state on a chant member.
resource-unsupportederror, drift--resource was given for an engine that cannot read one resource on its own.
env-requirederror, driftA chant member’s live drift read needs an environment, and --env was not given.
listing-cover-invaliderror, box listing setThe cover can’t be read, isn’t a PNG, JPEG or WebP picture, is larger than 5 MiB, has a path outside the workspace, or has an extension other than its picture format’s.

graph --intent may also carry findings a plugin contributes through its commitJoins (#2656). Their codes are outside the list. Each is plugin:<name>:<code>, where <name> is the kind’s name in the document’s kinds (the kind file’s commitJoinsName when it has one) and <code> is lower case words joined by dashes. The plugin owns its namespace, and chant only carries the finding. A reader that switches on codes can tell the two apart by the plugin: prefix.

check also reports WSP ids, the declaration check catalog. That catalog is closed too, and it is versioned with the check contract.

A record kind says how its files hold their records, and records --json names it in kind.format (#2664, ws-053). For markdown-front-matter, a record’s data is its front matter. For json, the whole file is one object, and data is that object. The rest of the entry has the same shape either way, so a reader that knows decisions needs nothing new to read a JSON kind. Two other kind options change what a reader sees in a record. A kind without states gives every record state: null. A content-addressed kind (idFrom: "sha256") gives each record the SHA-256 of its file’s bytes as its id, a 64-character hex string equal to the sha256 of any pin of that file. When the file’s name claims a different hash, the record lists itself in assets as drifted and carries asset-drift. None of this adds a code, so contract 1 holds. The kind file options are on the records page.

A record kind with a reviews list gives each record in records --json a digest and a quorum (#2671, #2672). The digest is the SHA-256 of the record’s text with its reviews block taken out, and a verdict names it in its own digest, so an amendment leaves earlier verdicts on an older digest. The quorum lists every verdict in counted or in notCounted, and each one in notCounted has a review- reason code. need comes from the declaration’s quorum, or is 2. met says the counted agree verdicts reach need. When met is true and a dissent is still open, metWithObjections is true too, and a reader shows that as met with objections, not as consensus. The rule for the digest and the order the reasons are checked in are on the records page. A reader never computes a digest itself: it reads digest from records --json. A kind can name a ratified state in reviews.ratified, as the decision kind does. records new and records amend then refuse to write a record in that state below its quorum, and the digest leaves the state out, so a ratified record’s quorum stays met (#2873). chant never ratifies a record by itself: a person sets the state with records amend (see Ratifying).

Each verdict in counted and notCounted also carries attested and attestation (#2687). attested is true when the verdict’s seal verifies for its reviewer against the signers file at base. A seal that fails gives false, and so does a missing seal while a signers file is active. When nothing here can say, the value is null. attestation holds a message, the key’s fingerprint when a signature was checked, and a seal- code whenever attested isn’t true. Once a signers file is active at base, only verdicts with attested: true count, and the rest are review-unattested. Without a signers file the seal doesn’t gate counting. A reader shows a verdict as signed only when attested is true, and never checks a signature itself. These fields, the four seal- codes and review-sign-failed were added within contract 1 in the release after 0.86.0, the same way 0.86.0 added its fields and codes. A reader that finds no attested is reading an older chant, and treats every verdict as unsigned.

A record of such a kind can carry its author’s seal in a top-level seal field, and each parsed record then carries attested and attestation of its own, with the same meanings and codes (#2688). The author is the field the kind’s reviews.decider names, decided_by for decisions. The digest leaves seal out as it leaves the reviews block out, so a record with no seal has the digest it always had. Under an active signers file a record that names an author and isn’t attested carries the warning record-unattested, and is read like any other. Sealing records is opt-in per workspace, and nothing requires it yet. hud calls a record author-signed only if that record’s attested is true. Whether the commit that last changed the file was signed is provenance, a separate question. The release that brought verdict seals brought these too, still within contract 1.

Artifact relationships are derived from decisions (#2549, D18 of #2524). No artifact links to code or to another artifact directly. A decision record says both halves of the relationship:

  • Its evidence pins the artifacts it rests on. Each pin names a file from the workspace root in path and holds the SHA-256 of the file’s bytes in sha256.
  • Its constrains names what it governs: a member as member:<name>, or a file or directory as path:<path>.

chant workspace records checks every pin against the tree it reads. A pin whose file still hashes to sha256 is pinned. One whose file changed is drifted and carries the warning asset-drift. One whose file is gone is missing and carries asset-missing. A matching pin is stale and carries asset-stale when a record this one supersedes pinned the same hash and the file’s last commit is older than the commit that added this record. The decision changed and the artifact did not follow. Each record carries its pins in assets and those warnings in warnings. A warning never makes the record invalid, and --current still lists it: the decision is still what was decided, and the drift asks for it to be looked at again. The paths resolve in workspaceRoot, the workspace whose declaration sits nearest above the kind file.

chant workspace graph --kind <kind file> fills records with the records it reads and adds their links to links, after the member links. A superseded record has no link rows. Each record also carries remediatedBy (#2774), the ids of records whose remediates link names it. A remediates link never changes the target’s state or supersededBy, so a remediated record keeps its link rows and stays current.

Fieldasset rowconstrains row
kindassetconstrains
origin, resolvesdeclared, sourcedeclared, source
recordKind, record, recordPaththe record’s kind, id and filethe same
targetthe pinned paththe entry as written, member:<name> or path:<path>
memberthe member that holds the path, or nullthe member named, or the one that holds the path, or null
statuspinned, drifted, missing or staleresolved, or missing when no member has the name or the path does not exist
reasonwhy the pin is not pinned, or nullwhy the row is missing, or null
sha256, actualthe pinned hash, and the file’s hash in the tree read or nullnot present

To find the artifacts behind a file, a reader walks through the decisions. It takes the constrains rows whose target covers the file: path:<p> covers p and everything below it, and member:<name> covers the member’s directory. From each of those records it takes the asset rows. A drifted asset row means the artifact changed after the decision that governs the file was made, and a stale one means the decision was replaced while the artifact stayed as it was. The walk the other way, from an artifact to what it shapes, starts from the asset rows whose target is the artifact.

A record kind with a work block is a work kind (#2683). The reference workspace’s is work/work.kind.mjs, and Work items describes its records. records --json on a work kind adds these fields, all within contract 1:

FieldOnMeaning
readyeach parsed recordThe record is valid, not superseded, in the kind’s open state, not in a needs cycle, and every work id its needs names is done.
blockedByeach parsed recordEach need that is not done, as { id, state }, with state: null for an id no record has.
implementseach parsed recordEach decision the record names, as { id, state }, with the decision’s state now.
decisionsthe documentEvery decision the work kind’s decision kind reads, as { id, path, state, supersededBy, implementedBy }. implementedBy lists the work records naming it as { id, state }. An empty one means the decision has no work item yet.
leaseeach record with an id, in the working treeThe item’s active work lease as { holder, token, acquiredAt, expiresAt }, or null (#2732). Absent under --at.
acceptanceeach parsed record, when the kind’s work block names acceptance criteria{ met, total, criteria }, where each criterion is { id, verification, met } (#2772). null when the record lists no criteria.
contracteach parsed record, when the kind’s work block names contractThe contract record the item builds as { id, state }, with state: null for an id no record has, or null when the item names none (#3147).
answerseach record with an id, when the kind’s work block names answersThe decision-point answers whose constrains names the item, as { id, point, state, answer, answeredBy }, joined by id and never copied onto the item (#3147). In the working tree it includes the answers a steward keeps on chant/lifecycle.

The decision kind is the file the work kind’s work.decisions names, read at the same revision as the work records. A work record’s warnings hold the work- codes above in place of record-no-evidence.

A criterion is met by evidence that names it in criterion, has result: pass, and has the criterion’s verification. A manual verdict also names its giver in by, and it counts only when that is not the record’s implementer. For a declared work kind with criteria, ls --json gives each kind an acceptance list of { item, state, met, total }, and status --json gives the workspace one of { member, kind, item, state, met, total }. Both list only the current items that state criteria. check reads the same records and fails a done item with a criterion unmet as WSP117.

A work lease locks one item. Nothing locks two items against each other: status --json reports their overlap in overlap after the fact, and the people or agents involved sort it out (#4025, policy from #4016). A work item is in flight unless it implements at least one decision and every one is confirmed: in one of its decision kind’s closed states and superseded by nothing, the test a feature flag uses for stale. Its commits are the ones linked to it as workspace check --changes judges a link (#4029), read from every local and remote-tracking branch and HEAD, with the chant/ ledger branches left out and merges skipped. Two items overlap by file when their linked commits touch one path.

A change set is planned from many commits, so an entry is attributed to a work item through the commits that changed its source. That takes a source on the entry, the file that declares its graph node, recorded when the change set is stored. A commit linked to the item must have changed that file, and that commit must be in the history the change set was planned from: the commit in its graph.at, else the gitSha of the gate that binds it, or an ancestor of that commit. With neither known, every linked commit counts. One entry can go to several items, and two items overlap by address when they share one. The change sets read are the ones bound by the gates status lists as pending or approved. Entries with no source go to no item and are counted in unattributed. workspace status shows the fields.

A work lease is written by chant workspace work claim|renew|release to refs/chant/lease/[_members/<member>/]work/<id>, with a history in _leases/<id>.jsonl on chant/lifecycle. status --json lists every lease in leases, active and expired, each with its item, the member whose ledger holds it (null for the flat ledger), ref, holder, token, acquiredAt, expiresAt and state. Neither read fetches. A reader that needs the remote’s leases fetches refs/chant/lease/* first, or runs a claim, which does.

chant workspace work history <id> --json reads one item’s history back from the ledger of the member that owns its work kind (#2785). The document follows work-history.schema.json. The history file’s place on the branch is ledger, and the lease ref’s record now is lease. events holds every line, and claims folds the lines into one entry per fencing token. Each claim says how it ended: released with its release (by, at, outcome, note), held, expired, or lost to a later claim. Since #3147 the outcome is one of a closed list, and each claim says whether it counts as an attempt and names its kept attempt ref. The document totals them in attempts (failed, limit, remaining, exhausted) against the item’s attempt limit and lists kept, so a runner reads the limit from chant instead of counting claims itself. It never fetches either. chant serve mcp serves it as workspace-work-history.

chant workspace runs --json reads the run ledger, _agent-runs/<id>.jsonl on chant/lifecycle in the workspace root’s ledger (#3033, ws-076). chant records runs and never starts one; whatever ran the agent writes them with runs start, end and record. The document follows runs.schema.json. ledger names the branch, the directory and the tip read (null with no branch). filter repeats the options given. The table lists the fields of each entry in runs.

FieldMeaning
id, statethe run id, the value of its commits’ Chant-Run trailer, and running or ended
startedAt, endedAt, outcomewhen it ran and how it ended, null while it runs
by, agentthe principal it worked for and the agent session it ran as
harness, model, provider{ name, version }, and the model and provider as the writer named them
unit, lease, recordsthe work item { id, kind }, the lease token, and the other records it worked on as { kind, id }
instruction, transcripteach pinned as { sha256, bytes, ref }, or null. Neither is ever copied. The instruction may also carry excerpt, a short excerpt the writer gave to show beside the hash (#3034)
usage, modelsthe turns and token counts, null when it reported none, and each model’s share when the harness gave one
cost{ amount, currency, source }, or null when it reported no cost
commits{ sha, patchId, joinedBy, hunks }: record when its end lists the commit, trailer when the commit on HEAD’s history carries its Chant-Run, and patch-id when a commit on HEAD’s history has neither and its git patch-id --stable equals the patchId of a commit the end lists, as after a rebase or a cherry-pick that dropped the trailer (#3036). A patch-id commit also has recordedAs, the listed commit it rewrites. With --follow-squash, a squash merge on HEAD whose pull request’s original commits join the run is listed with squash and via, the originals (#3035). hunks lists { path, start, end }, the lines the run wrote in that commit, when its end gave them, and is null otherwise and for a patch-id commit (#3034)
decisions<kind>/<id> of each decision its work item implements, and each decision record it names
ledgerits file on the branch
record{ sha256 }, the hash a statement signs: SHA-256 of the canonical JSON of [start line, end line]. null while the run runs (#3192)
statementsthe signed statements the ledger holds for the run, each { at, envelope } with the DSSE envelope as stored
attestationthe statements judged against the runner keys at base: status (signed, unsigned, mismatch, untrusted, invalid), signer, class, keyid, code, reason, the commits the verified statement names, and one verdict per statement in statements

totals holds all, byUnit, byDecision and byPrincipal, each with runs, running, tokens, cost (one sum per currency), unpriced, the runs that report no cost, and unreported, the runs that report no usage. A run without a cost is listed, never counted as zero. A metering reader sums cost per currency and shows unpriced beside it, and a reader that trusts only signed figures counts the runs whose attestation.status is signed. trust names the base the statements were judged at (--base, else origin/HEAD, main or master), the runner principals listed there with their class, and any problems reading it, in which case nothing is signed. reasons holds runs-no-ledger, runs-ledger-malformed, kind-unreadable when a work kind can’t be read to find what its items implement, and squash-unfollowed when --follow-squash can’t read a pull request’s ref. chant serve mcp serves the document as workspace-runs.

chant ledger runs --json reads every member’s Op run ledger, <env>/runs__<op>.jsonl on chant/lifecycle, into one table (#4363). A local chant run records under the member that declares the Op, and that member is the row’s member.

ReadRows
chant ledger runs --member <name> --jsonthe runs of the Ops <name> declares
chant ledger runs --where root_member=<name> --jsonthe TerraformApplyOp runs that applied a root in <name>’s directory, whichever member declares the Op (#4482)
chant ledger runs --where labels.Apply=true --jsonevery TerraformApplyOp run; its labels.TerraformRoot names the root

root_member comes from the TerraformRootPath outcome that a TerraformApplyOp’s Init step publishes: the root’s directory relative to the workspace root. The member whose directory holds that path is root_member. null means unknown, never “no member” and never the member that declares the Op (#4508). It is null for any other run, for a run recorded by a chant older than the outcome, and for a run whose Init step failed before it resolved the root: the Op names its root only by key (labels.TerraformRoot), and the root’s directory is resolved by Init from the declaring member’s chant.config, so a run that fails there never learned it. A run whose terraform init command failed has resolved the root already, so its row has status fail and still names root_member (#4512). A reader shows such a run as an apply of an unknown root, with labels.TerraformRoot beside it, and does not count it toward any member’s last apply. A reader that shows a choudoufu or terraform member’s last apply takes the newest root_member row with status ok, and the newest row after it that is not ok. The rows are as fresh as the local branch: chant ledger never fetches.

An Op run, a component run and a CI pipeline run all report progress as one stream of events, one JSON object per line (#4019). Each line follows run-event.schema.json, whose contract version 1 is written by chant 0.124.28 and newer. behold, terragucci and a CI log read the same fields wherever the run happened, and a step’s state is in the event, so nobody parses log text for it.

@intentius/chant exports the types (RunEvent and one type per event) and the one writer. createRunEventWriter({ run, write }) keeps a run’s identity and its sequence, and each emit(body) writes the next line. writeRunEvent and buildRunEvent do the same for a single event. Replay and --follow are chant run events (#4042).

--events-json prints the stream to stdout (#4041). These commands take it.

Commandkind, runtimeWhat the stream holds
chant run <op> on the local runtimeop, local (ci in a CI job, steward in a steward’s turn)each phase, each step, each gate’s decision. runId is the run record’s id
chant run <op> --on fountainop, stewarda phase per stage the steward’s turn reports and a step per tool call, as they happen. runId is the conversation’s id and gitSha is null, since the run builds from whatever the steward’s sandbox holds
chant run --componentscomponentwaves, components, each composition’s phases and steps, and component gates
chant components promote, rollback and redeploycomponentthe same, named <verb> <components> in <env>
chant components fan-outcomponentthe same, with --gate or --wave-gate as a gate phase with no component, settled before the components it lets through start
chant ci run plan and ci run applypipeline, cithe job as an Op named pr-plan or pr-apply: a setup phase, a build phase and the job’s phase, each line a step. runId is the run record’s id and runOrigin is { "forge": "chant" } (#4094), or, with --in-place in a generated forge job, the forge’s run with jobId and attempt (#4156)
chant ci run plan --local and ci run apply --localpipeline, localthe same job, run on the machine that started it. runOrigin is { "forge": "local" } (#4161)
chant components pr-plan and pr-applycomponenta plan phase with a plan step per component, the pull request’s gate as a gate phase, and on pr-apply the waves and components of the apply. A refused apply settles gated. --events-json is these commands’ stream; they have no --progress-json. With --report-url the stream is also copied where a reader outside CI can fetch it, as Pull request reports describes

A component run, a promote, a fan-out and a pr-apply are named by the run id their release records carry, so the stream and the ledger join. In CI that is the CI run’s id, with its runOrigin. An Op run keeps its own run id in CI, as its run record does, with the CI run’s runOrigin. --events-json is refused beside --progress-json, since both print to stdout.

A run on this host keeps its stream in a file, and chant run events <run> --json prints it back, one event per line, the lines as they were written. Replay adds no field and no schema: its lines are run-event contract version 1, written by chant 0.124.28 and newer, and a run from an older chant has none. A reader that wants a run in progress runs chant run events <run> --json --follow and reads until the run-settle line. Which runs keep a stream is on the run events page.

Every event carries the fields in this table.

FieldHolds
$schema, contract, chantthe schema’s $id, 1, and the version of the chant that wrote it
seq, atthe event’s place in the stream, 0 for run-start, and when it happened
runIdthe run’s own id: an Op run’s id, a component run’s id, or the CI run id for a pipeline run
runOriginwhere the run ran, the RunOrigin shape a release record carries: forge (github, gitlab, op, local or chant; Forgejo spells itself github), and repo and url when known. For an Op run in CI it locates the CI run, while runId stays the Op run’s own id. chant is a job the chant runner ran, added within contract 1 by chant 0.124.30. jobId and attempt, the forge’s job and the run’s attempt, are written by chant ci run --in-place in a forge job, from chant 0.124.32
kind, nameop, component or pipeline, and the Op’s name, the component selection as given, or the pipeline’s name
gitShathe commit the run built from, null outside a git checkout
runtimelocal, steward or ci

The type field names the event. A stream opens with run-start and ends with run-settle, whose status is the run’s verdict.

typeAdds
run-startwaves, the component waves in a component run, null otherwise
wave-start, wave-settlewave, counted from 1, and components or status
component-start, component-settlewave, component, and status on settle; blockedBy on a blocked settle
phase-start, phase-settlecomponent (null outside a component run), phase, and status on settle
step-start, step-settlecomponent, phase, step, index; on settle status, durationMs, and skip, error or message when they apply
gate-waitingcomponent, phase, step, index, op (what chant approve takes), gate and point, the answer record id of an open question
gate-resolvedcomponent, phase, step, index, op, gate, resolvedBy, resolvedAt, via and url
run-settlestatus, durationMs, and error on a failed run. A failed chant ci run job adds failure, { code, reason, phase, exitCode }, as its run record says, added within contract 1 by chant 0.124.30

A run, wave, component or phase settles ok, failed, gated or waiting. gated stops at a gate nobody has approved, and waiting stops at a decision point nobody has answered. Neither is a failure. A component the run does not start settles too, with no component-start before it (#4007):

Component statusThe component
blockednever ran, because a dependency failed or stopped at a gate. blockedBy names that dependency. It settles right after the wave whose failure held it back settles, and before the next wave starts, with wave the wave it would have run in
already-appliedwas applied by an earlier attempt that this run resumed, so it did not run again. It settles after run-start, before the first wave, with wave the wave the component had in the derivation the earlier attempt ran. pr-apply’s run-start lists those waves. A resumed components fan-out lists the waves of what is left, laid out again, so there the number can name a different wave, and a reader places the component by name

chant components pr-apply and chant components fan-out write both, and --progress-json prints neither. The two statuses and blockedBy were added within contract 1 by chant 0.124.29. A status set gains values only this way, as an addition within a version that this page lists, so a reader switches on status with a case for a value it does not know. A reader that knows only the four settle statuses can read blocked and already-applied as a component that did not run in this run, and still parses every line. A step settles ok, failed, skipped, cached, gated or waiting. cached is for a cache hit standing in for the step (#4015). In a pipeline run a stage is a phase and a job is a step. A skipped step says why in skip.

skipThe step
receiptis an effect whose receipt matched, so it had already applied
resumedran in an earlier run, which this run resumed from at a later gate
refuseddeclined to go on, and message says why
not-runnever ran, because an earlier step stopped the run
nullwas skipped for a reason the writer can’t tell

A step that starts gets a step-start before its step-settle, and a step that never started, such as one a failure or a gate stopped, gets only a skipped settle. index is the step’s place in its phase as authored, counted from 0, so two steps of one phase with the same name stay apart. It is optional and was added within contract 1 by chant 0.124.28. A writer leaves it out for a step it has no authored place for, such as a steward’s tool call, and a reader without it pairs a start with its settle by component, phase and step in stream order. The emitters report gated for a gate nobody approved, skip: "receipt" for the steps of an effect whose receipt matched, and skip: "not-run" for a step an earlier one stopped.

The two older streams keep their shape behind --progress-json. runEventOfProgress maps a RunProgressEvent, a line of chant run --components --progress-json, onto a run-event body. runEventsOfStepRecord maps a StepRecord line of chant run <op> --progress-json onto a step-settle. When the record holds a gate, a gate-resolved or gate-waiting comes before it. The executor writes one bare skipped StepRecord for several of these cases, so such a record maps to skip: null. New readers should read the run-event stream rather than either older shape.

chant components pr-plan, pr-record and pr-apply write pr-<stage>.json (pr-report.schema.json) and change-set.json under --output. With --report-url <url> (#4007) they also copy them, and the stage’s run events when --events-json is on, where a reader outside CI can fetch them:

<url>/<pr>/<commit>/pr-<stage>.json
<url>/<pr>/<commit>/change-set.json
<url>/<pr>/<commit>/pr-<stage>.events.jsonl

<pr> is the pull or merge request number, or unknown when pr-apply found no pull request for the commit. <commit> is the full sha the stage ran on: the pull request’s head for pr-plan and the pushed commit for pr-apply. A workspace member’s loop (--member <name>) adds /<name> after the commit. There is no index file. A reader that knows the pull request and the commit has the key, and the forge knows both. The events file is named for its stage because a pull request merged by fast-forward gives pr-plan and pr-apply the same commit.

The events file holds the run-event lines --events-json prints, byte for byte. It is uploaded again, whole, after each wave-settle, component-settle and run-settle, so a reader that polls the URL sees each wave as it applies. One upload is in flight at a time, a failed upload as the run goes is a warning that doesn’t stop the apply, and the last upload after run-settle carries the whole stream along with the report and the change set. <url> is s3://<bucket>/<prefix>, uploaded with the AWS CLI and the credentials the job’s environment gives it, gs://<bucket>/<prefix> or az://<account>/<container>/<prefix>, uploaded with chant’s object-store clients, or file://<directory>.

A record kind with an answers block is an answer kind (ws-058). Its answers.points names a JSON points file, validated against decision-points.schema.json, which @intentius/chant exports as @intentius/chant/workspace/decision-points.schema.json. Each input a point reads is named for one of this contract’s outputs, optionally followed by dotted field names.

Input outputRead from
record, decision, work-itema record in records
finding, region, commit, nodegraph --intent; node is any of its nodes, such as the one an intent walk asks a question at (#3351)
memberls
gate, release, environmentstatus
componentgraph --composites
askno output: the asker’s own id for an ad-hoc ask, and who asked (#3403)

Decision Points describes the declaration and the answers.

chant workspace points --json lists every point, and every answer record as a question. Each point carries its candidates and their criteria, what each one means, as the points file declares it: an object of strings for noul and choice, an array of ordered level descriptions for score. A question carries its state and any model’s answer with its confidence, and the model’s own reason for it when the backend gave one (#3345). It also lists why each decider before the quorum did not answer, with a model’s explanation as model_reason. note is what the people who answered wrote with the answer, and relayedBy who relayed it for them (points answer --relayed-by, #3402). retractions lists, oldest first, each answer people took back with points retract and the retraction’s by, on and note (#3351). A point declared adhoc lists adhoc: true, no candidates and empty criteria: each ask brings the question’s text and candidates (points ask --candidates), and its question lists them as asked, { question, criteria }, null for a declared point’s question (#3403). withdrawn says who withdrew a question that no longer applies, when and why (points withdraw, #2888), and is null otherwise; summary.withdrawn counts them. A question is open while it is escalated to people or proposed by a model and not yet confirmed, and not withdrawn, and --open lists only those. chant serve mcp serves the same document as the workspace-points tool. The answer records are ordinary records of the kind, so records --json reads them too, with the answer- warnings above. In a steward’s turn, the answer record is held on the chant/lifecycle branch instead of the working tree (#2786). points lists it with ledger set to its place on the branch (chant/lifecycle:<path>), and path where it would sit in the kind’s directory. records does not read the ledger. ledger is null for a record in the tree. They follow point-answer.schema.json, which the package exports beside it.

chant ci run with --report-url <url> (#4098) adds each job it ran to <url>/runs/index.json, so a reader finds the runs without a forge or a workflow file. The document follows ci-run-index.schema.json, contract 1, and chant 0.124.31 is the first to write it. Besides the usual $schema, contract and chant it has updated and runs. runs is newest first and cut to the newest 200, a cap --run-index-limit changes.

A workspace that declares ci.reportUrl names the URL in one place for its jobs and its readers (#4160). A reader takes it from ci.reportUrl in chant workspace ls --json, which chant 0.124.32 and newer print when the field is set, and reads the index below it.

A run has job (plan or apply), pr (a number or null), commit, status (ok or fail), failure.code for a failed one, member inside a workspace member, started, ended, runId, key, runOrigin ({ "forge": "chant" }, or the forge’s run for a forge job) and signer, which chant 0.124.32 and newer write as the runner that signed the record, or as null for an unsigned run. From the same release a run also has exitCode (#4165), the code chant ci run exited with. A pass gives 0. A failed command passes on its own code when it is 1 to 255, so a wave that waits gives 3 and a plan that moved gives 4, as the exit-code table says, and any other failure gives 1. A reader tells a waiting run by exit 3 even when the report carries no refusal, and treats a missing exitCode as unknown. key is reportKey(pr, commit), the folder of the job’s report, so <url>/<key>/pr-<job>.json is the report.

The index is read and written whole through the same file:// and s3:// paths as the reports. A file:// write goes through a temporary name and a rename. Two runners updating one index at once can lose an entry. That is out of scope, since chant ci serve is one host. An index that is not JSON is replaced with a warning, and one that can’t be read is left alone with a warning. Neither fails the job.

chant workspace graph --intent <region> --json prints the intent graph over one region (#2651). Besides a path, a line range and a graph node id, the region can be path#symbol: a TypeScript or JavaScript declaration, resolved to its current lines (#3034). It can also be a commit sha, when no path or node has the name (#4023): the region is then the commit and the files it changed against its first parent, and the history holds that commit alone. It encodes the walk from a piece of code back to the decisions, artifacts and commits behind it, as #2650 section B describes it. chant emits the graph and a reader such as hud draws it (D8 and D15 of #2524).

A result has $schema, contract, chant, at and workspace like the other documents. region is the id of the region node. history names the commit the history was read from (rev), how the region was followed (line-range, file or directory) and whether the clone is shallow. kinds lists each kind file with its name, the record kind it reads and the form of its commitJoins. The files are the --kind files, or without --kind, every kind the declaration names, in its order (#2680). The name is the record kind’s name, or for a file with no record kind, the file’s name without .kind.mjs. nodes and edges hold the graph, and reasons holds parts of the walk that could not be read. why answers why the region is like this, as described below, and trace is the why chain, from each commit to the work item it names and the releases and deploys that shipped it. A failure has error: { code, message } with a declaration code, a record kind code, intent-region-invalid, or an intent-symbol- code for a symbol that can’t be resolved.

The walk runs in this order, and the nodes are listed in it:

  1. The region, the files under a directory region, and the region’s member.
  2. The commits that touched the region, newest first. A line range is followed with git log -L, a file with git log --follow, and a directory with git log. For the working tree the history is read from HEAD. Each commit may be joined to a unit, a contract and evidence by a kind file’s commitJoins.
  3. The decisions whose constrains cover the region, and the decisions in their supersession chains.
  4. The artifacts those decisions pin, and the URL evidence they cite.
  5. With a work kind passed as --kind, the work items whose constrains cover the region, matched as a decision’s are.
  6. The member links of the region’s member, declared in the declaration and resolved in source as check resolves them.
  7. The findings.
Node kindIdFields
regionregion:<path>, region:<path>:<start>-<end>, region:<path>#<symbol> or region:commit:<sha>path from the workspace root (. for a commit), lines or null, member, at, type (file, dir, or commit for a commit, whose full sha is in commit), generated for a file, node when the region was given as a graph node id, and symbol as { name, qualified, kind } when it was given as path#symbol, with the symbol’s current lines in lines
filefile:<path>path, member, generated
membermember:<name>name, dir, memberKind
commitcommit:<sha>sha, subject, author, date, trailers, pullRequest, signature (the provenance level, judged by the signers at base as records judges a record), lines, the ranges it changed in a line-range region, state: decided, decided-by-window, undecided, or null when no record kind was read, and joins, what chant’s trailers on it say. With --follow-squash, a squash commit also has squash: { pullRequest, forge, ref, head, fetched, followed, commits }, its pull request’s original commits, each with sha, subject, author, date, trailers, signature and joins (#3035)
unit, contract, evidence<kind>:<id>ref, the plugin’s own id, plugin, the kind file that supplied it, and data, its other fields. A decision’s URL evidence is an evidence node with plugin: null and data holding title, url, as_of and sha256
workrecord:<kind>/<id>recordKind, record, path, title, state, closed, valid, reasons, provenance, owner, ready, blockedBy, implements, needs, source (the gap it came from as { finding, region, decision?, artifact? }, or null), supersededBy, constrains, warnings, the work- warnings, and reviews when a review session led to the item (each { id, recordKind, record, path, state, comments }, #3154). Read only with a work kind passed as --kind
decisionrecord:<kind>/<id>recordKind, record, path, title, state, closed, valid, reasons, provenance, decided_by, decided_on, decidedIn (the commit that decided the record, as { sha, date, subject }, or null), reviews (agree, dissent, abstain and open concerns, the dissents with neither addressed_by nor withdrawn_on), supersededBy, supersedes, and constrains, the entries that cover the region with their granularity
artifactartifact:<path>path, anchor, pinnedSha256, currentSha256 and pinState: the state of a current decision’s pin, or unpinned when only superseded decisions pin it
linklink:<n>row, the member link row
runrun:<id>an agent run that made a commit in the walk (#3033), from the run ledger: run, recorded, state, harness, model, provider, by, agent, unit, startedAt, endedAt, outcome, usage, cost, transcript, and instruction and lease (#3034). A run a Chant-Run trailer names and the ledger lacks has recorded: false and nulls
findingfinding:<code>:<n>code, message, and concerns, the ids of the nodes it is about. A plugin’s finding also has plugin, the kind file that returned it, and refs, as the plugin gave them. With a work kind read, every finding has addressed and addressedBy, the work items addressing it as { id, state }
Edge kindFrom, toFields
constrainsdecision or work item to region, file or contractgranularity (path, member, contract or issue) and entry, as written
pinsdecision to artifactpinnedSha256 and pinState for that decision’s pin
touched-byregion to commitlines
produced-bycommit to unit
servesunit to contract
supersedesthe newer decision to the one it replaces, derived as records derives it
cites-evidenceunit, contract or decision to evidence
linksconsumer member to producer member
withincommit to a decision whose path window it falls in, or to a work item whose path window it falls instate: decided when the decision’s own unit made the commit, decided-by-window otherwise, and worked for a work item
implementswork item to the decision it carries out
needswork item to a work item it waits on
addressed-byfinding to a work item that addresses it
carriescommit to a decision or work item its Chant-Record trailer names, or to the work item its Chant-Lease was taken on
made-bycommit to the agent run that made itjoinedBy: trailer when the commit carries the run’s Chant-Run, record when the run’s end lists the commit, and patch-id when it has neither and its git patch-id --stable equals a commit’s the run’s end recorded, with recordedAs naming that commit (#3036). With --follow-squash, squash when the commit squashes a pull request whose original commits join the run, with via naming them (#3035)
worked-onagent run to the work item it worked on and each record it names, when a kind read has them (#3034)

A decision covers a commit from the commit that decided it until the window of the record superseding it opens. The commit that decided a record is the one that last moved it into an approved state and kept it there: a state its kind’s approval ranks above 0, or one of its closedStates for a kind with no approval. For the decision kind that is decided, ratified or superseded. A record added in an approved state was decided by the commit that added it. A record not approved in the history read has none, and its window opens at the commit that added it. records --json gives the same commit as decidedIn on each record of a kind with approval ranks that is not a work kind. A commit outside every path-granularity window is intent-commit-undecided, and its state is undecided.

A commit inside a window can still depart from the decision, and chant can’t tell whether it does (#2656). So each commit inside a path-granularity window has a within edge to the decision, and the edge says whether the commit is the decision’s own work. It is when a plugin’s commitJoins joins the commit to a unit and one of these holds: the unit or its contract lists the decision in decisions, by record id or as <kind>/<id>, or the decision constrains the contract the unit served. The commit’s state is decided when it is the own work of at least one decision whose window holds it, and decided-by-window when it only falls in windows. A decided-by-window commit is something for the person to judge. The text walk lists it under its decision and asks whether it is drift, a superseding decision nobody wrote down, or the decision being wrong.

A work item’s window runs from the commit that added its record to the commit that moved it into a closed state, done or dropped, that commit included. While the item is open, the window runs to the revision read. A commit inside the window of a work item that constrains the region by path has a within edge to the item with state: "worked". The commit’s own state still comes from the decisions. A work item addresses a finding when its source.finding is the finding’s code and its source.region contains the region or lies inside it, with overlapping lines when both name the same file. It also addresses an intent-pin-drifted, intent-pin-missing or plugin finding that concerns a decision the item implements. The walk brings in a work item that addresses a finding, and the decisions and work items that a work item in the graph implements or needs, one link deep.

A plugin’s finding is about the commit it was returned for, so that commit’s id comes first in concerns. Each of its refs that names a node in the graph follows as that node’s id. chant first tries a ref as a node id, and then behind each node kind’s prefix, such as commit: or artifact:. After that it tries the ref as a decision’s record id or the start of a commit sha. A ref that names nothing in the graph stays in refs only. Plugin findings come after chant’s own, in commit order. A decision that constrains a path below a directory region has a constrains edge to each file under that path, and it does not count as constraining the whole region.

why is the answer hud’s “why is it like this” view reads (#3034). It is derived from the graph and adds no node. Every id in it names a node in nodes.

FieldMeaning
linesthe lines accounted for: the region’s range or symbol, the whole file, or null for a directory
blamethe current lines, top to bottom, as spans { start, end, commit, sha, runs, narrowedBy, joinedBy }. git blame names the commit that last wrote each line, at --at or in the working tree, where a line not committed yet has commit: null. runs names the run nodes behind the commit, joined as made-by joins them, and joinedBy lists how, without repeats, so patch-id marks lines whose run is known by content only (#3036). When a run’s end recorded hunks for the commit, a run whose hunks miss the line is left out and narrowedBy is hunks. A followed squash’s span also has via: the original commit that last wrote the lines, by git blame at the pull request’s head, and runs keeps only that commit’s runs and the squash’s own. via is empty when the file at the head differs from the squash’s (#3035). Empty for a directory
decisionsevery decision node, most relevant first, as { decision, relevance, current, closed, lines }. relevance is carried when a commit or run that made current lines carries the decision out (through a unit, a Chant-Record or Chant-Lease trailer, or the run’s work item and records), else the granularity it constrains the region at (path, contract, issue, member), else related. Current decisions come first, then by relevance in that order, then the most current lines carried out, closed before open, the narrower path, and the later deciding commit
runsthe runs that wrote current lines, most lines first, as { run, lines, commits, unit, decisions, joinedBy }. joinedBy lists how the run joins those commits, as their made-by edges say. unit is the work item the run record names, { id, kind, node }, with its node when a work kind read has it. decisions lists the decisions its work item implements and the decision records it names. For a directory, every run in the walk, the latest start first
explainedwhether a current decision governs the region or is carried out by what made its lines
gaps{ code, message, lines? } with the closed codes intent-why-no-decision, intent-why-no-run, intent-why-uncommitted and intent-why-run-ambiguous

A recorded run’s work item and the records it names are carried by each commit the run made, the way a Chant-Lease item and a Chant-Record are, so the commit can be a decision’s own work through its run. why was added within contract 1, so a reader that finds no why is reading an older chant, and falls back to the graph.

A commit joins a run in this order: its Chant-Run trailer, then the run’s own list of commits, then, only when neither gives a run, its patch-id (#3036). A patch-id join never overrides the others. A commit one run claims by trailer or record whose content matches a commit another run recorded keeps its join, and the walk reports intent-commit-join-conflict. A squash commit is followed to its pull request’s original commits only with --follow-squash (#3035): the read then fetches a pull request ref the clone lacks, and a ref it can’t read is squash-unfollowed, never a failure. patch-id and squash in joinedBy, recordedAs, via, squash and the joinedBy fields of why were added within contract 1: a reader that finds no joinedBy on a span is reading an older chant, and a reader that switches on joinedBy values treats one it doesn’t know as a join it can’t vouch for.

The document joins the others by the member name (member on region and file nodes, and member:<name> nodes), by the record id (record on a decision node, records[].id in graph --kind and records), and by the commit id (at and provenance.commit).

trace follows each commit of the walk to what shipped it (#4023), so “who asked for this, and who let it ship” takes one read. It adds no node and changes no other field. trace.commits holds one entry per commit node, in the same order. trace.releases and trace.deploys hold each record those entries name once. The fields below come in the order a reader follows the chain.

trace.commits[] fieldHolds
commit, shathe commit node and its sha
work{ state, items, problems }, the commit link judgement of #4029: linked, unlinked, wrong or merge. items names each work item a Chant-Record or Chant-Lease trailer links, as { id, node, source }. null when no work kind was read
windowMatchesthe work items whose window holds the commit, the within edges with state: "worked", as { id, node, source }. A window match does not link the commit
tag{ state, green, revoked, ignored }, judged as release cut judges tags (#4031). state is revoked, green or none. A counted tag has tag, tagged, signer and source, and a revoked one also phase and run. ignored lists the tags that don’t count
releaseseach { release, link, source }, where release is a releaseDigest. The releases cut from the commit have link: "cut-from". When there are none, the first release cut from a commit that has it in its history is listed with link: "contains"
deployseach { deploy, env, link, source }: per environment, the first deploy record built from the commit (built-from) or from a commit that has it in its history (contains)
trace.releases[] fieldHolds
releaseDigest, label, memberthe release
commit, tagthe green commit it was cut from, and that commit’s tag
cutsits cuts, each with its label, actor and timestamp, whether it is signed, and its runOrigin
gatesthe release gate’s resolutions for it, oldest first
deploysthe ids of its deploy records

A gate resolution, in gates and in a deploy’s admittedBy, has these fields.

Gate fieldHolds
op, gate, environmentwhere the resolution sits in the gate ledger
resolvedBy, relayedBywho resolved it, and who carried the approval for them, or null
channelthe channel it was authored on: cli, mcp, acp, or null when the record doesn’t say
atthe resolution’s timestamp
planDigest, changeSetthe plan it approved, and that digest again when a change set is stored under it, else null
empty, sealedwhether it passed an empty change set, and whether it carries an ssh seal
urlthe address it was resolved at, or null
trace.deploys[] fieldHolds
iddeploy:<member>/<env>/<component>/<runId>@<timestamp>, with . for a ledger of no member
the ReleaseRecord fieldsas the record in <env>/releases.jsonl holds them, with approver and runOrigin set to null when absent
release, releaseSourceits releaseDigest, or with none the one on the release gate resolution its admission names, or null for a deploy made from no release
admittedBythe gate resolution its admission names, or null
plan{ document, source }, the release plan its digest names in _plans/ (ws-055), or null

The joins are joinRelease’s (#4043). A commit has another in its history when it is that commit or one of its descendants in the history read.

Every link has a source object. Its ref names the record the link comes from, and its field and value say what made the join, such as Chant-Record, commit, releaseDigest, admission or gitSha.

source.refFor
a commit shaa Chant-Record or Chant-Lease trailer
refs/tags/ci/<green or revoked>/<sha>a ci tag
a work record’s filea window match
chant/lifecycle:<path>a ledger record, such as a release file or a line of a .jsonl

The chain reads the ledger of the region’s member. A region in no member reads every member’s ledger and the workspace’s own. It reads local tags and the local chant/lifecycle branch only. trace.reasons holds ledger-unreadable for a ledger that could not be read and declaration-invalid for tags that could not be judged. The rest of the chain stands.

#3171 lets a work item’s evidence cite what the chain names. #3616 has each gate name the decisions that cover its member. The chain joins records that already exist and adds neither. chant 0.124.29 is the first to write trace and to take a commit as the region. Both are contract 1 additions.

chant workspace graph --intent --record <id> --json prints a different document, intent-record: the walk for one decision over every path: and member: entry its constrains lists. A path: entry’s history is read as a region’s is. A member: entry’s history is its directory’s, less the directories of the members inside it. Each commit appears once, and only the commits inside the record’s window are listed. The head fields, at, workspace, kinds and reasons are as in graph --intent.

FieldHolds
recordid (record:<kind>/<id>, the id of the same record’s decision node), recordKind, record, path, title, state, supersededBy, decidedIn and constrains
record.constrains[]every entry as written, with its granularity, its path (for a member, the member’s directory), whether it exists and whether it was walked
historyrev, the commit the history was read from, and shallow
windowfrom, the commit the window opens at, and until, the commit that closes it, or null
commits[]the commits in the window, newest first by commit date
countscommits, a count for each bucket (own, worked, withinOther, unexplained), and outsideWindow, the commits that changed the region outside the window

A commit has sha, subject, author, date, trailers, pullRequest and joins as a commit node has them. unit is the unit a commit join gave it, or null. runs lists the agent runs that made it, each with id, recorded, state, harness, model, provider, by, agent, unit and joinedBy, which is patch-id for a run joined by content, with recordedAs (#3036). It is squash for a run that a followed squash’s original commits join, and via names them (#3035). With --follow-squash, a squash commit also has squash as a commit node has it, less the signatures. It is own when an original commit’s trailers carry the record. entries names the constrains entries whose history lists it, and files the files it changed in the record’s region, from the workspace root. For a merge, files is read against its first parent. The bucket is the first of these that holds:

bucketThe commit
ownis the record’s own work, judged as for a within edge with state: "decided"
workedis in the window of a work item in workedBy: one that is not dropped and that implements the record or covers one of the commit’s files by a path: entry
within-otheris in the window of a decision in alsoWithin: another decision whose path: entries cover one of the commit’s files
unexplainedmatches none of these

workedBy and alsoWithin list every match as { recordKind, record, state }, whatever the bucket. If the record can’t be walked, the result is a failure whose error.code is the declaration’s code, the record kind’s, or intent-record-unknown.

chant reads seven trailers of its own on a commit (#3149, ws-075). They point at facts kept by id elsewhere, so a commit that keeps its message through a rebase or a cherry-pick keeps its joins. chant never makes a commit; the writer adds these lines.

TrailerValuejoins field
Chant-Agentthe agent session that wrote the commit (ws-067)agent
Chant-Leasethe fencing token of the work lease the commit was made underlease: { token, item }, where item is the work item a lease history on the local chant/lifecycle branch names for the token, or null
Chant-Runthe id of the agent run that made the commit (#3033)run, and a made-by edge to the run’s node
Chant-Record<kind>:<id>: a record the commit carries out or changes, by its kind’s name. Repeatablerecords: { kind, id, node } each, with node the record’s node id when a kind read has it, else null
Chant-Applied-By, Chant-Applied-At, Chant-Applied-Commiton the commit that applied a leased branch: who, when (ISO 8601) and the branch tip appliedapplied: { by, at, commit }, or null without Chant-Applied-By

Keys compare without case, as git’s do, and a malformed Chant-Record value is skipped. Every other trailer is a plugin’s. A carries edge runs from the commit to each record and lease item a kind read has, and the commit is the own work of a decision it carries, or of a decision a work item it carries implements. Commits made before these trailers, or by tools that write their own, keep their plugin joins.

chant workspace patch <range> --json prints the hunks of a diff for a reader that runs no git. <base>..<head> compares two trees. <base>...<head> starts from the merge base, as a work branch needs. A single commit is read against its first parent, or against the empty tree for a root commit.

FieldHolds
rangespec as given, form (range, merge-base, commit or worktree), and the base and head commits; head is null for worktree
pathsthe --path filters, from the workspace root
limitsfileBytes, 65536 unless --max-bytes sets it, and totalBytes, sixteen times that
files[]each changed file under the workspace root, in git’s order
summarythe counts of files, additions and deletions, and whether any file is truncated
File fieldHolds
path, fromthe path, and for a rename or a copy the path it came from
changeadded, modified, deleted, renamed or copied
binarywhether git reads the file as binary
additions, deletionsgit’s line counts, or null for a binary file
hunkCount, byteshow many hunks git wrote for the file, and their text in bytes, headers included
hunks[]each hunk’s header (the @@ line), oldStart, oldLines, newStart, newLines, and lines, each with its leading space, +, - or backslash
truncatedwhether hunks holds less than git wrote, because the file passed fileBytes or the document passed totalBytes; its last hunk may end early

A revision that names no commit fails the read with revision-unknown, and a --path outside the workspace with patch-path-invalid.

chant workspace check --changes <base>..<head> --json reads the join between records and code forwards (#2773), where graph --intent reads it backwards. It maps each path the diff changes to the current records whose constrains cover it. A decision is current when nothing supersedes it and its state is decided, decided or ratified for the decision kind. A work item is current while it is not in a closed state. A path: entry covers the path it names and everything under it, and a member: entry covers every path in the member’s directory. <base>...<head> diffs from the merge base, and <base> alone diffs to HEAD. The declaration and the records are read at <head>, so a change that adds the work item for itself is covered.

A record kind may name an outOfScope field (out_of_scope on the decision and work kinds): workspace paths, files or directories, that a change carried out under the record must not touch. The records in hand for the change are the work item --work <id> names and the decisions it implements. Without --work, they are every current record that covers some path the diff changes. A path any of them lists is out-of-scope, and a record never covers a path its own out_of_scope lists.

Beside the head every document carries, range gives the range as it was given (spec) and the base and head commits. severity and ignore come from the declaration’s changes block, and --severity replaces the severity. work is the work item in hand, or null. kinds lists each kind read with its role: decision, work, or other for a kind that covers nothing. Each entry in paths has the path from the workspace root, its change (added, modified, deleted or renamed, with the old path in from), its member, whether it is generated (as graph --intent reads a region’s generated), its status, the records in coveredBy and outOfScopeBy with the entry that ties each to the path, and the glob in ignoredBy.

statusMeaningFinding
covereda current record covers the pathnone
uncoveredno current record covers itchange-uncovered
out-of-scopea record in hand lists it in out_of_scopechange-out-of-scope
ignoreda changes.ignore glob matches itnone
recordit is a record file of a kind read: the change is to the records themselvesnone

A finding’s id is finding:<code>:<path>, one per path. Its severity is warn or fail. records lists the records an out-of-scope finding concerns. triage is { finding, region }, the gap source a work item takes. The finding-triage decision point (#2741) reads it to seed a work item or a decision. The work kind’s source.finding accepts both codes. When a work kind is read, addressed and addressedBy say which work items came from the gap: an item addresses the finding when its source.finding is the finding’s code and its source.region is the path or a directory above it, in any state, as graph --intent reads a gap source. The point’s inputs are the finding’s code, message and addressed, and the path’s path, member and generated (#2794). With severity off there are no findings, and ok is false only when severity is fail and there is a finding, which also exits 1. When the check can’t run, the document holds only error. Its code is revision-unknown for a range that names no commit and work-item-unknown for a --work id no record has; otherwise it is the declaration’s or the record kind’s code.

scope holds the write scope check (#2548). It is null unless the declaration at <base> has a writeScope block or agents. The declaration, its record kinds and the trust policy are all read at <base>, so a change can’t widen its own scope. scope.commits lists each commit in the range except merges. An entry names the commit’s principal and class, says whether the principal is attested, and gives the agent session it was judged as. A commit with a Chant-Agent: <name> trailer is judged as that session, and one by a principal a session lists is too. Otherwise the commit’s principal is its attested signer when the policy at base attests it, or else its author’s email, and its class comes from the role grants at base. class is human, agent, runner, service, or a domain class a pinned package supplies (#3080), so a reader that switches on it treats any other name as a domain class. A commit judged human while writeScope names a class no pinned package supplies is one finding with write-scope-class-unknown and a null path. Each path a restricted writer wrote outside its scope is a finding in scope.findings. For a record file the finding also names the verb. An added file is new and a removed one delete. A changed file is review when only its reviews (or a session’s verdicts) changed, and close when a session entered a closed state. Any other change is amend. A scope finding fails the check whatever the severity, so ok is false and the command exits 1.

links says whether each trunk commit of the range names the work item it belongs to (#4029). It is null when no work kind was read, and contract 1 gained it in chant 0.124.28, so an older chant writes no links key. links.kinds lists the work kinds read, and links.commits has one entry for each first-parent commit of the range, oldest first, merges left out. A commit is linked when it carries a Chant-Record: <kind>:<id> trailer naming a record of a work kind, or a Chant-Lease trailer that a lease history on the local chant/lifecycle branch resolves to a work item with a work record. A window match, the intent graph’s worked bucket, does not link a commit. The records are read at head.

stateMeaning
linkeda trailer names a work record that exists, or a lease that resolves to one. ids lists them as <kind>:<id>. A checkout with no local chant/lifecycle branch can’t read lease histories, and takes a lease as linked with empty ids
unlinkedthe commit carries neither trailer. Finding commit-unlinked
wrongtrailers name something and none links. problems has each such trailer as written, with a message. Finding commit-wrongly-linked

A finding in links.findings has id (finding:<code>:<commit>), code, commit, message, a fix line and the severity, and follows severity as findings do. At fail one fails the check, and at off there are none. ci list --json carries the same judgement for each commit of the trunk branch as work, with the further state merge, and null when no work kind is declared (chant ci list). chant 0.124.28 added that field too.

chant serve mcp serves the document as the workspace-changes tool, and an Op that changes the checkout runs the same check on its own branch with the changeCoverage activity.

chant workspace graph --composites lists each composite instance the members declare, joined to the components that can deploy it (#2662). It is the data a deployment menu is built from. chant lists every match and says how each was made. Under the chant and hud boundary of #2657, the reader chooses what to offer.

An instance’s id is the composed graph’s compositeInstance, <member>/<instance>, and its nodes are the composed node ids. A component’s id is <member>/<name>. Each entry in an instance’s components names a component by that id and says how it matched:

FieldValue
bycomposites when the component’s contract lists one of the instance’s kinds. name when the contract lists no composites and the component’s name joins a kind or the instance’s name with the core joinKey()
against, valuekind or instance, and the name that matched
labelexact, or folded when only case or punctuation differ
viamember when the component and the instance are in the same member, link when the component’s member reads the instance’s member through a resolved member link, and unlinked otherwise

An instance no component matches has an empty components. When the whole list is empty, or no instance has a component, reasons holds a code from the closed list that says why.

Each component also lists the runtimes that can host its deploy in runtimes (#2674). The list starts with the built-in local runtime and adds each lexicon in the member’s chant.config.ts whose opRuntime hosts component runs, which is the list chant run --components <name> --on <runtime> accepts in that member. Each entry has name, lexicon (null for local), default and command, the exact command line to run in the member’s directory. A reader offers only these runtimes and never guesses one. When the member’s config or one of its lexicons can’t be read, the member’s runtimeReasons says so.

Each component also lists the environments it may be deployed to in environments (#2695). This is a contract version 1 addition, like runtimes: a reader that doesn’t know the field ignores it. The list starts with local, the default, which chant run --components deploys to without --env. It goes on with the names the member’s chant.config.ts declares in environments, then the environments with a release ledger for the member on chant/lifecycle. An entry’s source says where its name came from: config, ledger, or builtin for local when neither names it. Its command deploys the component there and carries --env unless the environment is the default. When a component declares environments of its own, chant 0.103.0 adds the names only it declares with the source component, and gives every environment it declares a site object, described on the graph page (#3153). The other entries have a null site. A ledger environment the config doesn’t cover is left out, because chant run --env would refuse it. The member’s environmentReasons says so, and says when the config declares none or can’t be read.

chant workspace status --json lists each member’s gates in gates, read from the member’s gate ledger on chant/lifecycle (#2674). That is the ledger chant approve writes to. A reader shows who has approved what, and how many approvals are still needed, without running git show on the branch. Each gate has its component, name, env and planDigest, a state, the approvals that count with principal, channel and at, the number needed, and approve, the exact chant approve line to run in the member’s directory. The state is read the way a run reads the ledger, and nothing is written.

stateMeaning
approvedThe approvals recorded since the gate was reached, for its plan, pass it.
pendingThe gate is waiting for approvals.
expiredThe gate isn’t approved and its pending fact has expired, so the next run records a fresh one.
supersededThe gate isn’t approved, and an approval recorded since it was reached names a different plan, so that approval doesn’t count.

A gate the declaration at base names in identity.gates has signed set to { "class": <class or null> } (#3163). Only an approval sealed with chant approve --sign by a key the signers file at base lists for its approver counts toward it, and, when class is not null, only one whose approver the role grants at base put in that class. Approvals that don’t meet the rule are left out of approvals and state, as a run leaves them out, and approve ends with --sign. The caller adds --actor <principal>. signed is null for every other gate.

A gate also has gitSha and runId (#4020), read from its pending fact: the commit the run reached the gate at, and the run that reached it. A reader joins the gate to a release by gitSha, to a steward’s lastRun by runId, and from a release back to the gate by its admission. See Fields added within version 1.

A gate also has decisions (#3616), the current decisions that cover its member. Each is written <kind>/<id>, most relevant first. A reader names the decision a gate enforces from this list. It needs no chant workspace graph --intent walk, which reads the member’s git history and can take minutes on a large repository. The list is read from the records alone. A decision covers the member through a path: constraint on the member’s directory or a directory above it, through member:<name>, or through a path: inside the directory that the member holds. A superseded covering decision is replaced by the current decision at the end of its chain. The order is the one why.decisions uses in the intent graph, minus the relevances that need history (carried, issue and contract). Every gate of a member carries the same list, and it is [] when nothing covers the member.

A gate whose planDigest names a stored change set also has changeSet, that digest (#4022). chant change-set show <changeSet> --json prints the document, so a reader shows what an approval would approve before anyone approves it, and what it approved after. See Stored change sets.

gateLedger names the directory the gates were read from. Its reason holds a code from the closed list when there is no ledger branch, no gate ledger for the member, or a gate ledger that can’t be read.

chant workspace status --json prints each member’s fields: every field its kind declares, set from the entry or the kind’s default (null when it has neither), or null when the kind declares none or no pinned package supplies it (#3151). An object field is an object of its own fields. When the entry gives a value of the wrong type, status prints the default and chant workspace check fails with WSP005. chant 0.103.0 added the field to contract version 1. For an app member it holds the scripts, the variable names and the health path an orchestrator runs the app by.

chant workspace status --json lists each member’s box, the capabilities its box block declares, each with name, broker and scope (#2726). It is null for a member with no block. A broker reads the scope it enforces for a box here. chant workspace check reports a box that holds a literal secret with box-credential-declared and a capability with no broker with box-capability-unbrokered, each carried as code on its WSP finding.

A box block with a host also carries isolation: the ports, state paths and cookie names chant derives from the box’s identity (#2727), or null without a host. A runtime that plants or starts a box sets these values instead of choosing its own. check reports two boxes on a host sharing one with box-isolation-collision, and a hard-coded machine path with box-isolation-literal. The derivation is on the declaration page. chant never expands the environment reference in a state path and never opens a port.

Each box also has services, what the block declares for the box’s supervisor (#2880). The list keeps the declaration’s order and is [] for a block with none. A reader has the declared services before a converge tick reports them in lastTick. status prints each cmd as declared and never expands its ${VAR} references. The declaration page describes the fields.

A box block may declare a factory and a listing (#3146, ws-077), contract version 1 additions that readers who don’t know them ignore. status --json prints both under the member’s box, and graph --json prints them on the member’s entry as box: { factory, listing }, or null when the member’s box declares neither. graph reads the declaration at the revision --at names, so it gives them as they were then.

factory has every field, with the defaults filled in: builds (the members the factory builds, in declaration order), check ({ run, kind }, or null), checks (a directory, or null for the orchestrator’s choice), builders (a member, or null), tiers, builderFor and publish ({ forge, repo, base, branchPrefix, head }, or null). A null base means the repository’s default branch. The branch prefix defaults to chant/work/, and head names the fork the branch is pushed to, or stays null. At most one member’s box has a factory, so a reader takes the first non-null one.

tiers lists the builder tiers as declared, each { tier, agent, kinds, session } with kinds and session null when not given, and [] when the factory declares none. builderFor resolves them per member of builds and per tier into { agent, session } (#3152). The entry for the member’s kind wins over the tier’s entry without kinds. A tier with neither is absent. An orchestrator holding a work item’s tier, from the item or the slice-tier answer, looks up the agent there. Both fields are new in chant 0.103.0, within contract version 1.

listing is { published, title, line, cover }. published is true unless declared otherwise, title and line are "" when not declared, and cover is { path, sha256 }, the file from the workspace root and the sha256 of its bytes in the tree read (null when the file can’t be read), or null when none is declared. A reader can serve the cover from the repository and cache it by hash. A tool changes a listing with chant workspace box listing set (#3308), never by editing the declaration itself.

status --json also prints the box’s publisher, the command its box block names to publish the box’s work, or null (#3165, ws-088). A surface reads three things here in place of what a box’s run script used to put in its environment: whether to offer a publish (publisher is set), where an applied item goes (a pull request on factory.publish.repo, or the box’s checkout when factory.publish is null), and what an ask constrains (member: and the first of factory.builds).

The box’s ship (ws-100) says how it ships its staged work to its own site, or is null. A surface offers Ship when it is set and shows pending.files as the count of changes waiting to ship. To ship, it runs chant run <ship.op> in the member’s directory with the person’s principal in CHANT_SHIP_BY, and passes ship.gate the way it passes any Op’s gate. serving.commit is the commit the box’s site serves: the latest release in ship.env’s ledger under the member.

Both documents carry a top-level plantable: { plantable, box, reason }. A workspace is plantable when exactly one member’s box block declares services, and box names that member. Otherwise box is null and reason is box-none or box-several. Plantability is never a check finding, since a records-only or infra workspace is valid and isn’t plantable. A host such as a studio’s planter reads this field rather than reimplementing the rule.

A box block may also declare replicate, where the box’s work in progress is pushed (#3172). status --json prints it under the member’s box and reports where each ref stands in the top-level replication, as Work in progress that survives the box describes.

chant workspace agent --json lists the session’s protected paths in scope.protected, each { path, except }, so a factory’s guard enforces on a build’s diff what check --changes enforces on its commits.

chant workspace status --json also lists each member’s stewards in stewards (#2731), a contract version 1 addition that readers who don’t know it ignore. A steward is the one writer that runs a member’s operational Ops: the fountain lexicon’s Agent and Teammate, or chant operator --steward in the box. An entry names the steward and the file that declares it. form is where it runs in the environment asked for, and forms is the declared default with its per-environment exceptions. capabilities lists the box capabilities the steward reaches through a broker, joined with the member’s box block (broker, and declared: false when the block doesn’t list one), and vault names the vault a steward holds when it isn’t behind a broker. lease is the lease a local steward holds while it runs, or null. Each entry in ops has the Op’s schedule, the env its runs are recorded under and its lastRun from the run ledger; the schedule is null for an Op run only on request, and lastRun is null before the first run. Only members of kind chant with a config of their own are read, and only their *.op.ts files are imported. stewardReasons says when a steward or a last run could not be read. An Op also has changesCheckout and workLease (#2748): workLease is null for an Op that runs under no work lease, and otherwise names the work kind whose ledger holds the lease and lists in held the leases the steward’s turns of that Op hold, by holder <steward>/<op>@<process>. A ConvergeOp also has lastTick, its newest tick on the converge ledger with the rules that fired and the resources its observer step reported, and null for any other Op (#2778). An Op the steward runs beside its turns has beside, with ready and the Op’s own lease, and every other Op has beside: null (#2861). lastRun.phases gives each phase’s status and durationMs. inFlight is the run in flight now, or null: its current phase and step, the phases it has finished and the newest activity lines its steps reported through the file in CHANT_RUN_ACTIVITY. The run keeps it under the checkout’s git directory, not on chant/lifecycle, and removes it once its ledger record is written. hud and the studio read this to show which steward owns a box, what it last did and which work item its current turn holds.

A run that stops on an open decision point has status: "waiting", and its lastRun.point names the question: its answer record’s id, the point, its state, path, subject and since (#2749). The state is the question’s now, read as points reads it, so it is answered once a person has answered. When the questions can’t be read, or the answer record is gone, it is the state the run ledger recorded. The steward’s waiting lists the questions still open, one for each Op whose newest run is the steward’s own and stopped on one, with the Op and the run. It leaves out a question answered since, and one whose Op has a newer run in flight that has not written its record yet: the Op’s lease or one of its work leases was taken after the waiting run ended and is still held. In points --open the question carries askedBy, which names the steward and the run that asked it. hud joins the two by id to ask a person. The steward never answers a question itself, and runs the Op again on the first round after a person does.

chant release list --json prints the member’s releases (#4026, ws-104). A release is one green commit of one member, compiled: commit, the artifactDigests built once, and targets, one per environment with its templates and params. Each release also has its label, its cuts, and environments, the environments whose latest deploy record names it in releaseDigest, with the components that do. The document is at v1 within contract 1, and its failures reuse ledger-unreadable and ledger-malformed. The release page describes the cut and the digest.

A reader joins a release to a deploy record by releaseDigest, and to the commit’s CI state by commit and the ci/green/<sha> tag. A release whose commit is revoked keeps its file; the revocation is read from the tags.

The four records join through the release digest (#4043). A commit reaches its releases through the commit of _releases/*.json. A release reaches its gates through releaseDigest on the pending facts and resolutions of _gates/release.jsonl, and its deploy records through releaseDigest on every environment’s releases.jsonl. A deploy record written before chant 0.124.29 has no releaseDigest, and a deploy that was not made from a release never has one; neither joins to a release. A run --components deploy has one only when it ran with --release, so a reader never treats a missing releaseDigest as a deploy of an uncut commit. The library function joinRelease does the walk, see Joining a release.

The release model adds these fields to contract 1. Every one is optional or nullable, so a reader treats its absence as an older chant. A row’s floor is the first release that ships the issue that adds it. The rows still waiting name the issue.

FieldOnHoldsFloor
_releases/<releaseDigest>.jsonchant/lifecyclethe release: version, releaseDigest, member, commit, artifactDigests, targets0.124.28
_releases/cuts.jsonlchant/lifecycleone line per cut, with label0.124.28
_releases/templates/<digest>.txtchant/lifecycleeach template’s bytes, by content digest0.124.28
signatureeach cut linethe actor’s ssh signature in the chant-release namespace over the digest, the label, the actor and the time; null for an unsigned cut (#4031)0.124.28
the releases output schema, v1the read contractreleases with their targets and the environments running each0.124.28
releaseDigestReleaseRecordthe release a deploy came from. components promote --release and run --components --release write it, and rollback and redeploy copy it from the record they restore (#4043). With the record’s env it names the release target0.124.28 for promote --release; 0.124.29 for run --components, rollback and redeploy
releaseDigestPendingGateRecord, GateResolutionRecordthe release a gate binds, on a release gate: the gate components promote --release passes, under the op release0.124.28
releaseDigeststatus gate itemthe same0.124.28
emptyGateResolutionRecordtrue for a pass over an empty change set0.124.28
_change-sets/<digest>.json, keyed by document digestchant/lifecyclethe document a pull-request gate, a release gate or an empty resolution bound0.124.28
releaseDigest, environmenta release gate’s change-set documentthe release and environment it was planned for, both in its digest0.124.28
the change-set-show output schema, v1the read contractone stored change set, each entry with its graph node0.124.28
changeSetstatus gate itemthe stored change set the gate binds0.124.28
featureFlagsstatus membereach flag, its value per environment, the work item it hides and whether it is due for removal (#4024)0.124.29
featureFlagsstatus membereach flag and its value per environmentthe release with #4024
the delivery-metrics output schema, v1the read contractthe four DORA metrics per member and environment (#4039)0.124.29
unchangedSinceReleaseRecordon a record of a component a run under a release skipped, its inputs unchanged: the record of the deploy that stays, { env, runId, timestamp }, whose digest it repeats. Nothing was deployed (#4695)0.124.65
normalizedInputsReleaseRecordon a skip record, the input files that differed between the two commits and were the same after the component’s inputs.normalize, each { path, command } (#4718)0.124.68
artifactDigests[].ref_releases/<releaseDigest>.jsonon an image handed to the cut, <repository>@<digest>. It is in the release digest, so a chant older than its floor reads such a release as one that does not match its digest. Handed to the cut by digest (#4694)0.124.65

chant workspace metrics --json prints the four DORA metrics per member and environment (#4039). The document follows delivery-metrics.schema.json at v1 within contract 1, and chant 0.124.29 is the first to write it. behold and a Grafana panel read the same numbers from it, and the delivery metrics of #3990 can adopt it. chant computes the document from the records above and stores nothing of its own. The revocations come from the counted ci/revoked/<sha> tags, read from local tags at read time.

window names the span counted, since to until, and failureWindowDays the days after a deploy in which a revocation or a rollback fails it, from the declaration’s metrics block or 7. Each entry of members[].environments holds deployments, leadTime, changeFailure, restore and the failures behind them, each naming its deploy by runId and timestamp. A member whose ledger can’t be read is listed with ledger-unreadable, and one with lines that can’t be read with ledger-malformed; the rest is counted. The workspace metrics page defines each metric.

A deploy record written before chant 0.124.29 may lack releaseDigest. It counts as a deploy made from no release: its commit is its gitSha, and its change is counted in leadTime.fromCommit. | trace | intent | the why chain from each commit to its work item, ci tag, release, gate resolutions and deploys (#4023) | 0.124.29 | | source | a stored change set’s entry | the file that declares the entry’s graph node, from the repository root, outside the digest (#4025) | 0.124.29 | | overlap | status document | in-flight work items that touch the same files or change-set entries (#4025) | 0.124.29 |

A gate over a change-set document binds the document’s digest in planDigest (ws-104 question 2). The gate ledger holds only that value, so chant stores the document beside it on chant/lifecycle at _change-sets/<digest>.json, with : written as _, under _members/<member>/ for a workspace member (#4022). chant components pr-apply stores it before it decides the pull request’s gate. chant components promote --release stores its release gate’s before it decides that gate or writes an empty resolution (#4045), and that document carries releaseDigest and environment, the release and environment it was planned for, both inside its digest. A component gate in a plain chant run --components binds a lifecycle-plan digest and stores no document; its planDigest is all a reader has. The file is written once and never rewritten. chant lifecycle gc removes it from the branch’s tree once the retention policy lets it go (#4036), and the branch’s history keeps it.

chant change-set show <digest> --json prints the change-set-show document. Its changeSet is the stored document, or null when none is stored under the digest, and member names the member whose ledger was read. A stored file that isn’t the document its digest names reads as changeSet: null with the reason ledger-malformed. The read never fetches.

Each entry of a stored document has node, the graph node it changes, named as chant workspace graph names it: <member>/<id>, where <id> is the node’s id in the member’s chant graph --format ir. chant maps the address against that graph when it stores the document, so a reader never derives an id. For a chant entry the id is its address. A terraform, tofu or choudoufu entry’s id is <root>/<block key>, the terraform lexicon’s key for the block: each module call as module.<name>/, then the block’s address with no index, so module.app.terraform_data.instance in root estate is estate/module.app/terraform_data.instance. An instance of a count or for_each block gets its instance node instead (#4454): the block node’s id followed by the instance key exactly as Terraform prints it, so module.app.terraform_data.instance[0] is estate/module.app/terraform_data.instance[0] and aws_eip.pool["a"] is estate/aws_eip.pool["a"], and the entry’s instanceOf names the block node, estate/module.app/terraform_data.instance. The block node stays in the graph and is the rollup of its instances. The entry names the instance node whether or not the member’s graph lists it: the graph lists the instances a literal count or for_each gives, or one it can count from the root’s variable files, and only a plan can count the rest, so a reader hangs an unlisted instance under its instanceOf. Under an expanded module call the module key goes on the call’s segment (#4486): module.app[0].aws_eip.pool[1] is estate/module.app[0]/aws_eip.pool[1], with instanceOf estate/module.app/aws_eip.pool. A drift row for an instance carries the same node and instanceOf, by the same rule (graphNodeFor in @intentius/chant/change-set-graph). A pulumi entry’s address is a URN and its id is the URN without its stack and project, <qualified type>::<name> under the member, the rule of @intentius/chant/pulumi-urn; a provider or the root stack has none, and a mayAppear entry for a component’s unlisted children is on the component’s node (#4453). node is null when the graph holds no node for the address, such as a delete of a block the source no longer declares. Since chant 0.124.29 an entry whose node has a source location also has source, that file from the repository root, which the overlap report reads (#4025). The document’s graph names the member and the commit the graph was read at, or is null when chant graph could not run, for instance on source that fails chant lint, and every node is then null. None of these fields is part of the digest, so a stored document still verifies against the value its gate bound.

chant plan stale <digest> --json prints the plan-stale document (#4648): whether anything applied to a plan’s targets after the plan was recorded, and which applies. A platform calls it before it asks a person to approve the plan. It reads the local chant/lifecycle branch, never fetches and writes nothing. The rule for what counts is on the chant plan page.

{
"$schema": "https://intentius.io/chant/schemas/workspace/plan-stale/v1/plan-stale.schema.json",
"contract": 1,
"chant": "0.124.63",
"digest": "jcs1-sha256:1f0c…",
"plan": {
"recordedAt": "2026-11-01T10:00:00Z",
"runId": "run-plan",
"gitSha": "a1b2…",
"targets": [{ "member": "app", "op": "deploy", "gate": "prod", "environment": "prod" }]
},
"stale": true,
"applies": [
{
"source": "deploys",
"member": "app",
"op": null,
"gate": null,
"environment": "prod",
"component": "api",
"planDigest": null,
"at": "2026-11-01T12:00:00Z",
"actor": "laptop-alex",
"approvedBy": "dave",
"runId": "ci-77",
"runUrl": "https://github.com/acme/app/actions/runs/77",
"gitSha": "c3d4…",
"result": null
}
]
}

plan is null, and stale with it, when no pending gate fact on the local ledger records the digest. plan.recordedAt is the earliest such fact’s timestamp, and runId and gitSha are that fact’s. targets has each gate the plan waits at once, with its member (null outside a workspace), op, gate and environment. The environment is the fact’s own, else the env of the run that reached the gate, else null, and a null environment matches no deploy record.

stale is true when applies isn’t empty. Each apply has source: applies for an apply under an approval (a row of chant ledger applies) or deploys for a deploy record (a row of chant ledger deploys). at is when it was recorded. actor is who ran it, which only a deploy record names. approvedBy is the approval it ran under. runId, runUrl and gitSha name the run and the commit. An apply under an approval has op, gate, planDigest and result (applied, failed, or null while it has no finished line). A deploy record has environment and component. Each field the other kind lacks is null. They’re listed oldest first.

The exit code is 0 for a current plan, 2 for a stale one, and 1 when plan is null or the read failed. A failure has error.code not-a-git-repository or ledger-unreadable.

A terraform, tofu or choudoufu block with count or for_each gets instance nodes in chant workspace graph when the declared graph can count it, as Stored change sets and the graph page describe. A block it cannot count stays one node, the rollup, and since #4489 that node carries instanceRollup, an object with these fields.

FieldHolds
codeA code from the closed list
argumentcount or for_each
expressionThe expression as written, without the ${ } around it
callWith instances-module-uncounted, the module call that could not be counted. argument and expression are that call’s

A block that is not expanded, or whose instances are listed, has no instanceRollup.

The declared graph counts a literal count, a for_each over a literal map or toset([...]) of strings, and these forms over a value the root’s files give (a variable’s default, the tfvars files and the root’s varFiles, or a module call’s argument): var.n, length(var.x), var.m over a map or set variable, toset(var.l), the same four with local.<x>, and var.on ? 1 : 0 over a bool, with any two whole numbers and local.on too. A local’s value is known when it is a literal or one of the var forms in its module. Every other form stays rolled up:

Formcode
Anything that reads each.value or each.keyinstances-each-value
merge(...)instances-merge
One of the forms above whose variable has no default and no tfvars value, a local that holds any other expression or reads another local, a conditional over a value that is not a known bool, a count that is not a whole number, a for_each over a list that is not a setinstances-value-unknown
Any other function (concat, flatten, keys, range, zipmap, …), a for expression, a conditional other than <ref> ? <n> : <n>, arithmetic, a reference to a resource, data source or module output, or text around the interpolationinstances-form-unread
More than 256 instances, the block’s own or its own times its module calls’instances-over-limit
A block under an expanded module call that cannot be counted, whatever the block’s own expansioninstances-module-uncounted

When the block’s own expansion can’t be counted either, its own code wins over instances-module-uncounted. A reader that draws the block shows the code beside it. each.value and merge() stay rolled up by ruling; only a plan counts them.

These fields are optional in their documents. Each schema description names the first chant that writes the field, which is the floor below, and a reader treats output from an older chant as lacking it.

DocumentFieldFloorMeaning
compositescomponents[].environments[].executor0.124.47The forge and committed workflow that deploys the environment, { forge, workflow, reason }, from the executor on the environment’s entry in the member’s chant.config.ts, a literal entry before a pattern. forge is github, gitlab or forgejo. Both are null when none is declared, and reason is then executor-none-declared or executor-config-unreadable (#4402). Never derived from a generated workflow’s name
statusreleases[].approver0.124.28Who approved the change at its gate, or null for an ungated release. The release ledger has recorded it since #1035, and status first lists it here
statusreleases[].releaseDigest0.124.29The release the deploy was made from, or null for a deploy that named none (#4043)
statusreleases[].releaseLabel0.124.29The label that release was cut with, or null when there is none or the cut line can’t be read
statusreleases[].admission0.124.28The gate resolution that admitted the release: op, gate and resolvedAt. null for an ungated release and for one recorded by an older chant (#4020)
statusmembers[].promotionOrder0.124.28The member’s promotion order (#4030): the literal entries of the environments array in its chant.config.ts, in order, each as name and canary. [] when the config declares none, null when it could not be read. canary marks the canary step: in a pipeline its soak holds every stage after it, and an environments entry carries no soak, so chant lint warns on one
statusgates[].gitSha0.124.28The commit the run reached the gate at
statusgates[].runId0.124.28The run that reached the gate: an Op run id, or the CI run id for a component gate that ran in CI
statusgates[].changeSet0.124.28The change set the gate binds, when one is stored under its planDigest (#4022). Absent otherwise
statusgates[].decisions0.124.47The current decisions covering the gate’s member, as <kind>/<id>, most relevant first, read from the records without history (#3616)
change-setentries[].node, graph0.124.28On a stored change set: each entry’s graph node, and the graph it came from (#4022)
change-setmembers[].placeholders0.124.54On a member previewed with stand-in values: the inputs it was previewed with, as var.<name>, sorted; every attribute they drive is marked unknown in its entries (#4463). See change set
change-setmembers[].outputs0.124.79The outputs the member’s plan changes, by name, sorted. A member with any is a change, so the change set is not empty (#4849). See change set
change-setentries[].instanceOf0.124.54On a stored change set, beside an instance node in node: the block node it is an instance of (#4454). See Stored change sets
graphnodes[].instanceOf, nodes[].instanceKey0.124.54On an instance node of a count or for_each block: the block node’s id, prefixed like every id, and the instance key as Terraform prints it, [0] or ["a"]. The node’s id is <member>/<block>[0] (#4454)
graphnodes[].instanceScope0.124.54On an instance node under an expanded module call: the module path as Terraform prints it, module.app[0]. The node’s id carries the key on the call’s segment, <member>/<root>/module.app[0]/aws_eip.pool[1], and instanceKey is absent when the block itself is not expanded (#4486)
graphnodes[].component0.124.103On a Pulumi node whose parent is another resource of the stack: the id of the component that registered it, prefixed like every id, from the export’s parent and the preview’s step states. A component’s own component is the one above it, so nested components nest. Absent when the parent is the stack (#5403)
graphnodes[].instanceRollup0.124.54On a block node whose count or for_each the declared graph cannot count: why it stays one node, as { code, argument, expression, call }. See Instance rollups (#4489)
graphnodes[].facts, edges[].grain0.124.54On a Pulumi member on plunge: what plunge’s records say about each node, read from the member’s checked-in engine-graph.json, and on its edges whether they join two instances or a property to an instance. The facts never feed a decision. See the engine facts (#4529)
capabilitiestemplates[]0.124.54The investigation templates, the catalog’s second kind of entry: each { id, title, question, sources?, inputs, reads, query: { kind, text }, note? }, a fixed query about one resource as a chant search path pattern (kind: "path") or as Cypher for behold’s graph pane (kind: "cypher"). See Investigation templates (#4531)
statusstewards[].ops[].lastRun.gitSha0.124.28The commit the run built from
statusstewards[].ops[].lastRun.runOrigin0.124.28The CI run the Op ran in, as a release’s runOrigin names its run. Absent outside CI
statusmembers[].releaseCuts0.124.28The member’s release cuts, each with releaseDigest, label, commit, actor, timestamp, signature and signatureCheck (#4031). [] when none is cut, null when the cuts can’t be read
releasesreleases[].cuts[].signatureCheck0.124.28Whether the cut’s signature verifies for its actor against the signers at base, and the actor is in the release gate’s class when it names one: status (verified, unsigned or unverified), key and reason (#4031)
ci-listcommits[].green.signer, commits[].revoked.signer0.124.28The runner whose statement the tag carries, or null for a tag that counts unsigned (#4031)
ci-listcommits[].ignored0.124.28The commit’s ci tags that don’t count for want of a valid statement, each { tag, status, reason }, with status one of unsigned, invalid, untrusted and mismatch. Empty unless ci.green.signedSince is set. A tag counts unsigned only on a strict first-parent ancestor of that commit (#4031)
releasesreleases[].revoked0.124.29The revoked tag on the release’s commit, { commit, tag, tagged, phase, run, signer }, or null (#4033, ws-105). Derived from local tags on every read
statusreleases[].revoked0.124.29Present when the deploy names a release cut from a revoked commit: the revoked tag, the commit, releaseDigest, label and rollback, the chant components rollback line. Absent otherwise (#4033)
statusgates[].revoked0.124.29Present on a release gate whose release was cut from a revoked commit: the revoked tag and the commit. The gate’s state is then superseded, or expired (#4033)
statusoverlap0.124.29Pairs of in-flight work items whose linked commits touch the same files, or that both reach one entry of a change set a pending or approved gate binds, with items, pairs (items, files, addresses), changeSets and unattributed; null when no work kind is declared or the read fails (#4025). See Overlap between work items
intentnodes[].overlaps on a work node0.124.29The other in-flight items it overlaps by file, each { with, files }; absent under --at (#4025)
change-setentries[].source0.124.29On a stored change set: the file that declares the entry’s node, from the repository root. Not part of digest (#4025)
statusmembers[].featureFlags0.124.29The member’s feature flags, each with param, owner, values per environment, work, implements and stale, or null when the flag records can’t be read (#4024)
recordsrecords[].flag0.124.29On every parsed record of a kind with a flag block: work, implements with confirmed on each decision, and stale (#4024)
releasesreleases[].cuts[].runId0.124.29The run the cut ran in: the CI run’s id in CI, or local-<epoch ms> minted on the machine that cut. null on a cut written before 0.124.29 (#4027)
releasesreleases[].cuts[].runOrigin0.124.29A cut outside CI writes { "forge": "local" }, where it wrote null. A cut written before 0.124.29 still reads null outside CI (#4027)
intenttrace0.124.29The why chain: each commit’s work item, ci tag, release, gate resolutions and deploy records, every link with its source (#4023). See The why chain
intentthe commit region: a region type of commit, the region node’s commit, and history.follows of commit0.124.29A region given as a commit sha (#4023). A reader that switches on type or follows treats a value it does not know as one it can’t read
ci-last-greenignored0.124.28The tags the walk passed over for want of a valid statement, newest first, shaped as in ci-list (#4031)
ci-listcommits[].phases[].runs[].opRun, commits[].revoked.run.opRun0.124.28The Op run behind a result when the source is chant runs, { id, env, signer }, where signer is the runner whose statement the run carries. The run’s name is then the Op’s name and its id is null. Absent for a check run (#4044)
ci-listcommits[].ignoredRuns0.124.28Present only when the source is chant runs: the Op runs on the commit that don’t count for want of a valid statement, each { run, op, env, status, reason }, with status as in ignored (#4044)
lsci.green.source0.124.28runs when the declaration sets ci.green.source to runs, and absent otherwise, which means check runs (#4044)
run-eventcomponent-settle status values blocked and already-applied, and blockedBy0.124.29A component the run did not start: held back by a failed or gated dependency, which blockedBy names, or applied by the earlier attempt a resumed run carries on (#4007). See Run events
run-event, statusrunOrigin.forge value chant, and stewards[].ops[].lastRun.runOrigin.forge in status0.124.30A job chant ci run ran, named by its Op run id (#4094). A run record in <env>/runs__<op>.jsonl carries the same value. A reader that switches on forge keeps a case for a value it does not know
run-eventfailure on run-settle0.124.30Why a failed run failed: code, reason, and phase and exitCode when known. chant ci run writes it on a failed job (#4094). code is a pull-request report’s refusal or status, or command-failed, setup-failed or build-failed, and a reader keeps a case for a code it does not know
statusstewards[].ops[].lastRun.failure0.124.30The same, from the newest run record of a steward’s Op (#4094)
pr-reportdeployedOutputs0.124.30Per dependency a member was planned against, the names of the outputs read from the deployed estate, sorted, a dependency the change did not select included. [] for one not deployed yet. Seeded outputs are not listed, and a resumed apply leaves it out. Absent when nothing was read (#4104)
pr-reportwaveGate, waves0.124.32pr-apply --wave-gate: the wave gate’s name, and each wave reached so far with its components, its status (applied, failed, plan-failed or waiting), whether it applied under the pull request’s approval or its own gate, that gate and the digest it binds, and who approved it. The status gains wave-applied and the refusal gains wave-not-approved, wave-plan-changed and earlier-wave (#4003)
lsci.reportUrl0.124.32The declaration’s ci.reportUrl, an s3:// or file:// URL without a trailing slash, present only when it is set. The run index is at <reportUrl>/runs/index.json (#4160)
pr-reportplannedOutputs, rounds, status value waiting, and members[].unknownInputs, members[].buildInputs, members[].round, members[].held and members[].status value waiting0.124.32Per dependency in the change a member was planned against, the names of the outputs its plan knows. A member’s unknownInputs lists the upstream outputs it read that were known only after apply, as <component>.<output>. Its buildInputs lists the artifact identities it read from a build in the same change, which the build’s provenance binds and no later round approves again. On the apply, a member whose input applied as another value than its plan read is held back (held) and planned again in a round with its own gate and digest (rounds); a round not approved leaves it and the report waiting. inputsMoved is no longer written (#3999)
lsci.green.signedSince0.124.28The declaration’s ci.green.signedSince, the full sha of the first commit whose tags must be signed, present only when it is set (#4031)
run-event, statusrunOrigin.jobId and runOrigin.attempt, and the same under stewards[].ops[].lastRun.runOrigin0.124.32The forge’s job id and the run’s attempt, from a generated forge job that runs chant ci run --in-place (#4156). Its run record in <env>/runs__<op>.jsonl carries them too
ci-listnull as opRun.signer0.124.32An unsigned Op run counts, with no signer, unless ci.green.signedSince asks for a statement on its commit (#4156). ignoredRuns then lists only runs whose statement fails, and unsigned runs under signedSince
run-eventruntime: "local" with kind: "pipeline", and runOrigin.forge local on a pr-plan or pr-apply run record in <env>/runs__<op>.jsonl0.124.32A job chant ci run --local ran on the machine that started it (#4161). Its record stays on that machine’s chant/lifecycle, is never pushed, and never counts in ci tick or ci list. Both values were already in contract 1, so a reader needs no new case. A reader that shows a local run beside CI’s for the same commit tells them apart by runOrigin.forge
pr-reportstage value record and status value recorded0.124.33The record stage a merge runs unless apply on merge is opted in: it plans the merged commit, writes the merge record and applies nothing. approval says whether the plan is the approved one. Its status context is chant/record (#4168)
pr-reportpolicy, and refusal values policy-denied and policy-error0.124.41What ci.policy at base said about the change set: result (passed, denied, held or error), engine, base, denials, rules, holds, warnings, and override or overrideCommand for a denial. Absent when the base sets no policy (#4294)
pr-reportbeforeMerge, and refusal values requires-unmet and before-merge-off0.124.42pr-apply --before-merge: the four requires checks the forge answered, approved, mergeable, undiverged and checks, each { name, passed, pending?, reason }. requires-unmet: one did not pass. before-merge-off: the declaration at base does not set ci.workflow to apply-before-merge. Absent on every other stage (#4301, ws-106)
ci-run-indexruns[].job value record0.124.33A record job chant ci run record ran (#4168). Its run record in <env>/runs__pr-record.jsonl names the Op pr-record
ci-run-indexruns[].signer, and the forge’s run as runs[].runOrigin0.124.32The runner that signed the record, or null, and for a forge job the forge’s run with jobId and attempt (#4156)
ci-listcommits[].record, and unbuilt as a phase result0.124.33What the commit’s _ci/<sha>.json record on the local chant/lifecycle says, { state, reason, coveredBy, culprit } with only the parts it has, or null without one. A phase read from the forge whose runs were cancelled is unbuilt (#4169). A reader that switches on result keeps a case for a value it does not know
ci-last-greennewer0.124.33Up to 50 commits the walk passed over above the one found, newest first, each { sha, record } with record as in ci-list. Empty when no commit is found (#4169)
lsci.green.phases[].build0.124.33every or newest, present only when the declaration sets it (#4169)
ci-run-indexruns[].exitCode0.124.32The code chant ci run exited with for the job: 0 when it passed, 3 for a wave waiting at its gate, 4 for a plan that moved after review (exit codes), and 1 for other failures (#4165). A --local run writes no entry, and an entry from an older chant has no exitCode
pr-reportoverdue0.124.41Plan stage: each scheduled watch or reconcile Op whose cron fired at least twice since its job last ran, or since its pipeline file was added when no run is on record, as { op, cron, since, neverRan?, message }. Absent when none is overdue or the forge was not asked (#4289)
pr-reportmembers[].reads0.124.52Every other component’s output a member’s steps read, one entry per upstream: upstream, the outputs read, sorted, and unknown, the ones its plan had no value for. A read whose value the plan knew is listed too, so a reader can draw each read between components from the plan on rather than only the ones unknownInputs names
pr-reportgroups, fallbacks, members[].group, members[].groupOutcome, and members[].status value not-started0.124.54The groups of components one capability planned and applied as one (ws-107, #4446), each { capability, components, wave, digest, error?, reads? }: its members in apply order, the wave it ran in, the group digest folded into each member’s planDigest (null when it failed to plan), and reads, each { component, ref } the group’s apply computes. fallbacks lists each component that could have grouped and did not, { component, capability, kind, reason }; kind off is not printed in the note. A member in a group carries group, its index in groups, and after an apply groupOutcome: applied, partial, failed, not-started or no-changes. not-started (#4440) is a member whose group’s apply stopped before its part began. On a resume, groups holds what is left of each approved group, grouped again
pr-reportlockTargets0.124.55The names the pull request’s target locks take under ci.locks when a member is on the resource lock grain, sorted: each such member’s row keys and the component name of every component with a member on another grain. chant lock --from-report locks these in place of selection.waves. Absent when no member is on the resource grain (#4552)
pr-reportcrossStackEdges0.124.55Each stack outside the workspace a member reads, with its owner from the control repo’s entries and a mark: stale when the owner applied after the reader last updated, current when the reader updated after, unknown otherwise. The job that posts the note marks them from a checkout of the control repo (#4617)
release-candidateschanges[].closes, pending[].closes and candidates[].groups[].issue0.124.63With --forge-issues, what the forge says each change’s pull request closes, { resolved, issues, reason }, and the issue a group of changes with no work id is under; closes is null without the flag or a pull request, and issue is null on every other group (#4649)
release-candidateslane0.124.64The green lane whose tags were read, from --lane or release.lane, or null for ci/green/<sha> (#4692)
releasesreleases[].cuts[].lane0.124.64The green lane a cut checked, ci/green-<lane>/<sha> in place of ci/green/<sha>. Absent on a cut that checked the full green tag (#4692)
releasesreleases[].cuts[].override0.124.64The commit was not green, and release cut --override-green cut it under a person’s override, which it spent: { green: false, tag, by, at, reason, digest, sealed }. Absent on a cut of a green commit (#4693)
releasesreleases[].cuts[].green0.124.101The green gate the cut passed: { source: "chant", tag }, { source: "forge-checks", forge, checks } or { source: "none" }, from release.green. Absent on a cut under an override (#5149)
releasesreleases[].cuts[].sealVersion and releases[].cuts[].signatureCheck.gate0.124.101sealVersion is 2 on a cut whose signature also signs its green, override and lane. signatureCheck.gate is signed when the signature verifies and covers them, else unsigned, as for a cut signed before 0.124.101 (#5177)
releasesreleases[].publishes0.124.101An artifact release, cut with no environments: each release.publish target as { target, kind, destination }, in the declared order, with targets empty. Absent on a release cut from environments (#5149)
intent, intent-recordnodes[].closes on a commit node, commits[].closes0.124.63Only with --forge-issues: what the forge says the commit’s pullRequest closes, { resolved, issues, reason }, or null for a commit with no pull request (#4649). See Issues a pull request closes
pr-reportrounds[].status value held0.124.55A round planned after an upstream applied whose rows another run held on the resource lock grain, so it did not apply and pr-apply exited 5. rounds[].message names the run that holds them (#4594)
pr-reportcostCOST_ESTIMATE_FLOORThe plan’s cost estimate under ci.cost at base: estimator, format, currency, monthlyDelta, monthlyTotal and pastMonthlyTotal when every member priced gave them, members (each with its figures or an error), unestimated, approveAbove and over. The policy reads the same record as input.cost. Absent when the base sets no ci.cost (#5334)

The ledger lines behind these fields follow the same rule. A pending fact and a resolution in _gates/<op>.jsonl gain gitSha and runId, a run record in <env>/runs__<op>.jsonl gains gitSha and runOrigin, and statement when a runner key signed it (#4044), and failure on a failed chant ci run job from chant 0.124.30 (#4094), and a release record in <env>/releases.jsonl gains admission. A line written before 0.124.28 lacks them, and every reader in chant reads it unchanged. A gitSha or runId of the wrong type on a gate line is dropped on read and the line is kept. | records | where | 0.124.47 | The --where clauses the records were filtered with; summary then counts the records listed (#4363). Absent without --where | | runs | filter.where | 0.124.47 | The --where clauses the runs were filtered with; the totals count only those runs (#4363). Absent without --where | | ledger | rows[].marker_stack, rows[].marker_env, rows[].engine_ownership and rows[].engine_owned_by on the resources table, and the same columns of chant query’s resources | 0.124.54 | The stack and env the resource’s chant marker names, and an ownership engine’s verdict and what bound the node, from the snapshot’s marker and engine facts; null when unknown. The engine columns never feed a decision (#4534). See chant query | | ledger | rows[].root_member on the runs table, and the root_member column of chant query’s runs | 0.124.54 | The member whose directory holds the terraform root a TerraformApplyOp run applied, from its Init step’s TerraformRootPath outcome, or null when unknown (#4482, #4500). See Op runs per member | | ledger | rows[].wave on the runs table, rows[].change_set and rows[].request on the gates table, and the same columns of chant query | 0.124.55 | The op wave job a run record is for, the stored change set a gate line cites, and the gated request a pending fact asks for (#4551), or null | | ledger | the release_status table, in chant ledger and chant query | 0.124.55 | Each line of <env>/release-status.jsonl: a release deprecated, yanked or restored, the newest line per component and digest being its status (#4596) | | ledger | the applies and pr_envs tables, in chant ledger and chant query | 0.124.55 | Each apply under an approval in _gates/<op>/applied.jsonl with its finished line, and each line of _pr-envs/records.jsonl (#4551) | | ledger | the control_entries table, in chant ledger and chant query | 0.124.55 | Each version of a control repo entry in _control/entries.jsonl, with its digest, the digest it replaced and whether it is the entry’s newest (#4568, #4593) |

A ledger line is never rewritten, so a line an older chant wrote keeps its shape for good, and it sits beside lines of the newer shape in the same file (#4034). Every reader in chant reads it unchanged and skips no line for it. A field the line lacks reads as absent: a status item gives null where its schema says so, and a ledger line gives no key. chant fills a missing field from no other record, and no command writes a new line to supply one. A reader of your own does the same.

RecordWritten beforeMissing fieldHow it reads
a deploy record in <env>/releases.jsonl, from components release, run --components, components promote, rollback, redeploy, SQL Yodeler or chud-studio0.124.28admissionstatus gives admission: null. approver is whatever the record had, and null when it had none
the same0.124.29releaseDigeststatus gives releaseDigest: null and releaseLabel: null. The deploy joins to no release, and chant release list shows no environment running a release for it
a pending fact or a resolution in _gates/<op>.jsonl0.124.28gitSha, runId, releaseDigest, emptya status gate has no gitSha, runId or releaseDigest key. A resolution with no releaseDigest counts for a gate that binds none, as before, and counts for no release gate
a resolutionthe chant that added the fieldkind (#2119), seal (#3163), carriedFrom (#3949)a line with no kind is a resolution, one with no seal is unsigned, and one with no carriedFrom was recorded by its approver
a run record in <env>/runs__<op>.jsonl0.124.28gitSha, runOrigina steward’s lastRun has neither key
a cut line in _releases/cuts.jsonl0.124.29runIdrelease list --json gives runId: null, and runOrigin is null for a cut made outside CI
a change-set document in _change-sets/<digest>.json0.124.28releaseDigest, environmentchange-set show prints it without them, and its digest still verifies, since a document without them hashes as it always did
a release plan in _plans/<digest>.jsonnonenoneread by the digest a deploy record names, as before

Three consequences follow for a reader that shows releases. A deploy record with no releaseDigest was not made from a release, or was made before chant could say so; the two can’t be told apart from the record. A commit that a release was cut from does not link an older deploy of that commit to the release, because a plain run compiles its templates when it deploys and may have rendered something else. joinRelease returns releases: [] with a reason for such a deploy, and for a gate that binds no release. An approval recorded under a component’s own gate ledger before 0.124.28 does not carry over to the release gate: that gate counts only a resolution that names its release, its environment and its change-set digest.

Releases in the sense of #4026 are new, so none exists to migrate. A cut line with no signature key reads as signature: null, an unsigned cut. A release cut for a project with no components has templates whose component is null (#4046), and a reader takes component as a string or null in every release.

A reader such as behold or hud builds one view from several commands. The join keys are the same in every document.

Keylsgraphcheckstatus
the workspaceworkspace.name, atworkspace.name, atworkspace.name, atworkspace.name and lifecycle.commit
a membermembers[].namemembers[].name, and member on every node and edgeentity on a declaration findingmembers[].name
a member’s directorymembers[].dirmembers[].dirnonemembers[].dir
a collectornonecollectors[].member, then pipelines[].id and exporters[].idnonenone
a recordnonerecords[].id, and record on a record linkthe record’s file on a WSP111, WSP112 or WSP113 findingnone

A reader starts with ls, which lists every member whether it can be read or not. It then reads graph for the nodes in groups.byMember, and matches each graph entry to the ls member of the same name. check findings attach to a member through entity, and status releases and gates attach through the member name. A gate’s component, or a status release’s, matches a graph --composites component’s name in the same member. Node ids in graph are <member>/<id>, so a node never collides with another member’s.

A live review session view (H5 of #2650) reads three documents. records on the session kind gives the agenda, the attendance and the verdicts. records on the decision kind gives each agenda decision, and citedBy on the session links the two through the decisions’ review entries. What the session changed comes from records --since <session id> on each kind, from the commit it opened at to the commit that carried its close, or to the working tree while it is open (#2693). chant reads both commits from the session record and from git, so the reader passes only the id. A session written before chant 0.88.0 has no revision fields, and chant falls back to the commits that added its file and last changed it.

Documents read at the same at belong together. Mixing a working-tree ls with a graph --at of an older commit can list members the graph doesn’t have, and each document names its own at so a reader can tell.

hud reads exactly as behold does, and caches per member. At a commit, a member’s entry and nodes don’t change once read. A cache keyed on the workspace name, at and the member name stays valid while the member’s toolchain (chant on its graph entry) stays the same. A working-tree read has at: null and is read again.

A span names the declaration and the release that produced it, so a reader can walk from a trace to the workspace’s graph, ledger and records (#2558, D22 of #2524, ws-060). The attributes are on the span’s resource. They use OpenTelemetry conventions where these exist and a chant.* namespace otherwise.

AttributeJoins to
chant.workspaceworkspace.name in every document, and at pins the revision
chant.membermembers[].name in ls, graph, check and status
chant.declthe node <chant.member>/<chant.decl> in graph, whose groups.byMember lists it
service.namethe service, which is the declaration’s name
deployment.environment.namemembers[].environments[].env in status
service.versionreleases[].digest of that member and environment in status
vcs.ref.head.revisionreleases[].gitSha in status, or at in a graph read at that commit

A reader joins in this order. It takes chant.workspace and chant.member to the graph document of the workspace and finds the member’s entry. chant.decl prefixed with the member is the node id, so the span lands on one node. The records that constrain that node are the constrains rows of links whose target is member:<chant.member>, read with graph --kind. status lists the member’s releases for deployment.environment.name, and the one whose digest equals service.version is the release that produced the span. Its gitSha is vcs.ref.head.revision, and graph --at <that commit> reads the workspace as it was then.

The docker lexicon stamps service.name, chant.workspace, chant.member, chant.decl and deployment.environment.name as OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES in each Compose service’s environment, when it builds inside a workspace. A build knows the environment only from --env or ownership.env, so a build with neither leaves that attribute out. It stamps service.version when the service’s image is pinned by digest. vcs.ref.head.revision and a service.version the build can’t know are set by whatever deploys the release, which knows the digest and the commit: the build’s output does not change with each commit. A project with no chant.workspace.json is unchanged. It opts in with telemetry.attribution: true in chant.config.ts and gets the attributes that need no workspace, and inside a workspace telemetry.attribution: false turns stamping off. A value a service already sets in OTEL_SERVICE_NAME or OTEL_RESOURCE_ATTRIBUTES is kept, and only the missing attributes are added. The k8s lexicon stamps the same variables in the env of each container of a Deployment, StatefulSet, DaemonSet, ReplicaSet, Job, CronJob or Pod, with the workload’s metadata.name as service.name and its declaration’s export name as chant.decl. The fly lexicon stamps them in each Machine’s config.env, with the name of the Machine’s app on Fly as service.name and the Machine’s export name as chant.decl. A release deploy adds service.version (the release’s digest) and vcs.ref.head.revision (its gitSha) without changing the generated files (ws-081): OTEL_RESOURCE_ATTRIBUTES ends with a reference to CHANT_RELEASE_ATTRIBUTES, which chant run --components sets in the environment of docker compose up (through shell or remote-exec) and, on k8s, kubectl-apply sets through the pod annotation chant.intentius.io/release-attributes. A Fly Machine’s env values are literal, so fly-release writes the release’s attributes into the OTEL_RESOURCE_ATTRIBUTES of the stamped Machine it serves. A span from a workload deployed that way joins to the status release by service.version and vcs.ref.head.revision.

Where the service’s telemetry goes is a telemetry link: the service’s member links to a pipeline or exporter in the collectors section of graph. A link row says resolved, or why it isn’t.

A reader writes only through chant commands (ws-052), and so does every other tool, because the repo is the database (ws-074). Every durable fact about a workspace is a file in the repo, work in progress is uncommitted files in the working tree of the active work branch, and a tool keeps only secrets, telemetry, rebuildable caches and its substrate’s runtime state outside it. How a reader tells uncommitted records from committed ones is #3160, and the suite that holds a writer to this is #3159. For records those are records new, amend, review and close (#2670, #2693). Each validates the record it would write the way records reads it and then writes one file or none, leaving the commit to the caller. review --session is the one exception, and it writes the decision and the session together. The document each prints follows its own schema:

CommandSchema $idResult
chant workspace records newhttps://intentius.io/chant/schemas/workspace/records-new/v1/records-new.schema.jsonpath, id, digest, and seal with --sign
chant workspace records amendhttps://intentius.io/chant/schemas/workspace/records-amend/v1/records-amend.schema.jsonpath, id, changed, digest, and seal with --sign or sealDropped when a change removed the seal
chant workspace records reviewhttps://intentius.io/chant/schemas/workspace/records-review/v1/records-review.schema.jsonpath, id, review, digest, and session with --session
chant workspace records closehttps://intentius.io/chant/schemas/workspace/records-close/v1/records-close.schema.jsonpath, id, changed, seal, closedRev, digest

An agent run goes to the run ledger on chant/lifecycle, never to the working tree, through chant workspace runs start|end|record (#3033). Their document follows https://intentius.io/chant/schemas/workspace/runs-write/v1/runs-write.schema.json. It holds the run as runs --json reports it and the place on the branch the line went, with the Chant-Run line for the run’s commits in trailer. A refused write writes nothing and exits 1 with run-exists, run-unknown, run-ended or write-input-invalid in error.

A box’s listing is configuration on its box block, written through chant workspace box listing set <member> (#3308). The command edits members[i].box.listing in place and nothing else in the declaration, so the file keeps its formatting and comments. With --cover it also copies a picture into the repository. The document it prints follows https://intentius.io/chant/schemas/workspace/box-listing-write/v1/box-listing-write.schema.json. It holds the listing before and after, as status --json prints it, and paths names each file the command changed. The scope rule below judges each of those files as check --changes judges a path, so a protected declaration takes the write only when its entry’s except names /members/*/box/listing. When the write is refused, the declaration and the cover are left as they were, and error says why.

A declaration’s members and hosts are written through chant workspace member add|remove and chant workspace host set (#3596). Each changes one entry of members or hosts in place, so the file keeps its formatting and comments, and prints a document following https://intentius.io/chant/schemas/workspace/member-write/v1/member-write.schema.json with the entry before (previous) and after (entry), as the file holds them. A write is refused when the declaration it would write doesn’t read (write-input-invalid), and when it adds a collision or a literal path between boxes (box-isolation-collision, box-isolation-literal). The same scope rule judges the declaration, so a protected declaration takes these writes only when its entry’s except names members or hosts.

A runner’s key is listed in .chant/trust.json through chant workspace trust runner add|remove (#3510). add puts the entry under runners. For class runner it also adds the principal to roles.runner. remove takes both away. Each edits the file in place and prints a document following https://intentius.io/chant/schemas/workspace/trust-write/v1/trust-write.schema.json. It holds the entry before (previous) and after (entry), and digest is the SHA-256 of the file’s bytes after the write. A caller passes that digest as --expect to its next trust write, which is then refused with trust-conflict when someone else changed the file in the meantime. The same scope rule judges the file, and the commit that carries the change is a protected write that workspace verify checks against the policy at base. Chant 0.124.31 is the first release with these writes.

A box’s factory is written the way its listing is, through chant workspace box factory set <member> (#3600). It edits only the top-level properties of members[i].box.factory, so whoever plants a box from a template sets factory.publish, which the template can’t know. Its document follows https://intentius.io/chant/schemas/workspace/box-factory-write/v1/box-factory-write.schema.json and holds the factory before and after, as status --json prints it. A protected declaration takes the write when its entry’s except names /members/*/box/factory/publish, or whatever else the write changes.

A box’s work is published through chant workspace box publish <member> <item>, or --records for the records kept uncommitted (#3165). chant writes nothing itself here: it runs the publisher the box block names and checks that the commit the publisher made carries the apply record of ws-075. The document follows https://intentius.io/chant/schemas/workspace/box-publish/v1/box-publish.schema.json, whose $defs.request and $defs.answer are the publisher’s side of the call.

Work in progress is snapshotted, restored and replicated through chant workspace wip save|restore|push|fetch (#3172), never by a tool running git on the checkout itself. Each prints a document following https://intentius.io/chant/schemas/workspace/wip-write/v1/wip-write.schema.json, with action naming the verb. save reports the ref it moved, the snapshot and whether it was created, and replication when the policy pushes on save. restore reports the snapshot it restored and the checkpoint it took first. Its headMoved says whether HEAD has moved since the snapshot, and paths lists every file it wrote or removed. None of them writes a record or commits to a branch.

chant workspace work writes a work lease rather than a record, and prints a document following https://intentius.io/chant/schemas/workspace/work-lease/v1/work-lease.schema.json (#2732). Its result carries item, event, kind, ref, lease and history, and a refusal carries refused with a lease- code and exits 5, or 1 for lease-not-held and lease-token-mismatch.

The schemas ship beside the read schemas and follow their shape: a oneOf of a result and a failure, contract: 1, and a closed list of error codes from the same list as every read. A result also carries kind, dryRun, the written record’s warnings, and text under --dry-run. A failure exits 1 and writes nothing. chant 0.86.0 is the first release to print these documents.

A write never makes the caller compute anything about the record. new allocates the id, and for a session it records the commit the session opened at. amend applies the approval rule and checks the quorum before a record is ratified, and review computes the digest the verdict is bound to. close computes a session’s seal (#2693). review --session writes the verdict to the decision and to the session in one command, so the two lists never differ. The principal a review names is recorded as the caller gives it. review --sign seals the verdict with an ssh key, and records then reports whether the seal verifies for that principal against the signers at base (#2687). new --sign and amend --sign seal the record’s author the same way (#2688). The provenance of the commit that carries the file is reported apart from that (#2547).

Each write is judged against the writer’s write scope, read from the declaration at base (#2548). The writer is the agent session CHANT_AGENT names, or the session that lists the principal the write names (--by, or by through MCP), or else the class that principal’s role grants give. A write outside its scope is refused with write-scope-member or write-scope-kind, a session the declaration doesn’t name with agent-unknown, and a human’s write while writeScope names a class no pinned package supplies with write-scope-class-unknown. When the declaration at base sets identity.attribution to identified, a write whose --by or author field names a person by a bare name is refused with principal-unidentified (#3163).

One working tree is written by several principals at once: people through hud, the coding agent, the steward and builders (#3173, ws-089). chant’s model for them has three parts.

Writes are serialised. Every chant write to the working tree holds the working tree’s write lock from its first read to its last write. Those are the records writes and the points writes, with box listing set, and work evidence writes through records amend. The lock is the directory chant-write.lock in the working tree’s git directory, so two linked worktrees never wait on each other. A write waits for it up to CHANT_WRITE_LOCK_WAIT_MS (15 seconds by default) and is then refused with write-lock-timeout, naming the holder. A holder whose process has gone, or whose time has run out, is broken by the next writer. Each write reads what the write before it left, so two writes never both build on one reading of a file, and records new never hands out an id twice. A record file is replaced through a temporary file and a rename, so a reader never sees half of one. Ledger writes on chant/lifecycle were already compare-and-set on the branch and are unchanged.

Writes to different fields merge, and writes from a stale reading conflict. A write without --expect applies its fields to the record as it is when the write runs, so two amendments of different fields both land, and a verdict is appended to the reviews as they are. A write that set a field someone else set in the meantime replaces it. A caller that shows a person a record and writes what they did with it passes --expect <digest>, the digest the record had in records --json or in the document of the caller’s last write. amend, review and close then go ahead only when the record still has that digest, and are otherwise refused with record-conflict. The refusal’s conflict names the digest the record has now and its lastWrite. A UI shows the person the conflict and asks again after re-reading. Exactly one of several writes from one digest is written. Reviews and seals stay out of the digest, so a verdict landing between a read and an amendment is not a conflict, and the amendment keeps it.

A batch holds the lock across calls. chant workspace lock acquire --holder <name> [--ttl <duration>] takes the lock for a batch of writes, such as hud’s per-writer publish batch (hud#819), and prints a token. Each chant write in the batch runs with CHANT_WRITE_LOCK=<token> in its environment and goes ahead without waiting, while every other writer waits. lock release --token <token> gives it back. The lock lasts 60 seconds by default and at most 10 minutes, after which any writer may break it, and the batch’s next write is refused with write-lock-not-held. Its document follows https://intentius.io/chant/schemas/workspace/write-lock/v1/write-lock.schema.json. chant workspace lock alone says who holds the lock and never prints the token. A tool that writes files of its own in the batch, such as app files, takes the same lock first, so a chant write never lands between two of them.

chant workspace agent <name> --json prints what an agent session reloads from (#2548). The document follows agent.schema.json. agent is the session with its members, member (the first of them) and principals, and scope holds the members it writes (ws-101) and each declared record kind in its reach with the verbs it may write the kind with. spec is the spec block records --current --json prints, and reload lists the two reads that rebuild the session’s context. The session and its scope come from the declaration at base (workspace.scopeFrom is base), or from the working tree when there is no base or no declaration at it. The spec is read in the working tree. chant serve mcp serves it as workspace-agent.

A reader such as hud or behold reads only through this contract and writes only through chant commands (ws-086, the workspace boundary). @intentius/chant ships a conformance suite for that, so a reader can show it in its own CI with nothing else installed (#2679).

ImportFor
@intentius/chant/workspace/conformanceany test runner: runWorkspaceReaderConformance returns the problems, and checkReaderRead checks one read. It imports no runner and loads under plain node
@intentius/chant/workspace/conformance/vitestvitest: describeWorkspaceReaderConformance adds one test per command. Only this entry imports vitest

READ_CONTRACT_COMMANDS lists the read commands covered, and since #3160 it includes records --uncommitted. Since #3172 it includes wip, run as workspace wip --json. A reader runs it as workspace records --uncommitted <args> --json. That document is held to the records schema, which requires checkout when uncommitted is true and a worktree on every record.

search is listed since #4374. The reader command is workspace search <query> --json with the query app here, and the document is held to search.schema.json. Over MCP the workspace-search tool answers it. Plain chant search --json prints the same document for one project, and chant’s own tests hold that one to the schema too.

#4375 added search --capabilities. The reader command is workspace search --capabilities --json, with no arguments, and the document is held to capabilities.schema.json. Over MCP the capabilities tool answers it.

behold#995 added drift. A reader runs workspace drift --member <name>, with --json or nothing, and the document is held to drift.schema.json. The conformance run reads --member app. That member has no drift read on either workspace, so the read returns the no-drift-read error document and reaches no account. No MCP tool answers it yet.

The suite builds the reader from a function you pass, giving it a transport that runs chant in the workspace. The reader’s read(command, args) runs one contract command through the transport and returns the parsed document. commands lists the commands the reader reads. The suite reads only those, and the report names the others in skipped as not applicable.

A reader of ls, status and graph --composites, tested with node:test after npm i -D @intentius/chant:

// reader-conformance.test.mjs, run with: node --test
import assert from "node:assert/strict";
import { test } from "node:test";
import { runWorkspaceReaderConformance } from "@intentius/chant/workspace/conformance";
const JSON_FLAG = { ls: ["--json"], status: ["--json"], "graph --composites": ["--json"] };
/** The reader: one contract command through the transport, and the document chant printed. */
const myReader = (chant) => ({
async read(command, args) {
const run = await chant.run(["workspace", ...command.split(" "), ...args, ...JSON_FLAG[command]]);
return JSON.parse(run.stdout);
},
});
test("my reader reads only through the read contract", { timeout: 300_000 }, async () => {
const report = await runWorkspaceReaderConformance(myReader, { commands: ["ls", "status", "graph --composites"] });
assert.deepEqual(report.problems, []);
});

With vitest, describeWorkspaceReaderConformance({ name, reader, commands }) from the vitest entry takes the same reader.

For each command it reads, the suite fails when any of these is false:

CheckHow
the document validates against the command’s output schema and carries this contract’s versionthe schemas @intentius/chant ships, with its own ajv
the read made exactly one chant call, the contract command with the suite’s arguments and its JSON flagthe transport records every call
the reader returned the document chant printed, unchangedcompared with the recorded output
no file in the workspace changedevery file is hashed before the first read and after the last

The reader never gets the workspace’s path, so the transport is its only route to the workspace, and the transport records everything that goes through it.

A tool that also writes runs the writer suite from the same import (#3159). It drives scripted writes through the tool’s writer, checks that each is one chant command whose changes chant reports, and deletes the tool’s private state to check that the tool still shows the same facts.

With over: "mcp", the same reader’s calls are answered by chant serve mcp (#2707). The transport starts one server session in the workspace and turns each call into the workspace tool that answers it, such as workspace-records for workspace records --kind <kind> --json. It also runs the command itself, and the suite fails when the tool’s document differs from the command’s. check has no tool, so over MCP it is not applicable.

Outside the chant repository the suite writes a workspace to a temporary directory and removes it afterwards. The workspace is copied from the fixture in src/workspace/conformance/__fixture__/ of @intentius/chant. Its chant member declares one composite and the component that deploys it, and its decisions/ directory holds one decision. chant workspace init --yes declares it, and git commits it on main with a Chant-Run trailer, and chant workspace runs record writes that run to the run ledger, so runs reads a run with every field. The suite then writes a second decision, fix-002, proposed, and leaves it uncommitted, so records --uncommitted lists one record. createConformanceWorkspace() called directly leaves it out unless given uncommitted: true, so a test that writes records there allocates the ids it did before. Inside the chant repository the suite reads reference-workspace/. Both have the files the suite’s arguments name, such as decisions/decision.kind.mjs and app/src/server.mjs:19. workspaceDir names another workspace with those files. chantCommand names the chant to run. By default that is the first node_modules/.bin/chant above the current directory, then the chant the suite came with.

chant