@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/docs/profiles.md CHANGED
@@ -1,37 +1,27 @@
1
- # Deepwork runtime profiles (0.1.9 source contract)
1
+ # Deepwork runtime profiles
2
2
 
3
- This guide describes the working 0.1.9 source contract, including C0 storage/capture, C native role/continuation policy, and D's native Plugins configuration UI and global module ceiling. DSMM is the package/Core display name; Deepwork remains the module and named-profile editor name. Package, storage and configuration IDs retain `dsmm` for compatibility. Real keyless rc.2 Web acceptance proves the Plugins item/bundle/row editors; it isn't evidence of a published 0.1.9 package, completed frozen-artifact gate, or Electron/Desktop execution. See [compatibility](compatibility.md) and [releasing](releasing.md). Historical release identities and completed 0.1.4/0.1.6 continuation evidence stay immutable. The published and historically Desktop-installed 0.1.7 has failed terminal verification, not a completed GitHub Release. The 0.1.8 npm publication is genuine but its original terminal receipt failed with GitHub skipped; the historical Desktop 0.1.7 and CLI/TUI 0.1.6 rollout identities stay unchanged until a separately completed successor. Earlier release-only 0.1.9 scope isn't a description of today's changed working source. The release Action controls retain the exact shared 20-minute 404 visibility budget and 45-minute verify job. E and actual Electron acceptance remain separate.
3
+ This guide describes the built source configuration. A published `@dsmm/dsmm@0.2.0` package doesn't automatically contain uncommitted source features; check the actual artifact before using these interfaces. Package availability and Host compatibility are separate from configuration validity. See [compatibility](compatibility.md) and [releasing](releasing.md).
4
4
 
5
- A Deepwork runtime profile is a named file containing runtime policy, not a native deployment profile or an Agent role preset. Native Settings → **Deepwork Profiles** / **Deepwork 配置档** provides create/read/edit/save, explicit apply, and reset to the deployment baseline. The native Agent preset selector remains a separate role selector, displaying `DW …` names under unchanged `dsmm-*` IDs.
5
+ A named Deepwork profile is a runtime-policy document, not a native deployment profile or Agent preset. Open **Settings → Deepwork Profiles** to browse and edit it. Native **Plugins → DSMM** edits deployment layers instead, as described in [settings and status](settings-status.md).
6
6
 
7
- ## Three independent configuration identities
7
+ ## Four independent states
8
8
 
9
- Native **Plugins → DSMM** edits the sparse global deployment base with the fixed `remote.dsmmConfig` service, independently of sessions or Deepwork mounting. The actual DSMM **bundle/row Config** pages additionally edit the selected native entry's profile override through its public Host `ConfigPageForm`. Runtime entry ID, native form namespace, package name and row ID are different identities: writes require the real namespace, raw base/user metadata and descriptor revision to match. The standalone Plugins item has no supplied form and explicitly marks this second layer unavailable rather than guessing it.
10
-
11
- Global and current native-profile override have separate Save/Refresh/Discard controls and revisions, never a shared Save all. Missing members inherit; explicit same-default members pin; Inherit unsets only this layer, not a higher Host pin. The full deployment grammar is editable through native booleans, enums, bounded scalars and collapsed schema-bound advanced objects/arrays. Raw invalid text and dirty conflicts remain visible. Connection/entry replacement and disposal fence writes; stale baselines require explicit refresh/discard. Global save changes only central `config.json`; profile save changes only the native patch with fixed Host revision. Neither writes a named JSONC document.
12
-
13
- The existing **Deepwork Profiles** editor remains separate, preserving custom/native model controls and **Use profile model**. It displays central/explicit/legacy origin and the immutable selected pin. Legacy origin is inspectable and refreshable, but New/Save/Apply/Reset and raw/structured edits are disabled; backend authority remains mandatory. Named/session apply is not global deployment save and doesn't gain broader model or session permissions.
14
-
15
- The DSMM Plugins inspector distinguishes merged desired/source, startup substrate, next-root capture, and an actual current session's admitted settings/named pin. Without a native session, current admission is unknown, not inferred from desired. Cold-off Core stays discoverable: saving global desired-on shows restart-required until a separate explicit Host restart. Host package enabled/loaded state is unknown when the public contract cannot observe it. See [native configuration](settings-status.md#native-plugins-configuration-d) for controls and concurrency.
16
-
17
- ## Files and document format
18
-
19
- The trusted `ProfileStore.fromCentral(home, profiledir, entryId)` factory separates shared documents from scoped state. Home comes from the public resolver through the declared filesystem peer: explicit `profileContext.home` wins over `DSH_HOME`, then the official `~/.dsh` default. `<resolvedDshHome>/plugins/dsmm` is a **DSMM-owned convention**, not an official mandated plugin layout. No client or model may supply an arbitrary root, profile identity or entry ID.
9
+ | State | What it means |
10
+ | --- | --- |
11
+ | Draft | Unsaved JSONC in the editor, including invalid input and comments |
12
+ | Saved revision | Validated bytes in the named document; Save changes only these bytes |
13
+ | Future-default pin | An immutable saved revision selected for new unscoped Agents |
14
+ | Current admission | The actual session's captured settings, profile revision and admission epoch |
20
15
 
21
- In the table, `<root>` means `<resolvedDshHome>/plugins/dsmm` and `<scope>` means SHA256 of the validated canonical native profile identity plus the actual DSMM entry ID. It isn't a display name or a hash of the session alone.
16
+ Browsing doesn't activate anything. **Save profile** doesn't select or apply it, even when its ID is already selected. **Set as future default** pins the saved revision, not the dirty draft, and leaves existing Agents unchanged. **Use baseline for future sessions** clears that default without deleting documents.
22
17
 
23
- | File | Purpose |
24
- | --- | --- |
25
- | `<root>/profiles/<id>.jsonc` | Shared editable named draft |
26
- | `<root>/profiles/.revisions/<sha256>.jsonc` | Shared immutable exact bytes pinned by an explicit apply |
27
- | `<root>/profiles/.state/<scope>/.selection.json` | Scoped default pointer: `{version: 1, id, revision}` |
28
- | `<root>/profiles/.state/<scope>/.sessions/<sha256(native-session-id)>.json` | Scoped explicit session choice: exact session ID, pinned profile/baseline, CAS revision and admission epoch; no history or credentials |
18
+ **Apply profile to current session** and **Pin baseline for current session** are separate actions. They target the native view's exact session ID, reserve a truly idle ordinary root, and require both selection CAS and the current admission epoch. Busy, maintenance-owned, disposed, replaced, child or unauthorized targets refuse; nothing is queued. A successful change updates only that root and future children. Existing children keep their original captures.
29
19
 
30
- The central scopes share the documents lock, so state namespaces don't bypass serialization of draft/revision writes. Sharing a draft doesn't share a selected revision: applying in native profile A doesn't change profile B's default or sidecars. “Global default” in the Profiles API means this runtime's scoped named default, not the separate `<root>/config.json` global deployment base. Reads don't create directories, locks or files.
20
+ The compact Conversation header menu switches the current-session profile while preserving the native model. Its separate **Use profile model** action asks native model selection to use the current admitted immutable profile's declared main model. It doesn't apply a later saved draft. Native model-default persistence follows the Models tab; newer manual model or effort intent wins. Sessionless controls never create a session.
31
21
 
32
- The old public constructor for an explicit `.../dsmm-profiles` root retains its existing contract. Runtime origin selection is separate: if the current native profile's exact `<profileContext.dir>/dsmm-profiles` path exists, that runtime binds to **strict read-only legacy compatibility**. It retains full immutable pins, selection and session records at that origin, without taking a lock or writing. It checks only the current known path, not all native profiles. Corrupt, missing, linked, digest-mismatched or unstable references refuse; a same-name central draft is never a fallback. Legacy save/apply/reset and sidecar mutations refuse rather than writing either library. See [copy/import boundaries](#copyimport-authority-and-rollback).
22
+ ## Document format
33
23
 
34
- IDs are filename-safe identifiers, not paths; reserved names, case collisions and link traversal are rejected. A document has exactly `version: 1`, `id`, optional `label`, and `settings`. For example, a draft named `careful.jsonc` may contain:
24
+ A document contains exactly `version: 1`, a filename-matching `id`, optional `label`, and `settings`. IDs contain 1 to 64 lowercase ASCII letters, digits, hyphens or underscores, start with a letter or digit, and can't be Windows reserved names. Labels are bounded text without control characters.
35
25
 
36
26
  ```jsonc
37
27
  {
@@ -39,89 +29,52 @@ IDs are filename-safe identifiers, not paths; reserved names, case collisions an
39
29
  "id": "careful",
40
30
  "label": "Careful review",
41
31
  "settings": {
42
- // Saving preserves this comment; apply pins these exact bytes.
43
- "defaultActive": true,
44
- "workflow": { "policy": "risk-based" },
32
+ // Omitted fields inherit the captured deployment baseline.
33
+ "locale": "en",
34
+ "roles": { "dsmm-quick": false },
35
+ "subagents": { "toolTopology": "parameterized" },
45
36
  "roleRouting": {
46
37
  "dsmm-reviewer": {
47
- "primary": {
48
- "provider": "my-existing-provider",
49
- "model": "my-existing-model",
50
- "reasoningEffort": "high"
51
- },
38
+ "primary": { "provider": "my-provider", "model": "review-model" },
39
+ "levels": { "high": { "reasoningEffort": "high" } },
52
40
  "fallbackRoutes": [],
53
- "strategy": "startup-lock",
54
- "rateLimit": { "maxRetries": 3, "maxTotalDelayMs": 30000 }
41
+ "strategy": "startup-lock"
55
42
  }
56
- },
57
- "runtimeRecovery": { "enabled": false }
43
+ }
58
44
  }
59
45
  }
60
46
  ```
61
47
 
62
- The example provider/model must be native-resolvable and advertise the specified effort. Catalog listing is advisory: a manually configured route can be resolvable while absent from the list. It introduces no provider, account or credential. Explicit `fallbackRoutes: []` disables that role's fallback chain; it is not equivalent to omitting the key and inheriting a global chain.
63
-
64
- ## Supported settings and precedence
65
-
66
- The exact top-level `settings` allowlist is:
67
-
68
- - `defaultActive`
69
- - `roleRouting`
70
- - `runtimePolicy` (optional inherited strategy and finite `rateLimit` defaults)
71
- - `workflow`
72
- - `guards`
73
- - `runtimeRecovery`
74
- - `deepseekV4ProCalibration`, `deepseekV4ProDefaultReasoningEffort`, `deepseekV4ProMaxReasoningPresets`
75
- - `deepseekFlashCalibration`, `deepseekFlashDefaultReasoningEffort`, `deepseekFlashMaxReasoningPresets`
76
-
77
- Existing nested validation and finite bounds still apply. Profiles reject deployment-only `roles`, `skills`, `modeName`, `promptOrder`, `section`, `presets`, `lsp`, `sessionPersistence`, and `subagents`, as well as global-only `modules`, embedded profiles, native provider/account/auth/header/env/install fields, arbitrary Cordis rows, and unknown fields. `subagents` describes native depth, capacity, background and continuation policy, not a named-profile runtime overlay. `modules.deepwork.enabled` is solely the global availability ceiling; native entry/profile and named overlays cannot enable it. Structural changes belong in deployment configuration and require restart. A guard setting cannot enable tools forbidden by a canonical read-only role composition.
78
-
79
- Effective settings resolve in this order: **built-in defaults → sparse global `config.json` → explicit native entry/profile override → selected immutable runtime revision**. Plain objects merge recursively; arrays replace. Missing keys inherit, and unset deletes only the edited layer's key. Explicit same-default values still override lower layers. Unknown/prototype keys, non-JSON values and raw refs are rejected before full merged validation. Structural settings aren't admitted through a named overlay. No named selection means the captured deployment baseline, not a synthetic default profile. Omitted fallback policy and explicit empty policy remain distinct. See [model routing](model-routing.md) and [settings/status](settings-status.md).
80
-
81
- ## Save versus apply
82
-
83
- Create or open a draft in native Settings and use the role-specific primary provider/model/exact-effort controls, ordered fallback rows, strategy and bounded retry fields. Each role can choose `startup-lock` or `rate-limit-fallback` independently; blank policy fields inherit, zero is explicit, and an empty fallback chain is not inheritance. Provider/model changes clear stale explicit effort. Catalog refresh preserves configured/manual values and does not select the native/global model default. Advanced JSONC remains available for custom routes and other supported settings.
84
-
85
- Saving validates the draft and preserves edited raw JSONC/comments, but doesn't activate it, even if the same ID is currently selected. Structured changes edit only their JSONC paths; invalid raw text remains visible and can't be silently normalized by returning to the form. Unsaved edits must be saved or explicitly discarded before switching away. Legacy-origin runtimes are read-only; these mutations require a writable central origin.
86
-
87
- **Apply saved profile** is a separate global-default operation. It checks the expected draft revision, validates runtime fields and native route/effort semantics, pins the draft's exact bytes in `.revisions`, and atomically commits `.selection.json`. Only after the pointer commit succeeds may the current in-memory selection change. The UI distinguishes the editable draft, selected immutable revision for future Agents, and an existing Agent's admitted snapshot. **Reset to baseline** clears the global runtime selection for future unscoped Agents; it does not delete drafts or mutate an existing Agent.
88
-
89
- **Current-session profile / Apply profile to current session** uses the actual native view's session ID, not the profile being edited or a guessed latest session. It commits only that session's sidecar under a genuine native idle-maintenance reservation. Both the expected sidecar revision and admission epoch must still match. **Pin baseline for current session** writes an explicit baseline choice without changing the global default. Sessionless Settings cannot apply to a session; busy, maintenance-owned, disposed, replaced, child or unauthorized targets refuse visibly. Cold targets are resumed only through native session authority after backend authorization and strict decoding.
90
-
91
- The Conversation header has one icon-only button opening the native Profile menu. Profile names, current selection, status, disabled reasons and refresh are shown only inside that menu, not as standalone header text. It is present on blank sessions and the sessionless welcome screen; without an actual session it is read-only and never creates a session or changes the global default. The single leading slot yields to any higher-priority native/plugin navigation owner.
92
-
93
- The menu has one profile list. Normal options switch only the session profile and preserve the current native model, with zero native model-selection calls. One separate `@use-model` action, **Use profile model**, reads the current admitted immutable profile's configured main model through DSH's native selection endpoint, so the picker and subsequent request agree. It does not reapply the profile or activate a later saved draft revision. An absent configured model, unavailable selection source or native refusal produces a short sanitized error; the admitted profile remains unchanged. Existing manual-model-intent race fencing preserves a newer native choice, including effort-only and same-value choices. Successes use accessible live announcements only, not visible success prose. Full editing and revisions remain in Settings. A refused profile change keeps the prior admission; refresh before retrying, with only allowlisted codes/fields and refresh/retry guidance. Refresh never applies a profile or selects a model on its own.
94
-
95
- The same compact menu offers a **Deepwork** toggle. Official minimal conversations default off unless saved explicit `deepwork/mode` intent exists. Explicit same-default choices persist durable intent; profile switching doesn't erase it or adopt a profile's `defaultActive`. Mode intent survives profile changes and reopen. DW presets default on but aren't locked: explicit off hides common workflow/DSMM skills while retaining persona, read-only and Git/host permissions. Sessionless, busy or unavailable mutations are disabled/refused, without creating a session. Normal menu rows omit verbose explanatory descriptions and the old duplicate profile-model list.
48
+ The provider/model must resolve through native DSH, and an exact effort must be supported. Catalog listings are advisory, not authentication or network-health checks. Manual/unlisted routes remain editable. See [model routing](model-routing.md) for level selection and route precedence.
96
49
 
97
- Save/apply requests use expected byte revisions. Cooperative writers share a lock; changes observed at the final revision recheck produce a conflict, so reread and reconcile. A non-cooperating external editor can still race between that recheck and rename; this isn't a universal editor transaction. Validation, missing file, revision conflict, lock/IO, authorization or activation failures must be visible, not reported as success. Invalid/missing/linked files and digest mismatches never silently select another profile or model. Pointer failure retains the prior disk selection and current settings; an unused immutable revision may remain.
50
+ Allowed runtime fields are `defaultActive`, `locale`, `roles`, `roleRouting`, `runtimePolicy`, `workflow`, `guards`, `runtimeRecovery`, `subagents.toolTopology`, and the `deepseekV4Pro`/`deepseekFlash` Calibration and DefaultReasoningEffort fields. Skills, prompt content, preset installation, LSP, session persistence, provider/account credentials, background/depth settings and `subagents.allowRouteOverride` remain deployment-only. `modules` is global-only. Unknown fields are rejected.
98
51
 
99
- Writable storage uses bounded validated content, containment/link checks under a cross-process writer lock, and same-directory atomic replacement. Lock timeouts are errors; stale-looking locks aren't stolen. Central and strict legacy reads don't create locks or files; the old explicit constructor retains its original cooperative-lock contract. Immutable revision files are never overwritten or hand-edited. Operations accept stable IDs, not arbitrary filesystem paths. Profile summaries don't expose credentials or deployment configuration. Deployment global saves and native profile-override saves are separate from named-profile RPC; neither is a cross-layer transaction.
52
+ `deepseekV4ProMaxReasoningPresets` and `deepseekFlashMaxReasoningPresets` are rejected with `deprecated-field`. They aren't silently ignored or migrated. Configure explicit `roleRouting[id].levels.low/high/max` instead; `normal` is the invocation default, not a configurable level entry. Orchestrator levels aren't supported.
100
53
 
101
- ## Agent lifetime and restart
54
+ ## Inheritance and ceilings
102
55
 
103
- Global applying or resetting affects **new unscoped Agents only**. Every existing live Agent, including a blank one, retains its admitted immutable runtime snapshot. An explicit current-session apply is different: a truly idle ordinary root receives a new immutable admission epoch after the durable sidecar commit. Even reapplying the same revision creates a new epoch. Existing children retain their captured old epoch; later genuinely owned native children inherit the new one. Other roots, the global default, completed tools and native persona/tool/skill composition remain unchanged.
56
+ Effective policy resolves from **built-in defaults → sparse global deployment → explicit native entry/profile override → immutable named overlay**. Missing members inherit, arrays replace, and explicit empty fallback chains remain empty. A named primary or level route replaces that route value, including removal of omitted effort, rather than retaining an old route's effort.
104
57
 
105
- Repeated role-policy admission, including DSMM reinstallation while the exact native child remains live, retains that child's captured role, read-only flag, frozen tool filter and epoch. It verifies the child's original capture and exact live native owner, not the parent's later mode or profile epoch. Owner/capture mismatches refuse rather than downgrading the child to ordinary authority. A new child or cold residency still follows native ownership and descriptor admission; retained tool-definition realms aren't reset by reinstallation.
58
+ Named `roles` can narrow availability, not lift the captured deployment or startup ceiling. Orchestrator, Planner and Plan Critic can't be disabled by a named profile. Under legacy workflow policy, Reviewer is also required when final review isn't off, and Oracle is required for `simple-oracle-complex-reviewer`. Required status doesn't create missing startup capabilities. The editor shows required reason, startup availability, deployment enablement, admitted state, and source/capture separately; routing remains editable for disabled roles.
106
59
 
107
- Startup first awaits global/profile merge and full validation, then freezes the snapshot before any consumer mounts. Late install/injection doesn't reread desired values. Each new ordinary root awaits current valid desired deployment plus the applied immutable named overlay. Existing parents and their future children retain the entire captured deployment/settings snapshot and epoch, not just the named revision. An idle profile switch changes only the allowed overlay on that root's old deployment baseline; it doesn't absorb later global/profile saves. `getSettings(agent)` is authoritative; no-argument `getSettings()` remains the validated runtime named default, not desired deployment.
60
+ `locale` supports `en`, `zh-Hans`, `zh-Hant`, `ja`, `ko`, `de`, `fr`, `es`, `pt-BR`, and `ru`. Omission inherits deployment preference, then applicable native/user language guidance or conversation context. A current user's explicit output-language request wins and should be preserved in child assignments. Locale affects visible replies, plans and role output only, not internal reasoning, UI/project locale, identifiers, commands or exact quotations. A parent's later profile change doesn't rewrite a child's captured preference.
108
61
 
109
- `modeName`, `promptOrder`, standing presets, materialization and LSP stay startup-scoped. Role and subagent policy is intersected with the startup substrate and original permissions. A missing startup capability requires explicit restart; there is no idle/restart queue. Saving desired off doesn't cancel an old admitted consumer: C's native role, continuation, capture and permission consumers retain their admitted policy.
62
+ ## JSONC, diagnostics and concurrency
110
63
 
111
- The D0 global-only `modules.deepwork.enabled` defaults to `true` independently of ordinary `defaultActive:false`; D exposes it only in Global DSMM, with no profile bypass checkbox. New ordinary roots admit current global desired only if DW mounted at startup. Existing roots/future children retain their captured module value; idle profile selection cannot re-enable an off root or pull newer global state. Mode-on refuses when the admitted module is off, without deleting saved mode intent. An explicit mode-off replaces persisted on intent and advances its revision even when effective activity is already off; repeated explicit off is a no-op. Independent module-on startup/resume still honors that saved off intent. Cold-off keeps core storage, admission, profile/CAS/global configuration and mandatory permissions usable, but desired-on remains restart-required until an independent restart. Optional session snapshots expose safe `modules` and admitted `configuration` projections; inspect `desired.capture` before interpreting module values as current-global state. See [the module ceiling and control-plane API](settings-status.md#global-module-ceiling-d0). The new native Plugins pages don't restart, reconcile, cancel or respawn LSP on save.
64
+ Structured controls and Advanced JSONC edit the same draft. Path edits preserve unrelated bytes and comments. Invalid raw input stays visible and isn't normalized by switching back to the form. Save or explicitly discard dirty changes before changing the editor's document or selecting its saved revision.
112
65
 
113
- Native model selection is separate user intent, not a profile sidecar setting. Every ordinary top-level request respects the native assembled provider/model/effort, including an implicit default with no prior selection event. Profile primary/defaults and calibration never overwrite it. An effort-only or same-value native selection still fences stale retry work. Parent model choice does not overwrite a configured child's own role route. Structured editing, save, global apply and normal session apply never select the native/global model default. Only **Use profile model** invokes native model selection, with the same background-default persistence behavior as the Models tab; later manual model changes remain authoritative. Mode intent is a separate saved `deepwork/mode` event, retained across admission/profile changes and cold resume.
66
+ The only nonblocking warning is `blank-label`: the profile ID is used for display, and the original document can still be saved and selected. Saved, draft, future-pin and current-admission warnings are distinct. Validation errors carry a stable reason, schema-safe field and, when available, JSONC offset/length and line/column. Unknown key names aren't echoed as trusted diagnostic fields. Duplicate keys, unsafe keys, malformed routes, unsupported values and retired fields block validation.
114
67
 
115
- After restart, a session with a committed sidecar uses that origin's exact immutable revision or explicit baseline, even if its draft/named default changed. Cold resume creates a new live admission using current valid desired deployment; it doesn't restore the exited process's old in-memory deployment snapshot. A session without a sidecar preserves the historical scoped-global-current behavior; it doesn't infer a previous profile from lineage/history. Corrupt, missing, linked or digest-mismatched sidecars/revisions fail visibly instead of falling back to baseline or a central same-name draft. Sidecars add no new session event vocabulary, so stock native history readers remain authoritative. Native clear/compact changes the session identity and doesn't automatically transfer an old choice.
68
+ Saves and selections require expected revisions. Cooperative writers share a lock, recheck the revision before commit, and use same-directory atomic replacement. A conflict retains the draft and prior selection: refresh and reconcile explicitly. A non-cooperating editor can still race between the final recheck and rename; this isn't a universal external-editor transaction. Failed pointer commits retain the prior selection, though an unused immutable revision may remain.
116
69
 
117
- Older sessions whose selected root ID is now auxiliary-only may fail native cold resume with an unknown preset ID. Read [compatibility](compatibility.md) before upgrading; never silently switch their persona or erase history.
70
+ ## Storage and lifetime
118
71
 
119
- ## Copy/import, authority and rollback
72
+ The central store is `<resolvedDshHome>/plugins/dsmm/profiles/`, a DSMM convention. Trusted home resolution uses explicit `profileContext.home`, then `DSH_HOME`, then the official `~/.dsh` default. Shared named drafts and immutable revisions are separate from selection/session state scoped to canonical native profile identity and the actual DSMM entry ID. Reads don't create files or locks. Clients and models can't choose arbitrary roots or entry identities.
120
73
 
121
- C0 provides fixture-verified, explicit non-destructive copy/import boundaries, not a production migration framework or completed private migration. A later real import needs separate authorization for the exact source. Preserve draft bytes, immutable revisions and source-scoped selection/session records; reject target name/revision conflicts rather than overwrite. Validate the full reference graph before explicitly switching that scope's origin. Don't delete, rename or modify the source, scan other profiles, infer cross-store references, or move native auth/sessionPersistence logs into the central library.
74
+ An old `<profileContext.dir>/dsmm-profiles` library is unsupported by 0.3.0. It remains untouched and is not replaced by a same-name central document. Invalid, missing, old-format, linked, unstable, or digest-mismatched references refuse. There is no automatic copy, import, migration, rewrite, or source deletion.
122
75
 
123
- For older 0.1.1 settings, explicitly save supported runtime values as a named draft, preserve deployment roles/skills/provider/account/UI rows, inspect, then apply separately. Named-profile operations don't rewrite `cordis.patch.yml` or migrate credentials. Backend native RPC authorization remains mandatory. There are no model-visible profile-management tools, child write capabilities, anonymous endpoints or authentication bypasses. The fixed deployment `dsmmConfig` describe/save service has its own local writable operator and precommit connection/lifetime requirements, described in [settings/status](settings-status.md#save-authority-and-concurrency); it isn't an import API.
76
+ Startup freezes deployment and mounted capabilities before consumers install. New ordinary roots capture current valid desired deployment plus the selected immutable overlay. Existing roots, including blank ones, keep their full captures; idle profile Apply replaces only the allowed overlay on that root's old deployment baseline. `getSettings(agent)` is authoritative for an existing Agent. Cold resume creates a new live admission from current valid deployment and its committed sidecar, or the scoped future default when no sidecar exists; it doesn't restore an exited process's memory snapshot.
124
77
 
125
- For policy rollback, explicitly choose global baseline, session baseline, or a reviewed prior profile in the intended scope using current CAS/epoch values. Never overwrite an immutable revision or restore draft bytes over a later user edit. Global rollback leaves existing live Agents unchanged; scoped rollback changes only the admitted idle root and future children. Package rollback is separate and uses an exact known immutable package through the official carrier; see [releasing](releasing.md).
78
+ Profile Apply never changes the native root model, remounts startup services or upgrades role permissions. Deepwork mode intent is separately saved and survives profile changes. Children retain their original route/locale/authority evidence, intersected with current exact-parent authority for delivery; see [Agent presets and child control](agent-presets.md).
126
79
 
127
- 0.1.4 documents remain loadable without rewriting user files. Omitted strategy now means the safer `startup-lock`; a legacy generic fallback chain no longer silently hops after later generic failures. `runtimeRecovery.enabled` is not the strategy selector. Read [runtime recovery](runtime-recovery.md) before upgrading a configuration that depended on generic automatic fallback.
80
+ *Author's note: For a DSH operator editing named policy; save first, then choose the intended future or current-session scope explicitly.*
package/docs/releasing.md CHANGED
@@ -1,6 +1,127 @@
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.3.0 pure compatibility release contract
4
+
5
+ The reviewed identity is **@dsmm/dsmm@0.3.0**, tag **dsmm-scoped-v0.3.0**, artifact **dsmm-dsmm-0.3.0.tgz**. This release carries the current 0.2.2 product behavior onto exact DSH `0.2.1-rc.1`, with the required public `./agent-registry` entry. It does not support or package old DSH cohorts, old capture/history formats, session-repair entrypoints, or Desktop/TUI cold-profile migration. It never reads, rewrites, or auto-migrates those user resources. Unified deployment/role UI, automatic runtime selection, and the unrelated six-job publication redesign remain outside 0.3.0. Historical tags, packages, assets, receipts, rc.2 SDK/runtime policy, and recovery authority remain immutable.
6
+
7
+ The manifest pins DSH peers and development SDK packages to exact `0.2.1-rc.1` and declares engine range `>=0.2.1-rc.1 <0.3.0-0`. The 0.3.0 release lane builds and packs the source without running test suites, test typechecks, source snapshot comparisons, Docker/browser acceptance, or post-publication native installation tests. Build compilation and resource generation remain required. Historical 0.1.x–0.2.2 receipt validation retains its own native acceptance requirements.
8
+
9
+ The sixteen public exports replace the retired `./legacy-read-host` compatibility entry with `./agent-registry` → `lib/agent-registry.{js,d.ts}`. `COMPILED_NAMES_030` removes the six legacy-read/capture compatibility modules and adds `agent-registry`; the package file policy excludes those compiled compatibility outputs and all repair/cold-migration operator scripts. Release receipts do not claim browser, history, permission, or other runtime tests passed.
10
+
11
+ The packaged startup patch is explicit: disable the exact stock Agent and Subagent rows, load one `DsmmAgentRegistry`, one `DsmmSubagentRuntime`, and Main, then restart the Host. The release neither hot-replaces stock services nor uses `runtime.enabled` or automatic composition.
12
+
13
+ The 0.3.0 transport records `sourceChecks: NOT_RUN_RELEASE_POLICY`, native acceptance and fresh installation as `NOT_RUN_RELEASE_POLICY`, and receipt scope `artifact-integrity-only`. The existing receipt asset filename is retained for transport compatibility; its content is package-integrity evidence, not a Docker test result. Artifact digests, trusted tag/run/attempt identity, registry provenance, and non-overwriting publication remain required. The terminal checker verifies these publication surfaces without executing functional tests or asserting they passed.
14
+
15
+ The workflow retains the existing mutually exclusive ordinary `import-bootstrap` / `prepare` / `publish` lane and `prepare-recovery-022` / `publish-recovery-022` lane, followed by shared `verify` and `github-release`. The completion authority and immutable-failure rules below are unchanged. After the authorized `dsmm-scoped-v0.3.0` run terminates, ordinary completion uses the released checkout and exact run identity:
16
+
17
+ ```powershell
18
+ node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <run> --run-attempt <attempt> --control-sha <released-commit> --receipt <new-030-terminal-receipt.json>
19
+ ```
20
+
21
+ Only exit 0 with receipt outcome `COMPLETED` establishes completion. A workflow conclusion, producer boolean, local build, registry visibility, or browser receipt alone does not.
22
+
23
+ ## Historical 0.2.2 stable native release contract
24
+
25
+ The reviewed source identity is **@dsmm/dsmm@0.2.2**, tag **dsmm-scoped-v0.2.2**, artifact **dsmm-dsmm-0.2.2.tgz**. The tag is permanently fixed to **dff1ac8ffd58316455256ef1c64c19d6e73e1293**. 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. A working checkout or local smoke receipt is not release completion or publication authorization.
26
+
27
+ ### Restricted unpublished recovery
28
+
29
+ The same trusted `.github/workflows/dsmm-release.yml` accepts only the explicit dispatch selector `recovery=unpublished-0.2.2` on `master` for recovery. An omitted or empty selector retains the frozen 0.1.2 bootstrap entry; unknown selectors or additional inputs fail closed. This is a new run with genuine new workflow/event/control identity, not a rerun of the original source-tag workflow. Only the recovery prepare/publish pair has `contents: write` for authenticated read-only draft-aware Release admission; the ordinary prepare/publish pair retains `contents: read`. OIDC write permission remains confined to the two mutually exclusive publishers.
30
+
31
+ `release-recovery-022.mjs` admits only original workflow ID **374825007**, run **38822000490**, current and fixed attempt **1**, terminal `prepare=failure` and the four other original jobs skipped, with no accepted artifact. At recovery entry and immediately before the sole irreversible publish, it rechecks that history, trusted master ancestry, the unchanged remote tag, exact npm version 404, and authenticated complete paginated absence of public or draft Releases. Network ambiguity, another attempt, an existing package/Release, incomplete pagination or partial publication stops without repair, overwrite or publish retry. Post-publication verification and terminal checks do not require absence.
32
+
33
+ Control is checked out at the actual new `github.workflow_sha`; product source is independently checked out at the fixed original commit. Runtime image context, SDK extraction, dependency installation, source tests, materialization, build, generation and the single pnpm pack all use **source**, not control. `assert-source`, `pack` and recovery `freeze` require `--source-root <independent-source-checkout>` as a per-job CLI argument. Guards bind real independent paths, original source HEAD/tag/version and clean `PACK_INPUTS`, plus the new control HEAD and required control files. Absolute checkout paths and dynamic absence observations are never persisted in cross-job context. Control script fixes and this document must not be copied into the original product package. Any native gate failure requiring product changes must stop and be reported.
34
+
35
+ Automatic OIDC provenance truthfully describes `.github/workflows/dsmm-release.yml@refs/heads/master`, its new control commit, actual `workflow_dispatch`, hosted builder and new run/attempt. The attestation's SHA512 subject must equal the frozen package. The receipt distinguishes `productSourceSha` from `attestedControlSha`; it does not claim that the original source tag is the attested workflow checkout. Fixed policy, source guards, artifact identity and independent remote-tag verification bind that product source. No GitHub environment identity or provenance is synthesized.
36
+
37
+ The parent-owned release invocation, after its integration gates and explicitly authorized Git delivery, is:
38
+
39
+ ```powershell
40
+ gh workflow run dsmm-release.yml --repo hugefiver/ocmm --ref master -f recovery=unpublished-0.2.2
41
+ ```
42
+
43
+ Dispatch is not completion. Preserve the original tag and any partially published package or assets on every failure; any subsequent same-identity rerun needs separate authorization.
44
+
45
+ ### Stable delivery boundary
46
+
47
+ 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.
48
+
49
+ 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.
50
+
51
+ `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.
52
+
53
+ 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.
54
+
55
+ 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).
56
+
57
+ ### Explicit source and receipt APIs
58
+
59
+ 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.
60
+
61
+ `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.
62
+
63
+ `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.
64
+
65
+ 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.
66
+
67
+ ### Explicit source-test application fixtures
68
+
69
+ 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:
70
+
71
+ ```powershell
72
+ $env:DSMM_COLD_PROFILE_SDK_ANCHOR = "<absolute path to the isolated rc.2 SDK package.json>"
73
+ $env:DSMM_COLD_PROFILE_GENUINE_SEED = "<new absolute task-owned temporary directory>"
74
+ node dsmm/test/prepare-cold-profile-genuine-seed.mjs --destination $env:DSMM_COLD_PROFILE_GENUINE_SEED
75
+ ```
76
+
77
+ 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.
78
+
79
+ 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.
80
+
81
+ ### Fresh frozen-byte CI acceptance
82
+
83
+ The required dedicated workflow sequence is:
84
+
85
+ 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.
86
+ 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.
87
+ 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.
88
+ 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.
89
+ 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.
90
+ 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.
91
+ 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.
92
+ 8. Run the DSMM-local terminal checker for the exact terminated run/attempt from the released checkout.
93
+
94
+ 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.
95
+
96
+ 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`, `profile-ui-harness-stable021{,-native}.mjs` and `native-preset-smoke.mjs`. Both prepare paths call the executable `release-native-gate.mjs` seam, which supplies and validates the complete explicit support set before invoking Docker. 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.
97
+
98
+ 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.
99
+
100
+ 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.
101
+
102
+ ### Terminal authority and immutable failure handling
103
+
104
+ After the authorized matching workflow terminates, use the exact **new control HEAD** checkout and a new receipt path for recovery:
105
+
106
+ ```powershell
107
+ node dsmm/scripts/check-dsmm-release-completion.mjs terminal --recovery unpublished-0.2.2 --run-id <new-run> --run-attempt <actual-attempt> --control-sha <new-control-head> --receipt <new-022-terminal-receipt.json>
108
+ ```
109
+
110
+ Only exit **0** with receipt outcome **COMPLETED** proves release completion. New controls fix the topology to `split-recovery-022-v1` in a dedicated context field, separate from the standard workflow object. Exactly seven jobs are required: `import-bootstrap`, `prepare`, `publish`, `prepare-recovery-022`, `publish-recovery-022`, `verify`, `github-release`. Recovery requires the first three skipped and the last four successful; ordinary runs require the recovery pair skipped and the original mode-specific conclusions. The terminal checker pins topology from the exact trusted control HEAD, not an artifact's self-description or observed job count. Historical five-job validation and fixed published-continuation identities remain separate and unchanged. Ordinary new-control terminal invocations omit `--recovery`.
111
+
112
+ The product source/tag, genuine new control/event/ref, fixed new run/attempt, fresh complete Docker/native/UI/LSP acceptance, registry bytes/provenance, fresh native install, accepted/proof artifacts bound to `head_sha=<new-control>` and `head_branch=master`, and exactly three public Release assets with checksums must agree. `verify` and `github-release` directly depend on both pairs and explicitly accept only the selected pair's success with the other skipped. Accepted artifact ID selection rejects empty or dual outputs **before** download. 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.
113
+
114
+ 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.
115
+
116
+ ## Historical 0.2.1 source and proof authority
117
+
118
+ 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.
119
+
120
+ ## Historical 0.2.0 source and proof authority
121
+
122
+ 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.
123
+
124
+ ### 0.2.0 working-source authority
4
125
 
5
126
  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
127
 
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