Skip to content

Run the peer-floor gate outside the workspace - #184

Merged
jimhoyd merged 1 commit into
mainfrom
claude/fix-floor-install
Sep 20, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/fix-floor-install

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

The auth release failed at the peer-floor step and published nothing. Two
faults, both mine, from porting that gate to a workspace.

The gate proves the published peers at the lower bound of each declared
range can satisfy the package — the invariant urlcode-middleware broke by
publishing a range no registry version satisfied.

It could have lied. My port installed the peers with
npm install --prefix packages/<name> and asserted they shadowed the workspace
links. They do not: npm nested the published core but silently reused the root
symlink for ui, so ui resolved to the working tree. Without the assertion, the
suite would have run against the working tree while the log said "published".

The assertion then crashed before reporting that, because it resolved
<name>/package.json through the exports map and urlcode-ui does not export
its manifest. Core does — hence core passing and ui throwing
ERR_PACKAGE_PATH_NOT_EXPORTED.

Fixed by not fighting the workspace: copy the package to $RUNNER_TEMP,
install the published peers there, run the suite there. No repository root
above it means nothing to hoist to. The assertion reads the manifest from the
filesystem rather than asking the resolver.

Verified locally end to end before pushing — both peers install at their
declared floors (0.4.0-alpha.2, 0.1.0-alpha.1) and auth's 204 tests pass
against them.

One note on that verification: an earlier local run looked like a failure only
because this machine's zsh does not word-split unquoted parameters, so npm got
both specs as a single argument. CI uses bash. Re-tested under bash.

🤖 Generated with Claude Code

The auth release failed at this step and published nothing. Two faults, both
mine, from porting the gate to a workspace.

The gate exists to prove the PUBLISHED peers at the lower bound of each
declared range can satisfy the package -- the invariant urlcode-middleware
broke by publishing a range no registry version satisfied. My port installed
those peers with `npm install --prefix packages/<name>` and asserted they
shadowed the workspace links.

They do not. npm nested the published core but silently reused the root
symlink for ui, so ui resolved to this working tree. Had the assertion not
been there, the suite would have run against the working tree while the log
claimed it ran against the registry. A gate that can lie about what it tested
is worse than no gate.

The assertion also crashed before reporting that, because it resolved
`<name>/package.json` through the exports map and urlcode-ui does not export
its manifest. Core does, which is why core passed and ui threw
ERR_PACKAGE_PATH_NOT_EXPORTED.

Both are fixed by not fighting the workspace: the package is copied to
$RUNNER_TEMP, the published peers are installed there, and the suite runs
there. No repository root above it means nothing to hoist to. The assertion
now reads the manifest path from the filesystem instead of asking the
resolver, and checks each peer sits inside the isolated copy.

Verified locally end to end before pushing, under bash rather than this
machine's zsh -- an earlier local run appeared to fail only because zsh does
not word-split unquoted parameters, so npm received both specs as one
argument. CI uses bash. Both peers install at their declared floors
(0.4.0-alpha.2 and 0.1.0-alpha.1) and auth's 204 tests pass against them.

Co-Authored-By: Claude Opus 5 <[email protected]>
@jimhoyd
jimhoyd merged commit 3f4985b into main Sep 20, 2026
10 checks passed
@jimhoyd
jimhoyd deleted the claude/fix-floor-install branch September 20, 2026 00:04
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.

1 participant