@ambystech/ambykit 1.5.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.
- package/CHANGELOG.md +190 -1
- package/README.md +12 -7
- package/dist/cli/add.js +9 -0
- package/dist/cli/add.js.map +1 -1
- package/dist/cli/analyze.js +25 -4
- package/dist/cli/analyze.js.map +1 -1
- package/dist/cli/base-command.d.ts +8 -0
- package/dist/cli/base-command.js +30 -0
- package/dist/cli/base-command.js.map +1 -1
- package/dist/cli/check.d.ts +2 -0
- package/dist/cli/check.js +38 -4
- package/dist/cli/check.js.map +1 -1
- package/dist/cli/dashboard.d.ts +5 -2
- package/dist/cli/dashboard.js +95 -24
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/edit.d.ts +17 -0
- package/dist/cli/edit.js +71 -0
- package/dist/cli/edit.js.map +1 -0
- package/dist/cli/fleet.d.ts +2 -0
- package/dist/cli/fleet.js +23 -1
- package/dist/cli/fleet.js.map +1 -1
- package/dist/cli/index.d.ts +1 -5
- package/dist/cli/index.js +21 -109
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init.js +9 -0
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/lane.d.ts +38 -3
- package/dist/cli/lane.js +124 -108
- package/dist/cli/lane.js.map +1 -1
- package/dist/cli/main.d.ts +6 -0
- package/dist/cli/main.js +111 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/mcp.d.ts +2 -0
- package/dist/cli/mcp.js +4 -0
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli/migrate.d.ts +17 -0
- package/dist/cli/migrate.js +67 -0
- package/dist/cli/migrate.js.map +1 -0
- package/dist/cli/node-guard.d.ts +4 -0
- package/dist/cli/node-guard.js +12 -0
- package/dist/cli/node-guard.js.map +1 -0
- package/dist/cli/run-budget.d.ts +25 -0
- package/dist/cli/run-budget.js +112 -0
- package/dist/cli/run-budget.js.map +1 -0
- package/dist/cli/run-control.d.ts +40 -0
- package/dist/cli/run-control.js +161 -0
- package/dist/cli/run-control.js.map +1 -0
- package/dist/cli/run-files.d.ts +96 -0
- package/dist/cli/run-files.js +120 -0
- package/dist/cli/run-files.js.map +1 -0
- package/dist/cli/run-fleet-control.d.ts +16 -0
- package/dist/cli/run-fleet-control.js +23 -0
- package/dist/cli/run-fleet-control.js.map +1 -0
- package/dist/cli/run-fleet-loop.d.ts +77 -0
- package/dist/cli/run-fleet-loop.js +156 -0
- package/dist/cli/run-fleet-loop.js.map +1 -0
- package/dist/cli/run-fleet-merge.d.ts +22 -0
- package/dist/cli/run-fleet-merge.js +69 -0
- package/dist/cli/run-fleet-merge.js.map +1 -0
- package/dist/cli/run-fleet-prepare.d.ts +35 -0
- package/dist/cli/run-fleet-prepare.js +58 -0
- package/dist/cli/run-fleet-prepare.js.map +1 -0
- package/dist/cli/run-fleet.d.ts +28 -0
- package/dist/cli/run-fleet.js +382 -0
- package/dist/cli/run-fleet.js.map +1 -0
- package/dist/cli/run-gates.d.ts +25 -0
- package/dist/cli/run-gates.js +45 -0
- package/dist/cli/run-gates.js.map +1 -0
- package/dist/cli/run-launch.d.ts +17 -0
- package/dist/cli/run-launch.js +106 -0
- package/dist/cli/run-launch.js.map +1 -0
- package/dist/cli/run-loop.d.ts +39 -0
- package/dist/cli/run-loop.js +197 -0
- package/dist/cli/run-loop.js.map +1 -0
- package/dist/cli/run-merger.d.ts +18 -0
- package/dist/cli/run-merger.js +126 -0
- package/dist/cli/run-merger.js.map +1 -0
- package/dist/cli/run-phase-check.d.ts +32 -0
- package/dist/cli/run-phase-check.js +173 -0
- package/dist/cli/run-phase-check.js.map +1 -0
- package/dist/cli/run-plan.d.ts +28 -0
- package/dist/cli/run-plan.js +62 -0
- package/dist/cli/run-plan.js.map +1 -0
- package/dist/cli/run-process.d.ts +45 -0
- package/dist/cli/run-process.js +111 -0
- package/dist/cli/run-process.js.map +1 -0
- package/dist/cli/run-protocol-prompts.d.ts +17 -0
- package/dist/cli/run-protocol-prompts.js +63 -0
- package/dist/cli/run-protocol-prompts.js.map +1 -0
- package/dist/cli/run-protocol.d.ts +17 -0
- package/dist/cli/run-protocol.js +128 -0
- package/dist/cli/run-protocol.js.map +1 -0
- package/dist/cli/run-script.d.ts +11 -0
- package/dist/cli/run-script.js +67 -0
- package/dist/cli/run-script.js.map +1 -0
- package/dist/cli/run-session.d.ts +93 -0
- package/dist/cli/run-session.js +21 -0
- package/dist/cli/run-session.js.map +1 -0
- package/dist/cli/run-stages.d.ts +11 -0
- package/dist/cli/run-stages.js +34 -0
- package/dist/cli/run-stages.js.map +1 -0
- package/dist/cli/run-supervisor.d.ts +20 -0
- package/dist/cli/run-supervisor.js +167 -0
- package/dist/cli/run-supervisor.js.map +1 -0
- package/dist/cli/run.d.ts +81 -0
- package/dist/cli/run.js +437 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/sync.js +10 -5
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/ui/dashboard/empty-state.d.ts +5 -0
- package/dist/cli/ui/dashboard/empty-state.js +7 -0
- package/dist/cli/ui/dashboard/empty-state.js.map +1 -1
- package/dist/cli/ui/dashboard/filter-line.d.ts +13 -0
- package/dist/cli/ui/dashboard/filter-line.js +20 -0
- package/dist/cli/ui/dashboard/filter-line.js.map +1 -0
- package/dist/cli/ui/dashboard/fleet-tab.d.ts +25 -0
- package/dist/cli/ui/dashboard/fleet-tab.js +91 -0
- package/dist/cli/ui/dashboard/fleet-tab.js.map +1 -0
- package/dist/cli/ui/dashboard/fleet-tokens.d.ts +404 -0
- package/dist/cli/ui/dashboard/fleet-tokens.js +405 -0
- package/dist/cli/ui/dashboard/fleet-tokens.js.map +1 -0
- package/dist/cli/ui/dashboard/fleet-view.d.ts +51 -0
- package/dist/cli/ui/dashboard/fleet-view.js +211 -0
- package/dist/cli/ui/dashboard/fleet-view.js.map +1 -0
- package/dist/cli/ui/dashboard/help-overlay.d.ts +3 -1
- package/dist/cli/ui/dashboard/help-overlay.js +36 -3
- package/dist/cli/ui/dashboard/help-overlay.js.map +1 -1
- package/dist/cli/ui/dashboard/layout.d.ts +15 -0
- package/dist/cli/ui/dashboard/layout.js +22 -0
- package/dist/cli/ui/dashboard/layout.js.map +1 -1
- package/dist/cli/ui/dashboard/metrics-panel.d.ts +15 -0
- package/dist/cli/ui/dashboard/metrics-panel.js +143 -0
- package/dist/cli/ui/dashboard/metrics-panel.js.map +1 -0
- package/dist/cli/ui/dashboard/tab-bar.d.ts +14 -0
- package/dist/cli/ui/dashboard/tab-bar.js +37 -0
- package/dist/cli/ui/dashboard/tab-bar.js.map +1 -0
- package/dist/cli/ui/dashboard/tab-frame.d.ts +43 -0
- package/dist/cli/ui/dashboard/tab-frame.js +68 -0
- package/dist/cli/ui/dashboard/tab-frame.js.map +1 -0
- package/dist/cli/ui/dashboard/tab-tokens.d.ts +569 -0
- package/dist/cli/ui/dashboard/tab-tokens.js +570 -0
- package/dist/cli/ui/dashboard/tab-tokens.js.map +1 -0
- package/dist/cli/ui/icons.d.ts +22 -0
- package/dist/cli/ui/icons.js +17 -0
- package/dist/cli/ui/icons.js.map +1 -0
- package/dist/cli/ui/interactive/fleet-actions.d.ts +24 -0
- package/dist/cli/ui/interactive/fleet-actions.js +30 -0
- package/dist/cli/ui/interactive/fleet-actions.js.map +1 -0
- package/dist/cli/ui/interactive/fleet.d.ts +54 -0
- package/dist/cli/ui/interactive/fleet.js +98 -0
- package/dist/cli/ui/interactive/fleet.js.map +1 -0
- package/dist/cli/ui/interactive/fullscreen.js +38 -10
- package/dist/cli/ui/interactive/fullscreen.js.map +1 -1
- package/dist/cli/ui/interactive/list-filter.d.ts +25 -0
- package/dist/cli/ui/interactive/list-filter.js +38 -0
- package/dist/cli/ui/interactive/list-filter.js.map +1 -0
- package/dist/cli/ui/interactive/live.d.ts +8 -0
- package/dist/cli/ui/interactive/live.js +13 -0
- package/dist/cli/ui/interactive/live.js.map +1 -1
- package/dist/cli/ui/interactive/overview.d.ts +52 -3
- package/dist/cli/ui/interactive/overview.js +354 -15
- package/dist/cli/ui/interactive/overview.js.map +1 -1
- package/dist/cli/ui/interactive/tabs.d.ts +15 -0
- package/dist/cli/ui/interactive/tabs.js +27 -0
- package/dist/cli/ui/interactive/tabs.js.map +1 -0
- package/dist/cli/ui/tool-options.d.ts +5 -1
- package/dist/cli/ui/tool-options.js +9 -3
- package/dist/cli/ui/tool-options.js.map +1 -1
- package/dist/cli/update.js +13 -2
- package/dist/cli/update.js.map +1 -1
- package/dist/core/analyze.d.ts +11 -0
- package/dist/core/analyze.js +33 -3
- package/dist/core/analyze.js.map +1 -1
- package/dist/core/burndown.d.ts +1 -1
- package/dist/core/burndown.js +2 -2
- package/dist/core/burndown.js.map +1 -1
- package/dist/core/checkouts.js +3 -2
- package/dist/core/checkouts.js.map +1 -1
- package/dist/core/config-schema.d.ts +45 -0
- package/dist/core/config-schema.js +63 -0
- package/dist/core/config-schema.js.map +1 -0
- package/dist/core/config.d.ts +6 -0
- package/dist/core/config.js +16 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/dashboard.js +3 -2
- package/dist/core/dashboard.js.map +1 -1
- package/dist/core/decisions.d.ts +12 -1
- package/dist/core/decisions.js +7 -2
- package/dist/core/decisions.js.map +1 -1
- package/dist/core/deprecation.d.ts +15 -0
- package/dist/core/deprecation.js +27 -0
- package/dist/core/deprecation.js.map +1 -0
- package/dist/core/features.js +11 -5
- package/dist/core/features.js.map +1 -1
- package/dist/core/fleet/fleet-text.d.ts +2 -0
- package/dist/core/fleet/fleet-text.js +41 -0
- package/dist/core/fleet/fleet-text.js.map +1 -0
- package/dist/core/fleet/fleet-view.d.ts +35 -0
- package/dist/core/fleet/fleet-view.js +43 -0
- package/dist/core/fleet/fleet-view.js.map +1 -0
- package/dist/core/fleet/fleets.d.ts +18 -0
- package/dist/core/fleet/fleets.js +64 -0
- package/dist/core/fleet/fleets.js.map +1 -0
- package/dist/core/fleet/flow-input.js +3 -4
- package/dist/core/fleet/flow-input.js.map +1 -1
- package/dist/core/fleet/index.d.ts +3 -0
- package/dist/core/fleet/index.js +3 -0
- package/dist/core/fleet/index.js.map +1 -1
- package/dist/core/fleet/runs.d.ts +18 -2
- package/dist/core/fleet/runs.js +67 -16
- package/dist/core/fleet/runs.js.map +1 -1
- package/dist/core/fleet-plan/budget.d.ts +18 -0
- package/dist/core/fleet-plan/budget.js +13 -0
- package/dist/core/fleet-plan/budget.js.map +1 -0
- package/dist/core/fleet-plan/contain.d.ts +10 -0
- package/dist/core/fleet-plan/contain.js +37 -0
- package/dist/core/fleet-plan/contain.js.map +1 -0
- package/dist/core/fleet-plan/format.d.ts +4 -0
- package/dist/core/fleet-plan/format.js +52 -0
- package/dist/core/fleet-plan/format.js.map +1 -0
- package/dist/core/fleet-plan/index.d.ts +7 -0
- package/dist/core/fleet-plan/index.js +8 -0
- package/dist/core/fleet-plan/index.js.map +1 -0
- package/dist/core/fleet-plan/order.d.ts +30 -0
- package/dist/core/fleet-plan/order.js +96 -0
- package/dist/core/fleet-plan/order.js.map +1 -0
- package/dist/core/fleet-plan/ownership.d.ts +12 -0
- package/dist/core/fleet-plan/ownership.js +36 -0
- package/dist/core/fleet-plan/ownership.js.map +1 -0
- package/dist/core/fleet-plan/plan.d.ts +23 -0
- package/dist/core/fleet-plan/plan.js +40 -0
- package/dist/core/fleet-plan/plan.js.map +1 -0
- package/dist/core/fleet-plan/read.d.ts +19 -0
- package/dist/core/fleet-plan/read.js +35 -0
- package/dist/core/fleet-plan/read.js.map +1 -0
- package/dist/core/fleet-plan/schedule.d.ts +15 -0
- package/dist/core/fleet-plan/schedule.js +27 -0
- package/dist/core/fleet-plan/schedule.js.map +1 -0
- package/dist/core/fleet-plan/select.d.ts +20 -0
- package/dist/core/fleet-plan/select.js +64 -0
- package/dist/core/fleet-plan/select.js.map +1 -0
- package/dist/core/fleet-plan/types.d.ts +123 -0
- package/dist/core/fleet-plan/types.js +2 -0
- package/dist/core/fleet-plan/types.js.map +1 -0
- package/dist/core/fleet-view/derive.d.ts +14 -0
- package/dist/core/fleet-view/derive.js +54 -0
- package/dist/core/fleet-view/derive.js.map +1 -0
- package/dist/core/fleet-view/group.d.ts +51 -0
- package/dist/core/fleet-view/group.js +73 -0
- package/dist/core/fleet-view/group.js.map +1 -0
- package/dist/core/fleet-view/json.d.ts +37 -0
- package/dist/core/fleet-view/json.js +25 -0
- package/dist/core/fleet-view/json.js.map +1 -0
- package/dist/core/fleet-view/read.d.ts +8 -0
- package/dist/core/fleet-view/read.js +44 -0
- package/dist/core/fleet-view/read.js.map +1 -0
- package/dist/core/fleet-view/types.d.ts +52 -0
- package/dist/core/fleet-view/types.js +2 -0
- package/dist/core/fleet-view/types.js.map +1 -0
- package/dist/core/graph-format.d.ts +2 -0
- package/dist/core/graph-format.js +4 -3
- package/dist/core/graph-format.js.map +1 -1
- package/dist/core/graph-types.d.ts +4 -0
- package/dist/core/graph.js +38 -1
- package/dist/core/graph.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/lane-merge.d.ts +29 -0
- package/dist/core/lane-merge.js +105 -0
- package/dist/core/lane-merge.js.map +1 -0
- package/dist/core/lanes.d.ts +53 -0
- package/dist/core/lanes.js +131 -0
- package/dist/core/lanes.js.map +1 -1
- package/dist/core/legacy.d.ts +2 -1
- package/dist/core/legacy.js +7 -2
- package/dist/core/legacy.js.map +1 -1
- package/dist/core/markers.d.ts +7 -0
- package/dist/core/markers.js +3 -2
- package/dist/core/markers.js.map +1 -1
- package/dist/core/metrics/cycle.d.ts +3 -0
- package/dist/core/metrics/cycle.js +47 -0
- package/dist/core/metrics/cycle.js.map +1 -0
- package/dist/core/metrics/gap.d.ts +9 -0
- package/dist/core/metrics/gap.js +35 -0
- package/dist/core/metrics/gap.js.map +1 -0
- package/dist/core/metrics/index.d.ts +21 -0
- package/dist/core/metrics/index.js +67 -0
- package/dist/core/metrics/index.js.map +1 -0
- package/dist/core/metrics/model.d.ts +23 -0
- package/dist/core/metrics/model.js +46 -0
- package/dist/core/metrics/model.js.map +1 -0
- package/dist/core/metrics/revisions.d.ts +22 -0
- package/dist/core/metrics/revisions.js +88 -0
- package/dist/core/metrics/revisions.js.map +1 -0
- package/dist/core/metrics/types.d.ts +74 -0
- package/dist/core/metrics/types.js +3 -0
- package/dist/core/metrics/types.js.map +1 -0
- package/dist/core/migrate/convert-spec.d.ts +19 -0
- package/dist/core/migrate/convert-spec.js +99 -0
- package/dist/core/migrate/convert-spec.js.map +1 -0
- package/dist/core/migrate/convert-tasks.d.ts +16 -0
- package/dist/core/migrate/convert-tasks.js +121 -0
- package/dist/core/migrate/convert-tasks.js.map +1 -0
- package/dist/core/migrate/run.d.ts +36 -0
- package/dist/core/migrate/run.js +178 -0
- package/dist/core/migrate/run.js.map +1 -0
- package/dist/core/migrate/safety.d.ts +33 -0
- package/dist/core/migrate/safety.js +199 -0
- package/dist/core/migrate/safety.js.map +1 -0
- package/dist/core/migrate/summary.d.ts +36 -0
- package/dist/core/migrate/summary.js +140 -0
- package/dist/core/migrate/summary.js.map +1 -0
- package/dist/core/moved-targets.d.ts +73 -8
- package/dist/core/moved-targets.js +79 -1
- package/dist/core/moved-targets.js.map +1 -1
- package/dist/core/overview-types.d.ts +7 -0
- package/dist/core/overview-types.js.map +1 -1
- package/dist/core/overview.js +4 -0
- package/dist/core/overview.js.map +1 -1
- package/dist/core/query.js +3 -2
- package/dist/core/query.js.map +1 -1
- package/dist/core/run-gate-actions.d.ts +51 -0
- package/dist/core/run-gate-actions.js +105 -0
- package/dist/core/run-gate-actions.js.map +1 -0
- package/dist/core/run-launch-plan.d.ts +53 -0
- package/dist/core/run-launch-plan.js +32 -0
- package/dist/core/run-launch-plan.js.map +1 -0
- package/dist/core/run-prompt.d.ts +89 -0
- package/dist/core/run-prompt.js +73 -0
- package/dist/core/run-prompt.js.map +1 -0
- package/dist/core/run-result.d.ts +42 -0
- package/dist/core/run-result.js +163 -0
- package/dist/core/run-result.js.map +1 -0
- package/dist/core/run-review.d.ts +50 -0
- package/dist/core/run-review.js +20 -0
- package/dist/core/run-review.js.map +1 -0
- package/dist/core/run-schedule.d.ts +23 -0
- package/dist/core/run-schedule.js +40 -0
- package/dist/core/run-schedule.js.map +1 -0
- package/dist/core/run-stability.d.ts +23 -0
- package/dist/core/run-stability.js +38 -0
- package/dist/core/run-stability.js.map +1 -0
- package/dist/core/run-supervise.d.ts +71 -0
- package/dist/core/run-supervise.js +61 -0
- package/dist/core/run-supervise.js.map +1 -0
- package/dist/core/runners.d.ts +114 -0
- package/dist/core/runners.js +146 -0
- package/dist/core/runners.js.map +1 -0
- package/dist/core/sibling-reads.d.ts +41 -0
- package/dist/core/sibling-reads.js +100 -0
- package/dist/core/sibling-reads.js.map +1 -0
- package/dist/core/spec-format/blocks.d.ts +19 -0
- package/dist/core/spec-format/blocks.js +58 -0
- package/dist/core/spec-format/blocks.js.map +1 -0
- package/dist/core/spec-format/detect.d.ts +14 -0
- package/dist/core/spec-format/detect.js +30 -0
- package/dist/core/spec-format/detect.js.map +1 -0
- package/dist/core/spec-format/dispatch.d.ts +13 -0
- package/dist/core/spec-format/dispatch.js +64 -0
- package/dist/core/spec-format/dispatch.js.map +1 -0
- package/dist/core/spec-format/frontmatter.d.ts +18 -0
- package/dist/core/spec-format/frontmatter.js +37 -0
- package/dist/core/spec-format/frontmatter.js.map +1 -0
- package/dist/core/spec-format/legacy.d.ts +40 -0
- package/dist/core/spec-format/legacy.js +91 -0
- package/dist/core/spec-format/legacy.js.map +1 -0
- package/dist/core/spec-format/meta.d.ts +3 -0
- package/dist/core/spec-format/meta.js +24 -0
- package/dist/core/spec-format/meta.js.map +1 -0
- package/dist/core/spec-format/model.d.ts +50 -0
- package/dist/core/spec-format/model.js +9 -0
- package/dist/core/spec-format/model.js.map +1 -0
- package/dist/core/spec-format/read-spec.d.ts +4 -0
- package/dist/core/spec-format/read-spec.js +102 -0
- package/dist/core/spec-format/read-spec.js.map +1 -0
- package/dist/core/spec-format/read-tasks.d.ts +2 -0
- package/dist/core/spec-format/read-tasks.js +146 -0
- package/dist/core/spec-format/read-tasks.js.map +1 -0
- package/dist/core/spec-format/write.d.ts +23 -0
- package/dist/core/spec-format/write.js +382 -0
- package/dist/core/spec-format/write.js.map +1 -0
- package/dist/core/subagents.js +0 -2
- package/dist/core/subagents.js.map +1 -1
- package/dist/core/tasks-edit.d.ts +4 -1
- package/dist/core/tasks-edit.js +19 -6
- package/dist/core/tasks-edit.js.map +1 -1
- package/dist/core/types.d.ts +21 -0
- package/dist/emitters/index.d.ts +0 -4
- package/dist/emitters/index.js +0 -10
- package/dist/emitters/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/api.d.ts +14 -8
- package/dist/plugins/api.js +9 -8
- package/dist/plugins/api.js.map +1 -1
- package/dist/plugins/index.d.ts +3 -2
- package/dist/plugins/index.js +3 -2
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/loader.d.ts +8 -0
- package/dist/plugins/loader.js +36 -6
- package/dist/plugins/loader.js.map +1 -1
- package/dist/plugins/report.d.ts +1 -1
- package/dist/plugins/report.js +3 -4
- package/dist/plugins/report.js.map +1 -1
- package/dist/plugins/session.d.ts +1 -0
- package/dist/plugins/session.js +1 -1
- package/dist/plugins/session.js.map +1 -1
- package/dist/testkit/index.d.ts +1 -1
- package/docs/architecture.md +16 -1
- package/docs/artifacts/decision-record.md +15 -0
- package/docs/artifacts/spec.md +35 -6
- package/docs/artifacts/tasks.md +67 -16
- package/docs/cli-reference.md +274 -5
- package/docs/contributing.md +6 -0
- package/docs/migration.md +191 -0
- package/docs/plugin-api.md +21 -13
- package/docs/plugin-split.md +5 -3
- package/docs/plugin-trust.md +2 -2
- package/docs/plugins-release.md +105 -0
- package/docs/release.md +103 -0
- package/docs/stability.md +152 -0
- package/docs/tool-compatibility.md +41 -3
- package/docs/workflow.md +10 -6
- package/package.json +4 -2
- package/src/agents/worker.md +2 -1
- package/src/prompts/converge.md +2 -2
- package/src/prompts/implement.md +13 -11
- package/src/prompts/revise.md +5 -2
- package/src/prompts/run.md +7 -4
- package/src/prompts/specify.md +5 -3
- package/src/prompts/tasks.md +9 -8
- package/src/templates/spec.md +10 -4
- package/src/templates/tasks.md +35 -13
- package/dist/emitters/antigravity-cli.d.ts +0 -15
- package/dist/emitters/antigravity-cli.js +0 -20
- package/dist/emitters/antigravity-cli.js.map +0 -1
- package/dist/emitters/antigravity.d.ts +0 -20
- package/dist/emitters/antigravity.js +0 -24
- package/dist/emitters/antigravity.js.map +0 -1
package/docs/artifacts/tasks.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
21
|
-
|
|
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
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
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.
|
package/docs/cli-reference.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
@@ -227,9 +247,30 @@ Detection reads the process list only, never sends anything, and stops when you
|
|
|
227
247
|
header shows `● live · 3s ago`; where file watching is unavailable it polls every 2 s
|
|
228
248
|
(`◌ polling`), and if monitoring fails it shows `⚠ live paused` and `r` retries. On a
|
|
229
249
|
non-interactive terminal it prints the plain overview, and nothing is watched.
|
|
250
|
+
- **Fleet view** (`l` in `--interactive`) — the lanes of the current fleet run (`ambykit fleet`,
|
|
251
|
+
`ambykit run`), live. Each lane is a row with its assistant, state (`working`, `waiting`, `blocked`,
|
|
252
|
+
`paused`, `done`, `unreported`, `unknown`, always as a word as well as a glyph), quiet time and
|
|
253
|
+
directive status (`continue pending`, `pause requested`, `paused`, `obeyed`). A working lane with no
|
|
254
|
+
report and no `tasks.md` change for `fleet.stallMinutes` (default 15) carries the text
|
|
255
|
+
`STALLED <n>m`. The header shows the run, phase and review stage once (`QA round 1/3`,
|
|
256
|
+
`architect round 2/3`, `NEEDS A DECISION`) and `+N more runs` when other runs are unfinished; story
|
|
257
|
+
checkpoint gates waiting for you are listed below the lanes. Keys: `↑`/`↓` select a lane, `p` pause,
|
|
258
|
+
`u` continue, `x` stop (asks `y`/`n`), `P`/`U`/`X` do the same for every lane of the run (always with
|
|
259
|
+
a `y`/`n` confirmation), `a` approves a waiting gate (`←`/`→` choose between several), `esc` goes
|
|
260
|
+
back, `?` lists the keys. Pause, continue and stop are written as directives for the lane's worker,
|
|
261
|
+
which obeys at its next report; approving a gate is the same action as `ambykit run approve` and
|
|
262
|
+
writes no directive. Without a run the view says so. It reads local files only (no network, no model
|
|
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.
|
|
230
267
|
- **`--icons=nerd|unicode|ascii`** — icon set. `nerd` (also `AMBYKIT_ICONS=nerd`) shows the
|
|
231
268
|
worktree tag as the Nerd Font git-branch icon; agent icons stay Unicode. `ascii` uses tags like
|
|
232
|
-
`[CC] Claude` and `wt`. The default is unicode when the terminal supports it.
|
|
269
|
+
`[CC] Claude` and `wt`. The default is unicode when the terminal supports it. The setting can also
|
|
270
|
+
live in `.amby/config.json` as `"dashboard": { "icons": "nerd" | "unicode" | "ascii" | "auto" }`
|
|
271
|
+
(hand-edited, never written by the dashboard). Precedence: `--icons`, then `AMBYKIT_ICONS`, then
|
|
272
|
+
`dashboard.icons`, then auto. A terminal without unicode is always ASCII. In the Fleet view `nerd`
|
|
273
|
+
draws the same glyphs as `unicode`; every state also has a word.
|
|
233
274
|
- **`--json`** — the story list as JSON, unchanged from earlier releases.
|
|
234
275
|
- **`--json --overview`** — one object: `stories` (exactly the `--json` list) plus `summary`,
|
|
235
276
|
`statusCounts`, `features`, `attention`, `upNext`, `burndown`, `issues` and the applied `filters`.
|
|
@@ -239,10 +280,40 @@ Detection reads the process list only, never sends anything, and stops when you
|
|
|
239
280
|
phases); each key is omitted when it does not apply (`blocked` when zero, `verify` when the
|
|
240
281
|
feature has no Verify lines). `attention` may contain items of kind `task-blocked` (key
|
|
241
282
|
`<feature>:<task id>`) and `verify-failed` (key `<feature>:phase-N`, reason `verify failed: <why>`).
|
|
242
|
-
|
|
283
|
+
When a fleet run is unfinished, the object also has `fleet` (run, feature, status, phase, stage,
|
|
284
|
+
round, limit, needsDecision, `gates[]`, `lanes[]` with state, stalled, lastActivity and directive
|
|
285
|
+
status, and `others[]`); without a run the key is absent, so the output is byte-identical to before
|
|
286
|
+
(`specs/029-fleet-control-room/contracts/dashboard-json-fleet.md`). Bare `--json` is unchanged.
|
|
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`.
|
|
243
313
|
|
|
244
314
|
```bash
|
|
245
315
|
ambykit dashboard
|
|
316
|
+
ambykit dashboard --json --metrics # + cycle time per phase and converge gap rate
|
|
246
317
|
ambykit dashboard --interactive # full-screen overview (TTY only)
|
|
247
318
|
ambykit dashboard --feature=014 # feature view
|
|
248
319
|
ambykit dashboard --next=10 # longer Up next list
|
|
@@ -305,6 +376,7 @@ ambykit fleet claim 019 T012 src/a.ts [--worker=<id>] # refused, naming the ow
|
|
|
305
376
|
ambykit fleet release 019 T012
|
|
306
377
|
ambykit fleet note 019 T012 --files=src/a.ts "one-line note"
|
|
307
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
|
|
308
380
|
```
|
|
309
381
|
|
|
310
382
|
`start` creates nothing for a feature that is already done or whose spec, plan or tasks are missing or draft.
|
|
@@ -315,6 +387,121 @@ tasks. `--worker-start` is refused when no slot is free; `--restart` is refused
|
|
|
315
387
|
restarts, pausing the lane and asking a person. `--round` prints `retry` or `escalate` and, on `escalate`,
|
|
316
388
|
waits for a decision. Pause, resume and stop go through the same writer as `ambykit directive`.
|
|
317
389
|
|
|
390
|
+
## `ambykit run <feature>`
|
|
391
|
+
|
|
392
|
+
Run a feature's **prepared lanes** headless: one assistant per lane, in that lane's worktree, supervised,
|
|
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
|
|
396
|
+
AmbyKit does, so nothing starts without `--yes`, and an assistant without a **verified** runner is refused.
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
ambykit run 028 # print the exact command for each lane, caps, budgets; launch nothing
|
|
400
|
+
ambykit run 028 --yes # print, then launch the lanes and supervise them to the end
|
|
401
|
+
ambykit run 028 --emit-script # write launch.sh and launch.ps1 under .amby/fleet/028-....scripts/; launch nothing
|
|
402
|
+
ambykit run 028 --yes --assistant=claude,codex --unattended --max-minutes=90 --max-tasks=20
|
|
403
|
+
ambykit run --continue-run=028-ambykit-run.1 --yes # continue a stopped or interrupted run
|
|
404
|
+
ambykit run --runners [--json] # the headless runners, what each can do, and why one is not runnable
|
|
405
|
+
ambykit run approve|reject <run> [--gate=<id>] [--reason=<text>]
|
|
406
|
+
ambykit run approve <run> --reassign=lane-1-1:codex # a person's approval to move a lane to another assistant
|
|
407
|
+
```
|
|
408
|
+
|
|
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.
|
|
421
|
+
- **What a lane gets.** Its task IDs, the artifacts by `@path` reference, the files it owns and the report
|
|
422
|
+
protocol: nothing else is copied in. A restart lists only the tasks still unchecked.
|
|
423
|
+
- **Caps.** `fleet.concurrency` (default 3 in total, 2 of one assistant). Lanes beyond the cap start as slots free.
|
|
424
|
+
- **Stalls.** A lane with no report and no `tasks.md` change for `fleet.stallMinutes` (15) is stopped and restarted
|
|
425
|
+
with its work preserved, up to `fleet.restartLimit` (2) times; then it pauses and a person decides. Waiting,
|
|
426
|
+
blocked and paused lanes are never stalled. A lane moves to another assistant only with
|
|
427
|
+
`approve --reassign`.
|
|
428
|
+
- **Review before merge.** A finished lane is reviewed by QA, then the architect, each launched as a process of the
|
|
429
|
+
lane's assistant, using spec 019's verdict files (`verdicts/<lane>.<role>.<round>.json`). A failure goes back to
|
|
430
|
+
the same lane's worker as finding IDs only; after `fleet.roundLimit` (3) failed rounds a person is asked. A
|
|
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.
|
|
435
|
+
- **Merges.** One lane at a time in name order, with the check-off-aware merge of `ambykit lane merge`. A real
|
|
436
|
+
conflict pauses that merge and the run waits; resolve it by hand and the run carries on. A lane that ends with
|
|
437
|
+
tasks open is `unfinished` and never merged.
|
|
438
|
+
- **Checkpoints.** When a prepared set completes a user story the run stops for `approve` (or `reject`) before
|
|
439
|
+
the next set starts, unless `--unattended` was given (shown at start). The gate lives in `run.json` `gates[]`;
|
|
440
|
+
the dashboard calls the same function. Non-parallel tasks of a phase are not run headless: the run reports
|
|
441
|
+
them and pauses.
|
|
442
|
+
- **Budgets.** Wall-clock (default 120 minutes) and task events (twice the open tasks) are always enforced; a
|
|
443
|
+
token ceiling (`--max-tokens`) only where the runner reports usage, and the run says so when it cannot. Going
|
|
444
|
+
over stops launching, writes a `stop` directive for each running lane, records why, and terminates a lane that
|
|
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.
|
|
448
|
+
- **Directives.** `ambykit directive` (or the dashboard, or `/amby.run`) pauses, resumes or stops a lane from any
|
|
449
|
+
host; the worker finishes its task and obeys at its next report, and the run records it. Ctrl-C saves and
|
|
450
|
+
exits; `--continue-run` carries on and repeats no completed task.
|
|
451
|
+
- **State** is `.amby/fleet/<run>/`, the same layout `/amby.run` uses, so either host can inspect, pause or
|
|
452
|
+
continue the other's run. Nothing is written outside the project.
|
|
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
|
+
|
|
499
|
+
`run` uses the single `fleet` object in `.amby/config.json` (`stallMinutes`, `restartLimit`, `concurrency`,
|
|
500
|
+
`roundLimit`, `tickSeconds`, `budgets`, `workerModel`) and adds two keys: `stopGraceMinutes` and `runners` (the
|
|
501
|
+
assistants lanes are spread over, in order; default the configured `tools`). Both headless runners start
|
|
502
|
+
**unverified** (see the matrix in `docs/tool-compatibility.md`), so `--yes` refuses them until each has been
|
|
503
|
+
confirmed on a live install.
|
|
504
|
+
|
|
318
505
|
## `ambykit analyze`
|
|
319
506
|
|
|
320
507
|
Validate the story dependency graph, computed locally from `specs/` (no model tokens): detects
|
|
@@ -327,6 +514,20 @@ where at least one is `[P]`, are reported as **Lane conflicts** (by task id and
|
|
|
327
514
|
non-zero. Open tasks with no usable path, or a glob, are listed as warnings and do not affect the
|
|
328
515
|
exit code.
|
|
329
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
|
+
|
|
330
531
|
Also reports, as warnings only (the exit code never changes), what the task file says about itself:
|
|
331
532
|
|
|
332
533
|
- **Blocked tasks** — open tasks with a `BLOCKED: <reason>` marker, and **Deviations** — tasks with
|
|
@@ -350,9 +551,22 @@ Test design adds one more key, `testDesign`: `findings` (`feature`, `kind`, `mes
|
|
|
350
551
|
`missing` (the features that have no `tests.md`). It is present only when at least one feature has a `tests.md`,
|
|
351
552
|
so a project without test design reports exactly what it did before.
|
|
352
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
|
+
|
|
353
567
|
```bash
|
|
354
568
|
ambykit analyze
|
|
355
|
-
ambykit analyze --json # includes lanes.conflicts and lanes.declarations
|
|
569
|
+
ambykit analyze --json # includes lanes.conflicts and lanes.declarations (lanes.reads when present)
|
|
356
570
|
# plus blockedTasks, deviations, markerIssues, verifyIssues, testDesign when present
|
|
357
571
|
```
|
|
358
572
|
|
|
@@ -426,6 +640,54 @@ it("019:FR-004, 020:FR-001: shared behavior", () => { … }); // several ids
|
|
|
426
640
|
- Only `it`/`test` titles are read: an id in a `describe(...)` name does not cite the tests beneath it,
|
|
427
641
|
and `.each` titles are not expanded.
|
|
428
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
|
+
|
|
429
691
|
## `ambykit check`
|
|
430
692
|
|
|
431
693
|
Doctor: verify integrations are present and well-formed and that expected assistant CLIs are
|
|
@@ -433,6 +695,13 @@ installed. Reports drift between the neutral source and emitted files, worktrees
|
|
|
433
695
|
already merged, and role problems in `.amby/roles/` (oversized roles, duplicate ids, shipped
|
|
434
696
|
defaults that were deleted — `ambykit sync` reinstalls those).
|
|
435
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
|
+
|
|
436
705
|
## `ambykit update`
|
|
437
706
|
|
|
438
707
|
Update the AmbyKit CLI to the latest published version, then refresh this project's tool prompts.
|
package/docs/contributing.md
CHANGED
|
@@ -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`.
|