fix: rebuild both shipped presets from the harness standard

On dsh 0.2.2-rc.1 the harness folded `list_agents` into
`@deepseek-ai/dsh-tool-subagent-control` and stopped exporting its
`./list-agents` subpath. Both files under `presets/` are frozen copies of the
shipped `standard` composition, and the copy still named that row. A preset
declaration mounts every row it lists, so the row that could never start broke
the whole declaration: `facet` appeared on the roster with a `broken`
diagnostic and no session could compose it, which is why facet sessions stopped
resuming.

Both files are re-copied from the current `standard` patch and the three
documented changes are re-applied — the guard, the compaction budget, and the
persona's model-only prefix. The drift that came with the stale copy is fixed
with them: `time-context`, `tool-schedule` and `tool-plugin-market` are back,
`tool-subagent` uses the keys the harness reads (`modelSelection`,
`modelDiscovery`) instead of the retired `modelSelectionSettings`/`backgroundMode`,
`tool-fs` keeps `applyPatch: false`, and the plugin-manager row uses the shipped
`profileContext` condition.

The README now names this failure mode and why one dead row is fatal.
This commit is contained in:
NotExpectedYet committed 2026-11-06 07:20:32 +00:00
1 parent 7e75bcf79e
commit 616cad75ce
3 files changed
+75 -94

No files matched your search

+25 -6
View File
@@ -237,6 +237,21 @@ replaces the whole plugin list rather than merging into it, so the file is a
frozen copy of `standard` that will not follow the harness when `standard`
changes.
### Preset drift, and why one dead row breaks the preset
A preset declaration mounts every row it lists, so a single row the harness no
longer provides fails the whole declaration rather than just that tool: the
roster shows the preset with a `broken` diagnostic and no session can compose it.
That is how this bundle broke on dsh `0.2.2-rc.1`. The harness folded
`list_agents` into `@deepseek-ai/dsh-tool-subagent-control` and stopped exporting
its `./list-agents` subpath; the frozen copy still named it, the row could never
start, and every session on the `facet` preset failed to resume.
`test/presets.test.js` now compares both files under `presets/` against the
`standard` preset of the installed harness — after removing the documented
deltas — and resolves every plugin name they list, so the next time the harness
moves a row the copy fails the tests instead of failing sessions.
### Prompt variables, and why the preset's persona has no suffix
Both preset files used to copy the deployment's persona line, *Your working
@@ -285,7 +300,7 @@ Honest boundaries, because each one is a decision rather than an oversight:
Verified:
- 95 tests (`npm test`) over the scope algebra, the policy state, the guard, and
- 98 tests (`npm test`) over the scope algebra, the policy state, the guard, and
the browser half — including that containment is decided on canonical targets
(a symlink inside the facet pointing outside it is refused), that a prefix is
not a parent (`/a/room` does not contain `/a/roommate`), that a malformed tool
@@ -298,7 +313,9 @@ Verified:
out of a self-narrowing, that both listings normalise into one picker level and
that a file listing the Host confines still leaves a browsable one, that no
preset or contributed prompt text references a prompt variable the harness
does not register, and that every `facet` result satisfies the tool's own
does not register, that each shipped preset is the installed harness's
`standard` composition plus only its documented changes and names only plugins
the harness provides, and that every `facet` result satisfies the tool's own
declared output schema.
- The bundle's patch layers parse, merge and land correctly against the real
profile: `dsh --profile web --patch ./cordis.patch.yml --patch
@@ -357,15 +374,17 @@ would publish.
## Development
```sh
node scripts/dev-links.mjs # link the harness's cordis/schemastery/dsh-tools
node scripts/dev-links.mjs # link the harness's cordis/schemastery/dsh-tools/js-yaml
npm test
```
`dev-links.mjs` links rather than installs those three packages, and for
`dev-links.mjs` links rather than installs those four packages, and for
`@deepseek-ai/cordis` that is a correctness requirement rather than tidiness: a
second copy of Cordis means a second `Context` class, two service registries in
one process, and a plugin whose services are invisible to the harness that loaded
it.
it. `js-yaml` is there so the preset-drift tests can read the harness's own
`standard` patch; the scope search both share lives in
`scripts/harness-scope.mjs`.
## Layout
@@ -377,7 +396,7 @@ lib/scope.js the pure half — argument extraction, text, reason
lib/guard.js preset row: rule, binding, tool, pre-execute guard
presets/facet.patch.yml the `facet` agent preset
presets/standard-compaction.patch.yml optional: the same budget for `standard`
test/ 95 tests
test/ 98 tests
```
`client/client.js` is a browser half rather than a module the host imports, and