@dsmm/dsmm 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/README.md +38 -66
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +10 -2015
  3. package/agent-presets/dsmm-clarifier/agent.cordis.yml +24 -343
  4. package/agent-presets/dsmm-code-search/agent.cordis.yml +19 -6
  5. package/agent-presets/dsmm-coding/agent.cordis.yml +19 -438
  6. package/agent-presets/dsmm-complex/agent.cordis.yml +23 -1009
  7. package/agent-presets/dsmm-creative/agent.cordis.yml +25 -442
  8. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +29 -1013
  9. package/agent-presets/dsmm-deep/agent.cordis.yml +24 -1008
  10. package/agent-presets/dsmm-doc-search/agent.cordis.yml +19 -6
  11. package/agent-presets/dsmm-documenting/agent.cordis.yml +26 -439
  12. package/agent-presets/dsmm-frontend/agent.cordis.yml +21 -440
  13. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +22 -441
  14. package/agent-presets/dsmm-media-reader/agent.cordis.yml +19 -6
  15. package/agent-presets/dsmm-normal-task/agent.cordis.yml +19 -438
  16. package/agent-presets/dsmm-oracle/agent.cordis.yml +25 -340
  17. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +25 -340
  18. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +29 -2025
  19. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +24 -341
  20. package/agent-presets/dsmm-planner/agent.cordis.yml +14 -344
  21. package/agent-presets/dsmm-quick/agent.cordis.yml +19 -6
  22. package/agent-presets/dsmm-research/agent.cordis.yml +23 -8
  23. package/agent-presets/dsmm-reviewer/agent.cordis.yml +25 -340
  24. package/docs/agent-presets.md +36 -52
  25. package/docs/compatibility.md +50 -108
  26. package/docs/deferred-native-approval-risk.md +19 -0
  27. package/docs/design.md +2 -2
  28. package/docs/lsp.md +11 -21
  29. package/docs/migration-from-ocmm.md +2 -2
  30. package/docs/model-routing.md +84 -59
  31. package/docs/native-permissions.md +35 -0
  32. package/docs/profiles.md +40 -87
  33. package/docs/releasing.md +83 -2
  34. package/docs/roadmap.md +71 -17
  35. package/docs/settings-status.md +34 -169
  36. package/docs/skill-sync.md +52 -15
  37. package/lib/child-admission-contract.d.ts +37 -0
  38. package/lib/child-admission-contract.js +2 -0
  39. package/lib/child-admission.d.ts +42 -0
  40. package/lib/child-admission.js +162 -0
  41. package/lib/child-capture.d.ts +81 -0
  42. package/lib/child-capture.js +203 -0
  43. package/lib/child-evidence.d.ts +17 -0
  44. package/lib/child-evidence.js +43 -0
  45. package/lib/client/ChildrenPanel.d.ts +43 -0
  46. package/lib/client/ChildrenPanel.js +82 -0
  47. package/lib/client/DeploymentPage.js +15 -8
  48. package/lib/client/EditableChoice.d.ts +17 -0
  49. package/lib/client/EditableChoice.js +49 -0
  50. package/lib/client/PermissionsPanel.d.ts +14 -0
  51. package/lib/client/PermissionsPanel.js +46 -0
  52. package/lib/client/ProfilesSection.js +30 -15
  53. package/lib/client/RoleAvailability.d.ts +7 -0
  54. package/lib/client/RoleAvailability.js +19 -0
  55. package/lib/client/SessionProfiles.js +27 -9
  56. package/lib/client/StructuredEditor.js +15 -7
  57. package/lib/client/children-controller.d.ts +98 -0
  58. package/lib/client/children-controller.js +296 -0
  59. package/lib/client/children-locales.d.ts +367 -0
  60. package/lib/client/children-locales.js +69 -0
  61. package/lib/client/controller.d.ts +6 -1
  62. package/lib/client/controller.js +14 -8
  63. package/lib/client/deployment-data.d.ts +2 -1
  64. package/lib/client/deployment-data.js +34 -5
  65. package/lib/client/deployment-locales.d.ts +4 -0
  66. package/lib/client/deployment-locales.js +11 -2
  67. package/lib/client/diagnostics.d.ts +14 -0
  68. package/lib/client/diagnostics.js +53 -0
  69. package/lib/client/index.d.ts +4 -0
  70. package/lib/client/index.js +96 -2
  71. package/lib/client/locales.d.ts +54 -0
  72. package/lib/client/locales.js +34 -16
  73. package/lib/client/permission-client.d.ts +16 -0
  74. package/lib/client/permission-client.js +38 -0
  75. package/lib/client/permission-controller.d.ts +62 -0
  76. package/lib/client/permission-controller.js +149 -0
  77. package/lib/client/permission-locales.d.ts +114 -0
  78. package/lib/client/permission-locales.js +75 -0
  79. package/lib/client/session-labels.js +4 -4
  80. package/lib/client/structured.js +19 -5
  81. package/lib/client/styles.d.ts +1 -1
  82. package/lib/client/styles.js +20 -0
  83. package/lib/client.js +5780 -1679
  84. package/lib/core-permission-authority.d.ts +18 -0
  85. package/lib/core-permission-authority.js +255 -0
  86. package/lib/core-permissions.d.ts +8 -0
  87. package/lib/core-permissions.js +33 -0
  88. package/lib/delivery-authority.d.ts +68 -0
  89. package/lib/delivery-authority.js +260 -0
  90. package/lib/deployment-config.d.ts +23 -0
  91. package/lib/deployment-config.js +61 -40
  92. package/lib/deployment-permission-rules.d.ts +55 -0
  93. package/lib/deployment-permission-rules.js +306 -0
  94. package/lib/dsh-types.d.ts +10 -4
  95. package/lib/guards.d.ts +1 -1
  96. package/lib/guards.js +29 -8
  97. package/lib/host-llm-startup.d.ts +41 -0
  98. package/lib/host-llm-startup.js +65 -0
  99. package/lib/host-llm.d.ts +92 -0
  100. package/lib/host-llm.js +325 -0
  101. package/lib/index.d.ts +15 -4
  102. package/lib/index.js +300 -47
  103. package/lib/legacy-child-policy.d.ts +51 -0
  104. package/lib/legacy-child-policy.js +123 -0
  105. package/lib/legacy-read-composition.d.ts +20 -0
  106. package/lib/legacy-read-composition.js +144 -0
  107. package/lib/legacy-read-contracts.d.ts +157 -0
  108. package/lib/legacy-read-contracts.js +39 -0
  109. package/lib/legacy-read-host.d.ts +19 -0
  110. package/lib/legacy-read-host.js +67 -0
  111. package/lib/legacy-read-integration.d.ts +121 -0
  112. package/lib/legacy-read-integration.js +522 -0
  113. package/lib/legacy-read-proxy.d.ts +26 -0
  114. package/lib/legacy-read-proxy.js +237 -0
  115. package/lib/live-pi-ai-owner.d.ts +18 -0
  116. package/lib/live-pi-ai-owner.js +144 -0
  117. package/lib/llm-runtime.d.ts +11 -0
  118. package/lib/llm-runtime.js +21 -0
  119. package/lib/managed-settings.d.ts +5 -0
  120. package/lib/managed-settings.js +14 -0
  121. package/lib/model-parameter-policy.d.ts +11 -0
  122. package/lib/model-parameter-policy.js +27 -0
  123. package/lib/model-routing.js +28 -17
  124. package/lib/modules.d.ts +13 -5
  125. package/lib/modules.js +17 -1
  126. package/lib/native-child-evidence.d.ts +42 -0
  127. package/lib/native-child-evidence.js +133 -0
  128. package/lib/native-pi-ai-wire.d.ts +37 -0
  129. package/lib/native-pi-ai-wire.js +261 -0
  130. package/lib/native-scope.js +1 -1
  131. package/lib/permission-bash.d.ts +6 -0
  132. package/lib/permission-bash.js +7 -0
  133. package/lib/permission-control.d.ts +73 -0
  134. package/lib/permission-control.js +205 -0
  135. package/lib/permission-controller.d.ts +68 -0
  136. package/lib/permission-controller.js +317 -0
  137. package/lib/permission-errors.d.ts +7 -0
  138. package/lib/permission-errors.js +21 -0
  139. package/lib/permission-fs-search.d.ts +5 -0
  140. package/lib/permission-fs-search.js +7 -0
  141. package/lib/permission-fs.d.ts +5 -0
  142. package/lib/permission-fs.js +7 -0
  143. package/lib/permission-native-access.d.ts +11 -0
  144. package/lib/permission-native-access.js +6 -0
  145. package/lib/permission-native-command.d.ts +10 -0
  146. package/lib/permission-native-command.js +93 -0
  147. package/lib/permission-native-rules.d.ts +75 -0
  148. package/lib/permission-native-rules.js +278 -0
  149. package/lib/permission-pwsh.d.ts +6 -0
  150. package/lib/permission-pwsh.js +7 -0
  151. package/lib/permission-remote.d.ts +26 -0
  152. package/lib/permission-remote.js +53 -0
  153. package/lib/permission-rpc.d.ts +29 -0
  154. package/lib/permission-rpc.js +152 -0
  155. package/lib/permission-rules.d.ts +115 -0
  156. package/lib/permission-rules.js +256 -0
  157. package/lib/permission-settings.d.ts +45 -0
  158. package/lib/permission-settings.js +48 -0
  159. package/lib/permission-shell.d.ts +38 -0
  160. package/lib/permission-shell.js +150 -0
  161. package/lib/permission-web.d.ts +5 -0
  162. package/lib/permission-web.js +7 -0
  163. package/lib/preset-registry.js +36 -25
  164. package/lib/profile-diagnostics.d.ts +45 -0
  165. package/lib/profile-diagnostics.js +148 -0
  166. package/lib/profile-locale.d.ts +3 -0
  167. package/lib/profile-locale.js +2 -0
  168. package/lib/profile-remote.d.ts +8 -0
  169. package/lib/profile-remote.js +163 -39
  170. package/lib/profile-rpc.d.ts +4 -3
  171. package/lib/profile-rpc.js +14 -12
  172. package/lib/profile-runtime.d.ts +40 -1
  173. package/lib/profile-runtime.js +368 -93
  174. package/lib/profile-store.d.ts +11 -0
  175. package/lib/profile-store.js +143 -11
  176. package/lib/profile-types.d.ts +70 -1
  177. package/lib/profile-types.js +1 -0
  178. package/lib/profiles.d.ts +16 -2
  179. package/lib/profiles.js +156 -79
  180. package/lib/prompt-content.js +1 -1
  181. package/lib/prompts.d.ts +37 -2
  182. package/lib/prompts.js +111 -9
  183. package/lib/recovery-policy.js +20 -7
  184. package/lib/role-control-remote.d.ts +38 -0
  185. package/lib/role-control-remote.js +211 -0
  186. package/lib/role-control-rpc.d.ts +51 -0
  187. package/lib/role-control-rpc.js +377 -0
  188. package/lib/role-control-types.d.ts +92 -0
  189. package/lib/role-control-types.js +8 -0
  190. package/lib/role-invocation.d.ts +47 -0
  191. package/lib/role-invocation.js +135 -0
  192. package/lib/role-llm-runtime.d.ts +17 -0
  193. package/lib/role-llm-runtime.js +62 -0
  194. package/lib/role-llm.d.ts +31 -0
  195. package/lib/role-llm.js +66 -0
  196. package/lib/role-policy.d.ts +49 -8
  197. package/lib/role-policy.js +437 -60
  198. package/lib/role-providers.d.ts +1 -1
  199. package/lib/role-providers.js +30 -35
  200. package/lib/role-routing.d.ts +11 -2
  201. package/lib/role-routing.js +42 -25
  202. package/lib/role-runs.d.ts +135 -0
  203. package/lib/role-runs.js +304 -0
  204. package/lib/role-subagents.d.ts +58 -3
  205. package/lib/role-subagents.js +169 -56
  206. package/lib/roles.d.ts +5 -6
  207. package/lib/roles.js +10 -39
  208. package/lib/route-json.d.ts +19 -0
  209. package/lib/route-json.js +129 -0
  210. package/lib/routing-policy.d.ts +2 -0
  211. package/lib/routing-policy.js +12 -2
  212. package/lib/runtime-integration.d.ts +112 -0
  213. package/lib/runtime-integration.js +784 -0
  214. package/lib/runtime-recovery.js +18 -8
  215. package/lib/settings.d.ts +47 -13
  216. package/lib/settings.js +217 -82
  217. package/lib/skills.js +2 -2
  218. package/lib/status.d.ts +10 -1
  219. package/lib/status.js +11 -8
  220. package/lib/subagent-runtime.d.ts +45 -0
  221. package/lib/subagent-runtime.js +131 -0
  222. package/package.json +106 -56
  223. package/patches/subagent-runtime.yml +15 -0
  224. package/prompts/deepseek-flash.md +1 -1
  225. package/prompts/deepseek-v4-pro.md +2 -2
  226. package/prompts/deepwork.md +27 -18
  227. package/prompts/source/agents/clarifier.md +5 -3
  228. package/prompts/source/agents/orchestrator.md +18 -9
  229. package/prompts/source/agents/plan-critic.md +5 -1
  230. package/prompts/source/agents/planner.md +4 -2
  231. package/prompts/source/agents/reviewer.md +6 -0
  232. package/prompts/source/category/complex.md +4 -4
  233. package/prompts/source/category/creative.md +6 -4
  234. package/prompts/source/category/cross-cutting.md +10 -8
  235. package/prompts/source/category/deep.md +5 -3
  236. package/prompts/source/category/documenting.md +7 -1
  237. package/prompts/source/category/frontend.md +2 -2
  238. package/prompts/source/category/hard-reasoning.md +3 -3
  239. package/prompts/source/category/research.md +4 -2
  240. package/prompts/source/deepwork/claude-opus-5.md +2 -2
  241. package/prompts/source/deepwork/codex.md +1 -1
  242. package/prompts/source/deepwork/default.md +22 -15
  243. package/prompts/source/deepwork/gemini.md +23 -16
  244. package/prompts/source/deepwork/glm.md +21 -14
  245. package/prompts/source/deepwork/gpt.md +12 -6
  246. package/prompts/source/deepwork/planner.md +8 -5
  247. package/prompts/source/manifest.json +178 -63
  248. package/prompts/source/shared/dsh-host-contract.md +5 -3
  249. package/prompts/source/shared/locale.md +2 -2
  250. package/prompts/source/terminal/orchestrator.md +1 -1
  251. package/scripts/cold-profile-composition.mjs +329 -0
  252. package/scripts/cold-profile-sources.mjs +238 -0
  253. package/scripts/migrate-cold-profile.mjs +315 -0
  254. package/skills/ast-grep/SKILL.md +7 -4
  255. package/skills/brainstorming/SKILL.md +43 -22
  256. package/skills/coding-agent-sessions/SKILL.md +7 -4
  257. package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
  258. package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
  259. package/skills/debugging/SKILL.md +14 -9
  260. package/skills/debugging/references/methodology/00-setup.md +14 -62
  261. package/skills/debugging/references/methodology/02-investigate.md +4 -4
  262. package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
  263. package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
  264. package/skills/debugging/references/methodology/06-fix.md +6 -6
  265. package/skills/debugging/references/methodology/08-qa.md +5 -5
  266. package/skills/debugging/references/methodology/09-cleanup.md +15 -153
  267. package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
  268. package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
  269. package/skills/debugging/references/runtimes/native-binary.md +9 -54
  270. package/skills/debugging/references/runtimes/node.md +4 -15
  271. package/skills/debugging/references/runtimes/python.md +3 -15
  272. package/skills/debugging/references/runtimes/rust.md +2 -18
  273. package/skills/debugging/references/tools/dap.md +1 -1
  274. package/skills/debugging/references/tools/ghidra.md +4 -15
  275. package/skills/debugging/references/tools/playwright-cli.md +3 -15
  276. package/skills/debugging/references/tools/pwntools.md +4 -16
  277. package/skills/dispatching-parallel-agents/SKILL.md +18 -16
  278. package/skills/frontend/SKILL.md +7 -4
  279. package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
  280. package/skills/git-master/SKILL.md +7 -4
  281. package/skills/init-deep/SKILL.md +7 -4
  282. package/skills/receiving-code-review/SKILL.md +17 -12
  283. package/skills/remove-ai-slops/SKILL.md +39 -38
  284. package/skills/requesting-code-review/SKILL.md +19 -17
  285. package/skills/requesting-code-review/code-reviewer.md +13 -1
  286. package/skills/subagent-driven-development/SKILL.md +29 -26
  287. package/skills/subagent-driven-development/implementer-prompt.md +29 -11
  288. package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
  289. package/skills/using-git-worktrees/SKILL.md +7 -4
  290. package/skills/writing-plans/SKILL.md +29 -24
  291. package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
@@ -1,118 +1,76 @@
1
- # DSMM 0.1.9 Compatibility and Upgrade
1
+ # DSMM compatibility and upgrade boundaries
2
2
 
3
- This document describes the working 0.1.9 source contract and required acceptance evidence, including implemented C0 storage/capture boundaries. It doesn't claim that the final 0.1.9 artifact has passed Docker, been published or been activated in Desktop. Completed 0.1.5 and 0.1.6 publication/continuation evidence stays immutable and doesn't prove 0.1.9. Historical 0.1.1 checks and the stopped 0.1.2 frozen draft aren't substitute evidence; the old 0.1.2 tag/artifact/draft stay untouched and unpublished. The release Action controls retain an exact shared 20-minute 404 visibility budget and 45-minute verify job. The earlier release-only 0.1.9 scope no longer describes today's changed working source. The 0.1.8 npm publication is genuine but its original terminal receipt failed with GitHub skipped; Desktop remains on 0.1.7 and CLI/TUI on 0.1.6 until a separately completed successor rollout.
3
+ This document describes the **local source candidate**, not a newly published release. The manifest remains `@dsmm/dsmm@0.2.0`, which is an existing registry version; that version string doesn't prove the registry artifact contains these source features. Evaluate the actual local packed artifact. Formal package/smoke checks and authorized installed-host acceptance are separate evidence, and neither is declared complete here.
4
4
 
5
- 0.1.7 is npm published and Desktop installed, but not a completed GitHub Release. Preserve immutable tag `dsmm-scoped-v0.1.7`, package and source `1ca0bf6e89916d17ddc663e1e06f6c15256cf453`; original run `37312038470/1` failed verification, GitHub was skipped, and terminal evidence remained `UNRESOLVED`/`FAILED`. Neither installation nor registry presence supplies completion authority. The authorized 0.1.9 Desktop upgrade waits for the new identity's terminal `COMPLETED` evidence, while the existing CLI/TUI 0.1.6 installation remains untouched.
5
+ ## Supported integration
6
6
 
7
- 0.1.8 is genuinely npm published, but not a completed GitHub Release. Its immutable `dsmm-scoped-v0.1.8` source is `569eb8398cd6082d2c59679a0adc0198aeeb883e`, with confirmed published tarball SHA256 `803117222bff06af977752a3a421f4975bc3a511a61e7914960219132e31e301`. Original run `37350981167/1` ended terminal `FAILED`, with GitHub skipped: the old shared 300-second visibility budget expired before npm's record `2026-10-05T18:01:24.500Z`, after the publication job at `17:52:09` on 2026-10-05. Preserve its tag, source, package, provenance, bytes and failed receipt; no old-tag mutation, republishing, rerun, receipt adoption or in-place repair is authorized. Desktop remains on 0.1.7 and CLI/TUI on 0.1.6, unchanged. The original release-only 0.1.9 proposal kept 0.1.8 behavior and changed verification visibility/deadline controls. Current source includes A/B/C0 changes without a version bump; Desktop rollout still waits for its own terminal `COMPLETED`.
8
-
9
- The immutable 0.1.3 tag at `2bdea4b` is also preserved. Its run `37235817488` failed before pack/publish on pnpm 11's ignored esbuild/koffi build scripts. 0.1.4's published-origin bytes and failed original verify/404 history are preserved by their separate fixed continuation controls, not rewritten by a successor. The 0.1.9 gate requires fresh clean Linux installation/build evidence; existing compiled output is not a substitute.
10
-
11
- DSMM is the native package/Core title in both exported metadata locales, with localized descriptions; Deepwork is its module. Profiles remain **Deepwork Profiles** / **Deepwork 配置档**, and the current 22 canonical roles/categories remain `DW …` (historically twelve roles). Package `@dsmm/dsmm`, Loader `dsmm`, role/tool/provider IDs, commands, schemas and persistence vocabulary remain compatible. The real rc.2 native metadata reader and Plugins UI prove the new package title; a manifest `displayName` is not a supported substitute. Historical installed-package metadata isn't rewritten by this source change.
12
-
13
- ## Compatibility authority
14
-
15
- ### D native configuration checkpoint (source and real rc.2 Web, not Electron)
16
-
17
- The official `plugins.item`, `plugins.bundle.config` and `plugins.row.config` contracts mount the DSMM card/page and actual package/entry forms. Global control uses the fixed `dsmmConfig` service; the selected profile override uses the real Host `ConfigPageForm`, exact entry/namespace/base/user/revision checks and only sparse set/unset operations. The standalone item clearly marks a missing optional form unavailable. Both layers provide complete schema-bound feature editing, inheritance/default pins, independent saves, preserved invalid/dirty conflict state, sanitized feedback and keyboard focus. The existing named JSONC/model/session editor is independent, with legacy origin and immutable pins visible/read-only.
18
-
19
- Fresh owned keyless Web Hosts proved actual native discovery and central-only versus profile-only writes, same-Home A/B inheritance/override/unset, unchanged refs/fiber, source/revision state, default pins, invalid-number retention, conflict refusal with dirty preservation, cold-off desired-on pending and user-independent restart to mounted-on. Busy-root native fixture proof covers role/skill/recovery changes: old parent/future child stay captured, new root adopts permitted changes, and saves do not cancel/reconcile/remount/respawn LSP. rc.2 emits native compatibility partial-dispose signals on profile patch; actual scope updates, disposal and request cancellation remain zero. Signals are not suppressed or represented as absent.
20
-
21
- The installed SDK/runtime stays `0.2.0-rc.2` (official source `639ed015397290b3745d163aafe02ffee4aa3f84`). The separate latest official Desktop **source compatibility target** is `deepseek-ai/deepseek-harness` commit `5badb15009ae1756c3afe0ae0cef1faafc290ccc`, `dsh-v0.2.1-alpha.1`. Its shared PluginManager contracts retain `view: 'summary' | 'page'` and optional `form`; the Desktop carrier uses the shared Web Host, Host-issued cookie and `dsh-app://app` origin forwarding. This is source compatibility, not permission inferred from a loopback-looking URL. The actual invocation peer/operator, public bound host, Host writability and precommit owner/lifetime checks remain required.
22
-
23
- No official Desktop executable is installed in this acceptance environment. No Electron activation is claimed and no Web screenshot substitutes for it. No SDK upgrade, package/audit tooling installation, account/sign-in, imported browser state or private profile migration occurred. Native host typography/tokens were verified at 375/768/1280 and native dark/light colors; Lighthouse/React audit packages are unavailable, so no audit scores are claimed. Publication, frozen Linux artifact acceptance and authorized Desktop execution remain later gates.
24
-
25
- ### C0 storage and lifecycle contract (source, not C/D completion)
26
-
27
- The [native parity plan §3.3 and C0](../../docs/superpowers/plans/2026-10-07-dsmm-native-parity.md#33-settings--effective-state) governs the implemented foundation. Version remains 0.1.9. C's role graph/continuation and D's React Config pages/browser acceptance aren't completed by this checkpoint.
28
-
29
- `src/dsh-home.ts` resolves public `resolveDshHome` through `createRequire` rooted at the declared `dsh-skill-filesystem` peer. Explicit trusted `profileContext.home` wins over `DSH_HOME`, then the official `~/.dsh` default. The fixed `<resolvedDshHome>/plugins/dsmm` directory is DSMM's convention, not an official mandated plugin layout. Missing peer capability fails explicitly; no global developer SDK path or profile-dir-derived home is substituted.
30
-
31
- The global `config.json` is sparse JSON. Native active-entry/profile overrides use flat optional volatile transport via `DSMM_NATIVE_CONFIG_SCHEMA`; `DSMM_CONFIG_SCHEMA` remains the plain sparse public ABI. Full defaults and business validation are separate. Legacy raw flat input retains explicit values even when equal to defaults. Resolution is defaults → global → explicit native entry/profile → applied immutable named/session overlay. Plain objects merge recursively, arrays replace and unset removes only the current layer's key. Missing values inherit; unknown/prototype keys, non-JSON data and raw refs are rejected. Named overlays still reject roles/skills and startup-only fields.
32
-
33
- Startup awaits complete global/profile validation before consumer mount and freezes its snapshot; late install doesn't reread desired. New ordinary roots await latest valid desired deployment and the applied immutable overlay. Old roots and their future children retain the full captured snapshot/epoch. An old idle root's explicit profile switch replaces only its runtime overlay on its old deployment baseline. `getSettings(agent)` remains authoritative, and no-argument `getSettings()` is the validated runtime named default, not desired. `modeName`, `promptOrder`, standing presets/materialization and LSP remain startup-scoped. Role policy intersects startup substrate and original permissions; absent startup capability is restart-required. There is no automatic queue, remount or cancellation on save.
34
-
35
- `ProfileStore.fromCentral(home, profiledir, entryId)` shares central `profiles/` drafts/revisions while `.state/<sha256(canonical-profile-identity+actual-entry)>/` isolates default selections and session sidecars. All central writers share the documents lock. The old explicit `.../dsmm-profiles` public constructor is unchanged. If the current profile's exact old path exists, runtime compatibility is strictly read-only without locks/writes; full immutable pins and origin remain authoritative. Corruption refuses instead of using a central same-name draft. No reads create storage. Explicit non-destructive copy/import is fixture-verified only, not a production migration framework or completed private migration; auth and native sessionPersistence aren't moved.
36
-
37
- The fixed `dsmmConfig` Remote `describe`/`save` backend accepts exact edits, not file/root/entry arguments. Both require the native invocation peer to equal `connection.operator`, public current `webServer.host === '127.0.0.1'` and `settings.writable === true`. Unknown/remote carriers are unavailable, client `isLoopback` isn't trusted, and reverse proxies/tunnels aren't automatically safe. Lifetime and connection are fenced again before commit. This is only for local writable control operators, not a model tool or anonymous endpoint.
7
+ | Surface | Contract | Boundary |
8
+ | --- | --- | --- |
9
+ | Node.js | 22 or later | Required runtime |
10
+ | DSH SDK/component peers | `0.2.0-rc.2` | Current native integration target, not a future-version guarantee |
11
+ | Cordis / Schemastery | `~4.0.4` / `~3.18.4` | Declared package contracts |
12
+ | Native Web UI | Plugins item/bundle/row forms, Settings Profiles and Conversation controls | Actual Host identity and capabilities still required |
13
+ | Desktop source | Official `0.2.1-alpha.1` shared PluginManager/Web Host contracts | Source compatibility only, not executable/Electron activation |
14
+ | CLI/headless | Native deployment configuration and delegation tools | One-shot headless doesn't select Agent presets |
15
+ | TUI | Independent native deployment profile | Package installation doesn't prove every Web client control is exposed in TUI |
16
+ | Managed child runtime | Explicit cold `./subagent-runtime` composition | Not installed by the default bundle |
17
+ | DSMM-managed external LSP | Not enabled in this version; interfaces and original config retained | Automatic MCP mounting stays off even with `lsp.enabled:true`; DSMM settings UI hides LSP controls |
38
18
 
39
- Global writes use expected actual-byte SHA256 or absent CAS, cooperative locking, final revision recheck and temp-file rename. This doesn't promise a universal transaction against non-cooperating external editors. Global save never touches a native patch or invokes Loader patch/reload/dispose/cancel. Native profile save uses only volatile transport under native authorization/CAS. The layers have separate revisions and no cross-layer transaction. Invalid global edits block new admissions/writes, not old frozen Agents. See [settings/status](settings-status.md) and [profiles](profiles.md) for operational boundaries.
19
+ DSMM is the localized package/Core title; Deepwork names its optional module. Deepwork Profiles and `DW …` role labels don't rename package, Loader, command, role, provider or persistence IDs. Native metadata uses exported `locale/en.json` and `locale/zh.json`, not an invented manifest `displayName`.
40
20
 
41
- ### Stage B content checkpoint (2026-10-07; source/resources, not C/D acceptance)
21
+ The LSP restriction doesn't affect DSH's own LSP or independently configured MCP. The retained historical manual patch isn't a supported DSMM activation entry. Existing release checks still independently validate the retained LSP interface; they don't establish automatic integration availability. See [LSP boundary](lsp.md).
42
22
 
43
- The working content catalog now follows 11 OCMM base roles and 11 categories, with stable existing IDs and cross-cutting opt-in/default false. Fourteen skills share one configurable Agent-scoped metadata/lazy body inventory; debugging no longer bypasses the skill toggle. Complete existing source trees, including meaningful fixture/script/license resources, are mapped in `prompts/source/manifest.json`; the actual remove-ai-slops source is root `skills/remove-ai-slops`, with bounded non-mechanical cleanup adaptation. See [source sync](skill-sync.md) and [role content](agent-presets.md).
23
+ ## Stable configuration and admission
44
24
 
45
- Persistent persona/category scope and terminal policies remain when common Deepwork is explicitly off. Active common preserves the complete default workflow and selects applicable full family calibration from the actual model, subordinate to role authority. The tiny mode content seam reuses the existing effective-role resolver so inherited parent presets do not make a child an Opus orchestrator. It does not change routing, admission, permission or lifecycle. Generated presets no longer consume `@dsmm/dsmm/preset-skills`. Version 0.1.9 retains that formal public compatibility entry and renderer parameter positions; the compatibility apply hook does not register skills, while the main entry's real `registerAgentSkills` remains in the same module with unchanged lifecycle. No public-breaking deletion or new wrapper is made.
25
+ Core settings remain available without a session and with Deepwork cold-off. Native Global and current-profile saves are independent: Global writes only central `config.json`; the exact native profile form writes only its own patch. Invalid or dirty input remains visible after refusal. There is no Save-all, second configuration store or implicit restart.
46
26
 
47
- Frontend's fixed-pin brand/taste/ui-ux-db library is explicitly materialized and verified by exact source paths/content and real license notices, including same-pin Python data dependencies. Third-party bodies remain gitignored but must pack; default build/check is offline and fails closed on missing/drifted resources. A new checkout/CI must first run the separately explicit `sync:frontend` command described in [source sync](skill-sync.md). This source/library result does not prove Stage C execution enforcement/continuation/recovery/LSP/admission or Stage D desired/volatile native Config UI. Historical release and installed-host evidence below remains immutable; none is evidence for this checkpoint.
27
+ The sparse resolution order is defaults → global deployment → explicit native entry/profile → admitted immutable named overlay. Explicit same-default values remain overrides, objects merge, arrays replace, and unset removes only its own layer's key. Runtime profiles may narrow `roles` and select routing, topology and visible-output locale, but can't grant deployment-only route-override permission, mount services, change accounts or replace persistence. Required-role rules don't create missing startup capability. See [profiles](profiles.md) and [settings/status](settings-status.md).
48
28
 
49
- Stage E cold-source preparation uses explicit `node dsmm/scripts/materialize-frontend.mjs --sync` before any build-bearing DSMM command, followed by offline validation of 118 frontend resources, 158 source records and 47 role assets. Fixed blob/license bytes must survive checkout/archive conversion; Windows exact-source QA uses command-local `git -c core.autocrlf=false archive`, without changing Git configuration or relaxing the unowned-resource guard. A real script-free 459-file npm tarball and unpacked rc.2 Loader/Core RPC proof are development distribution evidence, not clean Linux dependency installation, final frozen-release acceptance or actual Electron/plugin installation. The unchanged Root publisher still expects historical Deepwork/twelve-role metadata and requires separate authorized control/proof compatibility before release. See [current source readiness and historical boundaries](releasing.md).
29
+ Draft, saved revision, future-default pin and current admission are separate states. Save activates neither scope. Future-default changes leave existing Agents, including blank ones, unchanged. Current-session Apply requires an exact idle ordinary root, selection CAS and admission epoch; it commits only that root's immutable overlay on its existing deployment baseline. Existing children retain their original captures, and later children inherit the new parent admission. Busy or stale targets aren't queued.
50
30
 
51
- ### Stage A source contract (2026-10-07; not a publication/host-install claim)
31
+ Global CAS uses actual-byte revision, cooperative locking, final recheck and atomic replacement. Native profile saves have separate native authorization/CAS, not a cross-layer transaction. These safeguards don't promise a universal transaction against non-cooperating external editors. Configuration RPC requires native invocation peer equal to the operator, public loopback bind, writable Host and owner/lifetime rechecks. Remote or unknown carriers refuse; a client `isLoopback` claim, tunnel or loopback-looking URL isn't authority.
52
32
 
53
- The working source now uses rc.2 `SystemPrompt.AssembleContext.scope/signal` and validates exact live Agent identity; the optional dsh-agent assembly augmentation is not required. Common prompt text never contains bundled skill bodies. Ordinary presets are off unless an effective default or explicit intent enables them; DW role presets default on, but a durable explicit off always wins. Persona, read-only and Git/host permission boundaries remain independent.
33
+ Cold resume creates a new admission using valid deployment and the exact committed sidecar, or the scoped future default when no sidecar exists. Corrupt/unavailable sidecars don't silently fall back. Clear/compact doesn't transfer choices through inferred lineage. An exact old `<profileContext.dir>/dsmm-profiles` library remains strictly read-only with its original immutable pins; central same-name documents aren't substitutes. Nothing is automatically copied or migrated.
54
34
 
55
- The native skill provider is Agent-scoped, disposable and lazy for seven core skills plus debugging. It queries only the parent/global metadata snapshot, yields to every non-DSMM ancestor winner regardless of rank/source, and publishes nothing on incomplete observations. Native revision invalidation, cancellation and generation/parent fencing prevent stale body delivery. No standing preset/global private-mode provider or prompt-body fallback is retained. Missing native registry capability is a diagnostic/refusal, not fictitious availability.
35
+ ## Models, roles and native controls
56
36
 
57
- Scope APIs are resolved through the existing declared `dsh-agent-preset-registry` peer graph; skill types come through the declared `dsh-skill-filesystem` contract. No global SDK path or new dependency is embedded. B has refreshed generated assets and removed their `preset-skills` row, but preserves the published export's no-op apply compatibility hook and the same module's actual main-entry Agent registration function.
37
+ Ordinary roots preserve native provider/model/exact effort across activation, Save, profile Apply, later turns and cold resume. **Use profile model** is a separate explicit native action using the current admitted immutable revision. A newer manual selection wins. Locale is captured visible-output preference, subordinate to an explicit user language request, not a change to internal reasoning or technical identifiers.
58
38
 
59
- At the A checkpoint, deployment configuration used the main plugin's native Loader Config/entry, not `settings.register`; C0 now adds the separate sparse global base described above. Runtime profiles retain immutable admissions and idle/CAS persistence. Keyless contract tests use real Cordis Loader, native preset/AgentLoop/skill/tool services and a local LLM adapter; they don't prove plugin Config UI, authenticated Desktop, full B/C/D parity or publication.
39
+ Eligible child targets use normal by default; low/high/max require explicit exact-target levels. Unsupported effort refuses without downgrade. Per-role and parameterized topologies preserve canonical target filters, definition/provider identity, role matrix, depth and permission checks at execution. Disabled roles remain diagnosable and routing-editable without becoming callable. Orchestrator isn't a child target. `modelSelectionSettings:false` remains unchanged. See [model routing](model-routing.md).
60
40
 
61
- The installed SDK/CLI migration target remains `@deepseek-ai/dsh@0.2.0-rc.2`, the official npm latest/next version resolved on 2026-10-03. `0.2.1-alpha.1` is only the separately fixed Desktop source target described above, not authorization to upgrade SDK dependencies or claim runtime acceptance. The CLI's actual version and installed package identity must both match the pinned SDK target.
41
+ Native child capture records original role, invocation route, locale and authority. Descendants intersect parent allow-lists and accumulate deny-lists. A later parent profile doesn't rewrite child history, lift startup ceilings or recover missing capture. Current exact-parent authority is checked again for delivery, so a retained child capture isn't permission to bypass a newer cutoff. Route comparison uses initial invocation capture and that child's own request header; absent evidence stays unknown.
62
42
 
63
- DSH 0.1.1-rc.2 was the historical baseline; it is not the authority for this updated working tree. Installation ranges are not proof of compatibility with future releases.
43
+ With background explicitly enabled and native jobs available, a published running foreground one-shot can transfer to background as the **same native run**. This doesn't replay a prompt, create a second child or revive settled work. Run receipts distinguish background, already-background, already-settled and cancelled outcomes.
64
44
 
65
- The installation contracts include `@deepseek-ai/cordis@~4.0.4`, `@deepseek-ai/schemastery@~3.18.4`, and the package's declared DSH component peers pinned to `0.2.0-rc.2`. Role identity additionally consumes the native `@deepseek-ai/dsh-subagent` public contract; a child lifecycle or descriptor is not reimplemented.
45
+ Only an admitted direct continuable child with ready delivery fencing can accept Queue/Steer or interrupt. Descendant inspection is read-only and doesn't grant non-direct control. Idle/cold continuation keeps the durable child ID. Accepted inbox delivery isn't completion; interrupt acknowledgment isn't completion or proof queued work was removed. Unknown send outcomes retain the draft and disable automatic resend, including after refresh/reconnection. See [Agent presets and child control](agent-presets.md).
66
46
 
67
- ## Compatibility matrix
47
+ `startup-lock` is the default role strategy; bounded `rate-limit-fallback` is explicit. Every retry or switch requires correlated positive no-output evidence. Partial text, reasoning or tool fragments forbid replay, even on the same route. Process-local retry state isn't revived from old headers and generic failures don't authorize hopping. Native lifecycle, model authentication and cancellation stay Host-owned. See [runtime recovery](runtime-recovery.md).
68
48
 
69
- | Surface | Fixed version or boundary | Evidence level |
70
- | --- | --- | --- |
71
- | Node.js | `>=22` | required; final artifact check pending |
72
- | DSH | `0.2.0-rc.2` | pinned authority; final native acceptance required |
73
- | Cordis | `~4.0.4` | supported by contract |
74
- | DSH component peers | `0.2.0-rc.2` | supported by contract |
75
- | Linux container | `Node 22 Bookworm` | independent frozen-artifact gate required |
76
- | Windows Desktop | official `0.2.1-alpha.1` fixed source target | shared contract compatibility only; executable absent, Electron unverified |
77
- | macOS | `Node >=22` | supported by contract |
78
- | Native Settings | additive Deepwork Profiles client and authenticated RPC | compiled UI/RPC/storage and actual Desktop are separate proofs |
79
- | Headless | deployment config and native role tools | no Agent preset selection in the one-shot runner |
80
- | TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.9 menu proof is Web/Desktop only |
81
- | LSP/MCP | `external ocmm-lsp mcp` | optional |
82
- | Runtime recovery | `process-local` | optional |
83
- | Per-role model/effort/fallback policy | native request, subagent and descriptor seams | opt-in; exact configured capability required |
84
- | C0 deployment layers | sparse central global base and explicit native entry/profile transport | backend storage/capture plus D real native Web form/CAS proof |
85
- | Native Plugins | rc.2 item/bundle/row public slots and Host forms | real keyless Web acceptance; independent Global/profile saves and explicit restart |
86
- | Runtime profiles | central shared drafts/revisions, scoped default/sidecars; strict read-only legacy origin | new-root defaults; explicit idle overlay epochs; origin-pinned cold resume |
87
- | Durable DSMM metadata | deployment-only `sessionPersistence` on main DSMM entry | explicit startup integration; frozen-artifact/production acceptance pending |
88
- | DeepSeek V4 Pro calibration | `deepseek-official/deepseek-v4-pro` | optional |
89
- | DeepSeek V41 Flash calibration | `native DeepSeek providers/deepseek-flash` | optional |
49
+ ## Explicit managed runtime composition
90
50
 
91
- ## Command and runtime boundaries
51
+ The default `cordis.patch.yml` is unchanged and adds only the main DSMM entry. It doesn't replace the stock `subagents` service. Managed delivery needs the explicit cold overlay [patches/subagent-runtime.yml](../patches/subagent-runtime.yml) and an independent restart.
92
52
 
93
- `/deepwork` and `/dsmm-status` are host-adapter commands, not headless task-text commands. The current native client provides Plugins → DSMM and the separate Settings → Deepwork Profiles without replacing native navigation, provider/account/model UI, or the Agent preset selector. There are no model-visible profile-management tools or anonymous file endpoints.
53
+ The patch targets stock ID `subagent` with name `@deepseek-ai/dsh-subagent`, disables that row, adds `@dsmm/dsmm/subagent-runtime`, and makes the main DSMM entry depend on `subagents`. Native `name` asserts the target identity; it isn't a rename. Check the actual Host composition before applying it. Preserve spawn/fork/model/Gateway services in the same scope and copy explicit stock capacity/depth configuration into the new runtime row. Keep one active runtime; don't hot-shadow or replace a running stock service.
94
54
 
95
- The 0.1.9 Web/Desktop header contributes one icon-only native profile menu in sessionless, blank and active views, yielding to native navigation ownership. One profile list handles normal profile switching that keeps the current model and invokes no native model selection. One `@use-model` **Use profile model** action reads the current admitted immutable profile model without reapplying a later saved revision; successful profile CAS remains authoritative for profile changes, not a prerequisite repeated by this independent model action. It retains native-default persistence like the Models tab and existing manual-model-intent race fencing. Disabled mutations leave the menu inspectable and refreshable. Successes are accessible live announcements only, not visible success prose; short sanitized refusal details use allowlisted codes/fields and refresh/retry guidance, never raw messages or paths. No verbose normal-menu descriptions or duplicate profile-model list remains. These are required new-menu contracts, not a claim of authenticated Desktop acceptance; the historical 0.1.6 SELECT and 0.1.7 menu proof contracts remain unchanged.
55
+ The public `./subagent-runtime` export maps to `lib/runtime-integration.js`. Its default export is `subagentRuntimePlugin`, the Host-owned startup entry that constructs the public DSMM runtime subclass. A separately constructed class isn't proof of Host admission ownership. Runtime projection separates `binding: stock | dsmm | unavailable`, `deliveryFenceReady` and `restartRequired`. Missing native history, providers or admission fencing can't be replaced by an availability flag. Core stays usable, while unavailable controls return a refusal rather than a successful-looking receipt.
96
56
 
97
- The menu's **Deepwork** toggle controls common workflow/skill visibility for ordinary and DW presets. Official minimal mode defaults off unless saved explicit `deepwork/mode` intent exists; a same-default choice still persists that intent, which survives profile changes and reopen. DW presets default on but are not locked; explicit off retains their persona/permissions. Sessionless/busy/unavailable mutations fail closed; mode never creates a session or changes native preset, model or global runtime default.
57
+ ## Experimental legacy read
98
58
 
99
- Headless uses native profile configuration plus DSMM's sparse global base; `--dump-config` shows native Loader composition, not the complete global-aware DSMM effective snapshot. Real task execution requires a separately configured provider and effective `defaultActive: true`. Old `$DSH_HOME/settings.yaml` namespaces require explicit handling; DSMM doesn't mutate that file.
59
+ Old children without complete original capture expose conservative evidence, `provenFields` and per-field limitations. Neither the current parent's settings nor a role label proves their old configuration. Legacy child evidence and read-only legacy profile storage are separate mechanisms.
100
60
 
101
- The old directory discovery `roots/includeUserRoot` no longer configures the native preset registry. DSMM registers only enabled `primary`/`all` roots: Orchestrator, Builder and Planner. Disabled Builder is absent from both selector and child tools. The other 19 canonical roles/categories remain auxiliary delegation items; all 22 static `agent-presets/` directories are inspection templates, not scan roots (historically nine auxiliary roles/twelve templates). Cross-cutting defaults disabled. Catalog/template presence does not prove C-stage execution availability. The loading correction is native `persona.prefix` plus instructions `maxBytes: 65536`.
61
+ The legacy read adapter is **default off**. The consumed programmatic interface is `DsmmHostStartupOptions.experimentalLegacyRead`, passed to the main package's `createDsmmHostPlugin(startup)` or named `apply(ctx, config, hostStartup)` third argument. The old `legacyRead` option isn't consumed. It isn't a deployment/profile YAML field or an RPC switch.
102
62
 
103
- DSH's headless one-shot runner does not select or compose Agent presets: headless role delegation must use native role tools, not a registry default. Native preset selection must be tested through a preset-capable host with a blank session. The managed preset-directory materializer remains an opt-in export facility, not discovery evidence.
63
+ Cold composition requires actual closed Host callbacks for composition capture, read bindings, call context, audit/retirement fault reporting and revocation. The constructor checks those collaborators; serializable assertions aren't a substitute for real Host operation/approval/audit ownership. Export resolution alone doesn't certify that a carrier supplies them.
104
64
 
105
- Trusted live, owned, zero-prefix native one-shot children preserve supported explicit provider/model/effort overrides through final request headers. The role primary supplies alias defaults; it is not an unconditional child override. Ordinary roots preserve their native initial and explicit provider/model/exact effort rather than profile-primary resolution, including later turns, profile reapply and cold resume. Delegated-child policies retain their separate ownership and request-preflight restrictions. `modelSelectionSettings:false` and native tool/permission/depth/cancellation limits are unchanged; this adds no model-visible model-selection authority. See [model routing](model-routing.md).
65
+ Cross-process **known-retained-owner cleanup**, **B await/pre-drain ordering** and **published replay** aren't fully verified. This adapter isn't a stable general legacy-execution or cross-process guarantee. An unproven capability remains unavailable, never supplied by a fabricated attestation, inferred approval or permissive fallback. Keep it off for the stable captured-child path; don't weaken existing Core saves, CAS, model intent or permission cutoffs to accommodate it.
106
66
 
107
67
  ## Session persistence compatibility
108
68
 
109
- DSH 0.2.0-rc.2's native `Session.append` cannot attach the `ignorable` envelope marker required for stock readers to skip unknown custom event types. DSMM's source update provides a public persistence Service companion that delegates to the native JSONL provider in a separate Context instead of patching the vendor reader or redefining its known event vocabulary. The `@dsmm/dsmm/session-persistence` export is a **library building block**, not a separate Loader package entry alongside the main client-bearing package. Multiple active Loader sources from this package can conflict in native client registration.
69
+ DSH `0.2.0-rc.2`'s stock `Session.append` can't attach the `ignorable` envelope marker needed for unknown custom events. DSMM's public companion delegates to native JSONL in a separate Context and marks only validated `deepwork/mode` and `dsmm/role-policy` records. DSMM-aware readers retain them; stock readers can skip the marked records. Other event types and malformed metadata aren't broadly declared safe.
110
70
 
111
- The companion validates and clones only `deepwork/mode` and `dsmm/role-policy` records with their exact supported envelope/payload shapes, adding `ignorable: true` for persistence. Other event types are unchanged; malformed DSMM metadata is rejected rather than broadly declared safe. DSMM-aware readers retain the metadata while stock readers can skip these two marked records. The main metadata guard refuses a DSMM custom append when an installed durable persistence provider is incompatible; an ephemeral Host with no persistence is allowed.
71
+ Use the **main** `@dsmm/dsmm` entry's deployment-only `sessionPersistence`. The `./session-persistence` export is a library building block, not a second Loader entry. Set the unchanged effective absolute root and effective `zstd` or `none` compression, disable the exact existing native provider at startup, and wait for the companion to become ready. No root is guessed, migrated or hot-replaced. Incompatible durable providers block custom DSMM appends; ephemeral Hosts without persistence remain allowed.
112
72
 
113
- The approved source integration uses only the main `@dsmm/dsmm` Loader entry with deployment-only `config.sessionPersistence`. Its `root` must be the unchanged **effective absolute root** of the existing native JSONL provider; its `compression` preserves the effective `zstd` or `none` choice. DSMM mounts the class internally and waits for readiness before runtime hooks. Installation/default bundles remain unchanged until an operator explicitly opts in; no custom root is guessed or silently migrated. Disable the exact existing provider at startup first. If a persistence service is already active, DSMM refuses hot replacement.
114
-
115
- For the proven stock base Web/headless/Desktop bundle row, the exact target is ID `session-persistence-jsonl` with name `@deepseek-ai/dsh-session-persistence-jsonl`. This is a **conceptual partial patch**, not a ready-to-copy replacement: substitute the actual effective root/compression and include every existing DSMM config value under `config` before use.
73
+ For a composition using the stock row below, this is a **partial template**, not a ready-to-copy replacement:
116
74
 
117
75
  ```yaml
118
76
  - id: session-persistence-jsonl
@@ -121,40 +79,24 @@ For the proven stock base Web/headless/Desktop bundle row, the exact target is I
121
79
  - id: dsmm
122
80
  name: '@dsmm/dsmm'
123
81
  config:
124
- # Retain ALL existing DSMM config values here.
82
+ # Retain every existing DSMM config value here.
125
83
  sessionPersistence:
126
84
  root: '<unchanged-effective-absolute-root>'
127
85
  compression: '<unchanged-effective-zstd-or-none>'
128
86
  ```
129
87
 
130
- Native `name` is a target identity assertion, **not a rename**. Native patch `config` replaces the whole config object; adding only the field above would erase prior DSMM settings. Keep one active main DSMM entry, preserve unrelated Loader rows and do not add a second `./session-persistence` entry. Minimal SDK compositions may use another persistence row ID such as `sessions`, or no provider; those variants are not automatically covered by the stock patch and require exact native composition verification.
131
-
132
- This startup contract is not a completed final Docker or global-release result. The frozen-artifact gate must still prove the binding, marked durable writes and native/stock read behavior before authorized rollout. Do not weaken the known-vocabulary guard or treat an export resolving as proof that the service owns durable persistence.
133
-
134
- This prevents future unsafe DSMM writes but does not repair existing unmarked logs. Any repair needs explicit authorization, a targeted recoverable backup, validation and metadata-only changes. There is no automatic log rewriting, history deletion or general unknown-event bypass. Preserve existing logs and report a failed stock-reader restore instead of silently resetting the session.
135
-
136
- ## Upgrade limits before global rollout
137
-
138
- DSMM runtime profiles are independent central JSONC drafts, not additional DSH deployment profiles. An existing current-profile legacy library retains its strict read-only origin and pins. Named overlays can't change roles/skills, preset composition, LSP, provider/account/install or `sessionPersistence`. Deployment roles/skills policy can be captured for new ordinary roots only within startup substrate; standing registrations and startup-only consumers require restart. Saving a draft never activates it or rewrites deployment configuration. Apply pins immutable bytes and updates only the scoped selection pointer. See [profiles](profiles.md).
139
-
140
- Every existing live Agent, **including a blank Agent**, retains its admitted settings when desired deployment is saved or the scoped named default is applied/reset. Explicit current-session selection is separate: native idle maintenance and CAS/epoch checks commit only that ordinary root's sidecar before publishing its immutable admission on the old deployment baseline. Existing children keep their old epoch; later genuinely owned children inherit the new one. Cold resume uses the origin-pinned revision/baseline with current valid desired deployment in a new admission, not the old process's memory snapshot. Sessions without a sidecar keep scoped-global-current behavior. Corrupt/unavailable sidecars never silently fall back; native clear/compact doesn't transfer choices by inferred lineage.
141
-
142
- Old profile documents remain loadable, but omitted strategy now means safer `startup-lock`: a legacy generic chain no longer causes later generic automatic hopping. `runtimeRecovery.enabled` remains parse-compatible and controls legacy continuation concerns, not the two role strategies. Explicitly opt in per role to bounded `rate-limit-fallback` where desired. Every DSMM retry, including same-route retry, requires correlated native no-output evidence; partial text, reasoning or tool fragments refuse terminally without invoking a competing always-retry owner. See [runtime recovery](runtime-recovery.md).
143
-
144
- Older sessions directly selected into now-auxiliary roles can fail native cold resume because their root preset ID is no longer registered. This is a known native compatibility limitation, not permission to silently replace the persona, reset a session, or erase its history. Disclose it before rollout and preserve historical data; if restoring such sessions is required, stop and obtain direction rather than substituting a root. Package rollback does not authorize history or credential changes.
145
-
146
- Global/system Desktop migration is the **third phase**: independent frozen-artifact Docker acceptance first, verified immutable npm/GitHub publication second, and only then authorized Desktop package/configuration changes. Preserve unrelated deployment rows, account/provider catalog, role policies (including disabled Builder), active mode, and UI preferences. Use the installation-owned carrier with the app fully quit; neither standalone CLI nor a renamed/copied Desktop profile is a supported substitute.
88
+ Native patch `config` replaces the whole object. Preserve all existing settings and unrelated rows; another provider ID or a provider-free composition requires its own exact check. Keep one main DSMM Loader source to avoid conflicting native client registrations. Binding, marked durable writes and native/stock read behavior need artifact verification; an export existing isn't proof of persistence ownership.
147
89
 
148
- ## Evidence limits
90
+ This prevents unsafe future writes but doesn't repair existing unmarked logs. Any metadata-only repair needs separate authorization, a recoverable targeted backup and validation. Don't bypass unknown-event guards, delete history or silently reset a failed restore.
149
91
 
150
- The Linux packed-lifecycle smoke pins pnpm `12.8.1` and retains DSH's native `nodeLinker: hoisted` profile layout. On Linux Node 22, pnpm `11.9.0` with that layout and DSMM's auto-installed peer graph can print `Done` after removal without exiting; the same failure was reproduced directly without DSH, while `12.8.1` returned normally. A printed `Done` is not uninstall completion. This does not claim the same failure on Windows or modify a user's existing package manager or profile. The smoke enforces a bounded fail-closed timeout and checks actual remove/reinstall exits and profile state.
92
+ ## Installing or upgrading a real Host
151
93
 
152
- The matrix separates required 0.1.9 evidence from historical CLI/configuration, source-contract and credentialed model evidence. A version string or unit test alone establishes neither native preset health nor UI/runtime behavior. Windows, Linux, Web, and macOS evidence are not interchangeable. The already verified official CLI/TUI 0.1.6 installation is not unfinished rollout work and must not be repeated as part of the new Desktop upgrade.
94
+ Use a checked local candidate artifact for evaluation, following the [isolated example](../README.md#use-a-local-artifact). Installing registry `0.2.0` isn't a way to obtain these new source interfaces. Publication follows separate [release controls](releasing.md); no new npm publication or automatic Desktop installation is claimed here.
153
95
 
154
- The independent Docker gate installs the exact frozen tarball into a fresh pinned native runtime/home and verifies root selection, actual read-only child denials, aliased-parent route preflight, runtime snapshot behavior, and the **same compiled DSMM UI** using native client/slots/RPC and real profile storage. A supported composition-owned in-process operator/Gateway carrier and test-owned browser bridge provide no-credential native component/RPC/storage proof. No user login, copied cookie, launcher token, browser state, Desktop data, account records or authentication bypass is permitted. This proof is not authenticated Desktop/Web-launch proof; actual Desktop mounting and authorized operations remain the later check.
96
+ Desktop and CLI/TUI use independent native deployment profiles. A separately authorized real installation must use the correct installation-owned carrier, preserve unrelated Loader rows, provider/account catalogs, role policies and UI preferences, and follow explicit startup requirements. Desktop must be fully quit for package handling. Neither a standalone CLI nor a renamed/copied Desktop profile proves supported Desktop activation. Confirm native inventory and actual UI only with authorization; don't use anonymous RPC as a shortcut.
155
97
 
156
- LSP/MCP and runtime recovery are disabled by default. V4 Pro calibration remains limited to the exact `deepseek-official/deepseek-v4-pro` route. V41 Flash calibration recognizes only `deepseek-official/deepseek-flash` and `deepseek-account/deepseek-flash`, whose native DSH catalog label is `DeepSeek-V41-Flash`; similarly named third-party models do not match.
98
+ Old `deepseekV4ProMaxReasoningPresets` and `deepseekFlashMaxReasoningPresets` fields fail with `deprecated-field`. Don't silently rewrite them; explicit levels need a deliberate configuration edit. Older sessions rooted directly in now-auxiliary roles can fail native cold resume because the root preset isn't registered. Preserve their history and obtain direction rather than substituting another persona. Rollback doesn't authorize credential or history changes.
157
99
 
158
- A separately authorized credentialed smoke must prove the actual selected request route, DSMM prompt, successful tools, and subsequent model response without substituting another model. Account and API-key authentication are distinct; an AAPI key is not assumed valid for the official endpoint. Paid chat cannot replace the no-credential Docker/UI gate, and no publication, browser/UI, untested OS, or future-release claim follows from it.
100
+ No package operation here authorizes changing real Desktop/TUI configuration, accounts, credentials or history. Do not copy credentials for keyless artifact checks. Platform, packed-runtime, Web and Electron evidence aren't interchangeable; local source capability isn't a release-completion or installed-host certificate.
159
101
 
160
- Desktop package management uses the installation-owned `dsh.cmd` only while the app is fully quit. Even that carrier cannot boot or dump the reserved Desktop profile. Installation/manifest checks and isolated native model tests do not prove actual Electron-host activation: use an authorized native inventory or the desktop UI, never an anonymous RPC workaround.
102
+ *Author's note: For a DSH operator upgrading an existing installation; check the exact artifact and Host composition, then authorize only the intended carrier and data-preserving changes.*
@@ -0,0 +1,19 @@
1
+ # 原生审批期间切换准入配置:已接受的暂缓风险
2
+
3
+ **状态:风险已接受,暂缓修复;不代表功能已修复。** 适用基线为 DSH `0.2.0-rc.2`,仅豁免下述场景的阶段性验收,不豁免其他测试失败或发布检查。
4
+
5
+ ## 触发条件与影响
6
+
7
+ DSMM one-shot 委托等待原生审批期间,父 Agent 成功切换 profile 并发布新的 admission epoch;随后用户点击 Allow,DSMM 仍可能因准入代次不一致返回 `UNAUTHORIZED`。
8
+
9
+ 实际 SDK 集成测试已复现:Agent、owner、工具定义和 provider 注册保持不变,批准发生一次,但子任务模型 HTTP 请求尚未发出。该问题是条件触发的可用性及审批语义缺陷,并非所有审批必然失败。暂缓不改变运行时权限,不引入跨调用授权,也不放宽取消、归属或请求撤销保护。
10
+
11
+ 临时使用时避免在审批等待期间切换父 Agent 的 profile。需要切换时,先取消待审批调用,再按当前配置重新发起委托;不要无条件重跑整个父任务。
12
+
13
+ ## 保留的验证与修复条件
14
+
15
+ 完整回归保留在 `test/native-core-review-regressions.test.mjs`,默认以明确原因跳过;设置 `DSMM_TEST_DEFERRED_APPROVAL=1` 可重新执行。测试跳过不能计作该场景通过。
16
+
17
+ 当前 one-shot 接口不公开可用于准确关联初始输入与本次启动的消息身份或 dispatch 回执。后续 DSH 版本若提供此类公开接口,或其他可验证的等效机制,应重新评估 DSMM 内部修复,优先不修改外部代码。
18
+
19
+ 解除暂缓须验证:原调用在准入更新后获准并完成;采用原始调用对应的配置;后台延迟执行仍能准确关联;其他输入和后续调用不能继承豁免;取消、owner/realm、工具及 provider 身份、既有请求撤销和历史子 Agent 边界均保持有效。升级、安装、修改外部 SDK 或发布仍需单独授权。
package/docs/design.md CHANGED
@@ -47,7 +47,7 @@ uninstalled/unverified here. Web screenshots are not Desktop acceptance.
47
47
 
48
48
  Build `dsmm` as a dsh-native subtree project that brings ocmm's deepwork workflow, role prompts, skills, model calibration, and safety conventions to DeepSeek Harness without globally enabling them for every session.
49
49
 
50
- The first deliverable is an MVP dsh bundle that installs into a profile, registers a `deepwork` mode through dsmm's own Host plugin, and makes the mode's behavior configurable. Later versions add full role/category coverage, guard hooks, MCP/LSP integration, model routing, and runtime recovery.
50
+ The first deliverable is an MVP dsh bundle that installs into a profile, registers a `deepwork` mode through dsmm's own Host plugin, and makes the mode's behavior configurable. Later versions add full role/category coverage, guard hooks, model routing, and runtime recovery. DSMM-managed external LSP isn't enabled in this version: the implementation, interfaces and original configuration remain, automatic MCP mounting stays off even with `lsp.enabled:true`, and DSMM's settings UI hides LSP controls. This doesn't affect DSH's own LSP or independently configured MCP. The retained manual patch isn't a supported DSMM activation entry; no LSP delivery is scheduled here.
51
51
 
52
52
  ## Non-goals
53
53
 
@@ -245,7 +245,7 @@ Every dsmm feature should have a clear control surface:
245
245
  | workflow skills | on for MVP set | settings |
246
246
  | role presets | on when dsh agent presets available | composition config |
247
247
  | safety guards | staged, mostly off until implemented | settings |
248
- | MCP/LSP | off until v0.5 | composition config + settings |
248
+ | DSMM-managed external LSP | always off in this version | original configuration retained; settings UI hidden; no activation entry |
249
249
 
250
250
  ## Docker debugging strategy
251
251
 
package/docs/lsp.md CHANGED
@@ -1,14 +1,14 @@
1
- # dsmm LSP MCP Integration
1
+ # DSMM LSP boundary
2
2
 
3
- dsmm keeps LSP/MCP disabled by default. The default `cordis.patch.yml` installs only the dsmm prompt, skill, guard, and preset behavior; it does not add an MCP client row.
3
+ This version doesn't enable DSMM-managed external LSP. The integration implementation, public interfaces and original `lsp` configuration are retained, but automatic MCP mounting stays off even when stored configuration contains `lsp.enabled:true`. Saving settings, enabling Deepwork or restarting the Host doesn't provide an activation path. DSMM's settings UI hides LSP controls.
4
4
 
5
- Enable DSMM-managed LSP with explicit `lsp.enabled:true` in the global/native deployment layer. Startup resolves the already-installed `@deepseek-ai/dsh-mcp-client` public package from trusted `profileContext.installAnchor`, mounts its namespace plugin through Cordis and awaits initial tool synchronization. No private Loader import, persisted extra row, home/directory guess, hardcoded SDK path or installation is involved. Missing anchor/package/tools report sanitized unavailable state; `failOnStartupError:true` fails startup. No fake successful tool is registered.
5
+ The default `cordis.patch.yml` doesn't add an MCP client row. This restriction applies only to DSMM's automatic integration: it doesn't disable DSH's own LSP services or an MCP server independently configured by the operator. DSMM doesn't download servers or native binaries.
6
6
 
7
- The separate opt-in patch at `patches/ocmm-lsp-mcp.example.cordis.patch.yml` remains a manual native-host alternative. Do not enable both with the same `serverName`: the native bridge owns namespace uniqueness. The default `cordis.patch.yml` remains unchanged and LSP is **disabled by default**.
7
+ ## Retained manual example
8
8
 
9
- ## dsh MCP patch settings
9
+ The historical [manual patch](../patches/ocmm-lsp-mcp.example.cordis.patch.yml) remains available as a native-host configuration reference, not a supported DSMM activation entry for this version. Independently managed MCP composition remains the operator's responsibility, including executable availability, namespace uniqueness and native lifecycle ownership.
10
10
 
11
- The example patch uses these LSP/MCP settings:
11
+ The retained example describes:
12
12
 
13
13
  - `serverName: dsmm_lsp`
14
14
  - `command: ocmm-lsp`
@@ -17,11 +17,9 @@ The example patch uses these LSP/MCP settings:
17
17
  - `failOnStartupError: true`
18
18
  - `toolCallTimeoutMs: 60000`
19
19
 
20
- If `ocmm-lsp` is not on `PATH`, explicitly configure the already-installed executable/wrapper. DSMM never downloads a server or native binary. LSP mounting uses frozen startup settings: desired save/new admission cannot start/stop/reconcile MCP; differences are restart-required. Actual scope teardown remains native-owned and closes the connection/process and unregisters its tool generation.
20
+ ## Retained tool interface
21
21
 
22
- ## Tools exposed to dsh
23
-
24
- With `serverName: dsmm_lsp`, the dsh MCP client exposes these public tool names to the model:
22
+ An independently mounted native MCP client using `serverName: dsmm_lsp` uses the following tool names. This inventory describes the retained interface, not tools automatically available from DSMM in this version:
25
23
 
26
24
  - `mcp__dsmm_lsp__status`
27
25
  - `mcp__dsmm_lsp__diagnostics`
@@ -35,16 +33,8 @@ With `serverName: dsmm_lsp`, the dsh MCP client exposes these public tool names
35
33
 
36
34
  `format` applies the language server's document edits to the source file atomically. The debug adapter protocol (DAP) remains a separate debugging surface and is not an MCP tool.
37
35
 
38
- Read-only roles permit status/diagnostics/navigation/symbol lookup and prepare-rename, but not rename/format. Exact Agent/definition/realm guards enforce this independently of common/helper toggles. `lspRuntime` is a safe status projection containing state, fixed diagnostic code and tool names, never paths/arguments/environment values. Bridge-ready is not proof that a language server is installed or capable: native diagnostics must report actual availability/failure.
39
-
40
- The keyless native test mounts the installed `ocmm-lsp` through real MCP, checks all nine actual names including symbol-related, calls status, exercises cancellation/read-only rejection, confirms desired off does not remount, and awaits owned process exit/tool withdrawal. rc.2's auto protocol negotiation may close an initial stdio probe and start the negotiated transport; this is native-equivalent, not multiple simultaneous established servers or a DSMM retry scheduler.
41
-
42
- ## Verification
43
-
44
- The Windows native cold-query proof uses the unchanged test and a byte-identical, already-installed executable copied into a run-owned temporary fixture. Its first empty-cache request returns one definition and two references; no warm-up, retry, request rewriting or opaque-target parsing is involved. This is isolated bridge verification, not a production relocation policy.
45
-
46
- The original workspace executable entry still fails in this environment: an owned managed child can read its marker but receives `EPERM` when creating an owned log. The same executable bytes at the temporary entry complete the native query. The underlying protection/permission mechanism has not been identified; this is not proof of a URI or compilation defect, and the default entry has not been repaired. DSMM does not copy binaries persistently, install servers or change system protection/permissions to bypass that restriction. Report actual server failure rather than treating tool discovery or bridge-ready as a successful symbol query.
36
+ DSMM's read-only role restrictions don't grant rename or format permission. The retained `lspRuntime` status interface reports bounded state, diagnostic codes and tool names, not executable paths, arguments or environment values. Tool discovery alone doesn't prove language-server availability or a successful symbol query.
47
37
 
48
- Direct MCP verification should start `ocmm-lsp mcp`, send a JSON-RPC `tools/list` request, and assert that the nine raw MCP tools are present: `status`, `diagnostics`, `goto_definition`, `find_references`, `find_symbol_related`, `symbols`, `prepare_rename`, `rename`, and `format`. It should call `diagnostics` and `format` against a temporary LSP fixture, then read back the formatted source file.
38
+ DSMM's automatic external LSP integration isn't a delivered feature in this version. The existing release validator still requires a completed `receipt.lsp` with `directNativeDiagnosticsAndFormat` and `nativeDshMcpClient`; Docker smoke independently exercises the retained interface. These release checks remain required and don't establish a supported DSMM activation path or certify an independently configured server.
49
39
 
50
- Docker bridge verification should install dsmm into a disposable dsh profile, apply `patches/ocmm-lsp-mcp.example.cordis.patch.yml`, mount `@deepseek-ai/dsh-mcp-client`, and call `mcp__dsmm_lsp__diagnostics` against the same temporary diagnostic fixture. This proves the dsh MCP bridge sees the public tool name and can pass the diagnostic request through to `ocmm-lsp mcp`.
40
+ The workspace executable entry has an unresolved `EPERM` failure creating a child log in the inspected Windows environment. Repairing that path isn't a prerequisite for implementing this version's DSMM features, but it doesn't waive required release checks. Independently managed MCP users must check their actual server entry; this version doesn't certify or repair that environment.
@@ -23,7 +23,7 @@ Model selection, authentication, permissions, session ownership, and package loa
23
23
  | Twelve role presets | Native definitions plus role-specific delegation composition, including builder, creative, reviewer, oracle, and oracle-2nd. | redesigned for DSH |
24
24
  | Per-role model/effort and DeepSeek calibration | Explicit `roleRouting`, fixed native child options, direct-role request policy, exact configured efforts, and compatible legacy calibration. | redesigned for DSH |
25
25
  | Safety guards | Native pre/post tool policies; host approval/cancellation remain authoritative. | redesigned for DSH |
26
- | LSP/MCP | Optional external ocmm-lsp with nine tools including atomic format; debugging/DAP is a separate on-demand skill. | optional/manual |
26
+ | LSP/MCP | Implementation, interfaces and original config retained, but DSMM automatic MCP mounting stays off even with `lsp.enabled:true`; LSP settings UI is hidden. DSH's own LSP and independently configured MCP are unaffected. | not enabled in this version |
27
27
  | Runtime fallback | Host-first, opt-in role/global ordered chains with exact efforts, cancellation, duplicate, and step fences. | redesigned for DSH |
28
28
  | Idle continuation | Separately enabled, bounded steering from durable unfinished work. | redesigned for DSH |
29
29
  | Subagent interruption recovery | Native durable child/session control and explicit continuation; no guessed task IDs, synthesized parent messages, or independent automatic retry dispatcher. | redesigned for DSH |
@@ -46,7 +46,7 @@ The role set includes `dsmm-orchestrator`, `dsmm-planner`, `dsmm-plan-critic`, `
46
46
  4. Move DSMM settings into the `id: dsmm` profile patch's `config` object and restart; do not copy old settings.yaml into the new home.
47
47
  5. Use `workflow.policy: risk-based` for the current workflow. Explicit legacy controls remain supported; inspect normalized status instead of assuming omitted and explicit defaults are equivalent.
48
48
  6. Inspect native roles and role-specific tools; do not configure removed `roots/includeUserRoot` or count exported template directories as discovery.
49
- 7. Enable optional LSP/MCP only with a usable external ocmm-lsp executable; recovery stays disabled unless explicitly configured.
49
+ 7. Don't use `lsp.enabled:true` or the retained historical manual patch as a DSMM activation entry in this version. Existing release checks still independently validate the retained LSP interface; see [LSP boundary](lsp.md). Recovery stays disabled unless explicitly configured.
50
50
  8. Validate the packed profile and the real specified model's read/write/tool-result round-trip before changing your default workflow.
51
51
 
52
52
  Model IDs belong to their native provider routes: `deepseek-account/deepseek-flash` and a custom `hoo/deepseek-v4.1-flash` are distinct routes. Configure custom routes through DSH's pi-ai adapter, using credential references rather than literal keys. Provider SDK identity alone is not wire-protocol proof. For the inspected Anthropic gateway, terminal `/v1` must be removed from its source SDK baseURL to retain the same native request path; adaptive thinking compatibility and exact high/max declarations preserve effort. This rule is not a global URL rewrite for other protocols.