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

+21 -43
View File
@@ -11,17 +11,16 @@
# It is deliberately not applied for you, and the reason is a real hazard rather
# than caution: a preset declaration replaces the whole plugin list, never merges
# into it, so this file is a frozen copy of the shipped `standard` composition
# plus two changes. When the harness next updates `standard` — a new tool, a
# plus one change. When the harness next updates `standard` — a new tool, a
# renamed row — this copy will not follow it, and the sessions on this preset
# will silently lose whatever was added. Use it if you are prepared to re-copy
# and re-apply when that happens; otherwise take the compaction settings into
# whichever preset you actually run.
# will silently lose whatever was added, or fail to mount if the copy keeps a
# row the harness removed. Use it if you are prepared to re-copy and re-apply
# when that happens; otherwise take the compaction settings into whichever
# preset you actually run.
#
# The two changes from the shipped file are the `compaction-basic` row's config,
# and the persona row's missing suffix: the shipped one names the working
# directory with a prompt variable the harness no longer registers, and an
# unregistered variable fails the whole turn instead of rendering. Re-copying
# this file from a newer `standard` reintroduces that suffix — re-apply both.
# The one change from the shipped file is the `compaction-basic` row's config.
# `test/presets.test.js` compares this file against the installed `standard`
# and fails on any other difference.
- insert:
- id: preset-standard
name: '@deepseek-ai/dsh-agent-preset'
@@ -29,12 +28,6 @@
id: standard
order: 1
plugins:
# No suffix, for the reason in `facet.patch.yml`: the harness registers
# only `provider` and `model` as prompt variables, and an unregistered
# one now throws instead of rendering. Nothing in this preset states the
# session's working directory any more — a static prompt template cannot
# name a folder that changes per session, so a deployment that needs it
# belongs in the runtime context rather than here.
- id: persona
name: '@deepseek-ai/dsh-persona'
config:
@@ -43,6 +36,8 @@
name: '@deepseek-ai/dsh-agent-instructions'
config:
maxBytes: 65536
- id: time-context
name: '@deepseek-ai/dsh-time-context'
- id: tool-bash
name: '@deepseek-ai/dsh-tool-bash'
disabled: !!js process.platform === 'win32'
@@ -51,12 +46,17 @@
disabled: !!js process.platform !== 'win32'
- id: tool-fs
name: '@deepseek-ai/dsh-tool-fs'
config:
# Set false to drop the apply_patch tool beside edit.
applyPatch: false
- id: tool-fs-search
name: '@deepseek-ai/dsh-tool-fs-search'
config:
sampleOverCapGlobResults: false
- id: tool-jobs
name: '@deepseek-ai/dsh-tool-jobs'
- id: tool-schedule
name: '@deepseek-ai/dsh-tool-schedule'
- id: skill-filesystem
name: '@deepseek-ai/dsh-skill-filesystem'
- id: tool-skill
@@ -75,7 +75,7 @@
name: '@deepseek-ai/dsh-plan-mode'
config:
section: |
You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode or switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
@@ -116,49 +116,24 @@
config:
- id: tool-subagent-control
name: '@deepseek-ai/dsh-tool-subagent-control'
- id: tool-subagent-list-agents
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
- id: tool-subagent
name: '@deepseek-ai/dsh-tool-subagent'
config:
provider: spawn
toolName: subagent
modelSelectionSettings: true
backgroundMode: continuable
modelSelection: true
modelDiscovery: true
- id: tool-subagent-fork
name: '@deepseek-ai/dsh-tool-subagent'
config:
provider: fork
toolName: subagent_fork
backgroundMode: continuable
- id: tool-subagent-codex
name: '@deepseek-ai/dsh-tool-subagent'
disabled: true
config:
provider: codex
toolName: subagent_codex
backgroundMode: one-shot
maxDepth: provider-managed
- id: tool-subagent-claude-code
name: '@deepseek-ai/dsh-tool-subagent'
disabled: true
config:
provider: claude-code
toolName: subagent_claude_code
backgroundMode: one-shot
maxDepth: provider-managed
- id: workflow-ptc
name: '@deepseek-ai/dsh-workflow-ptc'
config:
provider: spawn
- id: tool-workflow
name: '@deepseek-ai/dsh-tool-workflow'
- id: tool-ralph
name: '@deepseek-ai/dsh-tool-ralph'
disabled: true
config:
subagentProvider: spawn
maxRounds: 64
- id: tool-ask-user
name: '@deepseek-ai/dsh-tool-ask-user'
- id: tool-todo
@@ -174,4 +149,7 @@
name: '@deepseek-ai/dsh-tool-present'
- id: tool-plugin-manager
name: '@deepseek-ai/dsh-plugin-manager/tools'
disabled: !!js "!ctx.get('profileContext')"
- id: tool-plugin-market
name: '@deepseek-ai/dsh-plugin-market/tools'
disabled: true