Repository navigation
Run the peer-floor gate outside the workspace - #184
Merged
Merged
Conversation
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]>
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.
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-middlewarebroke bypublishing 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 workspacelinks. 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.jsonthrough the exports map andurlcode-uidoes not exportits 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 passagainst 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