Skip to content

docs: say when a range really moves; ci: check the release tag first - #86

Merged
OhadC merged 4 commits into
mainfrom
ranges-wording-and-tag-check
Nov 21, 2026
Merged

OhadC merged 4 commits into
mainfrom
ranges-wording-and-tag-check

Conversation

@OhadC

@OhadC OhadC commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

README Ranges: the bullet about when a range moves now says what RangeRegistry.claimLocked actually does. A port in use no longer moves the range, which matches the next bullet. The bullet above it no longer says adding a port name never moves a port.

-- A range is exactly as wide as the catalogue. Adding, reordering or renaming port names moves no port; removing one moves only the ports
-  that fell outside the narrower range.
-- A folder keeps its range while its ports are free (or held by its own servers). Otherwise the range moves to free ports and leeway warns:
-  restart anything still on the old ports.
+- A range is exactly as wide as the catalogue. Reordering port names or renaming one moves no port, and neither does adding one while the
+  wider range fits; removing one moves only the ports that fell outside the narrower range.
+- A folder keeps its range until `leeway move`, or until the range no longer fits: it leaves its pool, the OS refuses one of its ports, or
+  a grown catalogue reaches into another folder's range or onto a port in use. Then the range moves to free ports and leeway warns:
+  restart anything still on the old ports.

Release: the tag check is now its own job, so a wrong tag fails before the matrix starts.

 jobs
+  tag                       # tag matches packages/leeway version
-  ci
+  ci        needs: tag
-  publish   needs: ci       # checkout, tag check, install, build, publish, release
+  publish   needs: [tag, ci] # checkout, install, build, publish, release

Closes #79

Evidence

  • pnpm verify green (typecheck, lint incl. check-terms, 324 tests).
  • I could not run release.yml (it only runs on a v* tag) and actionlint is not installed, so I checked it by reading. ci.yml declares workflow_call, and the tag step body is unchanged.

Merge Danger

Door: two-way

Blast Radius: release

If the workflow is wrong, the next v* tag push fails before publish. Revert and re-tag.

@OhadC

OhadC commented Nov 15, 2026

Copy link
Copy Markdown
Owner Author

Written by Claude (AI assistant) on behalf of @OhadC.

Review by a separate agent: acceptance criteria of #79 met; release.yml correct on every point, by reading (it runs only on a v* tag). pnpm verify green on its first run.

Finding Outcome
Fixing the second Ranges bullet made the first one wrong: adding a port name can move the range fixed: "while the wider range fits"
Renaming can move a port: reorder two names, then rename both (probed) fixed: "renaming one"
The second bullet is hard to follow on one read fixed: the shorter wording from the review
Growing onto a deleted folder's range does not move the range (probed) left: a folder is a place with a config, so a deleted one is not "another folder"
A hand-edited registry entry with unreadable ports moves on any port in use left: hand edits are not documented behaviour
publish lists tag in needs though ci already needs it left: the ticket asks for both, and it reads plainly

@OhadC
OhadC merged commit 8b57320 into main Nov 21, 2026
12 checks passed
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.

README Ranges contradicts itself; release checks the tag last

1 participant