Skip to content

fix(dsh-memory-plugin): accept every DSH 0.x release and check new hosts daily - #5733

Merged
ZaynJarvis merged 3 commits into
mainfrom
fix/dsh-peer-range-0x
Oct 8, 2026
Merged

ZaynJarvis merged 3 commits into
mainfrom
fix/dsh-peer-range-0x

Conversation

@t0saki

@t0saki t0saki commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Description

DSH checks every @deepseek-ai/dsh-* peer of a plugin when it loads the plugin (semver.satisfies with includePrerelease: true) and refuses to load a plugin whose range does not admit the running release. The bundle's peer range listed tested series one by one, so each new DSH release line needed another range change and another plugin release (#5645 is the latest example, for 0.2.1-alpha.1).

This widens the range to every 0.x release from 0.1.0-rc.6 on, and adds a scheduled check that runs plugin tests against the releases a host's npm dist-tags point at, so a breaking host release is reported as an issue instead of blocking users up front. The check is host-generic; DSH is the only host listed today.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Related Issue

Supersedes #5645.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • @openviking/dsh-memory-plugin 0.5.17: peers become >=0.1.0-rc.6 <1.0.0-0 in package.json and the lockfile. The -0 keeps 1.0.0 pre-releases out under includePrerelease.
  • bundle.test.mjs judges the range with includePrerelease: true, matching DSH. The old assertion that the range rejects 0.2.0-rc.1 used npm's default semantics and did not match what DSH does: 0.2.0-rc.2 already loaded under the old range. A new assertion requires the lockfile root peers to equal the manifest's.
  • New .github/host-compat.json + .github/scripts/host-compat.mjs + .github/workflows/host-compat.yml: daily at 00:00 SGT (16:00 UTC) (and on manual dispatch, optionally for one host or an exact release), each listed plugin is copied to a scratch directory, its pinned host packages are moved to the release under test, and its peer range and tests are checked. Because the tests never start the host, a host can also list smoke steps; for DSH they install that dsh release in an isolated home, add the bundle packed as npm would publish it, and require dsh --profile web --dump-config to list openviking-memory-runtime. A scheduled failure opens one issue per failing host release; it is not a pull request check.
  • Docs: the plugin README gains a "DSH version compatibility" section (range, verified releases, what to do when a new release breaks the bundle). The stale ERESOLVE rows in docs/{en,zh}/agent-integrations/17-dsh.md and docs/images/agents/{en,zh}/deepseek-harness.md are replaced: DSH installs plugins with pnpm, which only warns on peer mismatches.

Testing

  • I have added tests that prove my fix is effective or that my feature works

  • New and existing unit tests pass locally with my changes

  • I have tested this on the following platforms:

    • Linux
    • macOS
    • Windows
  • node .github/scripts/host-compat.mjs locally: the DSH latest/next release 0.2.0-rc.2 and the alpha release 0.2.1-alpha.1 pass; --version 0.1.0-rc.6 passes; --version 0.0.1-rc.5 fails at the peer-range stage as expected. With smoke steps the whole run takes about 70 s.

  • Smoke negative case: the published 0.5.16 (old range) added to a dsh@0.2.1-alpha.1 profile is rejected by dsh plugin add (exit 1, "incompatible with dsh 0.2.1-alpha.1"), so the smoke step fails as intended.

  • Full plugin suite with the host packages at 0.2.0-rc.2: 94 passed, 1 opt-in live test skipped.

  • Published 0.5.16 installed into a dsh@0.2.0-rc.2 profile: dsh --profile web --dump-config lists openviking-memory-runtime.

  • actionlint passes on the new workflow. The workflow itself has not run on GitHub yet; a manual dispatch after merge will be its first run.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

…sts daily

DSH checks a plugin's @deepseek-ai/dsh-* peers at load time with
prereleases included in the range, so a range listing tested series one by
one needed a plugin release for every DSH release. Widen the peers to
>=0.1.0-rc.6 <1.0.0-0 and judge the bundle test by the same rule DSH uses.

Add a scheduled host compatibility check: hosts and plugins are listed in
.github/host-compat.json, and a daily job runs each plugin's tests against
the releases the host's npm dist-tags point at, filing one issue per
failing release. DSH is the only host listed today.

Document the range, the verified releases, and what to do when a new DSH
release breaks the bundle; drop the stale ERESOLVE troubleshooting rows.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 04:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants