Repository navigation
fix(release): take SMOKE 3's predecessor from cli/next, guard the promote - #21
Merged
Merged
Conversation
…mote The lane-side half of the legacy pin (foundations#132, #134), built ahead of any release decision (foundations#159 items 3, 4, 5). SMOKE 3's predecessor moves back to the ring this job advances. Reading it from `cli/<prev-tag>/` was right while the tag namespace and the store namespace agreed; they no longer do. `prepare` derives `prev_tag` from this repository's git tags, but the release `cli/next` currently points at was published by wego-ai under a different spelling — the 1.1.0 bytes live at `cli/cli-v1.1.0/`, not `cli/v1.1.0/`. The 1.2.0 run would compose a prefix that has never existed, take the 404 skip path, and silently skip the only live test of hop 2 — on the one release where hop 2 is the thing being proven. A skip is not a failure, so nothing would have flagged it. The ring has no such problem, and it is also what a consumer's `wego update` actually follows. The read happens before the advance, in the same job, so none of the five steps that reading a moving pointer used to need come back. `VERSION` is read alongside the bytes and the step summary now prints `predecessor <version> from cli/next`, so a skipped hop-2 test and a passing one cannot look alike. The promote guard refuses to move `stable` unless the pin is answering, asked the way an old binary asks it: `Bun/` user agent, real object, on api.wego.com. It refuses today, correctly — the bridge does not exist until 3a. No bypass input, and `allow_not_next` does not reach it: a rollback moves `stable` just as surely, so it needs the pin just as much. The runbook gains the 3c preflight — the four scope curls, the guard check — the two-hop machine test on the kept 1.0.1 install, and the rule that `cli/cli-v1.1.0/` and `cli-sig/cli-v1.1.0/` are never deleted by any lane, issue or cleanup. `cli-sig/` is named explicitly because a sweep written against `cli/` alone would take the record and leave the bytes. Refs: wego/foundations#159, wego/foundations#132, wego/foundations#133, wego/foundations#134 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ge8z3MxhAFY7tS3R874nZj
sunny-wego
requested review from
chuyeowego and
yeouchien-wego
as code owners
September 13, 2026 11:27
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.
wego/foundations#159 items 3, 4 and 5 — the lane-side half of the legacy pin (wego/foundations#132, wego/foundations#134), built ahead of any release decision. Nothing here writes a ring, a pointer, a tag or a setting.
3 · SMOKE 3 takes its predecessor from
cli/nextReading it from the immutable
cli/<prev-tag>/prefix was the right answer while the tag namespace and the store namespace agreed. They no longer do.preparederivesprev_tagfrom this repository's git tags, but the releasecli/nextcurrently points at was published by wego-ai under a different spelling: the 1.1.0 bytes live atcli/cli-v1.1.0/, not atcli/v1.1.0/.So the 1.2.0 run would compose a prefix that has never existed, take the 404 skip path, and silently skip the only live test of hop 2 (wego/foundations#133) — on the one release where hop 2 is the thing being proven. A skip is not a failure, so nothing would have flagged it.
The ring does not have that problem:
cli/nextnames whatever was last published to it, under whichever repository's tag spelling, which is also exactly what a consumer'swego updatefollows.The read happens before the advance, in the same job that does the advancing, so none of the five steps and the run artifact that reading a moving pointer used to require come back.
VERSIONis read alongside the bytes, and the step summary now printspredecessor <version> from cli/next— a skipped hop-2 test and a passing one must not look alike in the log.Rerun safety, stated: a rerun that gets this far has already advanced the pointer, so it captures the release it is re-releasing and the smoke becomes a same-version self-update. Weaker, not wrong, and confined to reruns of an already published release.
4 · The promote guard
promote-cli.ymlrefuses to movestableunless the legacy bridge pin is live, asked the way an old binary asks it —Bun/user agent, the object it actually fetches, onapi.wego.com— in the step immediately before the pointer move.This refuses today, and that is correct. The bridge does not exist until 3a publishes it and sets the two variables. It passes from the end of 3a on.
No bypass input, deliberately: a promote that needs to skip this is a promote that strands the 1.0.x install base.
allow_not_nextdoes not reach it either — a rollback movesstablejust as surely, so it needs the pin just as much.Production rather than the promote's own store origin, on purpose: unlike the
--require-serving nextgate, which must ask the store it is about to write, this one is about what installed binaries are being served, andapi.wego.comis the host every one of them resolves through.5 · The runbook
docs/runbook-cutover.mdgains a 3c section: whystableis different, the four scope curls, the guard check, the two-hop machine test on the kept 1.0.1 install, and the never-delete rule —cli-sig/is named explicitly because it is the easier one to miss: a sweep written againstcli/alone would take the record while leaving the bytes, which fails the update fail-closed with no clue as to why.Verification
Post-merge greps from wego/foundations#159's acceptance criteria:
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ge8z3MxhAFY7tS3R874nZj