Skip to content

chore(cli): floor the version at the relay release - #22

Merged
sunny-wego merged 1 commit into
mainfrom
chore/version-floor-1.1.0
Sep 14, 2026
Merged

sunny-wego merged 1 commit into
mainfrom
chore/version-floor-1.1.0

Conversation

@sunny-wego

Copy link
Copy Markdown
Collaborator

wego/foundations#133, the version floor. Two lines. It is the one piece of code the cutover needs that did not exist.

The problem

package.json                   "version": "1.0.5"
.release-please-manifest.json  { ".": "1.0.5" }
open release PR #15            computes 1.0.6

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.0 and #134's preflight asserts cli/next/VERSION equals 1.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 VERSION file. 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/next still served 1.2.0 – off by one for the life of the repository.

Both files, deliberately

release-type: node reads package.json. Separately, 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:

package.json version '$base' is not a plain X.Y.Z. The edge lane bakes <base>-edge.<sha> and ring-rules.ts pins that shape…

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 another fix(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:

Release-As: 1.2.0

Merging this also frees v1.0.6

Release-please recomputes on merge, so #15 retitles itself to chore(cli): release 1.2.0 and v1.0.6 stops being claimed by any release. That matters because wego/foundations#159 item 8's commit-binding probe pushes tag v1.0.6, and today both wanted it.

Consequences for the sitting, in order:

  1. Merge this.
  2. chore(cli): release 1.2.0 #15 recomputes to 1.2.0. Do not merge chore(cli): release 1.2.0 #15 yet – merging it is the 1.2.0 release (3b).
  3. The v1.0.6 probe can now run exactly as wego/foundations#133 describes.
  4. At 3b, merging chore(cli): release 1.2.0 #15 cuts v1.2.0 and release-cli.yml publishes it.

Reviewer note on the merge

Release-As: is read from the commit message that lands on main. Check the squash message box still contains the Release-As: 1.2.0 line 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 say release 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

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
@sunny-wego
sunny-wego merged commit 819978b into main Sep 14, 2026
1 check passed
@sunny-wego
sunny-wego deleted the chore/version-floor-1.1.0 branch September 14, 2026 04:16
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.

1 participant