You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
workspace: releases across several members, reconciled with the release train (#2554) #4037
area:lifecycleplan/diff/apply/observe/drift/prune/search --livearea:workspacechant workspace epic (#2525)designDesign or research note, no deliverable yetenhancementNew feature or requestepic:estate-readWork from the offline estate read: terragucci gaps and chant bugs (tracker INTENTIUS/chant)
#4028 recommends that a release belongs to one member. A workspace with several members ships sets of member releases together, which is #2554's release train.
Requirements
A release train is a set of member releases, each unchanged; its digest covers the member release digests.
Gates can bind a train for an environment, with a change set per member.
The lane shows a train as one row that expands to members.
Acceptance
Train record and schema, with a test that a train of two members promotes together.
Parked. This waits on #2554 (release trains), which was deferred on 2026-09-30 pending #1939. It moves to the blocked row of INTENTIUS/behold#678 and out of that epic's exit criteria.
Unparking. Everything this waited on is closed: #2554, #4028 and #4026. The epic it sat under, INTENTIUS/behold#678, is closed too, so it is now tracked on #5105.
What exists since this was filed, to check before building:
chant workspace train <env> records a train that pins one cut release of every chant member, in _members/_workspace/<env>/trains.jsonl (packages/core/src/workspace/release-train.ts). That covers part of requirement 1. Whether the train's digest covers the member release digests needs checking.
Nothing reads a train to deploy or promote from it. Requirement 2 (a gate binds a train for an environment) and the acceptance test (a train of two members promotes together) are the open part.
The premise holds. A train can be recorded, but it has no digest, and nothing promotes from one. The work left is requirement 1's digest and requirement 2's gate binding. Requirement 3's row belongs to behold. chant supplies the read for it.
What already exists
chant workspace train <env> [--pin <member>=<label|digest>] (workspace/release-train.ts, from workspace: workspace Ops, the workspace pipeline and release trains (after #1939) #2554) pins one cut release of every chant member and appends { id, env, timestamp, actor, members[{ member, releaseDigest, commit, label }] } to _members/_workspace/<env>/trains.jsonl. It refuses when a member has no release or a pin names none. train list <env> reads the trains back.
Each member release is unchanged by a train: pickTrain copies releaseDigest, commit and label from the member's _releases/ ledger and never writes there. So the "each unchanged" half of requirement 1 is met.
Workspace gates exist (workspace: workspace Ops, the workspace pipeline and release trains (after #1939) #2554, ws-039). chant workspace run --gate <name> gathers member gates into one pending fact under _members/_workspace/_gates/<name>.jsonl, and chant workspace run approve <name> approves it. A member that sets acceptWorkspaceGates: true at base takes that approval in place of its own, provided the approved covers still hash to the digest and name its plan. chant workspace run orders members producers first from the composed graph's links (orderTargets).
The workspace gate stand-in is wired only into the Op executor (op/local-executor.ts). The component driver, which decides release gates, never asks it. Its query and covers also carry no release digest, so a stand-in could not tell two releases with the same change set apart.
A promote has no way to plan its change set without deploying. A train therefore can't gather every member's change set under one approval before any member deploys.
Nothing records which train a promote came from, so a reader can't draw a train as one row.
Contract (Done when)
A train record carries trainDigest = computePlanDigest("release-train", { members: [{ member, releaseDigest }] sorted by member }). The same picks give the same digest. Env, actor, time, id and labels stay out of the hash. A line written before this change gets its digest computed on read. train list prints it, and an empty train is refused. Shown by a pure test, plus a test against a temp repo ledger.
chant components promote --to <env> --release <r> --plan-only [--json] plans, stores and prints the release's change set for <env> (changeSet, empty, gates, releaseDigest) and deploys nothing. It writes no gate fact and no empty pass. Shown by a test of the handler branch.
A release gate counts a workspace gate approval only when the cover names the same member, gate, change-set digest, environment and releaseDigest, and only when the member opts in at base. The component driver asks the stand-in when the promote runs under CHANT_WORKSPACE_GATE. An approval for another release does not pass. Shown by tests of workspaceGateStandsIn and of evaluateGate with a memory port.
chant workspace train promote <env> [<train id|digest>] [--gate <name>] [--dry-run] [--json] promotes the newest train for <env>, or the one named, one member at a time in link order, producers first. Each member runs chant components promote --to <env> --release <its releaseDigest> under its own chant.
With --gate, every member first plans (--plan-only), and the gate records one pending fact whose covers list each member's release gates with that member's change set and release digest. The fact also names the train id and digest. Nothing deploys until the fact is approved with chant workspace run approve <name>. After the approval, the same command promotes every member. A member whose plan has moved since the approval stops at its own gate.
Without --gate, each member's own release gates apply, and the train stops at the first member that is gated or fails.
The command writes a workspace run record citing train: { id, digest }, with one step per member.
Shown by a test with two linked members and a fake member runner over a temp repo ledger. Before the approval nothing deploys, and the pending fact covers both members. After the approval both promote, producer first. A failed first member stops the second.
chant workspace train list <env> --json gives each train its digest and the workspace runs that promoted it, with each member's step status. This is the read behold needs for a train row that expands to members.
workspace: a release train across repositories, promoted through the control repo #5119 adds repo members, read through each repository's read contract at its pinned rev. It also adds the control repo's promote, which dispatches into each repository and waits for <product>-applied, and the --release deploy record on a member pipeline. That issue reuses trainDigest from item 1 and the cover shape from item 3. A promote across repositories keeps each member's own gate, so the workspace gate in item 4 stays within one repository.
The lane row itself (requirement 3) goes to a behold issue that reads item 5.
Rolling back a train, and a generated CI job for train promote, are not built here.
area:lifecycleplan/diff/apply/observe/drift/prune/search --livearea:workspacechant workspace epic (#2525)designDesign or research note, no deliverable yetenhancementNew feature or requestepic:estate-readWork from the offline estate read: terragucci gaps and chant bugs (tracker INTENTIUS/chant)
Activity
lex00 commentedon Oct 17, 2026
Parked. This waits on #2554 (release trains), which was deferred on 2026-09-30 pending #1939. It moves to the blocked row of INTENTIUS/behold#678 and out of that epic's exit criteria.
lex00 commentedon Nov 15, 2026
Unparking. Everything this waited on is closed: #2554, #4028 and #4026. The epic it sat under, INTENTIUS/behold#678, is closed too, so it is now tracked on #5105.
What exists since this was filed, to check before building:
chant workspace train <env>records a train that pins one cut release of everychantmember, in_members/_workspace/<env>/trains.jsonl(packages/core/src/workspace/release-train.ts). That covers part of requirement 1. Whether the train's digest covers the member release digests needs checking.workspace trainpage.The first step is a scope comment here saying what is left after reading the code.
lex00 commentedon Nov 15, 2026
Scope, read against origin/main ab0b27c
The premise holds. A train can be recorded, but it has no digest, and nothing promotes from one. The work left is requirement 1's digest and requirement 2's gate binding. Requirement 3's row belongs to behold. chant supplies the read for it.
What already exists
chant workspace train <env> [--pin <member>=<label|digest>](workspace/release-train.ts, from workspace: workspace Ops, the workspace pipeline and release trains (after #1939) #2554) pins one cut release of everychantmember and appends{ id, env, timestamp, actor, members[{ member, releaseDigest, commit, label }] }to_members/_workspace/<env>/trains.jsonl. It refuses when a member has no release or a pin names none.train list <env>reads the trains back.pickTraincopiesreleaseDigest,commitandlabelfrom the member's_releases/ledger and never writes there. So the "each unchanged" half of requirement 1 is met.chant components promote --to <env> --release <label|digest>plans the release's change set for that environment, stores it in_change-sets/, and binds every gate to the release digest, the environment and the change-set document digest in theRELEASE_GATE_OPledger. An empty change set passes the gate without an approval. Deploy records carryreleaseDigest.chant workspace run --gate <name>gathers member gates into one pending fact under_members/_workspace/_gates/<name>.jsonl, andchant workspace run approve <name>approves it. A member that setsacceptWorkspaceGates: trueat base takes that approval in place of its own, provided the approved covers still hash to the digest and name its plan.chant workspace runorders members producers first from the composed graph's links (orderTargets).What is missing
chantmembers records a train with no members.op/local-executor.ts). The component driver, which decides release gates, never asks it. Its query and covers also carry no release digest, so a stand-in could not tell two releases with the same change set apart.Contract (Done when)
trainDigest = computePlanDigest("release-train", { members: [{ member, releaseDigest }] sorted by member }). The same picks give the same digest. Env, actor, time, id and labels stay out of the hash. A line written before this change gets its digest computed on read.train listprints it, and an empty train is refused. Shown by a pure test, plus a test against a temp repo ledger.chant components promote --to <env> --release <r> --plan-only [--json]plans, stores and prints the release's change set for<env>(changeSet,empty,gates,releaseDigest) and deploys nothing. It writes no gate fact and no empty pass. Shown by a test of the handler branch.releaseDigest, and only when the member opts in at base. The component driver asks the stand-in when the promote runs underCHANT_WORKSPACE_GATE. An approval for another release does not pass. Shown by tests ofworkspaceGateStandsInand ofevaluateGatewith a memory port.chant workspace train promote <env> [<train id|digest>] [--gate <name>] [--dry-run] [--json]promotes the newest train for<env>, or the one named, one member at a time in link order, producers first. Each member runschant components promote --to <env> --release <its releaseDigest>under its own chant.--gate, every member first plans (--plan-only), and the gate records one pending fact whose covers list each member's release gates with that member's change set and release digest. The fact also names the train id and digest. Nothing deploys until the fact is approved withchant workspace run approve <name>. After the approval, the same command promotes every member. A member whose plan has moved since the approval stops at its own gate.--gate, each member's own release gates apply, and the train stops at the first member that is gated or fails.train: { id, digest }, with one step per member.chant workspace train list <env> --jsongives each train its digest and the workspace runs that promoted it, with each member's step status. This is the read behold needs for a train row that expands to members.workspace trainCLI page documents the digest,train promoteand--gate. It replaces the "workspace: workspace Ops, the workspace pipeline and release trains (after #1939) #2554 updated" acceptance box, since workspace: workspace Ops, the workspace pipeline and release trains (after #1939) #2554 is closed. Thecomponents promotepage documents--plan-only.Left to #5119 and others
repomembers, read through each repository's read contract at its pinnedrev. It also adds the control repo's promote, which dispatches into each repository and waits for<product>-applied, and the--releasedeploy record on a member pipeline. That issue reusestrainDigestfrom item 1 and the cover shape from item 3. A promote across repositories keeps each member's own gate, so the workspace gate in item 4 stays within one repository.train promote, are not built here.feat(workspace): a release train has a digest and promotes its member…
feat: estate-read batch 3, Terraform and k8s lint precision, Helm ren…