Repository navigation
chore(cli): floor the version at the relay release - #22
Merged
Merged
Conversation
wego-ai publishes 1.1.0 as the last wego-ai CLI release (the relay). wego/cli continues the same product, on the same rings, writing the same `VERSION` file, so the manifest records 1.1.0 as the last released version rather than the rehearsal's 1.0.5. Both files move together on purpose. `release-type: node` reads `package.json`, and `edge-cli.yml` bakes its version base from `package.json` in the tree and hard-errors on anything that is not a plain X.Y.Z, so a manifest-only change would leave the edge lane publishing `1.0.5-edge.<sha>`. The first wego/cli release is pinned rather than derived. Only `fix:` commits have accumulated since 1.0.5, so the natural computation from a 1.1.0 floor is 1.1.1; the promote dispatch takes a typed tag and wego/foundations#134's preflight asserts `cli/next/VERSION` equals 1.2.0, and a derived number cannot be named before the fact. Release-As: 1.2.0 Refs: wego/foundations#133 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tna7gh6pBHkr8zFHL3BqFs
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#133, the version floor. Two lines. It is the one piece of code the cutover needs that did not exist.
The problem
Nothing in either repository will produce 1.2.0, which is the version wego/foundations#133 and #134 name throughout: the promote dispatch takes
tag=v1.2.0and #134's preflight assertscli/next/VERSIONequals1.2.0.The floor is 1.1.0, not 1.2.0
The manifest means the last version of this product that actually shipped. That will be 1.1.0, published by wego-ai as the relay, onto the same rings, writing the same
VERSIONfile. wego/cli continues the same product, so 1.1.0 is the truthful floor.Setting the manifest to 1.2.0 instead would claim a release that never happened and make the next release 1.2.1 while
cli/nextstill served 1.2.0 – off by one for the life of the repository.Both files, deliberately
release-type: nodereadspackage.json. Separately,edge-cli.ymlbakes its version base frompackage.jsonin the tree and hard-errors on anything that is not a plainX.Y.Z:A manifest-only change would leave the edge lane publishing
1.0.5-edge.<sha>against a 1.1.0 floor.Why the release is pinned rather than derived
Only
fix:commits have accumulated since 1.0.5 (see #15's changelog, and #21 is anotherfix(release):). The natural computation from a 1.1.0 floor is therefore 1.1.1. The cutover needs the number to be known before the fact, because a human types it into the promote dispatch and a preflight asserts it. So the commit carries:Merging this also frees
v1.0.6Release-please recomputes on merge, so #15 retitles itself to
chore(cli): release 1.2.0andv1.0.6stops being claimed by any release. That matters because wego/foundations#159 item 8's commit-binding probe pushes tagv1.0.6, and today both wanted it.Consequences for the sitting, in order:
v1.0.6probe can now run exactly as wego/foundations#133 describes.v1.2.0andrelease-cli.ymlpublishes it.Reviewer note on the merge
Release-As:is read from the commit message that lands onmain. Check the squash message box still contains theRelease-As: 1.2.0line before confirming the merge – if GitHub composes the squash message from the PR title alone, the footer is dropped and you silently get 1.1.1 instead. It fails visibly (the recomputed #15 will sayrelease 1.1.1), but it is easier to get right than to notice.Risk
None to any ring, pointer, tag or setting. This PR publishes nothing. Its entire effect is on what release-please computes next.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Tna7gh6pBHkr8zFHL3BqFs
Generated by Claude Code