@ambystech/ambykit 1.6.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/CHANGELOG.md +152 -2
  2. package/README.md +12 -8
  3. package/dist/cli/add.js +9 -0
  4. package/dist/cli/add.js.map +1 -1
  5. package/dist/cli/analyze.js +25 -4
  6. package/dist/cli/analyze.js.map +1 -1
  7. package/dist/cli/base-command.d.ts +8 -0
  8. package/dist/cli/base-command.js +30 -0
  9. package/dist/cli/base-command.js.map +1 -1
  10. package/dist/cli/check.d.ts +2 -0
  11. package/dist/cli/check.js +38 -4
  12. package/dist/cli/check.js.map +1 -1
  13. package/dist/cli/dashboard.d.ts +1 -1
  14. package/dist/cli/dashboard.js +55 -14
  15. package/dist/cli/dashboard.js.map +1 -1
  16. package/dist/cli/edit.d.ts +17 -0
  17. package/dist/cli/edit.js +71 -0
  18. package/dist/cli/edit.js.map +1 -0
  19. package/dist/cli/fleet.d.ts +2 -0
  20. package/dist/cli/fleet.js +23 -1
  21. package/dist/cli/fleet.js.map +1 -1
  22. package/dist/cli/index.d.ts +1 -5
  23. package/dist/cli/index.js +21 -111
  24. package/dist/cli/index.js.map +1 -1
  25. package/dist/cli/init.js +9 -0
  26. package/dist/cli/init.js.map +1 -1
  27. package/dist/cli/lane.d.ts +38 -1
  28. package/dist/cli/lane.js +116 -5
  29. package/dist/cli/lane.js.map +1 -1
  30. package/dist/cli/main.d.ts +6 -0
  31. package/dist/cli/main.js +111 -0
  32. package/dist/cli/main.js.map +1 -0
  33. package/dist/cli/mcp.d.ts +2 -0
  34. package/dist/cli/mcp.js +4 -0
  35. package/dist/cli/mcp.js.map +1 -1
  36. package/dist/cli/migrate.d.ts +17 -0
  37. package/dist/cli/migrate.js +67 -0
  38. package/dist/cli/migrate.js.map +1 -0
  39. package/dist/cli/node-guard.d.ts +4 -0
  40. package/dist/cli/node-guard.js +12 -0
  41. package/dist/cli/node-guard.js.map +1 -0
  42. package/dist/cli/run-budget.d.ts +7 -0
  43. package/dist/cli/run-budget.js +42 -5
  44. package/dist/cli/run-budget.js.map +1 -1
  45. package/dist/cli/run-control.d.ts +12 -0
  46. package/dist/cli/run-control.js +24 -2
  47. package/dist/cli/run-control.js.map +1 -1
  48. package/dist/cli/run-files.d.ts +1 -1
  49. package/dist/cli/run-fleet-control.d.ts +16 -0
  50. package/dist/cli/run-fleet-control.js +23 -0
  51. package/dist/cli/run-fleet-control.js.map +1 -0
  52. package/dist/cli/run-fleet-loop.d.ts +77 -0
  53. package/dist/cli/run-fleet-loop.js +156 -0
  54. package/dist/cli/run-fleet-loop.js.map +1 -0
  55. package/dist/cli/run-fleet-merge.d.ts +22 -0
  56. package/dist/cli/run-fleet-merge.js +69 -0
  57. package/dist/cli/run-fleet-merge.js.map +1 -0
  58. package/dist/cli/run-fleet-prepare.d.ts +35 -0
  59. package/dist/cli/run-fleet-prepare.js +58 -0
  60. package/dist/cli/run-fleet-prepare.js.map +1 -0
  61. package/dist/cli/run-fleet.d.ts +28 -0
  62. package/dist/cli/run-fleet.js +382 -0
  63. package/dist/cli/run-fleet.js.map +1 -0
  64. package/dist/cli/run-gates.js +2 -2
  65. package/dist/cli/run-gates.js.map +1 -1
  66. package/dist/cli/run-launch.js +22 -5
  67. package/dist/cli/run-launch.js.map +1 -1
  68. package/dist/cli/run-loop.d.ts +2 -0
  69. package/dist/cli/run-loop.js +51 -4
  70. package/dist/cli/run-loop.js.map +1 -1
  71. package/dist/cli/run-merger.d.ts +6 -0
  72. package/dist/cli/run-merger.js +40 -2
  73. package/dist/cli/run-merger.js.map +1 -1
  74. package/dist/cli/run-phase-check.d.ts +32 -0
  75. package/dist/cli/run-phase-check.js +173 -0
  76. package/dist/cli/run-phase-check.js.map +1 -0
  77. package/dist/cli/run-plan.d.ts +1 -1
  78. package/dist/cli/run-plan.js +24 -11
  79. package/dist/cli/run-plan.js.map +1 -1
  80. package/dist/cli/run-process.d.ts +6 -0
  81. package/dist/cli/run-process.js +17 -5
  82. package/dist/cli/run-process.js.map +1 -1
  83. package/dist/cli/run-protocol-prompts.d.ts +11 -1
  84. package/dist/cli/run-protocol-prompts.js +32 -5
  85. package/dist/cli/run-protocol-prompts.js.map +1 -1
  86. package/dist/cli/run-protocol.d.ts +8 -1
  87. package/dist/cli/run-protocol.js +35 -6
  88. package/dist/cli/run-protocol.js.map +1 -1
  89. package/dist/cli/run-script.js +3 -2
  90. package/dist/cli/run-script.js.map +1 -1
  91. package/dist/cli/run-session.d.ts +33 -0
  92. package/dist/cli/run-session.js.map +1 -1
  93. package/dist/cli/run-stages.d.ts +11 -0
  94. package/dist/cli/run-stages.js +34 -0
  95. package/dist/cli/run-stages.js.map +1 -0
  96. package/dist/cli/run-supervisor.js +26 -3
  97. package/dist/cli/run-supervisor.js.map +1 -1
  98. package/dist/cli/run.d.ts +11 -3
  99. package/dist/cli/run.js +86 -12
  100. package/dist/cli/run.js.map +1 -1
  101. package/dist/cli/sync.js +10 -5
  102. package/dist/cli/sync.js.map +1 -1
  103. package/dist/cli/ui/dashboard/empty-state.d.ts +5 -0
  104. package/dist/cli/ui/dashboard/empty-state.js +7 -0
  105. package/dist/cli/ui/dashboard/empty-state.js.map +1 -1
  106. package/dist/cli/ui/dashboard/filter-line.d.ts +13 -0
  107. package/dist/cli/ui/dashboard/filter-line.js +20 -0
  108. package/dist/cli/ui/dashboard/filter-line.js.map +1 -0
  109. package/dist/cli/ui/dashboard/fleet-tab.d.ts +25 -0
  110. package/dist/cli/ui/dashboard/fleet-tab.js +91 -0
  111. package/dist/cli/ui/dashboard/fleet-tab.js.map +1 -0
  112. package/dist/cli/ui/dashboard/fleet-view.d.ts +1 -0
  113. package/dist/cli/ui/dashboard/fleet-view.js +1 -1
  114. package/dist/cli/ui/dashboard/fleet-view.js.map +1 -1
  115. package/dist/cli/ui/dashboard/help-overlay.d.ts +3 -1
  116. package/dist/cli/ui/dashboard/help-overlay.js +27 -5
  117. package/dist/cli/ui/dashboard/help-overlay.js.map +1 -1
  118. package/dist/cli/ui/dashboard/layout.d.ts +15 -0
  119. package/dist/cli/ui/dashboard/layout.js +22 -0
  120. package/dist/cli/ui/dashboard/layout.js.map +1 -1
  121. package/dist/cli/ui/dashboard/metrics-panel.d.ts +15 -0
  122. package/dist/cli/ui/dashboard/metrics-panel.js +143 -0
  123. package/dist/cli/ui/dashboard/metrics-panel.js.map +1 -0
  124. package/dist/cli/ui/dashboard/tab-bar.d.ts +14 -0
  125. package/dist/cli/ui/dashboard/tab-bar.js +37 -0
  126. package/dist/cli/ui/dashboard/tab-bar.js.map +1 -0
  127. package/dist/cli/ui/dashboard/tab-frame.d.ts +43 -0
  128. package/dist/cli/ui/dashboard/tab-frame.js +68 -0
  129. package/dist/cli/ui/dashboard/tab-frame.js.map +1 -0
  130. package/dist/cli/ui/dashboard/tab-tokens.d.ts +569 -0
  131. package/dist/cli/ui/dashboard/tab-tokens.js +570 -0
  132. package/dist/cli/ui/dashboard/tab-tokens.js.map +1 -0
  133. package/dist/cli/ui/interactive/fullscreen.js +13 -3
  134. package/dist/cli/ui/interactive/fullscreen.js.map +1 -1
  135. package/dist/cli/ui/interactive/list-filter.d.ts +25 -0
  136. package/dist/cli/ui/interactive/list-filter.js +38 -0
  137. package/dist/cli/ui/interactive/list-filter.js.map +1 -0
  138. package/dist/cli/ui/interactive/overview.d.ts +37 -2
  139. package/dist/cli/ui/interactive/overview.js +321 -31
  140. package/dist/cli/ui/interactive/overview.js.map +1 -1
  141. package/dist/cli/ui/interactive/tabs.d.ts +15 -0
  142. package/dist/cli/ui/interactive/tabs.js +27 -0
  143. package/dist/cli/ui/interactive/tabs.js.map +1 -0
  144. package/dist/cli/ui/tool-options.d.ts +5 -1
  145. package/dist/cli/ui/tool-options.js +9 -3
  146. package/dist/cli/ui/tool-options.js.map +1 -1
  147. package/dist/cli/update.js +13 -2
  148. package/dist/cli/update.js.map +1 -1
  149. package/dist/core/analyze.d.ts +11 -0
  150. package/dist/core/analyze.js +33 -3
  151. package/dist/core/analyze.js.map +1 -1
  152. package/dist/core/burndown.d.ts +1 -1
  153. package/dist/core/burndown.js +2 -2
  154. package/dist/core/burndown.js.map +1 -1
  155. package/dist/core/checkouts.js +3 -2
  156. package/dist/core/checkouts.js.map +1 -1
  157. package/dist/core/config-schema.d.ts +45 -0
  158. package/dist/core/config-schema.js +63 -0
  159. package/dist/core/config-schema.js.map +1 -0
  160. package/dist/core/config.d.ts +3 -0
  161. package/dist/core/config.js +10 -0
  162. package/dist/core/config.js.map +1 -1
  163. package/dist/core/dashboard.js +3 -2
  164. package/dist/core/dashboard.js.map +1 -1
  165. package/dist/core/decisions.d.ts +12 -1
  166. package/dist/core/decisions.js +7 -2
  167. package/dist/core/decisions.js.map +1 -1
  168. package/dist/core/deprecation.d.ts +15 -0
  169. package/dist/core/deprecation.js +27 -0
  170. package/dist/core/deprecation.js.map +1 -0
  171. package/dist/core/features.js +11 -5
  172. package/dist/core/features.js.map +1 -1
  173. package/dist/core/fleet/fleet-text.d.ts +2 -0
  174. package/dist/core/fleet/fleet-text.js +41 -0
  175. package/dist/core/fleet/fleet-text.js.map +1 -0
  176. package/dist/core/fleet/fleet-view.d.ts +35 -0
  177. package/dist/core/fleet/fleet-view.js +43 -0
  178. package/dist/core/fleet/fleet-view.js.map +1 -0
  179. package/dist/core/fleet/fleets.d.ts +18 -0
  180. package/dist/core/fleet/fleets.js +64 -0
  181. package/dist/core/fleet/fleets.js.map +1 -0
  182. package/dist/core/fleet/flow-input.js +3 -4
  183. package/dist/core/fleet/flow-input.js.map +1 -1
  184. package/dist/core/fleet/index.d.ts +3 -0
  185. package/dist/core/fleet/index.js +3 -0
  186. package/dist/core/fleet/index.js.map +1 -1
  187. package/dist/core/fleet/runs.d.ts +18 -2
  188. package/dist/core/fleet/runs.js +67 -16
  189. package/dist/core/fleet/runs.js.map +1 -1
  190. package/dist/core/fleet-plan/budget.d.ts +18 -0
  191. package/dist/core/fleet-plan/budget.js +13 -0
  192. package/dist/core/fleet-plan/budget.js.map +1 -0
  193. package/dist/core/fleet-plan/contain.d.ts +10 -0
  194. package/dist/core/fleet-plan/contain.js +37 -0
  195. package/dist/core/fleet-plan/contain.js.map +1 -0
  196. package/dist/core/fleet-plan/format.d.ts +4 -0
  197. package/dist/core/fleet-plan/format.js +52 -0
  198. package/dist/core/fleet-plan/format.js.map +1 -0
  199. package/dist/core/fleet-plan/index.d.ts +7 -0
  200. package/dist/core/fleet-plan/index.js +8 -0
  201. package/dist/core/fleet-plan/index.js.map +1 -0
  202. package/dist/core/fleet-plan/order.d.ts +30 -0
  203. package/dist/core/fleet-plan/order.js +96 -0
  204. package/dist/core/fleet-plan/order.js.map +1 -0
  205. package/dist/core/fleet-plan/ownership.d.ts +12 -0
  206. package/dist/core/fleet-plan/ownership.js +36 -0
  207. package/dist/core/fleet-plan/ownership.js.map +1 -0
  208. package/dist/core/fleet-plan/plan.d.ts +23 -0
  209. package/dist/core/fleet-plan/plan.js +40 -0
  210. package/dist/core/fleet-plan/plan.js.map +1 -0
  211. package/dist/core/fleet-plan/read.d.ts +19 -0
  212. package/dist/core/fleet-plan/read.js +35 -0
  213. package/dist/core/fleet-plan/read.js.map +1 -0
  214. package/dist/core/fleet-plan/schedule.d.ts +15 -0
  215. package/dist/core/fleet-plan/schedule.js +27 -0
  216. package/dist/core/fleet-plan/schedule.js.map +1 -0
  217. package/dist/core/fleet-plan/select.d.ts +20 -0
  218. package/dist/core/fleet-plan/select.js +64 -0
  219. package/dist/core/fleet-plan/select.js.map +1 -0
  220. package/dist/core/fleet-plan/types.d.ts +123 -0
  221. package/dist/core/fleet-plan/types.js +2 -0
  222. package/dist/core/fleet-plan/types.js.map +1 -0
  223. package/dist/core/fleet-view/group.d.ts +51 -0
  224. package/dist/core/fleet-view/group.js +73 -0
  225. package/dist/core/fleet-view/group.js.map +1 -0
  226. package/dist/core/graph-format.d.ts +2 -0
  227. package/dist/core/graph-format.js +4 -3
  228. package/dist/core/graph-format.js.map +1 -1
  229. package/dist/core/graph-types.d.ts +4 -0
  230. package/dist/core/graph.js +38 -1
  231. package/dist/core/graph.js.map +1 -1
  232. package/dist/core/index.d.ts +1 -0
  233. package/dist/core/index.js +1 -0
  234. package/dist/core/index.js.map +1 -1
  235. package/dist/core/lanes.d.ts +53 -0
  236. package/dist/core/lanes.js +131 -0
  237. package/dist/core/lanes.js.map +1 -1
  238. package/dist/core/legacy.d.ts +2 -1
  239. package/dist/core/legacy.js +7 -2
  240. package/dist/core/legacy.js.map +1 -1
  241. package/dist/core/markers.d.ts +7 -0
  242. package/dist/core/markers.js +3 -2
  243. package/dist/core/markers.js.map +1 -1
  244. package/dist/core/metrics/cycle.d.ts +3 -0
  245. package/dist/core/metrics/cycle.js +47 -0
  246. package/dist/core/metrics/cycle.js.map +1 -0
  247. package/dist/core/metrics/gap.d.ts +9 -0
  248. package/dist/core/metrics/gap.js +35 -0
  249. package/dist/core/metrics/gap.js.map +1 -0
  250. package/dist/core/metrics/index.d.ts +21 -0
  251. package/dist/core/metrics/index.js +67 -0
  252. package/dist/core/metrics/index.js.map +1 -0
  253. package/dist/core/metrics/model.d.ts +23 -0
  254. package/dist/core/metrics/model.js +46 -0
  255. package/dist/core/metrics/model.js.map +1 -0
  256. package/dist/core/metrics/revisions.d.ts +22 -0
  257. package/dist/core/metrics/revisions.js +88 -0
  258. package/dist/core/metrics/revisions.js.map +1 -0
  259. package/dist/core/metrics/types.d.ts +74 -0
  260. package/dist/core/metrics/types.js +3 -0
  261. package/dist/core/metrics/types.js.map +1 -0
  262. package/dist/core/migrate/convert-spec.d.ts +19 -0
  263. package/dist/core/migrate/convert-spec.js +99 -0
  264. package/dist/core/migrate/convert-spec.js.map +1 -0
  265. package/dist/core/migrate/convert-tasks.d.ts +16 -0
  266. package/dist/core/migrate/convert-tasks.js +121 -0
  267. package/dist/core/migrate/convert-tasks.js.map +1 -0
  268. package/dist/core/migrate/run.d.ts +36 -0
  269. package/dist/core/migrate/run.js +178 -0
  270. package/dist/core/migrate/run.js.map +1 -0
  271. package/dist/core/migrate/safety.d.ts +33 -0
  272. package/dist/core/migrate/safety.js +199 -0
  273. package/dist/core/migrate/safety.js.map +1 -0
  274. package/dist/core/migrate/summary.d.ts +36 -0
  275. package/dist/core/migrate/summary.js +140 -0
  276. package/dist/core/migrate/summary.js.map +1 -0
  277. package/dist/core/moved-targets.d.ts +73 -8
  278. package/dist/core/moved-targets.js +79 -1
  279. package/dist/core/moved-targets.js.map +1 -1
  280. package/dist/core/overview-types.d.ts +7 -0
  281. package/dist/core/overview-types.js.map +1 -1
  282. package/dist/core/overview.js +4 -0
  283. package/dist/core/overview.js.map +1 -1
  284. package/dist/core/query.js +3 -2
  285. package/dist/core/query.js.map +1 -1
  286. package/dist/core/run-launch-plan.d.ts +2 -0
  287. package/dist/core/run-launch-plan.js +6 -1
  288. package/dist/core/run-launch-plan.js.map +1 -1
  289. package/dist/core/run-prompt.d.ts +43 -1
  290. package/dist/core/run-prompt.js +40 -4
  291. package/dist/core/run-prompt.js.map +1 -1
  292. package/dist/core/run-result.d.ts +42 -0
  293. package/dist/core/run-result.js +163 -0
  294. package/dist/core/run-result.js.map +1 -0
  295. package/dist/core/run-stability.d.ts +23 -0
  296. package/dist/core/run-stability.js +38 -0
  297. package/dist/core/run-stability.js.map +1 -0
  298. package/dist/core/runners.d.ts +58 -3
  299. package/dist/core/runners.js +99 -13
  300. package/dist/core/runners.js.map +1 -1
  301. package/dist/core/sibling-reads.d.ts +41 -0
  302. package/dist/core/sibling-reads.js +100 -0
  303. package/dist/core/sibling-reads.js.map +1 -0
  304. package/dist/core/spec-format/blocks.d.ts +19 -0
  305. package/dist/core/spec-format/blocks.js +58 -0
  306. package/dist/core/spec-format/blocks.js.map +1 -0
  307. package/dist/core/spec-format/detect.d.ts +14 -0
  308. package/dist/core/spec-format/detect.js +30 -0
  309. package/dist/core/spec-format/detect.js.map +1 -0
  310. package/dist/core/spec-format/dispatch.d.ts +13 -0
  311. package/dist/core/spec-format/dispatch.js +64 -0
  312. package/dist/core/spec-format/dispatch.js.map +1 -0
  313. package/dist/core/spec-format/frontmatter.d.ts +18 -0
  314. package/dist/core/spec-format/frontmatter.js +37 -0
  315. package/dist/core/spec-format/frontmatter.js.map +1 -0
  316. package/dist/core/spec-format/legacy.d.ts +40 -0
  317. package/dist/core/spec-format/legacy.js +91 -0
  318. package/dist/core/spec-format/legacy.js.map +1 -0
  319. package/dist/core/spec-format/meta.d.ts +3 -0
  320. package/dist/core/spec-format/meta.js +24 -0
  321. package/dist/core/spec-format/meta.js.map +1 -0
  322. package/dist/core/spec-format/model.d.ts +50 -0
  323. package/dist/core/spec-format/model.js +9 -0
  324. package/dist/core/spec-format/model.js.map +1 -0
  325. package/dist/core/spec-format/read-spec.d.ts +4 -0
  326. package/dist/core/spec-format/read-spec.js +102 -0
  327. package/dist/core/spec-format/read-spec.js.map +1 -0
  328. package/dist/core/spec-format/read-tasks.d.ts +2 -0
  329. package/dist/core/spec-format/read-tasks.js +146 -0
  330. package/dist/core/spec-format/read-tasks.js.map +1 -0
  331. package/dist/core/spec-format/write.d.ts +23 -0
  332. package/dist/core/spec-format/write.js +382 -0
  333. package/dist/core/spec-format/write.js.map +1 -0
  334. package/dist/core/subagents.js +0 -2
  335. package/dist/core/subagents.js.map +1 -1
  336. package/dist/core/tasks-edit.d.ts +4 -1
  337. package/dist/core/tasks-edit.js +19 -6
  338. package/dist/core/tasks-edit.js.map +1 -1
  339. package/dist/core/types.d.ts +14 -0
  340. package/dist/emitters/index.d.ts +0 -4
  341. package/dist/emitters/index.js +0 -10
  342. package/dist/emitters/index.js.map +1 -1
  343. package/dist/index.d.ts +2 -2
  344. package/dist/index.js +2 -2
  345. package/dist/index.js.map +1 -1
  346. package/dist/plugins/api.d.ts +14 -8
  347. package/dist/plugins/api.js +9 -8
  348. package/dist/plugins/api.js.map +1 -1
  349. package/dist/plugins/index.d.ts +3 -2
  350. package/dist/plugins/index.js +3 -2
  351. package/dist/plugins/index.js.map +1 -1
  352. package/dist/plugins/loader.d.ts +8 -0
  353. package/dist/plugins/loader.js +36 -6
  354. package/dist/plugins/loader.js.map +1 -1
  355. package/dist/plugins/report.d.ts +1 -1
  356. package/dist/plugins/report.js +3 -4
  357. package/dist/plugins/report.js.map +1 -1
  358. package/dist/plugins/session.d.ts +1 -0
  359. package/dist/plugins/session.js +1 -1
  360. package/dist/plugins/session.js.map +1 -1
  361. package/dist/testkit/index.d.ts +1 -1
  362. package/docs/architecture.md +16 -1
  363. package/docs/artifacts/decision-record.md +15 -0
  364. package/docs/artifacts/spec.md +35 -6
  365. package/docs/artifacts/tasks.md +67 -16
  366. package/docs/cli-reference.md +205 -12
  367. package/docs/contributing.md +6 -0
  368. package/docs/migration.md +191 -0
  369. package/docs/plugin-api.md +21 -13
  370. package/docs/plugin-split.md +5 -3
  371. package/docs/plugin-trust.md +2 -2
  372. package/docs/plugins-release.md +105 -0
  373. package/docs/release.md +103 -0
  374. package/docs/stability.md +152 -0
  375. package/docs/tool-compatibility.md +27 -6
  376. package/docs/workflow.md +10 -6
  377. package/package.json +4 -2
  378. package/src/agents/worker.md +2 -1
  379. package/src/prompts/converge.md +2 -2
  380. package/src/prompts/implement.md +13 -11
  381. package/src/prompts/revise.md +5 -2
  382. package/src/prompts/run.md +7 -4
  383. package/src/prompts/specify.md +5 -3
  384. package/src/prompts/tasks.md +9 -8
  385. package/src/templates/spec.md +10 -4
  386. package/src/templates/tasks.md +35 -13
  387. package/dist/emitters/antigravity-cli.d.ts +0 -15
  388. package/dist/emitters/antigravity-cli.js +0 -20
  389. package/dist/emitters/antigravity-cli.js.map +0 -1
  390. package/dist/emitters/antigravity.d.ts +0 -20
  391. package/dist/emitters/antigravity.js +0 -24
  392. package/dist/emitters/antigravity.js.map +0 -1
@@ -51,7 +51,7 @@ Adding a tool = one subclass + a compatibility-matrix row + a snapshot test.
51
51
 
52
52
  ## Plugins
53
53
 
54
- `src/plugins/` lets a project add targets without changing the core (feature 027, experimental). Config lists
54
+ `src/plugins/` lets a project add targets without changing the core (feature 027; stable from 2.0, see `docs/stability.md`). Config lists
55
55
  `plugins: { "<package>": "<exact version>" }`; `sync`, `check` and `add` call `loadPluginSession`, which returns
56
56
  `undefined` without importing anything when no plugin is listed. With plugins, `loader.ts` (the only side-effecting
57
57
  module) reads `<project>/node_modules/<package>/package.json`, requires the installed version to equal the pin
@@ -82,6 +82,21 @@ are buildable, what blocks a story, the critical path) live in `graph-paths.ts`,
82
82
  Mermaid formats in `graph-format.ts`. The interactive graph view loads only on the interactive dashboard,
83
83
  through a dynamic import, so one-shot and `--json` output stay inside the 1-second budget.
84
84
 
85
+ ## Multi-feature fleets
86
+
87
+ A fleet is a thin layer **above** one `ambykit run`, not a second runner. `src/core/fleet-plan/` is pure: it reads
88
+ features through the per-file spec reader and the dependency graph (`read.ts` is the only adapter, and a test keeps
89
+ markdown and YAML parsing out of the directory), then selects, orders and schedules them. Ordering is the feature
90
+ dependency graph plus serialization of features that share a file, ties broken by number; containment is a pure
91
+ closure over those waits, recomputed every tick, so a resumed feature releases its dependents with no extra
92
+ bookkeeping. `src/cli/run-fleet-loop.ts` is the tick loop: one 028 `Session` and `Supervisor` per feature
93
+ (unchanged, each with its own run, lanes, gates and merge) behind a small `FeatureRun` interface, driven by one
94
+ `FleetSupervisor` that owns start order, the fleet-wide caps (an optional `Session.slots` hook adds the other
95
+ sessions' running lanes to `nextToStart`'s count, so a single run is untouched), the fleet budgets and the record.
96
+ State is `.amby/fleet/fleet-<n>/`; `runDir` resolves a run inside it, so every existing reader and writer, including
97
+ `report_activity`, follows a nested run, and the prompts name the run's real directory. See the CLI reference for the
98
+ rules (what "merged" means, lane preparation, caps, containment).
99
+
85
100
  ## Non-destructive rules merge (brownfield)
86
101
 
87
102
  Generated **command** files are AmbyKit's alone and are overwritten. **Rules files** (`AGENTS.md`,
@@ -47,6 +47,21 @@ Errors (exit status 1): `duplicate-id`, `dangling-citation` (a cited `ADR-###` w
47
47
  `specs/**/*.md`, the constitution and the records), `supersede-mismatch`, `supersede-cycle`,
48
48
  `accepted-with-conflict`, `invalid-record`. Warning: `index-drift` (a record missing from the index).
49
49
 
50
+ ### Severity of dangling citations
51
+
52
+ A team that cites a decision before writing it down (a record planned for the same pull request, or one kept
53
+ elsewhere for a while) can lower `dangling-citation` to a warning in `.amby/config.json`:
54
+
55
+ ```json
56
+ { "decisions": { "danglingCitation": "warning" } }
57
+ ```
58
+
59
+ `decisions.danglingCitation` takes `"error"` (the default, same as no setting) or `"warning"`. Any other value is
60
+ refused when the config is read, with a message naming the key and both allowed values. The setting is per
61
+ project and applies to dangling citations only: the citation is still listed (one line per citing file), `--json`
62
+ carries it with `"level": "warning"`, and `analyze` no longer exits 1 because of it. Every other check above keeps
63
+ its own level.
64
+
50
65
  ## Security reviewer role
51
66
 
52
67
  `ambykit init` installs a seventh read-only role, `.amby/roles/security.md`, used as
@@ -5,7 +5,7 @@ The specification defines **WHAT** to build and **WHY**, with no technology deci
5
5
 
6
6
  ## Sections
7
7
 
8
- 1. **Metadata** — feature ID/slug, branch, status, created date.
8
+ 1. **Metadata and story data** — feature ID/slug, branch, status, created date, and the `stories:` list (priority, status, dependencies).
9
9
  2. **User Scenarios & Testing** — the user stories.
10
10
  3. **Requirements** — EARS functional requirements.
11
11
  4. **Success Criteria** — measurable, tech-agnostic outcomes.
@@ -13,24 +13,52 @@ The specification defines **WHAT** to build and **WHY**, with no technology deci
13
13
 
14
14
  ## User stories
15
15
 
16
- Each story is independently testable and prioritized:
16
+ Each story is independently testable and prioritized. A spec's **story data** (priority, status and
17
+ dependencies) lives in the **frontmatter** `stories:` list; the heading carries the title only and the
18
+ prose stays prose:
17
19
 
18
20
  ```markdown
19
- ### US-1 — Reset password via email (priority: P1)
21
+ ---
22
+ format: 2
23
+ feature: 007-reset-password
24
+ status: in-progress
25
+ stories:
26
+ - id: US-1
27
+ priority: P1
28
+ status: draft # draft | ready | in-progress | blocked | done
29
+ depends-on: [] # e.g. [US-0, "019:US-1"] to wait for a story in this or another feature
30
+ blocked-by: []
31
+ ---
32
+
33
+ ### US-1 — Reset password via email
20
34
 
21
35
  As a registered user, I want to reset my password via an emailed one-time link,
22
36
  so that I can regain access without contacting support.
23
37
 
24
38
  - **Why P1:** account lockout is the top support driver.
25
39
  - **Independent test:** can be demoed alone as a viable slice.
26
- - **depends-on:** [] # e.g. [US-0] to block until a prerequisite ships
27
- - **status:** draft # draft | ready | in-progress | blocked | done
28
40
 
29
41
  **Acceptance criteria**
30
42
  - Given a registered email, When a reset is requested, Then a one-time link is sent within 30s.
31
43
  - Given an expired link, When it is opened, Then the user is told it expired and offered a new one.
32
44
  ```
33
45
 
46
+ - `format: 2` marks the file as v2. A story entry needs an `id` that matches a `### US-#` heading; `priority`,
47
+ `status`, `depends-on` and `blocked-by` are optional. `status` is any string, with the five values above
48
+ canonical (another value is read as written and warned about).
49
+ - Change a story's status with `ambykit edit status <feature> US-# <status>`; do not edit the YAML by hand. A
50
+ mistake in the frontmatter is reported with its file and line by `ambykit analyze`, never guessed around.
51
+ - A feature can also declare whole-feature dependencies, `depends-on: [019, 023-dependency-graph]`, in the
52
+ frontmatter. They show as declared edges in `ambykit graph`, and a name that matches no feature is reported.
53
+ - When the frontmatter and a leftover 1.x bullet disagree, the frontmatter wins and a warning says so.
54
+
55
+ ### Specs written before 2.0
56
+
57
+ A 1.x spec keeps its story data as bullets under each heading (`- **depends-on:** …`, `- **status:** …`) and the
58
+ priority as `(priority: P1)` in the heading. 2.x reads it exactly as before until 2.1, with one warning per run;
59
+ `ambykit migrate` moves the data into the frontmatter without touching the prose. See
60
+ [Migrating to the v2 spec format](../migration.md).
61
+
34
62
  ## Functional requirements (EARS)
35
63
 
36
64
  Numbered `FR-###`, using [EARS](https://alistairmavin.com/ears/) patterns — unambiguous and directly
@@ -67,4 +95,5 @@ Unknowns are flagged inline, never guessed:
67
95
 
68
96
  Stable IDs (`US-#`, `FR-###`, `SC-###`) let downstream artifacts reference the spec instead of
69
97
  restating it. `tasks.md` tags each task with its `[US#]`; `analyze` builds a traceability view
70
- story → requirements → tasks and validates the `depends-on`/`blocked-by` graph.
98
+ story → requirements → tasks and validates the `depends-on`/`blocked-by` graph. Requirement IDs stay in the
99
+ prose: `ambykit trace` reads them from the `FR-###` lines, not from the frontmatter.
@@ -6,19 +6,63 @@ An ordered, dependency-aware checklist that turns the plan into executable work.
6
6
  ## Task line format
7
7
 
8
8
  ```
9
- - [ ] [T001] [P] [US1] Create reset_tokens table and migration (db/migrations/003_reset_tokens.sql)
9
+ - [ ] [T001] [P] [US1] Create reset_tokens table and migration
10
10
  ```
11
11
 
12
12
  - **checkbox** `- [ ]` / `- [x]` — completion state; the **source of truth** for `dashboard` progress.
13
13
  - **`T###`** — stable task ID.
14
- - **`[P]`** — optional; the task is parallelizable with its siblings.
14
+ - **`[P]`** — optional; the task is parallelizable with its siblings. Consecutive `[P]` tasks of a phase run at the
15
+ same time, in separate lanes, so a `[P]` task must not test or read a file that another `[P]` task of the same
16
+ stage writes: that file does not exist yet in its lane. Order such a task after the one it reads (drop its `[P]`,
17
+ or move it after a non-parallel task or to a later phase). `ambykit analyze` warns when a `[P]` task's description
18
+ names a path a sibling `[P]` task owns (a **sibling read**).
15
19
  - **`[US#]`** — the user story this task serves (enables story-level progress roll-up).
16
- - **description (file path)** — what to do and where.
20
+ - **description** — what to do. The files a task owns are not on its line: they are listed in its phase's
21
+ block (below).
22
+
23
+ ### Files and Verify: the phase block
24
+
25
+ Each phase ends with one fenced `yaml` block holding two things, both optional:
26
+
27
+ ````markdown
28
+ ## Phase 3 — User story US-1
29
+
30
+ - [ ] [T001] [P] [US1] Create reset_tokens table and migration
31
+ - [ ] [T002] [P] [US1] Add the reset endpoint
32
+ - **Checkpoint:** US-1 is demoable.
33
+ ```yaml
34
+ files:
35
+ T001: ["db/migrations/003_reset_tokens.sql"]
36
+ T002: ["src/api/reset.ts", "test/api/reset.test.ts"]
37
+ verify:
38
+ check: "`npm test` passes"
39
+ result: passed # passed | failed | unverified
40
+ why: "" # the reason, when failed
41
+ ```
42
+ ````
43
+
44
+ - `files:` maps a task id to its repo-relative paths (directories end `/`, no globs). A task with no entry has
45
+ no declared files, and a `[P]` task in a phase must not share or nest a path with another (`ambykit analyze`
46
+ reports a lane conflict). Lane planning, the check-off merge and the MCP tools read the same paths as before.
47
+ - `verify:` is the phase's Verify check and its last recorded result (see below). One `verify:` per phase.
48
+ - A `yaml` fence with neither key is documentation and is ignored; one that mixes `files`/`verify` with other
49
+ top-level keys, a block that is not closed, or YAML that does not parse is an error with its file and line.
50
+ - `format: 2` in the file's frontmatter marks it as v2. Change a task's files with
51
+ `ambykit edit files <feature> T### <path…>` and a Verify result with `ambykit edit verify`; do not edit the
52
+ block by hand. Checking a task off is still just flipping its checkbox.
53
+
54
+ ### Tasks written before 2.0
55
+
56
+ A 1.x task line carries its files as the last parenthesized group, `(src/a.ts, test/a.test.ts)`, and the phase's
57
+ Verify as a `**Verify:** <check>` line with a result suffix. 2.x reads that exactly as before until 2.1, with one
58
+ warning per run; `ambykit migrate` moves the groups and the Verify line into the phase block. See
59
+ [Migrating to the v2 spec format](../migration.md).
17
60
 
18
61
  ### Blocked and deviation markers
19
62
 
20
- A task that cannot proceed carries `⚠ BLOCKED: <reason>` as the **last segment** of its line, after the
21
- path group; a task done differently than planned may carry `↪ DEVIATION: <note>` beside it. The glyphs
63
+ A task that cannot proceed carries `⚠ BLOCKED: <reason>` as the **last segment** of its line (after its path
64
+ group in a 1.x file); a task done differently than planned may carry `↪ DEVIATION: <note>` beside it. Markers stay
65
+ on the task line in both formats. The glyphs
22
66
  are optional (`BLOCKED:` and `DEVIATION:` read the same), and a marker's text runs to the next marker or
23
67
  the end of the line, so a reason can contain parentheses or backticks without being read as a file path.
24
68
 
@@ -33,18 +77,25 @@ so documentation can show the syntax.
33
77
 
34
78
  ### Verify lines
35
79
 
36
- Each phase ends with one plain-text `**Verify:**` line: the check the implementer runs before passing the
37
- phase checkpoint. After a run the result is written on that same line as a suffix: `✓ passed`,
38
- `✗ failed: <why>` or `? unverified` (for a check that needs a person or an external step). The glyphs are
39
- optional, so `passed`, `failed: <why>` and `unverified` read the same. A Verify line holds one result; a
40
- later run overwrites it, so an old failure is never shown as current. A phase checkpoint is not passed
41
- while its Verify line is `failed`. When a phase is built in parallel lanes, record its result after the
42
- phase's lanes are merged, not while neighbouring lanes are open: an edit on a Verify line next to a lane's
43
- check-off makes the merge conflict in `tasks.md`.
80
+ Each phase has one Verify check: the check the implementer runs before passing the phase checkpoint. In a v2
81
+ file it is the `check:` of the phase block's `verify:`; in a 1.x file it is a plain-text `**Verify:**` line. After a
82
+ run the result is recorded with
83
+
84
+ ```bash
85
+ ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<why>]
86
+ ```
87
+
88
+ (`unverified` is for a check that needs a person or an external step). A v2 file stores `result: passed|failed|
89
+ unverified` and `why:`; a 1.x file shows it as a suffix on the Verify line, `✓ passed`, `✗ failed: <why>` or
90
+ `? unverified` (the glyphs are optional, so `passed`, `failed: <why>` and `unverified` read the same). A phase holds
91
+ one result; a later run overwrites it, so an old failure is never shown as current. A phase checkpoint is not passed
92
+ while its result is `failed`. When a phase is built in parallel lanes, record its result after the phase's lanes
93
+ are merged, not while neighbouring lanes are open: an edit next to a lane's check-off makes the merge conflict in
94
+ `tasks.md`.
44
95
 
45
96
  ```
46
- **Verify:** `npm run typecheck && npx vitest run test/core/markers.test.ts` ✓ passed
47
- **Verify:** `npm test` ✗ failed: 3 tests in test/cli
97
+ **Verify:** `npm run typecheck && npx vitest run test/core/markers.test.ts` ✓ passed (1.x)
98
+ **Verify:** `npm test` ✗ failed: 3 tests in test/cli (1.x)
48
99
  ```
49
100
 
50
101
  ## Test design
@@ -73,5 +124,5 @@ MVP-first, incremental, or parallel-team execution.
73
124
  ## Status flow
74
125
 
75
126
  As `/amby.implement` completes work it flips checkboxes to `- [x]` and updates the corresponding
76
- story's `status:` in `spec.md`. `ambykit dashboard` reads both — counting checked tasks per `[US#]`
127
+ story's status in `spec.md` with `ambykit edit status`. `ambykit dashboard` reads both — counting checked tasks per `[US#]`
77
128
  tag — to report `X of Y tasks done`, `%`, and status per story.
@@ -94,7 +94,7 @@ your edits are kept), warns when a role in `.amby/roles/` exceeds 150 words, and
94
94
  when two roles share an id. Projects with roles get one native sub-agent per role for Claude Code,
95
95
  OpenCode, and Copilot.
96
96
 
97
- **Plugins (experimental).** `plugins` in `.amby/config.json` maps an `ambykit-emitter-*` package to the exact
97
+ **Plugins.** `plugins` in `.amby/config.json` maps an `ambykit-emitter-*` package to the exact
98
98
  version installed in the project's own `node_modules`; `sync` (and `check` and `add`) load only those, then
99
99
  emit their targets like built-in ones:
100
100
 
@@ -102,7 +102,7 @@ emit their targets like built-in ones:
102
102
  { "tools": ["claude", "mytool"], "plugins": { "ambykit-emitter-mytool": "1.0.0" } }
103
103
  ```
104
104
 
105
- `sync` prints each loaded plugin as `name@version` and an experimental note. A plugin that is missing,
105
+ `sync` prints each loaded plugin as `name@version` (and a note when it declares the 1.x plugin API). A plugin that is missing,
106
106
  mis-pinned, outside the plugin-API range, malformed, or that clashes with another target is reported by name
107
107
  and skipped; the other targets still sync and `sync` exits **1**. A plugin file outside the project is refused;
108
108
  a file in the home directory needs `--include-user` and is never part of `--check`. Without a `plugins` key
@@ -156,6 +156,7 @@ files, then merge them back. Lane `k` of phase `p` is the worktree and branch
156
156
  ```bash
157
157
  ambykit lane 015-slug # 2 lanes from the first phase with open [P] tasks
158
158
  ambykit lane 015-slug --phase=3 --lanes=3 # choose the phase and lane count
159
+ ambykit lane 015-slug --next # the next stage of open tasks, sequential ones included (what `ambykit run` uses)
159
160
  ambykit lane list [015-slug] # tasks, done/total, clean/dirty/merged, drift
160
161
  ambykit lane merge 015-slug [3-1] # merge finished lanes into the feature branch
161
162
  ambykit lane remove 015-slug [3-1] [--force] # remove working copies (branches are kept)
@@ -168,6 +169,25 @@ automatically (a box is ticked if either side ticked it); any other conflict abo
168
169
  and leaves the checkout clean. `list` reports **drift** when a lane task is missing from, or has
169
170
  different paths in, the feature's current `tasks.md`.
170
171
 
172
+ **Sibling reads.** A `[P]` task that names a file another `[P]` task of the same stage owns (a *sibling read*, the same
173
+ pairs `ambykit analyze` warns about) would run without that file. `--next` **holds it back**: the reader is left out
174
+ of the parallel stage and planned in a later stage of the same phase, once the owner has merged. A chain resolves one
175
+ link per stage; when two tasks name each other's file, the one listed first in `tasks.md` runs first. The plan says
176
+ why, one line per held task, and `--json` adds `held` (`[{ task, waitsFor, paths }]`, absent when nothing is held):
177
+
178
+ ```text
179
+ T013 waits for T012 (it names `docs/x.md`); it runs in a later stage.
180
+ ```
181
+
182
+ One-shot `ambykit lane <feature>` (without `--next`) still prepares the lanes and keeps its exit status, but prints a
183
+ **warning** per pair naming both tasks, the path and `--next`:
184
+
185
+ ```text
186
+ Phase 2: T013 names `docs/x.md`, which T012 writes; they run in parallel lanes. Use `ambykit lane 015-slug --next` to run T013 after T012.
187
+ ```
188
+
189
+ A phase without such a pair is planned and reported exactly as before.
190
+
171
191
  ## `ambykit dashboard [story-id]`
172
192
 
173
193
  Progress view over the story/task graph, computed locally from `specs/*/` files and, for the
@@ -240,7 +260,10 @@ Detection reads the process list only, never sends anything, and stops when you
240
260
  back, `?` lists the keys. Pause, continue and stop are written as directives for the lane's worker,
241
261
  which obeys at its next report; approving a gate is the same action as `ambykit run approve` and
242
262
  writes no directive. Without a run the view says so. It reads local files only (no network, no model
243
- tokens) and is loaded only under `--interactive`.
263
+ tokens) and is loaded only under `--interactive`. When a fleet of two or more features exists (`ambykit run 030 031`),
264
+ the fleet tab groups lanes by feature: a header per feature with its state and what it waits for (or why it is
265
+ paused and how many features that holds), lanes under it, `←`/`→` collapse and expand a feature, and the lane and
266
+ whole-run keys act on the feature under the cursor with the same confirmations. One feature is the view above.
244
267
  - **`--icons=nerd|unicode|ascii`** — icon set. `nerd` (also `AMBYKIT_ICONS=nerd`) shows the
245
268
  worktree tag as the Nerd Font git-branch icon; agent icons stay Unicode. `ascii` uses tags like
246
269
  `[CC] Claude` and `wt`. The default is unicode when the terminal supports it. The setting can also
@@ -262,8 +285,35 @@ Detection reads the process list only, never sends anything, and stops when you
262
285
  status, and `others[]`); without a run the key is absent, so the output is byte-identical to before
263
286
  (`specs/029-fleet-control-room/contracts/dashboard-json-fleet.md`). Bare `--json` is unchanged.
264
287
 
288
+ **Tabs, keys and the shared filter.** `--interactive` is organized as four tabs shown in a bar under the page header (whose crumb names the tab) on every screen:
289
+ `overview`, `fleet`, `graph` and `quality`. `1`-`4` (or `]` and `[`) switch between them from any screen
290
+ (`tab` still moves between panels in the overview); the active tab is bracketed and bold, and `fleet ●`, `graph ⚠` or
291
+ `quality ⚠` mark a tab with something to read first (a stalled or blocked lane, a paused feature, graph problems,
292
+ findings). `?` lists the keys for the tab you are on. `/` searches by text, `s` cycles the state filter and `esc`
293
+ clears them: one filter line under the tab bar (`/ codex s state: all 2 of 6 match esc clear`) applies to the
294
+ list of the tab you are on (features, lanes, stories) and is kept when you change tab; a filter that matches nothing
295
+ says so and how to clear it. `f` still filters features by number or exact name. A tab with nothing to show says what
296
+ is missing and how to get it. Under 60 columns the tab names shorten (`ovw flt gph qlt`) and the key row becomes
297
+ `1-4 tab ? help q quit`; with `--icons=ascii` or no unicode every new glyph has an ASCII form, and a state is
298
+ always a word first.
299
+
300
+ **Workflow metrics.** `ambykit dashboard --json --metrics` adds a `metrics` object to the `--json --overview`
301
+ output (without the flag nothing is added or loaded). It is computed from git history alone, locally, with no model
302
+ call: `phases` has the cycle time per phase (spec: first commit to the commit that sets it `ready`; plan: first
303
+ plan commit to the first tasks commit; tasks: first tasks commit to every task checked; converge: first converge run
304
+ to every gap task checked) per feature and the median, and `gap` has one point per converge run: gap tasks appended
305
+ divided by the feature's requirement count. A converge run is a `tasks.md` commit that adds tasks closing a
306
+ requirement (`(closes FR-###)`). `enough` is `false` (with a `reason`) when fewer than 3 features have a
307
+ completed phase or no converge run is recorded; `skipped` counts revisions that could not be read. Revisions are read
308
+ through the same per-file reader as everything else, so 1.x, 2.x and mixed history give the same numbers. In `--interactive` the same numbers are the **FLOW** panel in the quality tab: the typical
309
+ cycle time per phase with a bar and the three longest features, and the converge gap rate as a sparkline, the latest
310
+ value with its counts and a trend word (`improving` or `worsening` when the latest run is at least 10% below or above
311
+ the median of the earlier ones, else `flat`). It loads after the first paint, and says so when there is too little
312
+ history, no repository or no `git`.
313
+
265
314
  ```bash
266
315
  ambykit dashboard
316
+ ambykit dashboard --json --metrics # + cycle time per phase and converge gap rate
267
317
  ambykit dashboard --interactive # full-screen overview (TTY only)
268
318
  ambykit dashboard --feature=014 # feature view
269
319
  ambykit dashboard --next=10 # longer Up next list
@@ -326,6 +376,7 @@ ambykit fleet claim 019 T012 src/a.ts [--worker=<id>] # refused, naming the ow
326
376
  ambykit fleet release 019 T012
327
377
  ambykit fleet note 019 T012 --files=src/a.ts "one-line note"
328
378
  ambykit fleet directive 019 lane-1-1 # prints continue, pause or stop
379
+ ambykit fleet fleets [<fleet>] [--json] # fleets of several features: features, runs and lanes, with causes
329
380
  ```
330
381
 
331
382
  `start` creates nothing for a feature that is already done or whose spec, plan or tasks are missing or draft.
@@ -336,11 +387,12 @@ tasks. `--worker-start` is refused when no slot is free; `--restart` is refused
336
387
  restarts, pausing the lane and asking a person. `--round` prints `retry` or `escalate` and, on `escalate`,
337
388
  waits for a decision. Pause, resume and stop go through the same writer as `ambykit directive`.
338
389
 
339
- ## `ambykit run <feature>` (experimental)
390
+ ## `ambykit run <feature>`
340
391
 
341
392
  Run a feature's **prepared lanes** headless: one assistant per lane, in that lane's worktree, supervised,
342
- merged and reviewed, without a person at the keyboard. **Experimental in 1.6** (the flags and the runner
343
- commands may change before it is stable in 2.0). Launching processes that edit code is the riskiest thing
393
+ merged and reviewed, without a person at the keyboard. **Stable from 2.0**: one fleet built two dependent features of this
394
+ repository with a verified runner ([`specs/033-stable-run-and-plugin-api/dogfood.md`](../specs/033-stable-run-and-plugin-api/dogfood.md)); what it promises is listed in [`stability.md`](./stability.md), and
395
+ `ambykit run --runners` shows where and for which versions each runner was verified). Launching processes that edit code is the riskiest thing
344
396
  AmbyKit does, so nothing starts without `--yes`, and an assistant without a **verified** runner is refused.
345
397
 
346
398
  ```bash
@@ -354,9 +406,18 @@ ambykit run approve|reject <run> [--gate=<id>] [--reason=<text>]
354
406
  ambykit run approve <run> --reassign=lane-1-1:codex # a person's approval to move a lane to another assistant
355
407
  ```
356
408
 
357
- - **Prepare first.** `ambykit lane <feature>` creates the lanes; `run` never creates or removes them. It runs
358
- the prepared sets in ascending phase order and starts a run only on this explicit request, named
359
- `<feature>.<n>`. A second `run` on a feature with an unfinished run refuses and points at `--continue-run`.
409
+ - **Every task, in order.** A run covers every open task of the feature, stage by stage. A stage is the next run
410
+ of consecutive open tasks of the lowest phase, in `tasks.md` order: consecutive tasks without `[P]` run as one serial
411
+ lane (one worker, in order), consecutive `[P]` tasks run as parallel lanes. The next stage is prepared
412
+ (`ambykit lane <feature> --next`) only after the previous one merged, so it starts from the merged code; story
413
+ checkpoints still come between phases. A `[P]` task that names a file another task of its stage owns is **held
414
+ back** to a later stage of the same phase, after the owner merged (see `ambykit lane`, Sibling reads), so no lane
415
+ works against a file that does not exist yet; this costs one more stage and review round. With no prepared lanes, `--yes` prepares the first stage; lanes prepared by
416
+ hand (`ambykit lane`) run first. A run is named `<feature>.<n>` and starts only on this explicit request; a second
417
+ `run` on a feature with an unfinished run refuses and points at `--continue-run`.
418
+ - **What a lane may run.** `ambykit` (its status reports) and the check commands in `fleet.allowedCommands` (default
419
+ `npm test`, `npx vitest`, `npm run typecheck`), so a worker tests its work before ticking a task and QA runs the
420
+ phase's Verify check. Every other shell command is refused.
360
421
  - **What a lane gets.** Its task IDs, the artifacts by `@path` reference, the files it owns and the report
361
422
  protocol: nothing else is copied in. A restart lists only the tasks still unchecked.
362
423
  - **Caps.** `fleet.concurrency` (default 3 in total, 2 of one assistant). Lanes beyond the cap start as slots free.
@@ -367,7 +428,10 @@ ambykit run approve <run> --reassign=lane-1-1:codex # a person's approval to mo
367
428
  - **Review before merge.** A finished lane is reviewed by QA, then the architect, each launched as a process of the
368
429
  lane's assistant, using spec 019's verdict files (`verdicts/<lane>.<role>.<round>.json`). A failure goes back to
369
430
  the same lane's worker as finding IDs only; after `fleet.roundLimit` (3) failed rounds a person is asked. A
370
- lane whose phase **Verify** line failed is never merged.
431
+ lane whose phase **Verify** line failed is never merged. When a phase's last stage runs several lanes in parallel,
432
+ each lane is judged on its own tasks and the phase's Verify line runs once, after they all merged, in the feature
433
+ branch's checkout (`verdicts/phase-<n>.qa.<round>.json`); the result is recorded in `tasks.md`, and a failure stops
434
+ the run until a person fixes it and continues.
371
435
  - **Merges.** One lane at a time in name order, with the check-off-aware merge of `ambykit lane merge`. A real
372
436
  conflict pauses that merge and the run waits; resolve it by hand and the run carries on. A lane that ends with
373
437
  tasks open is `unfinished` and never merged.
@@ -378,13 +442,60 @@ ambykit run approve <run> --reassign=lane-1-1:codex # a person's approval to mo
378
442
  - **Budgets.** Wall-clock (default 120 minutes) and task events (twice the open tasks) are always enforced; a
379
443
  token ceiling (`--max-tokens`) only where the runner reports usage, and the run says so when it cannot. Going
380
444
  over stops launching, writes a `stop` directive for each running lane, records why, and terminates a lane that
381
- still has not reported after `fleet.stopGraceMinutes` (10).
445
+ still has not reported after `fleet.stopGraceMinutes` (10). Time spent waiting for a person (at a story checkpoint
446
+ or on a failed, paused, conflicted or escalated lane) while no lane is running is not counted against the
447
+ wall-clock budget.
382
448
  - **Directives.** `ambykit directive` (or the dashboard, or `/amby.run`) pauses, resumes or stops a lane from any
383
449
  host; the worker finishes its task and obeys at its next report, and the run records it. Ctrl-C saves and
384
450
  exits; `--continue-run` carries on and repeats no completed task.
385
451
  - **State** is `.amby/fleet/<run>/`, the same layout `/amby.run` uses, so either host can inspect, pause or
386
452
  continue the other's run. Nothing is written outside the project.
387
453
 
454
+ ### Fleets: several features at once
455
+
456
+ Name several features, or `--all-ready`, and `run` plans their lanes as **one fleet**: one command schedules the
457
+ lanes of every feature, each feature keeps its own worktree, run, gates and merge, and one supervisor owns what is
458
+ shared. One feature, however it is named or repeated, is the single run described above and behaves exactly as
459
+ before.
460
+
461
+ ```bash
462
+ ambykit run 030 031 032 # print the fleet plan (order, waits, shared files, caps, budgets); launch nothing
463
+ ambykit run 030 031 032 --yes # start it
464
+ ambykit run --all-ready --yes # every ready feature; the plan lists the skipped ones with reasons
465
+ ambykit run --continue-fleet=fleet-1 --yes # resume a stopped fleet: re-plans, repeats no completed lane
466
+ ambykit run pause|stop|resume fleet-1 # one directive per lane of every feature, through spec 025's writer
467
+ ambykit fleet fleets [fleet-1] [--json] # every feature's run and lanes, why a feature is paused, what it holds
468
+ ```
469
+
470
+ - **Order.** A feature waits for what it depends on: its feature-level `depends-on` (2.x frontmatter) and any story
471
+ edge (`NNN:US-#`), read through the same per-file reader as everything else, so 1.x, 2.x and mixed projects behave
472
+ alike. A dependency that is not in the fleet and not done, or a cycle, stops the plan before anything starts.
473
+ - **Shared files.** Features that own the same file are serialized, in dependency order and then by feature
474
+ number, and the plan names the shared files. A task with no usable ownership (no trailing path, no `files` entry,
475
+ or a glob) is flagged by id as `unknown ownership: T###`, and its feature is treated as owning everything.
476
+ - **"Merged".** A feature is ready for what waits for it when its lanes are merged into **its own branch**. Merging a
477
+ feature into `main` stays a person's decision. Before a dependent (or a serialized feature) starts, the finished
478
+ feature's branch is merged into its branch and its prepared lanes are brought up to date; a conflict pauses that
479
+ feature only and is never resolved automatically.
480
+ - **Lanes.** A feature with no worktree gets one (`ambykit worktree`) when it starts. A feature with no prepared lanes
481
+ gets its first stage from `ambykit lane --next` when it starts (up to 2 lanes, after its dependencies are merged, so
482
+ they branch from the merged result), and each later stage after the previous one merged, as for a single run; when
483
+ that fails the feature pauses with the exact command to run by hand. `--continue-fleet` previews like a new fleet and
484
+ launches only with `--yes`; it keeps the fleet's saved budgets, except those given again with `--max-minutes`,
485
+ `--max-tasks` or `--max-tokens`, and names what changed.
486
+ - **Caps and budgets are fleet-wide.** `fleet.concurrency` (default 3 in total, 2 of one assistant) counts the lanes
487
+ of every feature, and overrides the per-feature use of the same setting, which applies only when a feature runs
488
+ alone. Wall-clock, task events and the token ceiling are the fleet's: task events and tokens are summed,
489
+ wall-clock is the fleet's own elapsed time. A token ceiling is enforced only where every runner reports usage, and
490
+ the plan says so when it cannot be.
491
+ - **Containment.** A feature whose lane pauses, conflicts or is escalated pauses, and so does everything that depends
492
+ on it (it is *held*); independent features keep running. Resuming the lane releases the dependents. A story
493
+ checkpoint or a merge conflict waits only its own feature.
494
+ - **State** is `.amby/fleet/fleet-<n>/`: `fleet.json` (features in planned order, what each waits for, ownership,
495
+ a fingerprint of what the plan was made from) and the per-feature runs `<feature>.<n>/`, nested one level down.
496
+ `report_activity` without a run finds a feature's unfinished run there. `--continue-fleet` re-plans, says which
497
+ features changed since (edited tasks or dependencies), and continues the same runs.
498
+
388
499
  `run` uses the single `fleet` object in `.amby/config.json` (`stallMinutes`, `restartLimit`, `concurrency`,
389
500
  `roundLimit`, `tickSeconds`, `budgets`, `workerModel`) and adds two keys: `stopGraceMinutes` and `runners` (the
390
501
  assistants lanes are spread over, in order; default the configured `tools`). Both headless runners start
@@ -403,6 +514,20 @@ where at least one is `[P]`, are reported as **Lane conflicts** (by task id and
403
514
  non-zero. Open tasks with no usable path, or a glob, are listed as warnings and do not affect the
404
515
  exit code.
405
516
 
517
+ Also checks **sibling reads** (a warning; the exit code never changes): an open `[P]` task whose description names a
518
+ path that another open `[P]` task of the same stage owns (the same path, or a path under a folder it owns) would run
519
+ against a file that its lane does not have yet. Tasks are in the same stage when they are in the same phase with no
520
+ non-parallel task between them. Paths in backticks, in plain text or with `./` in front count alike; a task's own
521
+ paths, checked-off tasks and paths no task owns are ignored. Each finding is one line under **Parallel tasks reading
522
+ a sibling's output**, for example:
523
+
524
+ ```text
525
+ 039-slug phase 2: T013 names `docs/x.md`, which T012 writes; both are [P] in the same stage — order T013 after T012 (drop its [P], or move it after a non-parallel task or to a later phase)
526
+ ```
527
+
528
+ One line per (reading task, owning task) pair, listing every path of that owner it names. In `--json` the findings
529
+ are `lanes.reads`, entries `{feature, phase, reader, owner, paths}`, present only when there is at least one.
530
+
406
531
  Also reports, as warnings only (the exit code never changes), what the task file says about itself:
407
532
 
408
533
  - **Blocked tasks** — open tasks with a `BLOCKED: <reason>` marker, and **Deviations** — tasks with
@@ -426,9 +551,22 @@ Test design adds one more key, `testDesign`: `findings` (`feature`, `kind`, `mes
426
551
  `missing` (the features that have no `tests.md`). It is present only when at least one feature has a `tests.md`,
427
552
  so a project without test design reports exactly what it did before.
428
553
 
554
+ - **Decisions** — when [decision records](./artifacts/decision-record.md) or `ADR-###` citations exist, a
555
+ `decisions` section lists their problems. A **dangling citation** (an `ADR-###` with no record) is an error
556
+ (exit 1) by default. A project that cites a record before writing it can lower that one check to a warning
557
+ in `.amby/config.json`:
558
+
559
+ ```json
560
+ { "decisions": { "danglingCitation": "warning" } }
561
+ ```
562
+
563
+ `decisions.danglingCitation` takes `"error"` (the default) or `"warning"`; any other value is refused when the
564
+ config is read. Under `"warning"` the citation is still listed, `--json` carries it with `"level": "warning"`
565
+ (no new keys), and it no longer fails the exit status. Every other decision check keeps its own level.
566
+
429
567
  ```bash
430
568
  ambykit analyze
431
- ambykit analyze --json # includes lanes.conflicts and lanes.declarations
569
+ ambykit analyze --json # includes lanes.conflicts and lanes.declarations (lanes.reads when present)
432
570
  # plus blockedTasks, deviations, markerIssues, verifyIssues, testDesign when present
433
571
  ```
434
572
 
@@ -502,6 +640,54 @@ it("019:FR-004, 020:FR-001: shared behavior", () => { … }); // several ids
502
640
  - Only `it`/`test` titles are read: an id in a `describe(...)` name does not cite the tests beneath it,
503
641
  and `.each` titles are not expanded.
504
642
 
643
+ ## `ambykit migrate [feature] [--dry-run] [--diff] [--dual-write]`
644
+
645
+ Convert the 1.x `spec.md` and `tasks.md` files of this checkout to the v2 format (no model tokens). Story status, priority,
646
+ `depends-on` and `blocked-by` move into the spec's frontmatter `stories:` list and `(priority: Pn)` leaves the headings; each
647
+ phase's `(file/path)` groups and its Verify line move into one `yaml` block (`files:` and `verify:`); both files gain
648
+ `format: 2`. Prose, checkboxes, `⚠ BLOCKED:` and `↪ DEVIATION:` markers and every other byte stay as they were, in the file's own
649
+ line endings. A feature argument (number or directory name) limits it to one feature; only this checkout is touched, never
650
+ another worktree.
651
+
652
+ ```bash
653
+ ambykit migrate --dry-run # write nothing; print what would change
654
+ ambykit migrate --diff # also print each unified diff
655
+ ambykit migrate # convert; a second run changes nothing
656
+ ambykit migrate 023 # one feature
657
+ ambykit migrate --dual-write # keep the 1.x lines beside the v2 data (transitional)
658
+ ```
659
+
660
+ It is non-destructive by construction:
661
+
662
+ - A file it cannot convert provably is **left untouched and listed** with the reason and the fix: story metadata inside a
663
+ sentence or a code fence, two status bullets for one story, task or Verify markup inside a code fence, two Verify lines in a
664
+ phase, a repeated task id, mixed line endings, a byte-order mark.
665
+ - Every conversion is **read back** through the real readers and skipped if its meaning differs from the 1.x reading.
666
+ - Each file is **written once**: to a temp file in the same directory, then renamed over the original, after comparing the
667
+ file with what was read (skipped if someone edited it meanwhile). An interrupted run leaves every file either old or new.
668
+ - Uncommitted changes in a file it converts are named in a warning before it writes.
669
+ - The config gets `schemaVersion: 2` with every setting kept. A newer or unparseable config is left unmodified and reported.
670
+
671
+ A 1.x AmbyKit reads a v2 file without an error but loses story statuses, dependencies, file ownership and Verify results, so
672
+ upgrade every tool that reads the specs before committing the migrated files, or use `--dual-write` meanwhile. See
673
+ [Migrating to the v2 spec format](./migration.md).
674
+
675
+ ## `ambykit edit`
676
+
677
+ ```bash
678
+ ambykit edit files <feature> <T###> <path…>
679
+ ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<text>]
680
+ ambykit edit status <feature> <US-#> <status>
681
+ ```
682
+
683
+ Set a task's files, a phase's Verify result or a story's status in the right place for the file's format, so nobody
684
+ hand-edits YAML: a typo in a block can make a whole phase unreadable. In a v2 file it edits the phase block (`files:`,
685
+ `verify:`) or the frontmatter story entry; in a 1.x file the same command edits the trailing group, the result suffix on the
686
+ Verify line or the `**status:**` bullet. It changes only that one field, reads the file back and refuses (writing nothing) if
687
+ anything else would change. It refuses an unknown task, story, phase or feature, an invalid status or result, a glob path, and
688
+ a v2 file that already has a located format error (it names the file and line). Output is one line, e.g.
689
+ `T004 files set: src/a.ts`. The phase prompts use it; it takes the same per-file lock as the MCP tick and status tools.
690
+
505
691
  ## `ambykit check`
506
692
 
507
693
  Doctor: verify integrations are present and well-formed and that expected assistant CLIs are
@@ -509,6 +695,13 @@ installed. Reports drift between the neutral source and emitted files, worktrees
509
695
  already merged, and role problems in `.amby/roles/` (oversized roles, duplicate ids, shipped
510
696
  defaults that were deleted — `ambykit sync` reinstalls those).
511
697
 
698
+ It also reports problems in the [decision records](./artifacts/decision-record.md), one `[kind] message` line each,
699
+ computed by the same analysis as the `decisions` section of [`ambykit analyze`](#ambykit-analyze), so both list the
700
+ same problems at the same levels. A dangling `ADR-###` citation is an error (exit 1, no "Healthy") unless
701
+ `decisions.danglingCitation` is `"warning"` in `.amby/config.json`; warning-level problems, such as a record missing
702
+ from the index, never change the exit status. A project with no decision records and no citations sees no change;
703
+ `analyze` stays the full report.
704
+
512
705
  ## `ambykit update`
513
706
 
514
707
  Update the AmbyKit CLI to the latest published version, then refresh this project's tool prompts.
@@ -51,9 +51,15 @@ run `ambykit sync` and include the regenerated files in your commit.
51
51
 
52
52
  ## Release checklist
53
53
 
54
+ These apply to every core release. The 2.0 release adds a candidate, a gate and a rollback plan: follow
55
+ [`release.md`](./release.md) for it. Official plugins are released by their own tags ([`plugins-release.md`](./plugins-release.md)).
56
+
54
57
  - Move the `[Unreleased]` entries in `CHANGELOG.md` under the new version and bump `package.json`.
55
58
  - **Plugins:** state in the changelog whether plugins are affected. A change to anything in
56
59
  [`plugin-api.md`](./plugin-api.md) (extension points, the `PluginApi`, the matrix-row shape, the
57
60
  `ambykit.pluginApi` range, `PLUGIN_API_VERSION`) gets a line starting `[plugin-api]`; otherwise write
58
61
  "Plugins: not affected." If the API changed incompatibly, bump `PLUGIN_API_VERSION`.
62
+ - **Spec format (2.x):** `ambykit migrate` ships with the reader. Before 2.1 stops reading 1.x files (`LEGACY_READING`
63
+ in `src/core/spec-format/legacy.ts`, which a test keeps "on" until feature 035's go decision is accepted), confirm that no migration issue has been open for a release and record it
64
+ in the changelog.
59
65
  - Run `npm run typecheck`, `npm test` and `ambykit sync --check`.