@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
package/README.md CHANGED
@@ -1,106 +1,76 @@
1
1
  # DSMM for DeepSeek Harness
2
2
 
3
- DSMM (`@dsmm/dsmm`) provides native configuration and control for DeepSeek Harness, with Deepwork as an optional module. It isn't an OpenCode compatibility layer.
3
+ DSMM (`@dsmm/dsmm`) adds native configuration, role delegation and child controls to DeepSeek Harness. **DSMM** is the Plugins page and package title; **Deepwork** is its optional workflow module. It isn't an OpenCode compatibility layer.
4
4
 
5
- This guide targets **0.2.0** and SDK `@deepseek-ai/dsh@0.2.0-rc.2`. The native Plugins → **DSMM** page exposes global/profile deployment settings and captured state; **Deepwork** names the optional module/mode, and roles are displayed as **DW Role**. Official Desktop source compatibility is tracked separately at `5badb15009ae1756c3afe0ae0cef1faafc290ccc` (`0.2.1-alpha.1`), without changing the SDK pin.
5
+ This guide describes the **0.3.0 pure-compatibility source candidate**, targeting exact `@deepseek-ai/dsh@0.2.1-rc.1`, DSH engine range `>=0.2.1-rc.1 <0.3.0-0`, and Node.js 22 or later. Its product surface is the 0.2.2 delivery plus the DSH rc.1 compatibility work and public Agent registry entry; unrelated deployment UI, automatic runtime selection, and release-topology redesign are not part of 0.3.0. A source version is not publication proof: evaluate the exact packed artifact and require terminal release evidence separately.
6
6
 
7
- This guide doesn't claim that 0.2.0 is published or that Electron/Desktop acceptance has passed. Registry installation and Desktop rollout require this version's terminal `COMPLETED` release proof and separate authorization. Release requirements are in [release policy](docs/releasing.md); historical identities and evidence belong in Git and release records.
7
+ ## What the candidate provides
8
8
 
9
- ## Current functionality
9
+ ### Native configuration and profiles
10
10
 
11
- - Opt-in deepwork mode and `/deepwork [off|message]`, plus the inspection-only `/dsmm-status [json]`.
12
- - Global-only `modules.deepwork.enabled` ceiling (default `true`), separate from ordinary mode default `false`. Core configuration and the native DSMM Plugins page remain usable when DW is cold-off, without a conversation/session. Desired-on then requires an explicit independent restart; save does not restart, remount or cancel work. Existing parents/future children retain their captures. See [module lifecycle and APIs](docs/settings-status.md#global-module-ceiling-d0).
13
- - Native DSMM item, installed-bundle page and actual row Config page. **Save Global DSMM** changes only central `config.json`; **Save current DSH profile override** uses that exact entry's native form/revision and changes only its native patch. Every applicable feature has structural controls or bounded schema-validated Advanced JSON. Explicit/default pins, inheritance, higher Host pins, desired/startup/next-root/current admission and revision conflicts remain distinct. There is no Save-all or second settings store. See [native deployment UI](docs/settings-status.md#native-plugins-configuration-d).
14
- - Fourteen configurable Agent-scoped skills, including core workflow and specialist resources, with metadata discovery and lazy body loading. Explicit Deepwork off hides DSMM skills without removing host/project skills.
15
- - The 22-role inventory has 11 base roles and 11 categories displayed as `DW …`, with enabled DW Orchestrator, DW Builder and DW Planner eligible for the native root Agent preset selector. The other 19 items are auxiliary; cross-cutting defaults off. Read-only constraints retain native tool-composition authority. Models remain user-selected; Oracle names alone don't guarantee model heterogeneity.
16
- - Exact-route V41 Flash calibration for `deepseek-official/deepseek-flash` and `deepseek-account/deepseek-flash`, preserving V4 Pro settings. Runtime selects only adapter-advertised reasoning efforts.
17
- - Delegated-role provider/model/exact-effort controls, ordered candidates, independent per-role `startup-lock` (default) or explicit `rate-limit-fallback`, and finite correlated no-output-safe retries. Ordinary roots keep their native initial model and exact effort, not a profile-role primary; explicit native model choices remain authoritative across later turns, profile reapply and cold resume. Supported explicit overrides survive for trusted live, owned, zero-prefix one-shot children. No new model-visible model-selection permission is added; exact configured efforts are not downgraded.
18
- - Native Settings → Deepwork Profiles (`Deepwork 配置档`) with structured role/retry controls and byte-preserving Advanced JSONC. Global default and current-session Apply are distinct; CAS-protected sidecars pin independent immutable revisions and admission epochs. Save alone activates neither scope.
19
- - One icon-only native profile menu in sessionless, blank and active views with one profile list: normal profile switching keeps the current model after successful profile CAS and never selects a model. The single `@use-model` action, **Use profile model**, reads the current admitted immutable profile's model without reapplying a subsequently saved draft revision. It uses native model selection and native-default persistence like the Models tab, with existing manual-model-intent race fencing; a newer native choice remains authoritative. Disabled mutations do not hide state or refresh. Successes use accessible live announcements only, never persistent visible success prose; errors are short sanitized allowlisted codes/fields with refresh/retry guidance, never raw wire messages or paths.
20
- - **Deepwork** toggle: official minimal conversations default off unless a saved explicit `deepwork/mode` event says otherwise. Explicit same-default choices persist, and mode intent survives profile changes and reopen. DW presets default on but aren't locked; explicit off retains persona, read-only and Git/host permissions. Sessionless, busy or unavailable mutations fail closed.
21
- - Scoped shell/Git/plan/question/todo guards and separately opt-in bounded idle continuation.
22
- - Optional external `ocmm-lsp mcp` integration with nine tools including atomic `format`. Debugging/DAP is an on-demand skill, not additional LSP tools or automatic prompt injection.
11
+ **Plugins → DSMM** edits the sparse global deployment base. The bundle and actual row Config pages also expose the native profile override when the Host supplies its authorized form. **Save Global DSMM** changes only central `config.json`; **Save current DSH profile override** changes only that exact native entry's patch. Neither save restarts the Host, cancels work or applies a named profile. Core settings remain usable without a session and with Deepwork cold-off.
23
12
 
24
- The native host owns child-session controls, depth limits, permission checks, cancellation, and model authentication. DSMM does not replace those with an OpenCode retry dispatcher.
13
+ **Settings → Deepwork Profiles** separates four states: editor draft, saved revision, future-default pin and current-session admission. Save doesn't activate a revision. Future-default selection leaves existing Agents alone; current-session Apply requires the exact idle ordinary root, selection CAS and admission epoch. Invalid JSONC and conflicts remain visible without discarding the draft. `blank-label` is a nonblocking warning; unknown, unsafe and retired fields still refuse.
25
14
 
26
- Native plugin metadata comes from exported `locale/en.json` and `locale/zh.json` resources with `meta.title: DSMM` and localized descriptions, not an invented manifest `displayName`. `/dsmm-status`, `/deepwork`, `dsmm-*` role IDs, callable tools and persistence formats remain compatible technical interfaces. Branding does not change activation, permissions or routing.
15
+ The Conversation profile menu preserves the native model when switching profiles. Its separate **Use profile model** action reads the current admitted immutable revision, not a later saved draft. Newer native model/effort intent remains authoritative. The **Deepwork** toggle persists explicit intent, including same-default choices; DW presets default on but can be turned off without losing persona or permission boundaries. Sessionless controls don't create a session, and busy/unavailable mutations fail closed. See [profiles](docs/profiles.md) and [settings/status](docs/settings-status.md).
27
16
 
28
- Durable session metadata requires explicit deployment-only `sessionPersistence: {root, compression}` configuration. The main `@dsmm/dsmm` Loader entry internally mounts the native JSONL companion and waits for readiness before runtime hooks. The public `./session-persistence` export is a library building block, not a second Loader entry to install alongside the client package. Preserve the existing effective root/compression and disable the exact stock JSONL row at startup; there is no automatic custom-root migration or hot replacement. An incompatible durable provider blocks DSMM custom appends; ephemeral Hosts without persistence remain allowed. Existing unmarked logs require separately authorized backup/metadata repair, never automatic rewriting. See [persistence compatibility](docs/compatibility.md#session-persistence-compatibility) for startup requirements and artifact checks.
17
+ ### Roles, models and language
29
18
 
30
- ## Install and configure
19
+ The inventory contains 11 base roles and 11 categories displayed as `DW …`. Only enabled Orchestrator, Builder and Planner are root-eligible; the other 19 are auxiliary. Cross-cutting defaults off. Role-disabled diagnostics distinguish required roles, startup availability, deployment enablement and actual admission. Catalog visibility isn't execution permission, and role names don't guarantee different models.
31
20
 
32
- ### Layered configuration and capture
21
+ Delegation supports `level:"normal"` by default and explicitly configured `low`, `high` and `max` for eligible targets. Exact unsupported effort refuses rather than degrading. `subagents.toolTopology` selects per-role tools or parameterized `dsmm_role`/`dsmm_category` tools. Model-facing `route` overrides are absent unless deployment explicitly grants them; named profiles can't grant that permission. Ordinary roots retain native provider/model/effort. Child primary routes supply defaults, not unconditional overrides.
33
22
 
34
- DSMM core owns layered configuration and capture independently of Deepwork. Native ConfigEditor can emit a compatibility `loader/partial-dispose` signal without actual fiber disposal; see [save authority and concurrency](docs/settings-status.md#save-authority-and-concurrency).
23
+ Named profiles can narrow enabled roles and capture visible-output `locale`: `en`, `zh-Hans`, `zh-Hant`, `ja`, `ko`, `de`, `fr`, `es`, `pt-BR`, or `ru`. A user's explicit output-language request wins. Locale doesn't change internal reasoning, UI/project language, technical IDs or exact quotations. Children keep their captured route, locale and authority after a parent profile change. See [model routing](docs/model-routing.md) and [Agent presets and child control](docs/agent-presets.md).
35
24
 
36
- The public home resolver is loaded through `createRequire` anchored at the declared filesystem peer. Priority is trusted explicit `profileContext.home` → `DSH_HOME` → official `~/.dsh`. DSMM uses `<resolvedDshHome>/plugins/dsmm` by its own convention, **not an official mandated plugin layout**. Sparse `config.json` provides global deployment values; the actual native entry/profile supplies explicit sparse overrides. Business defaults → global → profile → applied immutable named/session overlay is the resolution order. Objects merge recursively, arrays replace, and unset removes only the current layer's key. Explicit same-default values remain overrides. Invalid/unknown/prototype keys, non-JSON data and raw refs are rejected. `DSMM_CONFIG_SCHEMA` stays plain/sparse; native `Config` uses separate optional volatile `DSMM_NATIVE_CONFIG_SCHEMA` transport, not expanded defaults.
25
+ ### Child execution and controls
37
26
 
38
- Startup awaits validation before mounting consumers, then freezes its snapshot. New ordinary roots await latest valid desired deployment plus the applied immutable overlay. Old roots and their future children keep the entire old snapshot/epoch; an idle profile switch changes only the overlay on that old deployment baseline. `getSettings(agent)` is authoritative; no-argument `getSettings()` stays the validated runtime named default. `modeName`, `promptOrder`, standing presets/materialization and LSP stay startup-scoped. Role policy intersects startup substrate and permissions; absent capability requires explicit restart. Saves don't create a restart/idle queue or cancel old admitted work.
27
+ Foreground one-shot is the default. With explicitly enabled native jobs, an authorized handoff transfers the **same running native one-shot** to background, preserving its run identity rather than spawning a second child. The child panel shows real runs, direct children and a read-only descendant tree, with initial capture versus own native request route and explicit unknown/disabled states.
39
28
 
40
- Central `profiles/` shares named drafts/revisions, while `.state/<sha256(canonical-profile-identity+actual-entry)>/` isolates selections and session sidecars under the same documents lock. The old explicit `.../dsmm-profiles` constructor remains compatible. If the current profile's exact old library exists, runtime origin is strictly read-only with no lock/write, retaining full immutable pins. Corruption refuses rather than choosing a central same-name draft. Copy/import is explicit, non-destructive and fixture-verified only, not a production migration framework. Native auth/sessionPersistence locations aren't moved. See [profiles](docs/profiles.md).
29
+ Managed direct continuable children support **Queue**, **Steer** and interrupt under current exact-parent authority. Idle/cold continuation retains the durable child ID; a terminal one-shot isn't a continuable session. An inbox receipt means accepted, not completed. Unknown transport outcomes retain the draft and disable automatic resend. Refresh doesn't retry a send. These controls require the explicit ready Host runtime described below; seeing a panel or role catalog alone doesn't prove availability.
41
30
 
42
- The fixed `dsmmConfig` Remote `describe`/`describeModules`/`describeSettings`/`save` backend accepts exact edits and no root/file/entry arguments. All require native invocation peer identity equal to `connection.operator`, public current `webServer.host === '127.0.0.1'` and `settings.writable === true`, with lifetime/connection rechecks before commit. It is core-owned and remains available on cold-off. Unknown/remote carriers fail closed; client `isLoopback` isn't trusted. Reverse proxies/tunnels aren't automatically safe. This is a local writable control-operator capability, not a model tool.
31
+ Native Host ownership still governs lifecycle, depth, permissions, cancellation, storage, attachments and model authentication. DSMM adds capture and delivery fences, not a replacement scheduler or a second retry dispatcher. [Runtime recovery](docs/runtime-recovery.md) describes finite, positively no-output-safe retries and per-role `startup-lock`/opt-in `rate-limit-fallback`; partial text, reasoning or tool fragments forbid replay.
43
32
 
44
- Reads create no files or locks. Global save uses actual-byte SHA256 (or absent) CAS, a cooperative lock, final revision recheck and temp-file rename; it isn't a universal transaction against external editors. It doesn't touch profile patches or invoke Loader patch/reload/dispose/cancel. Native profile saves use only volatile transport and native authorization/CAS. The two layers aren't a cross-layer transaction. See [settings/status](docs/settings-status.md) for the backend and native UI boundaries.
33
+ ### Workflow resources
45
34
 
46
- ### Installation and explicit profile overrides
35
+ Fourteen configurable Agent-scoped skills use metadata discovery and lazy body loading. Explicit Deepwork off hides DSMM skills without removing Host/project skills or role restrictions. Scoped shell/Git/plan/question/todo guards remain bounded by native authority. Idle continuation is separately opt-in. Debugging/DAP is an on-demand skill, not an automatic debugger service. `/deepwork [off|message]` and inspection-only `/dsmm-status [json]` are Host-adapter commands, not headless task-text commands.
47
36
 
48
- Only after 0.2.0 has terminal `COMPLETED` release proof, and installation into the intended profile is separately authorized, use `dsh plugin --profile <profile> add @dsmm/dsmm@0.2.0 --save-exact`. This command isn't authorization to install on a user's machine. For isolated development verification, use a built and packed artifact instead.
37
+ DSMM-managed external LSP isn't enabled in this version. Its implementation, interfaces and original configuration remain, but automatic MCP mounting stays off even with `lsp.enabled:true` and DSMM's settings UI hides LSP controls. DSH's own LSP and independently configured MCP are unaffected. The retained historical manual patch isn't a supported DSMM activation entry. Existing release checks still independently validate the retained LSP interface, without making automatic integration a delivered feature. See [LSP boundary](docs/lsp.md).
49
38
 
50
- Tracked source excludes gitignored frontend resources and provenance. With dependencies already provisioned and network access authorized, run `node dsmm/scripts/materialize-frontend.mjs --sync` from the repository root to fetch declared fixed-pin resources/licenses without executing vendor scripts. Then `node dsmm/scripts/materialize-frontend.mjs --check` and `node --experimental-strip-types dsmm/scripts/check-source-assets.mjs` verify resources offline before build/test. Ordinary build/check stays offline and fails closed on missing or drifted resources. See [source readiness](docs/releasing.md#cold-tracked-source-and-offline-distribution-checks) for distribution checks. These procedures don't authorize installation or publication.
39
+ ## Use a local artifact
51
40
 
52
- Desktop and CLI/TUI have independent native deployment profiles. Installing into `desktop` doesn't install into `dsh-tui`. A separately authorized TUI upgrade after 0.2.0 terminal completion uses `dsh plugin --profile dsh-tui add @dsmm/dsmm@0.2.0 --save-exact`. Launch with `dsh --profile dsh-tui` (or the TUI launcher); a bare `dsh` doesn't select the Desktop profile. Keep the target profile's existing bundle, provider, model, effort and environment-based preset/resume settings. Don't copy Desktop credentials or providers. When enabling durable Deepwork metadata, follow the single-provider [persistence startup procedure](docs/compatibility.md#session-persistence-compatibility), preserving the existing root and compression. Merely adding the package doesn't activate Deepwork.
41
+ Start with the exact built and packed 0.3.0 candidate supplied by artifact checks. Do not infer completion from a registry version alone. For a disposable CLI evaluation, the minimal installation step is:
53
42
 
54
43
  ```powershell
55
- pnpm --dir dsmm build
56
- pnpm --dir dsmm pack --pack-destination <temporary-artifact-directory>
57
44
  $env:DSH_HOME = "<disposable-test-home>"
58
- dsh --profile <profile> --from-default-profile headless --dump-config
59
- dsh plugin --profile <profile> add <absolute-path-to-dsmm-dsmm-0.2.0.tgz>
60
- dsh --profile <profile> --dump-config
45
+ dsh --profile <test-profile> --from-default-profile headless --dump-config
46
+ dsh plugin --profile <test-profile> add <absolute-path-to-local-candidate.tgz>
47
+ dsh --profile <test-profile> --dump-config
61
48
  ```
62
49
 
63
- Use a disposable `DSH_HOME`; don't point isolated tests at a real Desktop or CLI/TUI home. The template command initializes a fresh isolated headless deployment profile, not a DSMM runtime profile. For an existing Web profile, keep its original template and configuration. Desktop rollout also requires independent frozen-artifact Docker acceptance and terminal `COMPLETED` proof for 0.2.0. Only a separately authorized rollout may use its official installed carrier while the app is fully quit; these checks don't establish Electron acceptance. Read the [upgrade limitations](docs/compatibility.md) before rollout, especially older auxiliary-root sessions.
50
+ Use an empty test home and a fresh profile. These are operator-run examples, not permission to install software or touch a real Desktop/TUI profile. Headless needs a separately configured native provider and effective `defaultActive:true` for task execution; it doesn't select Agent presets. Don't copy credentials or account records into a test. `--dump-config` shows native Loader composition, not the full global-aware DSMM admission.
64
51
 
65
- On DSH 0.2, the profile's `cordis.patch.yml` supplies explicit overrides above the sparse DSMM global base. This example pins profile values; it isn't the JSON format for `config.json`:
52
+ For a real installation, authorize the target DSH `0.2.1-rc.1` carrier and profile separately after artifact checks. Keep the existing provider/account configuration, exact effort, unrelated Loader rows and current history. 0.3.0 supplies no old Desktop/TUI profile migration; a standalone CLI or copied Desktop profile isn't a substitute, and package installation alone doesn't prove Electron activation.
66
53
 
67
- ```yaml
68
- - id: dsmm
69
- config:
70
- defaultActive: true
71
- workflow:
72
- policy: risk-based
73
- deepseekFlashCalibration: auto
74
- deepseekFlashDefaultReasoningEffort: high
75
- ```
76
-
77
- This runtime-baseline example is not the full durable-persistence patch. Native patch `config` replaces the whole DSMM config: retain all existing settings when adding `sessionPersistence`. A YAML `name` asserts the targeted plugin identity; it does not rename it. Keep exactly one active main DSMM package Loader source to avoid competing native client contributions. See the [startup procedure](docs/compatibility.md#session-persistence-compatibility).
54
+ ### Explicit managed runtime startup
78
55
 
79
- Don't copy the old `settings.yaml` namespace or preset-discovery roots into the new host. New runtime drafts live at `<resolvedDshHome>/plugins/dsmm/profiles/<id>.jsonc`, with profile/entry-scoped state. An existing current-profile legacy library keeps its read-only origin; nothing is automatically migrated. There is no embedded profiles object in plugin config. See [runtime profiles](docs/profiles.md), [settings/status](docs/settings-status.md), and [agent roles](docs/agent-presets.md).
56
+ The 0.3.0 bundled `cordis.patch.yml` is an explicit cold-start composition. It disables the exact stock `agent` and `subagent` rows, loads one public `@dsmm/dsmm/agent-registry`, one `@dsmm/dsmm/subagent-runtime`, and the main `@dsmm/dsmm` entry in the same Host scope. Missing, duplicate, unready, or wrong service ownership fails closed. Preserve native spawn/fork/model/Gateway services and any deliberate capacity/depth settings. Apply package or patch changes only while the Host is stopped, then restart; running stock services are never hot-replaced or shadowed.
80
57
 
81
- The [historical migration guide](docs/migration-from-ocmm.md) is for earlier ocmm/DSH adapter installations; use the current profile and upgrade guides above for 0.2.0.
58
+ `@dsmm/dsmm/agent-registry` maps to the public `DsmmAgentRegistry` entry and `@dsmm/dsmm/subagent-runtime` maps to `lib/runtime-integration.js`; the latter remains the explicit Host-owned startup plugin. 0.3.0 exposes sixteen public exports: it adds Agent registry and retires the legacy-read entry. This composition is not automatic runtime selection or hot replacement. Inspect settled Loader rows, the actual `agents` and `subagents` service owners, `binding`, `deliveryFenceReady`, and `restartRequired`; configuration intent alone is not proof. See [runtime composition](docs/settings-status.md#child-runtime-composition) and [compatibility](docs/compatibility.md).
82
59
 
83
- For a delegated-role model, configure `roleRouting.dsmm-reviewer.primary` with native `provider`, `model`, and optional `reasoningEffort`, then choose its strategy/retry policy where needed. These policies do not silently replace the ordinary root's native model; using a profile's main-model choice is an explicit user action. There are no built-in provider routes or API keys. See [model routing](docs/model-routing.md) and [runtime recovery](docs/runtime-recovery.md) for admission, bounded RATE_LIMIT rollover and migration from old generic automatic fallback.
60
+ ### Configuration and capture boundaries
84
61
 
85
- Without active mode, DSMM common workflow/skills don't apply; a selected DW persona retains its independent permission boundaries. Applying a runtime profile doesn't select a role. Global named Apply and desired deployment saves leave existing live Agents, including blank Agents, unchanged. A separate current-session Apply reserves native idle maintenance and changes only that root's overlay/epoch on its old deployment baseline; old children stay old, later native children inherit the new snapshot. Cold resume uses an explicit origin-pinned sidecar, otherwise the scoped named default, with current valid desired deployment in a new admission. Headless task text isn't a slash-command adapter.
62
+ Resolution is **defaults → sparse global deployment → explicit native entry/profile → immutable named overlay**. Objects merge, arrays replace, and unset removes only the current layer's key. Global storage is `<resolvedDshHome>/plugins/dsmm`, a DSMM convention; trusted home resolution uses explicit `profileContext.home`, then `DSH_HOME`, then the native `~/.dsh` default.
86
63
 
87
- ## Verification
64
+ Startup freezes mounted capabilities. New ordinary roots capture current valid desired deployment; existing roots, including blank ones, and their future children keep their baseline. Explicit idle profile Apply replaces only the permitted overlay on that old baseline. Existing children stay captured. Saves don't remount services or upgrade permissions; absent startup capability requires restart. Global-only `modules.deepwork.enabled` defaults true, while ordinary mode defaults off. Turning the module on from cold-off requires an explicit restart.
88
65
 
89
- ```powershell
90
- pnpm --dir dsmm typecheck:test
91
- pnpm --dir dsmm test
92
- pnpm --dir dsmm check:release
93
- pnpm --dir dsmm smoke:docker
94
- ```
66
+ Global writes retain byte-revision CAS, cooperative locking and final recheck; native profile saves retain their own authorization/CAS. They aren't a cross-layer transaction or protection against every non-cooperating editor. The fixed configuration RPC requires a real native owner Peer created by Connection, public loopback bind, writable Host and lifetime rechecks. A loopback-looking URL or client assertion doesn't grant access.
95
67
 
96
- A separately authorized credentialed, packed real-model diagnostic is also available. It isn't the independent Docker/UI release gate, which must not copy credentials, sessions, Desktop configuration or browser authentication:
68
+ Durable DSMM metadata needs explicit deployment-only `sessionPersistence` on the main entry, preserving the existing effective root/compression and disabling the exact stock JSONL row at startup. The public `./session-persistence` export is a library building block, not a second Loader entry. See [persistence compatibility](docs/compatibility.md#session-persistence-compatibility).
97
69
 
98
- ```powershell
99
- node dsmm/scripts/live-dsh-smoke.mjs --runtime <npm-prefix-with-pinned-dsh> --package <packed-dsmm.tgz> --provider deepseek-account --credentials <existing-dsh-credentials-file> --receipt <sanitized-receipt.json>
100
- ```
70
+ ## Upgrade and safety limits
101
71
 
102
- Add `--delegate` to verify the actual `dsmm_reviewer` child persona, inherited Flash route and strict read-only tool inventory. Use `--probe-only` first to inspect the role schema without credentials or a model call. `--effort low` can keep this bounded smoke inexpensive; the runner checks the final persisted request header against that explicit choice.
72
+ 0.3.0 does not export the legacy-read host or package repair/cold-migration entrypoints. It accepts current version-3 child captures and current rc.1 persistence only; old captures, old profile libraries and unmarked historical logs refuse without being read, rewritten, copied, or auto-migrated. Retired `deepseekV4ProMaxReasoningPresets` and `deepseekFlashMaxReasoningPresets` reject with `deprecated-field`; configure explicit levels deliberately, without rewriting old fields automatically. Preserve unsupported history and obtain direction rather than substituting a persona or resetting a session. See [compatibility boundaries](docs/compatibility.md#retired-compatibility-surfaces).
103
73
 
104
- The test copies only native account records into a temporary home, verifies a real read/write/model round-trip, checks the exact route and DSMM prompt, and removes temporary credentials and sessions. It does not print reasoning or credentials, log into a browser, modify the original credential file, or silently use a different model. API-key testing uses `--provider deepseek-official` and an existing `DEEPSEEK_API_KEY` environment variable.
74
+ For earlier ocmm adapters, consult the [historical migration guide](docs/migration-from-ocmm.md). [Source synchronization](docs/skill-sync.md) covers fixed-pin resources and offline readiness. [Release policy](docs/releasing.md) covers publication evidence, which doesn't establish this candidate's Desktop/TUI activation. No user configuration, account, history or installation is automatically changed.
105
75
 
106
- These commands are verification procedures, not evidence that the final 0.2.0 artifact has passed. The dedicated DSMM workflow builds a fresh CI tarball with pnpm, Docker-gates its exact bytes, and publishes through OIDC with provenance. See [compatibility](docs/compatibility.md) and [release policy](docs/releasing.md) for terminal release proof and separate Desktop acceptance requirements.
76
+ *Author's note: For a DSH operator evaluating the local candidate; use an isolated artifact first and authorize each real installation separately. Compatibility repair is not part of 0.3.0.*