Repository navigation
Correct the recorded peer floors, and record verifying against the floor - #162
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
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
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
…into claude/hopeful-goldberg-izavm8 # Conflicts: # docs/VERSION-ALIGNMENT.md
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.
Follow-up to #161. Documentation only — no source, schema or version change.
Problem and change
urlcode-auth'sv0.1.0-alpha.3release run failed at typecheck, and the register #161 added recorded the situation wrongly in two places.1. The auth and admin core floors were wrong
The register said:
That is false for
urlcode-authandurlcode-admin. Both resolve project-level lifecycle hooks throughExtensionActivation.root, which does not exist before0.4.0-alpha.2. Their release workflows install each peer at the floor of its declared range and typecheck against it, which is exactly the right gate — and it failed:urlcode-adminhad the same defect and would have failed identically on its own tag. Both are corrected in jimhoyd-com/urlcode-auth#39 and jimhoyd-com/urlcode-admin#34; this updates the register to match.2. A copied type is a second, independent floor
urlcode-adminalso needs@jimhoyd/urlcode-ui >=0.1.0-alpha.5, which the register did not mention at all.urlcode-uihand-copies core's extension types rather than importing them, and that copy only gainsrootin0.1.0-alpha.5(from urlcode-ui#34). I verified this by unpacking each published ui tarball — absent in0.1.0-alpha.4and every earlier version.This is worth recording as a general point: copying a type couples you to the copier's release schedule as well as the original's.
3. The invariant that would have prevented all of it
Adds a third invariant: verify against the floor, not against the newest. Testing against the newest sibling proves nothing about a range's lower bound, which is what an installing operator actually resolves. The code had required the newer core since the lifecycle hooks merged; only the range still said otherwise, and a review that checked the newest core — mine, in #161 — saw nothing wrong.
It also records two consequences: that raising a floor is a narrowing change and that this is the point, and that
urlcode-dynamic-link,urlcode-middlewareandurlcode-shorthave no floor-install step in their release workflows, so they are not exempt from the rule, only from having it enforced.4. Re-applies the publishing-convention decision
The maintainer settled the
private: truevspublishConfigsplit — every package is publishable frommain. I wrote that section after #161 had already been squash-merged, so it is absent frommain. It is restored here unchanged.Verification
npm run checkpasses: 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.Every factual claim was checked against the registry rather than inferred:
@jimhoyd/urlcode-ui0.1.0-alpha.4and0.1.0-alpha.5and grepped each one'sExtensionActivationforrootrelease.ymlto confirm which ones actually have the floor-install gate (only auth and admin)Compatibility and security
No runtime, schema or API change.
0.4.0-alpha.2is already published and unaffected — this corrects what the register says about downstream packages, alongside the two PRs that correct the packages themselves.🤖 Generated with Claude Code
https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi
Generated by Claude Code