Skip to content

Work against dsh 0.1.2-rc.1 - #17

Merged
lroolle merged 4 commits into
mainfrom
fix/dsh-0.1.2-rc.1
Sep 4, 2026
Merged

Work against dsh 0.1.2-rc.1#17
lroolle merged 4 commits into
mainfrom
fix/dsh-0.1.2-rc.1

Conversation

@lroolle

@lroolle lroolle commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

dsh 0.1.2-rc.1 became npm latest on 2026-09-03. This plugin does not work
beside it, in a way nothing here could have noticed.

1. The peer range excludes it

npm semver never lets a prerelease satisfy a caret with a different version
tuple, so ^0.1.0-rc.6 matches 0.1.0-rc.8 and nothing after it — not
0.1.1-rc.2, not 0.1.2-rc.1. That has been true since 2026-08-21.

The loud failure is ERESOLVE when two of our plugins are installed together.
The quiet one is what actually reaches users: installed alone, npm satisfies
the stale range by hoisting @deepseek-ai/dsh-llm 0.1.0-rc.8 to the root
and pushing dsh 0.1.2-rc.1's own copy into a nested node_modules. 691
packages instead of 528, zero warnings, thirteen harness packages resolved to
two different versions at once. The plugin imports a four-release-old harness;
the host imports the current one.

Ranges now OR in each supported line, the way upstream bumps its own
^0.1.2-rc.1 pins.

2. A daily check that fails loudly

scripts/check-dsh-release.mjs installs for real against dsh latest and
asserts one version of every harness package — twice, because they fail
separately: this tree (did we fix it?) and the published package (did the fix
ship?). Drift opens an issue, because a red scheduled run notifies nobody.

It reads red against the currently published package and clears on publish.

Proof

  • dsh 0.1.2-rc.1 + all four dshworks plugins: one hoisted 0.1.2-rc.1 tree, 528
    packages, no ERESOLVE
  • each plugin imports cleanly against that tree
  • dsh --profile web --patch cordis.patch.yml --dump-config composes each one

npm semver never lets a prerelease satisfy a caret with a different version
tuple, so a range naming only older rc lines matches no published dsh at all.
dsh 0.1.2-rc.1 became npm `latest` on 2026-09-03 and installing this plugin
beside it failed with ERESOLVE.

Ranges now OR in each supported line, the way upstream bumps its own
`^0.1.2-rc.1` pins. Proven: dsh 0.1.2-rc.1 plus all four dshworks plugins
resolve to one hoisted 0.1.2-rc.1 tree, 528 packages, no ERESOLVE; the plugin
imports and `dsh --profile web --patch cordis.patch.yml --dump-config`
composes it.
dsh ships prereleases only, and npm semver never lets a prerelease satisfy a
caret with a different version tuple. Every release moves the whole
`@deepseek-ai/dsh-*` line outside any range already written, and no test here
can see it: the break is in the range, not the code.

`npm i` succeeding is the weaker question and it passes while broken. Installed
alone, npm satisfies a stale `^0.1.0-rc.6` by HOISTING dsh-llm 0.1.0-rc.8 to
the root and pushing dsh 0.1.2-rc.1's own copy into a nested node_modules:
691 packages instead of 528, zero warnings, and the plugin imports a
four-release-old harness while the host imports the current one. Measured on
the published @dshworks/dsh-watch 0.2.0: THIRTEEN harness packages split.

So the daily check installs for real and asserts one version of every harness
package — twice, because they fail separately: this tree (did we fix it?) and
the published package (did the fix ship? a fix users cannot install is not a
fix). Drift opens an issue; a red scheduled run notifies nobody.

It reads red right now against every published plugin, and clears on publish.
The release check was red on all four PRs that fix the thing it checks. By
construction: the published package is still the broken one until the PR
merges and ships, so gating a PR on the published half makes the tripwire red
on its own fix — which is how a tripwire gets switched off.

A pull request now checks only what this branch would publish. The scheduled
run keeps both halves, and it is the only run that can ever see the published
one clear.

docs/pricing.json carries the package version, so the 0.4.1 bump left it
stale and the generated-artifact check caught it. Regenerated. The lesson is
ordering: bump, then regenerate, then test — I tested before the bump.
@lroolle
lroolle merged commit b531131 into main Sep 4, 2026
2 checks passed
@lroolle
lroolle deleted the fix/dsh-0.1.2-rc.1 branch September 4, 2026 05:55
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