Skip to content

epic: trunk-based development in behold: run events, the trunk lane, change sets on the graph and the why chain #678

Closed
39 of 39 issues completed

Description

@lex00

Goal

Trunk-based development in chant, shown in behold: every commit goes to trunk, gates decide which commits reach each environment, and behold shows every change from its requirement to a green commit to a gated deploy. People review the requirement and the change set, not a pull request.

Why behold

The model comes from INTENTIUS/chant#4016 (a forge with no branches or pull requests) and INTENTIUS/chant#4015 (chant running CI). Most of a forge's weight is its web UI for pull requests and review. In this model the review screen is the trunk lane plus the change set drawn on the graph, so behold is that screen. Everything here works on GitHub today through chant ci; only the pieces marked "forge" wait on the forge's server half.

Expected outcomes

  • A run of any kind (local, steward, forge CI) shows its real step state live, from one event stream.
  • Each environment shows which trunk commits are green, which wait at a gate, and which one is deployed, and a gate can be approved from there.
  • An approval shows a picture of exactly what will change, and that picture stays readable afterwards.
  • One click on a resource answers who asked for it and who let it ship.
  • Unfinished work sits on trunk behind flags, and turning one on is a gated change like any other.
  • Every environment runs a named release that traces to one commit, and promotion moves the same release forward.
  • Anyone publishing their own software with chant can release from a workstation with the same checks and records as CI.
  • Two pieces of work changing the same thing are flagged as soon as it happens.
  • A local run means the same thing as a CI run (after research: chant and pipeline engines like Dagger (hermetic Op steps, running generated CI locally, warden policy as a lexicon) chant#4015 decides the engine).

The flow

  1. Commits on trunk name their work item with a Chant-Record: work:<id> trailer, or a Chant-Lease trailer that resolves to it; the work item implements the decision it carries out. workspace: trunk commits name their work item with a Chant-Record trailer, checked and reported chant#4029 checks that they do.
  2. CI runs on each commit; chant ci tags it green or revoked.
  3. A release is cut from a green commit: artifacts built once and shared by digest, templates compiled per environment with that environment's build parameters and flags, provenance back to the commit (lifecycle: the release is what graduates: cut from a green commit, shared artifact digests, one compile target per environment chant#4026).
  4. Gates promote the release environment by environment, each approval bound to the release, the environment and the change set.
  5. Each environment runs a release, which traces to one commit.

Deploys pin a release digest, and the release pins its commit. A project with no components still has releases: a green commit's deterministic build output per environment.

Pieces

# Piece chant behold Works today?
1 Runs as structured events INTENTIUS/chant#4019 #679 yes
2 Trunk lane per environment INTENTIUS/chant#4020, INTENTIUS/chant#4021 #680 yes on GitHub; other forges through INTENTIUS/chant#4044
3 Change set on the graph INTENTIUS/chant#4022 #681 yes
4 The full why chain INTENTIUS/chant#4023 #682 yes
5 Flags on the graph INTENTIUS/chant#4024 #683 yes
6 Collision marks INTENTIUS/chant#4025 #684 yes
7 Releases: what graduates, one compile target per environment INTENTIUS/chant#4026 #692 (release column) yes
8 Release from a workstation, for anyone publishing with chant INTENTIUS/chant#4027 yes
9 Run locally, same result as CI INTENTIUS/chant#4015 #685 waits on INTENTIUS/chant#4015

Order

See Phases below; the phase:N labels are the order.

Phases

Every sub-issue carries a phase:N label. Everything in a phase can run in parallel once the previous phase merges, except where an issue says "After #N (same phase)": those run in that order inside the phase. The "Watch for" column names those orderings and the pairs that touch the same files, so run them in sequence or coordinate. Every issue that adds a read-contract schema also edits the versions table at reference/workspace-read-contract.mdx:13.

The second audit (#678 (comment)) was applied on 2026-10-16.

Phase chant behold Watch for
0 INTENTIUS/chant#4028 (release-model decision, first), INTENTIUS/chant#4029 commit-to-work-item links, INTENTIUS/chant#4030 environment order, INTENTIUS/chant#4019 run-event schema, INTENTIUS/chant#4020 sha and CI locator, INTENTIUS/chant#4021 ci list INTENTIUS/chant#4029 after INTENTIUS/chant#4021 (ci list output); INTENTIUS/chant#4020 and INTENTIUS/chant#4030 both touch status.schema.json
1 INTENTIUS/chant#4026 release record and cut, INTENTIUS/chant#4022 stored change sets, INTENTIUS/chant#4041 run-event emitters, INTENTIUS/chant#4031 signed tags and release roles #690 approver identity, #691 chant version floors INTENTIUS/chant#4026 and INTENTIUS/chant#4022 both touch status.schema.json and the lifecycle ledger; INTENTIUS/chant#4031 after INTENTIUS/chant#4026 (release cut and release signature)
2 INTENTIUS/chant#4045 gate binding, INTENTIUS/chant#4046 implicit releases, INTENTIUS/chant#4043 release joins, INTENTIUS/chant#4033 release trigger and revocation, INTENTIUS/chant#4034 migration, INTENTIUS/chant#4042 replay, INTENTIUS/chant#4044 runner status source, INTENTIUS/chant#4032 performance budget #679 run events, #680 lane and approve, #681 change-set overlay INTENTIUS/chant#4045 first: INTENTIUS/chant#4043 and INTENTIUS/chant#4033 run after it, and INTENTIUS/chant#4034 after INTENTIUS/chant#4043, INTENTIUS/chant#4045 and INTENTIUS/chant#4046. INTENTIUS/chant#4043, INTENTIUS/chant#4045, INTENTIUS/chant#4046 and INTENTIUS/chant#4034 share release-ledger.ts, release-read.ts and gate-ledger.ts; INTENTIUS/chant#4033 and INTENTIUS/chant#4045 share the approve refusal path; INTENTIUS/chant#4033 and INTENTIUS/chant#4044 share ci tick. #679 after INTENTIUS/chant#4042; #681 after INTENTIUS/chant#4045 and #680; #680 and #681 share server routes
3 INTENTIUS/chant#4023 why chain, INTENTIUS/chant#4024 flags, INTENTIUS/chant#4035 rollback and partial promotes, INTENTIUS/chant#4027 workstation release command, INTENTIUS/chant#4036 retention #692 lane release column INTENTIUS/chant#4023 and INTENTIUS/chant#4024 both edit the status and intent schemas; INTENTIUS/chant#4027 and INTENTIUS/chant#4035 both add release commands and name releases by version
4 INTENTIUS/chant#4025 overlap, INTENTIUS/chant#4047 publish targets, INTENTIUS/chant#4048 resume and all-or-nothing, INTENTIUS/chant#4049 release signing, INTENTIUS/chant#4038 docs and never-lines, INTENTIUS/chant#4039 DORA metrics #682 why chain, #683 flags INTENTIUS/chant#4048 and INTENTIUS/chant#4049 after INTENTIUS/chant#4047; all three touch the per-target publish code
5 INTENTIUS/chant#4040 dogfood chant's own releases #684 collision marks
blocked INTENTIUS/chant#4037 multi-member releases (waits on INTENTIUS/chant#2554, deferred on 2026-09-30 pending INTENTIUS/chant#1939; labelled parked) #685 (waits on INTENTIUS/chant#4015)

Exit criteria

The epic closes when every sub-issue in phases 0 to 5 is closed. #685 and INTENTIUS/chant#4037 are excluded: both wait on decisions outside this epic.

Related

Out of scope

The forge's server half (git server, op.json runner as a service) stays in INTENTIUS/chant#4016.

Sub-issues

41 attached as GitHub sub-issues; the Phases table lists every one.

Sub-issues

Sub-issues

39 of 39 Issues completed
Loading 39 sub-issues

Activity

  1. added
    enhancement
    epic
    product-pipelines
    on Oct 16, 2026
  2. 23 remaining items

  3. lex00 commented on Oct 16, 2026

    @lex00
    ContributorAuthor

    Second audit (fresh reviewer, read against chant origin/main 8b045980c and behold origin/main d250599)

    Fixes to the issue bodies follow this comment. Findings marked PLAN CHANGE wait on Alex.

    Read against chant origin/main 8b045980c and behold origin/main d250599, 2026-10-16. No sub-issue has any comment, so everything below comes from issue bodies, the background issues and code.

    Summary

    The phase table matches every phase:N label (41 of 41, none missing). Of the four contradictions the first audit tried to fix, none is fully resolved:

    1. Flags vs releases is still open. #4024, #4026, behold#680 and the #4016 comment still say a flag change is "a new target revision of the same release". #4028 recommends the opposite and behold#692 assumes the opposite. #4024 has an acceptance test that hard-codes the rejected model.
    2. Commit links use the Chant-Record trailer everywhere, but the issues ignore the Chant-Lease trailer, which already links a commit to its work item. #4025 and #4023 count different sets of linked commits.
    3. Release-digest naming is consistent in the new issues. Underneath, "release record" now names two different things: the existing per-component deploy line in releases.jsonl, and the new per-member release that gets cut. Nothing defines what the release digest hashes, or how a release gets a human name.
    4. Dependency cycles moved instead of going away. The split parents (#4019, #4020, #4021, #4026, #4027, behold#680) still carry the requirements and acceptance boxes they handed to later-phase issues, so they can't close in their own phase. About ten issues also depend on another issue in the same phase.

    Four findings change the plan:

    • the flag isolation question under release model (a)
    • #4037, which waits on #2554, which the maintainer deferred
    • #3856, which is already answered (so #4048 is not blocked)
    • npm trusted publishing, which conflicts with #4040's workstation dogfood

    Findings

    A1. blocker. #4019, #4020, #4021, #4026, #4027, behold#680

    Split parents still hold what they split off. Each parent has a "Split:" banner, but the moved requirements and acceptance boxes are still in its body:

    • #4019 (phase 0) still has requirements 4 and 5, plus acceptance boxes 2 ("Local, components, fountain, pr-plan and pr-apply runs emit it") and 3 (chant run events and --follow). Those moved to #4041 (phase 1) and #4042 (phase 2).
    • #4020 (phase 0) still has requirement 3, the "Releases (lifecycle: the release is what graduates: cut from a green commit, shared artifact digests, one compile target per environment chant#4026)" section, and the acceptance box "A test joins commit, release, gate and deploy through the release digest". That work moved to #4043 (phase 2), which needs #4026 (phase 1).
    • #4021 (phase 0) still has requirement 2 and acceptance boxes 2 and 4 (tick from a local Op run, refuse an unsigned statement). Those moved to #4044 (phase 2), which needs #4031 (phase 1).
    • #4026 (phase 1) still has requirements 4 and 5 and their acceptance boxes ("Gate approvals bind release...", "Implicit releases..."). Those moved to #4045 and #4046 (phase 2).
    • #4027 (phase 3) still has the publishing, resume and signing bullets in requirement 1, requirements 2 and 3, and the acceptance boxes "At least npm and OCI publish targets" and "publish failing halfway resumes". Those moved to #4047 (phase 4), #4048 (phase 5) and #4049 (phase 4).
    • behold#680 (phase 2) still has the "Releases" section and the acceptance box "The lane shows releases between green commits and gates". That moved to behold#692 (phase 3).

    Each of these parents depends on a later phase, so it can't close when its own phase ends.

    Fix: delete the moved requirements, sections and boxes from each parent. Replace them with one line, "Moved: req N to #XXXX". Renumber the remaining requirements.

    A2. blocker, PLAN CHANGE (human decision in #4028). #4024, #4026, behold#680, behold#692, chant#4016

    Flags vs releases is still contradictory.

    • #4024's "Releases" section says "a new target revision of the same release, with the same artifact digests". Its acceptance box 5 tests exactly that: "a flag change for one environment produces a new target revision".
    • #4024's own audit fix defers the question to "the release-model decision record (to be filed)". That record is #4028, already filed.
    • #4026's "Compile targets" section and its Expected outcome ("flags vary only an environment's own target") keep the target-revision model.
    • behold#680 "Releases": "A flag change in one environment shows as a new target revision of the same release."
    • The #4016 comment of 2026-10-16: "A flag change recompiles one environment's target and leaves the artifact digests alone".
    • Against all of these, #4028 recommends (a): a flag change is a new release. behold#692 requirement 3 already assumes (a): "A config-only release (same artifact digests) is marked as such".

    Every issue does agree that flags are build-time parameters, not runtime toggles. That part is settled.

    Option (a) also has a gap that #4028 does not discuss. On trunk, the flag-flip commit sits on top of every other commit merged since the deployed release. A release cut from it carries all of those changes too, so "turn a flag on in prod" can't ship alone. Also, #4030 refuses a promotion that skips an environment, so a prod-only flip has to pass staging's gate first, with an empty change set there. #4028's "their change sets are empty and nothing deploys there" doesn't say whether an empty change set still needs a gate approval.

    Fix:

    • Add a question 6 to #4028: "Can a flag change ship without the commits before it?" The answers are either (i) no, and flags ship with trunk, or (ii) a release can be cut from the deployed release's commit with the new flag record applied on top, which breaks "one release, one commit". Also say whether an empty change set skips the gate.
    • After the decision, rewrite #4024's "Releases" section and acceptance box 5 to "a flag change yields a release whose artifactDigests equal the previous release's".
    • Delete the target-revision sentences from #4026 and behold#680.
    • Post a correcting comment on #4016.

    A3. blocker (decision in #4028 Q3). #4020, #4026, #4028, #4031, #4034, #4043, #4045, #4027, #4035

    "Release record" names two different objects, and the release digest's input is undefined.

    The existing ReleaseRecord is "One immutable deploy record: (component, env, artifact digest, git sha, run id, timestamp, actor)" (packages/core/src/lifecycle/release-ledger.ts:73-78). It is one line per component per environment in <env>/releases.jsonl. The epic's release is a new per-member object cut once from a green commit. The issues mix the two:

    • #4028 Q3 says to add "a releaseDigest on release records". That could mean the new object or the existing deploy lines.
    • #4031 requirement 3, "Release records are signed by the signer who cut them", means the cut object.
    • #4020 requirement 3, "A release records the gate resolution that admitted it", treats the release as per-environment. A cut release has one gate per environment. ReleaseRecord.approver already exists (release-ledger.ts, the approver? field, Templates tab: list a terragucci repo's templates and request an app through a form #1035).
    • #4043 says "a deploy record names the release". No type called a deploy record exists. The deploy record is ReleaseRecord.
    • #4034 says "releases.jsonl already has producers" and treats those deploy lines as the releases to migrate.
    • #4026 requirement 3 says "recorded on the chant/lifecycle ledger" without naming a file.

    What the digest hashes is also undefined:

    • #4026 requirement 2 lists "source commit, shared artifact digests, one compile target per environment ..., and provenance".
    • #4028 (a) says "Its digest covers all of it".
    • Neither says whether actor, time, signer, signature or a version label are inside the hash. If they are, two cuts of one commit differ, and #4046's "deterministic" implicit releases can't hold.
    • Release identity for people is undefined too. #4027 uses chant release <version>, #4035 uses --to <release>, and the epic promises "a named release". No version or name field is defined anywhere.
    • Granularity is unclear. A release belongs to a member (#4028 Q4), but components promote is per --component (cli/components.mdx:28-31). #4045's "a gate for a promote binds the release digest" doesn't say whether a promote moves a whole release or one component of it.

    Fix: extend #4028 Q3 to cover:

    • the new object's name and where it is stored, for example _releases/<releaseDigest>.json, distinct from releases.jsonl
    • that ReleaseRecord stays the per-component deploy record and gains an optional releaseDigest
    • the canonical hash input: commit sha, sorted artifactDigests, and per-environment template digests and build params, excluding actor, time, signature and version label
    • a separate version label field
    • whether promote moves a whole release or one component of it

    Then make #4020, #4031, #4043 and #4034 use the chosen names.

    A4. should-fix. #4022, #4028, #4045, behold#681

    "Change-set digest" is ambiguous. reference/change-set.mdx defines three digests:

    • the member planDigest (lines 76-84)
    • the set digest computePlanDigest("change-set", pairs) (line 86)
    • the document digest (line 88)

    The gate ledger stores planDigest (gate-ledger.ts:319). #4022 requirement 1 keys storage "by digest", and #4045 and #4028 Q2 bind "the change-set digest", without saying which one.

    Fix: in #4028 Q2 and #4045, name it, for example "the change-set document's digest (change-set.mdx:88)". Say what is stored for gates that bind only a member planDigest, which #4022's audit fix already asks.

    A5. should-fix. #4029, #4025, #4023, behold#680

    The commit-to-work-item link ignores the existing Chant-Lease join.

    • Chant-Lease already "finds the work item in the lease histories ... and links the commit to it" (cli/workspace-graph.mdx:386, workspace-read-contract.mdx:587).
    • The factory's Record step already commits "with Chant-Record and Chant-Lease trailers" (guide/work-items.mdx:266).
    • #4029's context says commits reach work items "only through Chant-Record trailers and work-item windows", which is wrong.
    • #4029 requirement 1 would flag a lease-only commit as unlinked.
    • #4025 requirement 1 counts only Chant-Record commits.
    • #4023 reads the intent graph, which also counts window matches (the worked bucket, read-contract.mdx:574).
    • behold#680 requirement 3 doesn't say which link it uses.
    • work: is the conventional kind name, not a fixed one. The kind name comes from the declaration (workspace-declaration.mdx:163-180).
    • ws-075 says "chant never commits for a caller", so #4029 requirement 3 ("Agents get the trailer from the work lease") needs a named writer.

    Fix: in #4029, define "linked" once: a Chant-Record naming the declared work kind, or a Chant-Lease that resolves to an item. Say whether a window match counts. Point #4025, #4023 and behold#680 at that definition. Rewrite requirement 3 to name the writer: the factory Op (already done), hud or studio, or a chant workspace work trailers printer.

    A6. should-fix. #4029

    There is no chant check --changes. The command is chant workspace check --changes <base>..<head> [--work <id>] [--severity off|warn|fail] (cli/workspace-check.mdx:11, 257-319). It already has a severity switch.

    Fix: name the real command. Reuse --severity, or name the declaration field that makes the check an error. Also define "wrongly linked" in the acceptance (an unknown id? a non-work kind? a done item?).

    A7. should-fix. Phase plan, same-phase dependencies

    The epic says everything in a phase runs in parallel. These pairs break that:

    • #4029 (phase 0): the acceptance "Unlinked commits are marked in ci list --json" needs #4021's ci list (phase 0).
    • #4022 (phase 1): acceptance box 5, "name the release and environment", needs #4026 (phase 1). The audit fix admits it.
    • #4031 (phase 1): requirement 1 ("release cutting ignore[s] a tag") and requirement 3 (sign release records) need #4026's cut (phase 1).
    • #4033 (phase 2): "its release's pending gate refuses approval" needs #4045's release binding (phase 2).
    • #4034 (phase 2) must read the fields that #4043, #4045 and #4046 add (phase 2).
    • #4043 requirement 1 ("A gate record names the release digest it admitted") duplicates #4045 requirement 1. Both are in phase 2 and both edit gate-ledger.ts.
    • #4032 (phase 2) budgets "the overlap report", which only exists after #4025 (phase 4).
    • #4049 (phase 4): "SBOMs and provenance attached for npm and OCI targets" needs #4047's targets (phase 4).
    • behold#679 (phase 2): its only Needs is #4019. It also needs #4041 (phase 1, emitters) and, for steward and forge runs and after-the-fact reads, #4042 (phase 2).
    • behold#681 (phase 2): requirement 1 ("a release planned for an environment") needs #4045 (phase 2). The acceptance "reachable from the trunk lane (the trunk lane: per environment, which commits are green, which wait at a gate, which is deployed, with approve #680)" needs behold#680 (phase 2).
    • behold#680 and behold#692 both need #4030's declared order. Neither Needs line lists it.

    Fix:

    • Move #4022 box 5 into #4045.
    • Fold #4043 requirement 1 into #4045. #4043 keeps only the deploy-record side and the join test.
    • Move #4033, #4034 and behold#681's release half to phase 3, or add "After #4045" and accept sequencing inside phase 2.
    • Change #4032 to budget the trace only, and give #4025 the overlap budget.
    • Add "After #4047" to #4049, or move #4049 to phase 5.
    • Add #4041 and #4042 to behold#679's Needs.
    • Add #4030 to the Needs of behold#680 and behold#692.

    A8. should-fix, PLAN CHANGE. behold#691

    behold#691 can't finish in phase 1. Its acceptance, "Floors for every read the epic adds", covers reads that ship in phases 1 to 5. Requirement 1 names each floor "after the chant release that adds it", which isn't known until each one ships. Requirement 4 (releases through the read contract) needs #4026 requirement 6, which is also phase 1.

    Fix: split it.

    A9. should-fix, PLAN CHANGE. #4037

    #4037 depends on a deferred epic. Its acceptance is "#2554 updated to match", with trains gated per environment. On 2026-09-30 the maintainer deferred #2554 "waits on #1939 ... leave #1939 undecided". No _members/_workspace/ ledger and no workspace run exist. The #2554 audit also notes that OPS014 is already taken.

    Fix: move #4037 to "blocked" next to behold#685 and out of the exit criteria, or rescope it to a train record only, with no workspace Op runs. A human has to choose.

    A10. should-fix, PLAN CHANGE. #4027, #4048, epic phase 5 row

    #3856 is answered.

    • Its 2026-10-12 findings comment recommends dist-tag staging: publish under next, then move latest with core first. Follow-ups #3903, #3904 and #3905 are all closed.
    • #4027's audit fix still calls #3856 "unanswered research".
    • #4048 says "All-or-nothing waits on #3856's recommendation".
    • The epic's phase 5 row says "(waits on #3856)".

    Fix: rewrite #4048 requirement 2 as concrete per-target rules. For npm, stage under a non-latest dist-tag and move latest core first, as #3903 does. For OCI, push by digest and then move the tag. For forge assets, use a draft release and then publish it. Drop the "or the dependency recorded" escape box. #4048 can then move to phase 4 next to #4047, or merge into it.

    A11. should-fix, PLAN CHANGE (human decision). #4040, #4049, #4047

    #4040 requirement 1 says "chant's npm releases go through chant release, from a workstation and from CI". But #3856's constraints say "npm provenance and trusted publishing stay (#1255, #3191)". npm trusted publishing and --provenance work through CI OIDC, so a laptop publish loses both. #4049's "sign with the workstation key" is a different trust root from npm provenance.

    Fix: decide whether chant's own release is cut and checked on a workstation and published by CI, or whether provenance is dropped for workstation publishes. Write the answer into #4040 and #4049. #4047's npm target should state that it supports staged multi-package sets and OIDC.

    A12. should-fix. #4031, #4034, #4040

    Signed green tags would break chant's own release.

    • #4031 makes ci tick, ci list and release cutting ignore any green tag without a signed statement.
    • Every existing ci/green/<sha> tag is unsigned.
    • chant's own just release reads them through scripts/release-preflight.sh:60-68 (cli/ci.mdx:83).
    • The tick runs in GitHub Actions and has no runner key today.
    • #4034's migration covers ledger records, not tags.

    Fix: add to #4031:

    • a cutover rule, for example "tags older than the declaration's ci.green.signedSince are accepted unsigned"
    • how a GitHub-hosted tick gets a runner key (a secret, and the runner role in .chant/trust.json)
    • an acceptance box that release-preflight.sh keeps working

    A13. should-fix. #4031

    #4031 requirement 2 invents a role mechanism that already exists. "Who may cut a release (a role mapped to signers)" is what identity.gates with class already provides, read from role grants in .chant/trust.json (workspace-declaration.mdx:269-300).

    Fix: express "may cut a release" as an identity.gates entry, or a class, for a release gate. Don't add a new role field.

    A14. should-fix. behold#690, behold#680

    Part of behold#690 is already on behold main.

    So behold#690's acceptance box 2 is already met and requirement 4 is half met. behold#680's audit fix ("That's a gap to file") is stale, since the gap is behold#690.

    Fix: scope behold#690 to the new parts:

    • identity from the forge or OIDC login
    • recording that identity as a forge identity, so identity.attribution: identified accepts it (workspace-declaration.mdx:291)
    • signing with the person's key

    Replace box 2 with "a signed gate is approved when a key is configured". Point behold#680 at behold#690.

    A15. should-fix. #4030

    #4030 puts the order in the wrong file. It puts promotion order in the workspace declaration, but environments are declared per member in chant.config.ts environments, and per component through component.schema.json:64 (ws-095), and both are read by workspace/environments.ts. With #4028 Q4 (one release per member), the order belongs with the member.

    Fix: order the member's environments array, or state why the workspace declaration is better. Name the existing field either way.

    A16. should-fix. #4035, #4027

    #4035 ignores rollback and redeploy features that already exist, and its command name collides with #4027's.

    • components rollback already runs through the environment's gates, "bound to <env> and to the release being restored" (cli/components.mdx:424).
    • components redeploy already handles "a deploy that failed partway" (components.mdx:439, 453-463).
    • #4035 requirement 1 proposes chant release rollback <env>, while #4027 proposes chant release <version>. A version positional and a rollback subcommand collide.

    Fix: cite rollback and redeploy as the base and state the delta (release-level instead of component-level, plus the mixed state). Pick distinct command shapes, for example chant release cut <version> and chant release rollback <env>.

    A17. should-fix. #4020

    There are two run-locator shapes. #4020's audit fix says to reuse GateRunLocator (op/gate-run-locator.ts:12: forge: ForgeKind, API base, url). But release records already carry runOrigin: RunOrigin (release-ledger.ts:44-56, 108, #2045), which has a different shape: forge: "github"|"gitlab"|"op"|"local", repo, url.

    Fix: name which shape OpRunRecord gets and how the other maps onto it. Also note that ReleaseRecord.approver exists, so requirement 3's gap is the gate id and time, plus exposing them in status.schema.json.

    A18. should-fix. Watch-for column

    Stale entry: "#4019 and #4020 both touch op/runtime.ts and local-executor.ts". #4019 is now schema and types only. The emitters that touch local-executor.ts are #4041, in phase 1.

    Missing same-phase pairs:

    • Phase 0: #4021 and #4029 (ci list output); #4020 and #4030 (status.schema.json).
    • Phase 1: #4026 and #4031 (release cut and release record).
    • Phase 2: #4043, #4045, #4046 and #4034 (release-ledger.ts, release-read.ts, gate-ledger.ts); #4033 and #4045 (the approve refusal path).
    • Phase 3: #4027 and #4035 (the chant release command namespace).
    • Phase 4: #4047 and #4049 (per-target publish code).
    • Every issue that adds a read-contract schema edits the versions table at workspace-read-contract.mdx:13.

    Fix: replace the stale entry and add these pairs.

    A19. should-fix. Acceptance testability of the gap issues

    • #4031: requirement 4 (signed revoked tag) has no box.
    • #4035: requirement 3 (lane and status show mixed state and commands) has no box.
    • #4045: requirement 2's "or for another environment" has no box. Only "a different release" is tested.
    • #4041: requirement 2 (step start emitted) has no box.
    • behold#692: requirements 2 (declared order) and 3 (config-only marked) have no box.
    • #4042 and #4048: each box ends "or a recorded dependency", which can always be ticked. Replace with concrete behaviour, or move it out of scope.
    • #4032: "budget met" is relative to workspace status time on an unnamed machine. State the ratio, the runner and the repo revision. Also add a box for requirement 3 (cause found and fixed).
    • #4034: "read correctly" is vague. Name the producers: components release, run --components, components promote, rollback, redeploy, SQL Yodeler and chud-studio. Assert that each new field reads as absent.
    • #4036: "Growth over a month of use" needs a month of wall time after phase 3. Allow a synthetic projection, or move it to the epic close.
    • #4039: requirement 2 depends on #3990's metrics contract, which doesn't exist. Define change failure and restore exactly (does a revoked commit count, or only a rolled-back release?). Say which contract file the box checks.
    • #4046: "deterministic build output per environment" isn't defined. Name the archive entries or the dist/ files.
    • #4049: "Signed releases verify" doesn't name the verifying command.
    • #4029: "wrongly linked" is undefined (see A6).
    • behold#691: unbounded (see A8).
    • These are fine as written: #4030, #4033 (apart from the A7 ordering), #4037 (apart from A9), #4038, #4040, #4043, #4044, #4047, behold#690 (apart from A14).

    A20. nit. Stale text after the first audit

    • Epic flow step 1: "Nothing makes commits carry that trailer yet (a gap to file)". It is filed as #4029.
    • Epic Pieces row 2: "#4021 requirement 2 is forge work". #4021 says "Both requirements work on any forge today", and requirement 2 is now #4044.
    • Epic Pieces row 7: "the trunk lane: per environment, which commits are green, which wait at a gate, which is deployed, with approve #680 (release column)". The release column is behold#692.
    • #4024: "the release-model decision record (to be filed)". It is #4028.
    • #4019 and #4027: "This issue will likely split". Both have split.
    • #4028, Out of scope: "Each is an audit gap to file separately". They are #4033 and #4035.
    • #4028's acceptance asks to update "#4026 ... the gate binding" and "#4020 ... the join through the release digest". Those moved to #4045 and #4043.
    • #4021's header says it closes #4016 gap 2. #4044 says the same.
    • chant#4016 model bullet: "A gate decides whether a green hash graduates". Under the release model, a release graduates.

    Fix: edit each line.

    A21. nit. Duplicated questions and budgets

    • #4026 requirement 1 and its first acceptance box ask what #4028 Q5 says to "answer here".
    • #4022 requirement 1's retention number duplicates #4036.
    • #4023's audit-fix time budget and acceptance box duplicate #4032.

    Fix: keep one owner for each, and point the others at it.

    A22. nit. Wrong or inexact citations

    See the table below. These are the mismatches:

    • #4021 and #4031 cite cli/ci.mdx:33-43 for "plain git tags that anyone with contents: write can push or delete". Those lines describe the tick. The unprotected-tag statement is in ws-103 line 16: "The tags are unprotected until a forge ruleset limits who may create them". "contents: write" appears nowhere.
    • #4025 cites workspace-read-contract.mdx:432 for work leases. Line 432 is blank; lease is at line 428.
    • #4026 and #4028 cite plan-ledger.ts:10-20 for three meanings of digest. Those lines cover the artifact and plan digests only. SQL Yodeler's schemaSha as digest is in sql-yodeler src/release/index.ts:99.
    • #4019 says RunProgressEvent streams "only from chant run --components --progress-json". components promote (cli/handlers/promote.ts:204) and fan-out (fan-out.ts:366) stream it too, and #4041's emitter list leaves them out, along with rollback and redeploy.
    • #4027 says run-id falls back to $USER. It falls back to "a locally generated id" (cli/components.mdx:68); only actor falls back to $USER. #4027 also says "Nothing checks, from a laptop, that the commit is on trunk and green". chant's own just release does, through scripts/release-preflight.sh:41-68. Cite it as the prior art #4040 replaces.
    • #4047 says OCI is missing beyond the AWS-only publish-artifact. publish-image already promotes to ECR, ACR and Artifact Registry (components/build-archive.mdx:30). The gap is generic registries such as GHCR and Docker Hub.
    • #4023 and #4032 quote 41 to 198 s from #3616, which was measured on chant 0.108.1 (#4032 re-measures, which is fine).
    • #4042: chant run <name> takes an Op name positionally and already reserves list, status, log, cancel and approve (cli/run.mdx:11-31). events would reserve one more name and overlaps run log.
    • #4019 and #4041 overlap the still-open #4007 for the pr-plan and pr-apply events. Say which issue implements them.

    Citations checked

    Issue Citation Result
    4019 components/run-progress.ts:93 RunProgressEvent ok
    4019 cli/run.mdx:299-301 --progress-json ok
    4019 op/local-executor.ts:67 StepRecord ok
    4019 lexicons/fountain/src/op/runtime.ts turns tool calls into phases ok (runtime.ts:527, 1171-1221)
    4019 runs.schema.json covers agent runs ok
    4019 RunProgressEvent streams "only" from run --components mismatch: also promote.ts:204, fan-out.ts:366
    4019 RunProgressEvent not exported ok (absent from components/index.ts; StepRecord is exported from op/index.ts:118)
    4019 #4007 asks for progress events on pr-plan/pr-apply ok (open)
    4020 lifecycle/gate-ledger.ts:285-345 PendingGateRecord has runId, planDigest, no sha ok (record runs to 380; also has resume?: GateRunLocator at 308)
    4020 op/runtime.ts:116 OpRunRecord has no sha or locator ok
    4020 workspace/status.schema.json:910-925 release has gitSha, runId, actor ok
    4020 reuse GateRunLocator exists (op/gate-run-locator.ts:12), but ReleaseRecord uses a different RunOrigin (release-ledger.ts:44)
    4021 cli/ci.mdx:33-43 tags pushable by anyone with contents: write mismatch: claim is in ws-103:16; "contents: write" absent
    4021 ci-last-green.schema.json only the newest green ok
    4021 tick refuses --forge gitlab/forgejo ok (ci.mdx:43)
    4022 reference/change-set.mdx:78-84 component gates bind lifecycle-plan digest ok (line 81)
    4022 _plans/ holds release plans (ws-055) ok (plan-ledger.ts:1-30)
    4022 chant change-set show new command (only summary exists); fine as a proposal
    4022 behold src/chant.ts:1017-1174 plans as counts per component partly: lifecyclePlan returns entity-keyed entries; the per-component summary is in src/reconcile.ts
    4023 workspace-read-contract.mdx:481-578 intent graph ok
    4023 graph --intent 41-198 s (#3616) ok, measured on chant 0.108.1
    4024 concepts/build-time-parameters.mdx:111 BuildResult.buildParams ok
    4024 build-time-parameters.mdx:44-60 sources and precedence ok (line 60)
    4024 status.schema.json:912-922 flags: ["legacy-digest"] ok (line 921)
    4025 workspace-read-contract.mdx:432 work leases mismatch: lease is line 428
    4025 workspace-read-contract.mdx:569-575 alsoWithin ok
    4026 components/build-archive.mdx provenance sourceRef ok (line 101)
    4026 deterministic-synthesis templates ok (line 96)
    4026 promote approval bound to env and digest ok (cli/components.mdx:370)
    4026, 4028 lifecycle/plan-ledger.ts:10-20 three meanings incl. schemaSha partial: lines name artifact and plan digest only; schemaSha is sql-yodeler src/release/index.ts:99
    4026, 4028 workspace-read-contract.mdx:9-18 changed meaning is new version ok (line 17)
    4027 components release needs --digest, run-id/actor defaults partly: run-id falls back to a generated id, not $USER (components.mdx:68-69)
    4027 publish-artifact AWS-only, publish-image covers registries ok (lexicons/aws/src/components/publish.ts:339; build-archive.mdx:30)
    4027 nothing checks trunk and green from a laptop mismatch for chant itself: scripts/release-preflight.sh:41-68
    4028 ws-103 style, ws-104 next free ok (ws-103 is the newest decision)
    4029 workspace-read-contract.mdx:426, 522, 580-592 ok
    4029 chant check --changes mismatch: chant workspace check --changes <base>..<head> [--severity ...]
    4029 commits reach work items only through Chant-Record and windows mismatch: Chant-Lease also joins (workspace-graph.mdx:386)
    4029 ws-075 trailers ok; ws-075 also says chant never commits for a caller
    4030 components promote takes --from/--to each time ok (components.mdx:28)
    4030 behold guesses order from yodel-waves.json ok (behold src/lifecycle-releases.ts:23, 51)
    4030 environments in the workspace declaration mismatch: environments live in member chant.config.ts and component.schema.json:64
    4031 cli/ci.mdx:33-43 tag trust mismatch (as 4021)
    4031 .chant/allowed_signers, ws-069, ws-090 ok (files exist)
    4031 no role for who may cut partly: identity.gates + class + .chant/trust.json roles exist (workspace-declaration.mdx:269-300)
    4033 cli/ci.mdx:16, 37-39 revoke after the fact ok
    4034 releases.jsonl producers ok, but list omits promote, rollback, redeploy
    4035 cli/components.mdx:417-420 rollback per component ok; omits gate binding (424) and redeploy (453)
    4038 docs/src/prompts.mjs:13 never-line ok (13-14)
    4038 docs/src/data/rooms.mjs, scripts/lint-prompts.mjs ok
    4039 terragucci reference/delivery-metrics ok (docs-site/src/content/docs/reference/delivery-metrics.mdx)
    4040 just release, release-preflight.sh, publish.yml ok
    4047 AWS-only publish-artifact ok, but publish-image already covers cloud registries
    behold 679 src/apply.ts copies RunProgressEvent ok (apply.ts:77)
    behold 679 src/ci-run.ts:89 regex classifier ok (foldPipelineLine)
    behold 679 run-playhead.ts, gh-run.ts ok
    behold 680 lifecycle-releases.ts, terragucci-timeline.ts ok
    behold 680 /api/workspace/gates/approve, /api/operator/approve/:op/:gate ok (server.ts:1563, 1487)
    behold 681 terragucci-overlay.ts, choudoufu-plan.ts, chant-pr.ts ok
    behold 682 workspace-why.ts, /api/workspace/why ok (server.ts:1539)
    behold 690 GET gates returns approver: string ok (server.ts:1525-1529)
    behold 690 refusing signed gates is new mismatch: already refused, server.ts:1581 code signed
    behold 691 "@intentius/chant": "^0.124.24" ok (package.json:45)
    behold 691 WHY_CHANT_FLOOR in src/workspace-why.ts ok (line 28, "0.102.0")
    behold 691 imports @intentius/chant/lifecycle/release-ledger ok (lifecycle-releases.ts:35)
    behold 691 behold doctor ok (src/cli.ts:264, src/doctor.ts)
    epic #3856 unanswered (via #4027, #4048) mismatch: answered 2026-10-12, follow-ups #3903-#3905 closed
    epic #2554 release trains (via #4037) open but deferred 2026-09-30 on #1939
  4. lex00 commented on Oct 17, 2026

    @lex00
    ContributorAuthor

    Phase 0 progress (2026-10-16)

    Phase 0 is merged.

    Level-0 changes recorded on INTENTIUS/chant#2525: #4020 (in CI, releases recorded by run --components, fan-out and pr-apply are keyed by the CI run id), #4029 (commit-link findings in workspace check --changes, ci list/ci tick text), #4030 (promote and build --promote-to refuse a skipped step).

    Findings along the way, posted on their issues:

    Nothing parked in phase 0. Phase 1 has started: INTENTIUS/chant#4041 and #691 (PR #708) are under way, and INTENTIUS/chant#4026 is next.

  5. lex00 commented on Oct 17, 2026

    @lex00
    ContributorAuthor

    Phase 1 progress (2026-10-16)

    Phase 1 is merged.

    Level-0 changes recorded on INTENTIUS/chant#2525 for #4026, #4022, #4041 and #4031.

    Things that went wrong and were fixed:

    • A local test run on the #4022 branch wrote one change-set commit to chant's real chant/lifecycle and pushed it (42757403f). Alex chose to leave it. The test now replaces the store, and every brief requires temp repos with a before-and-after check of the real repo.
    • The #4042 branch's tests wrote run-event files under the shared .git/chant/run-events/; removed, and tests now write to a temp dir (CHANT_RUN_EVENTS_DIR).
    • #4031's first cutover compared commit dates, which a committer can backdate; it now uses ancestry of a declared commit.

    Findings posted on their issues: no "behold" approval channel in chant (#680); an Op gate's change set is not stored yet (INTENTIUS/chant#4045); promote under a release does not yet check the source artifact against artifactDigests (INTENTIUS/chant#4045); release list can't show the first environment until #4043; signing chant's own tags needs Alex's runner key (INTENTIUS/chant#4040).

    Nothing parked in phase 1. Phase 2 has started: INTENTIUS/chant#4046 is merged (INTENTIUS/chant#4061), INTENTIUS/chant#4042 is in review (INTENTIUS/chant#4060), INTENTIUS/chant#4044 and #4032 are in progress, and INTENTIUS/chant#4045 is next.

  6. lex00 commented on Oct 17, 2026

    @lex00
    ContributorAuthor

    Phase 2 progress (2026-10-17)

    Phase 2 is merged. Two phase 3 issues (INTENTIUS/chant#4036 retention, #692 release column) are also merged.

    Released: chant 0.124.28 (by Alex's leave), covering phases 0 to 2 up to #4032; behold now depends on ^0.124.28. Fields merged since ship in 0.124.29.

    Level-0 changes recorded on INTENTIUS/chant#2525 for #4022, #4031, #4041, #4042, #4044, #4045, #4046, #4043, #4033, #4036.

    Follow-ups filed or found: INTENTIUS/chant#4063 (a contract read for deploy records outside a workspace, so behold can drop its last release-ledger import), INTENTIUS/chant#4068 (map older deploy records to releases as a derived link), no "behold" approval channel in chant, an Op gate's change set is not stored, release list sorts a release's environments by name and doesn't say which release a cut reused artifacts from, and a guard test that no schema makes a newly added field required (the bug INTENTIUS/chant#4071 fixed).

    Nothing parked in phase 2. Phase 3 is under way: INTENTIUS/chant#4024 (flags, design) and #4035 (release rollback) in progress; #4023 and INTENTIUS/chant#4027 (design) next.

  7. lex00 commented on Oct 18, 2026

    @lex00
    ContributorAuthor

    Final summary (2026-10-18)

    Every sub-issue in phases 0 to 5 is closed by a merged PR, except two that Alex parked. #685 and INTENTIUS/chant#4037 sit outside the exit criteria.

    Merged

    Phase Issue PR
    0 INTENTIUS/chant#4028 release-model decision (ws-104) INTENTIUS/chant#4050
    0 INTENTIUS/chant#4021 ci list INTENTIUS/chant#4051
    0 INTENTIUS/chant#4019 run-event contract INTENTIUS/chant#4052
    0 INTENTIUS/chant#4020 commit, CI run and admitting gate on records INTENTIUS/chant#4053
    0 INTENTIUS/chant#4029 commit-to-work-item links INTENTIUS/chant#4054
    0 INTENTIUS/chant#4030 promotion order INTENTIUS/chant#4055
    1 INTENTIUS/chant#4026 the release and its cut INTENTIUS/chant#4056
    1 INTENTIUS/chant#4041 run-event emitters INTENTIUS/chant#4057
    1 INTENTIUS/chant#4022 stored change sets INTENTIUS/chant#4058
    1 INTENTIUS/chant#4031 signed ci tags, release gate, signed cuts INTENTIUS/chant#4059
    1 #691 chant version floors #708
    1 #690 approver identity #709
    2 INTENTIUS/chant#4042 chant run events INTENTIUS/chant#4060
    2 INTENTIUS/chant#4046 implicit releases INTENTIUS/chant#4061
    2 INTENTIUS/chant#4044 chant runs as a ci tick source INTENTIUS/chant#4062
    2 INTENTIUS/chant#4045 release gate binding INTENTIUS/chant#4064
    2 INTENTIUS/chant#4032 trace budget INTENTIUS/chant#4065
    2 INTENTIUS/chant#4043 joins through the release digest INTENTIUS/chant#4066
    2 INTENTIUS/chant#4033 trigger and revocation (ws-105) INTENTIUS/chant#4067, follow-up INTENTIUS/chant#4071
    2 INTENTIUS/chant#4034 older records INTENTIUS/chant#4069
    2 #680 trunk lane #714
    2 #681 change-set overlay #717
    2 #679 run events in behold #723
    3 INTENTIUS/chant#4036 retention and lifecycle gc INTENTIUS/chant#4070
    3 INTENTIUS/chant#4035 release rollback, mixed environments INTENTIUS/chant#4072
    3 INTENTIUS/chant#4024 flags INTENTIUS/chant#4073
    3 INTENTIUS/chant#4027 workstation release INTENTIUS/chant#4074
    3 INTENTIUS/chant#4023 why chain INTENTIUS/chant#4076
    3 #692 lane release column #728
    4 INTENTIUS/chant#4039 DORA metrics INTENTIUS/chant#4075
    4 INTENTIUS/chant#4025 overlap INTENTIUS/chant#4077
    4 INTENTIUS/chant#4047 publish targets INTENTIUS/chant#4078
    4 INTENTIUS/chant#4038 docs: concept page, room, how-tos, never-lines INTENTIUS/chant#4079
    4 INTENTIUS/chant#4048 publish staging and resume INTENTIUS/chant#4080
    4 INTENTIUS/chant#4049 release signing, SBOMs, release verify INTENTIUS/chant#4082
    4 #683 flags on the graph #737
    4 #682 why chain in behold #738
    5 #684 collision marks #739

    Alex made each design decision (ws-104, ws-105, #4026, #4024, #4027) and looked at each behold UI change before its merge. chant 0.124.28 was released during the epic and covers phases 0 to 2 up to #4032. Everything merged after it ships in 0.124.29.

    Parked or excluded

    Level-0 changes recorded on INTENTIUS/chant#2525

    None had a warning release; all were accepted under the few-users rule.

    • #4020: in CI, releases recorded by run --components, fan-out and pr-apply are keyed by the CI run id.
    • #4029: check --changes, ci list and ci tick report commit links.
    • #4030: promote and build --promote-to refuse a skipped step.
    • #4022: stored change sets, and changeSet on status gates.
    • #4031: signing flags and fields.
    • #4041: gated fan-out under --progress-json.
    • #4042: events is reserved in chant run.
    • #4044: run statements and --source.
    • #4045: release promote gates move to op release.
    • #4046: implicit releases and release export.
    • #4026, #4043, #4033: new release commands, flags and fields.
    • #4035: outcomes.jsonl and mixed.
    • #4036: lifecycle gc.
    • #4039: workspace metrics.
    • #4027: release cut is a dry run without --yes.
    • #4047: release publish is a dry run without --yes.
    • #4048: staged publishing and publishes.jsonl.
    • #4049: publish refuses unsigned releases, and needs SBOMs.

    Follow-ups found along the way

    Filed:

    Not filed:

    • chant has no "behold" approval channel. Approvals made from behold show cli.
    • An Op gate that binds a composeChangeSet digest stores no change set.
    • release list sorts a release's environments by name, and doesn't say which earlier release a cut reused artifacts from.
    • Twice a newly added field was made required, which breaks older documents; workspace: revoked is optional on a releases entry (#4033 follow-up) chant#4071 and the #4027 PR fixed it. A guard test is worth adding.
    • The no-egress and no-listener scans run only in the e2e project, not on pull requests. The missing egress rows from #4047 were caught locally and fixed in publishing: stage every target before any is visible, and resume a failed publish from a pushed record (#4048) chant#4080.
    • Existing chant tests create and remove files under the shared .git/chant/runs/. A test run on the #4022 branch once wrote and pushed a commit to chant's real chant/lifecycle (42757403f; Alex chose to keep it). Every brief since then requires temp repos.
    • The trace and overlap budgets run in the check job, at 2x and 1x of workspace status.
  8. lex00 commented on Oct 20, 2026

    @lex00
    ContributorAuthor

    Closing per the final summary above: every sub-issue in phases 0 to 5 merged. The two parked items, #685 and INTENTIUS/chant#4037, sat outside the exit criteria; they're detached from this epic and stay open on their own.

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

    enhancementepicproduct-pipelines

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions