Repository navigation
lifecycle: release cuts by hand (ws-105), and a revoked commit revokes the releases cut from it (#4033) - #4067
Merged
Merged
Conversation
…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
force-pushed
the
feat/4033-release-trigger-revocation
branch
from
October 17, 2026 17:02
6de8f8b to
546e9ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(stateproposed, added to the decisions README).chant release cut, andchant ci ticknever cuts. Who may cut is alreadyidentity.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 runningchant release cutonchant 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.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.tsjudges a release's commit against the revoked tags the wayrelease cutdoes (shared tag reading inci-green.ts, which handles tags made from chant runs,run.id: nullwithrun.opRun).chant approverefuses a release gate whose release is revoked (release-revoked, with a fix line), and--plandoesn't get around it;release-unreadableanddeclaration-invalidwhen it can't judge.components promote --releaserefuses a revoked release, and refuses when the ci tags can't be judged.workspace status --json: a release item running a revoked release carriesrevokedwith 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 readssupersededwithrevoked. The text view adds one line per affected component.release list: entries gainrevoked; text lines end withrevokedand say why on stderr.Level-0 output changes
On the exceptions page and #2525: the new refusals in
chant approveandpromote --release;release listandstatusgainrevoked; a release gate whose release is revoked readssupersededwhere it readpendingorapproved; one status text line per component running a revoked release. No golden moved.Acceptance
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).status-revoked.test.ts, checked against the schema; plusrelease listJSON and text).Checks
node scripts/import-decisions.mjs --check: 106 decision files, 0 problemsnpx tsx scripts/typecheck.ts: no regressions (26 baselined)npx tsx scripts/check-lexicons.ts: no untracked tier-1 failuresGITHUB_SHA,GITHUB_RUN_IDandCIset, after rebasing on the 0.124.28 releaseop/factory.e2e.test.tsfailures and load timeouts that pass alonelint-docs-sentences(no regressions),lint-prompts,check-docs-diataxis,./scripts/build-docs.sh: passchant/lifecycleand 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-togenerates doesn't fetch tags, so in CI it won't see a revocation.