Skip to content

lifecycle: release cuts by hand (ws-105), and a revoked commit revokes the releases cut from it (#4033) - #4067

Merged
lex00 merged 3 commits into
mainfrom
feat/4033-release-trigger-revocation
Oct 17, 2026
Merged

lex00 merged 3 commits into
mainfrom
feat/4033-release-trigger-revocation

Conversation

@lex00

@lex00 lex00 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Closes #4033

What triggers a release cut (ws-105, proposed for Alex's review), and what a revoked commit does to the releases cut from it.

ws-105, proposed

docs/design/decisions/ws-105-release-trigger-and-revocation.md (state proposed, added to the decisions README).

  1. Trigger, recommendation (b): a release is cut by hand with chant release cut, and chant ci tick never cuts. Who may cut is already identity.gates.release (trust: signed green tags and run statements, a role for who may cut a release, signed release records #4031), ws-104 put cutting on a workstation with CI publishing (release from a workstation: one command that checks, cuts, signs and publishes a release as one set #4027), and a cut builds every environment, which doesn't belong in the small job that decides what is green. A project that wants every green commit released adds a pipeline step after the tick running chant release cut on chant ci last-green; the cut is a no-op for a digest already cut and works on any runner. Option (c), per environment, decides when a promote runs, not a cut.
  2. Revocation, recommendation: derived at read time from the commit's ci/revoked/<sha> tag, with no new record. The tag is already the durable record, signed-tag rules (trust: signed green tags and run statements, a role for who may cut a release, signed release records #4031) then apply in one place (an ignored unsigned tag revokes nothing), a deleted tag can't leave a stale record behind, and the tick needn't write members' ledgers. The cost: readers use local tags, so a clone that hasn't fetched tags sees nothing revoked.

Code (built to the recommendation for question 2)

  • lifecycle/release-revocation.ts judges a release's commit against the revoked tags the way release cut does (shared tag reading in ci-green.ts, which handles tags made from chant runs, run.id: null with run.opRun).
  • chant approve refuses a release gate whose release is revoked (release-revoked, with a fix line), and --plan doesn't get around it; release-unreadable and declaration-invalid when it can't judge.
  • components promote --release refuses a revoked release, and refuses when the ci tags can't be judged.
  • workspace status --json: a release item running a revoked release carries revoked with the rollback line (chant components rollback <env> --component <c>, which lifecycle: rollback is a gated promote of an earlier release, and a partly applied promote records what each environment runs #4035 will extend), and a release gate whose release is revoked reads superseded with revoked. The text view adds one line per affected component.
  • release list: entries gain revoked; text lines end with revoked and say why on stderr.
  • Floors: 0.124.29 (0.124.28 was released before this merged).

Level-0 output changes

On the exceptions page and #2525: the new refusals in chant approve and promote --release; release list and status gain revoked; a release gate whose release is revoked reads superseded where it read pending or approved; one status text line per component running a revoked release. No golden moved.

Acceptance

  • The trigger decision recorded (ws-105, proposed; merge waits on Alex).
  • A test: revoke a commit, its release's pending gate refuses approval (approve-revoked.test.ts "revoke a commit, and its release's pending gate refuses approval with release-revoked and the fix line"; promote.test.ts "a release cut from a revoked commit is refused before anything runs…", with the run-sourced tag shape).
  • A running revoked release is flagged in the status contract (status-revoked.test.ts, checked against the schema; plus release list JSON and text).

Checks

  • node scripts/import-decisions.mjs --check: 106 decision files, 0 problems
  • npx tsx scripts/typecheck.ts: no regressions (26 baselined)
  • npx tsx scripts/check-lexicons.ts: no untracked tier-1 failures
  • handlers, lifecycle, ci-green, releases, status-revoked, status-contract, read-contract, level-0 goldens, boundary roster: 1655 passed with GITHUB_SHA, GITHUB_RUN_ID and CI set, after rebasing on the 0.124.28 release
  • Full vitest: the 3 known local op/factory.e2e.test.ts failures and load timeouts that pass alone
  • lint-docs-sentences (no regressions), lint-prompts, check-docs-diataxis, ./scripts/build-docs.sh: pass
  • The real repository's chant/lifecycle and tags were not written by the runs.

Follow-ups noted: rollback and redeploy don't check revocation yet (#4035); the promote job chant build --promote-to generates doesn't fetch tags, so in CI it won't see a revocation.

lex00 added 3 commits October 17, 2026 11:01
…oked tag; the cut stays by hand (#4033)

ws-105 (proposed): a release is cut only by chant release cut, never by ci tick, and a release is revoked when its commit's ci/revoked/<sha> tag counts, derived at read time under the #4031 signed-tag rules with no new record. chant approve refuses a release gate of a revoked release (release-revoked), and of one it can't read (release-unreadable); components promote --release refuses a revoked release. workspace status flags a component running a revoked release with the rollback line and reads its release gate as superseded; release list marks it. New fields revoked on the releases entry, the status release item and the status gate item, floor 0.124.28 (#4033)
@lex00
lex00 force-pushed the feat/4033-release-trigger-revocation branch from 6de8f8b to 546e9ca Compare October 17, 2026 17:02
@lex00
lex00 merged commit 08334f4 into main Oct 17, 2026
11 checks passed
@lex00
lex00 deleted the feat/4033-release-trigger-revocation branch October 17, 2026 18:38
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.

lifecycle: what triggers a release cut, and what a revoked commit does to releases cut from it

1 participant