Skip to content

Release 0.4.0-alpha.2 and make the version register authoritative (1/9) - #161

Merged
jimhoyd merged 1 commit into
mainfrom
claude/hopeful-goldberg-izavm8
Sep 19, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/hopeful-goldberg-izavm8

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

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.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 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-short and urlcode-docs cannot move to the current trust model until alpha.2 exists.

docs/OPEN-DECISIONS.md item 1 recommended publishing alpha.2 rather 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-auth publishes latest below the floor urlcode-admin declares.

docs/VERSION-ALIGNMENT.md already 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:

  1. latest must not fall below a sibling's declared peer floor.
  2. 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 links the register instead of restating versions.

No source or schema changes — package.json is already 0.4.0-alpha.2.

Verification

npm run verify passes in full:

  • lint (eslint) — clean
  • typecheck (tsc) — clean
  • check — 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 at 0.4.0-alpha.2
  • build — clean
  • test — 503 tests, 501 pass, 2 skipped, 0 fail

The 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.ts exist precisely to catch what I was editing.

Compatibility and security

Tagging this publishes a behaviour-changing alpha. 0.4.0-alpha.2 makes function and middleware routes run trusted and unsandboxed by default, with sandbox: true as a per-route opt-in. Per ROADMAP.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 with urlcode permissions. The README status section now leads with that.

latest deliberately stays on 0.3.0; release.yml derives the dist-tag from the version, so 0.4.0-alpha.2 can only publish under alpha.

Release steps for this repository

git tag v0.4.0-alpha.2 <merge-commit-on-main>
git push origin v0.4.0-alpha.2

release.yml refuses a tag whose commit is not an ancestor of main or that disagrees with package.json, and publishes to npm only when PUBLISH_NPM is true.

Before tagging, note peers.json in urlcode-auth and urlcode-admin still pins core at d5e86017e93b96ec24bfdbf840692b95fc323151, which is behind current main. Those should move to whatever commit gets tagged v0.4.0-alpha.2.

  • 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 — eight companion PRs, listed in the register, move every downstream repository onto this release.

🤖 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
@jimhoyd
jimhoyd merged commit c2f896d into main Sep 19, 2026
10 checks passed
@jimhoyd
jimhoyd deleted the claude/hopeful-goldberg-izavm8 branch September 19, 2026 16:13
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
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]>
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