Repository navigation
Promote main on a branch push, latest on a release tag - #31
Merged
Merged
Conversation
One floating tag moves per run, and which one is the point. `latest` is now the newest RELEASE; `main` is the branch. Constitution 1.33.0. Before this, a push to main moved `latest`, which is what 44 units across the fleet pull. On 2026-11-07 that put unreleased trentina 6.11.0 into production at 02:01 through podman-auto-update, where it climbed to the unit's 4g cap and was SIGKILLed. Nothing had asked for it and nothing was watching. The backwards-move guard now asks about whichever tag this run moves, rather than always about `latest`. A re-run of an old release tag must not demote `latest` any more than a re-dispatched old commit may demote `main`, and before this the release half of that was unguarded. The gates are unaffected: `bin/sdlc` resolves its image from the repo's IMAGE_TAG file, so every consumer already pulls a version tag and never `latest`. RT#1559 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R7Y1jfBgAyvK9xarny6EHx
Gatehouse, on the same change in mcp-gemini: a `v*` test admits `v1.2.3-rc.1`, so a release candidate could move `latest` away from the newest stable release -- the one thing this change exists to prevent. A prerelease is not the branch either, so it now moves NO floating tag and publishes its version tags alone. SemVer puts every prerelease identifier after a hyphen, so `v*-*` is the whole test. RT#1559 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R7Y1jfBgAyvK9xarny6EHx
There was a problem hiding this comment.
Gatehouse found no issues.
Reviewed 1 commit since 7d87b4b (incremental).
1 finding(s) dropped: their evidence is not in the diff.
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.
Summary
One floating tag moves per run, and which one is the point.
latestis now the newest release;mainis the branch. Implements constitution 1.33.0 (crunchtools/constitution#95).Before this, a push to main moved
latest— which is what 44 of the 51 auto-updating units on gloval pull. On 2026-11-07 that put unreleased trentina 6.11.0 into production at 02:01:53 throughpodman-auto-update, where it climbed to the unit's 4g cap and was SIGKILLed. Nothing had asked for it and nothing was watching.Also fixed
The backwards-move guard now asks about whichever tag the run moves, rather than always about
latest. A re-run of an old release tag must not demotelatestany more than a re-dispatched old commit may demotemain— and before this the release half of that was unguarded.The gates are unaffected
bin/sdlcresolves its image from the repo'sIMAGE_TAGfile, which the pinnedrev:clone carries. Every consumer already pulls a version tag (:0.5.1today) and neverlatest, so no repo's push gate changes behaviour.Test plan
container.ymlparses; promote job's steps verifiedrefs/heads/main,refs/tags/v0.5.3,refs/pull/9/merge,refs/tags/nightly— only av*tag selectslatest:mainand leave:latestwhere it isRT#1559
🤖 Generated with Claude Code
https://claude.ai/code/session_01R7Y1jfBgAyvK9xarny6EHx