Skip to content

workspace: workspace Ops, the workspace pipeline and release trains (after #1939) #2554

Closed

Description

@lex00
Level Design Driver
1 #2524 D17, D19 #2525

Scope

  • Ops that span members run through chant workspace run with <member>/<op> targets.
  • Their ledger is _members/_workspace/.
  • A workspace pipeline and release trains follow.

Acceptance criteria

Out of scope

Activity

  1. added
    enhancement
    area:ops
    area:ci
    area:workspace
    level:1
    on Sep 23, 2026
  2. lex00 commented on Sep 30, 2026

    @lex00
    ContributorAuthor

    Audit 2026-09-30 against main 1c1a04a

    Criterion State Evidence
    OPS014 checks <member>/<op> targets against the composed graph not met, blocked on #1939 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 not met no release-train record or kind
    Works on the chant repo (#2557) not met 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.

  3. lex00 commented on Sep 30, 2026

    @lex00
    ContributorAuthor

    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.

  4. lex00 commented on Oct 24, 2026

    @lex00
    ContributorAuthor

    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.
    Works on the chant repo (#2557) 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciarea:opsarea:workspaceenhancementlevel:1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions