@bastani/atomic 0.10.18 → 0.10.19-alpha.1

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 (334) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +27 -5
  3. package/dist/_shared/config-binary-install-SNFYFXWB.js +70 -0
  4. package/dist/_shared/config-binary-install-SNFYFXWB.js.map +1 -0
  5. package/dist/_shared/dist-KOELCESV.js +2 -2
  6. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  7. package/dist/_shared/lib-4PES5P4V.js +2 -2
  8. package/dist/_shared/{mode-interactive-sdk-7KXUFI2F.js → mode-interactive-sdk-JXBZ3H27.js} +434 -11
  9. package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -0
  10. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +21 -6
  11. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  12. package/dist/_shared/mode-shared-2QJSCUM6.js +7 -6
  13. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  14. package/dist/_shared/p0-cli-BB45ZQY6.js +56 -3
  15. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  16. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  17. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  18. package/dist/_shared/{sdk-OHKMDJ74.js → sdk-BHX35EPK.js} +40 -9
  19. package/dist/_shared/sdk-BHX35EPK.js.map +1 -0
  20. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  21. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  22. package/dist/_shared/{startup-0-0-OV6RAEAP.js → startup-0-0-4EDVBK5P.js} +464 -7
  23. package/dist/_shared/startup-0-0-4EDVBK5P.js.map +1 -0
  24. package/dist/_shared/{startup-0-1-EZAJI6RE.js → startup-0-1-H5IXVRXQ.js} +85 -7
  25. package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +1 -0
  26. package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
  27. package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
  28. package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
  29. package/dist/_shared/startup-0-5-HZX3ZPTP.js +44 -11
  30. package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
  31. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  32. package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
  33. package/dist/_shared/startup-14-0-MLX36RBG.js +3 -3
  34. package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
  35. package/dist/_shared/{startup-15-1-4S7FLMNG.js → startup-15-1-WQZBOTMZ.js} +70 -28
  36. package/dist/_shared/{startup-15-1-4S7FLMNG.js.map → startup-15-1-WQZBOTMZ.js.map} +1 -1
  37. package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
  38. package/dist/_shared/{startup-8-1-LZFXSD3Z.js → startup-8-1-QZMXUGHI.js} +242 -20
  39. package/dist/_shared/startup-8-1-QZMXUGHI.js.map +1 -0
  40. package/dist/_shared/storage-command-7MGXLJGZ.js +5 -5
  41. package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
  42. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  43. package/dist/_shared/team-DOQKICG2.js +2 -2
  44. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  45. package/dist/binary-self-update.js +281 -0
  46. package/dist/binary-self-update.js.map +1 -0
  47. package/dist/builtin/intercom/index.bundle.mjs +2 -1
  48. package/dist/builtin/intercom/package.json +1 -1
  49. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  50. package/dist/builtin/mcp/package.json +1 -1
  51. package/dist/builtin/subagents/CHANGELOG.md +15 -0
  52. package/dist/builtin/subagents/package.json +1 -1
  53. package/dist/builtin/subagents/skills/agent-browser/SKILL.md +1 -1
  54. package/dist/builtin/subagents/skills/impeccable/SKILL.md +3 -3
  55. package/dist/builtin/subagents/skills/impeccable/reference/audit.md +2 -2
  56. package/dist/builtin/subagents/skills/impeccable/reference/critique.md +3 -3
  57. package/dist/builtin/subagents/skills/impeccable/reference/generate.md +1 -1
  58. package/dist/builtin/subagents/skills/impeccable/reference/init.md +0 -2
  59. package/dist/builtin/subagents/skills/impeccable/reference/live.md +4 -2
  60. package/dist/builtin/subagents/skills/impeccable/reference/new-work-comp.md +1 -1
  61. package/dist/builtin/subagents/skills/impeccable/reference/new-work-world.md +1 -1
  62. package/dist/builtin/subagents/skills/impeccable/scripts/VERSION +1 -1
  63. package/dist/builtin/subagents/skills/impeccable/scripts/engine-checksums.txt +5 -5
  64. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable +28 -5
  65. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable.cmd +11 -2
  66. package/dist/builtin/subagents/skills/impeccable/scripts/live-browser.js +10 -6
  67. package/dist/builtin/subagents/skills/research-codebase/SKILL.md +13 -19
  68. package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
  69. package/dist/builtin/subagents/skills/subagent/SKILL.md +7 -7
  70. package/dist/builtin/subagents/skills/workflow/SKILL.md +98 -0
  71. package/dist/builtin/subagents/src/extension/index.bundle.mjs +2 -1
  72. package/dist/builtin/web-access/index.bundle.mjs +2 -1
  73. package/dist/builtin/web-access/package.json +1 -1
  74. package/dist/cli/args.js +2 -2
  75. package/dist/cli/auth-cli.code.js +3 -3
  76. package/dist/cli/auth-cli.impl.js +3 -3
  77. package/dist/cli/auth-cli.js +3 -3
  78. package/dist/cli/blueprint-command.code.js +2 -2
  79. package/dist/cli/blueprint-command.impl.js +3 -3
  80. package/dist/cli/blueprint-command.js +3 -3
  81. package/dist/cli/intercom-command.code.js +2 -2
  82. package/dist/cli/intercom-command.impl.js +3 -3
  83. package/dist/cli/intercom-command.js +3 -3
  84. package/dist/cli/list-models.code.js +2 -2
  85. package/dist/cli/list-models.impl.js +3 -3
  86. package/dist/cli/list-models.js +3 -3
  87. package/dist/cli/session-picker.code.js +1 -1
  88. package/dist/cli/session-picker.impl.js +3 -3
  89. package/dist/cli/session-picker.js +3 -3
  90. package/dist/cli/startup-ui.code.js +1 -1
  91. package/dist/cli/startup-ui.impl.js +3 -3
  92. package/dist/cli/startup-ui.js +3 -3
  93. package/dist/cli/storage-command.impl.js +3 -3
  94. package/dist/cli/storage-command.js +3 -3
  95. package/dist/cli/storage-search-session.code.js +3 -3
  96. package/dist/cli/storage-search-session.impl.js +3 -3
  97. package/dist/cli/storage-search-session.js +3 -3
  98. package/dist/cli/team-command.code.js +1 -1
  99. package/dist/cli/team-command.impl.js +3 -3
  100. package/dist/cli/team-command.js +3 -3
  101. package/dist/cli/usage-command.js +22 -0
  102. package/dist/cli/usage-command.js.map +1 -0
  103. package/dist/cli.js +2 -2
  104. package/dist/config-binary-install.js +3 -0
  105. package/dist/config-binary-install.js.map +1 -0
  106. package/dist/core/agent-session-services.js +3 -0
  107. package/dist/core/agent-session-services.js.map +1 -0
  108. package/dist/core/debug.impl.js +3 -3
  109. package/dist/core/debug.js +3 -3
  110. package/dist/core/export-html/card-projection.impl.js +3 -3
  111. package/dist/core/export-html/card-projection.js +3 -3
  112. package/dist/core/export-html/index.code.js +2 -2
  113. package/dist/core/export-html/index.impl.js +3 -3
  114. package/dist/core/export-html/index.js +3 -3
  115. package/dist/core/export-html/json-spans.impl.js +3 -3
  116. package/dist/core/export-html/json-spans.js +3 -3
  117. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  118. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  119. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  120. package/dist/core/export-html/tool-renderer.js +3 -3
  121. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  122. package/dist/core/extensions/jiti-loader.js +3 -3
  123. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  124. package/dist/core/extensions/jiti-static-loader.js +3 -3
  125. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  126. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  127. package/dist/core/extensions/loader-host-modules.js +3 -3
  128. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  129. package/dist/core/extensions/runner-context.js +2 -2
  130. package/dist/core/intercom-broker-control-host.code.js +1 -1
  131. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  132. package/dist/core/intercom-broker-control-host.js +3 -3
  133. package/dist/core/intercom-broker-control.code.js +3 -3
  134. package/dist/core/intercom-broker-control.impl.js +3 -3
  135. package/dist/core/intercom-broker-control.js +3 -3
  136. package/dist/core/{legacy-workflow-files.d.ts → legacy-workflows.d.ts} +1 -1
  137. package/dist/core/model-runtime.d.ts +8 -2
  138. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/resource-loader-core.d.ts +1 -1
  142. package/dist/core/resource-loader-internals.d.ts +1 -1
  143. package/dist/core/resource-loader-types.d.ts +1 -1
  144. package/dist/core/resource-loader-types.js.map +1 -1
  145. package/dist/core/sdk.code.js +4 -4
  146. package/dist/core/sdk.impl.js +3 -3
  147. package/dist/core/sdk.js +3 -3
  148. package/dist/core/session-manager-core.js +5 -5
  149. package/dist/core/session-manager-list.impl.js +3 -3
  150. package/dist/core/session-manager-list.js +3 -3
  151. package/dist/core/session-manager.code.js +1 -1
  152. package/dist/core/session-manager.impl.js +3 -3
  153. package/dist/core/session-manager.js +3 -3
  154. package/dist/core/session-storage.code.js +1 -1
  155. package/dist/core/session-storage.impl.js +3 -3
  156. package/dist/core/session-storage.js +3 -3
  157. package/dist/core/settings-manager.js +5 -0
  158. package/dist/core/settings-manager.js.map +1 -0
  159. package/dist/core/storage/index.js +2 -2
  160. package/dist/core/storage/node-sqlite-thread.js +2 -2
  161. package/dist/core/storage/node-sqlite.js +2 -2
  162. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  163. package/dist/core/storage/offline-snapshot-file.js +3 -3
  164. package/dist/core/storage/provider.js +2 -2
  165. package/dist/core/storage/selection.js +2 -2
  166. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  167. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  168. package/dist/core/storage/session/branch-fork-source.js +3 -3
  169. package/dist/core/storage/session/card-view.impl.js +3 -3
  170. package/dist/core/storage/session/card-view.js +3 -3
  171. package/dist/core/storage/session/child-reader.code.js +3 -3
  172. package/dist/core/storage/session/child-reader.impl.js +3 -3
  173. package/dist/core/storage/session/child-reader.js +3 -3
  174. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  175. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  176. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  177. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  178. package/dist/core/storage/session/expanded-child-details.js +3 -3
  179. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  180. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  181. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  182. package/dist/core/storage/session/fork-row-index.js +3 -3
  183. package/dist/core/storage/session/fork-staging.code.js +2 -2
  184. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  185. package/dist/core/storage/session/fork-staging.js +3 -3
  186. package/dist/core/storage/session/fork-window.code.js +3 -3
  187. package/dist/core/storage/session/fork-window.impl.js +3 -3
  188. package/dist/core/storage/session/fork-window.js +3 -3
  189. package/dist/core/storage/session/history-pages.impl.js +3 -3
  190. package/dist/core/storage/session/history-pages.js +3 -3
  191. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  192. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  193. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  194. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  195. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  196. package/dist/core/storage/session/memory-session-store.js +3 -3
  197. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  198. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  199. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  200. package/dist/core/storage/session/released-history-files.code.js +2 -2
  201. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  202. package/dist/core/storage/session/released-history-files.js +3 -3
  203. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  204. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  205. package/dist/core/storage/session/session-resume.impl.js +3 -3
  206. package/dist/core/storage/session/session-resume.js +3 -3
  207. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  208. package/dist/core/storage/session/snapshot-cut.js +3 -3
  209. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  210. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  211. package/dist/core/storage/session/snapshot-history.js +3 -3
  212. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  213. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  214. package/dist/core/storage/session/sql-session-store.js +3 -3
  215. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  216. package/dist/core/storage/session/tree-outline.js +3 -3
  217. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  218. package/dist/core/storage/session/tree-presentation.js +3 -3
  219. package/dist/core/storage/storage-status.impl.js +3 -3
  220. package/dist/core/storage/storage-status.js +3 -3
  221. package/dist/core/storage/team.impl.js +3 -3
  222. package/dist/core/storage/team.js +3 -3
  223. package/dist/core/structured-output/index.code.js +1 -1
  224. package/dist/core/structured-output/index.impl.js +3 -3
  225. package/dist/core/structured-output/index.js +3 -3
  226. package/dist/core/subscription-usage-credential.d.ts +2 -0
  227. package/dist/core/subscription-usage-endpoints.d.ts +54 -0
  228. package/dist/core/subscription-usage.d.ts +55 -0
  229. package/dist/core/subscription-usage.js +3 -0
  230. package/dist/core/subscription-usage.js.map +1 -0
  231. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  232. package/dist/core/tasks/task-completion-entry.js +3 -3
  233. package/dist/core/tasks/task-file-history.code.js +3 -3
  234. package/dist/core/tasks/task-file-history.impl.js +3 -3
  235. package/dist/core/tasks/task-file-history.js +3 -3
  236. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  237. package/dist/core/tasks/task-reference-archive.js +3 -3
  238. package/dist/core/tasks/task-reference-identity.js +3 -3
  239. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  240. package/dist/core/tasks/task-reference-stream.js +3 -3
  241. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  242. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  243. package/dist/core/tasks/task-view-source.code.js +1 -1
  244. package/dist/core/tasks/task-view-source.impl.js +3 -3
  245. package/dist/core/tasks/task-view-source.js +3 -3
  246. package/dist/core/tools/edit-diff.d.ts +4 -6
  247. package/dist/core/tools/read-url.code.js +3 -3
  248. package/dist/core/tools/read-url.impl.js +3 -3
  249. package/dist/core/tools/read-url.js +3 -3
  250. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  251. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  252. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  253. package/dist/core/worktree-snapshot/errors.js +3 -3
  254. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  255. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  256. package/dist/extensions/codemode/execute.code.js +1 -1
  257. package/dist/extensions/codemode/execute.impl.js +3 -3
  258. package/dist/extensions/codemode/execute.js +3 -3
  259. package/dist/extensions/codemode/renderer.code.js +2 -2
  260. package/dist/extensions/codemode/renderer.impl.js +3 -3
  261. package/dist/extensions/codemode/renderer.js +3 -3
  262. package/dist/extensions/mcp/cli.code.js +2 -2
  263. package/dist/extensions/mcp/cli.impl.js +3 -3
  264. package/dist/extensions/mcp/cli.js +3 -3
  265. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  266. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  267. package/dist/extensions/mcp/cli.lazy.js +3 -3
  268. package/dist/extensions/mcp/runtime.code.js +1 -1
  269. package/dist/extensions/mcp/runtime.impl.js +3 -3
  270. package/dist/extensions/mcp/runtime.js +3 -3
  271. package/dist/index.d.ts +3 -0
  272. package/dist/index.js +7 -7
  273. package/dist/main-first-time-setup.code.js +1 -1
  274. package/dist/main-first-time-setup.impl.js +3 -3
  275. package/dist/main-first-time-setup.js +3 -3
  276. package/dist/main.js +2 -2
  277. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  278. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  279. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  280. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  281. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  282. package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
  283. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  284. package/dist/modes/interactive/interactive-mode.js +1 -1
  285. package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -0
  286. package/dist/modes/print-mode.js +1 -1
  287. package/dist/modes/rpc/rpc-client-api.d.ts +3 -0
  288. package/dist/modes/rpc/rpc-types.d.ts +25 -0
  289. package/dist/package-manager-cli.code.js +31 -8
  290. package/dist/package-manager-cli.code.js.map +1 -1
  291. package/dist/package-manager-cli.impl.js +3 -3
  292. package/dist/package-manager-cli.js +3 -3
  293. package/dist/rpc-entry.js +2 -2
  294. package/dist/startup-files.json +1 -1
  295. package/dist/startup-stages/12.js +1 -1
  296. package/dist/startup-stages/4.js +1 -1
  297. package/dist/startup-stages/6.js +1 -1
  298. package/dist/subscription-usage-sdk.d.ts +9 -0
  299. package/dist/utils/changelog.d.ts +1 -0
  300. package/dist/utils/startup-database-spare.code.js +2 -2
  301. package/dist/utils/startup-database-spare.impl.js +3 -3
  302. package/dist/utils/startup-database-spare.js +3 -3
  303. package/dist/utils/tools-manager.code.js +1 -1
  304. package/dist/utils/tools-manager.impl.js +3 -3
  305. package/dist/utils/tools-manager.js +3 -3
  306. package/docs/changelog.mdx +41 -6
  307. package/docs/containerization.md +17 -15
  308. package/docs/docs.json +1 -0
  309. package/docs/getting-started/installation.md +132 -80
  310. package/docs/guides/subscription-usage.md +133 -0
  311. package/docs/guides/team-setup.md +14 -3
  312. package/docs/guides.md +3 -0
  313. package/docs/index.md +18 -6
  314. package/docs/intercom/operations.md +1 -1
  315. package/docs/orchestration/migrating-workflows.md +16 -10
  316. package/docs/orchestration/patterns.md +8 -2
  317. package/docs/orchestration.md +17 -8
  318. package/docs/quickstart.md +7 -15
  319. package/docs/reference/cli.md +29 -22
  320. package/docs/rpc/protocol.md +9 -1
  321. package/docs/rpc.md +1 -1
  322. package/docs/sdk/reference.md +5 -1
  323. package/docs/skills.md +20 -4
  324. package/docs/slash-commands.md +3 -2
  325. package/docs/tools.md +57 -12
  326. package/docs/usage.md +1 -0
  327. package/docs/windows.md +4 -4
  328. package/package.json +9 -9
  329. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +0 -1
  330. package/dist/_shared/sdk-OHKMDJ74.js.map +0 -1
  331. package/dist/_shared/startup-0-0-OV6RAEAP.js.map +0 -1
  332. package/dist/_shared/startup-0-1-EZAJI6RE.js.map +0 -1
  333. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +0 -1
  334. package/dist/builtin/subagents/skills/workflow-files/SKILL.md +0 -28
@@ -16,7 +16,7 @@ The comp-led path is a frontier-tier job: it asks the builder to hold a measured
16
16
  1. **spec.** Measure the comp: `impeccable comp-spec --comp <comp> --grid` writes a coordinate grid over the comp; open it, name every salient region by grid span in a regions file (text and control regions narrow to an ink cluster only when it retains at least 95% of the span’s contrasting pixels; inspect the resulting crop, especially for compound controls and multiline text; `snap: false` keeps the span, and an explicit `box` is taken as drawn) (kind `plate` / `image` / `texture` for anything painted: every illustration, photograph, figure, product object, and material texture; `text` / `control` / `chrome` for what code draws; every region carries a `note` saying what the comp shows there, which the plate prompt and the gate messages read), and run `impeccable comp-spec --comp <comp> --regions <file>`. The spec carries each region's box, sampled palette, and medium; `impeccable comp-spec --print` is the build's reference from here on. Type is measured, not guessed: `impeccable font-match --measure <text region>` reads the comp's cap height, width class, and weight off the pixels, and `impeccable font-match --rank <region> --text "..."` takes its candidates from a fingerprint index of the Google Fonts catalog (the nearest faces to the crop's shape) plus any names you pass with `--candidates`, renders them at that cap height with the region's words, and ranks them by fingerprint distance (its `USE` line is the CSS); with no browser resolvable it records the catalog's nearest face and says the size is estimated, which is still the choice to build on. Do not install a browser to rank, and never write a `chosen` face into the spec by hand: the gate accepts only what font-match wrote. The spec gate refuses to close until the lead text region is measured and ranked. A region note that describes painted material (a diagram, drawing, photograph, texture) under a code kind is refused at the spec: reclassify it as a plate, or reword the note if code really draws it. The script refuses a regions file that leaves comp ink unnamed: what is never named can never be missing. It also refuses a `text` / `control` / `chrome` region larger than a quarter of the comp: that is a column, not an element. Name each element inside it (`container: true` only when it truly is one undivided element). Anything drawn is a plate: an inline SVG past an icon's budget (a diagram, notation, leader lines with arrows, a "quick approximation" of the artwork) is refused at the hero; icon-sized SVG (under 64px, a few paths) is fine, and a chart the page draws from data at runtime is a chart, not an illustration. Callout lines and arrows that annotate a drawing belong to that drawing's plate, with only their labels set as text. Split regions by what varies independently, as [region-map.md](region-map.md) sets out; a framed view is a frame plate over its own image region. A crop of the comp is never a plate (the plates gate refuses a resample of the comp region); the crop is the reference the plate is generated from. A plate region's box has to hold its whole artwork with a margin: the spec measures the artwork's contact with the box edges and refuses a box that cuts through it (`bleed: true` only when the page really crops it there), because a plate placed with `object-fit: cover` on such a box shows the artwork minus the side the box lost. Anything not in the spec does not exist on the page: no borders, rules, containers, or chrome the comp does not show. Only three concessions exist: fonts (the closest obtainable face), icon glyphs (close enough, exact if the user chose an icon library; this covers the pictogram only, never a control's chrome, so a chevron, an arrow, a dropdown's border and fill, a button's shape are the comp's), and genuine defects in the comp such as spelling errors.
17
17
  Inspect the proposed map before producing assets: `impeccable comp-spec --comp <comp> --regions <file> --inspect-map` writes a numbered overlay, exact crops, foreground-mask previews, and a consolidated report without changing the spec or build state. Inspect boundaries and excluded pixels together; an empty reference needs corrected geometry. `parentId` names an enclosing `container`; it never removes regions or approves assets. The report diagnoses geometry, not semantic completeness.
18
18
 
19
- 2. **plates.** Every raster region ships as a plate: an illustration, photo, or figure regenerated at asset resolution from its comp crop, UI text removed, at its `plate` path (isolated ink, figures, or objects use native transparent PNG so they sit on the page's own ground; photos and textures stay opaque); a texture (paper, cloth, grain) is a clean patch of the comp region mirror-tiled to size, generated only when no clean patch exists. `impeccable comp-spec --crop <id>` writes the reference; save `impeccable comp-spec --plate-prompt <id> --background transparent` to a prompt file for a cutout, or use `--background opaque` otherwise. Prefer the harness-native image tool with that crop and prompt, then `impeccable embed-prompt <plate> --prompt-file <prompt.txt>`. The API fallback is `impeccable generate-image --ref <crop.png> --prompt-file <prompt.txt> --out <plate.png> --size <WxH> --quality high --background transparent` (use `--background opaque` for full-frame assets); create the output directory first. Verify actual alpha, white foregrounds, fine edges, and clear holes on light and dark grounds; do not chroma-key native output. The plates gate scores the assets against the comp; also inspect placement and scale visually. With parallel subagents, spawn the shipped asset producer (`impeccable-asset-producer`; `impeccable_asset_producer` in codex; on GitHub Copilot say "Use the impeccable-asset-producer agent") with the spec path and let it produce them all; without subagents, produce them here. A crop of the comp is a reference, never a shipping pixel. The approved comp is a fixed reference: never edit it, composite into it, or regenerate it, and never copy a crop of it in as a plate (the crop is only the reference you generate from). The gate checks every plate exists, is at least 1.5x the region's size, and reads as the region. Page code waits for this gate: a page written before its plates exist is a page that draws its material in CSS. A single-file deliverable changes nothing here: the plate is produced the same way and inlined as a data URI. `--force` exists for one case only, the user downgrading the comp's authority in words you quote in `--reason`; the script refuses every other reason. Score the plates before the review opens: once `build-phase advance` reports nothing but the pending review, run the plan and asset review in [component-review.md](component-review.md), where the user checks the plates and which regions code draws. A plate replaced after they accept needs a new round. No page code is written before they accept it; `build-phase advance` refuses until they do.
19
+ 2. **plates.** Every raster region ships as a plate: an illustration, photo, or figure regenerated at asset resolution from its comp crop, UI text removed, at its `plate` path (isolated ink, figures, or objects use native transparent PNG so they sit on the page's own ground; photos and textures stay opaque); a texture (paper, cloth, grain) is a clean patch of the comp region mirror-tiled to size, generated only when no clean patch exists. `impeccable comp-spec --crop <id>` writes the reference; save `impeccable comp-spec --plate-prompt <id> --background transparent` to a prompt file for a cutout, or use `--background opaque` otherwise. Prefer the harness-native image tool with that crop and prompt, then `impeccable embed-prompt <plate> --prompt-file <prompt.txt>`. The API fallback is `impeccable generate-image --ref <crop.png> --prompt-file <prompt.txt> --out <plate.png> --size <WxH> --quality high --background transparent` (use `--background opaque` for full-frame assets); create the output directory first. Verify actual alpha, white foregrounds, fine edges, and clear holes on light and dark grounds; do not chroma-key native output. The plates gate scores the assets against the comp; also inspect placement and scale visually. With parallel subagents, spawn the shipped asset producer (`impeccable-asset-producer`; `impeccable_asset_producer` in codex; on GitHub Copilot say "Use the impeccable-asset-producer agent") with the spec path and let it produce them all; without subagents, produce them here. A crop of the comp is a reference, never a shipping pixel. The approved comp is a fixed reference: never edit it, composite into it, or regenerate it, and never copy a crop of it in as a plate (the crop is only the reference you generate from). The gate checks every plate exists, is at least 1.5x the region's size, and reads as the region. Page code waits for this gate: a page written before its plates exist is a page that draws its material in CSS. A single-file deliverable changes nothing here: the plate is produced the same way and inlined as a data URI. `--force` exists for one case only, the user downgrading the comp's authority in words you quote as `--reason 'the user said: "..."'`; the script refuses every other reason. Score the plates before the review opens: once `build-phase advance` reports nothing but the pending review, run the plan and asset review in [component-review.md](component-review.md), where the user checks the plates and which regions code draws. A plate replaced after they accept needs a new round. No page code is written before they accept it; `build-phase advance` refuses until they do.
20
20
 
21
21
  3. **hero.** `impeccable build-phase scaffold` first: it writes the measured layout as CSS custom properties (`.impeccable/build/scaffold/layout.css`: `--r-<id>-x/y/w/h` in % of the comp, plus cap height, font-size, family, and weight where measured) and a reference page (`hero-reference.html`) with every region at its box and every plate placed. Bind the numbers to your own semantic structure, an element per region; the reference is a check on positions, never the page, and overlapping boxes are overlapping boxes. Then build only the first viewport, at the comp's own dimensions, the comp's words copied verbatim (the user approved that comp with those words; rewording is a stated decision after the hero passes, never a silent one inside it), every text region sized from its measured cap height and set in its ranked face (served from the project: put the face's font files beside the page and load them with `@font-face`, never a hosted font stylesheet such as fonts.googleapis.com or a font data URI, because the first-viewport capture allows fonts only from the page's own files and refuses any other host as an external dependency), plates first: place every plate at its spec box (`object-fit: cover`, an `<img>`, a background image, or an inlined data URI named for it) before any text or control, capture into `.impeccable/review/hero-repro.png`, run `impeccable build-phase record hero` once so you see the plate regions read as match before any text exists, then lay the semantic layer over the plates from the spec's palette and boxes and advance. The gate first refuses while any plate is unreferenced by the source, then runs `impeccable comp-diff`, writes `.impeccable/review/diff/hero/` (side-by-side, heatmap, one paired crop per region, `report.json`; `raw-report.json` preserves the uninterpreted measurements). The report and crop labels use the gate's verdicts; `gate.reasons` lists the remaining blockers even when a region is called drift. An accepted plate is revalidated if its file, measured region, or comp changes. The gate passes at 72% overall with no hard veto outstanding (a missing region, a contradicted plate or text block, an SVG illustration, a clipped plate, invented ink block at any score); above the bar, the numeric readings become advisories printed with the pass, and the polish pass before responsive is where they get fixed: the gate also reads each text region's cap height, line count, weight, ink colour, and position against the comp, each chrome strip's height off its rule, and the frame for ink where the comp is calm (a kicker, an extra nav item, a divider), and says each miss as a number ("cap height 78px in the build, 103px in the comp"); those numbers are the edit. When it fails, open the region crops it lists, in order, before editing: a region scored `missing` needs its material, `contradicted` needs its structure re-derived from the spec box, `drift` is where size and spacing edits belong; repeated attempts do not clear unresolved blockers. After three failed attempts, present the first-viewport review from [component-review.md](component-review.md) instead of iterating. Once the user accepts a first viewport, the overall bar, the palette check and every numeric reading are advisories while the capture still matches it; a missing or unreferenced plate, an SVG illustration, an organic clip, a clipped plate, invented ink and failed rendered presence still block. When the capture drifts from what they accepted, restore it: that review is closed and is never requested again. This is where the run's ambition is won or lost, and a retry here costs minutes where a rebuild verdict at the finish costs the run.
22
22
  4. **sections.** Build the rest of the surface inside the spec's system: the same corner language, line weights, and palette, and nothing the comp never shows. Where the comp does not cover a region, it inherits the recorded system.
@@ -10,7 +10,7 @@ The branch of [new-work.md](new-work.md) step 3 for a new or replacement world.
10
10
  4. Run `.pi/skills/impeccable/scripts/impeccable concept-seed --scope direction --mode <mode>` and follow what it prints. No substitute, no skip: on a new or replacement world, writing artifact code before this script has run and its assignment is acknowledged is a contract violation, whatever the harness, the model, or the time pressure; the roll is what keeps every run from converging on the category default. When DESIGN.md's frontmatter names a catalog `world:` and the user asked to replace that world, add `--replace-world` (keep it on every re-roll of the round): without it the roll stays settled on the old world and deals no others. A `--replace-world` run is a replacement world, never a seeded world's first build, so tell the documenter at finish that this world replaced the seeded one. The one exception is a direction the user or brief pins whole, naming its world and its first-surface experience both in words you can quote: steps 1 to 3 have nothing to derive and the assignment has nothing left to bind, so no roll and no decision page; confirm a pin only a brief file carries with the user, so the finish review can corroborate it, and record the pin under section 5. Anything less rolls: a pin that leaves a dimension open, a direction you completed from a partial brief, or a brief's picture or metaphor alone, which is step 1's rut material. The script assigns the direction to build and deals catalog challengers. Fuse each challenger before judging it: the challenger supplies the form and its system grammar, the product supplies every fact, clarity wins conflicts. Weigh fused challengers against the assigned direction on exactly two axes, audience identification and product clarity. Losing to strong grounded material is a valid outcome; beating a thin or tool-monoculture list is the point. Close with a verdict per challenger, decided before any borrowing: wins (beats the assigned direction on both axes; becomes the build candidate), competitive (holds one axis; stays a full alternate), or declined (loses both). A declined challenger is not spent: name the one discipline of its system the assigned direction lacks, and raise the assigned direction to match before presenting it. A donation transfers ambition and system discipline (a palette's total commitment, a grid's density courage, a form's structural honesty), never the challenger's clothes. A component treatment, such as a button's shadow or a display face, is clothes, not discipline; a lifted motif is a costume note, not a raise, and one world owns the page. Write each raise into the presented direction as its own line, named for its donor; a raise nobody can read did not happen.
11
11
  5. Present one direction, fully committed and already raised by the hand it beat, raises visible as named lines: world, first viewport, visitor path, signature interaction, cross-surface reach, honest risk. Route each challenger by verdict: winning and competitive challengers are full alternates with their QUALITY BAR cards and one-line case; declined challengers render demoted, compact and quiet, each carrying its verdict and what the direction kept from it, never full-size, never silently dropped, still adoptable on request. The verdict informs the user's choice, never pre-empts it; the demoted row is the hand's proof of judgment. A hand holds at most three full-card challengers: when the roll deals more, the three strongest join and the rest wait in the re-roll pool, noted in one line; dropping a challenger from the hand itself takes a named product-truth failure, disclosed. The hand's size follows the verdicts, never a number the user named: when the weighing yields fewer full cards than asked, deliver the honest hand, say in one line why it is smaller, and offer a re-roll to deal candidates that could earn full cards. A declined challenger is never promoted to fill a slot; a promoted card looks exactly like a competitive one, so the promotion leaves no trace. The standing exit does not count toward a requested number once the user has seen and rejected it; it stays present as the quiet door. Add one card for your own top-ranked grounded candidate when it is not the assigned direction, kicker IMPECCABLE’S PICK, same anatomy as every card, with an honest risk line naming its familiarity when true: the strongest grounded direction is often where most runs in this category land, and the user deciding that trade is the point of showing it. Familiar and effective is a legitimate destination, not a failure of nerve; the pick card and the standing exit serve it at two depths. One pick card, never two, never a ranked list: a lineup of your candidates hands selection back to a taste function and invites the safest card. The pick never takes the lead position; when the dice assign your top candidate there is no pick card, and the assigned card notes it topped your list. Add re-roll with an optional one-line steer, in three registers: plain (a fresh hand, same spread), safer (your remaining conventional grounded candidates plus the canon against named competitors), bolder (foreign forms only, at full commitment). The register is the user's steering on the familiar-to-bold axis, never yours to pre-select; when the answer carries one, re-run the seed with `--register <value>` and the next `--reroll` round, and follow what it prints. A user saying "bolder" or "safer" while a direction round is open means these registers, never the bolder or harden commands. The two channels share this structure and differ only in richness: cards and boards on the decision page, names and one-liners through the structured tool, whose option list carries the assigned direction, the pick, the winning and competitive challengers, and the standing exit last; declined challengers fold into the assigned option's description as their kept lines, so the raise survives the text channel.
12
12
 
13
- The standing exit: every direction round offers one quiet, permanent alternative, the category standard, played straight. It is the user's door, never yours: never recommend it, never weigh it against the roll, never let it soften the dealt directions; the counterweights bind the unchosen default, not the chosen one. When the user takes it (the canon action, a safer-steer, or plain words asking for the familiar or competitor-like path), convention becomes the commitment: ask once for two or three products this should sit alongside, make their craft level the bar, and execute the canon at full fidelity, without irony or smuggled quirk. Record a standing preference as a brand commitment in PRODUCT.md. Re-roll eliminates every direction already shown, grounded and challenger alike; after two consecutive re-rolls, ask what quality is missing. Re-roll on your own only on named factual grounds, when the assigned direction cannot carry the product's truth or task; taste is never grounds. The user may re-roll freely, and a user- or brief-pinned direction beats the roll, always. A pin names the look itself, in the user's words or as a brand commitment the user made binding; a product the brief cites as a reference sets the craft bar, not the world, and an answer to an open steer that restates the brief pins nothing. Resolve collisions field by field: preserve every user- or brief-pinned constraint. In dimensions the brief leaves open, the assignment still binds through its topology, controls, state vocabulary, and ritual; when only its materials conflict with a pinned visual direction or PRODUCT.md brand commitment, translate that material expression and name the translation in the presented direction. A look mismatch is not grounds to re-roll. Present the decision visually: write an options payload with the assigned direction leading, its raised lines included; the pick card when one exists; the dealt challengers as alternates with their QUALITY BAR cards, verdicts, and kept lines; re-roll with its safer and bolder registers; steer; canon enabled; and `buildPath` carrying the recorded default with `toggle: true` whenever image generation exists (details in new-work.md, **The build path of a decision round**). A degraded roll with no challengers still uses the page, as a single text-only card with re-roll. Every option declares its identity: `kind` is `assigned`, `pick`, `challenger`, `grounded` (another of your own grounded directions, such as each card of a safer hand's lineup, any number of them), or `dealt` (a surface round's dealt structures other than the lead), and each challenger carries `catalogId`, the SOURCE ID concept-seed printed for its world, never the card's own id; `--start` and `--update` refuse a direction or surface payload without them, and the page reports the choice from them. Give every card the same anatomy: thesis, palette, materials, first viewport, honest risk, and the challengers' case lines (`--schema` prints the exact shape); the page renders identity from these fields, demotes declined challengers to their row on its own, and a challenger's catalog image rides as labeled inspiration, never the promise of the build. Author `canonCard` too: the category standard as one honest card, same anatomy; the page keeps it subordinate, and the counterweights still bind you. Run `.pi/skills/impeccable/scripts/impeccable serve-question --start --payload <file>` (`--schema` first for the payload shape). It daemonizes, prints the page URL and a key, and exits; open that URL for the user, in-app browser first, then the system opener, then showing the URL. Collect the choice with `--wait --key <key>`, repeating while it exits 3; the ANSWER prints as JSON. An ANSWER of `{"optionId":"reroll"}` keeps the server alive and the page open on a loading hand: rerun concept-seed with the same `--scope` and `--mode` plus `--from <seed-key> --reroll <n>` (1 on the first re-roll, counting up), build the next payload, deliver it with `--update --key <same key> --payload <file>`, then return to `--wait` on that key. Never `--start` a second server or fall back to chat here: either strands the open tab on a hand that never arrives. Exit 4 means the page closed unanswered: re-present once through the structured question tool, and with no answer there either, proceed unattended with the assigned direction and state the assumptions. A harness that can leave a shell blocked in the background may run the script without `--start` and let it auto-open and block. A harness that cannot hold a blocking `--wait` (it detaches long-running commands without ever returning their output, or reaps a backgrounded child) takes the structured tool without starting the page and discloses the substitution in the first reply, so the tab is never left unanswered. A shell that hands back a still-running command as a session you can poll holds the wait: poll that session until it exits, and rerun `--wait` only after it exits without an answer. Never predict any other fallback: run the script, and only exit code 2 from starting it, or that wait check before starting, routes the decision to the structured tool; those are the fallback, never an error to retry. concept-seed closes every roll with this procedure, condensed, as a PRESENTATION block that names the recorded build path.
13
+ The standing exit: every direction round offers one quiet, permanent alternative, the category standard, played straight. It is the user's door, never yours: never recommend it, never weigh it against the roll, never let it soften the dealt directions; the counterweights bind the unchosen default, not the chosen one. When the user takes it (the canon action, a safer-steer, or plain words asking for the familiar or competitor-like path), convention becomes the commitment: ask once for two or three products this should sit alongside, make their craft level the bar, and execute the canon at full fidelity, without irony or smuggled quirk. Record a standing preference as a brand commitment in PRODUCT.md. Re-roll eliminates every direction already shown, grounded and challenger alike; after two consecutive re-rolls, ask what quality is missing. Re-roll on your own only on named factual grounds, when the assigned direction cannot carry the product's truth or task; taste is never grounds. The user may re-roll freely, and a user- or brief-pinned direction beats the roll, always. A pin names the look itself, in the user's words or as a brand commitment the user made binding; a product the brief cites as a reference sets the craft bar, not the world, and an answer to an open steer that restates the brief pins nothing. Resolve collisions field by field: preserve every user- or brief-pinned constraint. In dimensions the brief leaves open, the assignment still binds through its topology, controls, state vocabulary, and ritual; when only its materials conflict with a pinned visual direction or PRODUCT.md brand commitment, translate that material expression and name the translation in the presented direction. A look mismatch is not grounds to re-roll. Present the decision visually: write an options payload with the assigned direction leading, its raised lines included; the pick card when one exists; the dealt challengers as alternates with their QUALITY BAR cards, verdicts, and kept lines; re-roll with its safer and bolder registers; steer; canon enabled; and `buildPath` carrying the recorded default with `toggle: true` whenever image generation exists (details in new-work.md, **The build path of a decision round**). A degraded roll with no challengers still uses the page, as a single text-only card with re-roll. Every option declares its identity: `kind` is `assigned`, `pick`, `challenger`, `grounded` (another of your own grounded directions, such as each card of a safer hand's lineup, any number of them), or `dealt` (a surface round's dealt structures other than the lead), and each challenger carries `catalogId`, the SOURCE ID concept-seed printed for its world, never the card's own id; `--start` and `--update` refuse a direction or surface payload without them, and the page reports the choice from them. Give every card the same anatomy: thesis, palette, materials, first viewport, honest risk, and the challengers' case lines (`--schema` prints the exact shape); the page renders identity from these fields, demotes declined challengers to their row on its own, and a challenger's catalog image rides as labeled inspiration, never the promise of the build. Author `canonCard` too: the category standard as one honest card, same anatomy; the page keeps it subordinate, and the counterweights still bind you. Run `.pi/skills/impeccable/scripts/impeccable serve-question --start --payload <file>` (`--schema` first for the payload shape). It daemonizes, prints the page URL and a key, and exits; open that URL for the user, in-app browser first, then the system opener, then showing the URL. Collect the choice with `--wait --key <key>`, repeating while it exits 3; the ANSWER prints as JSON. Exit 5 means the hand went unanswered past its budget with the page still open: follow its PENDING line, which leaves the round pending and ends the turn. An ANSWER of `{"optionId":"reroll"}` keeps the server alive and the page open on a loading hand: rerun concept-seed with the same `--scope` and `--mode` plus `--from <seed-key> --reroll <n>` (1 on the first re-roll, counting up), build the next payload, deliver it with `--update --key <same key> --payload <file>`, then return to `--wait` on that key. Never `--start` a second server or fall back to chat here: either strands the open tab on a hand that never arrives. Exit 4 means the page closed unanswered: re-present once through the structured question tool, and with no answer there either, proceed unattended with the assigned direction and state the assumptions. A harness that can leave a shell blocked in the background may run the script without `--start` and let it auto-open and block. A harness that cannot hold a blocking `--wait` (it detaches long-running commands without ever returning their output, or reaps a backgrounded child) takes the structured tool without starting the page and discloses the substitution in the first reply, so the tab is never left unanswered. A shell that hands back a still-running command as a session you can poll holds the wait: poll that session until it exits, and rerun `--wait` only after it exits without an answer. Never predict any other fallback: run the script, and only exit code 2 from starting it, or that wait check before starting, routes the decision to the structured tool; those are the fallback, never an error to retry. concept-seed closes every roll with this procedure, condensed, as a PRESENTATION block that names the recorded build path.
14
14
 
15
15
  When image generation exists, every card also declares a `comp` path under `.impeccable/mocks/decision/`, the canon card included. Where the harness sandboxes its shell, start the page through the least-sandboxed command path it offers: a sandboxed shell cannot bind the board's port, and the first-attempt failure costs a retry every session. Serve the page first, then produce the comps; the page shimmer-waits per slot and the user may answer before they land. Load [visualize.md](visualize.md) before writing the first decision comp prompt, not at the comp round: each card's image is that direction's north-star comp at full fidelity under its comp discipline and the MODE RULES block concept-seed printed, and a prompt written before reading them misses every rule there: the requested surface as the real page, its first viewport and the start of the section below it, held like every comp to visualize.md's rule that a template skeleton stays the template whatever world paints it (your own pick included: a safe layout under a world skin is the template), a short prompt in visualize.md's shape, real product name and real content, no invented commercial claims, in that card's own palette, type character, and material world, committed all the way. Once a round declares comps it has not generated yet, `impeccable serve-question --start` (and `--update`, and a flip to comp) prints a `NEXT read <path>/visualize.md` line; read that file then, before the first prompt. `--wait` prints `COMP SIDECAR MISSING` for any landed decision comp with no prompt sidecar (the image's full file name plus `.json`: `a.png` gets `a.png.json`); write the missing sidecar before you continue. `COMP STALE` names a file an earlier round left at one of this hand's slots; regenerate it there. Generation takes the same time at any fidelity, so an unfinished draft pays comp cost for draft quality; fairness between cards is equal fidelity in each card's own grammar, one surface, one aspect, never shared unfinishedness. The frame's aspect is the surface's own: portrait at device viewport for a native app or mobile-first surface, landscape for desktop web; the decision page adapts to either, and a phone screen comped landscape is a broken frame, not a neutral default. Produce in reading order, the assigned card, then the pick, then the full-card hand, then canon, each file written with its prompt sidecar the moment it is done, so a re-roll's spend front-loads onto the cards read first; declined challengers get no comp, their catalog thumb is their face. With parallel subagents, fan out one agent per card: each spawn is the shipped asset producer with a single-comp packet, that card's fields, its world's card images when the NEXT line names them, PRODUCT.md, the shared frame, the path to visualize.md for its comp discipline, the COMPS section of the MODE RULES block copied verbatim (the subagent never sees the roll's output), and the card's declared path, up to four in flight. Regenerate inline any slot still empty when its agent returns; drop without ceremony any slot still empty when the user answers. No other supervision is owed. Without parallel subagents, generate in the main thread after serving, same order, and let the harness's own generation display carry the progress; the wait for the answer follows the last file. The chosen card's comp is not spent by the choice: comp-led, it enters the comp round as compositional option one; code-led, it returns at the finish review as the critique reference, what the image dared that the build did not. Unchosen comps stay in `.impeccable/mocks/decision/` as the round's spent hand; they carry no approval and imply none. With no image generation, cards carry their identity in palette chips and facts, and that page is complete, not a lesser version; the page then also demotes every challenger's catalog art to a labeled thumbnail on its own, because salience must encode the verdict, never the accident of which cards have images.
16
16
  Catalog worlds are working systems, not mood references. When one survives, carry its palette and material, type and composition, topology, controls and state, and responsive rules into the product, as far as the surface's mode allows. How far a source that is itself an interface language may carry its grammar is the mode's call, in the MODE RULES block. Open the QUALITY BAR board and hero for the world you build the moment the choice lands, even if you viewed another card earlier; the ANSWER line names the chosen card's images (when the harness only reads files or runs sandboxed, download them into the workspace and open the relative path; sandboxed viewers reject absolute paths outside it). They set the craft level the build must reach, a rendered reference's finish, commitment, and art direction, never the composition; your surface serves this product.
@@ -1 +1 @@
1
- 0.1.27
1
+ 0.1.31
@@ -2,8 +2,8 @@
2
2
  # The launchers, the npm shim, `impeccable install` and scripts/fetch-engine.mjs verify
3
3
  # every engine download against this file. Written by
4
4
  # `node scripts/check-engine-release.mjs --record` after each engine release.
5
- 0.1.27 impeccable-darwin-arm64 e33578341212fe6ebeed273850b3af0a7f54bbdc5e9fdf03e760aae23482975b
6
- 0.1.27 impeccable-darwin-x64 3ecf11185ad7ea05cfc693ef969eb75ee7aef63f45472bf884e9b9f896a8d052
7
- 0.1.27 impeccable-linux-x64 41d66e945bcdfc560005b61ad0b6b2312b124890039262f2e63322ef2709ccfd
8
- 0.1.27 impeccable-linux-arm64 6ceb6188c80adb4b4fcc0721e677e2124d795b8e243599ad0d7bea33369b2c9c
9
- 0.1.27 impeccable-windows-x64.exe ba9627d4552bca5666020624d8e994aea8b8b44c46b995e18b5babad0f431fc8
5
+ 0.1.31 impeccable-darwin-arm64 0d96cf802af6c52f3ed0925a409c7f4a1eda6a4c4b8274ff545b1d23e8dd6ae6
6
+ 0.1.31 impeccable-darwin-x64 af28d77242fc345f11ade5075c304beef2e938a3df70905a95f9864708ee0a2a
7
+ 0.1.31 impeccable-linux-x64 01c642862b0e505277bb8810b1a74aacc42b2b38eb24bc69bc0bcf324089be77
8
+ 0.1.31 impeccable-linux-arm64 fd488471ae6df728e260bb54c26d0f7fa9235765777f8ee2ff28e9d3dba0dc6b
9
+ 0.1.31 impeccable-windows-x64.exe f6606bbf6bd8993e2b0dab98261c27659a865e7dcbc775986d40e8808527ff47
@@ -81,9 +81,10 @@ hash_file() {
81
81
  }
82
82
 
83
83
  # This script's directory without dirname or a subshell: what dirname "$0"
84
- # gives, made absolute by a cd there and back.
84
+ # gives, made absolute by a cd there and back. A backslash separates too:
85
+ # Windows hook commands spell the launcher C:\...\scripts\impeccable (#1462).
85
86
  case $0 in
86
- */*) dir=${0%/*} ;;
87
+ */*|*\\*) dir=${0%[/\\]*} ;;
87
88
  *) dir=. ;;
88
89
  esac
89
90
  [ -n "$dir" ] || dir=/
@@ -196,11 +197,15 @@ setup_help() {
196
197
  fetch_url() {
197
198
  http_status=""
198
199
  download_host=""
200
+ fetch_error=""
199
201
  if command -v curl >/dev/null 2>&1; then
200
202
  fetch_result=0
201
- metadata=$(curl -fsSL --retry 2 -w '%{http_code} %{url_effective}' -o "$tmp" "$1" 2>/dev/null) || fetch_result=$?
203
+ metadata=$(curl -fsSL --retry 2 -w '%{http_code} %{url_effective} %{errormsg}' -o "$tmp" "$1" 2>/dev/null) || fetch_result=$?
202
204
  http_status=${metadata%% *}
203
205
  effective_url=${metadata#* }
206
+ curl_msg=${effective_url#* }
207
+ effective_url=${effective_url%% *}
208
+ fetch_error="curl exit $fetch_result${curl_msg:+: $curl_msg}"
204
209
  # Only the authority is needed, never the signed storage URL's query.
205
210
  download_host=${effective_url#*://}
206
211
  download_host=${download_host%%/*}
@@ -212,11 +217,28 @@ fetch_url() {
212
217
  download_host=$(printf '%s' "$download_host" | tr '[:upper:]' '[:lower:]')
213
218
  return "$fetch_result"
214
219
  elif command -v wget >/dev/null 2>&1; then
215
- wget -q -O "$tmp" "$1" 2>/dev/null
220
+ fetch_result=0
221
+ wget_out=$(wget -O "$tmp" "$1" 2>&1) || fetch_result=$?
222
+ newline='
223
+ '
224
+ fetch_error="wget exit $fetch_result: ${wget_out##*$newline}"
225
+ return "$fetch_result"
216
226
  else
217
227
  return 1
218
228
  fi
219
229
  }
230
+ # SIGKILL or a crash skips the traps below and strands the staging file, so
231
+ # each download first removes parts in any version's cache that are an hour
232
+ # idle and whose owner PID is gone (the age covers a curl outliving its
233
+ # launcher). A cache it cannot write is reported later, never here.
234
+ sweep_stale_parts() {
235
+ find "$cache_root/bin" -mindepth 2 -maxdepth 2 -type f -name '.impeccable.part.*' -mmin +60 2>/dev/null |
236
+ while IFS= read -r part; do
237
+ owner=${part##*.part.}
238
+ case "$owner" in ''|*[!0-9]*) continue ;; esac
239
+ kill -0 "$owner" 2>/dev/null || rm -f "$part" 2>/dev/null || :
240
+ done
241
+ }
220
242
  check_download() {
221
243
  download_file=${1:-$tmp}
222
244
  if [ ! -f "$download_file" ]; then
@@ -242,6 +264,7 @@ if [ -n "$version" ] && [ "$os" != unknown ] && [ "$arch" != unknown ]; then
242
264
  echo "impeccable: no checksum for engine $version ($asset) in $manifest; refusing the unverified download" >&2
243
265
  exit 127
244
266
  fi
267
+ sweep_stale_parts
245
268
  tmp="$cache_root/bin/$version/.impeccable.part.$$"
246
269
  # An interrupted download (Ctrl-C, a hook timeout) would otherwise leave the
247
270
  # PID-named staging file behind for good. The handlers must exit explicitly.
@@ -315,7 +338,7 @@ if [ -n "$version" ] && [ "$os" != unknown ] && [ "$arch" != unknown ]; then
315
338
  esac
316
339
  exit 127 ;;
317
340
  esac
318
- echo "impeccable: could not download engine $version from $url; check network access, the release URL, and curl or wget availability." >&2
341
+ echo "impeccable: could not download engine $version from $url${fetch_error:+ ($fetch_error)}; check network access, the release URL, and curl or wget availability." >&2
319
342
  setup_help
320
343
  exit 127
321
344
  fi
@@ -134,6 +134,9 @@ if exist "%IMPECCABLE_HOME%\bin\%version%\" goto cache_ready
134
134
  mkdir "%IMPECCABLE_HOME%\bin\%version%" >nul 2>nul
135
135
  if errorlevel 1 goto cache_directory_failed
136
136
  :cache_ready
137
+ rem Remove staging directories killed runs left in any version's cache, once
138
+ rem two days idle (forfiles /d counts days; a live curl's open file stays).
139
+ forfiles /p "%IMPECCABLE_HOME%\bin" /s /m .impeccable.part.* /d -2 /c "cmd /c if @isdir==TRUE rd /s /q @path" >nul 2>nul
137
140
  rem Stage the download in a directory only this run owns, as the sh launcher
138
141
  rem does with .impeccable.part.$$: concurrent first runs (parallel hooks, two
139
142
  rem agents) must never write, hash or move each other's files. mkdir fails
@@ -195,10 +198,12 @@ exit /b 127
195
198
  set "http_status="
196
199
  set "effective_url="
197
200
  set "download_host="
198
- curl.exe -fsSL --retry 2 -w "%%{http_code} %%{url_effective}" -o "%part%" "%url%" >"%staging%\http.txt" 2>nul
201
+ set "curl_error="
202
+ curl.exe -fsSL --retry 2 -w "%%{http_code} %%{url_effective} %%{errormsg}" -o "%part%" "%url%" >"%staging%\http.txt" 2>nul
199
203
  set "fetch_result=%errorlevel%"
200
204
  for /f "usebackq tokens=1" %%a in ("%staging%\http.txt") do set "http_status=%%a"
201
205
  for /f "usebackq tokens=2" %%a in ("%staging%\http.txt") do set "effective_url=%%a"
206
+ for /f "usebackq tokens=2,*" %%a in ("%staging%\http.txt") do set "curl_error=%%b"
202
207
  rem Token 2 is the authority after scheme://. Drop userinfo and the port.
203
208
  for /f "tokens=2 delims=/" %%h in ("%effective_url%") do set "download_host=%%h"
204
209
  for /f "tokens=1,* delims=@" %%h in ("%download_host%") do if not "%%i"=="" set "download_host=%%i"
@@ -344,7 +349,11 @@ exit /b 127
344
349
  echo impeccable: could not download engine %version%: GitHub's downloads are failing right now (HTTP %http_status% from %download_host%). This is an outage on GitHub's side, not a problem with your setup or the CLI, so updating won't help. Check https://www.githubstatus.com and run the same command again once GitHub has recovered. 1>&2
345
350
  exit /b 127
346
351
  :download_generic
347
- echo impeccable: could not download engine %version% from %url%; check network access and the release URL. 1>&2
352
+ rem Delayed expansion keeps cmd metacharacters in curl's message literal.
353
+ setlocal EnableDelayedExpansion
354
+ if defined curl_error set "curl_error=: !curl_error!"
355
+ echo impeccable: could not download engine %version% from !url! (curl exit %fetch_result%!curl_error!); check network access and the release URL. 1>&2
356
+ endlocal
348
357
 
349
358
  :setup_failed
350
359
  echo Engine %version% setup needs network access and write permission to "%IMPECCABLE_HOME%\bin\%version%". 1>&2
@@ -10682,6 +10682,7 @@ void main() {
10682
10682
  let steerLocked = false;
10683
10683
  let steerRequestId = null;
10684
10684
  let steerPendingMessage = '';
10685
+ const steerTimedOutIds = new Set();
10685
10686
  let steerInputWasFocused = false;
10686
10687
  let pageChatDotsEl = null;
10687
10688
  let steerAwaitTimer = null;
@@ -11269,10 +11270,9 @@ void main() {
11269
11270
  clearSteerAwaitTimer();
11270
11271
  steerAwaitTimer = setTimeout(() => {
11271
11272
  if (!steerLocked || steerRequestId !== id) return;
11272
- unlockSteerChat({
11273
- error: steerTimeoutMessage(),
11274
- restoreMessage: steerPendingMessage,
11275
- });
11273
+ // The steer stays queued on the server until steer_done, so refilling the input would invite a duplicate.
11274
+ steerTimedOutIds.add(id);
11275
+ unlockSteerChat({ error: steerTimeoutMessage() });
11276
11276
  }, STEER_AWAIT_TIMEOUT_MS);
11277
11277
  }
11278
11278
 
@@ -11284,10 +11284,10 @@ void main() {
11284
11284
  function steerTimeoutMessage() {
11285
11285
  const head = 'Steer timed out after 2 minutes. ';
11286
11286
  if (steerQueuedBehindGeneration()) {
11287
- return head + 'The agent is still busy with the current generation - your message was not lost, but it never got picked up. Send it again once the variants land.';
11287
+ return head + 'The agent is still busy with the current generation. Your message is queued and the agent picks it up once the variants land.';
11288
11288
  }
11289
11289
  if (!agentPollingConnected) {
11290
- return head + 'No agent is polling right now. Run impeccable live-poll, then send it again.';
11290
+ return head + 'No agent is polling right now. Your message is queued: run impeccable live-poll and the agent picks it up.';
11291
11291
  }
11292
11292
  return head + 'The agent picked it up but never replied with steer_done. Check the agent session for a stalled or failed steer.';
11293
11293
  }
@@ -11621,6 +11621,10 @@ void main() {
11621
11621
  }
11622
11622
 
11623
11623
  function maybeCompleteSteer(msg) {
11624
+ if (msg.type === 'steer_done' && steerTimedOutIds.delete(msg.id)) {
11625
+ showToast(msg.message || 'Queued steer applied', 4000);
11626
+ return true;
11627
+ }
11624
11628
  if (!steerRequestId || msg.id !== steerRequestId) return false;
11625
11629
  if (msg.type === 'steer_done') {
11626
11630
  unlockSteerChat({ message: msg.message, file: msg.file });
@@ -3,9 +3,9 @@ name: research-codebase
3
3
  description: Document codebase as-is with research directory for historical context.
4
4
  ---
5
5
 
6
- # Research Codebase
6
+ # Research a codebase
7
7
 
8
- You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning parallel sub-agents and synthesizing their findings.
8
+ Use this skill to answer a question about how a codebase works today. Assign separate parts of the question to subagents and combine what they find in one report.
9
9
 
10
10
  The user's research question/request is: **$ARGUMENTS**
11
11
 
@@ -19,16 +19,13 @@ The user's research question/request is: **$ARGUMENTS**
19
19
  </EXTREMELY_IMPORTANT>
20
20
 
21
21
  1. **Read any directly mentioned files first:**
22
- - If the user mentions specific files (tickets, docs, or other notes), read them FULLY first
23
- - **IMPORTANT**: Use the `readFile` tool WITHOUT limit/offset parameters to read entire files
24
- - **CRITICAL**: Read these files yourself in the main context before spawning any sub-tasks
25
- - This ensures you have full context before decomposing the research
22
+ - Use `read` in the main session on any file the user names, such as a ticket or design note. If the result cuts off, read the remaining lines before assigning research tasks.
26
23
 
27
24
  2. **Determine the compatibility posture:**
28
25
  - Before decomposing the research request, identify whether this project must preserve backward compatibility for real downstream users.
29
26
  - If the user explicitly allows breaking changes, public API changes, cleanup, or says there are no real users/downstream dependencies, set `breaking_changes_allowed: true`.
30
27
  - If the user mentions production users, published APIs, downstream consumers, migration safety, or compatibility requirements, set `breaking_changes_allowed: false`.
31
- - If the posture is not inferable from the request, ask the user once before continuing, using the available structured question tool when possible.
28
+ - If the request doesn't say whether existing users must be able to keep using the current behavior, ask once before continuing. Use `ask_user_question` when it is available.
32
29
  - Carry this posture into the research plan, every sub-agent prompt, the final research document frontmatter, and the `## Compatibility Context` section.
33
30
  - When `breaking_changes_allowed: true`, document existing legacy behavior, compatibility shims, optional flags, and public APIs as current state, not as constraints future specs must preserve unless the user explicitly asks for preservation.
34
31
  - When `breaking_changes_allowed: false`, document public APIs, compatibility-sensitive surfaces, downstream callers, migration constraints, and behavior that future work must preserve.
@@ -37,12 +34,12 @@ The user's research question/request is: **$ARGUMENTS**
37
34
  - Break the research question down into composable research areas
38
35
  - Take time to ultrathink about the underlying patterns, connections, and architectural implications the user might be seeking
39
36
  - Identify specific components, patterns, or concepts to investigate
40
- - Create a research plan using TodoWrite to track all subtasks
37
+ - Make a research plan and use `todo` to track subtasks if needed
41
38
  - Include the compatibility posture in the plan so later synthesis and spec creation inherit the same constraint.
42
39
  - Consider which directories, files, or architectural patterns are relevant
43
40
 
44
41
  4. **Spawn parallel sub-agent tasks:**
45
- - Create multiple Task agents to research different aspects concurrently
42
+ - Launch independent research assignments in one `subagent({ tasks: [...], context: "fresh" })` call from the main session
46
43
  - We now have specialized agents that know how to do specific research tasks:
47
44
 
48
45
  **For codebase research:**
@@ -62,18 +59,15 @@ The user's research question/request is: **$ARGUMENTS**
62
59
 
63
60
  **For online search:**
64
61
  - VERY IMPORTANT: In case you discover external libraries as dependencies, use the **codebase-online-researcher** agent for external documentation and resources
65
- - The agent fetches live web content using the **agent-browser** skill's `agent-browser` command (or `curl`). Instruct it to apply the token-efficient fetch order: (1) try `curl https://<site>/llms.txt` for an AI-friendly index (see [llmstxt.org](https://llmstxt.org/llms.txt)), (2) try `curl <url> -H "Accept: text/markdown"` to get pre-converted Markdown (supported on Cloudflare-hosted docs via [Markdown for Agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)), (3) fall back to opening the page with `agent-browser` and taking a snapshot
66
- - Instruct the agent to return LINKS with their findings and INCLUDE those links in the research document
67
- - The agent should persist reusable source documents under `research/web/<YYYY-MM-DD>-<kebab-case-topic>.md` (with frontmatter noting `source_url`, `fetched_at`, and `fetch_method`) so future research can reuse them without re-fetching
68
- - Output directory for the synthesized web research artifacts: `research/web/`:
69
-
70
- When you fetch a document that is worth keeping for future sessions (reference docs, API schemas, SDK guides, release notes, troubleshooting writeups, architecture articles), `write` it to `research/web/<YYYY-MM-DD>-<kebab-case-topic>.md` with frontmatter capturing:
62
+ - Ask the agent to start with the authoritative URL and `fetch_content`. If that does not retrieve the source, try the site's `llms.txt` index, request Markdown with `curl -H "Accept: text/markdown"`, or use `agent-browser` when the page needs browser interaction.
63
+ - Ask the agent to return links and findings. Include the links in the research document.
64
+ - For a source worth keeping (reference docs, API schemas, SDK guides, release notes, troubleshooting writeups, or architecture articles), have the main session use `write` to save reusable material to `research/web/<YYYY-MM-DD>-<kebab-case-topic>.md`. Include this frontmatter:
71
65
 
72
66
  ```markdown
73
67
  ---
74
68
  source_url: <original URL>
75
69
  fetched_at: <YYYY-MM-DD>
76
- fetch_method: read | llms.txt | markdown-accept-header | browser | browse
70
+ fetch_method: fetch_content | read | llms.txt | markdown-accept-header | browser
77
71
  topic: <short description>
78
72
  ---
79
73
  ```
@@ -94,7 +88,7 @@ The user's research question/request is: **$ARGUMENTS**
94
88
  - Include `breaking_changes_allowed: true` or `breaking_changes_allowed: false` in each sub-agent prompt so compatibility-sensitive findings are documented with the right posture.
95
89
 
96
90
  5. **Wait for all sub-agents to complete and synthesize:**
97
- - IMPORTANT: Wait for ALL sub-agent tasks to complete before proceeding
91
+ - Wait for the research you need before writing the report. Use each subagent's completion notice, or call `subagent({ action: "wait", id: taskId })` with the ID from its launch. If the wait ends before the task finishes, wait for that same task. Do not launch a duplicate.
98
92
  - Compile all sub-agent results (both codebase and research findings)
99
93
  - Prioritize live codebase findings as primary source of truth
100
94
  - Use research findings as supplementary historical context
@@ -222,7 +216,7 @@ research/
222
216
  ## Important notes:
223
217
 
224
218
  - Please DO NOT implement anything in this stage, just create the comprehensive research document
225
- - Always use parallel Task agents to maximize efficiency and minimize context usage
219
+ - Batch independent research assignments so they can run in parallel
226
220
  - Always run fresh codebase research - never rely solely on existing research documents
227
221
  - The `research/` directory provides historical context to supplement live findings
228
222
  - Focus on finding concrete file paths and line numbers for developer reference
@@ -237,7 +231,7 @@ research/
237
231
  - **CRITICAL**: You and all sub-agents are documentarians, not evaluators
238
232
  - **REMEMBER**: Document what IS, not what SHOULD BE
239
233
  - **NO RECOMMENDATIONS**: Only describe the current state of the codebase
240
- - **File reading**: Always read mentioned files FULLY (no limit/offset) before spawning sub-tasks
234
+ - **File reading**: Read mentioned files fully before launching subagents, paging through line ranges when needed
241
235
  - **Compatibility posture**: Always determine `breaking_changes_allowed` before decomposing the question. This is a single project/research posture, not a request to add compatibility flags. Use it to document whether old APIs and shims are constraints for future work.
242
236
  - **Critical ordering**: Follow the numbered steps exactly
243
237
  - ALWAYS read mentioned files first before spawning sub-tasks (step 1)
@@ -11,7 +11,7 @@ name: skill-creator
11
11
 
12
12
  A skill for creating new skills and iteratively improving them.
13
13
 
14
- To convert an Atomic workflow file into a skill, follow the [workflow-files recipe](../workflow-files/SKILL.md).
14
+ To convert an earlier Atomic workflow file or save a repeatable multi-step workflow, follow the [workflow skill](skill://workflow).
15
15
 
16
16
  At a high level, the process of creating a skill goes like this:
17
17
 
@@ -175,7 +175,7 @@ subagent({
175
175
  })
176
176
  ```
177
177
 
178
- `context: "fork"` creates a branched child session from the current persisted parent session. It does **not** create a fresh minimal review context or filter history down to only the relevant parts: the child continues the parent's conversation exactly as the parent sent it, with the parent's system prompt, project context, skills catalog and tools, and adds its own role and task after it. With the same model and thinking level, its first request is therefore read from the parent's prompt cache. Use it when the child needs the parent's conversation. Use fresh context for independent work, which sends a smaller context, and for adversarial review, so the specialist inspects the repo directly.
178
+ Use `context: "fork"` when a subagent needs the parent conversation, such as when a writer needs the requirements already agreed with the user. A fork starts from the parent session's latest settled turn, before the reply that launched the subagent. The subagent gets the conversation up to that point, including the project and skill instructions already sent. Atomic does not pick out only the relevant messages. Use `context: "fresh"` for an independent review so the reviewer starts without the parent's conclusions.
179
179
 
180
180
  ### Parallel execution
181
181
 
@@ -203,7 +203,7 @@ subagent({
203
203
 
204
204
  Avoid duplicate output paths in parallel tasks. Concurrent children should not write to the same file. For large saved outputs, set `outputMode: "file-only"` together with an `output` path. The parent result then contains only a compact reference like `Output saved to: /abs/report.md (48.2 KB, 2847 lines). Read this file if needed.` instead of the full saved content. Do not use `output: false` for this; `output: false` means no file output. Failed runs and save errors still return inline details for debugging.
205
205
 
206
- Concurrent writers conflict. `code-simplifier` and `debugger` change files. Do not run two writers in parallel against the same worktree unless you isolate them with `worktree: true`.
206
+ `worker`, `debugger`, and `code-simplifier` can edit files. If you run more than one writer in parallel, use `worktree: true` to give each writer a separate working copy.
207
207
 
208
208
  ### Background launches and explicit waits
209
209
 
@@ -260,7 +260,7 @@ If the run already has an active intercom bridge target, needs-attention notific
260
260
 
261
261
  Every supported subagent launch starts immediately without a preview/editor prompt or terminal input. This applies to single, parallel, forked, fanout, and prompt-template execution.
262
262
 
263
- Resolve questions in the parent conversation before launching children. Use `interview` when the user must answer a question, then put the resolved scope and validation contract in the child task.
263
+ Settle questions in the parent conversation before launching subagents. Use `ask_user_question` when it is available and you need an answer. Tell the subagent what the user decided and how to check its work.
264
264
 
265
265
  ## Worktree Isolation
266
266
 
@@ -276,7 +276,7 @@ subagent({
276
276
  })
277
277
  ```
278
278
 
279
- `worktree: true` gives each parallel task its own `worktree-*` branch under the canonical main root's `.atomic/worktrees/`, using the remote default branch when available and `HEAD` otherwise. This requires a clean git state and is mainly for intentionally parallel writing. If you want one writer thread and several advisory readers, prefer a single-writer pattern instead — only `debugger` and `code-simplifier` write, so co-locating them with read-only specialists in the same worktree is safe.
279
+ Use `worktree: true` when tasks need to edit files in parallel. Each task gets a separate working copy and Git branch. The branches start at the remote's default branch, or at the current commit if there is no remote default. Start with a clean Git working tree. If subagents share a working copy, assign file edits to only one of them. The others can read, review, and run checks.
280
280
 
281
281
  ## Subagent + Intercom Coordination
282
282
 
@@ -423,7 +423,7 @@ If a prompt-template extension is installed, additional user prompt templates ca
423
423
 
424
424
  ## Important Constraints
425
425
 
426
- - **Forking requires a persisted parent session.** If the current session does not have a persisted session file, forked runs fail.
426
+ - **Forking requires conversation history.** If there is no earlier point to branch from, the launch fails. Continue the parent conversation and try later, or launch with `context: "fresh"` if the task does not need that history.
427
427
  - **Forked runs inherit parent history.** They are branched threads, not fresh filtered contexts: the agent's `inheritProjectContext` and `inheritSkills` apply to fresh children, not to what the parent already sent; launch with `context: "fresh"` to keep the project context and skills out. A forked child can still call only its own tools; a call to another tool the parent declared fails. Use fresh context for adversarial review unless the user explicitly asks for forked context.
428
428
  - **Delegation is one level deep and not configurable.** A subagent cannot call `subagent`: every launch and run control (`pause`, `resume`, `quit`) from inside a child is refused. Only `list`, `get`, `status`, and `wait` stay available to a child.
429
429
  - **Attention signals are not lifecycle state.** `needs_attention` means no activity has been observed past the configured threshold. `killed` means the child was cancelled for good by owner or batch cancellation (or, in older sessions, the removed kill action); it cannot be resumed and is not the same as `failed`. `paused` and `quit` children stay resumable.
@@ -439,7 +439,7 @@ Let independent work run in the background and wait for a child explicitly when
439
439
 
440
440
  ### Keep writes single-threaded by default
441
441
 
442
- A strong pattern is one writer plus advisory/research/review specialists around it. Only `debugger` and `code-simplifier` change files; the rest are read-only. Parallelize reading, review, validation, and synthesis support, not normal writes, unless you deliberately isolate writers with worktrees. A child that writes should report what changed, what was left undone, commands run with exit codes, validation evidence, surprises, and any decisions that need parent approval.
442
+ Assign one writer per working copy. Use `worker` to implement a change, `debugger` to diagnose and fix a problem, or `code-simplifier` to clean up code without changing its behavior. Other subagents can research, review, and run checks in parallel. Ask the writer to report what changed, what remains, which checks ran and their results, and any decisions that need approval.
443
443
 
444
444
  ### Use fork for branched writer threads
445
445
 
@@ -512,7 +512,7 @@ Keep orchestration authority in the parent session. Child subagents cannot launc
512
512
  1. Clarify only when needed. Use existing context first; gather missing code or research context selectively, then ask only unresolved questions that materially affect scope, completion criteria, constraints, or non-goals.
513
513
  2. Define the validation contract. State completion expectations before implementation: expected behavior, checks to run, user flows to exercise, and evidence required in the writer handoff. For UI, CLI, integration, or orchestration changes, include at least one validator angle that uses the product the way a user would rather than only reading code.
514
514
  3. Plan when useful. For complex work, write a plan doc yourself and get approval before implementation. For simple work, confirm shared understanding and explicitly note why planning is skipped.
515
- 4. Implement with one writer. After approval, launch `debugger` (for correctness-shaped work) or `code-simplifier` (for refinement-shaped work), and wait for it, with a proper meta prompt that includes clarified requirements, relevant context, plan path or summary, the validation contract, and output expectations. While it runs, prepare validation or inspect adjacent code instead of editing the same worktree.
515
+ 4. Implement with one writer. After approval, choose `worker`, `debugger`, or `code-simplifier` based on [what you need the writer to do](#keep-writes-single-threaded-by-default). Give the writer the requirements, plan, checks to run, and what to report. While it runs, prepare checks or review nearby code without editing its working copy. Wait for the writer to finish before starting the review.
516
516
  5. Require a useful writer handoff. Ask the writer to report changed files, what was implemented, what was left undone, commands run with exit codes, validation evidence, surprises or new risks, decisions made inside approved scope, and decisions needing parent approval.
517
517
  6. Review after implementation. After the writer completes, launch bounded fresh-context specialist reviewers when risk or user intent warrants it — `codebase-analyzer` for correctness/regressions, `debugger` (inspect-only) for failure-mode hunts, and `codebase-pattern-finder` for consistency. Add `codebase-online-researcher` for external-spec angles and `codebase-research-*` for prior-decision angles when the work calls for it. Use `output: false` unless review artifacts are explicitly needed.
518
518
  7. Synthesize, then run the fix writer when needed. Separate blockers, fixes worth doing now, optional improvements, and feedback to ignore/defer, then launch one writer (`debugger` or `code-simplifier`) and wait for it to apply accepted fixes when implementation is authorized. If reviewers found scope/product/architecture choices that were not approved, ask the user first instead of applying them.
@@ -0,0 +1,98 @@
1
+ ---
2
+ name: workflow
3
+ description: Explain, design, or run multi-step workflows in Atomic, and convert older workflow files or removed built-ins into reusable skills. Use for questions about how workflows work now, how to coordinate or resume subagents with codemode, or how to replace an old workflow such as goal, tournament, or ralph.
4
+ ---
5
+
6
+ # Workflows in Atomic
7
+
8
+ Help the user choose between a one-off request, a reusable workflow, and migration. For an explanation or a draft, give a short example or paste-ready `SKILL.md` in chat without writing files or launching work. With a draft, show where to save it, how to run `/reload`, and the new `/skill:<name>` command.
9
+
10
+ ## Organize multi-step work
11
+
12
+ Start in the main chat. Describe the goal, inputs, deliverable, how to check it, what can be edited, and when to stop or ask. For a one-off job, plain language is enough: “Have separate read-only subagents check the Linux and Windows install guides. Verify disagreements and give me one report.” Save a repeated procedure in a `SKILL.md` with the inputs, steps, checks, and stop conditions. Run `/reload` and use `/skill:<name>`. Keep deterministic checks in short scripts if prose alone is not enough.
13
+
14
+ - **Codemode** runs short JavaScript steps that call Atomic tools. The main session writes these steps as needed; users don't need to write JavaScript for ordinary chat. Use a single call for a single delegated job or one `tasks` array for independent jobs that can run together. Use a new step when work depends on an earlier result. Only the main session launches children; a child reports new work back to it.
15
+ - **Subagents** are separate background sessions with a focused brief. Give each one a deliverable, the inputs and allowed edits, and a proof check. Separate competing writers into named worktrees. Use fresh context for independent reviews and forked context for work that needs the main chat's decisions.
16
+ - **Task IDs and completion notices** connect launches to results. A launch can start, queue, or refuse work; even `await tools.subagent(...)` doesn't mean the child finished. Record the returned `taskId` to wait and match results, `childId` to pause, quit, or resume, and any refusal reason. Let completion notices arrive while you do other work. Inspect `/tasks` to see what is running, paused, or finished. After a partial refusal, fix the refused request rather than relaunching its siblings.
17
+ - **Wait** only when the next step needs a result now. Use `tools.subagent({ action: "wait", id: taskId, budgetMs: 2000 })` to observe an existing task for up to two seconds. A wait ending, `Esc`, or a codemode timeout doesn't stop the child or justify a duplicate launch. Check `/tasks` or continue on its notice; use `quit` to explicitly stop work. Verify the settled result, not the launch receipt or the child's claim that it is done.
18
+ - **Intercom groups** let peers exchange evidence or divide work, not decide scope. Use `group: true` for a fresh group shared by a batch, or the same named `group` across launches when needed. Send to the exact `intercomTarget` from the receipt, not the `taskId`. Don't group independent reviewers when they should form judgments before talking.
19
+ - **Progress files** make longer work inspectable. Set `progress: true` when a child needs a file and have it record checks run, blockers, and the next step. The built-in `worker` usually gets one by default, but a read-only prompt suppresses that default. Atomic assigns each child its own `progress.md` outside the worktree. Use it for handoffs, not as a completion notice or proof that checks passed.
20
+
21
+ A short launch phase for a two-platform review:
22
+
23
+ ```js
24
+ const launch = await tools.subagent({
25
+ tasks: ["Linux", "Windows"].map((platform) => ({
26
+ agent: "codebase-analyzer",
27
+ task: `Check the ${platform} installation instructions. Cite evidence; don't edit.`,
28
+ })),
29
+ });
30
+ store("install-review", launch.tasks);
31
+ return launch.tasks;
32
+ ```
33
+
34
+ Wait for both reviews before comparing their findings. If interrupted, reopen the original main session. The subagents have their own saved sessions, but Atomic does not rerun unfinished scripts. Check `/tasks` or use `tools.subagent({ action: "status" })` to see which jobs finished. Check the files and any work done outside Atomic before retrying. Resume paused work if you still need it.
35
+
36
+ Use `store()` to save task IDs and the next check for later steps. Atomic keeps those values only if the script completes successfully. A failed script can leave subagents running, so check for them even if the IDs were not saved. A fork or an unsaved session cannot recover the original subagents.
37
+
38
+ ### Choose a pattern
39
+
40
+ | Pattern | When to use it and what to check |
41
+ | --- | --- |
42
+ | Classify and act | Triage a report, validate its label against the allowed choices, then send it to the matching specialist. Ask if no label fits. |
43
+ | Fan out and synthesize | Split independent checks, such as Linux and Windows installation, into one batch. Wait for the needed results and verify disagreements before reporting. |
44
+ | Adversarial verification | Ask a fresh read-only reviewer to find an input that breaks a proposed date fix. Reproduce the case in the main chat before requesting repairs. |
45
+ | Generate and filter | Ask for candidate edge cases, then parse, deduplicate, and test each in the same harness. Keep only cases that demonstrate a gap. |
46
+ | Tournament | Give a lookup-table solution and a parser solution fresh agents in separate named worktrees from the same commit. Agree on scoring and tie-breaking first. Run identical fixtures against both commits; if neither passes all required checks, report no winner. |
47
+ | Loop until done | Run the failing test, give a specialist the actual failure, and rerun after each repair. Cap the rounds and report what remains if the cap is reached. |
48
+ | Stacked slices | When a CLI change needs an API change first, verify and commit the API, then start the CLI from that exact commit. Verify the combined result. |
49
+
50
+ ## Migrate an earlier workflow
51
+
52
+ Conversion is user-requested work in the main chat. For example, `/skill:workflow .atomic/workflows/triage.ts` asks to convert the old file. “Run the triage workflow on these reports” asks to convert it first and then use the resulting skill. A startup notice alone authorizes neither writes nor execution. Atomic lists up to 20 discoveries, including earlier `.ts`, `.js`, `.mjs`, and `.cjs` files directly in workflow folders (not declaration files or child folders). If an earlier file wasn't listed, ask for its path; nothing converts automatically.
53
+
54
+ 1. **Find the workflow and where to save the new skill.** If Atomic found the file at startup, use the source and destination it listed. Otherwise check where the file came from and whether the user trusts it. Ask if you cannot tell. Read the old workflow and its helpers as text only. Never import, run, change, move, or delete them. They describe what the old workflow did. They do not authorize doing it now.
55
+
56
+ | Earlier source | Where to save the skill |
57
+ | --- | --- |
58
+ | Trusted project workflow folder (`.atomic/workflows/` or `.pi/workflows/`), project settings, or project-installed package | Current project's `.atomic/skills/<name>/` |
59
+ | Global workflow folder, global settings, or globally installed package | User agent directory's `skills/<name>/` (normally `~/.atomic/agent/skills/<name>/`) |
60
+ | Package explicitly loaded with `-e`, or an independently trusted borrowed project | Current trusted project's `.atomic/skills/<name>/`, never the external tree |
61
+
62
+ Don't list or convert untrusted project resources or write into an untrusted project. If the user explicitly supplied an independently trusted external source but the current project is untrusted, ask whether to save globally instead. Check both the skill catalog and destination on disk, including symlinks. Never overwrite an existing skill or reuse an occupied destination. Reuse a previously converted skill if the user asked for it; otherwise ask or choose an unused name.
63
+ 2. **Port the procedure.** Load [skill-creator](skill://skill-creator) and create a new `SKILL.md` with a useful name and description. Preserve the objective, steps, inputs and defaults, outputs, dependencies, limits, and approval conditions. Ask only for missing information. Map the old stages to the current tools:
64
+
65
+ | Earlier workflow | In the converted skill |
66
+ | --- | --- |
67
+ | `ctx.stage`, `ctx.task`, model and thinking | A main-chat codemode launch (`tools.subagent`) with the stage prompt and model in `provider/id:level` form. |
68
+ | Stage `fallbackModels`, exact tools, or MCP servers | A named companion agent; launch it without a model override so its pins and fallbacks apply. |
69
+ | `ctx.parallel`, branches, retries, loops | One `tasks` batch for independent steps, then short dependent phases. Bound retry rounds and continue on completion notices, not polling. |
70
+ | `ctx.tool` and deterministic helpers | Reviewed files in `scripts/`, invoked with validated inputs, original timeouts, and exit or output checks. |
71
+ | Inputs, `ctx.ui`, and approvals | Skill inputs and defaults; ask for missing inputs and real approvals in the main chat. An unanswered approval is not consent. |
72
+ | Nested `ctx.workflow` | Convert the nested definition as a separate skill respecting its own scope, then reference it by name. The main chat still owns all launches. |
73
+ | Structured outputs, `ctx.exit`, blocked prerequisites | Give each child a distinct result file. Parse and validate the expected result in codemode; stop on invalid output, missing prerequisites, or denied approval. |
74
+
75
+ For pinned stages, write distinct agent definitions under the same scope's `agents/` directory. Check discovered agents and the target on disk before writing. Use `provider/id:level` for the model and fallbacks; list the exact tools and configured MCP access as `mcp:<server>` or `mcp:<server>/<tool>`. Never copy secrets; ask before adding an MCP server. For example:
76
+
77
+ ```markdown
78
+ ---
79
+ name: triage-reviewer
80
+ description: Classify one incoming report
81
+ model: anthropic/claude-sonnet-4-6:high
82
+ fallbackModels: openai/gpt-5:medium
83
+ tools: read, search, mcp:issue-tracker
84
+ ---
85
+
86
+ Classify the report as bug, feature, or question. Cite evidence.
87
+ ```
88
+
89
+ Launch it with `await tools.subagent({ agent: "triage-reviewer", task: report })`. Only when asked to edit a package the user maintains, add `skills`, `agents`, and any needed `mcpServers` entries to its source manifest, not the installed copy. Use the full name for packaged agents (for example, `acme.triage.triage-reviewer` from `@acme/triage`).
90
+ 3. **Review and reload.** Verify that the original is untouched and that the new skill, helpers, and any agent files are in the right scope. Use `/reload`, check that the skill and agents are discoverable, and report the path and `/skill:<name>` command. If asked to execute, run the new skill with the supplied inputs. Old workflow run IDs cannot resume retired checkpoints: review earlier external effects before repeating work.
91
+
92
+ ### Replace a removed built-in
93
+
94
+ There is no old module to find just because the user named a built-in. Use the pattern above that matches `classify-and-act`, `fan-out-and-synthesize`, `adversarial-verification`, `generate-and-filter`, `tournament`, or `loop-until-done`; save the agreed recipe as a skill if they want to reuse it. For `goal`, combine a bounded loop with fresh adversarial verification and require proof before stopping. For `ralph`, use a capped research, implementation, and review loop. For `open-claude-design`, use `/skill:impeccable` with the brief and target artifact.
95
+
96
+ ### Leave old data alone unless asked
97
+
98
+ Migration does not require cleaning storage. If asked about reclaiming space, recommend making a backup and stopping older Atomic binaries first. Only unused workflow-only `runs/`, `pool/`, and `journal/` under `~/.atomic/workflows/` can be removed. Don't remove the whole directory, its `journal.sqlite` or sidecar files (which can hold Atomic sessions), shared databases, or workflow source files. Custom storage paths can differ.
@@ -10,7 +10,7 @@ import * as __atomicHostImport4 from "@bastani/atomic-ai";
10
10
  if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
11
11
  if (missing.length > 0) {
12
12
  const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
13
- if (__atomicHostImport0.VERSION !== "0.10.18") missing.unshift(application + " was updated to 0.10.18 while this session was running; restart it to keep using the subagents extension.");
13
+ if (__atomicHostImport0.VERSION !== "0.10.19-alpha.1") missing.unshift(application + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using the subagents extension.");
14
14
  throw new Error(missing.join("\n"));
15
15
  }
16
16
  }
@@ -9455,6 +9455,7 @@ var PATH_DELIMITERS = new Set([" ", "\t", '"', "'", "="]);
9455
9455
  // ../tui/dist/builtin-command-names.js
9456
9456
  var CORE_COMMAND_NAMES = [
9457
9457
  "settings",
9458
+ "usage",
9458
9459
  "model",
9459
9460
  "tree",
9460
9461
  "thinking",