@dsmm/dsmm 0.1.8 → 0.2.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 (409) hide show
  1. package/README.md +40 -22
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +1949 -39
  3. package/agent-presets/dsmm-builder/preset.yml +1 -1
  4. package/agent-presets/dsmm-clarifier/agent.cordis.yml +436 -14
  5. package/agent-presets/dsmm-clarifier/preset.yml +1 -1
  6. package/agent-presets/dsmm-code-search/agent.cordis.yml +56 -14
  7. package/agent-presets/dsmm-code-search/preset.yml +1 -1
  8. package/agent-presets/dsmm-coding/agent.cordis.yml +588 -0
  9. package/agent-presets/dsmm-coding/preset.yml +3 -0
  10. package/agent-presets/dsmm-complex/agent.cordis.yml +1140 -0
  11. package/agent-presets/dsmm-complex/preset.yml +3 -0
  12. package/agent-presets/dsmm-creative/agent.cordis.yml +536 -12
  13. package/agent-presets/dsmm-creative/preset.yml +1 -1
  14. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1163 -0
  15. package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
  16. package/agent-presets/dsmm-deep/agent.cordis.yml +1173 -0
  17. package/agent-presets/dsmm-deep/preset.yml +3 -0
  18. package/agent-presets/dsmm-doc-search/agent.cordis.yml +56 -14
  19. package/agent-presets/dsmm-doc-search/preset.yml +1 -1
  20. package/agent-presets/dsmm-documenting/agent.cordis.yml +581 -0
  21. package/agent-presets/dsmm-documenting/preset.yml +3 -0
  22. package/agent-presets/dsmm-frontend/agent.cordis.yml +580 -0
  23. package/agent-presets/dsmm-frontend/preset.yml +3 -0
  24. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +572 -0
  25. package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
  26. package/agent-presets/dsmm-media-reader/agent.cordis.yml +56 -14
  27. package/agent-presets/dsmm-media-reader/preset.yml +1 -1
  28. package/agent-presets/dsmm-normal-task/agent.cordis.yml +546 -0
  29. package/agent-presets/dsmm-normal-task/preset.yml +3 -0
  30. package/agent-presets/dsmm-oracle/agent.cordis.yml +421 -12
  31. package/agent-presets/dsmm-oracle/preset.yml +1 -1
  32. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +421 -12
  33. package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
  34. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +2023 -43
  35. package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
  36. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +416 -13
  37. package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
  38. package/agent-presets/dsmm-planner/agent.cordis.yml +462 -13
  39. package/agent-presets/dsmm-planner/preset.yml +1 -1
  40. package/agent-presets/dsmm-quick/agent.cordis.yml +119 -0
  41. package/agent-presets/dsmm-quick/preset.yml +3 -0
  42. package/agent-presets/dsmm-research/agent.cordis.yml +141 -0
  43. package/agent-presets/dsmm-research/preset.yml +3 -0
  44. package/agent-presets/dsmm-reviewer/agent.cordis.yml +420 -13
  45. package/agent-presets/dsmm-reviewer/preset.yml +1 -1
  46. package/cordis.patch.yml +1 -5
  47. package/docs/agent-presets.md +64 -15
  48. package/docs/compatibility.md +67 -17
  49. package/docs/design.md +41 -0
  50. package/docs/lsp.md +12 -2
  51. package/docs/migration-from-ocmm.md +8 -0
  52. package/docs/profiles.md +42 -16
  53. package/docs/releasing.md +100 -28
  54. package/docs/roadmap.md +6 -0
  55. package/docs/runtime-recovery.md +12 -0
  56. package/docs/safety-guards.md +7 -3
  57. package/docs/settings-status.md +148 -7
  58. package/docs/skill-sync.md +52 -14
  59. package/lib/client/DeploymentPage.d.ts +18 -0
  60. package/lib/client/DeploymentPage.js +120 -0
  61. package/lib/client/ProfilesSection.js +4 -2
  62. package/lib/client/deployment-controller.d.ts +50 -0
  63. package/lib/client/deployment-controller.js +193 -0
  64. package/lib/client/deployment-data.d.ts +16 -0
  65. package/lib/client/deployment-data.js +109 -0
  66. package/lib/client/deployment-locales.d.ts +66 -0
  67. package/lib/client/deployment-locales.js +72 -0
  68. package/lib/client/index.js +50 -0
  69. package/lib/client/locales.d.ts +4 -0
  70. package/lib/client/locales.js +4 -2
  71. package/lib/client/plugins-contract.d.ts +27 -0
  72. package/lib/client/plugins-contract.js +2 -0
  73. package/lib/client/styles.d.ts +1 -1
  74. package/lib/client/styles.js +16 -0
  75. package/lib/client.js +1048 -29
  76. package/lib/commands.js +3 -0
  77. package/lib/config-file-store.d.ts +23 -0
  78. package/lib/config-file-store.js +67 -0
  79. package/lib/deployment-config.d.ts +37 -0
  80. package/lib/deployment-config.js +184 -0
  81. package/lib/dsh-home.d.ts +3 -0
  82. package/lib/dsh-home.js +10 -0
  83. package/lib/dsh-types.d.ts +12 -65
  84. package/lib/guards.d.ts +2 -1
  85. package/lib/guards.js +19 -2
  86. package/lib/index.d.ts +8 -1
  87. package/lib/index.js +115 -25
  88. package/lib/lsp.d.ts +13 -0
  89. package/lib/lsp.js +60 -0
  90. package/lib/mode.js +42 -47
  91. package/lib/model-routing.js +5 -2
  92. package/lib/modules.d.ts +27 -0
  93. package/lib/modules.js +21 -0
  94. package/lib/native-scope.d.ts +9 -0
  95. package/lib/native-scope.js +20 -0
  96. package/lib/plan-validation.js +6 -44
  97. package/lib/preset-materializer.js +2 -0
  98. package/lib/preset-registry.d.ts +1 -1
  99. package/lib/preset-registry.js +7 -4
  100. package/lib/preset-skills.d.ts +4 -1
  101. package/lib/preset-skills.js +60 -19
  102. package/lib/profile-remote.d.ts +14 -0
  103. package/lib/profile-remote.js +197 -4
  104. package/lib/profile-rpc.d.ts +24 -1
  105. package/lib/profile-rpc.js +139 -1
  106. package/lib/profile-runtime.d.ts +24 -0
  107. package/lib/profile-runtime.js +177 -33
  108. package/lib/profile-store.d.ts +45 -1
  109. package/lib/profile-store.js +236 -102
  110. package/lib/profile-types.d.ts +55 -0
  111. package/lib/prompt-content.d.ts +25 -0
  112. package/lib/prompt-content.js +27 -0
  113. package/lib/prompts.d.ts +8 -2
  114. package/lib/prompts.js +46 -34
  115. package/lib/role-policy.d.ts +51 -0
  116. package/lib/role-policy.js +224 -0
  117. package/lib/role-providers.d.ts +6 -2
  118. package/lib/role-providers.js +72 -39
  119. package/lib/role-subagents.d.ts +6 -2
  120. package/lib/role-subagents.js +187 -48
  121. package/lib/roles.d.ts +16 -4
  122. package/lib/roles.js +86 -186
  123. package/lib/runtime-recovery.js +16 -5
  124. package/lib/session-scope.js +2 -0
  125. package/lib/settings.d.ts +69 -1
  126. package/lib/settings.js +262 -91
  127. package/lib/skills.d.ts +24 -9
  128. package/lib/skills.js +114 -35
  129. package/lib/state.d.ts +10 -6
  130. package/lib/state.js +48 -49
  131. package/lib/status.d.ts +25 -0
  132. package/lib/status.js +47 -9
  133. package/locale/en.json +2 -2
  134. package/locale/zh.json +2 -2
  135. package/package.json +19 -2
  136. package/prompts/deepwork.md +144 -20
  137. package/prompts/source/agents/clarifier.md +45 -0
  138. package/prompts/source/agents/orchestrator.md +63 -0
  139. package/prompts/source/agents/plan-critic.md +25 -0
  140. package/prompts/source/agents/planner.md +19 -0
  141. package/prompts/source/agents/reviewer.md +17 -0
  142. package/prompts/source/catalog.json +548 -0
  143. package/prompts/source/category/coding.md +46 -0
  144. package/prompts/source/category/complex.md +29 -0
  145. package/prompts/source/category/creative.md +38 -0
  146. package/prompts/source/category/cross-cutting.md +52 -0
  147. package/prompts/source/category/deep.md +62 -0
  148. package/prompts/source/category/documenting.md +62 -0
  149. package/prompts/source/category/frontend.md +38 -0
  150. package/prompts/source/category/hard-reasoning.md +53 -0
  151. package/prompts/source/category/normal-task.md +27 -0
  152. package/prompts/source/category/quick.md +34 -0
  153. package/prompts/source/category/research.md +56 -0
  154. package/prompts/source/deepwork/claude-opus-5.md +28 -0
  155. package/prompts/source/deepwork/codex.md +9 -0
  156. package/prompts/source/deepwork/default.md +129 -0
  157. package/prompts/source/deepwork/gemini.md +184 -0
  158. package/prompts/source/deepwork/glm.md +256 -0
  159. package/prompts/source/deepwork/gpt.md +43 -0
  160. package/prompts/source/deepwork/kimi-k27.md +13 -0
  161. package/prompts/source/deepwork/planner.md +41 -0
  162. package/prompts/source/deepwork/swe-2.md +13 -0
  163. package/prompts/source/manifest.json +3118 -0
  164. package/prompts/source/shared/dsh-host-contract.md +6 -0
  165. package/prompts/source/shared/locale.md +8 -0
  166. package/prompts/source/shared/shell-safety.md +7 -0
  167. package/prompts/source/terminal/builder.md +13 -0
  168. package/prompts/source/terminal/clarifier.md +41 -0
  169. package/prompts/source/terminal/code-search.md +39 -0
  170. package/prompts/source/terminal/coding.md +41 -0
  171. package/prompts/source/terminal/complex.md +43 -0
  172. package/prompts/source/terminal/creative.md +41 -0
  173. package/prompts/source/terminal/cross-cutting.md +43 -0
  174. package/prompts/source/terminal/deep.md +43 -0
  175. package/prompts/source/terminal/doc-search.md +39 -0
  176. package/prompts/source/terminal/documenting.md +41 -0
  177. package/prompts/source/terminal/frontend.md +41 -0
  178. package/prompts/source/terminal/hard-reasoning.md +41 -0
  179. package/prompts/source/terminal/media-reader.md +39 -0
  180. package/prompts/source/terminal/normal-task.md +41 -0
  181. package/prompts/source/terminal/oracle-2nd.md +53 -0
  182. package/prompts/source/terminal/oracle.md +53 -0
  183. package/prompts/source/terminal/orchestrator.md +26 -0
  184. package/prompts/source/terminal/plan-critic.md +41 -0
  185. package/prompts/source/terminal/planner.md +42 -0
  186. package/prompts/source/terminal/quick.md +39 -0
  187. package/prompts/source/terminal/research.md +39 -0
  188. package/prompts/source/terminal/reviewer.md +53 -0
  189. package/skills/ast-grep/LICENSE +21 -0
  190. package/skills/ast-grep/README.md +138 -0
  191. package/skills/ast-grep/SKILL.md +284 -0
  192. package/skills/ast-grep/SOURCE +1 -0
  193. package/skills/ast-grep/install.ps1 +235 -0
  194. package/skills/ast-grep/install.sh +286 -0
  195. package/skills/ast-grep/references/cli.md +233 -0
  196. package/skills/ast-grep/references/install.md +168 -0
  197. package/skills/ast-grep/references/patterns.md +149 -0
  198. package/skills/ast-grep/references/pitfalls.md +305 -0
  199. package/skills/ast-grep/references/recipes.md +404 -0
  200. package/skills/ast-grep/references/sgconfig.md +250 -0
  201. package/skills/ast-grep/references/yaml-rules.md +511 -0
  202. package/skills/ast-grep/scripts/ast_grep_helper.py +760 -0
  203. package/skills/ast-grep/tests/smoke.ps1 +129 -0
  204. package/skills/ast-grep/tests/smoke.sh +212 -0
  205. package/skills/ast-grep/tests/test_resolver.py +154 -0
  206. package/skills/brainstorming/SKILL.md +102 -9
  207. package/skills/coding-agent-sessions/LICENSE-UPSTREAM.md +82 -0
  208. package/skills/coding-agent-sessions/NOTICE.md +24 -0
  209. package/skills/coding-agent-sessions/SKILL.md +144 -0
  210. package/skills/coding-agent-sessions/agents/openai.yaml +4 -0
  211. package/skills/coding-agent-sessions/pyrightconfig.json +5 -0
  212. package/skills/coding-agent-sessions/references/all-platforms.md +77 -0
  213. package/skills/coding-agent-sessions/references/claude.md +34 -0
  214. package/skills/coding-agent-sessions/references/codex.md +32 -0
  215. package/skills/coding-agent-sessions/references/opencode.md +45 -0
  216. package/skills/coding-agent-sessions/references/senpi.md +29 -0
  217. package/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
  218. package/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
  219. package/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
  220. package/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
  221. package/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
  222. package/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
  223. package/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
  224. package/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
  225. package/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
  226. package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
  227. package/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +104 -0
  228. package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
  229. package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
  230. package/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
  231. package/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
  232. package/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
  233. package/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
  234. package/skills/coding-agent-sessions/scripts/tests/test_agent_sessions.py +322 -0
  235. package/skills/coding-agent-sessions/scripts/tests/test_aside_scanner.py +131 -0
  236. package/skills/coding-agent-sessions/scripts/tests/test_cli_contract.py +126 -0
  237. package/skills/coding-agent-sessions/scripts/tests/test_extended_scanners.py +262 -0
  238. package/skills/coding-agent-sessions/scripts/tests/test_optional_sqlite_scanners.py +79 -0
  239. package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -0
  240. package/skills/debugging/SKILL.md +125 -4
  241. package/skills/debugging/references/logging.md +2 -0
  242. package/skills/debugging/references/methodology/00-setup.md +2 -0
  243. package/skills/debugging/references/methodology/02-investigate.md +8 -2
  244. package/skills/debugging/references/methodology/03-flaky-triage.md +3 -1
  245. package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +4 -2
  246. package/skills/debugging/references/methodology/05-escalate.md +2 -0
  247. package/skills/debugging/references/methodology/06-fix.md +2 -0
  248. package/skills/debugging/references/methodology/08-qa.md +2 -0
  249. package/skills/debugging/references/methodology/09-cleanup.md +2 -0
  250. package/skills/debugging/references/methodology/partial-runtime-evidence.md +4 -2
  251. package/skills/debugging/references/runtimes/bundled-js-binary.md +2 -0
  252. package/skills/debugging/references/runtimes/go.md +2 -0
  253. package/skills/debugging/references/runtimes/native-binary.md +2 -0
  254. package/skills/debugging/references/runtimes/node.md +2 -0
  255. package/skills/debugging/references/runtimes/python.md +2 -0
  256. package/skills/debugging/references/runtimes/rust.md +2 -0
  257. package/skills/debugging/references/scripts/dap.test.mjs +539 -0
  258. package/skills/debugging/references/scripts/fixture-adapter.mjs +164 -0
  259. package/skills/debugging/references/tools/dap.md +3 -1
  260. package/skills/debugging/references/tools/ghidra.md +2 -0
  261. package/skills/debugging/references/tools/playwright-cli.md +2 -0
  262. package/skills/debugging/references/tools/pwndbg.md +2 -0
  263. package/skills/debugging/references/tools/pwntools.md +2 -0
  264. package/skills/dispatching-parallel-agents/SKILL.md +94 -7
  265. package/skills/frontend/.frontend-materialized.json +856 -0
  266. package/skills/frontend/ATTRIBUTION.md +37 -0
  267. package/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
  268. package/skills/frontend/LICENSE-taste-skill.txt +21 -0
  269. package/skills/frontend/LICENSE-ui-ux-pro-max.txt +21 -0
  270. package/skills/frontend/SKILL.md +142 -0
  271. package/skills/frontend/references/design/README.md +256 -0
  272. package/skills/frontend/references/design/_INDEX.md +206 -0
  273. package/skills/frontend/references/design/airbnb.md +393 -0
  274. package/skills/frontend/references/design/airtable.md +92 -0
  275. package/skills/frontend/references/design/apple.md +250 -0
  276. package/skills/frontend/references/design/aside.md +211 -0
  277. package/skills/frontend/references/design/binance.md +348 -0
  278. package/skills/frontend/references/design/bmw.md +183 -0
  279. package/skills/frontend/references/design/brutalist-skill.md +92 -0
  280. package/skills/frontend/references/design/bugatti.md +271 -0
  281. package/skills/frontend/references/design/cal.md +262 -0
  282. package/skills/frontend/references/design/claude.md +315 -0
  283. package/skills/frontend/references/design/clay.md +307 -0
  284. package/skills/frontend/references/design/clickhouse.md +284 -0
  285. package/skills/frontend/references/design/clone-from-url.md +69 -0
  286. package/skills/frontend/references/design/cohere.md +269 -0
  287. package/skills/frontend/references/design/coinbase.md +132 -0
  288. package/skills/frontend/references/design/composio.md +310 -0
  289. package/skills/frontend/references/design/cursor.md +312 -0
  290. package/skills/frontend/references/design/design-system-architecture.md +250 -0
  291. package/skills/frontend/references/design/elevenlabs.md +268 -0
  292. package/skills/frontend/references/design/expo.md +284 -0
  293. package/skills/frontend/references/design/ferrari.md +317 -0
  294. package/skills/frontend/references/design/figma.md +223 -0
  295. package/skills/frontend/references/design/framer.md +249 -0
  296. package/skills/frontend/references/design/gpt-tasteskill.md +74 -0
  297. package/skills/frontend/references/design/hashicorp.md +281 -0
  298. package/skills/frontend/references/design/ibm.md +335 -0
  299. package/skills/frontend/references/design/image-to-code-skill.md +1228 -0
  300. package/skills/frontend/references/design/imagegen-brandkit.md +798 -0
  301. package/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
  302. package/skills/frontend/references/design/imagegen-frontend-web.md +987 -0
  303. package/skills/frontend/references/design/interaction-skill.md +52 -0
  304. package/skills/frontend/references/design/intercom.md +149 -0
  305. package/skills/frontend/references/design/kraken.md +128 -0
  306. package/skills/frontend/references/design/lamborghini.md +291 -0
  307. package/skills/frontend/references/design/linear.app.md +370 -0
  308. package/skills/frontend/references/design/lovable.md +301 -0
  309. package/skills/frontend/references/design/mastercard.md +368 -0
  310. package/skills/frontend/references/design/meta.md +369 -0
  311. package/skills/frontend/references/design/minimalist-skill.md +85 -0
  312. package/skills/frontend/references/design/minimax.md +260 -0
  313. package/skills/frontend/references/design/mintlify.md +329 -0
  314. package/skills/frontend/references/design/miro.md +111 -0
  315. package/skills/frontend/references/design/mistral.ai.md +264 -0
  316. package/skills/frontend/references/design/mongodb.md +269 -0
  317. package/skills/frontend/references/design/nike.md +366 -0
  318. package/skills/frontend/references/design/notion.md +312 -0
  319. package/skills/frontend/references/design/nvidia.md +296 -0
  320. package/skills/frontend/references/design/ollama.md +270 -0
  321. package/skills/frontend/references/design/opencode.ai.md +284 -0
  322. package/skills/frontend/references/design/output-skill.md +49 -0
  323. package/skills/frontend/references/design/pinterest.md +233 -0
  324. package/skills/frontend/references/design/playstation.md +367 -0
  325. package/skills/frontend/references/design/posthog.md +259 -0
  326. package/skills/frontend/references/design/raycast.md +271 -0
  327. package/skills/frontend/references/design/react-dev-tooling-skill.md +232 -0
  328. package/skills/frontend/references/design/redesign-skill.md +178 -0
  329. package/skills/frontend/references/design/renault.md +314 -0
  330. package/skills/frontend/references/design/replicate.md +264 -0
  331. package/skills/frontend/references/design/resend.md +306 -0
  332. package/skills/frontend/references/design/revolut.md +188 -0
  333. package/skills/frontend/references/design/runwayml.md +247 -0
  334. package/skills/frontend/references/design/sanity.md +360 -0
  335. package/skills/frontend/references/design/sentry.md +265 -0
  336. package/skills/frontend/references/design/shopify.md +353 -0
  337. package/skills/frontend/references/design/soft-skill.md +98 -0
  338. package/skills/frontend/references/design/spacex.md +197 -0
  339. package/skills/frontend/references/design/spotify.md +249 -0
  340. package/skills/frontend/references/design/starbucks.md +583 -0
  341. package/skills/frontend/references/design/stitch-design-example.md +121 -0
  342. package/skills/frontend/references/design/stitch-skill.md +184 -0
  343. package/skills/frontend/references/design/stripe.md +325 -0
  344. package/skills/frontend/references/design/supabase.md +258 -0
  345. package/skills/frontend/references/design/superhuman.md +255 -0
  346. package/skills/frontend/references/design/taste-skill.md +1206 -0
  347. package/skills/frontend/references/design/tesla.md +289 -0
  348. package/skills/frontend/references/design/theverge.md +342 -0
  349. package/skills/frontend/references/design/together.ai.md +266 -0
  350. package/skills/frontend/references/design/uber.md +298 -0
  351. package/skills/frontend/references/design/vercel.md +313 -0
  352. package/skills/frontend/references/design/vodafone.md +426 -0
  353. package/skills/frontend/references/design/voltagent.md +326 -0
  354. package/skills/frontend/references/design/warp.md +256 -0
  355. package/skills/frontend/references/design/webflow.md +95 -0
  356. package/skills/frontend/references/design/wired.md +281 -0
  357. package/skills/frontend/references/design/wise.md +176 -0
  358. package/skills/frontend/references/design/x.ai.md +260 -0
  359. package/skills/frontend/references/design/zapier.md +331 -0
  360. package/skills/frontend/references/perfection/README.md +264 -0
  361. package/skills/frontend/references/perfection/react-perf-tooling.md +234 -0
  362. package/skills/frontend/references/ui-ux-db/README.md +659 -0
  363. package/skills/frontend/references/ui-ux-db/data/app-interface.csv +31 -0
  364. package/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
  365. package/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
  366. package/skills/frontend/references/ui-ux-db/data/google-fonts.csv +1924 -0
  367. package/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
  368. package/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
  369. package/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
  370. package/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
  371. package/skills/frontend/references/ui-ux-db/data/stacks/angular.csv +51 -0
  372. package/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
  373. package/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
  374. package/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
  375. package/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
  376. package/skills/frontend/references/ui-ux-db/data/stacks/laravel.csv +51 -0
  377. package/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
  378. package/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
  379. package/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
  380. package/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
  381. package/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
  382. package/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
  383. package/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
  384. package/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
  385. package/skills/frontend/references/ui-ux-db/data/stacks/threejs.csv +54 -0
  386. package/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
  387. package/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
  388. package/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
  389. package/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
  390. package/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
  391. package/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
  392. package/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
  393. package/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
  394. package/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
  395. package/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
  396. package/skills/git-master/SKILL.md +112 -0
  397. package/skills/git-master/agents/openai.yaml +13 -0
  398. package/skills/init-deep/SKILL.md +279 -0
  399. package/skills/receiving-code-review/SKILL.md +112 -7
  400. package/skills/remove-ai-slops/SKILL.md +159 -8
  401. package/skills/requesting-code-review/SKILL.md +96 -3
  402. package/skills/requesting-code-review/code-reviewer.md +47 -0
  403. package/skills/subagent-driven-development/SKILL.md +176 -6
  404. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
  405. package/skills/subagent-driven-development/implementer-prompt.md +69 -0
  406. package/skills/subagent-driven-development/spec-reviewer-prompt.md +32 -0
  407. package/skills/using-git-worktrees/SKILL.md +141 -0
  408. package/skills/writing-plans/SKILL.md +121 -7
  409. package/skills/writing-plans/plan-document-reviewer-prompt.md +38 -0
@@ -1,29 +1,78 @@
1
- # Deepwork roles on DSH 0.2
1
+ # Deepwork source roles on DSH 0.2.0-rc.2
2
2
 
3
- DSMM defines twelve unsuffixed normal roles: orchestrator, planner, plan-critic, builder, reviewer, oracle, oracle-2nd, creative, code-search, doc-search, clarifier and media-reader (each prefixed `dsmm-`). A role name is a persona and tool policy, not a model-selection claim. Reviewer is primary-model self-review; an Oracle is an external-model cross-check only when the caller explicitly selects a distinct model offered by the current DSH catalog. The second slot is priority order, not greater capability.
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.
4
4
 
5
- The DW display names introduced in the 0.1.3 source contract are `DW Orchestrator`, `DW Planner`, `DW Plan Critic`, `DW Builder`, `DW Reviewer`, `DW Oracle`, `DW Oracle 2nd`, `DW Creative`, `DW Code Search`, `DW Doc Search`, `DW Clarifier`, and `DW Media Reader`. Their native preset IDs, callable tool/provider identities and permissions are unchanged. Persona introductions use the DW role label while retaining the exact `dsmm-*` technical role ID; no display label is a callable-ID rename.
5
+ ## Content and authority
6
6
 
7
- ## Runtime surfaces
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).
8
8
 
9
- The 0.1.4 source contract distinguishes root eligibility from delegation enablement. Only enabled roles whose mode is `primary` or `all` are registered as native root presets: `dsmm-orchestrator`, `dsmm-builder`, and `dsmm-planner`, displayed as DW Orchestrator, DW Builder and DW Planner. If Builder is disabled in deployment configuration, only Orchestrator and Planner enter the root selector, and Builder has no child tool. Planner remains read-only; read-only access does not imply auxiliary-only status.
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.
10
10
 
11
- The nine auxiliary-only roles are `dsmm-plan-critic`, `dsmm-reviewer`, `dsmm-oracle`, `dsmm-oracle-2nd`, `dsmm-creative`, `dsmm-code-search`, `dsmm-doc-search`, `dsmm-clarifier`, and `dsmm-media-reader`. Enabled auxiliary roles remain native delegation tools; they are not broken or missing roots. Runtime profile selection never changes either inventory.
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:
12
12
 
13
- DSH 0.2's `agentPresets.register({ id, plugins })` is the native preset registry. When the host composes `agentPresets` (such as Web/Desktop), DSMM registers eligible roots as complete plugin compositions: persona, instructions, filesystem/search/web tools, seven bundled workflow skills, on-demand debugging, and role-specific subagent tools where appropriate. The native loading correction uses `persona.prefix` and `agent-instructions.maxBytes: 65536`; a directory or manifest alone cannot prove that the host successfully mounts the composition. Read-only compositions receive Agent-scoped native `tools.restrict({ deny: ['write', 'edit'] })`; shell tools are not composed into them. Orchestrator and Builder include native `@deepseek-ai/dsh-tool-subagent` instances whose `persona` and `toolFilter` actually shape each child. Read-only child filters allow repository reads/search, with web tools for doc/media roles; media image reading is available only when that tool exists in the host catalog. The provider must support persona, tool filtering and the host's depth/permission limits.
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 |
14
21
 
15
- The DSH headless one-shot runner does **not** mount or select agent presets. When its startup bundle includes `@deepseek-ai/dsh-headless`, DSMM instead mounts the same role-specific subagent instances on each root Agent's tool plane. The tools remain schema-stable for DeepSeek Flash's addition-only tool catalog, but DSMM's monotonic guard rejects owned role-tool calls unless deepwork is active or a DSMM role preset is selected. Without configured role routing, native model inheritance and the DSMM opt-in boundary are unchanged.
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.
16
23
 
17
- `roleRouting` supplies role policies without adding dynamic model-selection permission. The aliased native provider derives defaults from its parent's admitted runtime snapshot, merges supported explicit native child options, and preflights the result through the parent's native `llm.resolveCallConfig` before native spawn; profile routes are not baked into standing preset/tool rows. For a trusted live, owned, zero-prefix one-shot child, the accepted explicit provider/model/effort survives through final request headers. Root, cold/unowned child and parent-seeded fork requests retain profile-primary resolution. Native spawn aliases retain trusted role identity in the child's durable descriptor, so two children inheriting the same parent preset can still have different routes and fallback chains. A missing or unknown child identity is not guessed from persona text, and a durable descriptor alone does not prove live ownership. DSH's standing `modelSelectionSettings` would re-register subagent tools in each child's own scope, bypassing its inherited-tool filter; DSMM therefore keeps it false. Changing a model never enables extra tools. DSH controls approval, sandbox, cancellation and child depth; DSMM never bypasses those controls. See [model routing](model-routing.md).
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.
18
25
 
19
- Only enabled root-eligible IDs are registered in the root selector. All enabled role IDs remain eligible for DSMM-owned materialized exports and role-specific child tools where the parent permits delegation. The canonical role has no suffix; no high/low/max suffix presets are generated by default. A separately authored native composition must preserve its canonical persona and restrictions, and is not a DSMM runtime file profile. Inspect the running tool schema or preset registry diagnostic rather than treating a file as callable proof.
26
+ ## Native composition and generated mirror
20
27
 
21
- ## Optional static mirror
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.
22
29
 
23
- `agent-presets/` keeps twelve renderer-checked static role directories for inspection or native composition authors, **not** a directory scanned by the DSH 0.2 registry. Auxiliary templates do not become roots. The example deployment patch enables DSMM defaults only; it is not a scan-root declaration. `presets.materialize` defaults to false. If enabled, `presets.root` writes only DSMM-owned enabled role directories; adding that path to an obsolete `agent-presets.roots` config does not enable native discovery. In the source repository, regenerate snapshots with `node dsmm/scripts/generate-role-assets.mjs` after the TypeScript build; the development generator is not included in the published package.
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.
24
31
 
25
- Materialization keeps the role-bound `.dsmm-managed-preset` marker. Foreign, mismatched, malformed or linked directories/files are never claimed. A current marker with unexpected entries fails closed; only an exact legacy `managed by dsmm` directory with the three expected regular files is updated. Disabling an enabled role removes only its owned directory. No role becomes the host default by installing DSMM.
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.
26
33
 
27
- ## Upgrade and evidence boundary
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.
28
35
 
29
- Older sessions selected directly into a now-auxiliary preset retain their history, but native cold resume may reject the removed root preset ID as unknown. This limitation must be disclosed before global rollout; DSMM must not silently substitute another persona or erase session history. See [compatibility](compatibility.md) for the upgrade procedure. Healthy Docker root audits, actual blank-session role selection with DW display names and read-only child denials are required for 0.1.4 acceptance; actual Desktop selector verification is a separate post-publication check.
36
+ ### Role-sized native standard defaults
37
+
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**.
39
+
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 |
46
+
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.
48
+
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.
50
+
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.
52
+
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.
54
+
55
+ ## Stage C applicable parity and evidence
56
+
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 |
71
+
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.
73
+
74
+ ## Models and migration
75
+
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.
77
+
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.
@@ -1,16 +1,64 @@
1
- # Deepwork 0.1.8 Compatibility and Upgrade
1
+ # DSMM 0.1.9 Compatibility and Upgrade
2
2
 
3
- This document describes the prospective 0.1.8 source contract and required acceptance evidence. It does not claim that the final 0.1.8 artifact has passed Docker, been published, or been activated in Desktop. Completed 0.1.5 and 0.1.6 publication/continuation evidence stays immutable and does not prove 0.1.8. Historical 0.1.1 checks and the stopped 0.1.2 frozen draft are not substitute evidence for this update; the old 0.1.2 tag/artifact/draft stay untouched and unpublished.
3
+ This document describes the working 0.1.9 source contract and required acceptance evidence, including implemented C0 storage/capture boundaries. It doesn't claim that the final 0.1.9 artifact has passed Docker, been published or been activated in Desktop. Completed 0.1.5 and 0.1.6 publication/continuation evidence stays immutable and doesn't prove 0.1.9. Historical 0.1.1 checks and the stopped 0.1.2 frozen draft aren't substitute evidence; the old 0.1.2 tag/artifact/draft stay untouched and unpublished. The release Action controls retain an exact shared 20-minute 404 visibility budget and 45-minute verify job. The earlier release-only 0.1.9 scope no longer describes today's changed working source. The 0.1.8 npm publication is genuine but its original terminal receipt failed with GitHub skipped; Desktop remains on 0.1.7 and CLI/TUI on 0.1.6 until a separately completed successor rollout.
4
4
 
5
- 0.1.7 is npm published and Desktop installed, but not a completed GitHub Release. Preserve immutable tag `dsmm-scoped-v0.1.7`, package and source `1ca0bf6e89916d17ddc663e1e06f6c15256cf453`; original run `37312038470/1` failed verification, GitHub was skipped, and terminal evidence remained `UNRESOLVED`/`FAILED`. Neither installation nor registry presence supplies completion authority. The authorized 0.1.8 Desktop upgrade waits for the new identity's terminal `COMPLETED` evidence, while the existing CLI/TUI 0.1.6 installation remains untouched.
5
+ 0.1.7 is npm published and Desktop installed, but not a completed GitHub Release. Preserve immutable tag `dsmm-scoped-v0.1.7`, package and source `1ca0bf6e89916d17ddc663e1e06f6c15256cf453`; original run `37312038470/1` failed verification, GitHub was skipped, and terminal evidence remained `UNRESOLVED`/`FAILED`. Neither installation nor registry presence supplies completion authority. The authorized 0.1.9 Desktop upgrade waits for the new identity's terminal `COMPLETED` evidence, while the existing CLI/TUI 0.1.6 installation remains untouched.
6
6
 
7
- The immutable 0.1.3 tag at `2bdea4b` is also preserved. Its run `37235817488` failed before pack/publish on pnpm 11's ignored esbuild/koffi build scripts. 0.1.4's published-origin bytes and failed original verify/404 history are preserved by their separate fixed continuation controls, not rewritten by a successor. The 0.1.8 gate requires fresh clean Linux installation/build evidence; existing compiled output is not a substitute.
7
+ 0.1.8 is genuinely npm published, but not a completed GitHub Release. Its immutable `dsmm-scoped-v0.1.8` source is `569eb8398cd6082d2c59679a0adc0198aeeb883e`, with confirmed published tarball SHA256 `803117222bff06af977752a3a421f4975bc3a511a61e7914960219132e31e301`. Original run `37350981167/1` ended terminal `FAILED`, with GitHub skipped: the old shared 300-second visibility budget expired before npm's record `2026-10-05T18:01:24.500Z`, after the publication job at `17:52:09` on 2026-10-05. Preserve its tag, source, package, provenance, bytes and failed receipt; no old-tag mutation, republishing, rerun, receipt adoption or in-place repair is authorized. Desktop remains on 0.1.7 and CLI/TUI on 0.1.6, unchanged. The original release-only 0.1.9 proposal kept 0.1.8 behavior and changed verification visibility/deadline controls. Current source includes A/B/C0 changes without a version bump; Desktop rollout still waits for its own terminal `COMPLETED`.
8
8
 
9
- Deepwork is the native plugin title in both exported metadata locales, with localized descriptions. Profiles are displayed as **Deepwork Profiles** / **Deepwork 配置档**, and twelve roles as `DW …`. Package `@dsmm/dsmm`, Loader `dsmm`, role/tool/provider IDs, commands, schemas and persistence vocabulary remain compatible. Native metadata-reader and actual UI evidence must prove the display names; a manifest `displayName` is not a supported substitute.
9
+ The immutable 0.1.3 tag at `2bdea4b` is also preserved. Its run `37235817488` failed before pack/publish on pnpm 11's ignored esbuild/koffi build scripts. 0.1.4's published-origin bytes and failed original verify/404 history are preserved by their separate fixed continuation controls, not rewritten by a successor. The 0.1.9 gate requires fresh clean Linux installation/build evidence; existing compiled output is not a substitute.
10
+
11
+ DSMM is the native package/Core title in both exported metadata locales, with localized descriptions; Deepwork is its module. Profiles remain **Deepwork Profiles** / **Deepwork 配置档**, and the current 22 canonical roles/categories remain `DW …` (historically twelve roles). Package `@dsmm/dsmm`, Loader `dsmm`, role/tool/provider IDs, commands, schemas and persistence vocabulary remain compatible. The real rc.2 native metadata reader and Plugins UI prove the new package title; a manifest `displayName` is not a supported substitute. Historical installed-package metadata isn't rewritten by this source change.
10
12
 
11
13
  ## Compatibility authority
12
14
 
13
- The current migration targets `@deepseek-ai/dsh@0.2.0-rc.2`, the official npm latest/next version resolved on 2026-10-03. `0.2.1-alpha.1` is an alpha channel, not the selected compatibility authority. The CLI's actual version and installed package identity must both match the pinned target.
15
+ ### D native configuration checkpoint (source and real rc.2 Web, not Electron)
16
+
17
+ The official `plugins.item`, `plugins.bundle.config` and `plugins.row.config` contracts mount the DSMM card/page and actual package/entry forms. Global control uses the fixed `dsmmConfig` service; the selected profile override uses the real Host `ConfigPageForm`, exact entry/namespace/base/user/revision checks and only sparse set/unset operations. The standalone item clearly marks a missing optional form unavailable. Both layers provide complete schema-bound feature editing, inheritance/default pins, independent saves, preserved invalid/dirty conflict state, sanitized feedback and keyboard focus. The existing named JSONC/model/session editor is independent, with legacy origin and immutable pins visible/read-only.
18
+
19
+ Fresh owned keyless Web Hosts proved actual native discovery and central-only versus profile-only writes, same-Home A/B inheritance/override/unset, unchanged refs/fiber, source/revision state, default pins, invalid-number retention, conflict refusal with dirty preservation, cold-off desired-on pending and user-independent restart to mounted-on. Busy-root native fixture proof covers role/skill/recovery changes: old parent/future child stay captured, new root adopts permitted changes, and saves do not cancel/reconcile/remount/respawn LSP. rc.2 emits native compatibility partial-dispose signals on profile patch; actual scope updates, disposal and request cancellation remain zero. Signals are not suppressed or represented as absent.
20
+
21
+ The installed SDK/runtime stays `0.2.0-rc.2` (official source `639ed015397290b3745d163aafe02ffee4aa3f84`). The separate latest official Desktop **source compatibility target** is `deepseek-ai/deepseek-harness` commit `5badb15009ae1756c3afe0ae0cef1faafc290ccc`, `dsh-v0.2.1-alpha.1`. Its shared PluginManager contracts retain `view: 'summary' | 'page'` and optional `form`; the Desktop carrier uses the shared Web Host, Host-issued cookie and `dsh-app://app` origin forwarding. This is source compatibility, not permission inferred from a loopback-looking URL. The actual invocation peer/operator, public bound host, Host writability and precommit owner/lifetime checks remain required.
22
+
23
+ No official Desktop executable is installed in this acceptance environment. No Electron activation is claimed and no Web screenshot substitutes for it. No SDK upgrade, package/audit tooling installation, account/sign-in, imported browser state or private profile migration occurred. Native host typography/tokens were verified at 375/768/1280 and native dark/light colors; Lighthouse/React audit packages are unavailable, so no audit scores are claimed. Publication, frozen Linux artifact acceptance and authorized Desktop execution remain later gates.
24
+
25
+ ### C0 storage and lifecycle contract (source, not C/D completion)
26
+
27
+ The [native parity plan §3.3 and C0](../../docs/superpowers/plans/2026-10-07-dsmm-native-parity.md#33-settings--effective-state) governs the implemented foundation. Version remains 0.1.9. C's role graph/continuation and D's React Config pages/browser acceptance aren't completed by this checkpoint.
28
+
29
+ `src/dsh-home.ts` resolves public `resolveDshHome` through `createRequire` rooted at the declared `dsh-skill-filesystem` peer. Explicit trusted `profileContext.home` wins over `DSH_HOME`, then the official `~/.dsh` default. The fixed `<resolvedDshHome>/plugins/dsmm` directory is DSMM's convention, not an official mandated plugin layout. Missing peer capability fails explicitly; no global developer SDK path or profile-dir-derived home is substituted.
30
+
31
+ The global `config.json` is sparse JSON. Native active-entry/profile overrides use flat optional volatile transport via `DSMM_NATIVE_CONFIG_SCHEMA`; `DSMM_CONFIG_SCHEMA` remains the plain sparse public ABI. Full defaults and business validation are separate. Legacy raw flat input retains explicit values even when equal to defaults. Resolution is defaults → global → explicit native entry/profile → applied immutable named/session overlay. Plain objects merge recursively, arrays replace and unset removes only the current layer's key. Missing values inherit; unknown/prototype keys, non-JSON data and raw refs are rejected. Named overlays still reject roles/skills and startup-only fields.
32
+
33
+ Startup awaits complete global/profile validation before consumer mount and freezes its snapshot; late install doesn't reread desired. New ordinary roots await latest valid desired deployment and the applied immutable overlay. Old roots and their future children retain the full captured snapshot/epoch. An old idle root's explicit profile switch replaces only its runtime overlay on its old deployment baseline. `getSettings(agent)` remains authoritative, and no-argument `getSettings()` is the validated runtime named default, not desired. `modeName`, `promptOrder`, standing presets/materialization and LSP remain startup-scoped. Role policy intersects startup substrate and original permissions; absent startup capability is restart-required. There is no automatic queue, remount or cancellation on save.
34
+
35
+ `ProfileStore.fromCentral(home, profiledir, entryId)` shares central `profiles/` drafts/revisions while `.state/<sha256(canonical-profile-identity+actual-entry)>/` isolates default selections and session sidecars. All central writers share the documents lock. The old explicit `.../dsmm-profiles` public constructor is unchanged. If the current profile's exact old path exists, runtime compatibility is strictly read-only without locks/writes; full immutable pins and origin remain authoritative. Corruption refuses instead of using a central same-name draft. No reads create storage. Explicit non-destructive copy/import is fixture-verified only, not a production migration framework or completed private migration; auth and native sessionPersistence aren't moved.
36
+
37
+ The fixed `dsmmConfig` Remote `describe`/`save` backend accepts exact edits, not file/root/entry arguments. Both require the native invocation peer to equal `connection.operator`, public current `webServer.host === '127.0.0.1'` and `settings.writable === true`. Unknown/remote carriers are unavailable, client `isLoopback` isn't trusted, and reverse proxies/tunnels aren't automatically safe. Lifetime and connection are fenced again before commit. This is only for local writable control operators, not a model tool or anonymous endpoint.
38
+
39
+ Global writes use expected actual-byte SHA256 or absent CAS, cooperative locking, final revision recheck and temp-file rename. This doesn't promise a universal transaction against non-cooperating external editors. Global save never touches a native patch or invokes Loader patch/reload/dispose/cancel. Native profile save uses only volatile transport under native authorization/CAS. The layers have separate revisions and no cross-layer transaction. Invalid global edits block new admissions/writes, not old frozen Agents. See [settings/status](settings-status.md) and [profiles](profiles.md) for operational boundaries.
40
+
41
+ ### Stage B content checkpoint (2026-10-07; source/resources, not C/D acceptance)
42
+
43
+ The working content catalog now follows 11 OCMM base roles and 11 categories, with stable existing IDs and cross-cutting opt-in/default false. Fourteen skills share one configurable Agent-scoped metadata/lazy body inventory; debugging no longer bypasses the skill toggle. Complete existing source trees, including meaningful fixture/script/license resources, are mapped in `prompts/source/manifest.json`; the actual remove-ai-slops source is root `skills/remove-ai-slops`, with bounded non-mechanical cleanup adaptation. See [source sync](skill-sync.md) and [role content](agent-presets.md).
44
+
45
+ Persistent persona/category scope and terminal policies remain when common Deepwork is explicitly off. Active common preserves the complete default workflow and selects applicable full family calibration from the actual model, subordinate to role authority. The tiny mode content seam reuses the existing effective-role resolver so inherited parent presets do not make a child an Opus orchestrator. It does not change routing, admission, permission or lifecycle. Generated presets no longer consume `@dsmm/dsmm/preset-skills`. Version 0.1.9 retains that formal public compatibility entry and renderer parameter positions; the compatibility apply hook does not register skills, while the main entry's real `registerAgentSkills` remains in the same module with unchanged lifecycle. No public-breaking deletion or new wrapper is made.
46
+
47
+ Frontend's fixed-pin brand/taste/ui-ux-db library is explicitly materialized and verified by exact source paths/content and real license notices, including same-pin Python data dependencies. Third-party bodies remain gitignored but must pack; default build/check is offline and fails closed on missing/drifted resources. A new checkout/CI must first run the separately explicit `sync:frontend` command described in [source sync](skill-sync.md). This source/library result does not prove Stage C execution enforcement/continuation/recovery/LSP/admission or Stage D desired/volatile native Config UI. Historical release and installed-host evidence below remains immutable; none is evidence for this checkpoint.
48
+
49
+ Stage E cold-source preparation uses explicit `node dsmm/scripts/materialize-frontend.mjs --sync` before any build-bearing DSMM command, followed by offline validation of 118 frontend resources, 158 source records and 47 role assets. Fixed blob/license bytes must survive checkout/archive conversion; Windows exact-source QA uses command-local `git -c core.autocrlf=false archive`, without changing Git configuration or relaxing the unowned-resource guard. A real script-free 459-file npm tarball and unpacked rc.2 Loader/Core RPC proof are development distribution evidence, not clean Linux dependency installation, final frozen-release acceptance or actual Electron/plugin installation. The unchanged Root publisher still expects historical Deepwork/twelve-role metadata and requires separate authorized control/proof compatibility before release. See [current source readiness and historical boundaries](releasing.md).
50
+
51
+ ### Stage A source contract (2026-10-07; not a publication/host-install claim)
52
+
53
+ The working source now uses rc.2 `SystemPrompt.AssembleContext.scope/signal` and validates exact live Agent identity; the optional dsh-agent assembly augmentation is not required. Common prompt text never contains bundled skill bodies. Ordinary presets are off unless an effective default or explicit intent enables them; DW role presets default on, but a durable explicit off always wins. Persona, read-only and Git/host permission boundaries remain independent.
54
+
55
+ The native skill provider is Agent-scoped, disposable and lazy for seven core skills plus debugging. It queries only the parent/global metadata snapshot, yields to every non-DSMM ancestor winner regardless of rank/source, and publishes nothing on incomplete observations. Native revision invalidation, cancellation and generation/parent fencing prevent stale body delivery. No standing preset/global private-mode provider or prompt-body fallback is retained. Missing native registry capability is a diagnostic/refusal, not fictitious availability.
56
+
57
+ Scope APIs are resolved through the existing declared `dsh-agent-preset-registry` peer graph; skill types come through the declared `dsh-skill-filesystem` contract. No global SDK path or new dependency is embedded. B has refreshed generated assets and removed their `preset-skills` row, but preserves the published export's no-op apply compatibility hook and the same module's actual main-entry Agent registration function.
58
+
59
+ At the A checkpoint, deployment configuration used the main plugin's native Loader Config/entry, not `settings.register`; C0 now adds the separate sparse global base described above. Runtime profiles retain immutable admissions and idle/CAS persistence. Keyless contract tests use real Cordis Loader, native preset/AgentLoop/skill/tool services and a local LLM adapter; they don't prove plugin Config UI, authenticated Desktop, full B/C/D parity or publication.
60
+
61
+ The installed SDK/CLI migration target remains `@deepseek-ai/dsh@0.2.0-rc.2`, the official npm latest/next version resolved on 2026-10-03. `0.2.1-alpha.1` is only the separately fixed Desktop source target described above, not authorization to upgrade SDK dependencies or claim runtime acceptance. The CLI's actual version and installed package identity must both match the pinned SDK target.
14
62
 
15
63
  DSH 0.1.1-rc.2 was the historical baseline; it is not the authority for this updated working tree. Installation ranges are not proof of compatibility with future releases.
16
64
 
@@ -25,30 +73,32 @@ The installation contracts include `@deepseek-ai/cordis@~4.0.4`, `@deepseek-ai/s
25
73
  | Cordis | `~4.0.4` | supported by contract |
26
74
  | DSH component peers | `0.2.0-rc.2` | supported by contract |
27
75
  | Linux container | `Node 22 Bookworm` | independent frozen-artifact gate required |
28
- | Windows Desktop | installed official `0.2.0-rc.2` carrier/host | post-publication native check required |
76
+ | Windows Desktop | official `0.2.1-alpha.1` fixed source target | shared contract compatibility only; executable absent, Electron unverified |
29
77
  | macOS | `Node >=22` | supported by contract |
30
78
  | Native Settings | additive Deepwork Profiles client and authenticated RPC | compiled UI/RPC/storage and actual Desktop are separate proofs |
31
79
  | Headless | deployment config and native role tools | no Agent preset selection in the one-shot runner |
32
- | TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.8 menu proof is Web/Desktop only |
80
+ | TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.9 menu proof is Web/Desktop only |
33
81
  | LSP/MCP | `external ocmm-lsp mcp` | optional |
34
82
  | Runtime recovery | `process-local` | optional |
35
83
  | Per-role model/effort/fallback policy | native request, subagent and descriptor seams | opt-in; exact configured capability required |
36
- | Runtime profiles | independent drafts, immutable revisions, global pointer and scoped CAS sidecars | global new-Agent defaults; explicit idle session epochs; cold sidecar retention |
84
+ | C0 deployment layers | sparse central global base and explicit native entry/profile transport | backend storage/capture plus D real native Web form/CAS proof |
85
+ | Native Plugins | rc.2 item/bundle/row public slots and Host forms | real keyless Web acceptance; independent Global/profile saves and explicit restart |
86
+ | Runtime profiles | central shared drafts/revisions, scoped default/sidecars; strict read-only legacy origin | new-root defaults; explicit idle overlay epochs; origin-pinned cold resume |
37
87
  | Durable DSMM metadata | deployment-only `sessionPersistence` on main DSMM entry | explicit startup integration; frozen-artifact/production acceptance pending |
38
88
  | DeepSeek V4 Pro calibration | `deepseek-official/deepseek-v4-pro` | optional |
39
89
  | DeepSeek V41 Flash calibration | `native DeepSeek providers/deepseek-flash` | optional |
40
90
 
41
91
  ## Command and runtime boundaries
42
92
 
43
- `/deepwork` and `/dsmm-status` are host-adapter commands, not headless task-text commands. The current native client provides Settings → Deepwork Profiles without replacing native navigation, provider/account UI, or the Agent preset selector. There are no model-visible profile-management tools or anonymous file endpoints.
93
+ `/deepwork` and `/dsmm-status` are host-adapter commands, not headless task-text commands. The current native client provides Plugins → DSMM and the separate Settings → Deepwork Profiles without replacing native navigation, provider/account/model UI, or the Agent preset selector. There are no model-visible profile-management tools or anonymous file endpoints.
44
94
 
45
- The 0.1.8 Web/Desktop header contributes one icon-only native profile menu in sessionless, blank and active views, yielding to native navigation ownership. One profile list handles normal profile switching that keeps the current model and invokes no native model selection. One `@use-model` **Use profile model** action reads the current admitted immutable profile model without reapplying a later saved revision; successful profile CAS remains authoritative for profile changes, not a prerequisite repeated by this independent model action. It retains native-default persistence like the Models tab and existing manual-model-intent race fencing. Disabled mutations leave the menu inspectable and refreshable. Successes are accessible live announcements only, not visible success prose; short sanitized refusal details use allowlisted codes/fields and refresh/retry guidance, never raw messages or paths. No verbose normal-menu descriptions or duplicate profile-model list remains. These are required new-menu contracts, not a claim of authenticated Desktop acceptance; the historical 0.1.6 SELECT and 0.1.7 menu proof contracts remain unchanged.
95
+ The 0.1.9 Web/Desktop header contributes one icon-only native profile menu in sessionless, blank and active views, yielding to native navigation ownership. One profile list handles normal profile switching that keeps the current model and invokes no native model selection. One `@use-model` **Use profile model** action reads the current admitted immutable profile model without reapplying a later saved revision; successful profile CAS remains authoritative for profile changes, not a prerequisite repeated by this independent model action. It retains native-default persistence like the Models tab and existing manual-model-intent race fencing. Disabled mutations leave the menu inspectable and refreshable. Successes are accessible live announcements only, not visible success prose; short sanitized refusal details use allowlisted codes/fields and refresh/retry guidance, never raw messages or paths. No verbose normal-menu descriptions or duplicate profile-model list remains. These are required new-menu contracts, not a claim of authenticated Desktop acceptance; the historical 0.1.6 SELECT and 0.1.7 menu proof contracts remain unchanged.
46
96
 
47
- The menu's **Deepwork** toggle applies to other native presets. Official minimal mode defaults off unless saved explicit `deepwork/mode` intent exists; a same-default choice still persists that intent, which survives profile changes and reopen. Standing DW presets show a locked enabled label, not an off action. Sessionless/busy/unavailable mutations fail closed; mode never creates a session or changes native preset, model or global runtime default.
97
+ The menu's **Deepwork** toggle controls common workflow/skill visibility for ordinary and DW presets. Official minimal mode defaults off unless saved explicit `deepwork/mode` intent exists; a same-default choice still persists that intent, which survives profile changes and reopen. DW presets default on but are not locked; explicit off retains their persona/permissions. Sessionless/busy/unavailable mutations fail closed; mode never creates a session or changes native preset, model or global runtime default.
48
98
 
49
- Headless uses profile `cordis.patch.yml` plus `--dump-config`; real task execution requires a separately configured provider and uses `dsmm.defaultActive: true`. Old `$DSH_HOME/settings.yaml` namespaces must be migrated explicitly; DSMM does not mutate that file.
99
+ Headless uses native profile configuration plus DSMM's sparse global base; `--dump-config` shows native Loader composition, not the complete global-aware DSMM effective snapshot. Real task execution requires a separately configured provider and effective `defaultActive: true`. Old `$DSH_HOME/settings.yaml` namespaces require explicit handling; DSMM doesn't mutate that file.
50
100
 
51
- The old directory discovery `roots/includeUserRoot` no longer configures the native preset registry. DSMM registers only enabled `primary`/`all` roots: Orchestrator, Builder and Planner. Disabled Builder is absent from both selector and child tools. The other nine roles remain auxiliary delegation roles; all twelve static `agent-presets/` directories are inspection templates, not scan roots. The loading correction is native `persona.prefix` plus instructions `maxBytes: 65536`.
101
+ The old directory discovery `roots/includeUserRoot` no longer configures the native preset registry. DSMM registers only enabled `primary`/`all` roots: Orchestrator, Builder and Planner. Disabled Builder is absent from both selector and child tools. The other 19 canonical roles/categories remain auxiliary delegation items; all 22 static `agent-presets/` directories are inspection templates, not scan roots (historically nine auxiliary roles/twelve templates). Cross-cutting defaults disabled. Catalog/template presence does not prove C-stage execution availability. The loading correction is native `persona.prefix` plus instructions `maxBytes: 65536`.
52
102
 
53
103
  DSH's headless one-shot runner does not select or compose Agent presets: headless role delegation must use native role tools, not a registry default. Native preset selection must be tested through a preset-capable host with a blank session. The managed preset-directory materializer remains an opt-in export facility, not discovery evidence.
54
104
 
@@ -85,9 +135,9 @@ This prevents future unsafe DSMM writes but does not repair existing unmarked lo
85
135
 
86
136
  ## Upgrade limits before global rollout
87
137
 
88
- DSMM runtime profiles are independent JSONC drafts beneath the native `profileContext.dir`, not additional DSH deployment profiles. Deployment roles/skills/preset composition/LSP/provider/account/install and `sessionPersistence` settings remain restart-scoped and cannot be changed by a runtime profile. Supported runtime values can be saved into a draft explicitly; save alone never activates it or rewrites deployment configuration. Apply pins immutable bytes and updates only the minimal selection pointer. See [profiles](profiles.md).
138
+ DSMM runtime profiles are independent central JSONC drafts, not additional DSH deployment profiles. An existing current-profile legacy library retains its strict read-only origin and pins. Named overlays can't change roles/skills, preset composition, LSP, provider/account/install or `sessionPersistence`. Deployment roles/skills policy can be captured for new ordinary roots only within startup substrate; standing registrations and startup-only consumers require restart. Saving a draft never activates it or rewrites deployment configuration. Apply pins immutable bytes and updates only the scoped selection pointer. See [profiles](profiles.md).
89
139
 
90
- Every existing live Agent, **including a blank Agent**, retains its admitted settings when the global default is applied/reset. Explicit current-session selection is separate: native idle maintenance and CAS/epoch checks commit only that ordinary root's sidecar before publishing its immutable admission. Existing children keep their old epoch; later genuinely owned children inherit the new one. Sidecar cold resume retains the exact pinned revision/baseline even after draft/global changes. Sessions without a sidecar keep the old global-current behavior. Corrupt/unavailable sidecars never silently fall back; native clear/compact does not transfer choices by inferred lineage.
140
+ Every existing live Agent, **including a blank Agent**, retains its admitted settings when desired deployment is saved or the scoped named default is applied/reset. Explicit current-session selection is separate: native idle maintenance and CAS/epoch checks commit only that ordinary root's sidecar before publishing its immutable admission on the old deployment baseline. Existing children keep their old epoch; later genuinely owned children inherit the new one. Cold resume uses the origin-pinned revision/baseline with current valid desired deployment in a new admission, not the old process's memory snapshot. Sessions without a sidecar keep scoped-global-current behavior. Corrupt/unavailable sidecars never silently fall back; native clear/compact doesn't transfer choices by inferred lineage.
91
141
 
92
142
  Old profile documents remain loadable, but omitted strategy now means safer `startup-lock`: a legacy generic chain no longer causes later generic automatic hopping. `runtimeRecovery.enabled` remains parse-compatible and controls legacy continuation concerns, not the two role strategies. Explicitly opt in per role to bounded `rate-limit-fallback` where desired. Every DSMM retry, including same-route retry, requires correlated native no-output evidence; partial text, reasoning or tool fragments refuse terminally without invoking a competing always-retry owner. See [runtime recovery](runtime-recovery.md).
93
143
 
@@ -99,7 +149,7 @@ Global/system Desktop migration is the **third phase**: independent frozen-artif
99
149
 
100
150
  The Linux packed-lifecycle smoke pins pnpm `12.8.1` and retains DSH's native `nodeLinker: hoisted` profile layout. On Linux Node 22, pnpm `11.9.0` with that layout and DSMM's auto-installed peer graph can print `Done` after removal without exiting; the same failure was reproduced directly without DSH, while `12.8.1` returned normally. A printed `Done` is not uninstall completion. This does not claim the same failure on Windows or modify a user's existing package manager or profile. The smoke enforces a bounded fail-closed timeout and checks actual remove/reinstall exits and profile state.
101
151
 
102
- The matrix separates required 0.1.8 evidence from historical CLI/configuration, source-contract and credentialed model evidence. A version string or unit test alone establishes neither native preset health nor UI/runtime behavior. Windows, Linux, Web, and macOS evidence are not interchangeable. The already verified official CLI/TUI 0.1.6 installation is not unfinished rollout work and must not be repeated as part of the new Desktop upgrade.
152
+ The matrix separates required 0.1.9 evidence from historical CLI/configuration, source-contract and credentialed model evidence. A version string or unit test alone establishes neither native preset health nor UI/runtime behavior. Windows, Linux, Web, and macOS evidence are not interchangeable. The already verified official CLI/TUI 0.1.6 installation is not unfinished rollout work and must not be repeated as part of the new Desktop upgrade.
103
153
 
104
154
  The independent Docker gate installs the exact frozen tarball into a fresh pinned native runtime/home and verifies root selection, actual read-only child denials, aliased-parent route preflight, runtime snapshot behavior, and the **same compiled DSMM UI** using native client/slots/RPC and real profile storage. A supported composition-owned in-process operator/Gateway carrier and test-owned browser bridge provide no-credential native component/RPC/storage proof. No user login, copied cookie, launcher token, browser state, Desktop data, account records or authentication bypass is permitted. This proof is not authenticated Desktop/Web-launch proof; actual Desktop mounting and authorized operations remain the later check.
105
155
 
package/docs/design.md CHANGED
@@ -2,6 +2,47 @@
2
2
 
3
3
  Date: 2026-08-21
4
4
 
5
+ ## Current native configuration design (stage D, 2026-10-08)
6
+
7
+ The historical MVP proposal below is retained as design history, not today's
8
+ scope. The authority is the native parity plan §3.3/stage D and [DESIGN.md](../DESIGN.md).
9
+ The product is the existing official Plugins page, not a new SPA or skin.
10
+
11
+ - `plugins.item` owns DSMM's summary/page contribution; `plugins.bundle.config`
12
+ keys `@dsmm/dsmm`; `plugins.row.config` keys `@dsmm/dsmm#<actual-row-id>`.
13
+ Runtime entry ID, native form namespace, row ID and package ID are not
14
+ interchangeable. Identity is verified by server projection and the exact
15
+ native form descriptor/revision/base/user metadata before a profile write.
16
+ - Global edits use only the fixed Core `dsmmConfig` service. Profile edits use
17
+ only the actual entry's public ConfigForms/ConfigPageForm transport. Separate
18
+ buttons/revisions preserve untouched sparse fields; no merged-default copy,
19
+ new store, root-path RPC, or cross-layer Save-all exists. Bundle views obtain
20
+ the verified actual namespace's public form; a standalone page without a
21
+ form honestly marks the profile region unavailable while Core remains usable.
22
+ - All applicable feature families are exposed by structural controls and
23
+ bounded, closed-schema Advanced JSON. Unknown/duplicate/prototype keys and
24
+ invalid numbers remain visible and refuse save. Arrays replace, objects
25
+ inherit recursively; empty/default values remain explicit pins. Higher Host
26
+ pins are displayed, never promised removable by a lower-layer unset.
27
+ - Desired, startup-mounted/captured, next-root preview and actual admitted
28
+ session are separate projections. Preview reuses the runtime's admission
29
+ preparation without creating a session. The host bundle state is unknown
30
+ when unobservable; module availability is not bundle enablement or mode.
31
+ Missing sessions stay unknown. Save never restarts, remounts, cancels or
32
+ reconciles running work; cold-off desired-on requires an independent restart.
33
+ - Drafts retain their original CAS on refresh/conflict. Explicit discard alone
34
+ rebases. Entry/connection-generation changes and component disposal fence
35
+ stale writes; native readonly/nonloopback/operator refusal is not bypassed by
36
+ the global route. Named JSONC/model selection/session actions stay independent.
37
+ - UI uses Host colors, font, controls, borders/radius and focus tokens; 14px/22px
38
+ reading rhythm, maximum 760px, native disclosures and wrapping actions. No new
39
+ brand, shadows or decorative motion. EN/ZH, sanitized alerts and polite live
40
+ feedback accompany real 375/768/1280 light/dark native Web evidence.
41
+
42
+ The SDK stays rc.2. The official Desktop shared source contract is pinned at
43
+ `5badb15009ae1756c3afe0ae0cef1faafc290ccc` (0.2.1-alpha.1); actual Electron is
44
+ uninstalled/unverified here. Web screenshots are not Desktop acceptance.
45
+
5
46
  ## Goal
6
47
 
7
48
  Build `dsmm` as a dsh-native subtree project that brings ocmm's deepwork workflow, role prompts, skills, model calibration, and safety conventions to DeepSeek Harness without globally enabling them for every session.
package/docs/lsp.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  dsmm keeps LSP/MCP disabled by default. The default `cordis.patch.yml` installs only the dsmm prompt, skill, guard, and preset behavior; it does not add an MCP client row.
4
4
 
5
- Enable LSP support only in an explicit dsh profile by applying the opt-in patch at `patches/ocmm-lsp-mcp.example.cordis.patch.yml`. The patch inserts one `@deepseek-ai/dsh-mcp-client` row named `dsmm-lsp-mcp` that starts `ocmm-lsp mcp` over stdio.
5
+ Enable DSMM-managed LSP with explicit `lsp.enabled:true` in the global/native deployment layer. Startup resolves the already-installed `@deepseek-ai/dsh-mcp-client` public package from trusted `profileContext.installAnchor`, mounts its namespace plugin through Cordis and awaits initial tool synchronization. No private Loader import, persisted extra row, home/directory guess, hardcoded SDK path or installation is involved. Missing anchor/package/tools report sanitized unavailable state; `failOnStartupError:true` fails startup. No fake successful tool is registered.
6
+
7
+ The separate opt-in patch at `patches/ocmm-lsp-mcp.example.cordis.patch.yml` remains a manual native-host alternative. Do not enable both with the same `serverName`: the native bridge owns namespace uniqueness. The default `cordis.patch.yml` remains unchanged and LSP is **disabled by default**.
6
8
 
7
9
  ## dsh MCP patch settings
8
10
 
@@ -15,7 +17,7 @@ The example patch uses these LSP/MCP settings:
15
17
  - `failOnStartupError: true`
16
18
  - `toolCallTimeoutMs: 60000`
17
19
 
18
- If `ocmm-lsp` is not on `PATH`, copy the example patch and replace `command: ocmm-lsp` with an absolute wrapper path for the environment where dsh will run.
20
+ If `ocmm-lsp` is not on `PATH`, explicitly configure the already-installed executable/wrapper. DSMM never downloads a server or native binary. LSP mounting uses frozen startup settings: desired save/new admission cannot start/stop/reconcile MCP; differences are restart-required. Actual scope teardown remains native-owned and closes the connection/process and unregisters its tool generation.
19
21
 
20
22
  ## Tools exposed to dsh
21
23
 
@@ -33,8 +35,16 @@ With `serverName: dsmm_lsp`, the dsh MCP client exposes these public tool names
33
35
 
34
36
  `format` applies the language server's document edits to the source file atomically. The debug adapter protocol (DAP) remains a separate debugging surface and is not an MCP tool.
35
37
 
38
+ Read-only roles permit status/diagnostics/navigation/symbol lookup and prepare-rename, but not rename/format. Exact Agent/definition/realm guards enforce this independently of common/helper toggles. `lspRuntime` is a safe status projection containing state, fixed diagnostic code and tool names, never paths/arguments/environment values. Bridge-ready is not proof that a language server is installed or capable: native diagnostics must report actual availability/failure.
39
+
40
+ The keyless native test mounts the installed `ocmm-lsp` through real MCP, checks all nine actual names including symbol-related, calls status, exercises cancellation/read-only rejection, confirms desired off does not remount, and awaits owned process exit/tool withdrawal. rc.2's auto protocol negotiation may close an initial stdio probe and start the negotiated transport; this is native-equivalent, not multiple simultaneous established servers or a DSMM retry scheduler.
41
+
36
42
  ## Verification
37
43
 
44
+ The Windows native cold-query proof uses the unchanged test and a byte-identical, already-installed executable copied into a run-owned temporary fixture. Its first empty-cache request returns one definition and two references; no warm-up, retry, request rewriting or opaque-target parsing is involved. This is isolated bridge verification, not a production relocation policy.
45
+
46
+ The original workspace executable entry still fails in this environment: an owned managed child can read its marker but receives `EPERM` when creating an owned log. The same executable bytes at the temporary entry complete the native query. The underlying protection/permission mechanism has not been identified; this is not proof of a URI or compilation defect, and the default entry has not been repaired. DSMM does not copy binaries persistently, install servers or change system protection/permissions to bypass that restriction. Report actual server failure rather than treating tool discovery or bridge-ready as a successful symbol query.
47
+
38
48
  Direct MCP verification should start `ocmm-lsp mcp`, send a JSON-RPC `tools/list` request, and assert that the nine raw MCP tools are present: `status`, `diagnostics`, `goto_definition`, `find_references`, `find_symbol_related`, `symbols`, `prepare_rename`, `rename`, and `format`. It should call `diagnostics` and `format` against a temporary LSP fixture, then read back the formatted source file.
39
49
 
40
50
  Docker bridge verification should install dsmm into a disposable dsh profile, apply `patches/ocmm-lsp-mcp.example.cordis.patch.yml`, mount `@deepseek-ai/dsh-mcp-client`, and call `mcp__dsmm_lsp__diagnostics` against the same temporary diagnostic fixture. This proves the dsh MCP bridge sees the public tool name and can pass the diagnostic request through to `ocmm-lsp mcp`.
@@ -1,5 +1,13 @@
1
1
  # Migrating from ocmm to DSMM 0.1.1
2
2
 
3
+ ## Current source-content checkpoint (2026-10-07)
4
+
5
+ The historical 0.1.1 mapping below is preserved, not current full-parity evidence. Working Stage B content now has the complete 11 base roles + 11 categories (22 canonical IDs) and fourteen configurable lazy skills. Cross-cutting is opt-in/default false, creative retains its existing identity, and root eligibility remains Orchestrator/Builder/Planner only. No source OCMM provider preferences, .opencode config, credentials or private profiles are copied. The native model picker and actual catalog remain authoritative.
6
+
7
+ Use [role catalog](agent-presets.md) and [deterministic source sync](skill-sync.md) for current content and source → artifact → consumer mapping. Full default workflow, all nine source model/compatibility variants, source category calibrations, actual TS catalog responsibilities and terminal delegation policy are preserved with DSH-specific tools/authority. Source-generated files do not prove callable native roles, plan-only writes, continuation, background or execution guards. C/D own those remaining runtime/settings mechanisms.
8
+
9
+ All fourteen skills load through native metadata/get/resourceBase, not seven-core fulltext injection plus an unconfigurable debugging exception. Explicit off preserves persona/access but withdraws common and DSMM skills. The full frontend taste/brand/ui-ux-db library uses an explicit, fixed-pin materialization recipe; package/runtime checks refuse missing or changed resources offline. A new source checkout must follow the documented explicit sync step, while a complete distributed package includes the full ignored library and real license notices. This is source/resource parity, not completed C/D runtime or publication/host-install proof. Installation/login/Git/destructive migration operations below require separate exact authorization; they are guidance, not automatic actions.
10
+
3
11
  DSMM is a DSH-native Cordis bundle, not an OpenCode compatibility layer; .opencode/ocmm.jsonc cannot be copied into DSH. This guide describes the 0.1.1 routing surface targeting DSH 0.2.0-rc.2, not a full host-feature parity claim.
4
12
 
5
13
  ## Hard boundary