Repository navigation
Release 0.4.0-alpha.2 and make the version register authoritative (1/9) - #161
Merged
Merged
Conversation
…itative The repository source has been 0.4.0-alpha.2 for some time while npm carried only 0.3.0 (latest) and 0.4.0-alpha.1 (alpha). That gap is what blocks the other repositories: @jimhoyd/[email protected] is published declaring a peer floor of >=0.4.0-alpha.2, which no published core satisfies, so a registry install of it cannot resolve at all. docs/OPEN-DECISIONS.md item 1 recommended publishing alpha.2 rather than walking back a correct declaration. Record that decision as taken, keep the original entry quoted for the record, and take the second dist-tag hazard with it: urlcode-auth publishes latest below the floor urlcode-admin declares. docs/VERSION-ALIGNMENT.md already owned the mechanism and the invariant, so fold the current-state register into it rather than adding a second page that would drift from it the same way. It now states where every repository lands, marks the middleware invariant breach as resolved by publication order rather than by widening a range, and adds two invariants the project learned the hard way: latest must not fall below a sibling's peer floor, and a version number that does not change when the source does identifies nothing. README.md claimed 0.4.0-alpha.1 was current and that urlcode-dynamic-link was unpublished; both were stale. The package table now covers all seven published packages and points at the register instead of restating versions. Verified: lint, typecheck, check (trust-model prose, guidance claims, schema), build and the full 503-test suite all pass. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi
jimhoyd
pushed a commit
that referenced
this pull request
Sep 19, 2026
Two fixes to the register, both found by a release failure. urlcode-auth's v0.1.0-alpha.3 release run failed at typecheck. Its workflow installs each peer at the floor of its declared range and typechecks against it; the declared core floor was >=0.4.0-alpha.1, but src/auth.ts resolves project-level lifecycle hooks through ExtensionActivation.root, which does not exist before 0.4.0-alpha.2. urlcode-admin had the same defect and would have failed identically on its own tag. The table said "the other extension packages work against either alpha", which was wrong for both. urlcode-admin also needs @jimhoyd/urlcode-ui >=0.1.0-alpha.5, because urlcode-ui hand-copies core's extension types instead of importing them and that copy gains root only in 0.1.0-alpha.5. Verified by unpacking each published ui tarball. A copied type is a second, independent floor moving on the copier's release schedule. Adds the invariant that would have prevented it: verify against the floor, not against the newest. Testing against the newest sibling proves nothing about the lower bound, which is what an installing operator resolves. Notes that raising a floor is a narrowing change and that this is the point, and that the three repositories without a floor-install step in their release workflow are not exempt from the rule, only from having it enforced. Also re-applies the publishing-convention decision, which was written after #161 was squash-merged and so is absent from main. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi
4 tasks done
jimhoyd
added a commit
that referenced
this pull request
Sep 19, 2026
…oor (#162) * Record the 0.4.0-alpha.2 release and make the version register authoritative The repository source has been 0.4.0-alpha.2 for some time while npm carried only 0.3.0 (latest) and 0.4.0-alpha.1 (alpha). That gap is what blocks the other repositories: @jimhoyd/[email protected] is published declaring a peer floor of >=0.4.0-alpha.2, which no published core satisfies, so a registry install of it cannot resolve at all. docs/OPEN-DECISIONS.md item 1 recommended publishing alpha.2 rather than walking back a correct declaration. Record that decision as taken, keep the original entry quoted for the record, and take the second dist-tag hazard with it: urlcode-auth publishes latest below the floor urlcode-admin declares. docs/VERSION-ALIGNMENT.md already owned the mechanism and the invariant, so fold the current-state register into it rather than adding a second page that would drift from it the same way. It now states where every repository lands, marks the middleware invariant breach as resolved by publication order rather than by widening a range, and adds two invariants the project learned the hard way: latest must not fall below a sibling's peer floor, and a version number that does not change when the source does identifies nothing. README.md claimed 0.4.0-alpha.1 was current and that urlcode-dynamic-link was unpublished; both were stale. The package table now covers all seven published packages and points at the register instead of restating versions. Verified: lint, typecheck, check (trust-model prose, guidance claims, schema), build and the full 503-test suite all pass. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi * Settle the publishing convention: every package is publishable from main VERSION-ALIGNMENT.md recorded the private-until-release vs publishable-on-main split as an open maintainer decision and said no package.json would be changed on the strength of the page. The maintainer has now settled it: every package carries no "private" field and declares publishConfig.access instead. urlcode-dynamic-link and urlcode-middleware were the two exceptions and move to match in their own releases. The release workflow refuses to build a private package, so main was never publishable as it stood and the manifest under review was never the manifest that shipped. Records why the protection the old convention offered is not lost: publication is already gated on a v* tag whose commit is an ancestor of main, on the tag agreeing with package.json, and on PUBLISH_NPM. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi * Correct the recorded peer floors, and record verifying against the floor Two fixes to the register, both found by a release failure. urlcode-auth's v0.1.0-alpha.3 release run failed at typecheck. Its workflow installs each peer at the floor of its declared range and typechecks against it; the declared core floor was >=0.4.0-alpha.1, but src/auth.ts resolves project-level lifecycle hooks through ExtensionActivation.root, which does not exist before 0.4.0-alpha.2. urlcode-admin had the same defect and would have failed identically on its own tag. The table said "the other extension packages work against either alpha", which was wrong for both. urlcode-admin also needs @jimhoyd/urlcode-ui >=0.1.0-alpha.5, because urlcode-ui hand-copies core's extension types instead of importing them and that copy gains root only in 0.1.0-alpha.5. Verified by unpacking each published ui tarball. A copied type is a second, independent floor moving on the copier's release schedule. Adds the invariant that would have prevented it: verify against the floor, not against the newest. Testing against the newest sibling proves nothing about the lower bound, which is what an installing operator resolves. Notes that raising a floor is a narrowing change and that this is the point, and that the three repositories without a floor-install step in their release workflow are not exempt from the rule, only from having it enforced. Also re-applies the publishing-convention decision, which was written after #161 was squash-merged and so is absent from main. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi --------- Co-authored-by: Claude <[email protected]>
4 tasks done
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.
This is step 1 of 9 in a coordinated cross-repository release. Merge and tag this one first — seven of the other eight cannot resolve their dependencies until
@jimhoyd/[email protected]is on the registry.Problem and change
The source here has been
0.4.0-alpha.2for some time while npm carried only0.3.0(latest) and0.4.0-alpha.1(alpha). That gap is what blocks the rest of the project:@jimhoyd/[email protected]is published declaring a peer floor of>=0.4.0-alpha.2. No published core satisfies it, so a registry install of that package cannot resolve at all.urlcode-template,urlcode-shortandurlcode-docscannot move to the current trust model untilalpha.2exists.docs/OPEN-DECISIONS.mditem 1 recommended publishingalpha.2rather than walking back a correct declaration. This records that decision as taken (keeping the original entry quoted) and takes the second, independent dist-tag hazard with it:urlcode-authpublisheslatestbelow the floorurlcode-admindeclares.docs/VERSION-ALIGNMENT.mdalready owned the mechanism and the invariant, so the current-state register is folded into it rather than added as a second page that would drift from it exactly the way this whole problem started. It now records where every repository lands, marks the middleware invariant breach as resolved by publication order rather than by widening a range, and adds two invariants the project learned the hard way:latestmust not fall below a sibling's declared peer floor.README.mdclaimed0.4.0-alpha.1was current and thaturlcode-dynamic-linkwas unpublished; both were stale. The package table now covers all seven published packages and links the register instead of restating versions.No source or schema changes —
package.jsonis already0.4.0-alpha.2.Verification
npm run verifypasses in full:lint(eslint) — cleantypecheck(tsc) — cleancheck— trust-model prose scan (138 files, no stale claims), guidance-claims scan (10 agent-facing files against 130 schema fields, no contradictions), YAML reference, llms-full, cookbook index and plugin distribution all current at0.4.0-alpha.2build— cleantest— 503 tests, 501 pass, 2 skipped, 0 failThe prose gates are the meaningful ones here, since this PR is almost entirely prose about versions and the trust model, and
check-trust-model-prose.ts/check-guidance-claims.tsexist precisely to catch what I was editing.Compatibility and security
Tagging this publishes a behaviour-changing alpha.
0.4.0-alpha.2makesfunctionandmiddlewareroutes run trusted and unsandboxed by default, withsandbox: trueas a per-route opt-in. PerROADMAP.md, this changes existing projects with no YAML edit, and invalidates operator policies pinned to a project revision — they must be re-derived and re-approved withurlcode permissions. The README status section now leads with that.latestdeliberately stays on0.3.0;release.ymlderives the dist-tag from the version, so0.4.0-alpha.2can only publish underalpha.Release steps for this repository
release.ymlrefuses a tag whose commit is not an ancestor ofmainor that disagrees withpackage.json, and publishes to npm only whenPUBLISH_NPMistrue.Before tagging, note
peers.jsoninurlcode-authandurlcode-adminstill pins core atd5e86017e93b96ec24bfdbf840692b95fc323151, which is behind currentmain. Those should move to whatever commit gets taggedv0.4.0-alpha.2.🤖 Generated with Claude Code
https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi
Generated by Claude Code