@dsmm/dsmm 0.2.0 → 0.3.0

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 (285) hide show
  1. package/README.md +37 -67
  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/cordis.patch.yml +14 -0
  25. package/docs/agent-presets.md +36 -52
  26. package/docs/compatibility.md +47 -110
  27. package/docs/deferred-native-approval-risk.md +19 -0
  28. package/docs/design.md +2 -2
  29. package/docs/lsp.md +11 -21
  30. package/docs/migration-from-ocmm.md +2 -2
  31. package/docs/model-routing.md +84 -59
  32. package/docs/native-permissions.md +35 -0
  33. package/docs/profiles.md +40 -87
  34. package/docs/releasing.md +123 -2
  35. package/docs/roadmap.md +71 -17
  36. package/docs/settings-status.md +34 -169
  37. package/docs/skill-sync.md +52 -15
  38. package/lib/agent-registry.d.ts +36 -0
  39. package/lib/agent-registry.js +75 -0
  40. package/lib/child-admission-contract.d.ts +37 -0
  41. package/lib/child-admission-contract.js +2 -0
  42. package/lib/child-admission.d.ts +40 -0
  43. package/lib/child-admission.js +151 -0
  44. package/lib/child-capture.d.ts +85 -0
  45. package/lib/child-capture.js +205 -0
  46. package/lib/child-evidence.d.ts +17 -0
  47. package/lib/child-evidence.js +43 -0
  48. package/lib/client/ChildrenPanel.d.ts +43 -0
  49. package/lib/client/ChildrenPanel.js +82 -0
  50. package/lib/client/DeploymentPage.js +15 -8
  51. package/lib/client/EditableChoice.d.ts +17 -0
  52. package/lib/client/EditableChoice.js +49 -0
  53. package/lib/client/PermissionsPanel.d.ts +14 -0
  54. package/lib/client/PermissionsPanel.js +46 -0
  55. package/lib/client/ProfilesSection.js +30 -15
  56. package/lib/client/RoleAvailability.d.ts +7 -0
  57. package/lib/client/RoleAvailability.js +19 -0
  58. package/lib/client/SessionProfiles.js +27 -9
  59. package/lib/client/StructuredEditor.js +15 -7
  60. package/lib/client/children-controller.d.ts +98 -0
  61. package/lib/client/children-controller.js +296 -0
  62. package/lib/client/children-locales.d.ts +367 -0
  63. package/lib/client/children-locales.js +69 -0
  64. package/lib/client/controller.d.ts +6 -1
  65. package/lib/client/controller.js +14 -8
  66. package/lib/client/deployment-controller.js +1 -1
  67. package/lib/client/deployment-data.d.ts +2 -1
  68. package/lib/client/deployment-data.js +34 -5
  69. package/lib/client/deployment-locales.d.ts +4 -0
  70. package/lib/client/deployment-locales.js +11 -2
  71. package/lib/client/diagnostics.d.ts +14 -0
  72. package/lib/client/diagnostics.js +53 -0
  73. package/lib/client/index.d.ts +4 -0
  74. package/lib/client/index.js +96 -2
  75. package/lib/client/locales.d.ts +54 -0
  76. package/lib/client/locales.js +34 -16
  77. package/lib/client/permission-client.d.ts +16 -0
  78. package/lib/client/permission-client.js +38 -0
  79. package/lib/client/permission-controller.d.ts +62 -0
  80. package/lib/client/permission-controller.js +149 -0
  81. package/lib/client/permission-locales.d.ts +114 -0
  82. package/lib/client/permission-locales.js +75 -0
  83. package/lib/client/session-labels.js +4 -4
  84. package/lib/client/structured.js +19 -5
  85. package/lib/client/styles.d.ts +1 -1
  86. package/lib/client/styles.js +20 -0
  87. package/lib/client.js +5780 -1679
  88. package/lib/core-permission-authority.d.ts +18 -0
  89. package/lib/core-permission-authority.js +255 -0
  90. package/lib/core-permissions.d.ts +8 -0
  91. package/lib/core-permissions.js +33 -0
  92. package/lib/delivery-authority.d.ts +83 -0
  93. package/lib/delivery-authority.js +397 -0
  94. package/lib/deployment-config.d.ts +23 -0
  95. package/lib/deployment-config.js +61 -40
  96. package/lib/deployment-permission-rules.d.ts +55 -0
  97. package/lib/deployment-permission-rules.js +306 -0
  98. package/lib/dsh-types.d.ts +10 -4
  99. package/lib/guards.d.ts +1 -1
  100. package/lib/guards.js +29 -8
  101. package/lib/host-llm-startup.d.ts +41 -0
  102. package/lib/host-llm-startup.js +65 -0
  103. package/lib/host-llm.d.ts +92 -0
  104. package/lib/host-llm.js +325 -0
  105. package/lib/index.d.ts +15 -4
  106. package/lib/index.js +288 -48
  107. package/lib/live-pi-ai-owner.d.ts +18 -0
  108. package/lib/live-pi-ai-owner.js +144 -0
  109. package/lib/llm-runtime.d.ts +11 -0
  110. package/lib/llm-runtime.js +21 -0
  111. package/lib/managed-settings.d.ts +5 -0
  112. package/lib/managed-settings.js +14 -0
  113. package/lib/model-parameter-policy.d.ts +11 -0
  114. package/lib/model-parameter-policy.js +27 -0
  115. package/lib/model-routing.js +28 -17
  116. package/lib/modules.d.ts +13 -5
  117. package/lib/modules.js +17 -1
  118. package/lib/native-child-evidence.d.ts +40 -0
  119. package/lib/native-child-evidence.js +104 -0
  120. package/lib/native-pi-ai-wire.d.ts +37 -0
  121. package/lib/native-pi-ai-wire.js +261 -0
  122. package/lib/native-scope.js +1 -1
  123. package/lib/permission-bash.d.ts +6 -0
  124. package/lib/permission-bash.js +7 -0
  125. package/lib/permission-control.d.ts +73 -0
  126. package/lib/permission-control.js +205 -0
  127. package/lib/permission-controller.d.ts +68 -0
  128. package/lib/permission-controller.js +317 -0
  129. package/lib/permission-errors.d.ts +7 -0
  130. package/lib/permission-errors.js +21 -0
  131. package/lib/permission-fs-search.d.ts +5 -0
  132. package/lib/permission-fs-search.js +7 -0
  133. package/lib/permission-fs.d.ts +5 -0
  134. package/lib/permission-fs.js +7 -0
  135. package/lib/permission-native-access.d.ts +11 -0
  136. package/lib/permission-native-access.js +6 -0
  137. package/lib/permission-native-command.d.ts +10 -0
  138. package/lib/permission-native-command.js +93 -0
  139. package/lib/permission-native-rules.d.ts +75 -0
  140. package/lib/permission-native-rules.js +278 -0
  141. package/lib/permission-pwsh.d.ts +6 -0
  142. package/lib/permission-pwsh.js +7 -0
  143. package/lib/permission-remote.d.ts +26 -0
  144. package/lib/permission-remote.js +53 -0
  145. package/lib/permission-rpc.d.ts +29 -0
  146. package/lib/permission-rpc.js +152 -0
  147. package/lib/permission-rules.d.ts +115 -0
  148. package/lib/permission-rules.js +256 -0
  149. package/lib/permission-settings.d.ts +45 -0
  150. package/lib/permission-settings.js +48 -0
  151. package/lib/permission-shell.d.ts +38 -0
  152. package/lib/permission-shell.js +150 -0
  153. package/lib/permission-web.d.ts +5 -0
  154. package/lib/permission-web.js +7 -0
  155. package/lib/preset-registry.js +36 -25
  156. package/lib/profile-diagnostics.d.ts +45 -0
  157. package/lib/profile-diagnostics.js +148 -0
  158. package/lib/profile-locale.d.ts +3 -0
  159. package/lib/profile-locale.js +2 -0
  160. package/lib/profile-remote.d.ts +8 -0
  161. package/lib/profile-remote.js +163 -39
  162. package/lib/profile-rpc.d.ts +4 -3
  163. package/lib/profile-rpc.js +20 -16
  164. package/lib/profile-runtime.d.ts +40 -1
  165. package/lib/profile-runtime.js +368 -93
  166. package/lib/profile-store.d.ts +11 -0
  167. package/lib/profile-store.js +143 -11
  168. package/lib/profile-types.d.ts +70 -1
  169. package/lib/profile-types.js +1 -0
  170. package/lib/profiles.d.ts +16 -2
  171. package/lib/profiles.js +156 -79
  172. package/lib/prompt-content.js +1 -1
  173. package/lib/prompts.d.ts +37 -2
  174. package/lib/prompts.js +111 -9
  175. package/lib/recovery-policy.js +20 -7
  176. package/lib/role-control-remote.d.ts +38 -0
  177. package/lib/role-control-remote.js +211 -0
  178. package/lib/role-control-rpc.d.ts +51 -0
  179. package/lib/role-control-rpc.js +381 -0
  180. package/lib/role-control-types.d.ts +92 -0
  181. package/lib/role-control-types.js +8 -0
  182. package/lib/role-invocation.d.ts +47 -0
  183. package/lib/role-invocation.js +135 -0
  184. package/lib/role-llm-runtime.d.ts +17 -0
  185. package/lib/role-llm-runtime.js +62 -0
  186. package/lib/role-llm.d.ts +31 -0
  187. package/lib/role-llm.js +66 -0
  188. package/lib/role-policy.d.ts +46 -8
  189. package/lib/role-policy.js +421 -61
  190. package/lib/role-providers.d.ts +2 -2
  191. package/lib/role-providers.js +27 -72
  192. package/lib/role-routing.d.ts +11 -2
  193. package/lib/role-routing.js +42 -25
  194. package/lib/role-runs.d.ts +138 -0
  195. package/lib/role-runs.js +335 -0
  196. package/lib/role-subagents.d.ts +58 -3
  197. package/lib/role-subagents.js +179 -56
  198. package/lib/roles.d.ts +5 -6
  199. package/lib/roles.js +10 -39
  200. package/lib/route-json.d.ts +19 -0
  201. package/lib/route-json.js +129 -0
  202. package/lib/routing-policy.d.ts +2 -0
  203. package/lib/routing-policy.js +12 -2
  204. package/lib/runtime-integration.d.ts +81 -0
  205. package/lib/runtime-integration.js +702 -0
  206. package/lib/runtime-recovery.js +18 -8
  207. package/lib/session-persistence.d.ts +2 -1
  208. package/lib/session-persistence.js +1 -1
  209. package/lib/session-scope.js +4 -1
  210. package/lib/settings.d.ts +47 -13
  211. package/lib/settings.js +217 -82
  212. package/lib/skills.js +2 -2
  213. package/lib/status.d.ts +10 -1
  214. package/lib/status.js +11 -8
  215. package/lib/subagent-runtime.d.ts +57 -0
  216. package/lib/subagent-runtime.js +257 -0
  217. package/package.json +149 -89
  218. package/patches/subagent-runtime.yml +15 -0
  219. package/prompts/deepseek-flash.md +1 -1
  220. package/prompts/deepseek-v4-pro.md +2 -2
  221. package/prompts/deepwork.md +27 -18
  222. package/prompts/source/agents/clarifier.md +5 -3
  223. package/prompts/source/agents/orchestrator.md +18 -9
  224. package/prompts/source/agents/plan-critic.md +5 -1
  225. package/prompts/source/agents/planner.md +4 -2
  226. package/prompts/source/agents/reviewer.md +6 -0
  227. package/prompts/source/category/complex.md +4 -4
  228. package/prompts/source/category/creative.md +6 -4
  229. package/prompts/source/category/cross-cutting.md +10 -8
  230. package/prompts/source/category/deep.md +5 -3
  231. package/prompts/source/category/documenting.md +7 -1
  232. package/prompts/source/category/frontend.md +2 -2
  233. package/prompts/source/category/hard-reasoning.md +3 -3
  234. package/prompts/source/category/research.md +4 -2
  235. package/prompts/source/deepwork/claude-opus-5.md +2 -2
  236. package/prompts/source/deepwork/codex.md +1 -1
  237. package/prompts/source/deepwork/default.md +22 -15
  238. package/prompts/source/deepwork/gemini.md +23 -16
  239. package/prompts/source/deepwork/glm.md +21 -14
  240. package/prompts/source/deepwork/gpt.md +12 -6
  241. package/prompts/source/deepwork/planner.md +8 -5
  242. package/prompts/source/manifest.json +178 -63
  243. package/prompts/source/shared/dsh-host-contract.md +5 -3
  244. package/prompts/source/shared/locale.md +2 -2
  245. package/prompts/source/terminal/orchestrator.md +1 -1
  246. package/skills/ast-grep/SKILL.md +7 -4
  247. package/skills/brainstorming/SKILL.md +43 -22
  248. package/skills/coding-agent-sessions/SKILL.md +7 -4
  249. package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
  250. package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
  251. package/skills/debugging/SKILL.md +14 -9
  252. package/skills/debugging/references/methodology/00-setup.md +14 -62
  253. package/skills/debugging/references/methodology/02-investigate.md +4 -4
  254. package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
  255. package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
  256. package/skills/debugging/references/methodology/06-fix.md +6 -6
  257. package/skills/debugging/references/methodology/08-qa.md +5 -5
  258. package/skills/debugging/references/methodology/09-cleanup.md +15 -153
  259. package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
  260. package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
  261. package/skills/debugging/references/runtimes/native-binary.md +9 -54
  262. package/skills/debugging/references/runtimes/node.md +4 -15
  263. package/skills/debugging/references/runtimes/python.md +3 -15
  264. package/skills/debugging/references/runtimes/rust.md +2 -18
  265. package/skills/debugging/references/tools/dap.md +1 -1
  266. package/skills/debugging/references/tools/ghidra.md +4 -15
  267. package/skills/debugging/references/tools/playwright-cli.md +3 -15
  268. package/skills/debugging/references/tools/pwntools.md +4 -16
  269. package/skills/dispatching-parallel-agents/SKILL.md +18 -16
  270. package/skills/frontend/SKILL.md +7 -4
  271. package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
  272. package/skills/git-master/SKILL.md +7 -4
  273. package/skills/init-deep/SKILL.md +7 -4
  274. package/skills/receiving-code-review/SKILL.md +17 -12
  275. package/skills/remove-ai-slops/SKILL.md +39 -38
  276. package/skills/requesting-code-review/SKILL.md +19 -17
  277. package/skills/requesting-code-review/code-reviewer.md +13 -1
  278. package/skills/subagent-driven-development/SKILL.md +29 -26
  279. package/skills/subagent-driven-development/implementer-prompt.md +29 -11
  280. package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
  281. package/skills/using-git-worktrees/SKILL.md +7 -4
  282. package/skills/writing-plans/SKILL.md +29 -24
  283. package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
  284. package/scripts/repair-session-log.mjs +0 -476
  285. package/scripts/session-repair-native-verifier.mjs +0 -367
@@ -1,78 +1,62 @@
1
- # Deepwork source roles on DSH 0.2.0-rc.2
1
+ # Deepwork Agent presets and child control
2
2
 
3
- DSMM's canonical content inventory is **11 base roles + 11 categories**, not twelve short personas. Base roles are orchestrator, builder, reviewer, oracle, oracle-2nd, doc-search, code-search, planner, clarifier, plan-critic and media-reader. Categories are frontend, creative, hard-reasoning, research, quick, coding, normal-task, complex, deep, documenting and cross-cutting. IDs are `dsmm-<source-name>`; explore is only a code-search compatibility alias, not an additional role. Existing `dsmm-creative` is preserved. Cross-cutting defaults disabled; all other canonical items default enabled.
3
+ This guide describes built source behavior on the native DSH integration, not automatic availability in the published `@dsmm/dsmm@0.2.0` artifact. Native package composition and callable admission must both exist.
4
4
 
5
- ## Content and authority
5
+ ## Roles and composition
6
6
 
7
- Every role consumes its complete adapted source Markdown when one exists, actual catalog responsibility and source terminal TS policy. Oracle/Oracle 2nd share reviewer content, not new personas. Builder and the utility roles without standalone source Markdown retain their actual catalog responsibilities and full active workflow. `prompts/source/manifest.json` maps each source/assembled artifact to its runtime consumer. See [source synchronization](skill-sync.md).
7
+ The canonical inventory is 11 base roles and 11 categories. Base roles are orchestrator, builder, reviewer, oracle, oracle-2nd, doc-search, code-search, planner, clarifier, plan-critic and media-reader. Categories are frontend, creative, hard-reasoning, research, quick, coding, normal-task, complex, deep, documenting and cross-cutting. IDs are `dsmm-<source-name>`; `explore` is a code-search compatibility alias, not another role. Cross-cutting defaults disabled; other canonical items default enabled.
8
8
 
9
- Frontend skill resources are fully materialized from the root-declared immutable sources, with project-original aside preserved. Native skill metadata remains body-free. Default build/package checks are offline and refuse missing resources; a fresh source checkout needs the explicit `sync:frontend` step before a source Docker context or package can be complete. Ignored upstream body files are not source commits and must still ship in the artifact.
9
+ Only Orchestrator and Builder (`primary`) and Planner (`all`) are root-eligible. Planner root exposure additionally requires `presets.plannerRootEnabled: true`; it defaults false. This does not disable `roles.dsmm-planner` (default true), its native workflow provider, or its read-only delegation. Other roles are auxiliary-only (`subagent`), regardless of enablement. Native preset selection displays `DW …` labels under unchanged IDs. A role name is a responsibility, not a model choice or authority claim.
10
10
 
11
- Only Orchestrator/Builder (`primary`) and Planner (`all`) are root-eligible. The other 19 are auxiliary-only (`subagent`), independent of enablement. Root eligibility does not imply child delegation permission. Root Builder is a trusted stage owner, not a bounded child; native child Builder must retain its narrower assignment. The source grouping is:
11
+ Native `agentPresets.register({id, plugins})` registers root compositions; DSH doesn't discover them by scanning exported directories. Generated `agent-presets/` mirrors are inspection/export resources. `presets.materialize` defaults off and never selects the Host default preset. Personas, read-only restrictions and host approvals remain when explicit Deepwork off hides common workflow and DSMM skills. Complete adapted source content and resources are described in [source synchronization](skill-sync.md).
12
12
 
13
- | Identity/group | Permitted logical children, intersected with actual capability/authority |
14
- | --- | --- |
15
- | Trusted root/stage-owner Orchestrator or Builder | Authorized workflow and execution roles; owns formal planning, criticism and acceptance |
16
- | Utility leaves: quick, code-search, doc-search, research, media-reader | None; research remains strict leaf |
17
- | Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader; never quick or workflow owners |
18
- | coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves only |
19
- | deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists; no workflow owners or local-coordinator peers |
20
- | Bounded native child Builder | Bounded utility leaves only; never inherit stage ownership from persona or preset name |
13
+ The Planner root flag follows the existing deployment `presets` scope: Global config and the current DSH entry may set it; named/session overlays cannot. The complete `presets` group is startup-pinned. Saving desired changes neither migrates running Agents nor changes the standing registry; next-root settings report `restartRequired: ["presets"]` until an independent Host restart. After restart, disabled Planner roots are not registered for native picker, definition export or mounting, and forced native/API creation or root resume is refused before prompt/provider execution. Opting in still requires the enabled module, enabled role, usable native composition and current admission; it never grants writes. Original child captures do not contain `presets`: old captured workflow Planner children retain their original route, epoch and read-only ceiling without migration or current-parent permission reconstruction. Harness's native `/plan` and its plan-mode composition remain unchanged.
14
+
15
+ Standing Orchestrator/Builder compositions include native planning, compaction/pruning, question and todo rows. Planner includes planning, compaction/pruning and questions, but no todo writer. Coding/frontend/deep/complex/cross-cutting include compaction/pruning, questions and todo; other auxiliary roles add none of those rows. Native spawn can retain parent services, so this isn't a promise to strip every inherited row from short children. Effective filters and execution fences still decide access. Native `/plan` doesn't upgrade Planner permissions, and `/compact` remains a human native command.
21
16
 
22
- The shared `role-policy.ts` consumes this matrix for native/headless Agent catalogs, provider admission, mandatory execution fences and an Agent-scoped identity prompt. Root authority comes from native preset composition or explicit common activation on an ordinary root with mounted coordinator substrate, not a claimed header/persona. Alias creation carries scoped admission identity; continuable creation checks native descriptor, exact live ownership and parent capture. A child Builder is bounded. Generic spawn in a DSMM-owned workflow cannot substitute for role admission; unrelated ordinary off-mode native children retain host behavior without gaining DSMM delegation. Pure durable role labels may inform routing/history, never authorization. No static file/list is callable proof.
17
+ ## Delegation authority
23
18
 
24
- Planner remains read-only in both main-preset and child use. It returns complete Markdown for native review/handoff; an authorized Builder/Orchestrator persists it. There is no plan-only writer, and native `/plan` does not upgrade role permissions. Default catalog does not synthesize suffixed tiers or later Oracle slots.
19
+ | Admitted identity | Permitted logical children, intersected with native authority |
20
+ | --- | --- |
21
+ | Trusted root/stage-owner Orchestrator or Builder | Authorized workflow/execution roles; owns formal planning, criticism and acceptance |
22
+ | quick, code-search, doc-search, research, media-reader | None; research remains a leaf |
23
+ | Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader |
24
+ | coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves |
25
+ | deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists |
26
+ | Native child Builder | Bounded utility leaves, not stage ownership |
25
27
 
26
- ## Native composition and generated mirror
28
+ No child gains coordination authority from a preset label, persona or durable role string. The shared role policy checks exact live native ownership, original child capture, admitted epoch and provider/definition identity. Generic spawn can't bypass role admission in a DSMM-owned workflow. Unrelated ordinary off-mode native children retain Host behavior without acquiring DSMM delegation.
27
29
 
28
- DSH rc.2 uses `agentPresets.register({ id, plugins })`; it does not scan exported directories. Enabled root roles register complete native persona/instructions/filesystem/search/web/project-skill/skill-tool compositions. Read-only access is retained independently of Deepwork mode. Main DSMM owns the Agent-scoped lazy provider for all fourteen skills; generated compositions no longer include the legacy no-op `@dsmm/dsmm/preset-skills` row. Skills and common workflow disappear on explicit off; persona/access and host approvals do not.
30
+ Read-only roles remain read-only independently of mode and optional guards. Planner returns complete Markdown for native review/handoff; an authorized coordinator persists it. There is no Planner writer. Native catalog visibility and role permission are separate: a schema or read-only catalog listing doesn't authorize invocation, and own-layer native schemas may remain visible even when mandatory execution fences deny them.
29
31
 
30
- `agent-presets/` contains 22 renderer-checked inspection templates, including the disabled-by-default cross-cutting template. Default root mirrors omit its child tool until enabled explicitly. Regenerate with `pnpm run generate:roles` after building; `-- --check` is read-only. `presets.materialize` stays off by default. If explicitly enabled, it exports only DSMM-owned enabled directories; this is not native directory discovery. Materialization ownership/link/marker checks are unchanged, and no install changes the host's default preset.
32
+ Descendants intersect parent allow-lists with requested restrictions and union deny-lists, using frozen captures. Existing native filters still execute. Reinstallation, direct aliases, continuable starts and cold resumes don't enlarge original authority. A named profile can narrow enabled roles but can't lift startup/deployment ceilings; required roles and conditional legacy review rules are covered in [profiles](profiles.md#inheritance-and-ceilings).
31
33
 
32
- The published renderer's second skills argument is retained but ignored, preserving the later enabledRoles/roleRouting argument positions. The formal `./preset-skills` entry also remains compatible in 0.1.9: its apply hook registers nothing, and current generated compositions do not use it. Actual `registerAgentSkills` remains in that same module and is called by the main entry; no registration/lifecycle or public shape is changed by this compatibility retention.
34
+ ## Invocation and lifecycle
33
35
 
34
- Standing templates emit source-permitted native child rows. Agent admission narrows them to identity, enabled snapshot and mounted capabilities; its role tools adapt directly to native start/jobs/continuable APIs. Native services own descriptors, turns, result/structured capture, storage, inbox, capacity, interruption and release. Explicit idle mode/profile/preset changes prepare the actual next realm at awaited assembly; desired saves never remount startup services. Native model-facing route selection remains disabled on role tools; explicit host provider/model/effort and native caller filters retain precedence. Each admitted descendant intersects the parent's admitted allow-list with its request and unions their deny-lists, retaining a frozen snapshot rather than a mutable caller object. Native original filters still execute unchanged; aliases, direct continuable starts and cold durable resumes cannot enlarge the parent's restrictions. Read-only admission filters/fences before first work, rather than inventing an unknown-name child filter for headless Agent-local utility tools.
36
+ Actual per-role or parameterized tool names, target IDs and `level`/opt-in `route` parameters are documented in [model routing](model-routing.md#tool-topology-and-target-filters). Default level is normal; low/high/max require explicit target configuration. Root model selection stays native-owned. Children capture route, visible-output locale and authority at admission, not from a parent's later profile.
35
37
 
36
- ### Role-sized native standard defaults
38
+ Foreground one-shot is the deployment default. A one-shot waits for useful native result/output and settles; its terminal child can't be revived as a continuable conversation. Structured result capture, cancellation, storage, capacity and teardown remain native-owned.
37
39
 
38
- The reference is the **installed DSH 0.2.0-rc.2** public export `@deepseek-ai/dsh-web-app/presets/standard.patch.yml`, not an inferred web URL or automatic `extends` facility. `rolePluginRows` and generated YAML now share its native `cordis:group` shape: `group: true`, isolated services, and child rows in the group's **`config` array**.
40
+ Explicit `enableRunInBackground` permits native jobs. With `backgroundMode:"one-shot"`, calls wait unless `run_in_background:true`. With opted-in `backgroundMode:"continuable"`, background continuation is the call default; `run_in_background:false` still waits for one-shot work. Continuable start requires a real native `prepareContinuable` method, not a capability flag alone. Omitted `maxDepth` delegates to the native limit; deployment depth/background settings aren't named-profile fields.
39
41
 
40
- | Standing role composition | Planning group | Compaction/pruner group and human `/compact` | `ask_user_question` | `todo_write` |
41
- | --- | --- | --- | --- | --- |
42
- | Orchestrator, Builder | Yes | Yes | Yes | Yes |
43
- | Planner | Yes | Yes | Yes | No |
44
- | coding, frontend, deep, complex, cross-cutting | No | Yes | Yes | Yes |
45
- | Other auxiliary roles, including quick, searches, clarifier, media-reader, reviewers, Oracles and plan-critic | No additional group | No additional group | No additional row | No additional row |
42
+ A running foreground one-shot can be handed to background jobs using the exact published run, tool call, parent session and admission epoch. This transfers the same native run, not a restarted prompt or second child. The receipt reports `background`, `already-background`, `already-settled` or `cancelled`, with the same run ID and job ID where applicable. Starting, settled, cancelled, stale or unauthorized requests don't imply a new execution.
46
43
 
47
- Cross-cutting remains opt-in/default disabled. The compaction group contains exact rc.2 `dsh-compaction-basic`, `dsh-command-compact`, and **`dsh-compaction-tool-result-pruner`** packages. The pruner's policy is `thresholdChars: 8192`, `headChars: 4096`, `tailChars: 1024`; todo retains `allowParallelInProgress: true`. Planning isolates `planMode` and retains the standard's deployment-owned guidance and `exit_plan_mode`; it does not grant Planner mutation rights or a plan-file writer. `/compact` is a human command, never a new model tool. Its actual summarization, when useful history exists, remains native and may invoke the selected model; an empty-history command performs no model request.
44
+ ## Native child panel and report
48
45
 
49
- This matrix describes **owned standing rows**, not a promise to remove every inherited service from short children. Native spawn joins the parent's retained preset rather than recomposing the target role's template; a short child can inherit its parent's compaction/planning services. Existing caller filters, role admission and mandatory read-only/delegation fences still decide callable tools. No runtime capability adapter or child-service-clearing framework is introduced here.
46
+ The session-scoped Conversation child panel shows actual runs, direct children and a read-only descendant tree. IDs, activity, mode, admitted role/level, route comparison, original evidence and disabled reasons remain separate facts. Corrupt, unsupported or unavailable branches show diagnostics, not fabricated successful results. Descendant inspection doesn't grant control over non-direct children.
50
47
 
51
- Host commands, user-questions, sessions, token meter, permission/sandbox/cwd/process/model and transports stay Host-owned. DSMM does not copy those rows, credentials, telemetry, generic spawn/fork, workflow/ralph or plugin-manager tools from standard. The six new preset runtime peers are explicitly pinned to `0.2.0-rc.2`; the existing `dsh-tools` runtime peer is preserved. Native Loader proof covers first composition, isolated multi-preset command registrations, real `/compact` returning `No compactable history yet.`, default pruning, session-local todo writes, Planner mutation refusal and global DW-off zero role additions; this is not a Desktop install or paid-model compaction claim.
48
+ Route comparison uses the current version-3 `invocation-capture` and the child's latest `own-native-request-header`. Missing, invalid, old-version, or unobserved evidence remains unknown and refuses current resume; it is never inferred from the root route, current profile, role label, or compatibility projection.
52
49
 
53
- `subagents.enableRunInBackground` defaults false, `subagents.backgroundMode` defaults `one-shot`, and omitted `subagents.maxDepth` retains the native limit (rc.2 default 1). These fields are sparse native/global deployment settings, captured at new-root admission, inherited by future children, and excluded from named runtime overlays. Opt-in continuable tools require an actual `prepareContinuable` method; capability flags alone are not enough. Message, interrupt, persistence, capacity, result and teardown remain native-owned. Agent-owned asynchronous scope unwind awaits `drainContinuableDescendants([exactAgent])` before the Agent detaches, not from a contained disposed observer.
50
+ Human messages target only an admitted direct continuable child with current parent authority and ready delivery fencing. Entries whose observed control projection is read-only remain inspection-only; this isn't the role's tool-level read-only policy. **Queue** accepts a distinct later turn; **Steer** targets the nearest step. Idle/cold continuation keeps the same durable child ID. Native attachment and model admission validate images separately.
54
51
 
55
- ## Stage C applicable parity and evidence
52
+ An inbox receipt means **accepted**, not executed or completed. An interrupt acknowledgment isn't completion and doesn't claim queued work was removed. If transport leaves a send outcome unknown, the draft stays visible and automatic resend is disabled. Inspect the native child conversation before explicitly allowing a new message, which could duplicate an accepted one. Refresh and reconnection never imply automatic retry.
56
53
 
57
- | Applicable source behavior | Consumer / native equivalent | Current evidence / honest limit |
58
- | --- | --- | --- |
59
- | Source identity/delegation groups; research leaf; bounded child Builder; local specialists | `role-policy`, `role-subagents`, `role-providers`; native live registry ownership | `native-delegation`: mock LLM drives root → deep → coding → read and returns useful result; research/forbidden coordinators/forged Agent/generic spawn/same-layer execution bypass reject |
60
- | Read-only roles independent of common/guard toggles | Native inherited restrictions plus role/definition/realm guard | Actual native FS planner writes refuse after plan exit; mutation and impersonated-read sentinels never execute. Five local mock ops are not whole native FS/job/web acceptance |
61
- | Planner full Markdown and native review handoff | Native `exit_plan_mode`, authorized Builder native write | Actual Builder preset dispatches planner, native review receives complete Markdown, planner mutation refuses, Builder persists complete plan; blank preset rebind allows read-only utility and denies quick/write |
62
- | One-shot foreground, caller filters, typed failure | Native spawn/result/dispose; alias preserves descriptor, filters and actual capability flags | Useful mock chain; original bounded Builder → quick deny-write reproduction now refuses before body dispatch, retains native read/result and narrower requested denies. Caller mutation does not erase admitted restriction; direct alias/continuable/cold durable resume share the same fence. Unknown filter pre-publication refusal, configured unsupported capability, failure/abort and no leaked children; structured output remains native API-owned, not a new DSMM capture |
63
- | Background and continuable, message/interrupt, parent teardown | Native jobs controller and continuation manager | Actual native background useful output/foreign-owner deny/kill; per-parent capacity; default depth versus depth-3 legal deep→coding; same-child useful follow-up, natural release and same durable-ID cold resume. Parent owning-scope drain runs while exact parent is registered, preserves sibling trees |
64
- | Explicit native picker/model/effort; omitted versus empty fallback | Model/role routing and exact native preflight | Native final headers/streams preserve explicit route/low effort, exact unsupported named max refuses without degrading stream; ordered/empty/inherited chains and native roots retain original contract |
65
- | 429 versus generic retry owner; finite/no-output/epoch fencing | Existing recovery middleware and native loop | Native cancellation/stale frame/no-output/finite retry and cold-policy epoch tests retained; exact live registry checks fence late disposed evidence. No parallel retry controller/queue or synthesized parent task IDs |
66
- | Desired/startup/admission/named overlay and CAS | C0 capture/store interfaces reused | Real busy-save old/future-child pinning, new root role/skill/recovery off/on, missing startup role restart-required, old idle overlay preserving deployment. Native volatile refs/CAS and readiness audits retained |
67
- | Shell/Git/output/plan/question/todo/depth/interruption | Native pre/post/guard seams plus mandatory policy | Guard tests retain stronger deny/ask composition and canonical values. Protected plan edit is explicitly `unsupported-full-preview` fail-closed; zero reads/leak/body change regression GREEN. Actual complete writes, stale native CAS, ordinary match/replace-all preserved |
68
- | Same-layer catalog versus execution | rc.2 public `restrict` only masks inherited registrations; schema providers accumulate | Public APIs cannot hide own-layer schemas. They may remain displayed; unadmitted/forbidden invocation is mandatory-denied, including re-registered safe-name definitions. No private view override or fake same-name filter |
69
- | LSP startup/availability/read-only/cancel/exit | Optional host-anchor-resolved native MCP, installed server only | Actual installed MCP status/nine tool names/read-only refusal/cancel, desired off not remounting, owned process exit/tools withdrawn; sanitized unavailable diagnostics. **Protected Root cold-cache gate:** direct installed Root MCP without DSMM/SDK reproduces all three no-package-metadata groups. The final DSMM MCP operand is unchanged. Six independent direct-gopls cold controls return definition/reference results, including public/Root extended URIs, empty/per-item configuration replies and extended cwd. URI serialization alone is not the confirmed cause; the finer Root inner-launch/protocol failure remains unresolved. Single cold useful-symbol positive regression remains RED; no warmup, retry, pathname hack or Root modification |
70
- | OpenCode-only hook events, Codex marketplace, private host auth migration | Not applicable to DSH native runtime | Not copied or emulated; no workflow/retry scheduler or private-file migration added |
54
+ ## Explicit runtime and capture boundaries
71
55
 
72
- The parent-approved plan-edit ruling removes the unsafe Node preview; it does not stop normal complete plan production. Format validation is not N/A or fake final-document success. The remaining actual language-symbol error is an external protected Root boundary, not hidden by an availability flag or successful catalog count. Parent owns external blocker disposition, final stage acceptance and commit. D's client/UI and authenticated browser acceptance are separate; no stage completion is inferred from artifact checks alone.
56
+ Managed delivery uses the bundled explicit cold-start Agent registry/runtime/Main composition, not automatic replacement by the default bundle. Keep one provider in the same Host scope, preserve native spawn/fork/model/Gateway services, and retain explicit capacity/depth settings. Runtime binding, delivery readiness and restart requirement are observable separately. See [settings](settings-status.md#child-runtime-composition).
73
57
 
74
- ## Models and migration
58
+ An old child without a valid version-3 capture is unsupported in 0.3.0 and remains untouched. The legacy-read adapter is not exported or composed; current parent settings cannot be treated as recovered history. See [compatibility](compatibility.md#retired-compatibility-surfaces).
75
59
 
76
- Role names are responsibilities, not routes. Explicit native picker/configured catalog-valid routes win; source OCMM provider/model preferences are not copied into DSH defaults. Reviewer is primary-lane review. Oracle independence exists only when a different actual model is explicitly selected; Oracle 2nd is priority, not greater capability. Exact DeepSeek overlays and auto/strict/off native effort behavior remain.
60
+ Native Host commands, sessions, inbox, permissions, process/cwd/model selection and transports retain ownership. DSMM supplies role admission and bounded controls, not a replacement lifecycle scheduler, generic permission bypass or automatic retry system.
77
61
 
78
- Existing IDs, runtime profile route keys, immutable admissions and authority are retained. Adding canonical metadata extends their accepted role inventory without adding roles/skills to runtime overlays or implementing desired/volatile settings. Auxiliary cold-resume limitations remain: do not silently substitute a persona, erase history or alter private deployment data. Global rollout, Docker/bootstrap, authenticated Desktop evidence and publication are outside this content stage.
62
+ *Author's note: For a coordinator or DSH operator delegating work; inspect actual child admission and receipts before treating catalog visibility or accepted delivery as execution.*
@@ -1,118 +1,71 @@
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 **@dsmm/dsmm@0.3.0 source candidate**, not proof of a completed publication. It carries current 0.2.2 behavior onto exact DSH `0.2.1-rc.1` while retiring old DSH, capture/history-format, and Desktop/TUI migration compatibility. Evaluate the exact packed artifact; package checks, native/browser acceptance, registry verification, and terminal completion are distinct evidence.
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.
38
-
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.
7
+ | Surface | Contract | Boundary |
8
+ | --- | --- | --- |
9
+ | Node.js | 22 or later | Required runtime |
10
+ | DSH SDK/component peers | exact `0.2.1-rc.1`; engine `>=0.2.1-rc.1 <0.3.0-0` | Trusted 0.3.0 integration target, not a future-version guarantee |
11
+ | Cordis / Schemastery | `~4.0.5` / `~3.18.5` | 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/TUI migration | Not supplied by 0.3.0 | Old profiles and carriers are not read, rewritten, copied, or auto-migrated |
14
+ | CLI/headless | DSH `0.2.1-rc.1` native deployment configuration and delegation tools | Current data and permissions only; one-shot headless doesn't select Agent presets |
15
+ | Managed Agent/child runtime | Bundled explicit cold `./agent-registry` + `./subagent-runtime` composition | Restart required; no hot replacement or automatic runtime selection |
16
+ | 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 |
40
17
 
41
- ### Stage B content checkpoint (2026-10-07; source/resources, not C/D acceptance)
18
+ 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`.
42
19
 
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).
20
+ 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).
44
21
 
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.
22
+ ## Stable configuration and admission
46
23
 
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.
24
+ 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.
48
25
 
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).
26
+ 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).
50
27
 
51
- ### Stage A source contract (2026-10-07; not a publication/host-install claim)
28
+ 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. Current-format children retain their original captures, and later children inherit the new parent admission. Busy or stale targets aren't queued.
52
29
 
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.
30
+ 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.
54
31
 
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.
32
+ Cold resume creates a new admission using valid current deployment data and the exact committed sidecar, or the scoped future default when no sidecar exists. Corrupt, unavailable, or old-format sidecars and profile libraries refuse without fallback. Clear/compact doesn't transfer choices through inferred lineage. Nothing is automatically copied, rewritten, repaired, or migrated.
56
33
 
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.
34
+ ## Models, roles and native controls
58
35
 
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.
36
+ 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.
60
37
 
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.
38
+ 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).
62
39
 
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.
40
+ Native child capture version 3 records delegation mode with the 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 or old-format capture. Current exact-parent authority is checked again for delivery, so a retained current 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.
64
41
 
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.
42
+ 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.
66
43
 
67
- ## Compatibility matrix
44
+ 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).
68
45
 
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 |
46
+ `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).
90
47
 
91
- ## Command and runtime boundaries
48
+ ## Explicit managed runtime composition
92
49
 
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.
50
+ The 0.3.0 `cordis.patch.yml` explicitly disables stock ID `agent` / `@deepseek-ai/dsh-agent` and stock ID `subagent` / `@deepseek-ai/dsh-subagent`, then inserts exactly one DSMM Agent registry, one DSMM subagent runtime, and Main. This is a cold-start composition and requires an independent Host restart.
94
51
 
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.
52
+ `@dsmm/dsmm/agent-registry` must own the actual `agents` service as `DsmmAgentRegistry`; `@dsmm/dsmm/subagent-runtime` must own `subagents` as `DsmmSubagentRuntime`. Native `name` values assert target identity rather than renaming rows. Check settled Loader state and both live service owners, preserve spawn/fork/model/Gateway services and explicit capacity/depth policy, and keep one owner of each service. Missing or duplicate owners refuse; a running stock service is never hot-shadowed.
96
53
 
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.
54
+ The public `./agent-registry` export maps to `lib/agent-registry.js`; `./subagent-runtime` maps to `lib/runtime-integration.js`, whose default remains the explicit Host-owned startup plugin. These are two of sixteen public 0.3.0 exports. A resolved module or configured row is not proof of Host ownership. Runtime projection separates `binding: stock | dsmm | unavailable`, `deliveryFenceReady` and `restartRequired`. Missing native history, providers or admission fencing cannot be replaced by an availability flag.
98
55
 
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.
56
+ ## Retired compatibility surfaces
100
57
 
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`.
58
+ 0.3.0 does not export `./legacy-read-host` and does not package session-repair or cold-profile migration scripts. Its current capture reader accepts only version 3. Old captures, old profile libraries, and unmarked historical logs are left untouched and refuse current resume or mutation. A role label, current parent, same-name central document, or serializable assertion cannot reconstruct missing historical authority.
102
59
 
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.
104
-
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).
60
+ Historical package/tag validators retain their original byte and receipt rules; this release does not reinterpret them or adopt their artifacts. Any separately authorized forensic recovery must use a tool and immutable version chosen for that exact private target, outside the 0.3.0 package and release proof.
106
61
 
107
62
  ## Session persistence compatibility
108
63
 
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.
110
-
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.
64
+ DSH `0.2.1-rc.1`'s stock session compatibility boundary retains the validated DSMM behavior: the 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.
112
65
 
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.
66
+ 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.
114
67
 
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.
68
+ For a composition using the stock row below, this is a **partial template**, not a ready-to-copy replacement:
116
69
 
117
70
  ```yaml
118
71
  - id: session-persistence-jsonl
@@ -121,40 +74,24 @@ For the proven stock base Web/headless/Desktop bundle row, the exact target is I
121
74
  - id: dsmm
122
75
  name: '@dsmm/dsmm'
123
76
  config:
124
- # Retain ALL existing DSMM config values here.
77
+ # Retain every existing DSMM config value here.
125
78
  sessionPersistence:
126
79
  root: '<unchanged-effective-absolute-root>'
127
80
  compression: '<unchanged-effective-zstd-or-none>'
128
81
  ```
129
82
 
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.
83
+ 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
84
 
148
- ## Evidence limits
85
+ This prevents unsafe future writes but does not repair existing unmarked logs. 0.3.0 supplies no repair entrypoint. Don't bypass unknown-event guards, delete history, or silently reset a failed restore.
149
86
 
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.
87
+ ## Installing or upgrading a real Host
151
88
 
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.
89
+ Use a checked exact 0.3.0 candidate artifact for evaluation, following the [isolated example](../README.md#use-a-local-artifact). Registry presence is not terminal completion. Publication follows separate [release controls](releasing.md); no automatic Desktop installation is claimed here.
153
90
 
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.
91
+ Current CLI/headless evaluation must use a DSH `0.2.1-rc.1` installation-owned carrier, preserve unrelated Loader rows, provider/account catalogs, role policies and UI preferences, and follow explicit startup requirements. 0.3.0 does not supply an old Desktop/TUI migration path, and a renamed or copied profile is not supported activation. Confirm native inventory and actual UI only with authorization; don't use anonymous RPC as a shortcut.
155
92
 
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.
93
+ 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
94
 
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.
95
+ 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
96
 
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.
97
+ *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.1-rc.1`,仅豁免下述场景的阶段性验收,不豁免其他测试失败或发布检查。
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
+ 修复须在当前原生审批与 Activation 接口下建立准确的单次调用关联,并经实际运行验证;不得将一次审批扩展为其他输入或后续调用的授权。
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