@dsmm/dsmm 0.1.9 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (553) hide show
  1. package/README.md +46 -58
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +91 -186
  3. package/agent-presets/dsmm-builder/preset.yml +1 -1
  4. package/agent-presets/dsmm-clarifier/agent.cordis.yml +120 -17
  5. package/agent-presets/dsmm-clarifier/preset.yml +1 -1
  6. package/agent-presets/dsmm-code-search/agent.cordis.yml +72 -17
  7. package/agent-presets/dsmm-code-search/preset.yml +1 -1
  8. package/agent-presets/dsmm-coding/agent.cordis.yml +169 -0
  9. package/agent-presets/dsmm-coding/preset.yml +3 -0
  10. package/agent-presets/dsmm-complex/agent.cordis.yml +154 -0
  11. package/agent-presets/dsmm-complex/preset.yml +3 -0
  12. package/agent-presets/dsmm-creative/agent.cordis.yml +122 -15
  13. package/agent-presets/dsmm-creative/preset.yml +1 -1
  14. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +179 -0
  15. package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
  16. package/agent-presets/dsmm-deep/agent.cordis.yml +189 -0
  17. package/agent-presets/dsmm-deep/preset.yml +3 -0
  18. package/agent-presets/dsmm-doc-search/agent.cordis.yml +72 -17
  19. package/agent-presets/dsmm-doc-search/preset.yml +1 -1
  20. package/agent-presets/dsmm-documenting/agent.cordis.yml +168 -0
  21. package/agent-presets/dsmm-documenting/preset.yml +3 -0
  22. package/agent-presets/dsmm-frontend/agent.cordis.yml +161 -0
  23. package/agent-presets/dsmm-frontend/preset.yml +3 -0
  24. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +153 -0
  25. package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
  26. package/agent-presets/dsmm-media-reader/agent.cordis.yml +72 -17
  27. package/agent-presets/dsmm-media-reader/preset.yml +1 -1
  28. package/agent-presets/dsmm-normal-task/agent.cordis.yml +127 -0
  29. package/agent-presets/dsmm-normal-task/preset.yml +3 -0
  30. package/agent-presets/dsmm-oracle/agent.cordis.yml +109 -15
  31. package/agent-presets/dsmm-oracle/preset.yml +1 -1
  32. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +109 -15
  33. package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
  34. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +174 -190
  35. package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
  36. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +102 -16
  37. package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
  38. package/agent-presets/dsmm-planner/agent.cordis.yml +134 -15
  39. package/agent-presets/dsmm-planner/preset.yml +1 -1
  40. package/agent-presets/dsmm-quick/agent.cordis.yml +132 -0
  41. package/agent-presets/dsmm-quick/preset.yml +3 -0
  42. package/agent-presets/dsmm-research/agent.cordis.yml +156 -0
  43. package/agent-presets/dsmm-research/preset.yml +3 -0
  44. package/agent-presets/dsmm-reviewer/agent.cordis.yml +108 -16
  45. package/agent-presets/dsmm-reviewer/preset.yml +1 -1
  46. package/cordis.patch.yml +1 -5
  47. package/docs/agent-presets.md +48 -15
  48. package/docs/compatibility.md +58 -68
  49. package/docs/deferred-native-approval-risk.md +19 -0
  50. package/docs/design.md +43 -2
  51. package/docs/lsp.md +12 -12
  52. package/docs/migration-from-ocmm.md +10 -2
  53. package/docs/model-routing.md +84 -59
  54. package/docs/native-permissions.md +35 -0
  55. package/docs/profiles.md +43 -64
  56. package/docs/releasing.md +159 -8
  57. package/docs/roadmap.md +77 -17
  58. package/docs/runtime-recovery.md +12 -0
  59. package/docs/safety-guards.md +7 -3
  60. package/docs/settings-status.md +46 -40
  61. package/docs/skill-sync.md +89 -14
  62. package/lib/child-admission-contract.d.ts +37 -0
  63. package/lib/child-admission-contract.js +2 -0
  64. package/lib/child-admission.d.ts +42 -0
  65. package/lib/child-admission.js +162 -0
  66. package/lib/child-capture.d.ts +81 -0
  67. package/lib/child-capture.js +203 -0
  68. package/lib/child-evidence.d.ts +17 -0
  69. package/lib/child-evidence.js +43 -0
  70. package/lib/client/ChildrenPanel.d.ts +43 -0
  71. package/lib/client/ChildrenPanel.js +82 -0
  72. package/lib/client/DeploymentPage.d.ts +18 -0
  73. package/lib/client/DeploymentPage.js +127 -0
  74. package/lib/client/EditableChoice.d.ts +17 -0
  75. package/lib/client/EditableChoice.js +49 -0
  76. package/lib/client/PermissionsPanel.d.ts +14 -0
  77. package/lib/client/PermissionsPanel.js +46 -0
  78. package/lib/client/ProfilesSection.js +32 -15
  79. package/lib/client/RoleAvailability.d.ts +7 -0
  80. package/lib/client/RoleAvailability.js +19 -0
  81. package/lib/client/SessionProfiles.js +27 -9
  82. package/lib/client/StructuredEditor.js +15 -7
  83. package/lib/client/children-controller.d.ts +98 -0
  84. package/lib/client/children-controller.js +296 -0
  85. package/lib/client/children-locales.d.ts +367 -0
  86. package/lib/client/children-locales.js +69 -0
  87. package/lib/client/controller.d.ts +6 -1
  88. package/lib/client/controller.js +14 -8
  89. package/lib/client/deployment-controller.d.ts +50 -0
  90. package/lib/client/deployment-controller.js +193 -0
  91. package/lib/client/deployment-data.d.ts +17 -0
  92. package/lib/client/deployment-data.js +138 -0
  93. package/lib/client/deployment-locales.d.ts +70 -0
  94. package/lib/client/deployment-locales.js +81 -0
  95. package/lib/client/diagnostics.d.ts +14 -0
  96. package/lib/client/diagnostics.js +53 -0
  97. package/lib/client/index.d.ts +4 -0
  98. package/lib/client/index.js +145 -1
  99. package/lib/client/locales.d.ts +58 -0
  100. package/lib/client/locales.js +38 -18
  101. package/lib/client/permission-client.d.ts +16 -0
  102. package/lib/client/permission-client.js +38 -0
  103. package/lib/client/permission-controller.d.ts +62 -0
  104. package/lib/client/permission-controller.js +149 -0
  105. package/lib/client/permission-locales.d.ts +114 -0
  106. package/lib/client/permission-locales.js +75 -0
  107. package/lib/client/plugins-contract.d.ts +27 -0
  108. package/lib/client/plugins-contract.js +2 -0
  109. package/lib/client/session-labels.js +4 -4
  110. package/lib/client/structured.js +19 -5
  111. package/lib/client/styles.d.ts +1 -1
  112. package/lib/client/styles.js +36 -0
  113. package/lib/client.js +6724 -1604
  114. package/lib/commands.js +3 -0
  115. package/lib/config-file-store.d.ts +23 -0
  116. package/lib/config-file-store.js +67 -0
  117. package/lib/core-permission-authority.d.ts +18 -0
  118. package/lib/core-permission-authority.js +255 -0
  119. package/lib/core-permissions.d.ts +8 -0
  120. package/lib/core-permissions.js +33 -0
  121. package/lib/delivery-authority.d.ts +68 -0
  122. package/lib/delivery-authority.js +260 -0
  123. package/lib/deployment-config.d.ts +60 -0
  124. package/lib/deployment-config.js +205 -0
  125. package/lib/deployment-permission-rules.d.ts +55 -0
  126. package/lib/deployment-permission-rules.js +306 -0
  127. package/lib/dsh-home.d.ts +3 -0
  128. package/lib/dsh-home.js +10 -0
  129. package/lib/dsh-types.d.ts +22 -69
  130. package/lib/guards.d.ts +3 -2
  131. package/lib/guards.js +44 -6
  132. package/lib/host-llm-startup.d.ts +41 -0
  133. package/lib/host-llm-startup.js +65 -0
  134. package/lib/host-llm.d.ts +92 -0
  135. package/lib/host-llm.js +325 -0
  136. package/lib/index.d.ts +23 -5
  137. package/lib/index.js +383 -40
  138. package/lib/legacy-child-policy.d.ts +51 -0
  139. package/lib/legacy-child-policy.js +123 -0
  140. package/lib/legacy-read-composition.d.ts +20 -0
  141. package/lib/legacy-read-composition.js +144 -0
  142. package/lib/legacy-read-contracts.d.ts +157 -0
  143. package/lib/legacy-read-contracts.js +39 -0
  144. package/lib/legacy-read-host.d.ts +19 -0
  145. package/lib/legacy-read-host.js +67 -0
  146. package/lib/legacy-read-integration.d.ts +121 -0
  147. package/lib/legacy-read-integration.js +522 -0
  148. package/lib/legacy-read-proxy.d.ts +26 -0
  149. package/lib/legacy-read-proxy.js +237 -0
  150. package/lib/live-pi-ai-owner.d.ts +18 -0
  151. package/lib/live-pi-ai-owner.js +144 -0
  152. package/lib/llm-runtime.d.ts +11 -0
  153. package/lib/llm-runtime.js +21 -0
  154. package/lib/lsp.d.ts +13 -0
  155. package/lib/lsp.js +60 -0
  156. package/lib/managed-settings.d.ts +5 -0
  157. package/lib/managed-settings.js +14 -0
  158. package/lib/mode.js +42 -47
  159. package/lib/model-parameter-policy.d.ts +11 -0
  160. package/lib/model-parameter-policy.js +27 -0
  161. package/lib/model-routing.js +33 -19
  162. package/lib/modules.d.ts +35 -0
  163. package/lib/modules.js +37 -0
  164. package/lib/native-child-evidence.d.ts +42 -0
  165. package/lib/native-child-evidence.js +133 -0
  166. package/lib/native-pi-ai-wire.d.ts +37 -0
  167. package/lib/native-pi-ai-wire.js +261 -0
  168. package/lib/native-scope.d.ts +9 -0
  169. package/lib/native-scope.js +20 -0
  170. package/lib/permission-bash.d.ts +6 -0
  171. package/lib/permission-bash.js +7 -0
  172. package/lib/permission-control.d.ts +73 -0
  173. package/lib/permission-control.js +205 -0
  174. package/lib/permission-controller.d.ts +68 -0
  175. package/lib/permission-controller.js +317 -0
  176. package/lib/permission-errors.d.ts +7 -0
  177. package/lib/permission-errors.js +21 -0
  178. package/lib/permission-fs-search.d.ts +5 -0
  179. package/lib/permission-fs-search.js +7 -0
  180. package/lib/permission-fs.d.ts +5 -0
  181. package/lib/permission-fs.js +7 -0
  182. package/lib/permission-native-access.d.ts +11 -0
  183. package/lib/permission-native-access.js +6 -0
  184. package/lib/permission-native-command.d.ts +10 -0
  185. package/lib/permission-native-command.js +93 -0
  186. package/lib/permission-native-rules.d.ts +75 -0
  187. package/lib/permission-native-rules.js +278 -0
  188. package/lib/permission-pwsh.d.ts +6 -0
  189. package/lib/permission-pwsh.js +7 -0
  190. package/lib/permission-remote.d.ts +26 -0
  191. package/lib/permission-remote.js +53 -0
  192. package/lib/permission-rpc.d.ts +29 -0
  193. package/lib/permission-rpc.js +152 -0
  194. package/lib/permission-rules.d.ts +115 -0
  195. package/lib/permission-rules.js +256 -0
  196. package/lib/permission-settings.d.ts +45 -0
  197. package/lib/permission-settings.js +48 -0
  198. package/lib/permission-shell.d.ts +38 -0
  199. package/lib/permission-shell.js +150 -0
  200. package/lib/permission-web.d.ts +5 -0
  201. package/lib/permission-web.js +7 -0
  202. package/lib/plan-validation.js +6 -44
  203. package/lib/preset-materializer.js +2 -0
  204. package/lib/preset-registry.d.ts +1 -1
  205. package/lib/preset-registry.js +38 -24
  206. package/lib/preset-skills.d.ts +4 -1
  207. package/lib/preset-skills.js +60 -19
  208. package/lib/profile-diagnostics.d.ts +45 -0
  209. package/lib/profile-diagnostics.js +148 -0
  210. package/lib/profile-locale.d.ts +3 -0
  211. package/lib/profile-locale.js +2 -0
  212. package/lib/profile-remote.d.ts +22 -0
  213. package/lib/profile-remote.js +344 -27
  214. package/lib/profile-rpc.d.ts +25 -1
  215. package/lib/profile-rpc.js +143 -3
  216. package/lib/profile-runtime.d.ts +63 -0
  217. package/lib/profile-runtime.js +496 -77
  218. package/lib/profile-store.d.ts +56 -1
  219. package/lib/profile-store.js +377 -111
  220. package/lib/profile-types.d.ts +125 -1
  221. package/lib/profile-types.js +1 -0
  222. package/lib/profiles.d.ts +16 -2
  223. package/lib/profiles.js +156 -79
  224. package/lib/prompt-content.d.ts +25 -0
  225. package/lib/prompt-content.js +27 -0
  226. package/lib/prompts.d.ts +45 -4
  227. package/lib/prompts.js +157 -43
  228. package/lib/recovery-policy.js +20 -7
  229. package/lib/role-control-remote.d.ts +38 -0
  230. package/lib/role-control-remote.js +211 -0
  231. package/lib/role-control-rpc.d.ts +51 -0
  232. package/lib/role-control-rpc.js +377 -0
  233. package/lib/role-control-types.d.ts +92 -0
  234. package/lib/role-control-types.js +8 -0
  235. package/lib/role-invocation.d.ts +47 -0
  236. package/lib/role-invocation.js +135 -0
  237. package/lib/role-llm-runtime.d.ts +17 -0
  238. package/lib/role-llm-runtime.js +62 -0
  239. package/lib/role-llm.d.ts +31 -0
  240. package/lib/role-llm.js +66 -0
  241. package/lib/role-policy.d.ts +92 -0
  242. package/lib/role-policy.js +601 -0
  243. package/lib/role-providers.d.ts +7 -3
  244. package/lib/role-providers.js +74 -46
  245. package/lib/role-routing.d.ts +11 -2
  246. package/lib/role-routing.js +42 -25
  247. package/lib/role-runs.d.ts +135 -0
  248. package/lib/role-runs.js +304 -0
  249. package/lib/role-subagents.d.ts +63 -4
  250. package/lib/role-subagents.js +299 -47
  251. package/lib/roles.d.ts +20 -9
  252. package/lib/roles.js +87 -216
  253. package/lib/route-json.d.ts +19 -0
  254. package/lib/route-json.js +129 -0
  255. package/lib/routing-policy.d.ts +2 -0
  256. package/lib/routing-policy.js +12 -2
  257. package/lib/runtime-integration.d.ts +112 -0
  258. package/lib/runtime-integration.js +784 -0
  259. package/lib/runtime-recovery.js +34 -13
  260. package/lib/session-scope.js +2 -0
  261. package/lib/settings.d.ts +116 -14
  262. package/lib/settings.js +455 -149
  263. package/lib/skills.d.ts +24 -9
  264. package/lib/skills.js +114 -35
  265. package/lib/state.d.ts +10 -6
  266. package/lib/state.js +48 -49
  267. package/lib/status.d.ts +35 -1
  268. package/lib/status.js +58 -17
  269. package/lib/subagent-runtime.d.ts +45 -0
  270. package/lib/subagent-runtime.js +131 -0
  271. package/locale/en.json +2 -2
  272. package/locale/zh.json +2 -2
  273. package/package.json +112 -45
  274. package/patches/subagent-runtime.yml +15 -0
  275. package/prompts/deepseek-flash.md +1 -1
  276. package/prompts/deepseek-v4-pro.md +2 -2
  277. package/prompts/deepwork.md +153 -20
  278. package/prompts/source/agents/clarifier.md +47 -0
  279. package/prompts/source/agents/orchestrator.md +72 -0
  280. package/prompts/source/agents/plan-critic.md +29 -0
  281. package/prompts/source/agents/planner.md +21 -0
  282. package/prompts/source/agents/reviewer.md +23 -0
  283. package/prompts/source/catalog.json +548 -0
  284. package/prompts/source/category/coding.md +46 -0
  285. package/prompts/source/category/complex.md +29 -0
  286. package/prompts/source/category/creative.md +40 -0
  287. package/prompts/source/category/cross-cutting.md +54 -0
  288. package/prompts/source/category/deep.md +64 -0
  289. package/prompts/source/category/documenting.md +68 -0
  290. package/prompts/source/category/frontend.md +38 -0
  291. package/prompts/source/category/hard-reasoning.md +53 -0
  292. package/prompts/source/category/normal-task.md +27 -0
  293. package/prompts/source/category/quick.md +34 -0
  294. package/prompts/source/category/research.md +58 -0
  295. package/prompts/source/deepwork/claude-opus-5.md +28 -0
  296. package/prompts/source/deepwork/codex.md +9 -0
  297. package/prompts/source/deepwork/default.md +136 -0
  298. package/prompts/source/deepwork/gemini.md +191 -0
  299. package/prompts/source/deepwork/glm.md +263 -0
  300. package/prompts/source/deepwork/gpt.md +49 -0
  301. package/prompts/source/deepwork/kimi-k27.md +13 -0
  302. package/prompts/source/deepwork/planner.md +44 -0
  303. package/prompts/source/deepwork/swe-2.md +13 -0
  304. package/prompts/source/manifest.json +3233 -0
  305. package/prompts/source/shared/dsh-host-contract.md +8 -0
  306. package/prompts/source/shared/locale.md +8 -0
  307. package/prompts/source/shared/shell-safety.md +7 -0
  308. package/prompts/source/terminal/builder.md +13 -0
  309. package/prompts/source/terminal/clarifier.md +41 -0
  310. package/prompts/source/terminal/code-search.md +39 -0
  311. package/prompts/source/terminal/coding.md +41 -0
  312. package/prompts/source/terminal/complex.md +43 -0
  313. package/prompts/source/terminal/creative.md +41 -0
  314. package/prompts/source/terminal/cross-cutting.md +43 -0
  315. package/prompts/source/terminal/deep.md +43 -0
  316. package/prompts/source/terminal/doc-search.md +39 -0
  317. package/prompts/source/terminal/documenting.md +41 -0
  318. package/prompts/source/terminal/frontend.md +41 -0
  319. package/prompts/source/terminal/hard-reasoning.md +41 -0
  320. package/prompts/source/terminal/media-reader.md +39 -0
  321. package/prompts/source/terminal/normal-task.md +41 -0
  322. package/prompts/source/terminal/oracle-2nd.md +53 -0
  323. package/prompts/source/terminal/oracle.md +53 -0
  324. package/prompts/source/terminal/orchestrator.md +26 -0
  325. package/prompts/source/terminal/plan-critic.md +41 -0
  326. package/prompts/source/terminal/planner.md +42 -0
  327. package/prompts/source/terminal/quick.md +39 -0
  328. package/prompts/source/terminal/research.md +39 -0
  329. package/prompts/source/terminal/reviewer.md +53 -0
  330. package/scripts/cold-profile-composition.mjs +329 -0
  331. package/scripts/cold-profile-sources.mjs +238 -0
  332. package/scripts/migrate-cold-profile.mjs +315 -0
  333. package/skills/ast-grep/LICENSE +21 -0
  334. package/skills/ast-grep/README.md +138 -0
  335. package/skills/ast-grep/SKILL.md +287 -0
  336. package/skills/ast-grep/SOURCE +1 -0
  337. package/skills/ast-grep/install.ps1 +235 -0
  338. package/skills/ast-grep/install.sh +286 -0
  339. package/skills/ast-grep/references/cli.md +233 -0
  340. package/skills/ast-grep/references/install.md +168 -0
  341. package/skills/ast-grep/references/patterns.md +149 -0
  342. package/skills/ast-grep/references/pitfalls.md +305 -0
  343. package/skills/ast-grep/references/recipes.md +404 -0
  344. package/skills/ast-grep/references/sgconfig.md +250 -0
  345. package/skills/ast-grep/references/yaml-rules.md +511 -0
  346. package/skills/ast-grep/scripts/ast_grep_helper.py +760 -0
  347. package/skills/ast-grep/tests/smoke.ps1 +129 -0
  348. package/skills/ast-grep/tests/smoke.sh +212 -0
  349. package/skills/ast-grep/tests/test_resolver.py +154 -0
  350. package/skills/brainstorming/SKILL.md +123 -9
  351. package/skills/coding-agent-sessions/LICENSE-UPSTREAM.md +82 -0
  352. package/skills/coding-agent-sessions/NOTICE.md +24 -0
  353. package/skills/coding-agent-sessions/SKILL.md +147 -0
  354. package/skills/coding-agent-sessions/agents/openai.yaml +4 -0
  355. package/skills/coding-agent-sessions/pyrightconfig.json +5 -0
  356. package/skills/coding-agent-sessions/references/all-platforms.md +77 -0
  357. package/skills/coding-agent-sessions/references/claude.md +34 -0
  358. package/skills/coding-agent-sessions/references/codex.md +32 -0
  359. package/skills/coding-agent-sessions/references/opencode.md +45 -0
  360. package/skills/coding-agent-sessions/references/senpi.md +29 -0
  361. package/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
  362. package/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
  363. package/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
  364. package/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
  365. package/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
  366. package/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
  367. package/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
  368. package/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
  369. package/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
  370. package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
  371. package/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +104 -0
  372. package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
  373. package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
  374. package/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
  375. package/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
  376. package/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
  377. package/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
  378. package/skills/coding-agent-sessions/scripts/tests/test_agent_sessions.py +322 -0
  379. package/skills/coding-agent-sessions/scripts/tests/test_aside_scanner.py +131 -0
  380. package/skills/coding-agent-sessions/scripts/tests/test_cli_contract.py +126 -0
  381. package/skills/coding-agent-sessions/scripts/tests/test_extended_scanners.py +262 -0
  382. package/skills/coding-agent-sessions/scripts/tests/test_optional_sqlite_scanners.py +79 -0
  383. package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -0
  384. package/skills/debugging/SKILL.md +130 -4
  385. package/skills/debugging/references/logging.md +2 -0
  386. package/skills/debugging/references/methodology/00-setup.md +16 -62
  387. package/skills/debugging/references/methodology/02-investigate.md +11 -5
  388. package/skills/debugging/references/methodology/03-flaky-triage.md +6 -4
  389. package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +6 -16
  390. package/skills/debugging/references/methodology/05-escalate.md +2 -0
  391. package/skills/debugging/references/methodology/06-fix.md +8 -6
  392. package/skills/debugging/references/methodology/08-qa.md +7 -5
  393. package/skills/debugging/references/methodology/09-cleanup.md +16 -152
  394. package/skills/debugging/references/methodology/partial-runtime-evidence.md +7 -18
  395. package/skills/debugging/references/runtimes/bundled-js-binary.md +3 -16
  396. package/skills/debugging/references/runtimes/go.md +2 -0
  397. package/skills/debugging/references/runtimes/native-binary.md +11 -54
  398. package/skills/debugging/references/runtimes/node.md +6 -15
  399. package/skills/debugging/references/runtimes/python.md +5 -15
  400. package/skills/debugging/references/runtimes/rust.md +4 -18
  401. package/skills/debugging/references/scripts/dap.test.mjs +539 -0
  402. package/skills/debugging/references/scripts/fixture-adapter.mjs +164 -0
  403. package/skills/debugging/references/tools/dap.md +4 -2
  404. package/skills/debugging/references/tools/ghidra.md +6 -15
  405. package/skills/debugging/references/tools/playwright-cli.md +5 -15
  406. package/skills/debugging/references/tools/pwndbg.md +2 -0
  407. package/skills/debugging/references/tools/pwntools.md +6 -16
  408. package/skills/dispatching-parallel-agents/SKILL.md +96 -7
  409. package/skills/frontend/.frontend-materialized.json +856 -0
  410. package/skills/frontend/ATTRIBUTION.md +37 -0
  411. package/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
  412. package/skills/frontend/LICENSE-taste-skill.txt +21 -0
  413. package/skills/frontend/LICENSE-ui-ux-pro-max.txt +21 -0
  414. package/skills/frontend/SKILL.md +145 -0
  415. package/skills/frontend/references/design/README.md +256 -0
  416. package/skills/frontend/references/design/_INDEX.md +206 -0
  417. package/skills/frontend/references/design/airbnb.md +393 -0
  418. package/skills/frontend/references/design/airtable.md +92 -0
  419. package/skills/frontend/references/design/apple.md +250 -0
  420. package/skills/frontend/references/design/aside.md +211 -0
  421. package/skills/frontend/references/design/binance.md +348 -0
  422. package/skills/frontend/references/design/bmw.md +183 -0
  423. package/skills/frontend/references/design/brutalist-skill.md +92 -0
  424. package/skills/frontend/references/design/bugatti.md +271 -0
  425. package/skills/frontend/references/design/cal.md +262 -0
  426. package/skills/frontend/references/design/claude.md +315 -0
  427. package/skills/frontend/references/design/clay.md +307 -0
  428. package/skills/frontend/references/design/clickhouse.md +284 -0
  429. package/skills/frontend/references/design/clone-from-url.md +69 -0
  430. package/skills/frontend/references/design/cohere.md +269 -0
  431. package/skills/frontend/references/design/coinbase.md +132 -0
  432. package/skills/frontend/references/design/composio.md +310 -0
  433. package/skills/frontend/references/design/cursor.md +312 -0
  434. package/skills/frontend/references/design/design-system-architecture.md +250 -0
  435. package/skills/frontend/references/design/elevenlabs.md +268 -0
  436. package/skills/frontend/references/design/expo.md +284 -0
  437. package/skills/frontend/references/design/ferrari.md +317 -0
  438. package/skills/frontend/references/design/figma.md +223 -0
  439. package/skills/frontend/references/design/framer.md +249 -0
  440. package/skills/frontend/references/design/gpt-tasteskill.md +74 -0
  441. package/skills/frontend/references/design/hashicorp.md +281 -0
  442. package/skills/frontend/references/design/ibm.md +335 -0
  443. package/skills/frontend/references/design/image-to-code-skill.md +1228 -0
  444. package/skills/frontend/references/design/imagegen-brandkit.md +798 -0
  445. package/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
  446. package/skills/frontend/references/design/imagegen-frontend-web.md +987 -0
  447. package/skills/frontend/references/design/interaction-skill.md +52 -0
  448. package/skills/frontend/references/design/intercom.md +149 -0
  449. package/skills/frontend/references/design/kraken.md +128 -0
  450. package/skills/frontend/references/design/lamborghini.md +291 -0
  451. package/skills/frontend/references/design/linear.app.md +370 -0
  452. package/skills/frontend/references/design/lovable.md +301 -0
  453. package/skills/frontend/references/design/mastercard.md +368 -0
  454. package/skills/frontend/references/design/meta.md +369 -0
  455. package/skills/frontend/references/design/minimalist-skill.md +85 -0
  456. package/skills/frontend/references/design/minimax.md +260 -0
  457. package/skills/frontend/references/design/mintlify.md +329 -0
  458. package/skills/frontend/references/design/miro.md +111 -0
  459. package/skills/frontend/references/design/mistral.ai.md +264 -0
  460. package/skills/frontend/references/design/mongodb.md +269 -0
  461. package/skills/frontend/references/design/nike.md +366 -0
  462. package/skills/frontend/references/design/notion.md +312 -0
  463. package/skills/frontend/references/design/nvidia.md +296 -0
  464. package/skills/frontend/references/design/ollama.md +270 -0
  465. package/skills/frontend/references/design/opencode.ai.md +284 -0
  466. package/skills/frontend/references/design/output-skill.md +49 -0
  467. package/skills/frontend/references/design/pinterest.md +233 -0
  468. package/skills/frontend/references/design/playstation.md +367 -0
  469. package/skills/frontend/references/design/posthog.md +259 -0
  470. package/skills/frontend/references/design/raycast.md +271 -0
  471. package/skills/frontend/references/design/react-dev-tooling-skill.md +232 -0
  472. package/skills/frontend/references/design/redesign-skill.md +178 -0
  473. package/skills/frontend/references/design/renault.md +314 -0
  474. package/skills/frontend/references/design/replicate.md +264 -0
  475. package/skills/frontend/references/design/resend.md +306 -0
  476. package/skills/frontend/references/design/revolut.md +188 -0
  477. package/skills/frontend/references/design/runwayml.md +247 -0
  478. package/skills/frontend/references/design/sanity.md +360 -0
  479. package/skills/frontend/references/design/sentry.md +265 -0
  480. package/skills/frontend/references/design/shopify.md +353 -0
  481. package/skills/frontend/references/design/soft-skill.md +98 -0
  482. package/skills/frontend/references/design/spacex.md +197 -0
  483. package/skills/frontend/references/design/spotify.md +249 -0
  484. package/skills/frontend/references/design/starbucks.md +583 -0
  485. package/skills/frontend/references/design/stitch-design-example.md +121 -0
  486. package/skills/frontend/references/design/stitch-skill.md +184 -0
  487. package/skills/frontend/references/design/stripe.md +325 -0
  488. package/skills/frontend/references/design/supabase.md +258 -0
  489. package/skills/frontend/references/design/superhuman.md +255 -0
  490. package/skills/frontend/references/design/taste-skill.md +1206 -0
  491. package/skills/frontend/references/design/tesla.md +289 -0
  492. package/skills/frontend/references/design/theverge.md +342 -0
  493. package/skills/frontend/references/design/together.ai.md +266 -0
  494. package/skills/frontend/references/design/uber.md +298 -0
  495. package/skills/frontend/references/design/vercel.md +313 -0
  496. package/skills/frontend/references/design/vodafone.md +426 -0
  497. package/skills/frontend/references/design/voltagent.md +326 -0
  498. package/skills/frontend/references/design/warp.md +256 -0
  499. package/skills/frontend/references/design/webflow.md +95 -0
  500. package/skills/frontend/references/design/wired.md +281 -0
  501. package/skills/frontend/references/design/wise.md +176 -0
  502. package/skills/frontend/references/design/x.ai.md +260 -0
  503. package/skills/frontend/references/design/zapier.md +331 -0
  504. package/skills/frontend/references/perfection/README.md +264 -0
  505. package/skills/frontend/references/perfection/react-perf-tooling.md +234 -0
  506. package/skills/frontend/references/ui-ux-db/README.md +659 -0
  507. package/skills/frontend/references/ui-ux-db/data/app-interface.csv +31 -0
  508. package/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
  509. package/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
  510. package/skills/frontend/references/ui-ux-db/data/google-fonts.csv +1924 -0
  511. package/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
  512. package/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
  513. package/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
  514. package/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
  515. package/skills/frontend/references/ui-ux-db/data/stacks/angular.csv +51 -0
  516. package/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
  517. package/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
  518. package/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
  519. package/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
  520. package/skills/frontend/references/ui-ux-db/data/stacks/laravel.csv +51 -0
  521. package/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
  522. package/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
  523. package/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
  524. package/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
  525. package/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
  526. package/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
  527. package/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
  528. package/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
  529. package/skills/frontend/references/ui-ux-db/data/stacks/threejs.csv +54 -0
  530. package/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
  531. package/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
  532. package/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
  533. package/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
  534. package/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
  535. package/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
  536. package/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
  537. package/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
  538. package/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
  539. package/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
  540. package/skills/git-master/SKILL.md +115 -0
  541. package/skills/git-master/agents/openai.yaml +13 -0
  542. package/skills/init-deep/SKILL.md +282 -0
  543. package/skills/receiving-code-review/SKILL.md +117 -7
  544. package/skills/remove-ai-slops/SKILL.md +160 -8
  545. package/skills/requesting-code-review/SKILL.md +98 -3
  546. package/skills/requesting-code-review/code-reviewer.md +59 -0
  547. package/skills/subagent-driven-development/SKILL.md +179 -6
  548. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
  549. package/skills/subagent-driven-development/implementer-prompt.md +87 -0
  550. package/skills/subagent-driven-development/spec-reviewer-prompt.md +37 -0
  551. package/skills/using-git-worktrees/SKILL.md +144 -0
  552. package/skills/writing-plans/SKILL.md +126 -7
  553. package/skills/writing-plans/plan-document-reviewer-prompt.md +47 -0
@@ -1,6 +1,8 @@
1
- # Phase 0 + 1 — Environment Assessment & Journal Setup
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
2
 
3
- Before a debugger touches anything, you need a map of what's running and a ledger of what you'll touch. Skipping either phase is how debug sessions turn into "why is my repo dirty a week later" sessions.
3
+ # Phase 0 + 1: Environment Assessment and Resource Ownership
4
+
5
+ Before attaching, identify what's running and which resources this task will own. Keep current investigation evidence in conversation or task-owned temporary storage, not product process documents.
4
6
 
5
7
  ---
6
8
 
@@ -41,68 +43,20 @@ If any answer is "I'm not sure", you are not ready for Phase 1. Investigate unti
41
43
 
42
44
  ---
43
45
 
44
- ## Phase 1 — Journal Setup
45
-
46
- Open **one** journal file at the project root: `.debug-journal.md`. Single source of truth for every artifact this skill creates. The contract with the user that you can undo everything.
47
-
48
- ### Exclude from git (don't pollute the committed ignore list)
49
-
50
- ```bash
51
- grep -qx '.debug-journal.md' .git/info/exclude || echo '.debug-journal.md' >> .git/info/exclude
52
- ```
53
-
54
- `.git/info/exclude` is per-clone and not committed — perfect for local-session artifacts.
55
-
56
- ### Journal template
57
-
58
- ```markdown
59
- # Debug Journal — <short bug name>
60
- Started: <ISO timestamp>
61
- Goal: <one-sentence user request>
62
-
63
- ## Environment snapshot (Phase 0)
64
- - Runtime: <language + version + launcher>
65
- - Entry: <command that starts the process>
66
- - Ports / sockets: <app=..., debugger=..., etc>
67
- - Git HEAD: <sha>, working tree clean? <yes/no>
68
- - References read: <list the files from references/ you loaded — proves you did the gate>
69
-
70
- ## Hypotheses
71
- 1. [STATUS] <hypothesis> — distinguishing evidence: <what would confirm/refute> — if true, fix is: <two words>
72
- 2. ...
73
-
74
- ## Failed hypothesis round counter
75
- - Round 1: <result>
76
- - Round 2: <result>
77
- <!-- At 2 consecutive evidence-backed failures, the task qualifies for one hard-reasoning escalation (see 04-hard-reasoning-escalation.md). -->
78
-
79
- ## Artifacts to revert
80
- <!-- Every temp edit, tmux session, fixture, env override, saved debugger session goes here
81
- BEFORE it is created. The rule is journal-then-modify. -->
82
- - [ ] `src/foo.py` — added `breakpoint()` on 2 lines. Revert: `git checkout src/foo.py`
83
- - [ ] tmux session `debug-server`. Kill: `tmux kill-session -t debug-server`
84
- - [ ] `/tmp/debug-payload.json`. Remove: `rm /tmp/debug-payload.json`
85
- - [ ] env var in current shell: `FOO_BASE_URL=...`. Unset when done.
86
- - [ ] GDB session save: `~/ghidra-projects/scratch.gzf`. Remove if not promoting.
87
-
88
- ## Findings
89
- <!-- Append observed values here with timestamp. Verbatim only, no paraphrasing. -->
90
-
91
- ## Hard-Reasoning Escalation (if invoked)
92
- <!-- Record why the difficulty threshold was met and the resulting hypothesis set. -->
93
-
94
- ## Final fix
95
- <!-- File paths + test path. Filled during Phase 7. -->
96
- ```
46
+ ## Phase 1: Temporary Resource Ownership
97
47
 
98
- ### The journal-then-modify rule
48
+ If file-backed debug material is needed, use a unique task-owned directory under the approved OS temporary root and verify its parent before creation. Session-only investigation needs no directory or checklist file. Don't read, modify, delete, or adopt any existing `.debug-journal.md`, and don't change `.git/info/exclude`. No repository hypothesis or experiment journal is required or permitted.
99
49
 
100
- Before any modification to the repo, shell, or system state, append to "Artifacts to revert" first. This one discipline is what prevents debug sessions from becoming git cleanup sessions.
50
+ Before creating each artifact or changing temporary state, capture only what's needed for safe cleanup:
101
51
 
102
- If you catch yourself about to run a command that creates a file, opens a port, or modifies source — stop, journal the intended artifact with its revert command, then run the command. Not the other way around.
52
+ | Resource | Ownership and restoration information |
53
+ | --- | --- |
54
+ | Temporary file or directory | Exact path, task ownership, and exact cleanup target |
55
+ | Source instrumentation | Initial relevant hunk and task-owned patch to remove it without discarding other edits |
56
+ | Process or debugger session | PID plus start identity, owned session/context, and targeted shutdown action |
57
+ | Environment or configuration override | Scope and previous value/state to restore |
58
+ | Fixture, port, proxy, or browser profile | Unique identity, ownership check, and safe release action |
103
59
 
104
- ### Why a single journal (not scattered TODO comments)
60
+ Keep this ownership checklist and short-lived hypothesis/evidence state in the agent session; temporary storage is optional when resumption needs it. Synchronize useful findings at delivery or major phase boundaries, not every checklist update. Temporary or disposable artifacts need no repeated stability/hash checks or correct status record at every instant. Store raw reproduction evidence temporarily only as needed; durable tests and docs describe final valid requirements and the current mechanism only. Exact cleanup identities and restoration data must remain available until cleanup succeeds.
105
61
 
106
- - One `git checkout`, one `rm`, one `tmux kill-session` list — simple Phase 9 walk.
107
- - Survives interruptions. If you get pulled away mid-session, the next agent (or you later) can continue or revert without guessing.
108
- - Prevents the most common failure: leaving `console.log`/`print()`/`dbg!` scattered across the tree.
62
+ Inspect the initial working-tree state so cleanup can distinguish this task's edits from existing user work. Resource ownership doesn't confer permission to kill another process, alter system configuration, or discard a file. Escalate when safe restoration or required authorization is uncertain.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Phase 2 + 3 — Hypothesis Formation & Parallel Investigation
2
4
 
3
5
  One hypothesis is a hunch. Three hypotheses is a decision. Investigation is how you turn the decision into runtime evidence.
@@ -25,7 +27,7 @@ If your three hypotheses are all variations of "the handler has a bug", you don'
25
27
  | **Binary-level** (when applicable) | "The function we think is running is actually jumped over by a patched thunk / a different version loaded" |
26
28
  | **Build-vs-runtime** | "The code we're reading is not the code that's running — stale build, wrong symlink, cached wheel, or dist/ ahead of src/" |
27
29
 
28
- ### For each hypothesis, write in the journal
30
+ ### Keep the active hypothesis set in conversation or disposable investigation state
29
31
 
30
32
  1. **Claim** — one sentence.
31
33
  2. **Distinguishing evidence** — the exact value or state that confirms or refutes it, AND where to read it (file:line, log source, breakpoint location, memory address).
@@ -37,13 +39,17 @@ If two hypotheses have identical distinguishing evidence, they aren't actually d
37
39
 
38
40
  ---
39
41
 
40
- ## Phase 3 — Investigate Distinct Evidence
42
+ ## Phase 3 — Independent Evidence Investigation
43
+
44
+ Use independent direct probes first. If the current role policy and actual DSH catalog permit delegation, assign distinct bounded evidence to available roles; otherwise investigate sequentially. DSH does not provide the OpenCode team registry or debug-squad configuration. Do not write host-private team configuration or invent task calls.
41
45
 
42
- Use available DSH role-specific tools only when parallel evidence collection is genuinely independent and within current permission and depth limits. Otherwise investigate sequentially. Assign one hypothesis and its falsifying observation per investigation. Never assume OpenCode team APIs or an automatically writable agent.
46
+ Retain the source responsibilities: inspect observed runtime state; correlate logs/timing; minimize a reproducible input; cross-link observations into a causal chain and identify the next falsifying query. Read-only lookup roles may inspect evidence but cannot create instrumentation/reproduction files by proxy. The lead keeps exact task-owned resource/cleanup identities in session or disposable investigation state before creation, approves authorized edits, integrates evidence, and owns cancellation/cleanup via actual host controls; no repository journal or per-file ledger is created. Reviewer/Oracle remain implementation-acceptance roles, not debugging consultants. After two failed evidence rounds, return a genuinely difficult decision to the stage owner for optional hard-reasoning, subject to the caller's permitted targets.
47
+
48
+ ---
43
49
 
44
50
  ## Evidence capture discipline (both paths)
45
51
 
46
- For every piece of runtime state captured, record in the journal:
52
+ For relevant runtime state, capture evidence in conversation or task-owned temporary storage, not a repository journal:
47
53
 
48
54
  ```markdown
49
55
  ### <ISO timestamp> — <what you looked at>
@@ -64,4 +70,4 @@ If you find yourself about to paraphrase, stop, go back, and copy the raw value.
64
70
 
65
71
  ## Round completion
66
72
 
67
- A "round" is complete when every hypothesis has either confirming or refuting evidence — or when you have exhausted the evidence sources available without a decisive result. If the round ends inconclusively, that counts as a failed round for the counter in the journal. See `04-hard-reasoning-escalation.md` for what to do at 2 consecutive failed rounds.
73
+ A "round" is complete when every hypothesis has confirming or refuting evidence, or available evidence sources are exhausted without a decisive result. An inconclusive round increments the current failed-round count in disposable investigation state. Don't retain a round history in product artifacts. See `04-hard-reasoning-escalation.md` for the two-consecutive-failure threshold.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Flaky-test triage
2
4
 
3
5
  Use this reference when a test is intermittent, passes in isolation, changes its failing neighbor, depends on execution order, or fails only in CI. Treat the symptom as shared-state evidence until a controlled experiment proves otherwise.
@@ -5,7 +7,7 @@ Use this reference when a test is intermittent, passes in isolation, changes its
5
7
  ## Safety boundary
6
8
 
7
9
  - Start with an unchanged rerun. Do not install tools, terminate another user's process, overwrite user configuration, or use a shared temp root.
8
- - Journal every command, run-owned artifact, and cleanup action. Clean only artifacts that this run owns.
10
+ - Capture relevant run evidence temporarily; list exact run-owned artifacts and cleanup actions in the temporary resource checklist. Clean only resources this run owns.
9
11
  - Retry wrappers, arbitrary sleeps, quarantine, deletion, and assertion weakening are not fixes. They hide evidence and must not be used to claim resolution.
10
12
  - Keep test commands and environment changes scoped to the affected test or suite. Do not turn a flaky-test investigation into a full-suite mutation.
11
13
 
@@ -47,7 +49,7 @@ fi
47
49
  **PowerShell — unique run root and optional listener inspection**
48
50
 
49
51
  ```powershell
50
- $runRoot = Join-Path "$env:LOCALAPPDATA\Temp\dsmm-debug" "flaky-$([guid]::NewGuid().ToString('N'))"
52
+ $runRoot = Join-Path "$env:LOCALAPPDATA\Temp\opencode" "flaky-$([guid]::NewGuid().ToString('N'))"
51
53
  New-Item -ItemType Directory -Path $runRoot | Out-Null
52
54
  $env:TEST_TMPDIR = $runRoot
53
55
  pnpm test -- --test-name-pattern "affected test"
@@ -55,7 +57,7 @@ pnpm test -- --test-name-pattern "affected test"
55
57
  Get-NetTCPConnection -LocalPort 3000
56
58
  ```
57
59
 
58
- Do not install a port inspector and never kill a port owner. If a listener is relevant, record it and namespace the port for the run instead. Journal cleanup and remove only the unique root created by the current investigation.
60
+ Do not install a port inspector and never kill a port owner. If a listener is relevant, capture its identity and namespace the port for the run instead. Use the temporary resource checklist and remove only the unique root created by the current investigation.
59
61
 
60
62
  ## Cause-oriented repair
61
63
 
@@ -66,4 +68,4 @@ Do not install a port inspector and never kill a port owner. If a listener is re
66
68
 
67
69
  After two failed evidence rounds, the local workflow permits one `hard-reasoning` escalation only when the root cause is genuinely difficult. Reviewer and Oracle profiles are not debugging agents and must not be used for this triage.
68
70
 
69
- If the evidence remains unresolved, return a classification receipt: the three-run signature, observed shared-state checks, remaining hypotheses, controlled toggles attempted, run-owned artifacts cleaned, and the explicit statement that no fix is claimed.
71
+ If the evidence remains unresolved, report the current classification, decisive shared-state evidence, remaining evidence gaps, owned-resource cleanup, and the explicit statement that no fix is claimed. Don't require a receipt or experiment history.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Phase 4 — Hard-Reasoning Escalation
2
4
 
3
5
  At 2 consecutive failed hypothesis rounds, stop investigating and reframe. Two evidence-backed failures establish that this is a genuinely difficult debugging problem; only at this threshold may `hard-reasoning` be used. Ordinary and first-attempt debugging must stay with direct runtime investigation, `code-search`, or `research`.
@@ -33,7 +35,7 @@ Do not fan out multiple decision agents. Add `code-search` or `research` only wh
33
35
  ## Prompt
34
36
 
35
37
  ```
36
- task(description="Reframe root-cause investigation", subagent_type="hard-reasoning",
38
+ Native assignment content for a permitted callable hard-reasoning role (otherwise return to stage owner):
37
39
  prompt="""
38
40
  GOAL: Reframe this genuinely difficult root-cause investigation after two failed evidence rounds.
39
41
  STOP WHEN: You provide one ranked next hypothesis set and decisive runtime queries; do not propose a fix without confirming evidence.
@@ -45,7 +47,7 @@ task(description="Reframe root-cause investigation", subagent_type="hard-reasoni
45
47
  C. INVARIANT-VIOLATION — load-bearing assumptions that may be false.
46
48
 
47
49
  Return: three ranked candidate causes, the frame supporting each, and the smallest runtime query that confirms or refutes each. This is decision support only; do not edit files or dispatch other agents.
48
- """)
50
+ """
49
51
  ```
50
52
 
51
53
  ---
@@ -56,19 +58,7 @@ Treat the response as hypotheses, not proof. Pull the ranked candidates and fals
56
58
 
57
59
  Minimum 3, same rules as Phase 2. Aim to have hypotheses drawn from the agreement scan (likely cause) AND from the disagreement scan (so one round's evidence resolves the disagreement).
58
60
 
59
- Record in the journal:
60
-
61
- ```markdown
62
- ## Hard-Reasoning Escalation — Round <N>
63
- - Invoked at: <ISO timestamp>
64
- - Reason escalation was permitted: <two failed evidence rounds or equivalent strict difficulty evidence>
65
- - Ranked candidates: <one line each>
66
- - Decisive runtime queries: <one line each>
67
-
68
- ### New hypothesis set
69
- 1. <hypothesis> — evidence to gather: <one-liner>
70
- 2. ...
71
- ```
61
+ Keep the currently permitted escalation, next hypothesis set, decisive queries, and evidence gaps in conversation or disposable investigation state. Don't create a repository escalation or hypothesis history.
72
62
 
73
63
  ### Reset the counter
74
64
 
@@ -80,4 +70,4 @@ Reset the "consecutive failed rounds" counter to 0. Return to Phase 3 (parallel
80
70
 
81
71
  You are genuinely stuck. This is the escalation threshold.
82
72
 
83
- Escalate to the user (see `05-escalate.md`) with the full trace: every hypothesis tried, every piece of evidence captured, and the hard-reasoning reframing. Do not guess a fix.
73
+ Escalate to the user (see `05-escalate.md`) with the unresolved question, decisive observed evidence, current constraints, and missing authorization or evidence. Don't guess a fix or require a full investigation transcript.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Phase 5 — User Decision Escalation
2
4
 
3
5
  Escalation is for genuine ambiguity, not for skipping investigation. Most "should I ask the user" moments are really "I don't want to do one more query" moments, and those are wrong.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Phase 6 + 7 — Root Cause Confirmation & Reproduction-Locked Fix
2
4
 
3
5
  A cause is not "confirmed" until you can toggle the bug by toggling the cause. Every other level of evidence is correlation, and correlation-driven fixes ship bugs.
@@ -33,7 +35,7 @@ Examples of a valid toggle proof:
33
35
 
34
36
  If you can't construct a toggle proof, you haven't confirmed the cause. Run one more round.
35
37
 
36
- ### Update the journal
38
+ ### Capture current mechanism and proof in temporary evidence
37
39
 
38
40
  ```markdown
39
41
  ## Root cause (confirmed <ISO timestamp>)
@@ -59,7 +61,7 @@ Capture a case that fails *specifically because of this bug*. Where the reposito
59
61
  - **Failure output clearly shows what the bug looks like.** If someone reads only the failure output, they understand what's broken.
60
62
  - **Minimum infrastructure.** Don't spin up the whole server if a smaller reproducible run captures the mechanism.
61
63
 
62
- Run the test or scenario. Confirm it fails before the fix. Paste the failure output into the journal:
64
+ Run the test or scenario. Confirm it fails before the fix. Capture the failure output in conversation or task-owned temporary evidence:
63
65
 
64
66
  ```markdown
65
67
  ### Red phase (<ISO timestamp>)
@@ -90,7 +92,7 @@ Resist all of these. Fix the bug. Note the surrounding issues for follow-up. Mov
90
92
 
91
93
  Only cleanup directly related to the fix. Do not re-architect.
92
94
 
93
- If the code around the fix is rough, note it in the journal as a follow-up for the user; do not expand scope here. Refactoring during a bugfix is how one-line fixes turn into hundred-line diffs nobody can review.
95
+ If the code around the fix has an unresolved concern, report its current impact to the user; don't expand scope or create a repository follow-up journal.
94
96
 
95
97
  ### 4. Regression — full suite green
96
98
 
@@ -102,9 +104,9 @@ If they don't, your "fix" broke something else. Back to Phase 6 with the new fai
102
104
 
103
105
  If diagnosis burned extra rounds *because state was invisible* — no log line told you which branch ran, what the value was, whether the fallback engaged — that invisibility is a defect adjacent to the bug, and this is the one moment where adding a log line is NOT "just in case": this session is the evidence that the line earns its place. Ship the fix WITH that line, written to the standard of `references/logging.md` — level chosen by consumer, placed at the decision point, data in fields not interpolation, through the project's designated logger. If the project deliberately does not log, respect that and skip this step.
104
106
 
105
- This does not soften the artifact rule: every temporary `print` / `dbg!` / `console.log` planted *during* diagnosis stays journaled and gets scrubbed in Phase 9. The triage is the consumer test — a line whose ongoing consumer you can name is part of the fix; a line that only served today's session is an artifact.
107
+ Every temporary `print` / `dbg!` / `console.log` added during diagnosis belongs in the task-owned resource checklist and is removed in Phase 9. A line with a current ongoing consumer may be part of the authorized fix; a line used only for diagnosis is temporary instrumentation.
106
108
 
107
- ### Update the journal
109
+ ### Capture current verification evidence
108
110
 
109
111
  ```markdown
110
112
  ### Green phase (<ISO timestamp>)
@@ -120,4 +122,4 @@ Full suite: <N tests, <M failures — should be 0> (or <none exists>)
120
122
 
121
123
  No captured failure → no proof the fix addresses the reported bug. Only proof it doesn't break tests that already existed. Keep the reproduction as a test where the repository keeps tests for this behavior; otherwise the captured before/after run is the proof.
122
124
 
123
- Where tests are kept, a test written *after* the fix might still pass with the fix reverted. If that's the case, the test doesn't lock the bug — it locks something else. Always verify the same case fails without the fix and passes with it, whether test or captured run. The journal should show both outputs.
125
+ Where tests are kept, verify that the same valid regression case fails without the fix and passes with it. Keep before/after outputs in task-owned temporary evidence or conversation, not a repository journal. Tests protect final valid functionality and external interfaces, not descriptive wording, decision counterexamples, or removed-component absence. Update tests for changed requirements and delete tests dedicated to removed components; committed contracts and authorization remain binding.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Phase 8 — Manual QA by Actually Using It
2
4
 
3
5
  Tests cover cases you thought of. Real usage covers the ones you didn't.
@@ -12,7 +14,7 @@ Pick the row that matches the product. Do what it says. Do not substitute.
12
14
 
13
15
  | Product type | QA means… |
14
16
  |---|---|
15
- | **CLI tool** | Open `tmux`, run the actual command end-to-end, capture output. Paste the session transcript into the journal. Include exit code, stdout, stderr, side-effect check (files created/modified). |
17
+ | **CLI tool** | Run the actual command end-to-end with available tools. Capture relevant output, exit code, and side-effect checks in task-owned temporary evidence or conversation. |
16
18
  | **HTTP API** | Start the real server, hit endpoints with `curl` or `httpie`, inspect response status + body + headers. Hit the specific endpoint that reproduced the bug. If there's auth, use real auth. |
17
19
  | **Browser-served web app** | **Drive a real browser via Playwright CLI.** See [tools/playwright-cli.md](../tools/playwright-cli.md). Navigate the exact page/flow that reproduced the bug. Capture screenshot + DOM + network evidence. **Do not substitute with curl** — browsers have state (cookies, localStorage, service workers, client-side JS, viewport-dependent CSS) that curl does not have. |
18
20
  | **Agent / LLM pipeline** | Run the same user prompt that originally failed. Capture the full turn — tool calls, messages, usage counters. **Confirm non-zero usage** (zero usage = still failing silently, see silent-failure check below). |
@@ -24,9 +26,9 @@ Pick the row that matches the product. Do what it says. Do not substitute.
24
26
 
25
27
  ---
26
28
 
27
- ## Journal format
29
+ ## Current QA evidence
28
30
 
29
- Every QA run goes in the journal under "Findings":
31
+ Capture relevant QA evidence in conversation or task-owned temporary storage, not a repository run history:
30
32
 
31
33
  ```markdown
32
34
  ### Manual QA — <product type> (<ISO timestamp>)
@@ -77,7 +79,7 @@ Check the runtime reference for additional patterns:
77
79
 
78
80
  Don't fix it. This is out of scope for the current bug.
79
81
 
80
- Note it in the journal under a "Follow-ups" section with:
82
+ Report the current unresolved concern with:
81
83
  - File:line
82
84
  - Pattern matched
83
85
  - Proposed fix sketch (one line)
@@ -91,4 +93,4 @@ Surface these to the user in the final message under "Next steps I didn't take".
91
93
 
92
94
  "Fix verified" means: the exact original failing scenario, re-run, now produces the correct output. Not a similar scenario. Not a unit test of the fix. The original scenario.
93
95
 
94
- If you can't re-run the original scenario (e.g. it required a specific data state that's gone), construct the closest equivalent and document the difference in the journal. Escalate to the user if the equivalent is materially different.
96
+ If you can't rerun the original scenario, state the current verification limitation and the evidence from the closest valid equivalent. Escalate if the equivalent is materially different. Don't create a repository QA journal.
@@ -1,164 +1,28 @@
1
- # Phase 9 + 10 — Cleanup & Final Verification
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
2
 
3
- The working tree after the session must differ from before only by the real fix and any retained reproduction evidence. Anything else is a process failure.
3
+ # Phase 9 + 10: Cleanup and Final Verification
4
4
 
5
- ---
5
+ The working tree must retain its initial user changes plus only the authorized fix and valid regression evidence. Cleanup doesn't authorize Git writes or changes to other tasks' files.
6
6
 
7
- ## Phase 9 — Cleanup & Revert
7
+ ## Phase 9: Clean Task-Owned Resources
8
8
 
9
- ### The walk
9
+ Use the session-level or optional temporary resource ownership checklist from Phase 1 to clean only owned resources. Check cleanup success, but don't write completed status before deleting a disposable checklist or resource journal. No per-update persistence, repeated stability/hash check, repository debug journal, or extra ledger is needed. Never read, edit, adopt, or delete an existing `.debug-journal.md` or modify `.git/info/exclude`.
10
10
 
11
- Open the journal's "Artifacts to revert" list. Walk it top to bottom. Check each box only after the revert command succeeds and produces no error.
11
+ Remove temporary source instrumentation with a patch limited to this task's exact hunks. Don't restore a whole file from Git: that could discard user edits or the real fix. Close only owned debugger/browser contexts and task-owned sessions. Terminate a process only after verifying its recorded PID and start identity; don't use broad process-name kills. Restore environment overrides to their captured prior state, rather than blindly unsetting them.
12
12
 
13
- ### Standard revert operations
13
+ Delete only exact paths created by this task, after resolving and checking each target and its ownership. Don't use wildcard cleanup for fixtures, core dumps, libraries, browser reports, or scratch projects. Browser cleanup also follows its profile-marker and process-identity checks. Existing files, processes, configuration, and other tasks' resources aren't cleanup targets.
14
14
 
15
- Most sessions create some combination of these artifacts. The commands below are the defaults — your journal should have the exact commands for this session.
15
+ Inspect `git status --short`, the relevant diff, and new files against the initial working-tree state. Check this task's edits for leftover debug statements, temporary logs, commented-out trial code, and unrelated formatting. Report existing unrelated changes without cleaning them.
16
16
 
17
- ```bash
18
- # --- Temporary source edits (instrumentation statements, debug prints) ---
19
- git checkout <file> # reverts only that file
20
- git diff <file> # verify clean
17
+ Once owned resources are clean, remove any task-owned temporary checklist and raw debug material no longer needed, without a final status-write ceremony. Retained product tests must protect final valid functional or external-interface requirements, not decision counterexamples, descriptive-text locks, or the absence of removed components.
21
18
 
22
- # --- tmux sessions ---
23
- tmux kill-session -t <session-name>
24
- tmux ls # confirm gone
19
+ ## Phase 10: Final Verification
25
20
 
26
- # --- Temp fixtures / scratch scripts ---
27
- rm -f /tmp/debug-*.*
28
- ls /tmp/debug-*.* 2>/dev/null # confirm gone (ls returns non-zero when no match)
21
+ Report evidence for each required claim:
29
22
 
30
- # --- Background processes (debugger-attached runtimes) ---
31
- pkill -f 'node --inspect' || true
32
- pkill -f 'python -m pdb' || true
33
- pkill -f 'debugpy' || true
34
- pkill -f 'dlv' || true
35
- pkill -f 'gdb' || true
36
- pkill -f 'lldb' || true
23
+ 1. **Reproduction:** The captured failing case before the fix and the same case passing after it, with command/scenario and relevant observed output.
24
+ 2. **Regression:** Results of the affected package's required tests, or the explicit absence of a suite or inability to run it.
25
+ 3. **Real-surface QA:** The original scenario's correct observed result. State any inaccessible or authentication-gated coverage honestly.
26
+ 4. **Ownership cleanup:** Confirmation that task-owned artifacts were removed and initial unrelated work remains untouched.
37
27
 
38
- # --- Debug-relevant ports confirmed free ---
39
- lsof -iTCP:9229 -sTCP:LISTEN -nP 2>/dev/null # Node inspector default
40
- lsof -iTCP:5678 -sTCP:LISTEN -nP 2>/dev/null # debugpy default
41
- lsof -iTCP:2345 -sTCP:LISTEN -nP 2>/dev/null # dlv default
42
- lsof -iTCP:9999 -sTCP:LISTEN -nP 2>/dev/null # pwndbg/gdb-server default
43
-
44
- # --- Env var overrides in current shell ---
45
- unset DEBUG_OVERRIDE_FOO
46
- unset PYTHONBREAKPOINT
47
- unset RUST_LOG
48
- unset DEBUG
49
-
50
- # --- Ghidra scratch projects (if created just for this session) ---
51
- # rm -rf ~/ghidra-projects/debug-scratch
52
-
53
- # --- Core dumps from debugging (if any) ---
54
- rm -f ./core ./core.* ~/core.*
55
-
56
- # --- Playwright trace files ---
57
- rm -rf playwright-report/ test-results/
58
- ```
59
-
60
- ### The verify command
61
-
62
- This is the single most important check of the whole skill:
63
-
64
- ```bash
65
- git status
66
- git diff --stat
67
- ```
68
-
69
- The diff must contain **only**:
70
-
71
- 1. The real fix.
72
- 2. Any retained regression test or reproduction evidence, if tracked.
73
- 3. Nothing else.
74
-
75
- ### Detector checklist — scan the diff for these
76
-
77
- If `git status` shows any untracked debug file, or `git diff` shows any of the patterns below, **you are not done**. Clean it.
78
-
79
- | Pattern | Usually means |
80
- |---|---|
81
- | `debugger;` | Node debug statement left behind |
82
- | `breakpoint()` | Python debug statement left behind |
83
- | `dbg!(...)` | Rust debug macro left behind |
84
- | `fmt.Println("DEBUG: ...")` | Go ad-hoc print |
85
- | `console.log("[DEBUG]` | Node ad-hoc log |
86
- | `print(f"DEBUG: ` | Python ad-hoc print |
87
- | `// TODO DEBUG`, `// HACK`, `// XXX` | Stale debug marker |
88
- | `// <PROJECT>-DEBUG` | Session-specific marker from this skill's edits |
89
- | Commented-out code blocks near the fix | Dead code from trial fixes |
90
- | Reordered imports or formatting in unrelated files | Drift from your editor's autoformat during the session |
91
-
92
- ### Remove the journal
93
-
94
- Only once the git check is clean:
95
-
96
- ```bash
97
- rm .debug-journal.md
98
- sed -i.bak '/^\.debug-journal\.md$/d' .git/info/exclude && rm -f .git/info/exclude.bak
99
- ```
100
-
101
- The journal is not part of the fix; it doesn't belong in the commit or in the git exclude list.
102
-
103
- ---
104
-
105
- ## Phase 10 — Final Verification
106
-
107
- Last gate before reporting done. All four gates must be true, and all four must have **evidence in your final message** to the user. Passing a gate without evidence is the same as failing it.
108
-
109
- ### The four gates
110
-
111
- 1. **Red→green reproduction confirmed** — show the failing case's output from before the fix and the same case's passing output after. Both outputs visible in the reply (and journaled during work).
112
-
113
- 2. **Existing test suite green** — show the suite's final pass line when one exists (e.g. `42 passed in 3.14s`); otherwise state that no suite exists. Not just the targeted test, if any.
114
-
115
- 3. **Manual QA reproduced the fix** — show the command or scenario that originally failed and its now-correct output. Verbatim, not paraphrased.
116
-
117
- 4. **Working tree clean of debug artifacts** — show `git diff --stat` output containing only the fix and any retained reproduction evidence, plus `git status` clean of untracked debug files.
118
-
119
- If any of the four lacks evidence, you have not finished — return to the appropriate phase.
120
-
121
- ### Final message template
122
-
123
- Keep it short. Evidence-dense. The user should be able to skim it in 30 seconds.
124
-
125
- ```markdown
126
- Fixed.
127
-
128
- **Root cause**: <one sentence — the mechanism, not the symptom>
129
- **Fix**: `<file:line>` — <two words>
130
- **Reproduction**: `<test file>::<test name>` or <scenario> — failure before fix, same case passing after
131
- **QA**: <one line describing what you ran and what you saw>
132
-
133
- Diff:
134
- ```
135
- <git diff --stat output — should be tiny>
136
- ```
137
-
138
- **Next steps I didn't take** (awaiting your decision):
139
- - <follow-up 1, if any — from QA silent-failure scan or refactor opportunities noted during Phase 7>
140
- - <follow-up 2 — or "none" if nothing else surfaced>
141
- ```
142
-
143
- ### Example (from a real session)
144
-
145
- ```markdown
146
- Fixed.
147
-
148
- **Root cause**: pi-mono Agent's `model.baseUrl` was hardcoded to `api.anthropic.com`, so the `ANTHROPIC_BASE_URL` env var was silently ignored. The proxy API key was rejected by the real Anthropic API with 401, but pi-mono packaged the error into the assistant message's `errorMessage` field instead of throwing, so the route's try/catch never fired and the client received HTTP 200 with empty content.
149
-
150
- **Fix**: `core/pi-bridge/modelResolver.ts:117` — override baseUrl
151
- **Test**: `__tests__/core/modelResolver.test.ts::resolves_env_override` — red without fix, green with fix
152
- **QA**: `curl -X POST /api/refinement/chat` with proxy env set, observed non-zero usage and non-empty content
153
-
154
- Diff:
155
- ```
156
- core/pi-bridge/modelResolver.ts | 3 +++
157
- __tests__/core/modelResolver.test.ts | 42 ++++++++++++++++++++++
158
- 2 files changed, 45 insertions(+)
159
- ```
160
-
161
- **Next steps I didn't take** (awaiting your decision):
162
- - pi-mono itself silently swallows LLM errors into `errorMessage`; adding a throw-on-error wrapper at our orchestrator layer would surface these upstream
163
- - Same silent-failure pattern exists in the planning route — likely the same fix applies
164
- ```
28
+ Don't claim completion when a required check is missing or a substantive risk remains unresolved. Keep the final report concise: current root-cause mechanism, fix location, verification results, and remaining risks or unverified items. Don't append a hypothesis, trial, or decision history to product docs or the final report.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Partial Runtime Evidence — When You Cannot Execute the Real Operation
2
4
 
3
5
  Read this when **runtime truth beats code reading** is in conflict with **you cannot run the actual operation**.
@@ -97,7 +99,7 @@ If the operation succeeded earlier (before quota ran out, before access was revo
97
99
 
98
100
  ### Tier 6 — Pure code reading with independent research verification
99
101
 
100
- If literally none of the above is available, read the code carefully and use one bounded `research` pass to verify cited claims against the available source. This is the weakest tier and you must explicitly mark conclusions as "unverified" in the journal.
102
+ If none of the above is available, read the code carefully and use one bounded `research` pass to verify cited claims against the available source. This is the weakest tier: explicitly mark the claim as unverified in the deliverable, without creating a repository journal.
101
103
 
102
104
  ---
103
105
 
@@ -114,7 +116,7 @@ A defensible conclusion **prefers two independent signals from different tiers**
114
116
  | Tier 3 + Tier 4 (cross-check + contrastive run) | medium — both partial |
115
117
  | Tier 6 alone (code reading only) | **insufficient** — escalate or mark unverified |
116
118
 
117
- Record in the journal:
119
+ State the current evidence and verification limit in conversation or the deliverable, not a repository journal:
118
120
 
119
121
  ```markdown
120
122
  ## Partial runtime evidence
@@ -156,7 +158,7 @@ Reviewer and Oracle profiles are reserved for software implementation acceptance
156
158
  ### Pattern
157
159
 
158
160
  ```
159
- task(description="Verify non-debug artifact claims", subagent_type="research",
161
+ Native assignment content for a permitted callable research role (otherwise verify directly):
160
162
  prompt="""
161
163
  SKEPTICAL FINAL VERIFICATION — be critical, look for reasons the task is incomplete or wrong.
162
164
 
@@ -178,7 +180,7 @@ SKEPTICAL FINAL VERIFICATION — be critical, look for reasons the task is incom
178
180
  3. Identify any unsubstantiated claims, missing pieces, or factual errors.
179
181
  4. End with PASS / FAIL / PARTIAL with specific gaps.
180
182
  Be skeptical. Don't rubber-stamp.
181
- """)
183
+ """
182
184
  ```
183
185
 
184
186
  ### Keep the roles distinct
@@ -201,17 +203,4 @@ Use `research` to verify factual artifact claims. Use the Phase 4 hard-reasoning
201
203
 
202
204
  ## Cleanup additions for partial-evidence work
203
205
 
204
- ```bash
205
- # Proxy artifacts
206
- pkill -f mitmproxy 2>/dev/null
207
- rm -f ~/.mitmproxy/cache_* 2>/dev/null
208
-
209
- # Debug log files
210
- rm -f /tmp/trace.log /tmp/*-debug-trace.log
211
-
212
- # DYLD_INSERT / LD_PRELOAD shim libraries
213
- rm -f /tmp/*.dylib /tmp/*.so
214
-
215
- # Verify env vars set in your shell are not persisted
216
- unset HTTPS_PROXY APP_DEBUG APP_LOG_LEVEL APP_LOG_FILE 2>/dev/null
217
- ```
206
+ Put proxy processes, logs, shim libraries, and environment overrides in the temporary resource ownership checklist before creation. Follow Phase 9: stop only identity-verified owned processes, delete exact owned paths, and restore captured prior environment values. Never remove shared proxy caches or use wildcard cleanup.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Bundled-JS / Embedded-Source Binaries (Bun SEA, Node SEA, Deno compile, pkg, Electron, PyInstaller)
2
4
 
3
5
  A growing class of "binaries" are not stripped C/C++ at all — they are a runtime VM glued onto a high-level-language bundle. The bundle is **plaintext or trivially-decodable** inside the binary.
@@ -391,22 +393,7 @@ If reverse-engineering proprietary software, the extracted source is the vendor'
391
393
 
392
394
  ## Phase 9 cleanup specifics for bundled-JS work
393
395
 
394
- ```bash
395
- # Remove extracted bundles — they may contain proprietary source
396
- rm -f /tmp/extracted-bundle.js /tmp/extracted-*.js
397
- rm -rf /tmp/asar-extracted/
398
- rm -rf /tmp/_MEI*
399
-
400
- # Remove strings dumps
401
- rm -f /tmp/*-strings.txt /tmp/*-strings-v*.txt
402
-
403
- # Remove Python helper scripts created for parsing
404
- rm -f /tmp/extract_bundled_js.py /tmp/parse_template.py
405
-
406
- # Verify the extraction directory is gone (if you used a workspace dir)
407
- ls /Users/$USER/local-workspaces/*-extracted/ 2>/dev/null
408
- # rm -rf only after journal review confirms nothing important is there
409
- ```
396
+ Follow [central cleanup rules](../methodology/09-cleanup.md). Register exact task-owned paths for extracted bundles, ASAR or `_MEI` extraction directories, strings dumps, and parsing helpers in the temporary resource checklist. Resolve and verify each path and its ownership before deletion, then verify cleanup. Don't infer ownership from a filename, directory prefix, or location under `/tmp`; extracted proprietary source must stay out of commits and public reports.
410
397
 
411
398
  ---
412
399
 
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Go Debugging
2
4
 
3
5
  Covers goroutines, `dlv` (Delve), `pprof`, the race detector, and the fact that Go's concurrency model means most bugs are about goroutines doing something quiet and wrong.