Repository navigation
Update to DSH 0.2.2-rc.5 contract; per-project MCP child (v0.2.3) - #1
Merged
Merged
Conversation
- engines.dsh + widened peer range, dsh.manifestVersion 1, top-level icon - fix CRLF frontmatter parsing (plugin failed to load on Windows checkouts); LF tree + .gitattributes - static MCP row args (0.2.x composer mangles evaluated !!js arrays) - anchor the MCP child on the dsh named workspace: memtrace mcp --workspace dsh, ensured at apply - node --test 19/19 green on node 26
- drop the shared dsh named-workspace model: pre-creating the workspace made the store membership un-widenable and a stale owner lease blocked the live child - row: memtrace mcp, command pinned (MEMTRACE_BIN, else memtrace on PATH), no workspace flag - the child anchors on its working directory and opens the repo's own .memdb - remove lib/ensure-workspace.js and apply-time workspace creation; leave any existing dsh store untouched - docs: per-project model; per-session cwd keying needs a dsh-mcp-client change (one child per row, static cwd, scope = global or agent preset) - verified: two concurrent per-project children each auto-allocate their own loopback sidecar (50051 + 65021) and serve their own stores; suite 14/14
|
Mention Blocks like a regular teammate with your question or request: @blocks review this pull request Run |
Contributor
Author
|
@blocks review this pull request |
|
Unable to fulfill this request because your GitHub account is not associated with this workspace. |
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.
Summary
Two commits bringing the plugin up to the current DeepSeek Harness release (0.2.2-rc.5) and replacing the MCP row with the per-project model. Everything was verified against the shipped DSH 0.2.2-rc.5 sources and against memtrace 1.2.21 at runtime; the full test suite is green.
3ea8ceb— feat: update to the DSH 0.2.2-rc.5 plugin contract (v0.2.2)25f704d— feat!: per-project MCP child (v0.2.3)Why these changes
engines.dshrange (falling back to the@deepseek-ai/dshpeer on older releases). This plugin declared neither, and its peer range stopped at<0.2.0-0, sodsh plugin addon 0.2.2-rc.5 refuses it.lib/parse-skill.jsmatched LF-only frontmatter; a Windows checkout (core.autocrlf) turns all 27SKILL.mdfiles CRLF, soapply()threw before registering anything.!!jsthat returned theargsarray arrived atdsh-mcp-clientas{"[object Object]": [...]}and the config was rejected.What changed, and which code does what
package.jsonengines.dsh: ">=0.1.0-rc.6 <0.3.0-0"+ the same peer range for older DSH;dsh.manifestVersion: 1; top-levelicon(the 0.2.x display field); version 0.2.3lib/parse-skill.jsFRONTMATTERand the body strip now tolerate\r\n(/^---\r?\n([\s\S]*?)\r?\n---\r?\n([\s\S]*)$/), so CRLF checkouts loadtest/parse-skill.test.js.gitattributes* text=auto eol=lf— future checkouts stay LF on every platformcordis.patch.ymlargs: [mcp], command pinned via a scalar expression (MEMTRACE_BIN, elsememtraceon PATH), no workspace flag —memtrace mcpanchors on its working directory and opens the repo's own.memdb. The comment documents whyargsmust stay literal and how to pin one project (cwd:restatement)lib/resolve-memtrace-mcp.jsresolveMemtraceLaunch(binary resolution:MEMTRACE_BIN→memtraceon PATH →npx -y memtrace) out ofresolveMemtraceMcpLaunch; added thememtraceOnPath()probe (where/which)bin/memtrace-mcp.jslib/register-skills.js/lib/ensure-workspace.jsdshnamed-workspace ensure (created in3ea8ceb) was removed in25f704d: pre-creating the workspace made the store membership un-widenable and a stale owner lease left the live child dead.apply()is back to skills-onlyREADME.md/README.zh.md/docs/02_architecture_constraints.mdengines.dshsemantics, Node floors), the per-project store model, the per-project restatement recipe, and the explicit limitation that per-sessioncwdkeying needs a host-side change.github/workflows/verify.yml.gitignore.memdb/How it was verified
dsh-app-boot'sevaluatePluginCompatibility) against the new manifest — compatible with 0.2.2-rc.5 / 0.2.2 / 0.2.0 / 0.1.0-rc.6; refuses 0.1.0-rc.5 and 0.3.0-alpha.1 as intended.loadOptionalPatches+composeEntries) —argsstays["mcp"],commandis the sanctioned scalar__jsExprwrapper. The old corruption ({"[object Object]": [...]}) was reproduced first, then shown fixed.cwd= its repository opens that repo's own.memdband serves tools; two concurrent children each got their own store and sidecar (127.0.0.1:50051and an auto-allocated127.0.0.1:65021, each store'sdaemon-state.jsonrecording its own endpoint);index_directorythrough a per-project child starts that repo's first index in its own store.Test coverage
node --test, 14/14 green (19 before the workspace machinery was removed; node 26 locally, CI covers 22 + 24):test/manifest.test.jsdsh.bundle.patch, stable row ids, literalargs, pinned command expression, no--workspace,engines.dshmirrors the peer range,manifestVersion, shipped icontest/parse-skill.test.jstest/load-skills.test.js,test/bundled-skills.test.jsSKILL.mdloads (27 skills, kebab-case, unique names)test/register-skills.test.jsapply()registers each skill with a directoryresourceBaseand disposes on unloadtest/resolve-memtrace-mcp.test.jsMEMTRACE_BIN→ PATH →npx -y memtrace mcpBreaking notes
memtraceon PATH (orMEMTRACE_BIN); the zero-installnpxfetch becomes a documented restatement instead of the default, so per-project children never multiply npx downloads.cwd(one child per workspace, reaped with its sessions) needs adsh-mcp-client/host change — 0.2.2-rc.5 keys one instance per row with a staticcwd. Until then, thecwd: <repo root>restatement gives one project its own child and store.