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: workspace Ops, the workspace pipeline and release trains (after #1939) #2554
no chant workspace run exists. OPS014 is already taken: it is the ConvergeOp rule-table refusal (packages/core/src/lint/rules/op/ops014-converge-rule-refusals.ts), so the rule id in this issue and in ws-030 needs a new number. #1939 (cross-build-root post-synth mode) is open
chant run at a root keeps the root's own Ops
not met
chant run is not refused at a declared root (root-refusal.ts covers build and lint only), so it behaves as before, but no test pins it with a declaration present
Member records cite the workspace run
not met
no workspace run record exists
A workspace gate never satisfies a member gate unless its digest covers the member's and the member opts in at base
not met
no workspace gate exists. Member gates are bound to environment and plan digest (#2594)
A release-train record pins every member's release
nothing shipped. The root's ops/lexicon-upgrade exists but no workspace Op runs
Level 0 is unaffected, or the change is on #2525's exception list
met, vacuously
nothing shipped
What exists that this builds on: member ledgers under _members/<member>/ and per-member leases refs/chant/lease/_members/<member>/<op> (#2538, lifecycle/member-ledger.ts). The _members/_workspace/ ledger is not there. Status: not started, blocked on #1939, which was last updated 2026-09-07.
Deferred on 2026-09-30: this issue waits on #1939 (whether build-level post-synth checks get a cross-build-root mode). The maintainer chose to leave #1939 undecided for now, so none of this is built in the #2525 push. Once #1939 is decided, reopen the plan here. When it is picked up, note that OPS014 already names the ConvergeOp rule-table refusal check, so the <member>/<op> target check needs a new id.
Landed on integration/chant-goal in 2739895 (merge of fa81080).
Criterion
State
<member>/<op> targets checked against the composed graph
met. The check is OPS019, since OPS014 is taken. chant workspace run reads every member's graph under its own toolchain (readMembers, as workspace graph does) and turns each composed member into a #1939 cross-root build root with its Ops among the entities. OPS019 runs over them through runCrossRootChecks, and the run stops before anything starts when a target names a member that isn't composed or an Op it doesn't declare.
chant run at a root keeps the root's own Ops
met. A test pins that Op discovery at a declared root finds the root's Ops and none of a member's, and the WSP000 guard covers only build and lint.
Member records cite the workspace run
met. Each member run gets CHANT_WORKSPACE_RUN, and its run record carries workspaceRun: { id, gate? }. The workspace record at _members/_workspace/<env>/runs.jsonl names each member run back as memberRun.
A workspace gate satisfies a member gate only when its digest covers the member's plan and the member opts in at base
met. --gate <name> gathers gated member runs into one pending fact under _members/_workspace/_gates/<name>.jsonl, listing each member, Op, gate and plan digest with a digest over that list. chant workspace run approve <name> approves it. evaluateGate accepts the approval in place of the member's own (via: "workspace") only when the covers still hash to the approved digest, they include this member's plan, and the member's entry sets acceptWorkspaceGates: true in the declaration read at base. Nothing is written to the member's gate ledger.
A release-train record pins every member's release
met. chant workspace train <env> [--pin <member>=<label|digest>] writes _members/_workspace/<env>/trains.jsonl and refuses when any chant member has no release. train list <env> reads the trains back.
partly. The chant repo's only chant member, npm, declares no Ops, and the root's ops/lexicon-upgrade Ops belong to no member. So there's no workspace Op to run there, and chant run at the root still runs them. workspace train applies to npm. Running a real workspace Op on the chant repo is not run here and needs the maintainer.
Level 0 unaffected
met. The new record field and gate path appear only when a workspace run sets the environment, and the workspace code loads lazily.
Running a member's dependents (for terragucci#753): chant workspace run --dependents-of <member> --op <op> [--env] [--gate] [--dry-run] [--json] runs <op> in every member that links to <member>, directly or not, nearest first. It skips <member> itself and lists any dependent without the Op as skipped. The same is available as workspaceRun({ cwd, targets: [], dependentsOf, op }) in packages/core/src/workspace/workspace-run.ts, with dependentsOf(member, graph.links) for the order alone.
Docs: cli/workspace-run, cli/workspace-train, OPS019 in lint-rules/correctness, and acceptWorkspaceGates in the declaration reference. The workspace pipeline (generated CI for workspace Ops) is not built.
Activity
lex00 commentedon Sep 30, 2026
Audit 2026-09-30 against main 1c1a04a
<member>/<op>targets against the composed graphchant workspace runexists. OPS014 is already taken: it is the ConvergeOp rule-table refusal (packages/core/src/lint/rules/op/ops014-converge-rule-refusals.ts), so the rule id in this issue and in ws-030 needs a new number. #1939 (cross-build-root post-synth mode) is openchant runat a root keeps the root's own Opschant runis not refused at a declared root (root-refusal.tscoversbuildandlintonly), so it behaves as before, but no test pins it with a declaration presentops/lexicon-upgradeexists but no workspace Op runsWhat exists that this builds on: member ledgers under
_members/<member>/and per-member leasesrefs/chant/lease/_members/<member>/<op>(#2538,lifecycle/member-ledger.ts). The_members/_workspace/ledger is not there. Status: not started, blocked on #1939, which was last updated 2026-09-07.lex00 commentedon Sep 30, 2026
Deferred on 2026-09-30: this issue waits on #1939 (whether build-level post-synth checks get a cross-build-root mode). The maintainer chose to leave #1939 undecided for now, so none of this is built in the #2525 push. Once #1939 is decided, reopen the plan here. When it is picked up, note that OPS014 already names the ConvergeOp rule-table refusal check, so the
<member>/<op>target check needs a new id.feat(workspace): workspace Ops, workspace gates and release trains (#…
Merge feat/2554-workspace-ops into integration/chant-goal (#2554)
lex00 commentedon Oct 24, 2026
Landed on
integration/chant-goalin 2739895 (merge of fa81080).<member>/<op>targets checked against the composed graphchant workspace runreads every member's graph under its own toolchain (readMembers, asworkspace graphdoes) and turns each composed member into a #1939 cross-root build root with its Ops among the entities. OPS019 runs over them throughrunCrossRootChecks, and the run stops before anything starts when a target names a member that isn't composed or an Op it doesn't declare.chant runat a root keeps the root's own OpsCHANT_WORKSPACE_RUN, and its run record carriesworkspaceRun: { id, gate? }. The workspace record at_members/_workspace/<env>/runs.jsonlnames each member run back asmemberRun.--gate <name>gathers gated member runs into one pending fact under_members/_workspace/_gates/<name>.jsonl, listing each member, Op, gate and plan digest with a digest over that list.chant workspace run approve <name>approves it.evaluateGateaccepts the approval in place of the member's own (via: "workspace") only when the covers still hash to the approved digest, they include this member's plan, and the member's entry setsacceptWorkspaceGates: truein the declaration read at base. Nothing is written to the member's gate ledger.chant workspace train <env> [--pin <member>=<label|digest>]writes_members/_workspace/<env>/trains.jsonland refuses when anychantmember has no release.train list <env>reads the trains back.chantmember,npm, declares no Ops, and the root'sops/lexicon-upgradeOps belong to no member. So there's no workspace Op to run there, andchant runat the root still runs them.workspace trainapplies tonpm. Running a real workspace Op on the chant repo is not run here and needs the maintainer.Running a member's dependents (for terragucci#753):
chant workspace run --dependents-of <member> --op <op> [--env] [--gate] [--dry-run] [--json]runs<op>in every member that links to<member>, directly or not, nearest first. It skips<member>itself and lists any dependent without the Op as skipped. The same is available asworkspaceRun({ cwd, targets: [], dependentsOf, op })inpackages/core/src/workspace/workspace-run.ts, withdependentsOf(member, graph.links)for the order alone.Docs: cli/workspace-run, cli/workspace-train, OPS019 in lint-rules/correctness, and
acceptWorkspaceGatesin the declaration reference. The workspace pipeline (generated CI for workspace Ops) is not built.