Skip to content

fix(dsh): support DeepSeek Harness 0.1.2 through 0.2.x - #39

Merged
gloryfromca merged 2 commits into
mainfrom
fix/dsh-0.2-compat
Nov 13, 2026
Merged

gloryfromca merged 2 commits into
mainfrom
fix/dsh-0.2-compat

Conversation

@gloryfromca

Copy link
Copy Markdown
Member

Published @everos-ai/dsh-plugin 0.1.0 shows as incompatible in the DSH plugin store on DSH 0.2.x, and EverMind-AI/EverOS#551 reports capture silently doing nothing on 0.2.1. The break is older than 0.2: DSH changed what the plugin reads inside the 0.1.x line.

DSH what changed
0.1.2 session.events removed; snapshotEvents() is the reader
0.1.7 tool results carry toolCallId on the message instead of one tool-result block; the shared plugin source kind is gone

So 0.1.0 has done nothing (no recall, no capture) on every DSH from 0.1.2 on, while its peer range <0.2.0-0 still admitted those hosts. 0.1.2-rc.1 is the most-downloaded 0.1.x CLI.

Change

  • read the log through snapshotEvents(), falling back to session.events on 0.1.0/0.1.1
  • accept both tool-result shapes
  • recall messages declare their own everos-memory source kind (form: 'recall'), the way 0.2.x producers do
  • DSH peers widened to >=0.1.0-rc.6 <0.3.0-0; version 0.2.0; dev dependencies on 0.2.2-rc.1

One version for every DSH rather than a 0.1.x line and a 0.2.x line: the difference is two small shims, and a split would leave 0.1.2–0.1.7 users on the broken 0.1.0.

Why nothing caught it

The unit tests hand the plugin a Session they wrote themselves, so they stay green whatever DSH renames. scripts/e2e-everos.sh installs the latest dist-tag, which for dsh-agent is still 0.1.0-rc.6 while the CLI's latest is 0.2.2-rc.1.

Verified

scripts/host-matrix.sh (new, added to CI): the packed plugin next to each real DSH, one turn with recall, a tool call and result, and a seal, judged by what a stub EverOS received. No credentials.

DSH 0.1.0 (published) this branch
0.1.0-rc.6 PASS PASS
0.1.2-rc.1, 0.1.5-rc.3 nothing sent PASS
0.1.7-rc.2 nothing sent PASS
0.2.0-rc.2, 0.2.1-rc.3, 0.2.1-rc.5, 0.2.2-rc.1, 0.2.2-rc.2 nothing sent PASS

scripts/e2e-dsh-headless.sh (new, spends tokens, not in CI): DSH 0.2.2-rc.1 CLI, the packed plugin added with dsh plugin --profile headless add, a real EverOS. 7/7:

  • DSH's version gate admits the plugin and composes the everos-memory row
  • session 1 states a random code; EverOS extracts it to an episode
  • a fresh session 2 answers with the code
  • the same question with recall cut off answers UNKNOWN

npm run ci: lint, typecheck against 0.2.2-rc.1, 20 tests, build.

Not covered

  • The Desktop and Web profiles; only headless was driven.
  • DSH bounds plugin shutdown at about 5 s. A seal flush that runs longer still reaches EverOS and is processed, but its response is not awaited (README says so).

After merge: publish 0.2.0 to npm.

Refs EverMind-AI/EverOS#551

🤖 Generated with Claude Code

DSH changed what the plugin reads inside the 0.1.x line: 0.1.2 dropped
`session.events` for `snapshotEvents()`, and 0.1.7 replaced the single
`tool-result` content block with `ToolResultMessage.toolCallId` and removed
the shared `plugin` message source kind. Published 0.1.0 has done nothing
on any DSH from 0.1.2 on (no recall, no capture), while its peer range
`<0.2.0-0` still admitted those hosts. DSH 0.2.x then refused it outright.

- read the log through `snapshotEvents()`, falling back to `session.events`
- accept both tool-result shapes
- declare an `everos-memory` message source kind for recall
- widen the DSH peers to `>=0.1.0-rc.6 <0.3.0-0`; version 0.2.0

The unit tests stayed green throughout because their Session is written by
the tests, and scripts/e2e-everos.sh installs the `latest` dist-tag, still
0.1.0-rc.6 for dsh-agent. Two scripts close that gap:

- scripts/host-matrix.sh runs the packed plugin on nine published DSH
  versions against a stub EverOS (free; added to CI)
- scripts/e2e-dsh-headless.sh goes through the DSH CLI's own agent loop and
  a real EverOS: a fact stated in one session is answered in a fresh one,
  and not answered when recall is cut off

Refs EverMind-AI/EverOS#551

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Blocking: make the new matrix runnable on the Ubuntu CI worker.

I found one blocking issue inline. I covered the full diff, surrounding callers and lifecycle paths, relevant DSH history, backward compatibility, test changes (they were not weakened), and the package/workflow architecture. No AGENTS.md, CLAUDE.md, or CONTEXT*.md rules exist in this worktree.

Verification: npm run ci completed lint, typecheck, all 20 unit tests, and build successfully; the committed ./scripts/host-matrix.sh then failed at temp-directory creation, matching the current GitHub Actions failure. Running the same matrix transiently with a valid GNU temp template passed all nine listed DSH versions. git diff --check also passed. The credentialed real-LLM headless E2E was not run.

Comment thread dsh/scripts/host-matrix.sh Resolved
CI runs on Linux, where `mktemp -d -t prefix` needs XXXXXX in the template;
the call failed, WORK was empty, and every path landed under /. The run
still failed closed. Use an explicit template and stop if mktemp fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No blockers; this can merge as far as I am concerned.

The portable temp-directory fix settles the only prior blocker in both affected scripts, and no new issue was found in the revision delta. Review coverage included the full change already reviewed plus this head delta, affected callers/scripts, relevant history, backward compatibility, test integrity, and workflow/package architecture; no repository-local AGENTS.md, CLAUDE.md, or CONTEXT*.md rules are present.

Verification on this head: npm ci, lint, typecheck, all 20 unit tests, build, git diff --check, and all nine packed-artifact DSH matrix cases passed. The GitHub Actions lint, test, build, and package job also passes on the required Node version. The local host was Node 23.10.0, outside the declared engine range, but emitted only the expected engine warning; the authoritative workflow used the supported runtime.

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