@dsmm/dsmm 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/README.md +38 -66
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +10 -2015
  3. package/agent-presets/dsmm-clarifier/agent.cordis.yml +24 -343
  4. package/agent-presets/dsmm-code-search/agent.cordis.yml +19 -6
  5. package/agent-presets/dsmm-coding/agent.cordis.yml +19 -438
  6. package/agent-presets/dsmm-complex/agent.cordis.yml +23 -1009
  7. package/agent-presets/dsmm-creative/agent.cordis.yml +25 -442
  8. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +29 -1013
  9. package/agent-presets/dsmm-deep/agent.cordis.yml +24 -1008
  10. package/agent-presets/dsmm-doc-search/agent.cordis.yml +19 -6
  11. package/agent-presets/dsmm-documenting/agent.cordis.yml +26 -439
  12. package/agent-presets/dsmm-frontend/agent.cordis.yml +21 -440
  13. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +22 -441
  14. package/agent-presets/dsmm-media-reader/agent.cordis.yml +19 -6
  15. package/agent-presets/dsmm-normal-task/agent.cordis.yml +19 -438
  16. package/agent-presets/dsmm-oracle/agent.cordis.yml +25 -340
  17. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +25 -340
  18. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +29 -2025
  19. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +24 -341
  20. package/agent-presets/dsmm-planner/agent.cordis.yml +14 -344
  21. package/agent-presets/dsmm-quick/agent.cordis.yml +19 -6
  22. package/agent-presets/dsmm-research/agent.cordis.yml +23 -8
  23. package/agent-presets/dsmm-reviewer/agent.cordis.yml +25 -340
  24. package/docs/agent-presets.md +36 -52
  25. package/docs/compatibility.md +50 -108
  26. package/docs/deferred-native-approval-risk.md +19 -0
  27. package/docs/design.md +2 -2
  28. package/docs/lsp.md +11 -21
  29. package/docs/migration-from-ocmm.md +2 -2
  30. package/docs/model-routing.md +84 -59
  31. package/docs/native-permissions.md +35 -0
  32. package/docs/profiles.md +40 -87
  33. package/docs/releasing.md +83 -2
  34. package/docs/roadmap.md +71 -17
  35. package/docs/settings-status.md +34 -169
  36. package/docs/skill-sync.md +52 -15
  37. package/lib/child-admission-contract.d.ts +37 -0
  38. package/lib/child-admission-contract.js +2 -0
  39. package/lib/child-admission.d.ts +42 -0
  40. package/lib/child-admission.js +162 -0
  41. package/lib/child-capture.d.ts +81 -0
  42. package/lib/child-capture.js +203 -0
  43. package/lib/child-evidence.d.ts +17 -0
  44. package/lib/child-evidence.js +43 -0
  45. package/lib/client/ChildrenPanel.d.ts +43 -0
  46. package/lib/client/ChildrenPanel.js +82 -0
  47. package/lib/client/DeploymentPage.js +15 -8
  48. package/lib/client/EditableChoice.d.ts +17 -0
  49. package/lib/client/EditableChoice.js +49 -0
  50. package/lib/client/PermissionsPanel.d.ts +14 -0
  51. package/lib/client/PermissionsPanel.js +46 -0
  52. package/lib/client/ProfilesSection.js +30 -15
  53. package/lib/client/RoleAvailability.d.ts +7 -0
  54. package/lib/client/RoleAvailability.js +19 -0
  55. package/lib/client/SessionProfiles.js +27 -9
  56. package/lib/client/StructuredEditor.js +15 -7
  57. package/lib/client/children-controller.d.ts +98 -0
  58. package/lib/client/children-controller.js +296 -0
  59. package/lib/client/children-locales.d.ts +367 -0
  60. package/lib/client/children-locales.js +69 -0
  61. package/lib/client/controller.d.ts +6 -1
  62. package/lib/client/controller.js +14 -8
  63. package/lib/client/deployment-data.d.ts +2 -1
  64. package/lib/client/deployment-data.js +34 -5
  65. package/lib/client/deployment-locales.d.ts +4 -0
  66. package/lib/client/deployment-locales.js +11 -2
  67. package/lib/client/diagnostics.d.ts +14 -0
  68. package/lib/client/diagnostics.js +53 -0
  69. package/lib/client/index.d.ts +4 -0
  70. package/lib/client/index.js +96 -2
  71. package/lib/client/locales.d.ts +54 -0
  72. package/lib/client/locales.js +34 -16
  73. package/lib/client/permission-client.d.ts +16 -0
  74. package/lib/client/permission-client.js +38 -0
  75. package/lib/client/permission-controller.d.ts +62 -0
  76. package/lib/client/permission-controller.js +149 -0
  77. package/lib/client/permission-locales.d.ts +114 -0
  78. package/lib/client/permission-locales.js +75 -0
  79. package/lib/client/session-labels.js +4 -4
  80. package/lib/client/structured.js +19 -5
  81. package/lib/client/styles.d.ts +1 -1
  82. package/lib/client/styles.js +20 -0
  83. package/lib/client.js +5780 -1679
  84. package/lib/core-permission-authority.d.ts +18 -0
  85. package/lib/core-permission-authority.js +255 -0
  86. package/lib/core-permissions.d.ts +8 -0
  87. package/lib/core-permissions.js +33 -0
  88. package/lib/delivery-authority.d.ts +68 -0
  89. package/lib/delivery-authority.js +260 -0
  90. package/lib/deployment-config.d.ts +23 -0
  91. package/lib/deployment-config.js +61 -40
  92. package/lib/deployment-permission-rules.d.ts +55 -0
  93. package/lib/deployment-permission-rules.js +306 -0
  94. package/lib/dsh-types.d.ts +10 -4
  95. package/lib/guards.d.ts +1 -1
  96. package/lib/guards.js +29 -8
  97. package/lib/host-llm-startup.d.ts +41 -0
  98. package/lib/host-llm-startup.js +65 -0
  99. package/lib/host-llm.d.ts +92 -0
  100. package/lib/host-llm.js +325 -0
  101. package/lib/index.d.ts +15 -4
  102. package/lib/index.js +300 -47
  103. package/lib/legacy-child-policy.d.ts +51 -0
  104. package/lib/legacy-child-policy.js +123 -0
  105. package/lib/legacy-read-composition.d.ts +20 -0
  106. package/lib/legacy-read-composition.js +144 -0
  107. package/lib/legacy-read-contracts.d.ts +157 -0
  108. package/lib/legacy-read-contracts.js +39 -0
  109. package/lib/legacy-read-host.d.ts +19 -0
  110. package/lib/legacy-read-host.js +67 -0
  111. package/lib/legacy-read-integration.d.ts +121 -0
  112. package/lib/legacy-read-integration.js +522 -0
  113. package/lib/legacy-read-proxy.d.ts +26 -0
  114. package/lib/legacy-read-proxy.js +237 -0
  115. package/lib/live-pi-ai-owner.d.ts +18 -0
  116. package/lib/live-pi-ai-owner.js +144 -0
  117. package/lib/llm-runtime.d.ts +11 -0
  118. package/lib/llm-runtime.js +21 -0
  119. package/lib/managed-settings.d.ts +5 -0
  120. package/lib/managed-settings.js +14 -0
  121. package/lib/model-parameter-policy.d.ts +11 -0
  122. package/lib/model-parameter-policy.js +27 -0
  123. package/lib/model-routing.js +28 -17
  124. package/lib/modules.d.ts +13 -5
  125. package/lib/modules.js +17 -1
  126. package/lib/native-child-evidence.d.ts +42 -0
  127. package/lib/native-child-evidence.js +133 -0
  128. package/lib/native-pi-ai-wire.d.ts +37 -0
  129. package/lib/native-pi-ai-wire.js +261 -0
  130. package/lib/native-scope.js +1 -1
  131. package/lib/permission-bash.d.ts +6 -0
  132. package/lib/permission-bash.js +7 -0
  133. package/lib/permission-control.d.ts +73 -0
  134. package/lib/permission-control.js +205 -0
  135. package/lib/permission-controller.d.ts +68 -0
  136. package/lib/permission-controller.js +317 -0
  137. package/lib/permission-errors.d.ts +7 -0
  138. package/lib/permission-errors.js +21 -0
  139. package/lib/permission-fs-search.d.ts +5 -0
  140. package/lib/permission-fs-search.js +7 -0
  141. package/lib/permission-fs.d.ts +5 -0
  142. package/lib/permission-fs.js +7 -0
  143. package/lib/permission-native-access.d.ts +11 -0
  144. package/lib/permission-native-access.js +6 -0
  145. package/lib/permission-native-command.d.ts +10 -0
  146. package/lib/permission-native-command.js +93 -0
  147. package/lib/permission-native-rules.d.ts +75 -0
  148. package/lib/permission-native-rules.js +278 -0
  149. package/lib/permission-pwsh.d.ts +6 -0
  150. package/lib/permission-pwsh.js +7 -0
  151. package/lib/permission-remote.d.ts +26 -0
  152. package/lib/permission-remote.js +53 -0
  153. package/lib/permission-rpc.d.ts +29 -0
  154. package/lib/permission-rpc.js +152 -0
  155. package/lib/permission-rules.d.ts +115 -0
  156. package/lib/permission-rules.js +256 -0
  157. package/lib/permission-settings.d.ts +45 -0
  158. package/lib/permission-settings.js +48 -0
  159. package/lib/permission-shell.d.ts +38 -0
  160. package/lib/permission-shell.js +150 -0
  161. package/lib/permission-web.d.ts +5 -0
  162. package/lib/permission-web.js +7 -0
  163. package/lib/preset-registry.js +36 -25
  164. package/lib/profile-diagnostics.d.ts +45 -0
  165. package/lib/profile-diagnostics.js +148 -0
  166. package/lib/profile-locale.d.ts +3 -0
  167. package/lib/profile-locale.js +2 -0
  168. package/lib/profile-remote.d.ts +8 -0
  169. package/lib/profile-remote.js +163 -39
  170. package/lib/profile-rpc.d.ts +4 -3
  171. package/lib/profile-rpc.js +14 -12
  172. package/lib/profile-runtime.d.ts +40 -1
  173. package/lib/profile-runtime.js +368 -93
  174. package/lib/profile-store.d.ts +11 -0
  175. package/lib/profile-store.js +143 -11
  176. package/lib/profile-types.d.ts +70 -1
  177. package/lib/profile-types.js +1 -0
  178. package/lib/profiles.d.ts +16 -2
  179. package/lib/profiles.js +156 -79
  180. package/lib/prompt-content.js +1 -1
  181. package/lib/prompts.d.ts +37 -2
  182. package/lib/prompts.js +111 -9
  183. package/lib/recovery-policy.js +20 -7
  184. package/lib/role-control-remote.d.ts +38 -0
  185. package/lib/role-control-remote.js +211 -0
  186. package/lib/role-control-rpc.d.ts +51 -0
  187. package/lib/role-control-rpc.js +377 -0
  188. package/lib/role-control-types.d.ts +92 -0
  189. package/lib/role-control-types.js +8 -0
  190. package/lib/role-invocation.d.ts +47 -0
  191. package/lib/role-invocation.js +135 -0
  192. package/lib/role-llm-runtime.d.ts +17 -0
  193. package/lib/role-llm-runtime.js +62 -0
  194. package/lib/role-llm.d.ts +31 -0
  195. package/lib/role-llm.js +66 -0
  196. package/lib/role-policy.d.ts +49 -8
  197. package/lib/role-policy.js +437 -60
  198. package/lib/role-providers.d.ts +1 -1
  199. package/lib/role-providers.js +30 -35
  200. package/lib/role-routing.d.ts +11 -2
  201. package/lib/role-routing.js +42 -25
  202. package/lib/role-runs.d.ts +135 -0
  203. package/lib/role-runs.js +304 -0
  204. package/lib/role-subagents.d.ts +58 -3
  205. package/lib/role-subagents.js +169 -56
  206. package/lib/roles.d.ts +5 -6
  207. package/lib/roles.js +10 -39
  208. package/lib/route-json.d.ts +19 -0
  209. package/lib/route-json.js +129 -0
  210. package/lib/routing-policy.d.ts +2 -0
  211. package/lib/routing-policy.js +12 -2
  212. package/lib/runtime-integration.d.ts +112 -0
  213. package/lib/runtime-integration.js +784 -0
  214. package/lib/runtime-recovery.js +18 -8
  215. package/lib/settings.d.ts +47 -13
  216. package/lib/settings.js +217 -82
  217. package/lib/skills.js +2 -2
  218. package/lib/status.d.ts +10 -1
  219. package/lib/status.js +11 -8
  220. package/lib/subagent-runtime.d.ts +45 -0
  221. package/lib/subagent-runtime.js +131 -0
  222. package/package.json +106 -56
  223. package/patches/subagent-runtime.yml +15 -0
  224. package/prompts/deepseek-flash.md +1 -1
  225. package/prompts/deepseek-v4-pro.md +2 -2
  226. package/prompts/deepwork.md +27 -18
  227. package/prompts/source/agents/clarifier.md +5 -3
  228. package/prompts/source/agents/orchestrator.md +18 -9
  229. package/prompts/source/agents/plan-critic.md +5 -1
  230. package/prompts/source/agents/planner.md +4 -2
  231. package/prompts/source/agents/reviewer.md +6 -0
  232. package/prompts/source/category/complex.md +4 -4
  233. package/prompts/source/category/creative.md +6 -4
  234. package/prompts/source/category/cross-cutting.md +10 -8
  235. package/prompts/source/category/deep.md +5 -3
  236. package/prompts/source/category/documenting.md +7 -1
  237. package/prompts/source/category/frontend.md +2 -2
  238. package/prompts/source/category/hard-reasoning.md +3 -3
  239. package/prompts/source/category/research.md +4 -2
  240. package/prompts/source/deepwork/claude-opus-5.md +2 -2
  241. package/prompts/source/deepwork/codex.md +1 -1
  242. package/prompts/source/deepwork/default.md +22 -15
  243. package/prompts/source/deepwork/gemini.md +23 -16
  244. package/prompts/source/deepwork/glm.md +21 -14
  245. package/prompts/source/deepwork/gpt.md +12 -6
  246. package/prompts/source/deepwork/planner.md +8 -5
  247. package/prompts/source/manifest.json +178 -63
  248. package/prompts/source/shared/dsh-host-contract.md +5 -3
  249. package/prompts/source/shared/locale.md +2 -2
  250. package/prompts/source/terminal/orchestrator.md +1 -1
  251. package/scripts/cold-profile-composition.mjs +329 -0
  252. package/scripts/cold-profile-sources.mjs +238 -0
  253. package/scripts/migrate-cold-profile.mjs +315 -0
  254. package/skills/ast-grep/SKILL.md +7 -4
  255. package/skills/brainstorming/SKILL.md +43 -22
  256. package/skills/coding-agent-sessions/SKILL.md +7 -4
  257. package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
  258. package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
  259. package/skills/debugging/SKILL.md +14 -9
  260. package/skills/debugging/references/methodology/00-setup.md +14 -62
  261. package/skills/debugging/references/methodology/02-investigate.md +4 -4
  262. package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
  263. package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
  264. package/skills/debugging/references/methodology/06-fix.md +6 -6
  265. package/skills/debugging/references/methodology/08-qa.md +5 -5
  266. package/skills/debugging/references/methodology/09-cleanup.md +15 -153
  267. package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
  268. package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
  269. package/skills/debugging/references/runtimes/native-binary.md +9 -54
  270. package/skills/debugging/references/runtimes/node.md +4 -15
  271. package/skills/debugging/references/runtimes/python.md +3 -15
  272. package/skills/debugging/references/runtimes/rust.md +2 -18
  273. package/skills/debugging/references/tools/dap.md +1 -1
  274. package/skills/debugging/references/tools/ghidra.md +4 -15
  275. package/skills/debugging/references/tools/playwright-cli.md +3 -15
  276. package/skills/debugging/references/tools/pwntools.md +4 -16
  277. package/skills/dispatching-parallel-agents/SKILL.md +18 -16
  278. package/skills/frontend/SKILL.md +7 -4
  279. package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
  280. package/skills/git-master/SKILL.md +7 -4
  281. package/skills/init-deep/SKILL.md +7 -4
  282. package/skills/receiving-code-review/SKILL.md +17 -12
  283. package/skills/remove-ai-slops/SKILL.md +39 -38
  284. package/skills/requesting-code-review/SKILL.md +19 -17
  285. package/skills/requesting-code-review/code-reviewer.md +13 -1
  286. package/skills/subagent-driven-development/SKILL.md +29 -26
  287. package/skills/subagent-driven-development/implementer-prompt.md +29 -11
  288. package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
  289. package/skills/using-git-worktrees/SKILL.md +7 -4
  290. package/skills/writing-plans/SKILL.md +29 -24
  291. package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
package/docs/releasing.md CHANGED
@@ -1,6 +1,87 @@
1
- # DSMM 0.2.0 Source Readiness, Release and Rollback
1
+ # DSMM Source Readiness, Release and Rollback
2
2
 
3
- ## Current working-source authority
3
+ ## 0.2.2 stable native release contract
4
+
5
+ The reviewed source identity is **@dsmm/dsmm@0.2.2**, tag **dsmm-scoped-v0.2.2**, artifact **dsmm-dsmm-0.2.2.tgz**. This is a distinct source and acceptance contract, not a relabelled 0.2.1 or 0.2.0 receipt or an inferred later-version override. Every historical tag, package, asset and receipt remains immutable. Separately authorized parent-owned Git operations select the final committed source; a working checkout or local smoke receipt is not release completion or publication authorization.
6
+
7
+ ### Stable delivery boundary
8
+
9
+ The sixteen public exports are `.`, `./preset-skills`, `./session-persistence`, `./subagent-runtime`, `./legacy-read-host`, `./managed-settings`, `./llm-runtime`, `./permission-bash`, `./permission-pwsh`, `./permission-fs`, `./permission-fs-search`, `./permission-web`, `./client`, `./package.json`, `./locale/en.json` and `./locale/zh.json`. The `./subagent-runtime` entry resolves to the real **Host-owned native plugin** `lib/runtime-integration.{js,d.ts}`, not the internal runtime class alone. `./legacy-read-host` exposes a **programmatic library factory**, not a Loader plugin or automatic migration facility. The seven managed-settings/LLM/permission entries resolve to their matching `lib/<entry>.{js,d.ts}` files. `permission-native-command` is a required internal compiled module, not a public export. Runtime JS and declarations, compiled client, packaged locales, skills, licenses and source provenance must all be present and match the frozen tarball and registry installation.
10
+
11
+ Stable acceptance covers configuration levels and topology, locale selection, Profiles draft/global-default/root-overlay/captured-child state, sanitized diagnostics, and native child controls. Saving a draft is not activation; global Apply affects future ordinary roots; current-session Apply is owner-authorized, idle-only and CAS-fenced; captured children retain their original immutable metadata and route. Read-only child policy, lifecycle ownership, before-inbox admission/delivery cutoffs, strict operator/Gateway authority and revision/epoch fences remain mandatory. Core stays mounted cold-off and exposes global/native-profile editors without creating sessions, remounting or silently restarting. A profile cannot bypass the global module master or startup substrate.
12
+
13
+ `experimentalLegacyRead` is **OFF unless explicitly configured through programmatic composition**. The removed `legacyRead` option is not consumed. Automatic legacy migration/rollout and the unfinished experimental legacy surface are not required release gates. The complete 375px/theme/Lighthouse matrix and production authenticated Web/Desktop activation are not claimed by the bounded first-usable browser acceptance.
14
+
15
+ The accepted native Allow/parent admission-epoch deferral is limited to the [documented approval scenario](deferred-native-approval-risk.md). It is not a fix or a waiver of other tests or release checks.
16
+
17
+ DSMM-managed external LSP stays off in this version, including with `lsp.enabled:true`, and its settings controls are hidden. The retained implementation, original configuration and historical manual patch aren't a supported activation entry. DSH's own LSP and independently configured MCP remain unaffected. The current `dsmm-release.mjs` validator still requires a completed `receipt.lsp` with `directNativeDiagnosticsAndFormat` and `nativeDshMcpClient`; `docker-smoke.mjs` independently exercises the retained interface. These requirements apply to the current release contract, not only historical versions. The unresolved Windows workspace-path diagnosis isn't a prerequisite for implementing this version's features and doesn't waive release validation. See [LSP boundary](lsp.md).
18
+
19
+ ### Explicit source and receipt APIs
20
+
21
+ The DSMM-local `release-contract.mjs` exposes exact `isSource022`, `sourceContractForVersion`, `startupProfileContract`, `COMPILED_NAMES_022`, `PUBLIC_RUNTIME_EXPORTS_022` and `STABLE_UI_CHECKS_022` policies. `startupProfileContract("0.2.2", {sourceContract: "0.2.2"})` selects **`stable-native-first-022`**. It does not select the 0.2.0 central startup proof or the old menu/mode grammar. An omitted source contract retains the historical default interpretation; an explicit mismatched or unreviewed source contract fails closed. Historical picker/session-profile producers refuse explicit stable native identities rather than fabricate old UI proof. Only exact reviewed versions enter release validators; unknown future versions are refused, never admitted through a SemVer range.
22
+
23
+ `dsmm-release.mjs` selects the shared six-check stable UI grammar only for exact reviewed 0.2.1/0.2.2 identities and binds it to installed version, artifact SHA256, genuine native Gateway/operator, observed RPC/stream activity, actual native bootstrap and cleanup. The 0.2.2 browser receipt kind is `native-client-stable-first-022`; Core, Web and headless native proofs must carry the actual `sourceContract`, installed `packageVersion` and frozen artifact SHA256. `dsmm-registry-install-probe.mjs` selects sixteen exports for 0.2.2 and nine for 0.2.1, with each version's own compiled inventory. `COMPILED_NAMES_022` adds `llm-runtime`, `managed-settings`, `permission-bash`, `permission-pwsh`, `permission-native-command`, `permission-fs`, `permission-fs-search` and `permission-web` JS/declaration pairs. Exact executable skill-resource white lists include packaged helpers and self-tests such as `dap.test.mjs` and `pi_family.py`; unlisted executable skill resources remain refused. `check-dsmm-release-completion.mjs` consumes these local validators; Root controls and all historical metadata, roles, mode, startup, receipt and default interpretations remain unchanged. The 0.2.2 exports and compiled additions do not expand historical inventories. Shared behavior never permits adopting or relabelling another version's proof, digest, commit, run or attempt.
24
+
25
+ `COLD_PROFILE_SCRIPTS_022` requires `scripts/migrate-cold-profile.mjs`, `scripts/cold-profile-composition.mjs` and `scripts/cold-profile-sources.mjs` in the 0.2.2 tarball, in addition to the existing repair-session scripts. The registry probe verifies their installed bytes and requires its `coldMigrationResources` check. These are exact 0.2.2 resources, not additions to the 0.2.1/0.2.0 script white lists. Their delivery does not authorize running a migration or installing into a user profile.
26
+
27
+ The source `check:release` command invokes `check-release-readiness.mjs` for exact 0.2.2. It requires the manifest's sixteen-export and package-files contracts, offline frontend resources, every source-derived compiled JS/declaration pair, required resource trees and operator scripts, including the three cold-profile scripts. It also requires `docs/native-permissions.md` and `docs/deferred-native-approval-risk.md`, license parity, DSMM locale metadata, native client registration and the profile deployment boundary, using a script-free npm pack preview. This source readiness receipt is not frozen-artifact acceptance, registry installation or terminal completion; the dedicated release validator's exact tarball whitelist must also accept the complete package.
28
+
29
+ ### Explicit source-test application fixtures
30
+
31
+ Cold-profile source tests require an explicit `DSMM_COLD_PROFILE_SDK_ANCHOR` pointing to the fixed rc.2 SDK manifest and `DSMM_COLD_PROFILE_GENUINE_SEED` pointing to a prepared, platform-matching application seed. Prepare that seed once in a new task-owned temporary directory:
32
+
33
+ ```powershell
34
+ $env:DSMM_COLD_PROFILE_SDK_ANCHOR = "<absolute path to the isolated rc.2 SDK package.json>"
35
+ $env:DSMM_COLD_PROFILE_GENUINE_SEED = "<new absolute task-owned temporary directory>"
36
+ node dsmm/test/prepare-cold-profile-genuine-seed.mjs --destination $env:DSMM_COLD_PROFILE_GENUINE_SEED
37
+ ```
38
+
39
+ This explicit preparation installs TUI `0.13.0` in an isolated profile and verifies the fixed Desktop source against its Git blob identities. It requires separately authorized network/package provisioning, refuses an existing destination and does not install into user profiles. Source-test consumption is offline: each case receives a physical, independently writable copy of the read-only seed. Missing or invalid inputs fail rather than falling back to a host SDK, downloading implicitly or skipping genuine application checks. Desktop tests invoke its actual `createPluginProfile`; they do not establish Electron activation.
40
+
41
+ CI extracts the fixed SDK into task storage, exposes the same manifest through `DSMM_TEST_DSH_ENTRY` and `DSMM_COLD_PROFILE_SDK_ANCHOR`, prepares one native-platform seed before source tests, and supplies `DSMM_COLD_PROFILE_GENUINE_SEED`. A Windows seed is not a Linux dependency closure. These fixtures do not replace frozen-artifact installation or native browser acceptance.
42
+
43
+ ### Fresh frozen-byte CI acceptance
44
+
45
+ The required dedicated workflow sequence is:
46
+
47
+ 1. Resolve the exact tag, peeled source, workflow/control commit, event, fixed run/attempt and trusted default-branch ancestry. Verify source inputs in a fresh cold checkout with the fixed offline source snapshot; no old-Root fallback, skip or developer-cache substitution is accepted.
48
+ 2. Run source checks and build. Materialize only the explicitly authorized fixed third-party resources before build-bearing commands. Preserve unchanged Root package/lock/dependency policy; missing SDK/native/language-server tools fail and require reporting, not workstation installation.
49
+ 3. Pack **once with pinned pnpm**, between pre/post `assert-source` guards. Freeze the exact `dsmm-dsmm-0.2.2.tgz` bytes. Only the checked generated outputs and fixed materialized resources may accompany tracked tagged inputs.
50
+ 4. Independently install the frozen artifact into fresh native Web/headless homes. Bind the tarball and every trusted acceptance/support script read-only. No checkout import, repack, receipt adoption or fake callback-only UI is acceptance.
51
+ 5. Recheck cold Core, native readonly/persistence/history/lifecycle gates, retained LSP interface smoke checks and real stable browser behavior. The cold public native composition must load base/web/DSMM bundles, explicitly disable stock subagent, load exactly one custom Host-owned runtime and Main, observe binding `dsmm`, `deliveryFenceReady: true`, `restartRequired: false`, and experimental legacy unconfigured/unavailable. Independent LSP smoke isn't activation of DSMM's automatic integration.
52
+ 6. Publish those unchanged accepted bytes through GitHub Actions OIDC with genuine CI provenance. No local publish token/static-auth fallback, publish retry or overwrite is permitted.
53
+ 7. Verify public registry digests, genuine provenance, exact registry bytes and a fresh profile-owned native headless installation; only then finalize non-overwriting public GitHub assets/checksums.
54
+ 8. Run the DSMM-local terminal checker for the exact terminated run/attempt from the released checkout.
55
+
56
+ The real compiled browser gate uses the native Renderer and supported composition-owned operator/Gateway at **1280×900**, with a local deterministic SDK provider and no online account, credentials or quota. Its exact six checks are `publicNativeCapturedChild`, `browserEditSaveWarning`, `browserFutureApplyAndStaleCas`, `browserCurrentApplyAndStaleCas`, `browserChildrenNativeInboxReceipt` and `browserChildrenNativeMessage`. The same receipt also requires a browser-triggered foreground-to-background transition for the exact published native run/child, one idempotent native job, actual job completion/output, read-only child denials and no-event/no-model-call cutoff refusals. Page errors and external requests must be empty; the producer must observe genuine native child message delivery and captured metadata, not merely return completion callbacks. No pre-CI local smoke receipt satisfies this gate: each new frozen CI tarball must exercise these surfaces again.
57
+
58
+ The required read-only hook support set is `profile-ui-harness-{server,browser,native}.mjs`, `native-picker-{harness,browser,proof}.mjs`, `release-contract.mjs`, `stable-native-acceptance.mjs` and `profile-ui-harness-stable021{,-native}.mjs`. The stable021-named files are shared behavior producers, not fixed receipt identities: exact 0.2.2 dispatches to `runStableNativeAcceptance` with `sourceContract: "0.2.2"`, checks the installed manifest and passes that identity into the native browser producer. The historical hook remains available for its own identities. The owned shell renders actual installed Profiles/Children contributions using the native Renderer and native UiSession scope, without replacing vendor bundles or manufacturing a session binding.
59
+
60
+ The owned native root uses the supported `standard` preset composition, including a Jobs controller serving its actual owner scope. Captured child identity binds the native session ID, admission epoch, route and immutable capture; start-count evidence compares the native child catalog. Background request-count evidence binds the original child model and fixture invocation, while native parent completion handling retains the parent's model authority.
61
+
62
+ The 0.2.2 registry visibility budget is **120,000 ms** by default, with at most **300,000 ms** explicitly permitted. Metadata, archive and provenance share one deadline; only post-publication HTTP 404 reads may wait. The special 20-minute policy remains exclusive to historical 0.1.9. Wrong bytes/provenance/identities and non-404 transport failures fail closed; publisher absence checks stay single-shot.
63
+
64
+ ### Terminal authority and immutable failure handling
65
+
66
+ After the authorized matching workflow terminates, use the released checkout and a new receipt path:
67
+
68
+ ```powershell
69
+ node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <actual-run> --run-attempt <actual-attempt> --control-sha <tagged-control-sha> --receipt <new-022-terminal-receipt.json>
70
+ ```
71
+
72
+ Only exit **0** with receipt outcome **COMPLETED** proves release completion. The five exact jobs (`import-bootstrap` skipped/NOT_APPLICABLE on the future lane), source/tag/control, fixed run/attempt, fresh Docker acceptance, registry install/provenance and public assets/checksums must agree. Workflow success, source tests, local packed smoke or an installed package alone are insufficient. Exit 1/FAILED or 2/UNRESOLVED preserves partial publication: report it, do not move/delete/recreate the tag, adopt another run's proof, repack, overwrite packages/assets or repair in place. A new version or same-identity rerun needs its applicable separate authorization.
73
+
74
+ Actual production login and Electron/Desktop activation remain unexercised; local installation or global/session migration is not authorized by the release proof. Rollback uses supported carrier operations and reviewed immutable versions with CAS/ownership checks, never credential/session restoration or overwriting later user changes.
75
+
76
+ ## Historical 0.2.1 source and proof authority
77
+
78
+ The exact **@dsmm/dsmm@0.2.1**, **dsmm-scoped-v0.2.1**, **dsmm-dsmm-0.2.1.tgz** identity retains its first-usable stable native interpretation. Its explicit `isSource021`, `COMPILED_NAMES_021`, `PUBLIC_RUNTIME_EXPORTS_021` and `STABLE_UI_CHECKS_021` policies select `stable-native-first-021` and browser receipt kind `native-client-stable-first-021`. The nine exports, six browser checks, Host-owned runtime, cold Core, CAS/captured-child/readonly/cutoff/background/bootstrap gates, OIDC/frozen-byte/registry/provenance and terminal requirements above apply to its own bytes and identity. Its native subproof interpretation and historical omitted-selector defaults remain unchanged; the 0.2.2 native version/digest fields are not retroactive requirements on old 0.2.1 receipts. The default visibility deadline remains 120,000 ms with a 300,000 ms maximum. `runStable021Acceptance` remains an exact 0.2.1 producer and refuses a 0.2.2 installation. No 0.2.1 artifact or receipt establishes 0.2.2 acceptance or completion.
79
+
80
+ ## Historical 0.2.0 source and proof authority
81
+
82
+ The following exact 0.2.0 contract retains its own metadata, catalog, mode/startup and receipt interpretation. It does not define 0.2.1 acceptance or authorize reuse of 0.2.0 bytes.
83
+
84
+ ### 0.2.0 working-source authority
4
85
 
5
86
  The reviewed source candidate is **@dsmm/dsmm@0.2.0**, tag **dsmm-scoped-v0.2.0**, artifact **dsmm-dsmm-0.2.0.tgz**. Native parity stages A/B/C0/C/D0/D change the working source; this is not the earlier release-only/menu-visibility candidate. Source readiness is not publication or installation completion. Only separately authorized parent-owned commit/push/tag/release operations may publish these bytes; installation waits for terminal completion. The historical proposal below preserves old identities, installed-state facts and proof contracts; it is not the current product specification or an executable release checklist for these changed bytes.
6
87
 
package/docs/roadmap.md CHANGED
@@ -101,24 +101,9 @@ Port the highest-value ocmm safety policies into dsh tool events.
101
101
  - Implemented guard behavior is scoped to dsmm mode or dsmm-managed agents by default, with `always` and `off` settings coverage.
102
102
  - Every implemented guard has a settings toggle and documented `[dsmm safety]` failure message in `docs/safety-guards.md`.
103
103
 
104
- ## v0.5 — MCP and LSP integration
104
+ ## LSP boundary for this version
105
105
 
106
- Status: implemented in v0.5 with disabled-by-default LSP settings, an opt-in `@deepseek-ai/dsh-mcp-client` patch for `ocmm-lsp mcp`, user documentation, direct MCP `tools/list`/diagnostics smoke coverage, and Docker dsh MCP bridge diagnostics smoke coverage.
107
-
108
- ### Goal
109
-
110
- Expose ocmm's LSP value through dsh MCP mechanisms.
111
-
112
- ### Deliverables
113
-
114
- - dsh MCP client configuration for `ocmm-lsp` or a renamed `dsmm-lsp` wrapper.
115
- - LSP tool documentation for diagnostics, symbols, definitions, references, and rename.
116
- - Docker smoke test that verifies the MCP server lists tools.
117
-
118
- ### Acceptance
119
-
120
- - A disposable dsh profile can call at least one LSP diagnostic tool through MCP.
121
- - Users can keep MCP/LSP disabled while using only dsmm mode prompts.
106
+ DSMM-managed external LSP isn't enabled in this version and has no scheduled delivery here. The implementation, interfaces, original configuration and historical manual patch are retained, but `lsp.enabled:true` doesn't activate automatic MCP mounting and LSP controls are hidden in DSMM's settings UI. DSH's own LSP and independently configured MCP remain unaffected. Existing release checks still independently validate the retained LSP interface; they don't make automatic integration a delivered feature. See [LSP boundary](lsp.md).
122
107
 
123
108
  ## v0.6 — Model routing and DeepSeek V4 Pro calibration
124
109
 
@@ -184,6 +169,75 @@ Expose dsmm settings ergonomically in dsh web-compatible surfaces while keeping
184
169
  - Headless users can configure dsmm through files.
185
170
  - Web users can inspect effective dsmm settings without editing YAML manually.
186
171
 
172
+ ## Planned directions: Adaptive invocation, Profiles, and child lifecycle
173
+
174
+ Status: **draft directions awaiting detailed planning.** Some underlying capabilities already exist; confirm each gap against the implementation and published package before defining work. These themes aren't the next npm version or a single release batch. The published package version `0.2.0` is separate from the older roadmap stage numbers, which remain unchanged.
175
+
176
+ ### Goal and boundaries
177
+
178
+ Let a caller select suitable resources for one role invocation, make Profiles easier to understand, and support task-appropriate delegation and child interaction. This section records candidate goals, not approval to change behavior, public APIs or safety policy.
179
+
180
+ All directions preserve role identity, read-only, tool-filter, depth and permission boundaries, the root native model, immutable revisions and session admission authority. No role enumeration, schema fields or state machine is defined here. Future settings, tools, visible status, prompt guidance and documentation must agree on the eventual contract.
181
+
182
+ ### Directions
183
+
184
+ #### Role invocation and routing
185
+
186
+ - Configure multiple resource levels for each eligible role and choose a level for one invocation without duplicating the role. Omission keeps the existing effective route. Whether that default is named `normal`, whether a level declares a complete route or a local effort override, and the override precedence remain to be defined.
187
+ - Show the level actually used in human-readable invocation status. Under either delegation layout, an explicitly authorized provider/model/`reasoningEffort` override applies only to that invocation: it doesn't persist, rewrite the role preset or change the root native model.
188
+ - Plan to remove `deepseekV4ProMaxReasoningPresets` and `deepseekFlashMaxReasoningPresets`, including their consuming paths. Old configurations need a clear diagnostic or an explicit migration; the choice is pending, and silent ignoring isn't acceptable.
189
+ - Keep resource level, adapter `reasoningEffort` and workflow process distinct. Retain the goal of reducing pointless process for small tasks, but a low resource level doesn't automatically cancel verification. Whether process needs a separate setting remains open.
190
+
191
+ #### Delegation-tool topology
192
+
193
+ Retain two candidate layouts: per-workflow-role tools plus one merged category-parameter tool, or two parameterized tools separating workflow roles from categories. This changes entry points, not the identity or permissions of the selected targets. Tool names, role/category classification and the default layout remain open.
194
+
195
+ Both layouts need clear invocation guidance matching the actual callable inventory and parameters, not guidance only for the split layout.
196
+
197
+ #### Locale
198
+
199
+ A global/profile language preference should apply consistently to visible planning and conversation from applicable DSMM roles. Define its inheritance path, supported values and precedence against the user's current language request; report unsupported values clearly. This preference isn't the host UI locale and doesn't change role identity, permissions or routing.
200
+
201
+ Prompt guidance may express an intended thinking language, but can't promise an unobservable internal reasoning language. Preserve code, identifiers, paths, commands, protocol names and quotations in their original form.
202
+
203
+ #### Profiles experience and policy
204
+
205
+ Distinguish the native deployment profile, a named Deepwork runtime profile and an agent role preset. These are conceptual labels, not new configuration fields. Here, "global default" means the named-profile default in the current runtime/deployment-entry scope, not deployment-wide `config.json` or a default shared by every native profile.
206
+
207
+ **Presentation.** User feedback describes controls and explanations as crowded, with existing status cues insufficient or scattered, not wholly absent. Make browsing, an unsaved draft and its saved revision, the global-default pin for future sessions, and the current session's admitted pin and epoch easy to distinguish. With no session, show current-session information as unavailable rather than guessing.
208
+
209
+ Saving isn't selecting the global default or explicitly applying to the current session. Explain these actions, including baseline/reset actions, and show why an action is disabled. Keep long explanations available on demand without hiding blocking reasons or the existence of warnings. Primary actions should remain reachable in a narrow panel. Preserve the native model catalog and Advanced JSONC capabilities without fixing a particular layout. Presentation changes alone don't change document format, storage, revisions, CAS or admission semantics.
210
+
211
+ **Agent availability.** Consider allowing a named runtime profile to disable optional agents and their DSMM-owned functionality, tools and delegation choices. Define the DW-required set before deciding which agents can't be disabled; report disallowed attempts explicitly. This policy can narrow, never exceed, deployment availability. It doesn't rewrite native deployment switches, affect other profiles or promise physical unloading of all inherited Host services. Make disabled-agent reasons visible.
212
+
213
+ Saving or changing the future-session default doesn't automatically change already-admitted sessions. Preserve explicit Apply as a capability governed by existing session authority; define its interaction with this policy rather than removing it or treating it as an implicit save effect.
214
+
215
+ **Diagnostics and tolerance.** Some load/save/apply diagnostics already exist. Improve their precision and availability at configuration surfaces: identify the specific field and reason, with sanitized output that doesn't expose secrets. Retain the user's goal of loading profiles with inconsequential problems as a candidate warning policy, with warnings continuously visible in profile state. Which problems qualify remains open; unknown fields and legacy fields aren't tolerated by default. Don't weaken permission, routing, version, revision or integrity rejection, silently ignore defects, or automatically rewrite the original file.
216
+
217
+ #### Background and child lifecycle
218
+
219
+ Retain four goals: model-chosen background delegation, user-requested foreground-to-background transition, reuse of an existing child, and messages to a running child. Some `run_in_background`, jobs, continuable-child and `send_message` foundations exist. Check what the published package actually exposes and where gaps remain instead of treating all four as missing.
220
+
221
+ Autonomous background choice must respect configuration limits and native ownership, capacity, depth and cancellation boundaries. Define continuable follow-up separately from revival of a terminated one-shot child or recovery across a cold restart; message delivery timing also needs confirmation. An existing child doesn't gain new permissions when its parent changes profile. These goals don't introduce an independent retry scheduler.
222
+
223
+ ### Candidate acceptance
224
+
225
+ These are future acceptance targets, not claims of current delivery. Items with pending semantics become assessable only after those decisions are defined.
226
+
227
+ - **Levels, overrides and legacy fields:** configured levels select the effective model/effort for one invocation; omission preserves the existing route, and visible status names the actual level. Authorized overrides don't persist or alter the root native model. The two max-reasoning preset fields have no consuming paths after removal, and old configurations receive the agreed diagnostic or explicit migration. Resource selection alone doesn't waive verification.
228
+ - **Topology:** both candidate layouts can be selected, with invocation guidance matching their callable inventory and parameters. Entry-point changes preserve target role identity and permissions; exact names, classification and default require definition first.
229
+ - **Locale:** supported preferences follow the defined global/profile and current-request precedence consistently across applicable visible role output. Unsupported values are diagnosed; preserved literals aren't translated, and no internal-reasoning or host-UI-language guarantee is implied.
230
+ - **Profile UI states:** browsing, draft/saved revision, future-session default pin and current admitted pin/epoch are distinguishable. No-session state is explicit; save, default selection, Apply and baseline actions have clear effects and visible disabled reasons. Narrow panels retain usable controls, catalog and Advanced JSONC access, with blocking reasons and warning presence visible and existing storage/CAS/admission semantics intact.
231
+ - **Agent disabling:** once the required set and policy are defined, optional-agent disabling narrows admitted availability within deployment limits, with attributable disabled reasons. Required-agent rejection remains explicit. Saves/default changes don't mutate admitted sessions; explicit Apply follows existing authority and doesn't grant old children new permissions.
232
+ - **Diagnostics and tolerance:** field-specific, sanitized diagnostics are available where profiles are configured. Any approved inconsequential defect remains a visible warning while the profile is usable; undefined classes, including unknown or legacy fields, gain no implicit tolerance. Protected rejection and original files remain intact.
233
+ - **Child lifecycle:** verify all four goals through the published invocation surface: autonomous background choice, user foreground-to-background transition, existing-child reuse and running-child messaging. Defined continuation and delivery semantics respect ownership, capacity, depth, cancellation and permissions, without an independent retry scheduler.
234
+
235
+ ### Pending decisions
236
+
237
+ - **Invocation contract:** eligible roles and level composition/default naming; full-route versus effort-only precedence; a separate process preference, if needed; diagnostic versus explicit migration for legacy fields; topology names, classification and default.
238
+ - **Language and Profiles policy:** locale values, inheritance and current-request precedence; the DW-required agent set and optional-agent disabling under explicit Apply authority; which inconsequential defects can receive persistent warnings without weakening protected rejection.
239
+ - **Child interaction:** published-package exposure and remaining gaps; autonomous background ownership/capacity/cancellation policy; foreground transition semantics; continuable reuse versus terminated or cold-restart recovery; message timing.
240
+
187
241
  ## v1.0 — Stable dsmm release
188
242
 
189
243
  ### Planned: abstract capabilities and Plugins management
@@ -1,206 +1,71 @@
1
1
  # Deepwork settings and status
2
2
 
3
- ## Commands and inspection
3
+ These are built source contracts, not a claim that the published `@dsmm/dsmm@0.2.0` artifact contains every source feature. Named policy is covered in [profiles](profiles.md), routing in [model routing](model-routing.md), and child authority in [Agent presets](agent-presets.md).
4
4
 
5
- `/deepwork [off|message]` changes the receiving session's mode. `/dsmm-status` reports bounded normalized state; `/dsmm-status json` returns a defensive JSON snapshot with version 1. Other input returns `Usage: /dsmm-status [json]`.
5
+ ## Deployment layers and native editors
6
6
 
7
- Human-facing status/mode copy uses Deepwork. Technical commands, JSON fields and configurable `modeName` remain unchanged. In the stage A working source, the **Deepwork** toggle controls common workflow and DSMM skill visibility with one activation decision: ordinary presets are opt-in/effective-default, official minimal defaults off, and DW roles default on only until a saved explicit `deepwork/mode` choice. Even a same-default choice persists; this intent survives profile changes and reopen. DW roles are no longer locked; explicit off does not remove persona/read-only/Git/host permissions. Busy commands are rejected instead of mutating an open turn or silently queueing a pre-step change. The header's existing idle/CAS path remains authoritative. This source change does not claim publication, installation or Config UI acceptance.
7
+ Effective settings resolve from **defaults → sparse global base → explicit native entry/profile override → admitted immutable named overlay**. The global base is `<resolvedDshHome>/plugins/dsmm/config.json`; a missing file is an empty layer. This is DSMM's storage convention, not a mandated Host layout. Trusted home resolution uses explicit `profileContext.home`, then `DSH_HOME`, then the official home default.
8
8
 
9
- Commands belong to the native command adapter. Headless task text is not a slash-command invocation.
9
+ <a id="native-plugins-configuration-d"></a>
10
10
 
11
- ## C0 layered deployment configuration
11
+ **Plugins → DSMM** edits the global base through fixed `remote.dsmmConfig`. The DSMM bundle and actual row Config pages also offer the current native-profile override through the public `ConfigPageForm`. Runtime entry ID, package ID, row ID and form namespace aren't interchangeable. A profile write requires the actual namespace, descriptor revision and matching raw base/user provenance. If that identity isn't available, the profile editor is unavailable or read-only; it never falls back to Global. The standalone Plugins item has no supplied profile form.
12
12
 
13
- The working source remains version **0.1.9**. C0 supplies centralized storage/sparse inheritance/immutable capture; C consumes those boundaries for native role policy, continuation/background and startup MCP. D0 adds the global Deepwork module ceiling. D adds the actual native Plugins pages below, with isolated rc.2 Web browser evidence. Publication, private migration, final artifact gates and actual Electron acceptance remain separate.
13
+ Global and native-profile controls have independent Save, Refresh and Discard actions and revisions. There's no Save all or cross-layer transaction. Missing keys inherit, explicit same-default values pin, and Unset removes only the edited layer's key, not a higher Host pin. Plain objects merge recursively and arrays replace. Full merged validation follows sparse-layer validation; unknown/prototype keys, non-JSON values and raw volatile refs refuse.
14
14
 
15
- Effective composition is **built-in defaults → sparse global deployment base → explicit native DSH entry/profile overrides → applied immutable named-profile/session overlay**. The global base is `<resolvedDshHome>/plugins/dsmm/config.json`, a UTF-8 JSON object containing only explicit DSMM fields. A missing file means an empty layer. The native entry remains a separate sparse layer in the active profile's Cordis configuration, not a copy of merged defaults. Named Profiles are runtime overlays, not another deployment layer editor.
15
+ Native structural controls and bounded schema-aware Advanced JSON cover applicable deployment settings. Advanced input is strict JSON, not named-document JSONC. Invalid text and conflicts stay visible. Refresh preserves dirty input and its original revision; explicit discard/reload rebases it. Connection replacement, disconnection, entry replacement and disposal fence old writes. Saving doesn't restart, cancel, apply a named profile or respawn LSP.
16
16
 
17
- `src/dsh-home.ts` resolves the public `resolveDshHome` export through `createRequire` anchored at the declared `dsh-skill-filesystem` peer. Priority is explicit trusted `profileContext.home`, then `DSH_HOME`, then the official `~/.dsh` default. Resolution failure is explicit, not a fallback to a developer's global SDK. **`home/plugins/dsmm` is DSMM's convention, not an official mandated plugin layout.** `profileContext.dir` identifies the native profile; it isn't used to guess home.
18
-
19
- `DSMM_CONFIG_SCHEMA` remains the plain sparse public ABI. Native Loader `Config` uses the separate `DSMM_NATIVE_CONFIG_SCHEMA`, with flat optional volatile transport fields. Full business defaults and validation apply after layer resolution, not as transport defaults. Legacy raw flat callers keep every explicit value, including a value equal to the built-in default. The removed `settings.register()` namespace and old `$DSH_HOME/settings.yaml` aren't DSMM storage interfaces.
20
-
21
- Direct public `Config(input)` calls return plain flat data and require complete explicit model-route pairs, preserving `resolveConfig(Config(input))`. Native Cordis consumes the same Config object's Standard Schema protocol to obtain sparse volatile refs. Sparse deployment-layer validation can inherit primary members across global/native layers; their full merge is revalidated. No schema-expanded defaults or resolved refs are used to infer raw presence.
22
-
23
- The snapshot's `profile` is the assembled explicit native entry layer, which can include bundle/home/CLI pins; it isn't a claim that every field came from the editable profile file. When available, `nativeForm.base`/`user` retain the public redacted descriptor provenance and `nativeFormRevision` is its actual CAS. Higher host pins cannot be cleared by profile unset; native ConfigEditor rejects a write whose result is overridden by another host layer. DSMM doesn't inspect private layers or evaluate `!!js` to guess presence.
24
-
25
- The following is an explicit native profile override, not the global file format. Keep existing values when editing a Cordis patch; its `config` replaces the row's config object:
26
-
27
- ```yaml
28
- - id: dsmm
29
- config:
30
- defaultActive: true
31
- modeName: deepwork
32
- workflow:
33
- policy: risk-based
34
- deepseekFlashCalibration: auto
35
- deepseekFlashDefaultReasoningEffort: high
36
- deepseekFlashMaxReasoningPresets:
37
- - dsmm-plan-critic
38
- - dsmm-reviewer
39
- runtimeRecovery:
40
- enabled: false
41
- lsp:
42
- enabled: false
43
- ```
44
-
45
- Plain objects merge recursively and arrays replace whole arrays. Missing keys inherit; an empty object doesn't erase inherited children. Valid explicit `false`, `0`, `""` and `[]` aren't omission. Unset removes a key only from the edited layer: profile unset restores global inheritance, global unset restores defaults. `null` is accepted only where the field schema permits it. Unknown/prototype keys, non-JSON values, cycles and raw volatile refs are rejected; the complete merged desired settings are validated before startup or admission.
46
-
47
- Native Settings **Deepwork Profiles** / **Deepwork 配置档** remains separate from plugin Config. New named drafts and revisions share `<resolvedDshHome>/plugins/dsmm/profiles/`; selection/session state is scoped by canonical native profile identity and actual DSMM entry ID. An existing current-profile legacy library is strictly read-only, with its original immutable pins retained and its origin shown in the named editor. See [runtime profiles](profiles.md) for formats and origin rules. Neither Web evidence nor these backend contracts proves Electron activation.
48
-
49
- Save changes only the draft. Global Apply pins an immutable revision for **new unscoped Agents only**; existing even-blank Agents retain their admissions. The separate current-session selector uses the native view's actual session ID and idle maintenance/CAS/epoch fences. It changes only that ordinary root and future children; old children retain their old epoch. Cold resume honors an explicit sidecar or, when absent, the current global default. Global reset and session baseline pinning are distinct and leave drafts intact.
50
-
51
- Here, “global Apply/default” means the runtime's scoped named-profile selection, not the shared global deployment file.
52
-
53
- ### Global module ceiling (D0)
54
-
55
- The only recognized module is `deepwork`, controlled by `modules.deepwork.enabled` **only in the global `config.json` layer**:
56
-
57
- ```json
58
- {"modules":{"deepwork":{"enabled":false}}}
59
- ```
60
-
61
- Missing/unset means `true`, preserving existing availability; ordinary-session `defaultActive` still defaults to `false`. This is an allowed upper bound, not a session-mode override and not a pin for every other global field. Native profile/volatile Config, direct legacy flat Config, named profiles and session overlays reject `modules`; unknown module IDs/fields and nonboolean enabled values refuse. Internally resolved/captured settings include the field without becoming an external profile input.
62
-
63
- Core remains installed and usable when Deepwork is off: fixed global configuration read/save, profile storage and immutable captures/CAS, status and mandatory identity/read-only/filter/native-permission fences. A cold-off startup does not register DW persona/common/calibration/workflow skills, role providers/aliases/controls, materialize presets, or mount DW routing/recovery/LSP. It does not delete bundled assets, presets or user data, or withdraw host/project skills, tools, LSP or subagents. A static DW preset may remain visible in the native filesystem picker; choosing it refuses before prompt-body/model execution. Unknown DSMM standing roots also refuse.
64
-
65
- With `guards.scope:"always"`, configured shell safety and Git deny/approval gates remain Core safety, including on a cold-off ordinary root. `guards.scope:"off"` retains its existing optional-guard semantics; mandatory identity/native permissions still apply. DW plan/todo/question/output helpers remain unavailable while the module is off. Genuine native foreign children receive Core identity admission from their exact live parent and captured epoch, without installing DW role tools or granting a generic-spawn bypass to a DW-authorized parent.
66
-
67
- Startup captures the actual DW substrate once. Each new ordinary root admits **latest valid global desired ∩ startup-mounted substrate ∩ existing policy**. Saving off on a mounted Host leaves old busy/idle parents and their future children on their exact captures, while new roots are off. Their generic/directed skills, standing presets, role aliases, continuable resume and mode-on requests cannot bypass the ceiling. Mode-on reports unavailable; saved historical mode intent is retained but never reported effective while the admitted module is off. Idle profile/mode changes only update that root's overlay/intent and do not absorb newer module state. Saving on after cold-off changes desired/pending only: no mount, reconciliation, disposal, cancellation, process launch or restart queue. New roots remain off/restart-required until an independently authorized Host restart. Restoring on does not rebind old off roots.
68
-
69
- For later Config consumers, `DSMM_MODULE_DESCRIPTORS` and `DsmmModuleState` (exported from the package root) are plain static first-party data, not dynamic third-party JS/provider/installer APIs. The additive, no-argument `dsmmConfig.describeModules` uses the same local writable operator authority as `describe`/`save` and reads the latest valid global state; it is not opened to unauthorized read-only carriers. It returns descriptor `{id,label,key}`, global/default desired source, `startupMounted`, `admitted` (`null` without an Agent), next-root admission/reason and pending/reason. `hostBundleEnabled` is explicitly `"unknown"`: installed files, loaded DSMM core, desired DW availability, mounted substrate, admitted module and active mode are different facts.
70
-
71
- `getSettings.moduleStates(agent)`, the optional session-profile response `modules`, and status `modules` project the receiving Agent's capture. `desired.capture` distinguishes `current-global`, `admission` and `startup`: a synchronous admission/status snapshot does not claim to have reread current disk state. D's UI combines the authorized current-global projection with the actual session projection instead of treating captured state as current desired. Native profile form revision/CAS remains separate; there is neither a Root-path RPC nor a cross-layer atomic save.
72
-
73
- ### Native Plugins configuration (D)
74
-
75
- Open native **Plugins → DSMM**, or the installed **DSMM** bundle's page and its
76
- actual **Configure DSMM** row. The item registers `plugins.item`; bundle and row
77
- contributions use `plugins.bundle.config` (`@dsmm/dsmm`) and
78
- `plugins.row.config` (`@dsmm/dsmm#<actual-row-id>`). The public page props are
79
- `view: summary | page` plus optional `form`, not an invented standalone editor.
80
- Bundle pages do not automatically supply a form: DSMM obtains only the server-
81
- verified actual entry namespace's public ConfigForms seat. Row pages match their
82
- supplied native form's namespace, revision and exact base/user metadata. If that
83
- identity cannot be proved, profile controls are unavailable/readonly; they never
84
- fall back to writing Global. Other instances are not cross-written.
85
-
86
- The two editors have independent save/refresh/discard actions:
87
-
88
- - **Global DSMM** uses fixed `dsmmConfig.save(expectedRevision, edits)` and the
89
- actual-byte global revision. A save touches only `config.json`, retaining
90
- untouched sparse fields. It is independently discoverable with no conversation,
91
- named-profile client service or mounted DW substrate.
92
- - **Current DSH profile override** uses the actual native form `mutate` with its
93
- descriptor revision, never its schema-expanded `value` as raw presence. Only
94
- changed fields and explicit unsets are sent. Existing startup-only
95
- `sessionPersistence` is retained unchanged, not made editable or relocated.
96
- - Roles/skills, calibration, workflow/review, guards, routing/retry/recovery,
97
- subagent depth/background, preset materialization and LSP have native structural
98
- controls or bounded Advanced JSON for complete applicable field coverage.
99
- Advanced accepts strict JSON up to 32768 characters, closed known schema,
100
- duplicate/prototype-key rejection and immediate error feedback. Sparse primary
101
- members can inherit lower-layer members; the full merged value is validated.
102
- New providers/accounts/models are not installed or configured here. The existing
103
- native catalog/picker and independent named JSONC editor retain model authority.
104
- - Missing keys **inherit**; explicit same-default values are **default pins**.
105
- Unset removes only this layer, not higher Host pins. Modules' master is only in
106
- Global; profile/named/session controls cannot bypass the ceiling. Only the
107
- static known `deepwork` descriptor exists, not a registry/marketplace API.
108
-
109
- Module summary and the field-source disclosure separate **merged desired**,
110
- **startup-mounted/captured**, **next-root preview** (using the same admission
111
- preparation) and **current session admission**. Without an actual session, current
112
- admission is unknown; host bundle enablement stays unknown when not observable.
113
- Named/global/profile/default source and capture are distinct from raw CAS values.
114
- Cold-off desired-on shows pending independent restart, not success at hot mounting.
115
- Mounted-on desired-off affects new roots, not old parents/future children.
116
-
117
- Read-only `describeSession.configuration`, successful current-session selection,
118
- and `describeSettings` desired/startup/next-root layers use a Host-side defensive
119
- projection, not raw runtime settings or browser-only masking. LSP command,
120
- arguments and working directory, preset root and recovery continuation prompt
121
- use fixed `<configured>` markers; environment names are anonymous `variable-N`
122
- keys and values are `<redacted>`. Environment source/capture metadata is aggregated
123
- under `lsp.env` (mixed origins remain `mixed`), so even key names are not disclosed.
124
- The strict result codecs reject raw private values in those read-only layers.
125
- Actual `getSettings(agent)`, captured admissions and stored configuration are
126
- unchanged. Raw sparse Global/profile/native-form editor input remains available
127
- only through its existing C0 authorized editor boundary; it is not a status DTO.
128
-
129
- The inspector sorts the union of safe desired/startup/next-root/admitted values
130
- and source/capture paths, including fields present only in a named overlay. A
131
- missing field is **Absent**, not an invented built-in value; unavailable layers
132
- are **Unknown**. Startup sources come from the captured deployment when available.
133
- An actual session shows its ID, epoch and scope; a known session without its
134
- configuration projection is distinct from having no session. Apply and Baseline
135
- return the already-committed in-memory admission immediately, without a post-commit
136
- disk read or another validation that could reverse the successful transaction.
137
- Global refresh does not silently rebind or refresh a session admission. Dirty
138
- drafts/conflicts visibly remain separate from these captured revisions.
139
-
140
- Refresh preserves dirty edits and their original revision. A stale revision is a
141
- visible conflict; explicit **Discard draft and reload** alone rebases. Invalid
142
- numeric/JSON input stays visible and disables save. Entry changes, disconnection,
143
- connection-generation replacement and disposal fence old writes; no retry/rebase
144
- loop or common Save-all is used. Errors are localized sanitized allowlisted
145
- messages, never raw paths/arguments/environment/provider tokens; saving/success
146
- uses accessible busy/polite live feedback and native keyboard/focus behavior.
17
+ LSP isn't an applicable UI setting in this version. Its implementation, interfaces and original configuration remain, but DSMM settings hide LSP controls and automatic MCP mounting stays off even with stored `lsp.enabled:true`. Neither a save nor a restart enables it. DSH's own LSP and independently configured MCP are unaffected; the retained historical manual patch isn't a supported DSMM activation entry. See [LSP boundary](lsp.md).
147
18
 
148
19
  ### Save authority and concurrency
149
20
 
150
- The fixed `dsmmConfig` Remote backend exposes `describe`, `describeModules`, `describeSettings` and `save` for exact set/unset edits with an expected global revision. It accepts no file, root or entry arguments and isn't a model-visible tool. All operations require a local writable control operator: the native invocation peer must equal `connection.operator`, the public current `webServer.host` must be exactly `127.0.0.1`, and `settings.writable` must be `true`. Unknown or remote/nonloopback carriers are unavailable; client `isLoopback` isn't authority. Reverse proxies and tunnels aren't automatically proven safe. Save rechecks lifetime/connection authority before commit, so disconnect or disposal cannot authorize a late write. Core owns the existing Typert descriptor contribution once; global configuration service lifetime does not depend on the DW/profile UI service mounting.
151
-
152
- Reads create no directory, lock or config file. Saves use bounded safe file access, the actual bytes' SHA256 revision (or a distinct absent revision), a cooperative writer lock, final revision recheck and same-directory temporary-file rename. Stale or invalid input fails closed instead of overwriting it. Non-cooperating external editors can still race between the final recheck and rename; this isn't a universal external-editor transaction.
153
-
154
- Global save changes only `config.json`: no profile patch, Loader reload/patch/dispose, cancellation or automatic profile apply. Native profile saves use only the volatile transport, with native authorization and entry CAS. The two layers have separate revisions and no cross-layer transaction. A save response acknowledges that layer, not that every running consumer has adopted it.
155
-
156
- **Native signal distinction:** the rc.2 ConfigEditor/Include forced empty-pending reconciliation path emits the compatibility `loader/partial-dispose` signal even when it doesn't update or dispose a fiber. The real regression observes that signal while proving retained refs/fiber/services, zero actual scope/Agent disposals or updates, and completion of the original busy request. The signal alone isn't a lifecycle acknowledgment; no SDK patch, signal filtering or automatic restart hides it. Consumers must use actual lifetime/admission boundaries rather than treating this signal as disposal proof.
21
+ `dsmmConfig.describe`, `describeModules`, `describeSettings` and `save` use the existing local writable operator boundary. The native invocation peer must equal `connection.operator`, public `webServer.host` must be exactly `127.0.0.1`, and `settings.writable` must be true. A client loopback assertion, tunnel or reverse proxy isn't authority. These aren't model-visible tools and accept no arbitrary file, root or entry arguments.
157
22
 
158
- ## Workflow compatibility
23
+ Global saves use expected actual-byte revision, cooperative locking, a final revision recheck and same-directory atomic replacement. Authority and lifetime are rechecked before commit. Native-profile saves use public form mutation and descriptor CAS, not a hash guessed to be native CAS. External non-cooperating editors can still race at the final rename boundary. A save acknowledges its layer, not adoption by every live consumer.
159
24
 
160
- `workflow.policy` selects `risk-based` or `legacy`. An explicit policy wins; old explicitly supplied `strictGates`, `reviewCap`, or `finalReviewPolicy` selects legacy behavior when policy is omitted. With neither new nor legacy controls, risk-based behavior is the default. Schema parsing preserves this distinction.
25
+ Native ConfigEditor can emit `loader/partial-dispose` during empty-pending reconciliation without actual fiber or Agent disposal. The signal alone isn't proof of a lifecycle change; consumers must observe actual lifetime and admission boundaries.
161
26
 
162
- Risk-based behavior scales discovery, planning, and review to uncertainty and integration risk. Legacy fields remain readable in the normalized snapshot, but are not a universal fixed-review loop under risk-based policy.
27
+ <a id="global-module-ceiling-d0"></a>
163
28
 
164
- ## Other settings
29
+ ## Availability and capture
165
30
 
166
- `roleRouting` defaults to an empty map. Each canonical role accepts optional `primary`, ordered `fallbackRoutes`, `strategy` and bounded `rateLimit` fields. Profile-level `runtimePolicy` supplies inherited strategy/retry defaults. Child Agents use their configured startup lock or explicit per-role rate-limit rollover. Ordinary top-level Agents instead preserve the native model tab's exact model/effort and only retry on that same route. Native catalog/form controls edit JSONC paths without changing native global model defaults. The compact header menu has one profile list and one `@use-model` **Use profile model** action; a normal profile switch never selects a model. The action reads the current admitted immutable profile model without reapplying a later saved revision, uses native-default persistence like the Models tab, and preserves newer manual intent through existing race fencing. Successes are accessible live announcements only; visible errors are short sanitized codes/fields, not verbose normal menu descriptions. The deployment-only `roles` enable map remains separate. Unknown keys/malformed routes fail; omitted and explicit empty chains differ. See [model routing](model-routing.md) and [runtime recovery](runtime-recovery.md).
31
+ `modules.deepwork.enabled` is a global-only ceiling and defaults true; ordinary `defaultActive` defaults false. Native profile overrides and named/session overlays can't enable the module. Cold-off leaves Core storage, captures/CAS, configuration/status and mandatory native permissions available, without mounting DW role/routing/recovery substrate. DSMM-managed LSP stays off independently of this module ceiling. Static preset files aren't proof of callable roles.
167
32
 
168
- `DEFAULT_DSMM_SETTINGS` supplies the complete business defaults; the public sparse schema doesn't expand them into overrides. The current inventory has 22 roles/categories and 14 configurable skills, with cross-cutting opt-in/default false. Active Agent scopes expose enabled DSMM skills as native metadata/lazy bodies; explicit off wins even on a DW preset. Roles/skills remain outside named runtime profiles. Managed preset-directory materialization remains off by default and is an export facility rather than native discovery. Content/catalog presence doesn't prove the remaining C execution mechanisms.
33
+ On a mounted Host, desired-off affects new roots, not existing parents or their future children. Desired-on after cold-off remains restart-required until an independent Host restart. No hot-mount or restart queue is implied. An idle profile change doesn't absorb newer global deployment. Mode-on can't bypass an admitted off module; mode-off can replace saved on intent without pretending the module was active.
169
34
 
170
- Runtime overlays allow only `defaultActive`, `roleRouting`, `runtimePolicy`, `workflow`, `guards`, `runtimeRecovery`, and both `deepseekV4Pro*`/`deepseekFlash*` Calibration, DefaultReasoningEffort and MaxReasoningPresets fields. `modules`, `roles`, `skills`, `modeName`, `promptOrder`, `section`, `presets`, `subagents`, `lsp`, `sessionPersistence`, native provider/account/install controls, embedded profiles and unknown fields are rejected. A missing named-profile selection leaves the captured deployment baseline unchanged. Auth and native session logs stay in their existing locations; centralized storage doesn't move them or expand `sessionPersistence` authority.
35
+ The inspector separates merged desired, startup-mounted/captured, next-root preview, and current-session admission. Without an actual session, current admission is unknown. Host bundle enablement also remains unknown when the public interface can't observe it. Sources, capture origins, global bytes revision, native descriptor revision and named pin aren't one acknowledgment.
171
36
 
172
- `subagents.enableRunInBackground:false` and `backgroundMode:"one-shot"` default to foreground one-shot. Explicit opt-in can use native jobs or continuable children. Omitted `maxDepth` uses the host default (rc.2 1); explicit nonnegative integer limits remain native-enforced. These sparse deployment fields capture at new-root admission and remain frozen for old parents/future children. Missing startup jobs/control/persistence/provider substrate yields `restartRequired: ["subagents"]` and effective background disabled, not fabricated readiness. No new queue/controller is created.
37
+ `presets.plannerRootEnabled` defaults false and controls only the standing DW Planner root preset, not the default-enabled workflow Planner role or Harness's native plan mode. Like the rest of `presets`, Global/native-entry settings may configure it, named overlays cannot, and desired changes require an independent restart; current Agents are not hot-migrated. See [Planner root admission](agent-presets.md#roles-and-composition) for discovery, forced creation/resume and read-only boundaries.
173
38
 
174
- ## Capture and restart boundaries
39
+ `permissionControl.enabled` defaults true independently of Deepwork. Permission settings are deployment-only: Global and native-profile settings may save them, while named/session overlays cannot. Only `enabled` is startup-pinned: live saves do not remount or change its admitted value, including for newly created roots; a difference is reported as `permissionControl.enabled` restart-required. A separate cold start captures the new toggle. Dynamic outside-read, web and persistent rules require runtime revision synchronization rather than restart. OFF does not disable Core guards, readonly, native sandbox/approval or tool filters. Configuration and startup admission do not establish that a permission executor is mounted or synchronized. Actual native standing `danger-full-access` is full access: DSMM adds no ask, downgrade, path permit or refusal for unknown operations or missing classification facts. Only a deterministically matched existing explicit deny blacklist may produce a native pre-approval denial. A requested mode or configured command target alone isn't effective native authority. See [native permissions](native-permissions.md).
175
40
 
176
- Startup awaits global/profile read, merge and validation before any consumer mounts. The startup snapshot is frozen. Persistent registration, standing presets, `modeName`, `promptOrder`, preset materialization and LSP retain startup settings; late dependency install/injection doesn't reread desired settings.
41
+ The rules RPC writes the global DSMM layer. A native override of outside-read, web or rule policy refuses that RPC save; edit or unset the native override instead. An enabled-only native override does not shadow dynamic policy. Ordinary configuration Save still writes its chosen layer, and the runtime uses the resolved global/native policy rather than assuming every global edit wins.
177
42
 
178
- When a native preset registry already exists, its frozen startup definitions finish registering before retained ordinary Agents are audited/admitted. Optional absent registries retain the existing late-install lifetime path, using that same startup getter. Direct trusted Cordis callers without a Loader entry use the stable `trusted-direct` namespace; fiber allocation never becomes a persisted entry identity.
43
+ The Host installs `installDeploymentPermissionRules` in its owned Core fiber with `agents` injected, the actual `DsmmDeploymentConfig`, a pure writable-Root check and an awaited notification callback. Its `initial` snapshot, `runtime` sync owner and backend are the collaborators for the permission controller and the single permissions RPC. DSH owns approval: an actual manual approval is final for that call and approved scope, without a DSMM post-approval veto from older rules, epochs or internal gates. DSMM has no independent approval queue, UI, TTL or session permit memory. The ordinary `managed-settings` module retains native SettingsForms and supplies only a scoped `configEditor.edit` façade; the root ConfigEditor and its locks, form CAS and reconciliation remain native-owned. Missing or retired ownership refuses managed saves, not an actually approved call. These source interfaces require the corresponding cold Host composition; configuration alone is not mounting evidence.
179
44
 
180
- A new ordinary root awaits the latest valid global/profile desired deployment and combines it with the applied immutable named overlay, never a later draft. Existing roots retain their entire captured snapshot, including blank/idle roots. Future children of an old parent inherit that parent's complete snapshot and epoch rather than today's desired settings. An explicit idle session-profile switch replaces only the allowed runtime overlay on that root's old deployment baseline.
45
+ Permission revisions are opaque tokens over the persistent global CAS and native configuration read set, not form counters or per-rule version maxima. Controlled saves reread actual storage after CAS and publish only after notification acknowledges the committed policy. No-op saves may retain the token. Notification failure exposes saved/runtime revisions as unsynchronized; recovery rereads authoritative storage. CAS, ownership and synchronization checks protect configuration writes and policy adoption, not a second call-approval gate: permission-source changes neither cancel pending native approval nor let DSMM override an actual same-call approval. New calls consume current policy. Conflicts and recovery preserve dirty editor drafts. Native and ordinary JSON rule imports receive `user-import` provenance, while rules RPC provenance comes from the live operator authority. Persistent provenance isn't native approval or a reusable grant. A native once grant doesn't widen session permissions or authorize another call, and a narrower grant isn't full access. Native rejection, caller/native cancellation and original OS failures remain possible; approval doesn't guarantee command success. Only `enabled` remains pinned to the mounted runtime; a desired OFF cannot turn off running controls before restart.
181
46
 
182
- New-root capture validates schema/file safety and standing startup capabilities, not every dormant role's model catalog entry. Native root requests retain the model tab's authority; child/alias preflight owns exact candidate selection, fallback and hard effort refusal before requests. Named selection/current-session Apply and retained-Agent startup admission keep their full semantic catalog audits and readiness guards. Capture isn't an automatic model-selection action or a promise that every declared role route is callable.
47
+ Read-only configuration projections redact LSP command/arguments/cwd, preset root and recovery prompt; environment values and names aren't disclosed. Authorized sparse editor input is a separate boundary, not a status DTO. A missing projected field is absent; an unavailable layer is unknown, not an invented default.
183
48
 
184
- Role enable policy is constrained by the startup substrate and original permissions. A capability absent at startup is restart-required, not made available by saving desired settings. No restart/idle queue exists. Desired off isn't a claim that old admitted work was cancelled.
49
+ ## Runtime controls
185
50
 
186
- `getSettings(agent)` is the authority for an existing Agent. No-argument `getSettings()` remains the validated runtime named default, not raw desired settings. Invalid external edits refuse new admissions and writes without invalidating old frozen admissions. Cold resume creates a new admission from current valid desired deployment and the correct origin's pinned sidecar/default; it doesn't promise persistence of an exited process's old memory snapshot.
51
+ `/deepwork [off|message]` changes the receiving session's mode. Explicit intent, including a same-default choice, survives profile changes and reopen. Official minimal conversations default off; DW presets default on unless explicit intent says otherwise. Off hides common workflow/DSMM skills, not persona, read-only restrictions or host/Git permissions. Busy mutations refuse instead of queuing. Slash commands belong to the native command adapter, not headless task text.
187
52
 
188
- Existing `deepseekV4ProCalibration`, `deepseekV4ProDefaultReasoningEffort`, and `deepseekV4ProMaxReasoningPresets` remain compatible for child Agents. Flash has independent corresponding `deepseekFlash*` settings; calibration modes are off/auto/strict. Auto preserves explicit effort, strict chooses supported policy effort, and unsupported capabilities never justify guessed parameters. Ordinary root effort is always native-owned, including when a calibration setting says strict.
53
+ `/dsmm-status` reports normalized bounded state; `/dsmm-status json` returns a defensive version-1 snapshot. Status separates admitted profile/revision/epoch, actual route state, effective settings and captured module/runtime binding. Ordinary roots report native-owned effort and keep the native model tab's route, not an applied child-role primary. `profileModel` is advisory for explicit **Use profile model**, never proof that selection already happened.
189
54
 
190
- Guard scope defaults to `deepwork-or-dsmm-agent`; shell safety and helpers remain enabled and Git writes require host approval. LSP and runtime recovery default off. Recovery caps are finite; an empty fallback list does not enable automatic model discovery or substitution.
55
+ `workflow.policy` accepts `risk-based` or `legacy`. Explicit policy wins. Without it, explicitly supplied `strictGates`, `reviewCap` or `finalReviewPolicy` selects legacy; otherwise risk-based is the default. Named role restrictions retain required Orchestrator/Planner/Plan Critic, plus legacy-conditional Reviewer/Oracle. They can't enable a role outside startup/deployment ceilings.
191
56
 
192
- ## Snapshot boundaries
57
+ `roleRouting[id].levels` accepts only explicit `low`, `high` and `max` overrides; invocation omission means `normal`. These are call resources, not workflow tiers or generated roles. `subagents.toolTopology` defaults `per-role` and may be narrowed/configured in a named overlay. Background, depth and route-override permission remain deployment-only. `subagents.allowRouteOverride` defaults false. See [routing](model-routing.md) for the exact tool and target grammar.
193
58
 
194
- The snapshot reports `mode`, `route`, `calibration`, `runtimeRecovery`, and `effectiveSettings`. Route flags distinguish exact V4 Pro and V41 Flash matches. Desired policy effort is not a claim that an adapter advertised or applied it.
59
+ `locale` is an optional visible-output preference using the supported locale IDs in [profiles](profiles.md#inheritance-and-ceilings). Omission inherits; the current user's explicit language request wins. It doesn't change UI locale or protocol vocabulary. Both retired `*MaxReasoningPresets` fields reject with `deprecated-field`; there is no automatic migration. The only nonblocking document warning is `blank-label`, with schema-safe diagnostics and source location where available.
195
60
 
196
- Status does not perform capability/network queries, expose credentials or provider errors, or report process-local pending retries. Model calibration is enforced in the actual request waterfall, not by status or prompt text.
61
+ ## Child runtime composition
197
62
 
198
- Status masks configured preset/LSP working-directory paths, all LSP command/argument contents and LSP environment values with fixed markers; runtime LSP settings aren't changed. The trusted backend's `describeDeployment()` retains separate plain startup, desired and admitted snapshots, with the raw native input hash and optional native form CAS revision explicitly distinguished. `deployment.sources` describes desired input; admission `sources` describes effective values after startup pins/role constraints and named overlays. `sourceCaptures.fields` identifies startup versus captured deployment versus named-session origins, and its startup revision pair prevents attributing pinned values to the newer desired revision.
63
+ Default deployment uses foreground one-shot work: `enableRunInBackground:false`, `backgroundMode:"one-shot"`, and omitted `maxDepth` delegates to the native Host limit. Captured settings and actual startup capabilities determine availability. A configured flag isn't proof that jobs, persistence, continuation or delivery fencing is ready.
199
64
 
200
- A named overlay's complete primary route replaces its lower primary, including removal of omitted effort. Effective provenance removes that entire replaced primary subtree before marking the overlay; nonexistent lower-only members aren't left in `sources` or capture fields.
65
+ The built source exports `@dsmm/dsmm/subagent-runtime` (`./subagent-runtime`) for explicit cold-start composition. The optional [subagent runtime patch](../patches/subagent-runtime.yml) disables the exact stock subagent row and installs the DSMM runtime in the same Host service scope. Verify the actual stock row identity and copy explicit capacity/depth configuration before restarting; preserve spawn/fork/model/Gateway services. A duplicate provider refuses. The default [bundle patch](../cordis.patch.yml) is unchanged and doesn't replace stock subagents automatically.
201
66
 
202
- Configured role policy/chain and the actual persisted current route are distinct facts. The normalized settings snapshot defensively copies nested role routes and lists; configuration presence is not a claim of successful provider authentication or a completed fallback.
67
+ The public runtime projection reports `binding: stock | dsmm | unavailable`, `deliveryFenceReady`, `restartRequired`, and a bounded reason when applicable. Loading Core, saving settings or seeing a role catalog doesn't prove fenced delivery. Managed continuation requires the explicit ready composition. Native lifecycle, inbox, jobs and storage remain native-owned; DSMM doesn't install a second scheduler or retry controller.
203
68
 
204
- For ordinary roots, effective status reports `startup-lock`, no applied profile primary/fallback chain, and reasoning action `native-owned`. The original child-role configuration remains available under `effectiveSettings`; it is not falsely presented as an automatic main-model override. `profileModel` in a session-profile response is only the declared model for an explicit user action, never proof that the native model has already changed.
69
+ Old-child compatibility exposes conservative captured evidence, `provenFields` and limitations, not full configuration recovery. The legacy read adapter is default off and requires explicit trusted Host composition. It isn't a JSON attestation switch or a source of invented approval/durability guarantees. See [compatibility](compatibility.md) for that separate adapter boundary.
205
70
 
206
- Status describes the receiving Agent's admitted profile/revision/epoch, resolved strategy/retry policy and actual route state separately from desired deployment and future named defaults. Global bytes revision, native entry revision, startup capability and store origin are distinct facts, not one atomic cross-layer acknowledgment. `--dump-config` shows native Loader composition, not the complete global-aware DSMM effective snapshot or proof of runtime-profile application/authenticated UI behavior. D's field-level native presentation has isolated rc.2 Web evidence; final artifact/publication and actual Electron acceptance remain separate.
71
+ *Author's note: For a DSH deployment operator; distinguish a successful configuration save from captured runtime availability before applying policy.*