Skip to content

the trunk lane: a release column, with promotion as the same release moving to the next environment (#692) - #728

Merged
lex00 merged 1 commit into
mainfrom
feat/692-release-column
Oct 17, 2026
Merged

lex00 merged 1 commit into
mainfrom
feat/692-release-column

Conversation

@lex00

@lex00 lex00 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Closes #692

The Trunk tab gains a releases section between the commits and the environments: each release cut from a green commit, where it runs and waits, and the next environment in the promotion order.

  • Each release shows its label and member, the commit it was cut from, who cut it and when, and chant's signature check ("signed", "unsigned" or "signature does not count"). It shows where it runs ("runs in "), waits ("waits in "), its superseded gates, the next environment its member's declared order names ("next: "), or "runs nowhere".
  • Marks: "config-only" when its artifact digests equal the previous release's, and "revoked" with what failed, the run link and the rollback line (chant#4033).
  • Each commit gets a "cut as " fact. Each environment lists release gates chant marks superseded, and a deploy line names its release and is marked revoked when the release is.
  • Config-only: a release that carries artifact digests equal to its previous release's, where the previous release is the one of the same member cut from the nearest older commit (ordered by the commit's place in the ci list trunk, newest first; commits outside it after every listed one; ties by release list's own order). This matches how release cut reuses an unchanged artifact's digest. The oldest release, and one with no artifact digests, get no mark.
  • Environments keep the order chant#4030 declares, and a release's environments follow it too (release list sorts them by name).
  • Floor (chant version floors: one floor per new read, a degraded mode and a doctor line #691): RELEASE_COLUMN_CHANT_FLOOR 0.124.29, for revoked, releaseDigest and releaseLabel on status and revoked on release list. Below it nothing is refused: the column comes from release list alone with no revoked mark, and the tab says which chant adds it. The lane still needs only 0.124.28.
  • Fixtures recorded with chant main's CLI in a temp workspace (src/trunk-lane-fixture.ts, shared with the real-chant test): three releases, v2 config-only, v3 cut from a revoked commit, running in staging with a superseded release gate in prod. Vendored schemas refreshed from chant main 08334f407.

Acceptance

  • The column renders for a fixture with two releases across two environments (src/trunk-lane.test.ts "renders for two releases across two environments…"; the rendered order in web/trunk-lane.test.js "draws the column between the trunk's commits and the environments' gates").
  • A fixture whose declared order differs from alphabetical shows the environments in the declared order ("puts the environments in the declared order, not alphabetical order, and a release's environments too").
  • A release whose artifactDigests equal the previous release's is marked config-only, and one with a changed digest is not ("marks a release config-only…", plus "finds the previous release by the commit's place in the trunk…").
  • Adds a floor constant through chant version floors: one floor per new read, a degraded mode and a doctor line #691's convention ("registers the release column's floor, 0.124.29…", the degraded mode at 0.124.28, and the route test).

Checks

npm run tsc, npm test (212 files, 3315 passed), npm run build, bash scripts/typecheck-floor.sh: pass after rebasing on behold main. The real-chant tests (trunk lane in full and degraded mode, change-set overlay, run events) pass against chant main. No server was started.

Findings for chant, noted on behold#678: release list sorts a release's environments by name rather than promotion order, and doesn't say which release a cut reused artifacts from (a previous or configOnly field would remove behold's inference).

…moving to the next environment (#692)

Between the trunk's commits and the environments' gates, the Trunk tab lists
every release chant release list names, newest first: its label and digest,
the commit it was cut from, its newest cut with chant's signature check, where
it runs and waits, and the environment its member's promotion order names
next. Each commit names the releases cut from it.

A release is config-only when it carries artifact digests equal to its
previous release's, the previous being the one of the same member cut from
the nearest older commit (trunk order, then release list's order).

From chant 0.124.29 (RELEASE_COLUMN_CHANT_FLOOR, chant#4033, chant#4043) the
column marks a revoked release with its ci/revoked tag and the rollback line,
lists the release gates chant reads as superseded, and reads the release each
deploy record names. Below it the column comes from release list alone and
says so; doctor says the same.

The fixtures are recorded from chant main at 08334f407 in the workspace
src/trunk-lane-fixture.ts makes, which the real-chant test now shares, and
the vendored schemas in src/trunk-lane-schemas/ are refreshed from the same
revision.
@lex00
lex00 merged commit a274dde into main Oct 17, 2026
3 checks passed
@lex00
lex00 deleted the feat/692-release-column branch October 17, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

the trunk lane: a release column, with promotion as the same release moving to the next environment

1 participant