@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
@@ -6,6 +6,17 @@
6
6
 
7
7
  ---
8
8
 
9
+ <ocmm-locale-guidance>
10
+ Language and locale:
11
+ - This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
12
+ - When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
13
+ - If the user mixes languages, use the language that best matches the current request.
14
+ - Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
15
+ - If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
16
+ </ocmm-locale-guidance>
17
+
18
+ ---
19
+
9
20
  <agent-role name="reviewer">
10
21
 
11
22
  # Agent Role: implementation reviewer
@@ -18,6 +29,12 @@
18
29
 
19
30
  Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
20
31
 
32
+ Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
33
+
34
+ Tests cover valid requirements, functionality, and external interfaces. Reject string, regex, snapshot, or parsed-content locks for documentation, commit messages, package descriptions, or non-boundary error/log wording. Changed requirements update tests; removed components lose their dedicated tests, not gain absence tests. Preserve valid safety/protocol/input-handling coverage. Git commits bound compatibility: uncommitted intermediate behavior may change incompatibly for final requirements, but an uncommitted edit does not erase committed contracts or expand API/security/data/permission/irreversible-action authorization. Report actual defects, current risks, unresolved authorization, and unverified evidence.
35
+
36
+ Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
37
+
21
38
  Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. After a substantive correction, repeat only the affected review when further review is warranted. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
22
39
 
23
40
  Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
@@ -27,10 +44,12 @@
27
44
  ---
28
45
 
29
46
  <dsmm-host-contract>
30
- Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Ask a material question in conversation if no question tool is exposed. Use LSP/browser/image tools only when present; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed.
31
- Logical source role names map to dsmm-<name> (explore is only the code-search alias). Use only actually callable role-specific native subagent tools. Static presets do not prove callability, continuation, background, plan-artifact writes or depth. A planner may write only an authorized Markdown plan through an actual path-restricted capability; absence is a reported limitation, never permission for general shell/write access.
47
+ Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not an OCMM compression tool.
48
+ Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
49
+ One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
32
50
  The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
33
- Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; Stage C owns enforcement, not these static texts.
51
+ Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
52
+ Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
34
53
  </dsmm-host-contract>
35
54
 
36
55
  ---
@@ -93,350 +112,16 @@
93
112
  config:
94
113
  maxBytes: 65536
95
114
  - id: tool-fs
96
- name: '@deepseek-ai/dsh-tool-fs'
115
+ name: '@dsmm/dsmm/permission-fs'
97
116
  - id: tool-fs-search
98
- name: '@deepseek-ai/dsh-tool-fs-search'
117
+ name: '@dsmm/dsmm/permission-fs-search'
99
118
  config:
100
119
  sampleOverCapGlobResults: false
101
120
  - id: tool-web
102
- name: '@deepseek-ai/dsh-tool-web'
121
+ name: '@dsmm/dsmm/permission-web'
103
122
  config:
104
123
  fetch: true
105
124
  - id: skill-filesystem
106
125
  name: '@deepseek-ai/dsh-skill-filesystem'
107
126
  - id: tool-skill
108
127
  name: '@deepseek-ai/dsh-tool-skill'
109
- - id: subagent-dsmm-code-search
110
- name: '@deepseek-ai/dsh-tool-subagent'
111
- config:
112
- provider: 'dsmm-role-code-search'
113
- toolName: 'dsmm_code_search'
114
- modelSelectionSettings: false
115
- backgroundMode: 'one-shot'
116
- enableRunInBackground: false
117
- persona: |-
118
- You are DW Code Search (role ID: dsmm-code-search).
119
-
120
- ---
121
-
122
- Internal contextual grep. Finds files, patterns, references inside the codebase.
123
-
124
- ---
125
-
126
- <dsmm-host-contract>
127
- Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Ask a material question in conversation if no question tool is exposed. Use LSP/browser/image tools only when present; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed.
128
- Logical source role names map to dsmm-<name> (explore is only the code-search alias). Use only actually callable role-specific native subagent tools. Static presets do not prove callability, continuation, background, plan-artifact writes or depth. A planner may write only an authorized Markdown plan through an actual path-restricted capability; absence is a reported limitation, never permission for general shell/write access.
129
- The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
130
- Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; Stage C owns enforcement, not these static texts.
131
- </dsmm-host-contract>
132
-
133
- ---
134
-
135
- <ocmm-shell-command-safety>
136
- # Shell Command Safety
137
-
138
- - Keep terminal commands short and inspectable. Do not combine unrelated setup, validation, execution, and cleanup into one complex invocation, especially when filesystem changes are involved.
139
- - Avoid hard-to-audit complex shell commands, nested scripts, and large inline Node.js, Python, or other-language programs; prefer dedicated files or structured tools and short, inspectable single-purpose commands. Simple `node -e`/`python -c` probes and proportionate scripts are fine. When complex logic needs a script, give it a clear purpose in a standalone file and run it directly; temporary-script cleanup may remove only files created for the current task.
140
- - In PowerShell, do not use `$home` or any case variant as a custom variable: variable names are case-insensitive and `$HOME` is an automatic variable. Use a specific, purpose-named variable instead.
141
- - Treat recursive or batch deletion as a fail-closed operation. Prefer an exact literal target. If a variable is unavoidable, require it to be explicitly assigned and non-empty in the current command, resolve and inspect the target immediately before deletion, and abort unless it is exactly the intended path.
142
- - Never recursively or batch-delete a filesystem root, the user home, the workspace, an ancestor of the workspace, or an unexpected parent directory. Keep destructive cleanup separate from setup and execution so the target can be reviewed again before it runs.
143
- </ocmm-shell-command-safety>
144
-
145
- <ocmm-subagent-compression-policy>
146
- ## Subagent Compression Policy
147
- Apply this policy only when the current execution is a subagent session and a `compress` tool is available.
148
- If `compress` is unavailable, do not propose, simulate, or attempt compression.
149
- A long conversation, a high message count, one large tool result, or a stage boundary is not sufficient.
150
- Trustworthy capacity or size information alone is insufficient: do not proactively compress.
151
- When no trustworthy capacity signal or size estimate exists, do not compress proactively.
152
- Emergency compression is allowed only when an explicit capacity warning, context-budget signal, or concrete evidence shows the next bounded task cannot fit. Remove only the smallest closed range needed to continue safely.
153
- Preserve the task goal, constraints, current state, pending work, decisions, paths, interfaces, and necessary evidence.
154
- Never compress the active phase, unresolved errors, or source material still needed for exact quotation or verification.
155
-
156
- ### Completed large-exploration recommendation
157
- This recommended proactive path applies only when every condition holds:
158
- - The exploration is completely finished; no file, search branch, or evidence question from that batch remains open.
159
- - A trustworthy estimate shows that the completed exploration introduced more than 100k tokens of source material into the current context.
160
- - Required findings, paths, decisions, constraints, and exact evidence that must survive have been materialized in the response or a durable note.
161
- - The selected raw exploration range is closed and no longer needed verbatim.
162
- - The same subagent will continue into a subsequent synthesis, planning, implementation, or review phase within the same assignment. If exploration completes the assignment and the subagent will return immediately, do not compress.
163
- This is a recommendation, not a mandatory tool call. If the token estimate is unavailable, do not invent it. Never compress during an active exploration, even if cumulative reads appear large.
164
- </ocmm-subagent-compression-policy>
165
-
166
- <ocmm-delegation-contract>
167
- ## Delegation Contract (Authoritative)
168
- This role is a utility leaf agent. Do not dispatch any subagent.
169
- Complete the bounded assignment with direct tools and return the result to the caller.
170
- This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
171
- </ocmm-delegation-contract>
172
-
173
- The source delegation allowance is conditional on actual native callability and the caller's inherited authority; formal workflow stages belong to the trusted root/stage owner. No static text grants a tool or overrides an execution restriction.
174
- toolFilter:
175
- allow:
176
- - 'read'
177
- - 'glob'
178
- - 'grep'
179
- - id: subagent-dsmm-doc-search
180
- name: '@deepseek-ai/dsh-tool-subagent'
181
- config:
182
- provider: 'dsmm-role-doc-search'
183
- toolName: 'dsmm_doc_search'
184
- modelSelectionSettings: false
185
- backgroundMode: 'one-shot'
186
- enableRunInBackground: false
187
- persona: |-
188
- You are DW Doc Search (role ID: dsmm-doc-search).
189
-
190
- ---
191
-
192
- External-reference lookup: docs, OSS examples, and API references.
193
-
194
- ---
195
-
196
- <dsmm-host-contract>
197
- Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Ask a material question in conversation if no question tool is exposed. Use LSP/browser/image tools only when present; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed.
198
- Logical source role names map to dsmm-<name> (explore is only the code-search alias). Use only actually callable role-specific native subagent tools. Static presets do not prove callability, continuation, background, plan-artifact writes or depth. A planner may write only an authorized Markdown plan through an actual path-restricted capability; absence is a reported limitation, never permission for general shell/write access.
199
- The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
200
- Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; Stage C owns enforcement, not these static texts.
201
- </dsmm-host-contract>
202
-
203
- ---
204
-
205
- <ocmm-shell-command-safety>
206
- # Shell Command Safety
207
-
208
- - Keep terminal commands short and inspectable. Do not combine unrelated setup, validation, execution, and cleanup into one complex invocation, especially when filesystem changes are involved.
209
- - Avoid hard-to-audit complex shell commands, nested scripts, and large inline Node.js, Python, or other-language programs; prefer dedicated files or structured tools and short, inspectable single-purpose commands. Simple `node -e`/`python -c` probes and proportionate scripts are fine. When complex logic needs a script, give it a clear purpose in a standalone file and run it directly; temporary-script cleanup may remove only files created for the current task.
210
- - In PowerShell, do not use `$home` or any case variant as a custom variable: variable names are case-insensitive and `$HOME` is an automatic variable. Use a specific, purpose-named variable instead.
211
- - Treat recursive or batch deletion as a fail-closed operation. Prefer an exact literal target. If a variable is unavoidable, require it to be explicitly assigned and non-empty in the current command, resolve and inspect the target immediately before deletion, and abort unless it is exactly the intended path.
212
- - Never recursively or batch-delete a filesystem root, the user home, the workspace, an ancestor of the workspace, or an unexpected parent directory. Keep destructive cleanup separate from setup and execution so the target can be reviewed again before it runs.
213
- </ocmm-shell-command-safety>
214
-
215
- <ocmm-subagent-compression-policy>
216
- ## Subagent Compression Policy
217
- Apply this policy only when the current execution is a subagent session and a `compress` tool is available.
218
- If `compress` is unavailable, do not propose, simulate, or attempt compression.
219
- A long conversation, a high message count, one large tool result, or a stage boundary is not sufficient.
220
- Trustworthy capacity or size information alone is insufficient: do not proactively compress.
221
- When no trustworthy capacity signal or size estimate exists, do not compress proactively.
222
- Emergency compression is allowed only when an explicit capacity warning, context-budget signal, or concrete evidence shows the next bounded task cannot fit. Remove only the smallest closed range needed to continue safely.
223
- Preserve the task goal, constraints, current state, pending work, decisions, paths, interfaces, and necessary evidence.
224
- Never compress the active phase, unresolved errors, or source material still needed for exact quotation or verification.
225
-
226
- ### Completed large-exploration recommendation
227
- This recommended proactive path applies only when every condition holds:
228
- - The exploration is completely finished; no file, search branch, or evidence question from that batch remains open.
229
- - A trustworthy estimate shows that the completed exploration introduced more than 100k tokens of source material into the current context.
230
- - Required findings, paths, decisions, constraints, and exact evidence that must survive have been materialized in the response or a durable note.
231
- - The selected raw exploration range is closed and no longer needed verbatim.
232
- - The same subagent will continue into a subsequent synthesis, planning, implementation, or review phase within the same assignment. If exploration completes the assignment and the subagent will return immediately, do not compress.
233
- This is a recommendation, not a mandatory tool call. If the token estimate is unavailable, do not invent it. Never compress during an active exploration, even if cumulative reads appear large.
234
- </ocmm-subagent-compression-policy>
235
-
236
- <ocmm-delegation-contract>
237
- ## Delegation Contract (Authoritative)
238
- This role is a utility leaf agent. Do not dispatch any subagent.
239
- Complete the bounded assignment with direct tools and return the result to the caller.
240
- This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
241
- </ocmm-delegation-contract>
242
-
243
- The source delegation allowance is conditional on actual native callability and the caller's inherited authority; formal workflow stages belong to the trusted root/stage owner. No static text grants a tool or overrides an execution restriction.
244
- toolFilter:
245
- allow:
246
- - 'read'
247
- - 'glob'
248
- - 'grep'
249
- - 'web_search'
250
- - 'web_fetch'
251
- - id: subagent-dsmm-media-reader
252
- name: '@deepseek-ai/dsh-tool-subagent'
253
- config:
254
- provider: 'dsmm-role-media-reader'
255
- toolName: 'dsmm_media_reader'
256
- modelSelectionSettings: false
257
- backgroundMode: 'one-shot'
258
- enableRunInBackground: false
259
- persona: |-
260
- You are DW Media Reader (role ID: dsmm-media-reader).
261
-
262
- ---
263
-
264
- Analyzes media (images, PDFs, diagrams) - extracts structured info from visual content.
265
-
266
- ---
267
-
268
- <dsmm-host-contract>
269
- Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Ask a material question in conversation if no question tool is exposed. Use LSP/browser/image tools only when present; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed.
270
- Logical source role names map to dsmm-<name> (explore is only the code-search alias). Use only actually callable role-specific native subagent tools. Static presets do not prove callability, continuation, background, plan-artifact writes or depth. A planner may write only an authorized Markdown plan through an actual path-restricted capability; absence is a reported limitation, never permission for general shell/write access.
271
- The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
272
- Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; Stage C owns enforcement, not these static texts.
273
- </dsmm-host-contract>
274
-
275
- ---
276
-
277
- <ocmm-shell-command-safety>
278
- # Shell Command Safety
279
-
280
- - Keep terminal commands short and inspectable. Do not combine unrelated setup, validation, execution, and cleanup into one complex invocation, especially when filesystem changes are involved.
281
- - Avoid hard-to-audit complex shell commands, nested scripts, and large inline Node.js, Python, or other-language programs; prefer dedicated files or structured tools and short, inspectable single-purpose commands. Simple `node -e`/`python -c` probes and proportionate scripts are fine. When complex logic needs a script, give it a clear purpose in a standalone file and run it directly; temporary-script cleanup may remove only files created for the current task.
282
- - In PowerShell, do not use `$home` or any case variant as a custom variable: variable names are case-insensitive and `$HOME` is an automatic variable. Use a specific, purpose-named variable instead.
283
- - Treat recursive or batch deletion as a fail-closed operation. Prefer an exact literal target. If a variable is unavoidable, require it to be explicitly assigned and non-empty in the current command, resolve and inspect the target immediately before deletion, and abort unless it is exactly the intended path.
284
- - Never recursively or batch-delete a filesystem root, the user home, the workspace, an ancestor of the workspace, or an unexpected parent directory. Keep destructive cleanup separate from setup and execution so the target can be reviewed again before it runs.
285
- </ocmm-shell-command-safety>
286
-
287
- <ocmm-subagent-compression-policy>
288
- ## Subagent Compression Policy
289
- Apply this policy only when the current execution is a subagent session and a `compress` tool is available.
290
- If `compress` is unavailable, do not propose, simulate, or attempt compression.
291
- A long conversation, a high message count, one large tool result, or a stage boundary is not sufficient.
292
- Trustworthy capacity or size information alone is insufficient: do not proactively compress.
293
- When no trustworthy capacity signal or size estimate exists, do not compress proactively.
294
- Emergency compression is allowed only when an explicit capacity warning, context-budget signal, or concrete evidence shows the next bounded task cannot fit. Remove only the smallest closed range needed to continue safely.
295
- Preserve the task goal, constraints, current state, pending work, decisions, paths, interfaces, and necessary evidence.
296
- Never compress the active phase, unresolved errors, or source material still needed for exact quotation or verification.
297
-
298
- ### Completed large-exploration recommendation
299
- This recommended proactive path applies only when every condition holds:
300
- - The exploration is completely finished; no file, search branch, or evidence question from that batch remains open.
301
- - A trustworthy estimate shows that the completed exploration introduced more than 100k tokens of source material into the current context.
302
- - Required findings, paths, decisions, constraints, and exact evidence that must survive have been materialized in the response or a durable note.
303
- - The selected raw exploration range is closed and no longer needed verbatim.
304
- - The same subagent will continue into a subsequent synthesis, planning, implementation, or review phase within the same assignment. If exploration completes the assignment and the subagent will return immediately, do not compress.
305
- This is a recommendation, not a mandatory tool call. If the token estimate is unavailable, do not invent it. Never compress during an active exploration, even if cumulative reads appear large.
306
- </ocmm-subagent-compression-policy>
307
-
308
- <ocmm-delegation-contract>
309
- ## Delegation Contract (Authoritative)
310
- This role is a utility leaf agent. Do not dispatch any subagent.
311
- Complete the bounded assignment with direct tools and return the result to the caller.
312
- This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
313
- </ocmm-delegation-contract>
314
-
315
- The source delegation allowance is conditional on actual native callability and the caller's inherited authority; formal workflow stages belong to the trusted root/stage owner. No static text grants a tool or overrides an execution restriction.
316
- toolFilter:
317
- allow:
318
- - 'read'
319
- - 'glob'
320
- - 'grep'
321
- - 'web_search'
322
- - 'web_fetch'
323
- - id: subagent-dsmm-research
324
- name: '@deepseek-ai/dsh-tool-subagent'
325
- config:
326
- provider: 'dsmm-role-research'
327
- toolName: 'dsmm_research'
328
- modelSelectionSettings: false
329
- backgroundMode: 'one-shot'
330
- enableRunInBackground: false
331
- persona: |-
332
- You are DW Research (role ID: dsmm-research).
333
-
334
- ---
335
-
336
- # Category: research
337
-
338
- You are operating in the **research** category. Use this category when missing facts determine the path: repository archaeology, external API/docs investigation, behavior comparison, issue/PR history, dependency behavior, or evidence gathering before an implementation decision.
339
-
340
- ## Shell Adaptation
341
-
342
- Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
343
-
344
- ## OPERATING POSTURE
345
-
346
- - **Goal, not plan.** The caller gave you an outcome. They did not give you a step list. Your first job is to find the facts that decide the path.
347
- - **Evidence before synthesis.** Read code, inspect docs, run probes, and test assumptions before producing a conclusion.
348
- - **Atomic task treatment.** Treat the goal as one indivisible commitment. Do not split it into a TODO list and ship halfway. You either deliver the goal or you escalate.
349
- - **Root-cause bias.** When you hit a defect, fix the cause. Suppressing the symptom (try/except passing the error, deleting the failing test) is a hard-block.
350
- - **Scope follows the question.** If the caller asked for findings, deliver findings. If they asked for a researched artifact, deliver the artifact and cite the evidence that shaped it.
351
-
352
- ## BOUNDED RESEARCH
353
-
354
- For complex research, state the specific branch question before exploring it and set a small evidence or time budget. Define the exit condition up front: stop when the branch answers the question, the evidence is sufficient, or further lookup is unlikely to change the conclusion. Fold useful findings back into the caller's main question rather than opening additional branches. After repeated excursions produce no new decision-relevant evidence, stop exploring. Close with the answer and, when useful, a concise count of sources, checks, or unresolved gaps.
355
-
356
- ## Research Provenance
357
-
358
- - When a tool provides provenance, preserve the route and the retrieval and publication dates in the result.
359
- - Treat an archive or snapshot as timestamped historical evidence, not live evidence.
360
- - Treat a proxy, mirror, cache, or explicitly untrusted source as indirect evidence. Corroborate every material claim through an independent route.
361
- - When a tool has no provenance, state that limitation. Do not invent provenance, dates, or source status.
362
-
363
- ## COMPLETION BAR
364
-
365
- You are done when ALL of these are true:
366
-
367
- 1. The deliverable exists and works on real input (not just on the toy case).
368
- 2. Every test you broke is fixed; every test that should exist now does.
369
- 3. You have probed the failure modes you can reach in this environment (concurrent calls, edge values, missing dependencies).
370
- 4. You have left the codebase in a state another engineer can pick up — naming, comments only where needed, no dead branches.
371
-
372
- If even one is false, keep going. Reporting "mostly done" is failure.
373
-
374
- ## STATUS CADENCE
375
-
376
- - Sparse. The caller does not need a play-by-play.
377
- - Send one update at the halfway mark with: what you've found, what you're going to do, expected finish.
378
- - Send one update at completion with: what landed, what remains (if anything), how to verify.
379
-
380
- ## ANTI-PATTERNS (blocking)
381
-
382
- - "Here is what I would do" instead of doing it.
383
- - A plan with 12 todo items where each item is generic.
384
- - Stopping at the first design that compiles.
385
- - Asking the caller to choose between options when the choice is yours.
386
- - Streaming live thoughts to look busy. Think silently; act decisively.
387
-
388
- ## DELIVERABLE
389
-
390
- - The thing you were asked for, complete.
391
- - A short report: what you found, the path you took, what surprised you.
392
-
393
- ---
394
-
395
- <dsmm-host-contract>
396
- Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Ask a material question in conversation if no question tool is exposed. Use LSP/browser/image tools only when present; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed.
397
- Logical source role names map to dsmm-<name> (explore is only the code-search alias). Use only actually callable role-specific native subagent tools. Static presets do not prove callability, continuation, background, plan-artifact writes or depth. A planner may write only an authorized Markdown plan through an actual path-restricted capability; absence is a reported limitation, never permission for general shell/write access.
398
- The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
399
- Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; Stage C owns enforcement, not these static texts.
400
- </dsmm-host-contract>
401
-
402
- ---
403
-
404
- <ocmm-shell-command-safety>
405
- # Shell Command Safety
406
-
407
- - Keep terminal commands short and inspectable. Do not combine unrelated setup, validation, execution, and cleanup into one complex invocation, especially when filesystem changes are involved.
408
- - Avoid hard-to-audit complex shell commands, nested scripts, and large inline Node.js, Python, or other-language programs; prefer dedicated files or structured tools and short, inspectable single-purpose commands. Simple `node -e`/`python -c` probes and proportionate scripts are fine. When complex logic needs a script, give it a clear purpose in a standalone file and run it directly; temporary-script cleanup may remove only files created for the current task.
409
- - In PowerShell, do not use `$home` or any case variant as a custom variable: variable names are case-insensitive and `$HOME` is an automatic variable. Use a specific, purpose-named variable instead.
410
- - Treat recursive or batch deletion as a fail-closed operation. Prefer an exact literal target. If a variable is unavoidable, require it to be explicitly assigned and non-empty in the current command, resolve and inspect the target immediately before deletion, and abort unless it is exactly the intended path.
411
- - Never recursively or batch-delete a filesystem root, the user home, the workspace, an ancestor of the workspace, or an unexpected parent directory. Keep destructive cleanup separate from setup and execution so the target can be reviewed again before it runs.
412
- </ocmm-shell-command-safety>
413
-
414
- <ocmm-subagent-compression-policy>
415
- ## Subagent Compression Policy
416
- Apply this policy only when the current execution is a subagent session and a `compress` tool is available.
417
- If `compress` is unavailable, do not propose, simulate, or attempt compression.
418
- A long conversation, a high message count, one large tool result, or a stage boundary is not sufficient.
419
- Trustworthy capacity or size information alone is insufficient: do not proactively compress.
420
- When no trustworthy capacity signal or size estimate exists, do not compress proactively.
421
- Emergency compression is allowed only when an explicit capacity warning, context-budget signal, or concrete evidence shows the next bounded task cannot fit. Remove only the smallest closed range needed to continue safely.
422
- Preserve the task goal, constraints, current state, pending work, decisions, paths, interfaces, and necessary evidence.
423
- Never compress the active phase, unresolved errors, or source material still needed for exact quotation or verification.
424
-
425
- ### Completed large-exploration recommendation
426
- This recommended proactive path applies only when every condition holds:
427
- - The exploration is completely finished; no file, search branch, or evidence question from that batch remains open.
428
- - A trustworthy estimate shows that the completed exploration introduced more than 100k tokens of source material into the current context.
429
- - Required findings, paths, decisions, constraints, and exact evidence that must survive have been materialized in the response or a durable note.
430
- - The selected raw exploration range is closed and no longer needed verbatim.
431
- - The same subagent will continue into a subsequent synthesis, planning, implementation, or review phase within the same assignment. If exploration completes the assignment and the subagent will return immediately, do not compress.
432
- This is a recommendation, not a mandatory tool call. If the token estimate is unavailable, do not invent it. Never compress during an active exploration, even if cumulative reads appear large.
433
- </ocmm-subagent-compression-policy>
434
-
435
- <ocmm-delegation-contract>
436
- ## Delegation Contract (Authoritative)
437
- This role is a utility leaf agent. Do not dispatch any subagent.
438
- Complete the bounded assignment with direct tools and return the result to the caller.
439
- This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
440
- </ocmm-delegation-contract>
441
-
442
- The source delegation allowance is conditional on actual native callability and the caller's inherited authority; formal workflow stages belong to the trusted root/stage owner. No static text grants a tool or overrides an execution restriction.
@@ -1,78 +1,62 @@
1
- # Deepwork source roles on DSH 0.2.0-rc.2
1
+ # Deepwork Agent presets and child control
2
2
 
3
- DSMM's canonical content inventory is **11 base roles + 11 categories**, not twelve short personas. Base roles are orchestrator, builder, reviewer, oracle, oracle-2nd, doc-search, code-search, planner, clarifier, plan-critic and media-reader. Categories are frontend, creative, hard-reasoning, research, quick, coding, normal-task, complex, deep, documenting and cross-cutting. IDs are `dsmm-<source-name>`; explore is only a code-search compatibility alias, not an additional role. Existing `dsmm-creative` is preserved. Cross-cutting defaults disabled; all other canonical items default enabled.
3
+ This guide describes built source behavior on the native DSH integration, not automatic availability in the published `@dsmm/dsmm@0.2.0` artifact. Native package composition and callable admission must both exist.
4
4
 
5
- ## Content and authority
5
+ ## Roles and composition
6
6
 
7
- Every role consumes its complete adapted source Markdown when one exists, actual catalog responsibility and source terminal TS policy. Oracle/Oracle 2nd share reviewer content, not new personas. Builder and the utility roles without standalone source Markdown retain their actual catalog responsibilities and full active workflow. `prompts/source/manifest.json` maps each source/assembled artifact to its runtime consumer. See [source synchronization](skill-sync.md).
7
+ The canonical inventory is 11 base roles and 11 categories. Base roles are orchestrator, builder, reviewer, oracle, oracle-2nd, doc-search, code-search, planner, clarifier, plan-critic and media-reader. Categories are frontend, creative, hard-reasoning, research, quick, coding, normal-task, complex, deep, documenting and cross-cutting. IDs are `dsmm-<source-name>`; `explore` is a code-search compatibility alias, not another role. Cross-cutting defaults disabled; other canonical items default enabled.
8
8
 
9
- Frontend skill resources are fully materialized from the root-declared immutable sources, with project-original aside preserved. Native skill metadata remains body-free. Default build/package checks are offline and refuse missing resources; a fresh source checkout needs the explicit `sync:frontend` step before a source Docker context or package can be complete. Ignored upstream body files are not source commits and must still ship in the artifact.
9
+ Only Orchestrator and Builder (`primary`) and Planner (`all`) are root-eligible. Planner root exposure additionally requires `presets.plannerRootEnabled: true`; it defaults false. This does not disable `roles.dsmm-planner` (default true), its native workflow provider, or its read-only delegation. Other roles are auxiliary-only (`subagent`), regardless of enablement. Native preset selection displays `DW …` labels under unchanged IDs. A role name is a responsibility, not a model choice or authority claim.
10
10
 
11
- Only Orchestrator/Builder (`primary`) and Planner (`all`) are root-eligible. The other 19 are auxiliary-only (`subagent`), independent of enablement. Root eligibility does not imply child delegation permission. Root Builder is a trusted stage owner, not a bounded child; native child Builder must retain its narrower assignment. The source grouping is:
11
+ Native `agentPresets.register({id, plugins})` registers root compositions; DSH doesn't discover them by scanning exported directories. Generated `agent-presets/` mirrors are inspection/export resources. `presets.materialize` defaults off and never selects the Host default preset. Personas, read-only restrictions and host approvals remain when explicit Deepwork off hides common workflow and DSMM skills. Complete adapted source content and resources are described in [source synchronization](skill-sync.md).
12
12
 
13
- | Identity/group | Permitted logical children, intersected with actual capability/authority |
14
- | --- | --- |
15
- | Trusted root/stage-owner Orchestrator or Builder | Authorized workflow and execution roles; owns formal planning, criticism and acceptance |
16
- | Utility leaves: quick, code-search, doc-search, research, media-reader | None; research remains strict leaf |
17
- | Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader; never quick or workflow owners |
18
- | coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves only |
19
- | deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists; no workflow owners or local-coordinator peers |
20
- | Bounded native child Builder | Bounded utility leaves only; never inherit stage ownership from persona or preset name |
13
+ The Planner root flag follows the existing deployment `presets` scope: Global config and the current DSH entry may set it; named/session overlays cannot. The complete `presets` group is startup-pinned. Saving desired changes neither migrates running Agents nor changes the standing registry; next-root settings report `restartRequired: ["presets"]` until an independent Host restart. After restart, disabled Planner roots are not registered for native picker, definition export or mounting, and forced native/API creation or root resume is refused before prompt/provider execution. Opting in still requires the enabled module, enabled role, usable native composition and current admission; it never grants writes. Original child captures do not contain `presets`: old captured workflow Planner children retain their original route, epoch and read-only ceiling without migration or current-parent permission reconstruction. Harness's native `/plan` and its plan-mode composition remain unchanged.
14
+
15
+ Standing Orchestrator/Builder compositions include native planning, compaction/pruning, question and todo rows. Planner includes planning, compaction/pruning and questions, but no todo writer. Coding/frontend/deep/complex/cross-cutting include compaction/pruning, questions and todo; other auxiliary roles add none of those rows. Native spawn can retain parent services, so this isn't a promise to strip every inherited row from short children. Effective filters and execution fences still decide access. Native `/plan` doesn't upgrade Planner permissions, and `/compact` remains a human native command.
21
16
 
22
- The shared `role-policy.ts` consumes this matrix for native/headless Agent catalogs, provider admission, mandatory execution fences and an Agent-scoped identity prompt. Root authority comes from native preset composition or explicit common activation on an ordinary root with mounted coordinator substrate, not a claimed header/persona. Alias creation carries scoped admission identity; continuable creation checks native descriptor, exact live ownership and parent capture. A child Builder is bounded. Generic spawn in a DSMM-owned workflow cannot substitute for role admission; unrelated ordinary off-mode native children retain host behavior without gaining DSMM delegation. Pure durable role labels may inform routing/history, never authorization. No static file/list is callable proof.
17
+ ## Delegation authority
23
18
 
24
- Planner remains read-only in both main-preset and child use. It returns complete Markdown for native review/handoff; an authorized Builder/Orchestrator persists it. There is no plan-only writer, and native `/plan` does not upgrade role permissions. Default catalog does not synthesize suffixed tiers or later Oracle slots.
19
+ | Admitted identity | Permitted logical children, intersected with native authority |
20
+ | --- | --- |
21
+ | Trusted root/stage-owner Orchestrator or Builder | Authorized workflow/execution roles; owns formal planning, criticism and acceptance |
22
+ | quick, code-search, doc-search, research, media-reader | None; research remains a leaf |
23
+ | Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader |
24
+ | coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves |
25
+ | deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists |
26
+ | Native child Builder | Bounded utility leaves, not stage ownership |
25
27
 
26
- ## Native composition and generated mirror
28
+ No child gains coordination authority from a preset label, persona or durable role string. The shared role policy checks exact live native ownership, original child capture, admitted epoch and provider/definition identity. Generic spawn can't bypass role admission in a DSMM-owned workflow. Unrelated ordinary off-mode native children retain Host behavior without acquiring DSMM delegation.
27
29
 
28
- DSH rc.2 uses `agentPresets.register({ id, plugins })`; it does not scan exported directories. Enabled root roles register complete native persona/instructions/filesystem/search/web/project-skill/skill-tool compositions. Read-only access is retained independently of Deepwork mode. Main DSMM owns the Agent-scoped lazy provider for all fourteen skills; generated compositions no longer include the legacy no-op `@dsmm/dsmm/preset-skills` row. Skills and common workflow disappear on explicit off; persona/access and host approvals do not.
30
+ Read-only roles remain read-only independently of mode and optional guards. Planner returns complete Markdown for native review/handoff; an authorized coordinator persists it. There is no Planner writer. Native catalog visibility and role permission are separate: a schema or read-only catalog listing doesn't authorize invocation, and own-layer native schemas may remain visible even when mandatory execution fences deny them.
29
31
 
30
- `agent-presets/` contains 22 renderer-checked inspection templates, including the disabled-by-default cross-cutting template. Default root mirrors omit its child tool until enabled explicitly. Regenerate with `pnpm run generate:roles` after building; `-- --check` is read-only. `presets.materialize` stays off by default. If explicitly enabled, it exports only DSMM-owned enabled directories; this is not native directory discovery. Materialization ownership/link/marker checks are unchanged, and no install changes the host's default preset.
32
+ Descendants intersect parent allow-lists with requested restrictions and union deny-lists, using frozen captures. Existing native filters still execute. Reinstallation, direct aliases, continuable starts and cold resumes don't enlarge original authority. A named profile can narrow enabled roles but can't lift startup/deployment ceilings; required roles and conditional legacy review rules are covered in [profiles](profiles.md#inheritance-and-ceilings).
31
33
 
32
- The published renderer's second skills argument is retained but ignored, preserving the later enabledRoles/roleRouting argument positions. The formal `./preset-skills` entry also remains compatible in 0.1.9: its apply hook registers nothing, and current generated compositions do not use it. Actual `registerAgentSkills` remains in that same module and is called by the main entry; no registration/lifecycle or public shape is changed by this compatibility retention.
34
+ ## Invocation and lifecycle
33
35
 
34
- Standing templates emit source-permitted native child rows. Agent admission narrows them to identity, enabled snapshot and mounted capabilities; its role tools adapt directly to native start/jobs/continuable APIs. Native services own descriptors, turns, result/structured capture, storage, inbox, capacity, interruption and release. Explicit idle mode/profile/preset changes prepare the actual next realm at awaited assembly; desired saves never remount startup services. Native model-facing route selection remains disabled on role tools; explicit host provider/model/effort and native caller filters retain precedence. Each admitted descendant intersects the parent's admitted allow-list with its request and unions their deny-lists, retaining a frozen snapshot rather than a mutable caller object. Native original filters still execute unchanged; aliases, direct continuable starts and cold durable resumes cannot enlarge the parent's restrictions. Read-only admission filters/fences before first work, rather than inventing an unknown-name child filter for headless Agent-local utility tools.
36
+ Actual per-role or parameterized tool names, target IDs and `level`/opt-in `route` parameters are documented in [model routing](model-routing.md#tool-topology-and-target-filters). Default level is normal; low/high/max require explicit target configuration. Root model selection stays native-owned. Children capture route, visible-output locale and authority at admission, not from a parent's later profile.
35
37
 
36
- ### Role-sized native standard defaults
38
+ Foreground one-shot is the deployment default. A one-shot waits for useful native result/output and settles; its terminal child can't be revived as a continuable conversation. Structured result capture, cancellation, storage, capacity and teardown remain native-owned.
37
39
 
38
- The reference is the **installed DSH 0.2.0-rc.2** public export `@deepseek-ai/dsh-web-app/presets/standard.patch.yml`, not an inferred web URL or automatic `extends` facility. `rolePluginRows` and generated YAML now share its native `cordis:group` shape: `group: true`, isolated services, and child rows in the group's **`config` array**.
40
+ Explicit `enableRunInBackground` permits native jobs. With `backgroundMode:"one-shot"`, calls wait unless `run_in_background:true`. With opted-in `backgroundMode:"continuable"`, background continuation is the call default; `run_in_background:false` still waits for one-shot work. Continuable start requires a real native `prepareContinuable` method, not a capability flag alone. Omitted `maxDepth` delegates to the native limit; deployment depth/background settings aren't named-profile fields.
39
41
 
40
- | Standing role composition | Planning group | Compaction/pruner group and human `/compact` | `ask_user_question` | `todo_write` |
41
- | --- | --- | --- | --- | --- |
42
- | Orchestrator, Builder | Yes | Yes | Yes | Yes |
43
- | Planner | Yes | Yes | Yes | No |
44
- | coding, frontend, deep, complex, cross-cutting | No | Yes | Yes | Yes |
45
- | Other auxiliary roles, including quick, searches, clarifier, media-reader, reviewers, Oracles and plan-critic | No additional group | No additional group | No additional row | No additional row |
42
+ A running foreground one-shot can be handed to background jobs using the exact published run, tool call, parent session and admission epoch. This transfers the same native run, not a restarted prompt or second child. The receipt reports `background`, `already-background`, `already-settled` or `cancelled`, with the same run ID and job ID where applicable. Starting, settled, cancelled, stale or unauthorized requests don't imply a new execution.
46
43
 
47
- Cross-cutting remains opt-in/default disabled. The compaction group contains exact rc.2 `dsh-compaction-basic`, `dsh-command-compact`, and **`dsh-compaction-tool-result-pruner`** packages. The pruner's policy is `thresholdChars: 8192`, `headChars: 4096`, `tailChars: 1024`; todo retains `allowParallelInProgress: true`. Planning isolates `planMode` and retains the standard's deployment-owned guidance and `exit_plan_mode`; it does not grant Planner mutation rights or a plan-file writer. `/compact` is a human command, never a new model tool. Its actual summarization, when useful history exists, remains native and may invoke the selected model; an empty-history command performs no model request.
44
+ ## Native child panel and report
48
45
 
49
- This matrix describes **owned standing rows**, not a promise to remove every inherited service from short children. Native spawn joins the parent's retained preset rather than recomposing the target role's template; a short child can inherit its parent's compaction/planning services. Existing caller filters, role admission and mandatory read-only/delegation fences still decide callable tools. No runtime capability adapter or child-service-clearing framework is introduced here.
46
+ The session-scoped Conversation child panel shows actual runs, direct children and a read-only descendant tree. IDs, activity, mode, admitted role/level, route comparison, original evidence and disabled reasons remain separate facts. Corrupt, unsupported or unavailable branches show diagnostics, not fabricated successful results. Descendant inspection doesn't grant control over non-direct children.
50
47
 
51
- Host commands, user-questions, sessions, token meter, permission/sandbox/cwd/process/model and transports stay Host-owned. DSMM does not copy those rows, credentials, telemetry, generic spawn/fork, workflow/ralph or plugin-manager tools from standard. The six new preset runtime peers are explicitly pinned to `0.2.0-rc.2`; the existing `dsh-tools` runtime peer is preserved. Native Loader proof covers first composition, isolated multi-preset command registrations, real `/compact` returning `No compactable history yet.`, default pruning, session-local todo writes, Planner mutation refusal and global DW-off zero role additions; this is not a Desktop install or paid-model compaction claim.
48
+ Route comparison uses real initial `invocation-capture` and the child's latest `own-native-request-header`. Missing/invalid/unobserved evidence remains unknown, never inferred from the root route, current profile or compatibility invocation projection. Original capture evidence and conservative legacy evidence expose `provenFields` and limitations; neither a role label nor an empty limitation list proves full old-configuration recovery.
52
49
 
53
- `subagents.enableRunInBackground` defaults false, `subagents.backgroundMode` defaults `one-shot`, and omitted `subagents.maxDepth` retains the native limit (rc.2 default 1). These fields are sparse native/global deployment settings, captured at new-root admission, inherited by future children, and excluded from named runtime overlays. Opt-in continuable tools require an actual `prepareContinuable` method; capability flags alone are not enough. Message, interrupt, persistence, capacity, result and teardown remain native-owned. Agent-owned asynchronous scope unwind awaits `drainContinuableDescendants([exactAgent])` before the Agent detaches, not from a contained disposed observer.
50
+ Human messages target only an admitted direct continuable child with current parent authority and ready delivery fencing. Entries whose observed control projection is read-only remain inspection-only; this isn't the role's tool-level read-only policy. **Queue** accepts a distinct later turn; **Steer** targets the nearest step. Idle/cold continuation keeps the same durable child ID. Native attachment and model admission validate images separately.
54
51
 
55
- ## Stage C applicable parity and evidence
52
+ An inbox receipt means **accepted**, not executed or completed. An interrupt acknowledgment isn't completion and doesn't claim queued work was removed. If transport leaves a send outcome unknown, the draft stays visible and automatic resend is disabled. Inspect the native child conversation before explicitly allowing a new message, which could duplicate an accepted one. Refresh and reconnection never imply automatic retry.
56
53
 
57
- | Applicable source behavior | Consumer / native equivalent | Current evidence / honest limit |
58
- | --- | --- | --- |
59
- | Source identity/delegation groups; research leaf; bounded child Builder; local specialists | `role-policy`, `role-subagents`, `role-providers`; native live registry ownership | `native-delegation`: mock LLM drives root → deep → coding → read and returns useful result; research/forbidden coordinators/forged Agent/generic spawn/same-layer execution bypass reject |
60
- | Read-only roles independent of common/guard toggles | Native inherited restrictions plus role/definition/realm guard | Actual native FS planner writes refuse after plan exit; mutation and impersonated-read sentinels never execute. Five local mock ops are not whole native FS/job/web acceptance |
61
- | Planner full Markdown and native review handoff | Native `exit_plan_mode`, authorized Builder native write | Actual Builder preset dispatches planner, native review receives complete Markdown, planner mutation refuses, Builder persists complete plan; blank preset rebind allows read-only utility and denies quick/write |
62
- | One-shot foreground, caller filters, typed failure | Native spawn/result/dispose; alias preserves descriptor, filters and actual capability flags | Useful mock chain; original bounded Builder → quick deny-write reproduction now refuses before body dispatch, retains native read/result and narrower requested denies. Caller mutation does not erase admitted restriction; direct alias/continuable/cold durable resume share the same fence. Unknown filter pre-publication refusal, configured unsupported capability, failure/abort and no leaked children; structured output remains native API-owned, not a new DSMM capture |
63
- | Background and continuable, message/interrupt, parent teardown | Native jobs controller and continuation manager | Actual native background useful output/foreign-owner deny/kill; per-parent capacity; default depth versus depth-3 legal deep→coding; same-child useful follow-up, natural release and same durable-ID cold resume. Parent owning-scope drain runs while exact parent is registered, preserves sibling trees |
64
- | Explicit native picker/model/effort; omitted versus empty fallback | Model/role routing and exact native preflight | Native final headers/streams preserve explicit route/low effort, exact unsupported named max refuses without degrading stream; ordered/empty/inherited chains and native roots retain original contract |
65
- | 429 versus generic retry owner; finite/no-output/epoch fencing | Existing recovery middleware and native loop | Native cancellation/stale frame/no-output/finite retry and cold-policy epoch tests retained; exact live registry checks fence late disposed evidence. No parallel retry controller/queue or synthesized parent task IDs |
66
- | Desired/startup/admission/named overlay and CAS | C0 capture/store interfaces reused | Real busy-save old/future-child pinning, new root role/skill/recovery off/on, missing startup role restart-required, old idle overlay preserving deployment. Native volatile refs/CAS and readiness audits retained |
67
- | Shell/Git/output/plan/question/todo/depth/interruption | Native pre/post/guard seams plus mandatory policy | Guard tests retain stronger deny/ask composition and canonical values. Protected plan edit is explicitly `unsupported-full-preview` fail-closed; zero reads/leak/body change regression GREEN. Actual complete writes, stale native CAS, ordinary match/replace-all preserved |
68
- | Same-layer catalog versus execution | rc.2 public `restrict` only masks inherited registrations; schema providers accumulate | Public APIs cannot hide own-layer schemas. They may remain displayed; unadmitted/forbidden invocation is mandatory-denied, including re-registered safe-name definitions. No private view override or fake same-name filter |
69
- | LSP startup/availability/read-only/cancel/exit | Optional host-anchor-resolved native MCP, installed server only | Actual installed MCP status/nine tool names/read-only refusal/cancel, desired off not remounting, owned process exit/tools withdrawn; sanitized unavailable diagnostics. **Protected Root cold-cache gate:** direct installed Root MCP without DSMM/SDK reproduces all three no-package-metadata groups. The final DSMM MCP operand is unchanged. Six independent direct-gopls cold controls return definition/reference results, including public/Root extended URIs, empty/per-item configuration replies and extended cwd. URI serialization alone is not the confirmed cause; the finer Root inner-launch/protocol failure remains unresolved. Single cold useful-symbol positive regression remains RED; no warmup, retry, pathname hack or Root modification |
70
- | OpenCode-only hook events, Codex marketplace, private host auth migration | Not applicable to DSH native runtime | Not copied or emulated; no workflow/retry scheduler or private-file migration added |
54
+ ## Explicit runtime and legacy boundaries
71
55
 
72
- The parent-approved plan-edit ruling removes the unsafe Node preview; it does not stop normal complete plan production. Format validation is not N/A or fake final-document success. The remaining actual language-symbol error is an external protected Root boundary, not hidden by an availability flag or successful catalog count. Parent owns external blocker disposition, final stage acceptance and commit. D's client/UI and authenticated browser acceptance are separate; no stage completion is inferred from artifact checks alone.
56
+ Managed delivery uses explicit cold-start `@dsmm/dsmm/subagent-runtime` composition and the optional [runtime patch](../patches/subagent-runtime.yml), not automatic replacement by the default bundle. Keep one provider in the same Host scope, preserve native spawn/fork/model/Gateway services, and retain explicit stock capacity/depth settings. Runtime binding, delivery readiness and restart requirement are observable separately. See [settings](settings-status.md#child-runtime-composition).
73
57
 
74
- ## Models and migration
58
+ An old child without complete original capture uses conservative evidence and per-field limitations, not the current parent's settings as recovered history. The separate legacy read adapter remains default off and requires explicit trusted Host composition. Its compatibility boundary doesn't grant arbitrary writes, invented approvals or durable guarantees. See [compatibility](compatibility.md); named legacy storage and old-child admission evidence aren't the same mechanism.
75
59
 
76
- Role names are responsibilities, not routes. Explicit native picker/configured catalog-valid routes win; source OCMM provider/model preferences are not copied into DSH defaults. Reviewer is primary-lane review. Oracle independence exists only when a different actual model is explicitly selected; Oracle 2nd is priority, not greater capability. Exact DeepSeek overlays and auto/strict/off native effort behavior remain.
60
+ Native Host commands, sessions, inbox, permissions, process/cwd/model selection and transports retain ownership. DSMM supplies role admission and bounded controls, not a replacement lifecycle scheduler, generic permission bypass or automatic retry system.
77
61
 
78
- Existing IDs, runtime profile route keys, immutable admissions and authority are retained. Adding canonical metadata extends their accepted role inventory without adding roles/skills to runtime overlays or implementing desired/volatile settings. Auxiliary cold-resume limitations remain: do not silently substitute a persona, erase history or alter private deployment data. Global rollout, Docker/bootstrap, authenticated Desktop evidence and publication are outside this content stage.
62
+ *Author's note: For a coordinator or DSH operator delegating work; inspect actual child admission and receipts before treating catalog visibility or accepted delivery as execution.*