Skip to content

Correct the recorded peer floors, and record verifying against the floor - #162

Merged
jimhoyd merged 4 commits into
mainfrom
claude/hopeful-goldberg-izavm8
Sep 19, 2026
Merged

jimhoyd merged 4 commits into
mainfrom
claude/hopeful-goldberg-izavm8

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #161. Documentation only — no source, schema or version change.

Problem and change

urlcode-auth's v0.1.0-alpha.3 release 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:

Only urlcode-middleware requires 0.4.0-alpha.2 specifically… The other extension packages work against either alpha and keep the wider floor.

That is false for urlcode-auth and urlcode-admin. Both resolve project-level lifecycle hooks through ExtensionActivation.root, which does not exist before 0.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:

Installing peers: @jimhoyd/[email protected] @jimhoyd/[email protected]
src/auth.ts(74,126): error TS2339: Property 'root' does not exist on type 'ExtensionActivation'.

urlcode-admin had 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-admin also needs @jimhoyd/urlcode-ui >=0.1.0-alpha.5, which the register did not mention at all. urlcode-ui hand-copies core's extension types rather than importing them, and that copy only gains root in 0.1.0-alpha.5 (from urlcode-ui#34). I verified this by unpacking each published ui tarball — absent in 0.1.0-alpha.4 and 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-middleware and urlcode-short have 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: true vs publishConfig split — every package is publishable from main. I wrote that section after #161 had already been squash-merged, so it is absent from main. It is restored here unchanged.

Verification

npm run check passes: 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:

  • reproduced both failing typechecks at the declared floors, and confirmed both pass at the corrected ones, with peers installed from the real registry
  • unpacked @jimhoyd/urlcode-ui 0.1.0-alpha.4 and 0.1.0-alpha.5 and grepped each one's ExtensionActivation for root
  • grepped every sibling's release.yml to 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.2 is already published and unaffected — this corrects what the register says about downstream packages, alongside the two PRs that correct the packages themselves.

  • Changes match the documented portable contract; docs/examples are updated where needed.
  • Relevant tests and package checks pass, or limitations are explained above.
  • No credentials, customer data or private project material are included.
  • Runtime/starter changes remain aligned where applicable.

🤖 Generated with Claude Code

https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi


Generated by Claude Code

…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
@jimhoyd
jimhoyd merged commit 8ec7753 into main Sep 19, 2026
10 checks passed
@jimhoyd
jimhoyd deleted the claude/hopeful-goldberg-izavm8 branch September 19, 2026 17:32
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.

2 participants