Repository navigation
fix(dsh): support DeepSeek Harness 0.1.2 through 0.2.x - #39
Conversation
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
left a comment
There was a problem hiding this comment.
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.
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
left a comment
There was a problem hiding this comment.
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.
Published
@everos-ai/dsh-plugin0.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.session.eventsremoved;snapshotEvents()is the readertoolCallIdon the message instead of onetool-resultblock; the sharedpluginsource kind is goneSo 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-0still admitted those hosts. 0.1.2-rc.1 is the most-downloaded 0.1.x CLI.Change
snapshotEvents(), falling back tosession.eventson 0.1.0/0.1.1everos-memorysource kind (form: 'recall'), the way 0.2.x producers do>=0.1.0-rc.6 <0.3.0-0; version 0.2.0; dev dependencies on 0.2.2-rc.1One 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.shinstalls thelatestdist-tag, which fordsh-agentis still 0.1.0-rc.6 while the CLI'slatestis 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.scripts/e2e-dsh-headless.sh(new, spends tokens, not in CI): DSH 0.2.2-rc.1 CLI, the packed plugin added withdsh plugin --profile headless add, a real EverOS. 7/7:everos-memoryrowUNKNOWNnpm run ci: lint, typecheck against 0.2.2-rc.1, 20 tests, build.Not covered
After merge: publish 0.2.0 to npm.
Refs EverMind-AI/EverOS#551
🤖 Generated with Claude Code