@ambystech/ambykit 1.6.0 → 2.0.0-rc.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 (392) hide show
  1. package/CHANGELOG.md +154 -1
  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
@@ -0,0 +1,152 @@
1
+ # Stability
2
+
3
+ What AmbyKit promises not to break, and how it changes what it promises. This page is the **contract** for two surfaces: the
4
+ `ambykit run` command and the plugin API (with its contract test kit). It is read by a test
5
+ (`test/stability-contract.test.ts`): every item in a `contract` block below is checked against the code, so this page and the
6
+ code cannot drift apart. A promise without a check is not a promise.
7
+
8
+ ## What "stable" promises
9
+
10
+ Stable means a person can build on a surface and expect it to keep working across the minor releases of a major version.
11
+ A breaking change to anything listed on this page is held for the next major release (see
12
+ [Changing what is stable](#changing-what-is-stable)).
13
+
14
+ Two surfaces are covered, each listed in its own section below:
15
+
16
+ - **`run`:** the `ambykit run` command: its flags, its exit codes, the structure of the lines it prints, the layout of the
17
+ fleet state files and the directive protocol.
18
+ - **The plugin API:** the names a plugin imports from `@ambystech/ambykit/plugin`, the shape of a plugin's descriptor, the rules
19
+ the loader applies, and the contract test kit published as `@ambystech/ambykit/testkit`.
20
+
21
+ Anything **not listed** on this page is not covered, and changing it is not a breaking change. That includes every internal
22
+ module, the wording of messages other than the lines listed, the contents of a state file beyond the fields listed, and the
23
+ loader, registry and range-check internals. If you depend on something that is not listed, open an issue so it can be listed
24
+ (and tested) or so you can be pointed at what is.
25
+
26
+ ## Additions
27
+
28
+ Additions are allowed in a minor release. A new flag, a new exported name, a new field in a state file, a new line, a new
29
+ subcommand or a new target for plugins does not break what is listed, so it can ship in any minor release, and it becomes
30
+ covered only when it is added to this page (with its check). A tool that reads these surfaces must ignore what it does not know.
31
+
32
+ ## Changing what is stable
33
+
34
+ Nothing listed on this page is removed or changed incompatibly without notice. The policy, in order:
35
+
36
+ 1. **Deprecate in a minor release.** A stable flag, subcommand, exported name, state-file field or printed line is first
37
+ *deprecated* in a minor release. The old name keeps working exactly as before. The replacement exists from that release on.
38
+ 2. **One notice, once per run, on stderr.** Using a deprecated name prints one line that names the replacement
39
+ (`ambykit: '<name>' is deprecated and will be removed in the next major release; use '<replacement>' instead.`), once per
40
+ process, to the error stream. It never goes to the output stream, so `--json` output and pipes are not disturbed.
41
+ 3. **Remove only in the next major release.** A deprecated name is removed no earlier than the next major version, and the
42
+ changelog says so when it is deprecated and again when it is removed.
43
+ 4. **Security exception.** A fix for a security problem may break a stable behaviour in a minor or patch release when keeping it
44
+ would leave people exposed. The changelog must say that a stable behaviour changed, what changed and why.
45
+
46
+ Nothing is deprecated at 2.0. A name deprecated in a later 2.x release keeps working for plugins and scripts written for 2.0 until
47
+ 3.0. The notice is produced by one helper (`src/core/deprecation.ts`), so every deprecation reads the same.
48
+
49
+ ## The `run` surface
50
+
51
+ `ambykit run` launches a feature's prepared lanes with headless assistants, supervises them and merges the result; `ambykit run
52
+ <feature> <feature>…` does the same for several features as one fleet. Stable means these stay as listed:
53
+
54
+ - **Flags and subcommands:** each name below is accepted, with the meaning in `docs/cli-reference.md`. Nothing launches without
55
+ `--yes`; `--emit-script` writes the commands and launches nothing.
56
+ - **Exit codes:** `0` when the command did what was asked, `1` when it could not (a missing feature, a refused runner, a failed
57
+ or paused run). No other code is promised.
58
+ - **Printed lines:** the structure of the plan lines and the finish line, with `<…>` standing for the value. Other wording is not
59
+ covered.
60
+ - **State files:** `.amby/fleet/<run>/` holds one run (`<feature>.<n>`): its record, its event log, its budget counters, one file
61
+ per lane, the prompt each lane was given and one directive per lane. A fleet of several features has its own directory
62
+ `.amby/fleet/<fleet>/` (`fleet-<n>`) with a `fleet.json` and the runs of its features. The files are readable without a model; only
63
+ the fields listed are promised.
64
+ - **Directive protocol:** a directive is `{ "action": …, "at": … }` at `.amby/fleet/<run>/directives/<lane>.json`; `action` is one
65
+ of `continue`, `pause` or `stop`. The last write wins and a missing file means continue; a worker obeys at its next report.
66
+
67
+ ```contract
68
+ {
69
+ "surface": "run",
70
+ "subcommands": ["approve", "reject", "pause", "stop", "resume"],
71
+ "flags": [
72
+ "--all-ready", "--yes", "--emit-script", "--assistant", "--unattended", "--max-minutes", "--max-tasks", "--max-tokens",
73
+ "--continue-run", "--continue-fleet", "--json", "--runners", "--gate", "--reason", "--reassign"
74
+ ],
75
+ "exitCodes": [0, 1]
76
+ }
77
+ ```
78
+
79
+ ```contract
80
+ {
81
+ "surface": "run",
82
+ "printed": [
83
+ "Run plan for <feature> — run <run>",
84
+ "Lanes: <n>",
85
+ "Budgets: <n> minutes wall-clock",
86
+ "Run <run> is done: every lane merged."
87
+ ],
88
+ "stateFiles": [
89
+ ".amby/fleet/<run>/run.json",
90
+ ".amby/fleet/<run>/events.jsonl",
91
+ ".amby/fleet/<run>/budget.json",
92
+ ".amby/fleet/<run>/lanes/<lane>.json",
93
+ ".amby/fleet/<run>/prompts/<lane>.md",
94
+ ".amby/fleet/<run>/directives/<lane>.json",
95
+ ".amby/fleet/<fleet>/fleet.json"
96
+ ],
97
+ "directiveActions": ["continue", "pause", "stop"],
98
+ "directiveFields": ["action", "at"]
99
+ }
100
+ ```
101
+
102
+ `run` is **stable from 2.0**: one fleet built two dependent features of this repository with a verified runner (see
103
+ `specs/033-stable-run-and-plugin-api/dogfood.md`); this list is what the stable label promises, and a runner is runnable only where it
104
+ was verified (`ambykit run --runners`).
105
+
106
+ ## The plugin API surface
107
+
108
+ A plugin is an npm package named `ambykit-emitter-<name>` that adds emitter targets. Stable means a plugin written against this API
109
+ keeps loading and passing the contract kit across the minor releases of its major version. A plugin declares the API range it
110
+ supports in its `package.json` (`"ambykit": { "pluginApi": "^2" }`), and the API version is `apiVersion` on the object a factory
111
+ receives.
112
+
113
+ - **Exported names:** what a plugin may import from `@ambystech/ambykit/plugin`, values and types. Everything else in the package
114
+ (the loader, the registry, the range check, the emitter internals) is internal.
115
+ - **Descriptor shape:** the default export is an object, or a factory that receives the API and returns one, of the form
116
+ `{ targets: [ { id, displayName, emitter: { toolId, displayName, commandSurface, commandDir, emit } } ] }`. The loader checks
117
+ the shape, never `instanceof`.
118
+ - **Loading rules:** only packages listed in `.amby/config.json` are looked at; the listed version is an exact `x.y.z`; the package
119
+ is found only under the project's own `node_modules`; its name starts with `ambykit-emitter-`; and its declared API range must
120
+ contain the running API version. There is no sandbox: a plugin runs with your permissions (`docs/plugin-trust.md`).
121
+
122
+ ```contract
123
+ {
124
+ "surface": "plugin",
125
+ "exports": [
126
+ "PLUGIN_API_VERSION", "BaseEmitter", "SkillsEmitter", "TomlCommandEmitter", "skillName", "skillPath", "skillFrontmatter",
127
+ "tomlBasic", "tomlPrompt", "MCP_SERVER_NAME", "MCP_COMMAND"
128
+ ],
129
+ "exportTypes": [
130
+ "TargetDef", "CommandSpec", "CommandSurface", "EmittedFile", "RulesContext", "Role", "PluginModule", "PluginFactory", "PluginApi"
131
+ ],
132
+ "descriptor": [
133
+ "targets", "targets[].id", "targets[].displayName", "targets[].emitter", "targets[].emitter.toolId",
134
+ "targets[].emitter.displayName", "targets[].emitter.commandSurface", "targets[].emitter.commandDir", "targets[].emitter.emit"
135
+ ],
136
+ "loadingRules": ["exact-pin", "project-node-modules", "package-name", "api-range"]
137
+ }
138
+ ```
139
+
140
+ ## The contract test kit
141
+
142
+ `@ambystech/ambykit/testkit` checks that an emitter writes what its host's documentation says: the command paths and the leading
143
+ frontmatter keys, against a matrix row the plugin author records from the host's own docs. With no row the check fails. Stable
144
+ means these names and their behaviour; the kit checks only the surface listed here and nothing outside it.
145
+
146
+ ```contract
147
+ {
148
+ "surface": "kit",
149
+ "exports": ["assertEmitterContract", "checkEmitterContract", "frontmatterKeys", "createPluginApi"],
150
+ "exportTypes": ["ContractFailure", "MatrixRow", "PluginApi"]
151
+ }
152
+ ```
@@ -17,8 +17,8 @@ Several targets share one emitter's output (why `BaseEmitter` + thin subclasses
17
17
  | OpenCode | `OpenCodeEmitter` | `commands` |
18
18
  | Cursor | `CursorEmitter` | `commands` |
19
19
  | Cursor CLI (`cursor-agent`) | `CursorCliEmitter` | `none` (rules-only) |
20
- | Antigravity (IDE) | `AntigravityEmitter` | `skills` (workflows retired 2026-10-19) |
21
- | Antigravity CLI (`agy`) | `AntigravityCliEmitter` | `skills` (reuses Antigravity) |
20
+ | Antigravity (IDE) | official plugin `@ambystech/ambykit-emitter-antigravity` | `skills` (workflows retired 2026-10-19) |
21
+ | Antigravity CLI (`agy`) | official plugin `@ambystech/ambykit-emitter-antigravity` | `skills` (reuses Antigravity) |
22
22
  | Codex CLI (`codex`) | `CodexEmitter` | `skills` |
23
23
  | Gemini CLI (`gemini`) | `GeminiEmitter` | `commands` (TOML) |
24
24
  | LLxprt Code (`llxprt`) | `LlxprtEmitter` | `commands` (TOML) |
@@ -195,7 +195,7 @@ currently affect only the worktree tag, which uses Octicons `oct-git_branch` U+F
195
195
  Unicode in every mode: the brand glyphs (`cod-claude` U+EC82, `cod-openai` U+EC81) only arrived in
196
196
  recent Nerd Fonts (present in v3.5.1), and older installs render them as empty boxes.
197
197
 
198
- ## Headless runners (`ambykit run`, feature 028, experimental)
198
+ ## Headless runners (`ambykit run`, feature 028)
199
199
 
200
200
  `ambykit run` launches one assistant per lane without a person at the keyboard. Only a **verified** runner is
201
201
  ever launched (Principle 4); the registry in `src/core/runners.ts` and this table carry the same rows, and a
@@ -204,8 +204,29 @@ install (the manual tasks T044 and T045 of spec 028), with the CLI version recor
204
204
 
205
205
  | Runner | Command (prompt on stdin) | Exit behaviour | Reports usage | Status | Version |
206
206
  | --- | --- | --- | --- | --- | --- |
207
- | `claude` | `claude -p` | 0 = finished its turn; non-zero = failed | no | unverified | — |
208
- | `codex` | `codex exec -` | 0 = finished; non-zero = failed | no | unverified | — |
207
+ | `claude` | `claude -p --permission-mode acceptEdits --allowedTools Bash(ambykit:*),PowerShell(ambykit:*),Bash(npm test:*),PowerShell(npm test:*),Bash(npx vitest:*),PowerShell(npx vitest:*),Bash(npm run typecheck:*),PowerShell(npm run typecheck:*) --output-format json` | 0 = finished its turn; non-zero, an error result or refused tools with tasks left open = failed | yes | verified | 2.1.332 |
208
+ | `codex` | `codex exec --sandbox workspace-write -c approval_policy="never" -c windows.sandbox="unelevated" --json -` | 0 = finished its turn; non-zero or a `turn.failed` event = failed | yes | unverified | — |
209
+
210
+ The `claude` command was changed after a live check on Windows (claude 2.1.332): plain `claude -p` exited 0 having
211
+ done nothing, because every edit and shell command needs an approval nobody gives headless. `acceptEdits` allows the
212
+ lane's file edits, the allowed tools add `ambykit` itself and the check commands in `fleet.allowedCommands`
213
+ (default `npm test`, `npx vitest`, `npm run typecheck`, so a worker runs the tests before it ticks a task and QA runs the
214
+ phase's Verify check), each as a prefix rule on Bash and on PowerShell (Windows); every other shell command stays
215
+ denied. `--output-format json` ends the run with one result object. `ambykit run` reads it: its usage is counted against
216
+ the token ceiling, and an error result, or refused tools with tasks left open, fails the lane even on exit 0. A QA or
217
+ architect job also gets `--add-dir <run directory>`, because it writes its verdict there, outside the lane checkout it
218
+ runs in.
219
+
220
+ The `codex` command was set after a live check on Windows (codex-cli 0.174.0; `specs/033-stable-run-and-plugin-api/verification/codex-windows.md`). Plain `codex exec -` exited 0 having done nothing:
221
+ its default sandbox is read-only. `--sandbox workspace-write` lets the lane write in its directory (plus each `--add-dir`
222
+ and the temp folders) and nowhere else, and `approval_policy="never"` hands a refused command back to the model instead
223
+ of waiting for a person. `windows.sandbox="unelevated"` is passed because the `elevated` Windows sandbox waited headless
224
+ with no event; the key is read only on Windows. Codex has **no per-command allow list**: a Codex lane may run any command
225
+ inside the sandbox, so `fleet.allowedCommands` is only named in its prompt, and the sandbox is what is enforced. `--json`
226
+ prints one event per line; `ambykit run` reads usage from `turn.completed` and fails the lane on `turn.failed`.
227
+ **Codex is not verified:** that `unelevated` sandbox blocks child processes (`spawn EPERM`), so a Codex lane cannot run
228
+ `npm test`, `npx vitest` or `node --test`, and QA fails every phase whose Verify line runs tests. `ambykit run` refuses
229
+ codex until a headless sandbox mode that allows child processes is recorded.
209
230
 
210
231
  To confirm on a live install, per runner: the non-interactive flag, how the prompt is delivered (stdin, an
211
232
  argument or a file), the permission or sandbox flags a headless edit needs, the exit codes, and whether usage
@@ -234,7 +255,7 @@ AGENTS.md guide). Gemini CLI, LLxprt, Qwen Code, Kilo, Augment, Windsurf, Kiro a
234
255
 
235
256
  ## Matrix rows for plugins
236
257
 
237
- The matrix above is prose for people. A plugin (feature 027, experimental) records the same facts as
258
+ The matrix above is prose for people. A plugin (feature 027, stable from 2.0) records the same facts as
238
259
  **data**, so the test kit in `@ambystech/ambykit/testkit` can check an emitter against them. One row
239
260
  describes one target:
240
261
 
package/docs/workflow.md CHANGED
@@ -60,7 +60,9 @@ needed. See [the plan artifact](./artifacts/plan.md).
60
60
  ## 7. Tasks
61
61
 
62
62
  Turns the plan into an ordered, dependency-aware checklist: stable `T###` IDs, `[P]` parallel
63
- markers, `[US#]` story tags, and file paths, grouped so foundational work precedes feature work. See
63
+ markers, `[US#]` story tags, and each phase's file ownership and Verify check in one `yaml` block, grouped
64
+ so foundational work precedes feature work. New features are written in the v2 format
65
+ ([migrating existing ones](./migration.md)). See
64
66
  [the tasks artifact](./artifacts/tasks.md). The same phase also writes `tests.md`, the test design: one case per
65
67
  acceptance criterion with an automate-or-manual decision, decided before any code. See
66
68
  [the tests artifact](./artifacts/tests.md).
@@ -73,13 +75,14 @@ Cross-checks spec ↔ plan ↔ tasks for coverage gaps and inconsistencies, and
73
75
  ## 9. Implement
74
76
 
75
77
  Executes tasks one slice at a time, checking off `tasks.md` checkboxes and updating each story's
76
- `status:` as it goes — which is what `ambykit dashboard` reports on.
78
+ status as it goes (with `ambykit edit status`, so nobody hand-edits the YAML) — which is what
79
+ `ambykit dashboard` reports on.
77
80
 
78
81
  A task that cannot proceed gets a trailing `⚠ BLOCKED: <reason>` marker (and `↪ DEVIATION: <note>` when it
79
82
  was done differently than planned); the implementer moves on to another unblocked task. Each phase ends
80
- with one `**Verify:**` line that is run before the checkpoint, and its result (`✓ passed`,
81
- `✗ failed: <why>`, `? unverified`) is written back on that line; a failed Verify keeps the checkpoint
82
- closed. `ambykit dashboard` and `ambykit analyze` surface both at zero model tokens. Syntax:
83
+ with one Verify check (a `verify:` entry in the phase block, or a `**Verify:**` line in a 1.x file) that is run
84
+ before the checkpoint, and its result (`passed`, `failed` with a reason, `unverified`) is recorded with
85
+ `ambykit edit verify`; a failed Verify keeps the checkpoint closed. `ambykit dashboard` and `ambykit analyze` surface both at zero model tokens. Syntax:
83
86
  [tasks artifact](./artifacts/tasks.md).
84
87
 
85
88
  ## 10. Converge
@@ -165,6 +168,7 @@ prompt once and running `ambykit sync` updates all of them.
165
168
  ## Dependencies & prioritization
166
169
 
167
170
  Stories and features carry `priority` (P1/P2/P3) and `depends-on`/`blocked-by` references by stable
168
- ID. `tasks` orders work topologically within the foundational-first gate; `analyze` validates the
171
+ ID, in the spec's frontmatter `stories:` list (and a feature may declare `depends-on` on other features).
172
+ `tasks` orders work topologically within the foundational-first gate; `analyze` validates the
169
173
  graph; `dashboard` shows blocked vs. buildable. See [the spec artifact](./artifacts/spec.md) for the
170
174
  metadata shape.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ambystech/ambykit",
3
- "version": "1.6.0",
3
+ "version": "2.0.0-rc.1",
4
4
  "description": "Spec-Driven Development framework that helps AI coding assistants build better software — author your specs, user stories, UI design, plans and tasks once, and emit native config for Claude Code, OpenCode, GitHub Copilot, Cursor, Antigravity and more.",
5
5
  "keywords": [
6
6
  "spec-driven-development",
@@ -56,12 +56,14 @@
56
56
  "docs"
57
57
  ],
58
58
  "engines": {
59
- "node": ">=20"
59
+ "node": ">=22"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsc -p tsconfig.json",
63
63
  "dev": "tsc -p tsconfig.json --watch",
64
64
  "typecheck": "tsc -p tsconfig.json --noEmit",
65
+ "build:plugins": "node scripts/build-plugins.mjs",
66
+ "release:check": "node scripts/release-gate.mjs --version 2.0.0",
65
67
  "test": "vitest run",
66
68
  "test:watch": "vitest",
67
69
  "prepublishOnly": "npm run build"
@@ -16,7 +16,8 @@ tasks and nothing else; you are the only agent allowed to write for them.
16
16
  claim names the owner: do not edit that file; post a note (step 5) and tell the lead you are blocked.
17
17
  2. Do the task. Edit only files listed for it (plus its tests). Build to the `tests.md` cases when they exist.
18
18
  3. Check it off: `[ ]` → `[x]` on its line (the `tick_task` tool, or an edit of that one box). Checking off
19
- frees the task's claims; if you edited by hand, also run `ambykit fleet release <feature> T###`.
19
+ frees the task's claims; if you edited by hand, also run `ambykit fleet release <feature> T###`. Never edit a
20
+ phase's `files:`/`verify:` block or a story's status by hand; the lead does that with `ambykit edit`.
20
21
  4. Report, then send the lead **one line**: `T###: <what changed> (<files>)`. No logs, no diffs.
21
22
  5. Anything the next person needs to know goes on the shared board as one line:
22
23
  `ambykit fleet note <feature> T### --files=<files> "<text>"`.
@@ -28,7 +28,7 @@ ones truly satisfy their requirement.
28
28
  `- [ ] [T###] [US#] … (closes NNN:FR-###)` per gap and `- [ ] [T###] [US#] [VERIFY] …` per unverified
29
29
  item. Continue IDs from the highest `T###` anywhere in the file; skip items already listed
30
30
  unchecked there. Nothing to add → leave the file untouched.
31
- 4. In `spec.md`, patch only `status:` lines: a story → `done` when every FR/SC it maps to is
32
- covered; the feature → `done` when all stories are.
31
+ 4. In `spec.md`, change only statuses: a story → `done` (`ambykit edit status <feature> US-# done`) when every
32
+ FR/SC it maps to is covered; the feature's frontmatter `status:` → `done` when all stories are.
33
33
  5. Report: **converged** (no gaps) or **gaps found (N)**, counts per class, and a table of every ID
34
34
  with its class and a one-line reason for each gap/unverified item.
@@ -22,15 +22,17 @@ Run `ambykit activity <feature> --agent=$AGENT --phase=implement` first, with th
22
22
  3. Implement to satisfy the mapped `FR-###`/acceptance criteria and the constitution. Add/adjust
23
23
  tests for the acceptance criteria: build to the story's cases in `tests.md` and name tests `NNN:FR-###: …`;
24
24
  at the story checkpoint say if `tests.md` is missing, never pass silently. If you cannot finish a task, add `⚠ BLOCKED: <reason>` as the last
25
- segment of its line (after the `(file/path)` group), stop that task and continue with another unblocked
25
+ segment of its line (after its `(file/path)` group, if it has one), stop that task and continue with another unblocked
26
26
  one; note any departure from the plan as `↪ DEVIATION: <note>`. Remove `⚠ BLOCKED:` once resolved.
27
- 4. **Patch in place:** flip the completed task's checkbox to `- [x]` in `tasks.md`; set the story's
28
- `status: in-progress` in `spec.md` while it is partway. Don't rewrite untouched sections. After each
29
- checked task, run `ambykit activity <feature> --agent=$AGENT --phase=implement --task=T###` (ignore errors).
30
- 5. At a phase checkpoint, run that phase's `**Verify:**` check before passing it (no Verify line: say so
31
- and continue). Write the result at the end of that line, replacing any earlier one: `✓ passed`,
32
- `✗ failed: <why>` or `? unverified`. Never pass the checkpoint on a failure: fix it and run again. If
33
- you cannot run the check, ask a person to run or confirm it and record `? unverified`. Only once the
34
- Verify has passed (or there is none) and all of a story's tasks are done, set that story's
35
- `status: done`. In a lane, record the result after the phase's lanes are merged.
36
- 6. Report what you did and the next unblocked task. Stop at a story checkpoint for review.
27
+ 4. **Patch in place:** flip the completed task's checkbox to `- [x]` in `tasks.md`; while a story is partway run
28
+ `ambykit edit status <feature> US-# in-progress`. Never edit story data, files or Verify results by hand: use
29
+ `ambykit edit status|files|verify`. After each checked task, run
30
+ `ambykit activity <feature> --agent=$AGENT --phase=implement --task=T###` (ignore errors).
31
+ 5. At a phase checkpoint, run that phase's Verify check (its `**Verify:**` line or `verify:` block) before passing it
32
+ (none: say so and continue). Record the result with
33
+ `ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<why>]`, replacing any earlier one.
34
+ Never pass the checkpoint on a failure: fix it and run again. If you cannot run the check, ask a person to run or
35
+ confirm it and record `unverified`. Only once the Verify has passed (or there is none) and all of a story's tasks
36
+ are done, run `ambykit edit status <feature> US-# done`. In a lane, record the result after the phase's lanes are merged.
37
+ 6. Run `ambykit analyze` and fix any `file:line` error it reports for this feature. Report what you did and the next
38
+ unblocked task. Stop at a story checkpoint for review.
@@ -22,7 +22,9 @@ of `@.amby/templates/spec.md`. This command **extends** an existing feature —
22
22
  feature is complete and to run `/amby.specify` for a new feature. Stop here.
23
23
  3. Otherwise **continue in place** (patch, never regenerate — Principle 3):
24
24
  - Add new user stories (`US-#`), requirements (`FR-###`), and success criteria (`SC-###`), each
25
- taking the **next available number**. Preserve every existing id and its text verbatim.
25
+ taking the **next available number**. Preserve every existing id and its text verbatim. A new story
26
+ also gets an entry (`id`, `priority`, `status`, dependencies) in the frontmatter `stories:` list of a
27
+ v2 spec; change a story's status with `ambykit edit status <feature> US-# <status>`.
26
28
  - Refine existing items only where the author asked; keep their ids stable.
27
29
  - New requirements use EARS (SHALL / WHEN / WHILE / IF-THEN / WHERE); new acceptance criteria use
28
30
  Given/When/Then — consistent with `specify`.
@@ -35,4 +37,5 @@ of `@.amby/templates/spec.md`. This command **extends** an existing feature —
35
37
  the author to run `/amby.design`.
36
38
  6. Keep edits minimal and token-frugal; cite the constitution by principle number where relevant.
37
39
 
38
- Report what you added or changed, by id.
40
+ Run `ambykit analyze` and fix any `file:line` error it reports for this spec. Report what you added or
41
+ changed, by id.
@@ -60,12 +60,15 @@ Run `ambykit fleet status <feature>`; it prints the run, the next phase, lanes,
60
60
 
61
61
  When every task of the phase is checked: `ambykit fleet update <feature> --stage=qa`. Ask QA (`@.amby/roles/qa.md`, read-only) to:
62
62
 
63
- 1. run the phase's `**Verify:**` line, and check the acceptance criteria of its stories; if `tests.md` exists, its
64
- cases for these tasks are the expected tests. No Verify line → check the criteria only and say the phase has none.
63
+ 1. run the phase's Verify check (its `**Verify:**` line, or the `verify:` block of a v2 file), and check the acceptance
64
+ criteria of its stories; if `tests.md` exists, its cases for these tasks are the expected tests. No Verify check →
65
+ check the criteria only and say the phase has none.
65
66
  2. return a verdict. You write it to `.amby/fleet/<run>/verdicts/<lane>.qa.<round>.json`
66
67
  (`<round>` = failed rounds so far + 1): `{"verdict":"pass"|"fail","findings":[{"id","severity","finding","fix"}]}`.
67
- 3. record the result on the Verify line, per spec 020: `✓ passed`, `✗ failed: <why>`, or, when the check cannot be
68
- run here, tell the person, ask them to confirm and record `? unverified`.
68
+ 3. record the result with `ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<why>]` (the file
69
+ shows `✓ passed`, `✗ failed: <why>` or `? unverified`); when the check cannot be run here, tell the person, ask them to
70
+ confirm and record `unverified`. Set a finished story with `ambykit edit status <feature> US-# done`; never edit a
71
+ `files:`/`verify:` block or story data by hand.
69
72
 
70
73
  A failing Verify never passes the checkpoint. Do not tick the checkpoint or start the next phase until it passes.
71
74
 
@@ -18,8 +18,9 @@ read other specs.
18
18
  1. Create the feature dir `specs/NNN-slug/` (next number, kebab-slug from the title) and write
19
19
  `spec.md` following `@.amby/templates/spec.md`. Then run
20
20
  `ambykit activity <feature> --agent=$AGENT --phase=specify` with the new number; ignore any error.
21
- 2. Define **user stories** (`US-#`): role / capability / benefit, a priority (P1/P2/P3), why that
22
- priority, an independent-test statement, and `depends-on`/`blocked-by` if any. Set `status: draft`.
21
+ 2. Define **user stories** (`US-#`): role / capability / benefit, why that priority, and an
22
+ independent-test statement. Put each story's `priority` (P1/P2/P3), `status: draft` and
23
+ `depends-on`/`blocked-by` in the frontmatter `stories:` list; the heading carries the title only.
23
24
  3. Write **acceptance criteria** in Given/When/Then per story.
24
25
  4. Write **functional requirements** (`FR-###`) in EARS notation (SHALL / WHEN / WHILE / IF-THEN /
25
26
  WHERE). Each must be testable.
@@ -30,4 +31,5 @@ read other specs.
30
31
  `ambykit worktree NNN-slug` (the only command to run) and tell the user to continue in
31
32
  `.worktrees/NNN-slug/`. Otherwise skip this step (say why if isolation was enabled but git is absent).
32
33
 
33
- Keep it tight. Reference the constitution by principle number where relevant; don't restate it.
34
+ Keep it tight. Reference the constitution by principle number where relevant; don't restate it. Then run
35
+ `ambykit analyze` and fix any `file:line` error it reports for this spec.
@@ -16,17 +16,17 @@ Context: read that feature's `plan.md` (and `spec.md` for story IDs/priorities/d
16
16
 
17
17
  Run `ambykit activity <feature> --agent=$AGENT --phase=tasks` first, with that feature's number; ignore any error.
18
18
 
19
- 1. Write tasks following `@.amby/templates/tasks.md` as checkbox lines:
20
- `- [ ] [T###] [P?] [US#] description (file/path)`.
19
+ 1. Write tasks in the v2 form of `@.amby/templates/tasks.md` (even if `spec.md` is 1.x): checkbox lines
20
+ `- [ ] [T###] [P?] [US#] description`, then each phase's `yaml` block.
21
21
  2. Group into phases: **Setup → Foundational → User stories (by priority) → Polish**. Enforce the
22
22
  gate: no user-story task before Foundational completes.
23
23
  3. Order tasks by the story **dependency graph** (`depends-on`/`blocked-by`) and priority. Mark
24
24
  independent tasks `[P]`. Tag each task with its `[US#]`. End each story group with a checkpoint.
25
- 4. Give every task a stable `T###` id and its file paths as the line's last parenthesized group:
26
- comma-separated, repo-relative, dirs end `/`, no globs. Mark `[P]` only when no other task in the
27
- same phase shares or nests a path.
28
- 5. End every phase with exactly ONE `**Verify:**` line, plain text after its tasks: a runnable check
29
- or observable condition that proves the phase works (e.g. a test command). Never more than one.
25
+ 4. Give every task a stable `T###` id and list its files in its phase's `files:` block, never on the task
26
+ line: repo-relative, dirs end `/`, no globs. Mark `[P]` only when no other task in the same phase shares or
27
+ nests a path, and never a task that tests or reads another same-phase task's output: order it after that task.
28
+ 5. End every phase with exactly ONE `verify:` in its block, whose `check:` is a runnable check or observable
29
+ condition that proves the phase works (e.g. a test command). Never more than one.
30
30
  6. Also write `tests.md` (the test design) in this phase per `@.amby/templates/tests.md`, touching only `tasks.md`
31
31
  and `tests.md`. If `spec.md` is not `status: ready`, skip it and say the spec must be ready first. One case per
32
32
  acceptance criterion (negative and edge ones too, max 15 per story); one too vague to test goes under `## Flags`.
@@ -36,4 +36,5 @@ Run `ambykit activity <feature> --agent=$AGENT --phase=tasks` first, with that f
36
36
  With an existing `tests.md`, patch only the cases citing changed criteria (keep their ids, clear `[stale]`), mark
37
37
  cases whose criterion was removed `[obsolete]` and add new ones; leave the rest untouched.
38
38
 
39
- Do not start implementing. Keep descriptions to one line each.
39
+ Do not start implementing. Keep descriptions to one line each. Then run `ambykit analyze` and fix any
40
+ `file:line` error it reports for this feature.
@@ -1,29 +1,35 @@
1
1
  ---
2
+ format: 2
2
3
  feature: {{FEATURE_ID}} # NNN-slug
3
4
  title: {{FEATURE_TITLE}}
4
5
  branch: {{BRANCH}}
5
6
  status: draft # draft | ready | in-progress | blocked | done
6
7
  created: {{DATE}}
8
+ stories: # one entry per story; headings carry the title only
9
+ - id: US-1
10
+ priority: P1
11
+ status: draft # draft | ready | in-progress | blocked | done
12
+ depends-on: [] # e.g. [US-0, "019:US-1"]
13
+ blocked-by: []
7
14
  ---
8
15
 
9
16
  # Spec — {{FEATURE_TITLE}}
10
17
 
11
18
  > WHAT and WHY only. No technology decisions (those belong in `plan.md`).
12
19
  > Flag unknowns inline as `[NEEDS CLARIFICATION: …]` — never guess.
20
+ > Story priority, status and dependencies live in the frontmatter `stories:` list. Change a status with
21
+ > `ambykit edit status <feature> US-# <status>`.
13
22
 
14
23
  ## User scenarios & testing
15
24
 
16
25
  <!-- One block per story. Each story is independently testable and prioritized. -->
17
26
 
18
- ### US-1 — {{STORY_TITLE}} (priority: P1)
27
+ ### US-1 — {{STORY_TITLE}}
19
28
 
20
29
  As a {{ROLE}}, I want {{CAPABILITY}}, so that {{BENEFIT}}.
21
30
 
22
31
  - **Why this priority:** {{WHY_PRIORITY}}
23
32
  - **Independent test:** {{INDEPENDENT_TEST}}
24
- - **depends-on:** [] # e.g. [US-0]
25
- - **blocked-by:** []
26
- - **status:** draft
27
33
 
28
34
  **Acceptance criteria**
29
35
  - Given {{CONTEXT}}, When {{ACTION}}, Then {{OUTCOME}}.
@@ -1,35 +1,57 @@
1
1
  ---
2
+ format: 2
2
3
  feature: {{FEATURE_ID}}
3
4
  created: {{DATE}}
4
5
  ---
5
6
 
6
7
  # Tasks — {{FEATURE_TITLE}}
7
8
 
8
- > Line format: `- [ ] [T###] [P?] [US#] description (file/path, other/path)`
9
+ > Line format: `- [ ] [T###] [P?] [US#] description`
9
10
  > `[x]` = done (source of truth for `ambykit dashboard`). `[P]` = parallelizable. `[US#]` = story tag.
10
- > Paths: repo-relative, comma-separated, dirs end `/`, no globs. `[P]` tasks in a phase must not share or nest paths.
11
+ > Each phase ends with one `yaml` block: `files:` maps each `T###` to its repo-relative paths (dirs end `/`, no globs; `[P]` tasks in a phase must not share or nest paths) and `verify:` holds the phase's `check:`. Change them with `ambykit edit files|verify`, never by hand.
11
12
  > Gate: no user-story task starts until Foundational completes.
12
- > Markers go last on the task line, after the path group: `⚠ BLOCKED: <reason>` for a task that cannot proceed, `↪ DEVIATION: <note>` for a change from the plan. The glyph is optional (`BLOCKED:` works too); remove `⚠ BLOCKED:` when resolved.
13
- > Each phase ends with one `**Verify:** <check>` line, run before the checkpoint. Record the result as a suffix on that line: `✓ passed`, `✗ failed: <why>` or `? unverified` (the words alone also work); a later run overwrites it.
13
+ > Markers go last on the task line: `⚠ BLOCKED: <reason>` for a task that cannot proceed, `↪ DEVIATION: <note>` for a change from the plan. The glyph is optional (`BLOCKED:` works too); remove `⚠ BLOCKED:` when resolved.
14
+ > Run the phase's `check:` before the checkpoint, then record it: `ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<why>]` (shown as `✓ passed`, `✗ failed: <why>` or `? unverified`); a later run overwrites it.
14
15
 
15
16
  ## Phase 1 — Setup
16
17
 
17
- - [ ] [T001] {{SETUP_TASK}} ({{PATH}})
18
- - **Verify:** {{VERIFY_CHECK}}
18
+ - [ ] [T001] {{SETUP_TASK}}
19
+ ```yaml
20
+ files:
21
+ T001: ["{{PATH}}"]
22
+ verify:
23
+ check: "{{VERIFY_CHECK}}"
24
+ ```
19
25
 
20
26
  ## Phase 2 — Foundational (blocks all feature work)
21
27
 
22
- - [ ] [T010] {{FOUNDATIONAL_TASK}} ({{PATH}})
23
- - **Verify:** {{VERIFY_CHECK}}
28
+ - [ ] [T010] {{FOUNDATIONAL_TASK}}
29
+ ```yaml
30
+ files:
31
+ T010: ["{{PATH}}"]
32
+ verify:
33
+ check: "{{VERIFY_CHECK}}"
34
+ ```
24
35
 
25
36
  ## Phase 3 — User story US-1 (priority: P1)
26
37
 
27
- - [ ] [T020] [P] [US1] {{TASK}} ({{PATH}})
28
- - [ ] [T021] [US1] {{TASK}} ({{PATH}})
38
+ - [ ] [T020] [P] [US1] {{TASK}}
39
+ - [ ] [T021] [US1] {{TASK}}
29
40
  - **Checkpoint:** US-1 is demoable.
30
- - **Verify:** {{VERIFY_CHECK}}
41
+ ```yaml
42
+ files:
43
+ T020: ["{{PATH}}"]
44
+ T021: ["{{PATH}}"]
45
+ verify:
46
+ check: "{{VERIFY_CHECK}}"
47
+ ```
31
48
 
32
49
  ## Phase 4 — Polish
33
50
 
34
- - [ ] [T090] {{POLISH_TASK}} ({{PATH}})
35
- - **Verify:** {{VERIFY_CHECK}}
51
+ - [ ] [T090] {{POLISH_TASK}}
52
+ ```yaml
53
+ files:
54
+ T090: ["{{PATH}}"]
55
+ verify:
56
+ check: "{{VERIFY_CHECK}}"
57
+ ```
@@ -1,15 +0,0 @@
1
- import type { EmittedFile, RulesContext } from "../core/types.js";
2
- import { AntigravityEmitter } from "./antigravity.js";
3
- /**
4
- * Antigravity CLI (`agy`) emitter. The CLI runs on the same agent harness as the IDE and reads the
5
- * same workspace files (`.agents/skills/`, AGENTS.md) and turns each skill into a slash command. Only
6
- * global/user paths differ, which AmbyKit does not manage, so this reuses the IDE emitter's output
7
- * apart from the `--agent=` self-report id.
8
- */
9
- export declare class AntigravityCliEmitter extends AntigravityEmitter {
10
- readonly toolId = "antigravity-cli";
11
- readonly displayName = "Antigravity CLI";
12
- /** Workspace `.agents/mcp_config.json`, `mcpServers.ambykit` (verified for the CLI in `specs/025-mcp-server/research.md`). */
13
- mcpFiles(_ctx: RulesContext): EmittedFile[];
14
- mcpSkipReason(): string | null;
15
- }
@@ -1,20 +0,0 @@
1
- import { AntigravityEmitter } from "./antigravity.js";
2
- import { MCP_COMMAND } from "./base-emitter.js";
3
- /**
4
- * Antigravity CLI (`agy`) emitter. The CLI runs on the same agent harness as the IDE and reads the
5
- * same workspace files (`.agents/skills/`, AGENTS.md) and turns each skill into a slash command. Only
6
- * global/user paths differ, which AmbyKit does not manage, so this reuses the IDE emitter's output
7
- * apart from the `--agent=` self-report id.
8
- */
9
- export class AntigravityCliEmitter extends AntigravityEmitter {
10
- toolId = "antigravity-cli";
11
- displayName = "Antigravity CLI";
12
- /** Workspace `.agents/mcp_config.json`, `mcpServers.ambykit` (verified for the CLI in `specs/025-mcp-server/research.md`). */
13
- mcpFiles(_ctx) {
14
- return [this.mcpFile(".agents/mcp_config.json", "mcpServers", { ...MCP_COMMAND })];
15
- }
16
- mcpSkipReason() {
17
- return null;
18
- }
19
- }
20
- //# sourceMappingURL=antigravity-cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"antigravity-cli.js","sourceRoot":"","sources":["../../src/emitters/antigravity-cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,OAAO,qBAAsB,SAAQ,kBAAkB;IACzC,MAAM,GAAG,iBAAiB,CAAC;IAC3B,WAAW,GAAG,iBAAiB,CAAC;IAElD,8HAA8H;IACrH,QAAQ,CAAC,IAAkB;QAClC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,YAAY,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC;IACrF,CAAC;IAEQ,aAAa;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,20 +0,0 @@
1
- import { SkillsEmitter } from "./skills-emitter.js";
2
- /**
3
- * Google Antigravity (IDE) emitter. Antigravity retired **workflows** on 2026-10-19 and replaced them
4
- * with **skills** (feature 018): one directory per phase at `.agents/skills/<name>/SKILL.md` with
5
- * `name` + `description`, the same layout Codex and Pi write. The CLI turns each skill into a slash
6
- * command named after the skill (`/amby-specify`). Antigravity reads AGENTS.md natively, so no
7
- * tool-specific rules file is emitted. There is no file-based agent format (SDK only). The `agy` CLI
8
- * shares these workspace files (see AntigravityCliEmitter).
9
- */
10
- export declare class AntigravityEmitter extends SkillsEmitter {
11
- readonly toolId: string;
12
- readonly displayName: string;
13
- readonly commandDir: string;
14
- /**
15
- * Not written for the IDE. Antigravity's documented project file `.agents/mcp_config.json` is confirmed for
16
- * the CLI only, and the IDE's own documented config is user-level with conflicting paths in other guides
17
- * (`specs/025-mcp-server/research.md`).
18
- */
19
- mcpSkipReason(): string | null;
20
- }