@ambystech/ambykit 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +1 -0
- package/dist/cli/dashboard.d.ts +4 -1
- package/dist/cli/dashboard.js +45 -15
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/lane.d.ts +0 -2
- package/dist/cli/lane.js +9 -104
- package/dist/cli/lane.js.map +1 -1
- package/dist/cli/run-budget.d.ts +18 -0
- package/dist/cli/run-budget.js +75 -0
- package/dist/cli/run-budget.js.map +1 -0
- package/dist/cli/run-control.d.ts +28 -0
- package/dist/cli/run-control.js +139 -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-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 +89 -0
- package/dist/cli/run-launch.js.map +1 -0
- package/dist/cli/run-loop.d.ts +37 -0
- package/dist/cli/run-loop.js +150 -0
- package/dist/cli/run-loop.js.map +1 -0
- package/dist/cli/run-merger.d.ts +12 -0
- package/dist/cli/run-merger.js +88 -0
- package/dist/cli/run-merger.js.map +1 -0
- package/dist/cli/run-plan.d.ts +28 -0
- package/dist/cli/run-plan.js +49 -0
- package/dist/cli/run-plan.js.map +1 -0
- package/dist/cli/run-process.d.ts +39 -0
- package/dist/cli/run-process.js +99 -0
- package/dist/cli/run-process.js.map +1 -0
- package/dist/cli/run-protocol-prompts.d.ts +7 -0
- package/dist/cli/run-protocol-prompts.js +36 -0
- package/dist/cli/run-protocol-prompts.js.map +1 -0
- package/dist/cli/run-protocol.d.ts +10 -0
- package/dist/cli/run-protocol.js +99 -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 +66 -0
- package/dist/cli/run-script.js.map +1 -0
- package/dist/cli/run-session.d.ts +60 -0
- package/dist/cli/run-session.js +21 -0
- package/dist/cli/run-session.js.map +1 -0
- package/dist/cli/run-supervisor.d.ts +20 -0
- package/dist/cli/run-supervisor.js +144 -0
- package/dist/cli/run-supervisor.js.map +1 -0
- package/dist/cli/run.d.ts +73 -0
- package/dist/cli/run.js +363 -0
- package/dist/cli/run.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 +50 -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 +1 -1
- package/dist/cli/ui/dashboard/help-overlay.js +11 -0
- package/dist/cli/ui/dashboard/help-overlay.js.map +1 -1
- 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 +26 -8
- package/dist/cli/ui/interactive/fullscreen.js.map +1 -1
- 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 +15 -1
- package/dist/cli/ui/interactive/overview.js +49 -0
- package/dist/cli/ui/interactive/overview.js.map +1 -1
- package/dist/core/config.d.ts +3 -0
- package/dist/core/config.js +6 -0
- package/dist/core/config.js.map +1 -1
- 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/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/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/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 +51 -0
- package/dist/core/run-launch-plan.js +27 -0
- package/dist/core/run-launch-plan.js.map +1 -0
- package/dist/core/run-prompt.d.ts +47 -0
- package/dist/core/run-prompt.js +37 -0
- package/dist/core/run-prompt.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-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 +59 -0
- package/dist/core/runners.js +60 -0
- package/dist/core/runners.js.map +1 -0
- package/dist/core/types.d.ts +7 -0
- package/docs/cli-reference.md +78 -2
- package/docs/tool-compatibility.md +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompts for headless jobs (feature 028, FR-004, Principle 3). A lane's prompt carries only what the
|
|
3
|
+
* assistant cannot get cheaper elsewhere: its task IDs, the artifacts by `@path` reference, and the files it
|
|
4
|
+
* owns. Task text, the spec and the plan are never copied in: the assistant reads them by reference.
|
|
5
|
+
*/
|
|
6
|
+
export const shortName = (lane) => lane.slice(lane.lastIndexOf(".lane-") + 1);
|
|
7
|
+
export function buildLanePrompt(lane, opts) {
|
|
8
|
+
const open = opts.open ?? lane.tasks.map((t) => t.id);
|
|
9
|
+
const refs = opts.artifacts.map((a) => `@${a}`).join(" ");
|
|
10
|
+
const own = [...new Set(lane.tasks.filter((t) => open.includes(t.id)).flatMap((t) => t.paths))];
|
|
11
|
+
const name = shortName(lane.lane);
|
|
12
|
+
const lines = [];
|
|
13
|
+
if (opts.findings && opts.findings.length > 0) {
|
|
14
|
+
lines.push(`You are the worker of lane ${name} of ${lane.feature} (run ${opts.run}). Fix exactly these review findings and nothing else: ${opts.findings.join(", ")}.`);
|
|
15
|
+
lines.push(`Read: ${refs}. The findings are in the verdict files under .amby/fleet/${opts.run}/verdicts/. Report one line per ID: <id>: fixed (<files>).`);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
lines.push(`You are the worker of lane ${name} of ${lane.feature} (run ${opts.run}), phase ${lane.phase}. Build only these tasks, in order, and check each off in tasks.md: ${open.join(", ") || "(none left)"}.`);
|
|
19
|
+
lines.push(`Read: ${refs}.`);
|
|
20
|
+
}
|
|
21
|
+
if (own.length > 0)
|
|
22
|
+
lines.push(`Edit only the files you own: ${own.join(", ")}.`);
|
|
23
|
+
lines.push(`Report: ambykit activity ${lane.feature} --phase=implement --task=T### --lane=${name} --state=<working|waiting|blocked|done> --run=${opts.run}; then read your directive with: ambykit fleet directive ${lane.feature} ${name} --run=${opts.run}.`);
|
|
24
|
+
if (opts.protocol)
|
|
25
|
+
lines.push(opts.protocol);
|
|
26
|
+
return lines.join("\n");
|
|
27
|
+
}
|
|
28
|
+
/** QA and architect jobs: the role by `@` reference, the phase's Verify line, and where to write the verdict. */
|
|
29
|
+
export function buildRolePrompt(input) {
|
|
30
|
+
const refs = input.artifacts.map((a) => `@${a}`).join(" ");
|
|
31
|
+
return [
|
|
32
|
+
`Act as the ${input.role} reviewer: follow @${input.roleFile}. Review lane ${shortName(input.lane)} of ${input.feature}, phase ${input.phase}, round ${input.round}. Read: ${refs}.`,
|
|
33
|
+
input.verify ? `Run this check and judge its result: ${input.verify}` : "The phase has no Verify line: review the lane's diff against the plan.",
|
|
34
|
+
`Write your verdict to .amby/fleet/${input.run}/${input.verdictFile} as JSON: {"verdict":"pass"|"fail","findings":[{"id","severity","finding","fix"}]}. A fail needs at least one finding with an id. Edit no other file.`,
|
|
35
|
+
].join("\n");
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=run-prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-prompt.js","sourceRoot":"","sources":["../../src/core/run-prompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAuBH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9F,MAAM,UAAU,eAAe,CAAC,IAAgB,EAAE,IAAuB;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACtD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,K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GAAG,CACpP,CAAC;IACF,IAAI,IAAI,CAAC,QAAQ;QAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAoBD,iHAAiH;AACjH,MAAM,UAAU,eAAe,CAAC,KAAsB;IACpD,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3D,OAAO;QACL,cAAc,KAAK,CAAC,IAAI,sBAAsB,KAAK,CAAC,QAAQ,iBAAiB,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,OAAO,WAAW,KAAK,CAAC,KAAK,WAAW,KAAK,CAAC,KAAK,WAAW,IAAI,GAAG;QACpL,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,wCAAwC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,wEAAwE;QAChJ,qCAAqC,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,WAAW,uJAAuJ;KAC3N,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type VerdictResult } from "./fleet/run-flow.js";
|
|
2
|
+
/**
|
|
3
|
+
* The review loop's state machine (feature 028, FR-018, SC-009). Pure: it takes where a lane is in the loop and
|
|
4
|
+
* what the last reviewer wrote, and says what happens next. The verdict contract is spec 019's
|
|
5
|
+
* (`verdicts/<lane>.<role>.<round>.json`, parsed by `parseVerdict`); the round limit is `fleet.roundLimit`.
|
|
6
|
+
* Order is QA first, then the architect; a failure from either goes back to the same lane's worker as finding
|
|
7
|
+
* IDs only, and after `limit` failed rounds the loop stops and asks a person.
|
|
8
|
+
*/
|
|
9
|
+
export type Reviewer = "qa" | "architect";
|
|
10
|
+
export type ReviewStep =
|
|
11
|
+
/** The reviewer has not run this round: launch it. */
|
|
12
|
+
{
|
|
13
|
+
kind: "launch";
|
|
14
|
+
role: Reviewer;
|
|
15
|
+
round: number;
|
|
16
|
+
}
|
|
17
|
+
/** QA passed: the architect reviews next. */
|
|
18
|
+
| {
|
|
19
|
+
kind: "advance";
|
|
20
|
+
to: "architect";
|
|
21
|
+
}
|
|
22
|
+
/** Both passed: the lane may merge. */
|
|
23
|
+
| {
|
|
24
|
+
kind: "pass";
|
|
25
|
+
}
|
|
26
|
+
/** A failure under the limit: the worker fixes exactly these findings, then the next round starts at QA. */
|
|
27
|
+
| {
|
|
28
|
+
kind: "fix";
|
|
29
|
+
findings: string[];
|
|
30
|
+
failedRounds: number;
|
|
31
|
+
}
|
|
32
|
+
/** The loop ends here and a person decides. */
|
|
33
|
+
| {
|
|
34
|
+
kind: "escalate";
|
|
35
|
+
reason: string;
|
|
36
|
+
findings: string[];
|
|
37
|
+
failedRounds: number;
|
|
38
|
+
};
|
|
39
|
+
export interface ReviewInput {
|
|
40
|
+
stage: Reviewer;
|
|
41
|
+
round: number;
|
|
42
|
+
/** Rounds of this lane that already ended in a failure. */
|
|
43
|
+
failedRounds: number;
|
|
44
|
+
limit: number;
|
|
45
|
+
/** The reviewer's process for this round has finished. */
|
|
46
|
+
reviewerDone: boolean;
|
|
47
|
+
/** The parsed verdict file; `null` = no file. Ignored until `reviewerDone`. */
|
|
48
|
+
verdict: VerdictResult | null;
|
|
49
|
+
}
|
|
50
|
+
export declare function reviewStep(input: ReviewInput): ReviewStep;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { nextRoundAction } from "./fleet/run-flow.js";
|
|
2
|
+
export function reviewStep(input) {
|
|
3
|
+
if (!input.reviewerDone)
|
|
4
|
+
return { kind: "launch", role: input.stage, round: input.round };
|
|
5
|
+
if (input.verdict === null) {
|
|
6
|
+
return { kind: "escalate", reason: `the ${input.stage} reviewer wrote no verdict for round ${input.round}`, findings: [], failedRounds: input.failedRounds };
|
|
7
|
+
}
|
|
8
|
+
if (!input.verdict.ok) {
|
|
9
|
+
return { kind: "escalate", reason: `the ${input.stage} verdict for round ${input.round} is invalid: ${input.verdict.error}`, findings: [], failedRounds: input.failedRounds };
|
|
10
|
+
}
|
|
11
|
+
if (input.verdict.verdict.verdict === "pass")
|
|
12
|
+
return input.stage === "qa" ? { kind: "advance", to: "architect" } : { kind: "pass" };
|
|
13
|
+
const failed = input.failedRounds + 1;
|
|
14
|
+
const ids = input.verdict.failingIds;
|
|
15
|
+
if (nextRoundAction(failed, input.limit) === "escalate") {
|
|
16
|
+
return { kind: "escalate", reason: `still failing after ${failed} review round${failed === 1 ? "" : "s"} (limit ${input.limit})`, findings: ids, failedRounds: failed };
|
|
17
|
+
}
|
|
18
|
+
return { kind: "fix", findings: ids, failedRounds: failed };
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=run-review.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-review.js","sourceRoot":"","sources":["../../src/core/run-review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,qBAAqB,CAAC;AAoC1E,MAAM,UAAU,UAAU,CAAC,KAAkB;IAC3C,IAAI,CAAC,KAAK,CAAC,YAAY;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;IAC1F,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QAC3B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,KAAK,CAAC,KAAK,wCAAwC,KAAK,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC/J,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QACtB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,KAAK,CAAC,KAAK,sBAAsB,KAAK,CAAC,KAAK,gBAAgB,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAChL,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACpI,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC;IACtC,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IACrC,IAAI,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,UAAU,EAAE,CAAC;QACxD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,uBAAuB,MAAM,gBAAgB,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,WAAW,KAAK,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC;IAC1K,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DependencyGraph } from "./graph-types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Which queued lanes start now (feature 028, FR-005). Pure: the total cap and the per-type cap come from
|
|
4
|
+
* `fleet.concurrency`; order is the queue's order, which is stable (phase, then lane index). A lane in `held`
|
|
5
|
+
* waits (an unfinished cross-story dependency, or a gate), and a lane whose assistant is at its per-type cap
|
|
6
|
+
* is skipped without blocking later lanes of another type.
|
|
7
|
+
*/
|
|
8
|
+
export interface QueuedLane {
|
|
9
|
+
lane: string;
|
|
10
|
+
assistant: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function nextToStart(queue: QueuedLane[], running: QueuedLane[], caps: {
|
|
13
|
+
total: number;
|
|
14
|
+
perType: number;
|
|
15
|
+
}, held?: ReadonlySet<string>): QueuedLane[];
|
|
16
|
+
/**
|
|
17
|
+
* Lanes held because a story they build has an unmet blocker in another feature (spec 023's graph). Within a
|
|
18
|
+
* feature the phase order already sequences work, so only cross-feature blockers hold a lane here.
|
|
19
|
+
*/
|
|
20
|
+
export declare function heldByDependencies(graph: DependencyGraph, feature: string, lanes: {
|
|
21
|
+
lane: string;
|
|
22
|
+
stories: string[];
|
|
23
|
+
}[]): Set<string>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { blockersOf } from "./graph-paths.js";
|
|
2
|
+
export function nextToStart(queue, running, caps, held = new Set()) {
|
|
3
|
+
const perType = new Map();
|
|
4
|
+
for (const r of running)
|
|
5
|
+
perType.set(r.assistant, (perType.get(r.assistant) ?? 0) + 1);
|
|
6
|
+
let total = running.length;
|
|
7
|
+
const start = [];
|
|
8
|
+
for (const q of queue) {
|
|
9
|
+
if (total >= caps.total)
|
|
10
|
+
break;
|
|
11
|
+
if (held.has(q.lane))
|
|
12
|
+
continue;
|
|
13
|
+
const n = perType.get(q.assistant) ?? 0;
|
|
14
|
+
if (n >= caps.perType)
|
|
15
|
+
continue;
|
|
16
|
+
start.push(q);
|
|
17
|
+
perType.set(q.assistant, n + 1);
|
|
18
|
+
total += 1;
|
|
19
|
+
}
|
|
20
|
+
return start;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lanes held because a story they build has an unmet blocker in another feature (spec 023's graph). Within a
|
|
24
|
+
* feature the phase order already sequences work, so only cross-feature blockers hold a lane here.
|
|
25
|
+
*/
|
|
26
|
+
export function heldByDependencies(graph, feature, lanes) {
|
|
27
|
+
const held = new Set();
|
|
28
|
+
for (const l of lanes) {
|
|
29
|
+
for (const story of l.stories) {
|
|
30
|
+
const key = `${feature}:${story}`;
|
|
31
|
+
const crossFeature = blockersOf(graph, key).some((b) => !b.key.startsWith(`${feature}:`));
|
|
32
|
+
if (crossFeature) {
|
|
33
|
+
held.add(l.lane);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return held;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=run-schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-schedule.js","sourceRoot":"","sources":["../../src/core/run-schedule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAa9C,MAAM,UAAU,WAAW,CACzB,KAAmB,EACnB,OAAqB,EACrB,IAAwC,EACxC,IAAI,GAAwB,IAAI,GAAG,EAAE;IAErC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC1C,KAAK,MAAM,CAAC,IAAI,OAAO;QAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACvF,IAAI,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;IAC3B,MAAM,KAAK,GAAiB,EAAE,CAAC;IAC/B,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,IAAI,KAAK,IAAI,IAAI,CAAC,KAAK;YAAE,MAAM;QAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;YAAE,SAAS;QAC/B,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO;YAAE,SAAS;QAChC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAChC,KAAK,IAAI,CAAC,CAAC;IACb,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAChC,KAAsB,EACtB,OAAe,EACf,KAA4C;IAE5C,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,KAAK,MAAM,KAAK,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;YAC9B,MAAM,GAAG,GAAG,GAAG,OAAO,IAAI,KAAK,EAAE,CAAC;YAClC,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC;YAC1F,IAAI,YAAY,EAAE,CAAC;gBACjB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBACjB,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure supervision rules (feature 028, FR-008..FR-010, FR-013, FR-014). Each takes a snapshot and returns a
|
|
3
|
+
* decision; none touches a process, a file or the clock. *Whether a lane is stalled* is spec 025's
|
|
4
|
+
* `laneStatus` (waiting, blocked, paused and done lanes are exempt there); 028 only decides what to do about it.
|
|
5
|
+
*/
|
|
6
|
+
export type RestartDecision = "none" | "restart" | "pause";
|
|
7
|
+
/** A stalled lane restarts until `limit` restarts are used; the next stall pauses it for a person (FR-009). */
|
|
8
|
+
export declare function restartDecision(input: {
|
|
9
|
+
stalled: boolean;
|
|
10
|
+
restarts: number;
|
|
11
|
+
limit: number;
|
|
12
|
+
}): RestartDecision;
|
|
13
|
+
/** A person's approval to move a lane to another assistant, recorded in `run.json` `approvals[]`. */
|
|
14
|
+
export interface ReassignApproval {
|
|
15
|
+
kind: "reassign";
|
|
16
|
+
lane: string;
|
|
17
|
+
to: string;
|
|
18
|
+
at: string;
|
|
19
|
+
}
|
|
20
|
+
export type ReassignDecision = {
|
|
21
|
+
allowed: true;
|
|
22
|
+
} | {
|
|
23
|
+
allowed: false;
|
|
24
|
+
reason: string;
|
|
25
|
+
};
|
|
26
|
+
/** FR-009: a lane moves to a different assistant only with that person's approval; never on its own. */
|
|
27
|
+
export declare function reassignGate(approvals: unknown[], lane: string, to: string): ReassignDecision;
|
|
28
|
+
export interface Budgets {
|
|
29
|
+
/** Minutes the run may take. Always enforced. */
|
|
30
|
+
wallClockMinutes: number;
|
|
31
|
+
/** Task events (check-offs plus restarts and fix rounds) the run may use. Always enforced. */
|
|
32
|
+
maxTasks: number;
|
|
33
|
+
/** Tokens, enforced only where every runner in the run reports usage. */
|
|
34
|
+
maxTokens?: number;
|
|
35
|
+
}
|
|
36
|
+
export declare const DEFAULT_WALL_CLOCK_MINUTES = 120;
|
|
37
|
+
/** Defaults: 120 minutes, and twice the open tasks of the prepared lanes (room for rework). Config, then flags. */
|
|
38
|
+
export declare function resolveBudgets(input: {
|
|
39
|
+
openTasks: number;
|
|
40
|
+
config?: Record<string, number>;
|
|
41
|
+
flags?: Partial<Budgets>;
|
|
42
|
+
}): Budgets;
|
|
43
|
+
export interface BudgetSnapshot {
|
|
44
|
+
elapsedMs: number;
|
|
45
|
+
tasksUsed: number;
|
|
46
|
+
tokensUsed?: number;
|
|
47
|
+
/** True when every runner of the run reports usage. */
|
|
48
|
+
reportsUsage: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface BudgetDecision {
|
|
51
|
+
exceeded: boolean;
|
|
52
|
+
/** Why the run must stop; recorded in the run state. */
|
|
53
|
+
reason?: string;
|
|
54
|
+
/** Budgets that are set but cannot be enforced, stated at start and when exceeded (FR-013). */
|
|
55
|
+
unenforced: string[];
|
|
56
|
+
}
|
|
57
|
+
export declare function budgetDecision(budgets: Budgets, snap: BudgetSnapshot): BudgetDecision;
|
|
58
|
+
/** After a stop or budget directive: terminate a lane that has not reported for the stop grace (FR-014). */
|
|
59
|
+
export declare function mustTerminate(input: {
|
|
60
|
+
stopRequestedAt: number;
|
|
61
|
+
lastReportAt: number | null;
|
|
62
|
+
now: number;
|
|
63
|
+
graceMinutes: number;
|
|
64
|
+
}): boolean;
|
|
65
|
+
/** A verified runner that exits non-zero within this many seconds of starting is a command/version mismatch. */
|
|
66
|
+
export declare const FAST_FAILURE_SECONDS = 15;
|
|
67
|
+
/** True when a lane's process died at once with an error: the runner's recorded command no longer works. */
|
|
68
|
+
export declare function isImmediateFailure(input: {
|
|
69
|
+
code: number | null;
|
|
70
|
+
ranMs: number;
|
|
71
|
+
}): boolean;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure supervision rules (feature 028, FR-008..FR-010, FR-013, FR-014). Each takes a snapshot and returns a
|
|
3
|
+
* decision; none touches a process, a file or the clock. *Whether a lane is stalled* is spec 025's
|
|
4
|
+
* `laneStatus` (waiting, blocked, paused and done lanes are exempt there); 028 only decides what to do about it.
|
|
5
|
+
*/
|
|
6
|
+
/** A stalled lane restarts until `limit` restarts are used; the next stall pauses it for a person (FR-009). */
|
|
7
|
+
export function restartDecision(input) {
|
|
8
|
+
if (!input.stalled)
|
|
9
|
+
return "none";
|
|
10
|
+
return input.restarts < input.limit ? "restart" : "pause";
|
|
11
|
+
}
|
|
12
|
+
/** FR-009: a lane moves to a different assistant only with that person's approval; never on its own. */
|
|
13
|
+
export function reassignGate(approvals, lane, to) {
|
|
14
|
+
const ok = approvals.some((a) => {
|
|
15
|
+
const r = a;
|
|
16
|
+
return !!r && r.kind === "reassign" && r.lane === lane && r.to === to;
|
|
17
|
+
});
|
|
18
|
+
return ok ? { allowed: true } : { allowed: false, reason: `moving ${lane} to ${to} needs a person's approval; none is recorded` };
|
|
19
|
+
}
|
|
20
|
+
export const DEFAULT_WALL_CLOCK_MINUTES = 120;
|
|
21
|
+
/** Defaults: 120 minutes, and twice the open tasks of the prepared lanes (room for rework). Config, then flags. */
|
|
22
|
+
export function resolveBudgets(input) {
|
|
23
|
+
const c = input.config ?? {};
|
|
24
|
+
const f = input.flags ?? {};
|
|
25
|
+
const out = {
|
|
26
|
+
wallClockMinutes: f.wallClockMinutes ?? c["wallClockMinutes"] ?? DEFAULT_WALL_CLOCK_MINUTES,
|
|
27
|
+
maxTasks: f.maxTasks ?? c["maxTasks"] ?? Math.max(1, input.openTasks * 2),
|
|
28
|
+
};
|
|
29
|
+
const tokens = f.maxTokens ?? c["maxTokens"];
|
|
30
|
+
if (tokens !== undefined)
|
|
31
|
+
out.maxTokens = tokens;
|
|
32
|
+
return out;
|
|
33
|
+
}
|
|
34
|
+
export function budgetDecision(budgets, snap) {
|
|
35
|
+
const unenforced = [];
|
|
36
|
+
if (budgets.maxTokens !== undefined && !snap.reportsUsage)
|
|
37
|
+
unenforced.push("token ceiling not enforceable for this runner (it does not report usage)");
|
|
38
|
+
if (snap.elapsedMs > budgets.wallClockMinutes * 60_000) {
|
|
39
|
+
return { exceeded: true, reason: `wall-clock budget of ${budgets.wallClockMinutes} minutes exceeded`, unenforced };
|
|
40
|
+
}
|
|
41
|
+
if (snap.tasksUsed > budgets.maxTasks) {
|
|
42
|
+
return { exceeded: true, reason: `task budget of ${budgets.maxTasks} exceeded (${snap.tasksUsed} used)`, unenforced };
|
|
43
|
+
}
|
|
44
|
+
if (budgets.maxTokens !== undefined && snap.reportsUsage && (snap.tokensUsed ?? 0) > budgets.maxTokens) {
|
|
45
|
+
return { exceeded: true, reason: `token ceiling of ${budgets.maxTokens} exceeded (${snap.tokensUsed} used)`, unenforced };
|
|
46
|
+
}
|
|
47
|
+
return { exceeded: false, unenforced };
|
|
48
|
+
}
|
|
49
|
+
/** After a stop or budget directive: terminate a lane that has not reported for the stop grace (FR-014). */
|
|
50
|
+
export function mustTerminate(input) {
|
|
51
|
+
const last = Math.max(input.stopRequestedAt, input.lastReportAt ?? 0);
|
|
52
|
+
return input.now - last > input.graceMinutes * 60_000;
|
|
53
|
+
}
|
|
54
|
+
// --- immediate failure (US-3 AC3) ---------------------------------------------------------
|
|
55
|
+
/** A verified runner that exits non-zero within this many seconds of starting is a command/version mismatch. */
|
|
56
|
+
export const FAST_FAILURE_SECONDS = 15;
|
|
57
|
+
/** True when a lane's process died at once with an error: the runner's recorded command no longer works. */
|
|
58
|
+
export function isImmediateFailure(input) {
|
|
59
|
+
return input.code !== 0 && input.ranMs < FAST_FAILURE_SECONDS * 1000;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=run-supervise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-supervise.js","sourceRoot":"","sources":["../../src/core/run-supervise.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,+GAA+G;AAC/G,MAAM,UAAU,eAAe,CAAC,KAA4D;IAC1F,IAAI,CAAC,KAAK,CAAC,OAAO;QAAE,OAAO,MAAM,CAAC;IAClC,OAAO,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AAC5D,CAAC;AAYD,wGAAwG;AACxG,MAAM,UAAU,YAAY,CAAC,SAAoB,EAAE,IAAY,EAAE,EAAU;IACzE,MAAM,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QAC9B,MAAM,CAAC,GAAG,CAAqC,CAAC;QAChD,OAAO,CAAC,CAAC,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AAI,KAAK,CAAC,KAAK,GAAG,oBAAoB,GAAG,IAAI,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Headless runner registry (feature 028, FR-006, FR-007). A runner is *data*: the command that runs one
|
|
3
|
+
* assistant non-interactively, how its exit reads and whether it reports token usage. Every entry starts
|
|
4
|
+
* `verified: false`; a runner becomes runnable only after its command has run a real lane task on a live
|
|
5
|
+
* install (T044, T045), and the matrix in `docs/tool-compatibility.md` carries the same rows (a doc-sync test
|
|
6
|
+
* keeps them equal). `runnable()` is the single chokepoint before any process is spawned (SC-006, Principle 4).
|
|
7
|
+
*/
|
|
8
|
+
export interface RunnerJob {
|
|
9
|
+
/** The full prompt text (IDs, `@` references, ownership). */
|
|
10
|
+
prompt: string;
|
|
11
|
+
/** The same prompt as a file under the run directory, for runners that take a file reference. */
|
|
12
|
+
promptFile: string;
|
|
13
|
+
model?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RunnerCommand {
|
|
16
|
+
exe: string;
|
|
17
|
+
args: string[];
|
|
18
|
+
/** Text written to the process's stdin; absent when the prompt is passed another way. */
|
|
19
|
+
stdin?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface RunnerSpec {
|
|
22
|
+
/** Matches the assistant's id in `config.tools`. */
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
executable: string;
|
|
26
|
+
invoke(job: RunnerJob): RunnerCommand;
|
|
27
|
+
/** How the process's exit is read, in words (recorded in the matrix). */
|
|
28
|
+
exit: string;
|
|
29
|
+
/** Whether the process reports token usage, so a token ceiling can be enforced. */
|
|
30
|
+
reportsUsage: boolean;
|
|
31
|
+
verified: boolean;
|
|
32
|
+
/** The CLI version the command was verified against; present only when `verified`. */
|
|
33
|
+
verifiedVersion?: string;
|
|
34
|
+
/** What is still to confirm on a live install. */
|
|
35
|
+
toVerify: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const RUNNERS: RunnerSpec[];
|
|
38
|
+
export declare function runnerFor(id: string): RunnerSpec | undefined;
|
|
39
|
+
export type Runnable = {
|
|
40
|
+
ok: true;
|
|
41
|
+
runner: RunnerSpec;
|
|
42
|
+
} | {
|
|
43
|
+
ok: false;
|
|
44
|
+
reason: string;
|
|
45
|
+
};
|
|
46
|
+
/** FR-006: only a verified runner is runnable; the reason says exactly why a refused one is not. */
|
|
47
|
+
export declare function runnable(id: string, registry?: RunnerSpec[]): Runnable;
|
|
48
|
+
export interface RunnerListing {
|
|
49
|
+
id: string;
|
|
50
|
+
label: string;
|
|
51
|
+
verified: boolean;
|
|
52
|
+
verifiedVersion?: string;
|
|
53
|
+
reportsUsage: boolean;
|
|
54
|
+
runnable: boolean;
|
|
55
|
+
/** Present when not runnable. */
|
|
56
|
+
reason?: string;
|
|
57
|
+
}
|
|
58
|
+
/** FR-007: the runners with their capabilities, for `ambykit run --runners`. */
|
|
59
|
+
export declare function listRunners(registry?: RunnerSpec[]): RunnerListing[];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Headless runner registry (feature 028, FR-006, FR-007). A runner is *data*: the command that runs one
|
|
3
|
+
* assistant non-interactively, how its exit reads and whether it reports token usage. Every entry starts
|
|
4
|
+
* `verified: false`; a runner becomes runnable only after its command has run a real lane task on a live
|
|
5
|
+
* install (T044, T045), and the matrix in `docs/tool-compatibility.md` carries the same rows (a doc-sync test
|
|
6
|
+
* keeps them equal). `runnable()` is the single chokepoint before any process is spawned (SC-006, Principle 4).
|
|
7
|
+
*/
|
|
8
|
+
export const RUNNERS = [
|
|
9
|
+
{
|
|
10
|
+
id: "claude",
|
|
11
|
+
label: "Claude Code",
|
|
12
|
+
executable: "claude",
|
|
13
|
+
invoke: (job) => ({ exe: "claude", args: ["-p", ...(job.model ? ["--model", job.model] : [])], stdin: job.prompt }),
|
|
14
|
+
exit: "0 = finished its turn; non-zero = failed",
|
|
15
|
+
reportsUsage: false,
|
|
16
|
+
verified: false,
|
|
17
|
+
toVerify: "non-interactive flag, prompt on stdin, permission handling for edits, exit codes, usage output",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "codex",
|
|
21
|
+
label: "Codex",
|
|
22
|
+
executable: "codex",
|
|
23
|
+
invoke: (job) => ({ exe: "codex", args: ["exec", ...(job.model ? ["--model", job.model] : []), "-"], stdin: job.prompt }),
|
|
24
|
+
exit: "0 = finished; non-zero = failed",
|
|
25
|
+
reportsUsage: false,
|
|
26
|
+
verified: false,
|
|
27
|
+
toVerify: "exec subcommand, prompt on stdin, sandbox and approval flags for edits, exit codes, usage output",
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
export function runnerFor(id) {
|
|
31
|
+
return RUNNERS.find((r) => r.id === id);
|
|
32
|
+
}
|
|
33
|
+
/** FR-006: only a verified runner is runnable; the reason says exactly why a refused one is not. */
|
|
34
|
+
export function runnable(id, registry = RUNNERS) {
|
|
35
|
+
const runner = registry.find((r) => r.id === id);
|
|
36
|
+
if (!runner) {
|
|
37
|
+
const ok = registry.filter((r) => r.verified).map((r) => r.id);
|
|
38
|
+
return { ok: false, reason: `no headless runner is recorded for '${id}'; runnable assistants: ${ok.join(", ") || "none yet"}` };
|
|
39
|
+
}
|
|
40
|
+
if (!runner.verified) {
|
|
41
|
+
return { ok: false, reason: `the ${runner.label} runner is not verified yet (to confirm on a live install: ${runner.toVerify}); see docs/tool-compatibility.md` };
|
|
42
|
+
}
|
|
43
|
+
return { ok: true, runner };
|
|
44
|
+
}
|
|
45
|
+
/** FR-007: the runners with their capabilities, for `ambykit run --runners`. */
|
|
46
|
+
export function listRunners(registry = RUNNERS) {
|
|
47
|
+
return registry.map((r) => {
|
|
48
|
+
const can = runnable(r.id, registry);
|
|
49
|
+
return {
|
|
50
|
+
id: r.id,
|
|
51
|
+
label: r.label,
|
|
52
|
+
verified: r.verified,
|
|
53
|
+
...(r.verifiedVersion ? { verifiedVersion: r.verifiedVersion } : {}),
|
|
54
|
+
reportsUsage: r.reportsUsage,
|
|
55
|
+
runnable: can.ok,
|
|
56
|
+
...(can.ok ? {} : { reason: can.reason }),
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=runners.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runners.js","sourceRoot":"","sources":["../../src/core/runners.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkCH,MAAM,CAAC,MAAM,OAAO,GAAiB;IACnC;QACE,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;QACnH,IAAI,EAAE,0CAA0C;QAChD,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,gGAAgG;KAC3G;IACD;QACE,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,OAAO;QACnB,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;QACzH,IAAI,EAAE,iCAAiC;QACvC,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,KAA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,CAAC,CAAC;QACrC,OAAO;YACL,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,GAAG,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACpE,YAAY,EAAE,CAAC,CAAC,YAAY;YAC5B,QAAQ,EAAE,GAAG,CAAC,EAAE;YAChB,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;SAC1C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/core/types.d.ts
CHANGED
|
@@ -117,6 +117,8 @@ export interface RulesContext {
|
|
|
117
117
|
/** `fleet.workerModel` from the project config; applied only where the target documents a `model` key. */
|
|
118
118
|
workerModel?: string;
|
|
119
119
|
}
|
|
120
|
+
/** `dashboard.icons` (feature 029): the icon set, hand-edited; `auto` detects from the terminal. */
|
|
121
|
+
export type DashboardIcons = "nerd" | "unicode" | "ascii" | "auto";
|
|
120
122
|
/** Persisted project configuration at .amby/config.json. */
|
|
121
123
|
export interface AmbyConfig {
|
|
122
124
|
version: string;
|
|
@@ -130,6 +132,7 @@ export interface AmbyConfig {
|
|
|
130
132
|
dashboard?: {
|
|
131
133
|
activeMinutes?: number;
|
|
132
134
|
idleMinutes?: number;
|
|
135
|
+
icons?: DashboardIcons;
|
|
133
136
|
};
|
|
134
137
|
/** Requirement traceability (feature 024): where to look for tests, and extra directory names to skip. */
|
|
135
138
|
trace?: {
|
|
@@ -163,6 +166,10 @@ export interface FleetConfig {
|
|
|
163
166
|
budgets?: Record<string, number>;
|
|
164
167
|
/** Model a worker runs with, when the host lets the run choose. */
|
|
165
168
|
workerModel?: string;
|
|
169
|
+
/** Minutes a lane's process may stay silent after a stop or budget directive before it is terminated (028). Default 10. */
|
|
170
|
+
stopGraceMinutes?: number;
|
|
171
|
+
/** Assistants `ambykit run` may assign lanes to, in order (028). Default: the configured tools that have a runner. */
|
|
172
|
+
runners?: string[];
|
|
166
173
|
}
|
|
167
174
|
/** How a tool materializes phase prompts. */
|
|
168
175
|
export type CommandSurface = "commands" | "skills" | "workflows" | "none";
|
package/docs/cli-reference.md
CHANGED
|
@@ -227,9 +227,27 @@ Detection reads the process list only, never sends anything, and stops when you
|
|
|
227
227
|
header shows `● live · 3s ago`; where file watching is unavailable it polls every 2 s
|
|
228
228
|
(`◌ polling`), and if monitoring fails it shows `⚠ live paused` and `r` retries. On a
|
|
229
229
|
non-interactive terminal it prints the plain overview, and nothing is watched.
|
|
230
|
+
- **Fleet view** (`l` in `--interactive`) — the lanes of the current fleet run (`ambykit fleet`,
|
|
231
|
+
`ambykit run`), live. Each lane is a row with its assistant, state (`working`, `waiting`, `blocked`,
|
|
232
|
+
`paused`, `done`, `unreported`, `unknown`, always as a word as well as a glyph), quiet time and
|
|
233
|
+
directive status (`continue pending`, `pause requested`, `paused`, `obeyed`). A working lane with no
|
|
234
|
+
report and no `tasks.md` change for `fleet.stallMinutes` (default 15) carries the text
|
|
235
|
+
`STALLED <n>m`. The header shows the run, phase and review stage once (`QA round 1/3`,
|
|
236
|
+
`architect round 2/3`, `NEEDS A DECISION`) and `+N more runs` when other runs are unfinished; story
|
|
237
|
+
checkpoint gates waiting for you are listed below the lanes. Keys: `↑`/`↓` select a lane, `p` pause,
|
|
238
|
+
`u` continue, `x` stop (asks `y`/`n`), `P`/`U`/`X` do the same for every lane of the run (always with
|
|
239
|
+
a `y`/`n` confirmation), `a` approves a waiting gate (`←`/`→` choose between several), `esc` goes
|
|
240
|
+
back, `?` lists the keys. Pause, continue and stop are written as directives for the lane's worker,
|
|
241
|
+
which obeys at its next report; approving a gate is the same action as `ambykit run approve` and
|
|
242
|
+
writes no directive. Without a run the view says so. It reads local files only (no network, no model
|
|
243
|
+
tokens) and is loaded only under `--interactive`.
|
|
230
244
|
- **`--icons=nerd|unicode|ascii`** — icon set. `nerd` (also `AMBYKIT_ICONS=nerd`) shows the
|
|
231
245
|
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.
|
|
246
|
+
`[CC] Claude` and `wt`. The default is unicode when the terminal supports it. The setting can also
|
|
247
|
+
live in `.amby/config.json` as `"dashboard": { "icons": "nerd" | "unicode" | "ascii" | "auto" }`
|
|
248
|
+
(hand-edited, never written by the dashboard). Precedence: `--icons`, then `AMBYKIT_ICONS`, then
|
|
249
|
+
`dashboard.icons`, then auto. A terminal without unicode is always ASCII. In the Fleet view `nerd`
|
|
250
|
+
draws the same glyphs as `unicode`; every state also has a word.
|
|
233
251
|
- **`--json`** — the story list as JSON, unchanged from earlier releases.
|
|
234
252
|
- **`--json --overview`** — one object: `stories` (exactly the `--json` list) plus `summary`,
|
|
235
253
|
`statusCounts`, `features`, `attention`, `upNext`, `burndown`, `issues` and the applied `filters`.
|
|
@@ -239,7 +257,10 @@ Detection reads the process list only, never sends anything, and stops when you
|
|
|
239
257
|
phases); each key is omitted when it does not apply (`blocked` when zero, `verify` when the
|
|
240
258
|
feature has no Verify lines). `attention` may contain items of kind `task-blocked` (key
|
|
241
259
|
`<feature>:<task id>`) and `verify-failed` (key `<feature>:phase-N`, reason `verify failed: <why>`).
|
|
242
|
-
|
|
260
|
+
When a fleet run is unfinished, the object also has `fleet` (run, feature, status, phase, stage,
|
|
261
|
+
round, limit, needsDecision, `gates[]`, `lanes[]` with state, stalled, lastActivity and directive
|
|
262
|
+
status, and `others[]`); without a run the key is absent, so the output is byte-identical to before
|
|
263
|
+
(`specs/029-fleet-control-room/contracts/dashboard-json-fleet.md`). Bare `--json` is unchanged.
|
|
243
264
|
|
|
244
265
|
```bash
|
|
245
266
|
ambykit dashboard
|
|
@@ -315,6 +336,61 @@ tasks. `--worker-start` is refused when no slot is free; `--restart` is refused
|
|
|
315
336
|
restarts, pausing the lane and asking a person. `--round` prints `retry` or `escalate` and, on `escalate`,
|
|
316
337
|
waits for a decision. Pause, resume and stop go through the same writer as `ambykit directive`.
|
|
317
338
|
|
|
339
|
+
## `ambykit run <feature>` (experimental)
|
|
340
|
+
|
|
341
|
+
Run a feature's **prepared lanes** headless: one assistant per lane, in that lane's worktree, supervised,
|
|
342
|
+
merged and reviewed, without a person at the keyboard. **Experimental in 1.6** (the flags and the runner
|
|
343
|
+
commands may change before it is stable in 2.0). Launching processes that edit code is the riskiest thing
|
|
344
|
+
AmbyKit does, so nothing starts without `--yes`, and an assistant without a **verified** runner is refused.
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
ambykit run 028 # print the exact command for each lane, caps, budgets; launch nothing
|
|
348
|
+
ambykit run 028 --yes # print, then launch the lanes and supervise them to the end
|
|
349
|
+
ambykit run 028 --emit-script # write launch.sh and launch.ps1 under .amby/fleet/028-....scripts/; launch nothing
|
|
350
|
+
ambykit run 028 --yes --assistant=claude,codex --unattended --max-minutes=90 --max-tasks=20
|
|
351
|
+
ambykit run --continue-run=028-ambykit-run.1 --yes # continue a stopped or interrupted run
|
|
352
|
+
ambykit run --runners [--json] # the headless runners, what each can do, and why one is not runnable
|
|
353
|
+
ambykit run approve|reject <run> [--gate=<id>] [--reason=<text>]
|
|
354
|
+
ambykit run approve <run> --reassign=lane-1-1:codex # a person's approval to move a lane to another assistant
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
- **Prepare first.** `ambykit lane <feature>` creates the lanes; `run` never creates or removes them. It runs
|
|
358
|
+
the prepared sets in ascending phase order and starts a run only on this explicit request, named
|
|
359
|
+
`<feature>.<n>`. A second `run` on a feature with an unfinished run refuses and points at `--continue-run`.
|
|
360
|
+
- **What a lane gets.** Its task IDs, the artifacts by `@path` reference, the files it owns and the report
|
|
361
|
+
protocol: nothing else is copied in. A restart lists only the tasks still unchecked.
|
|
362
|
+
- **Caps.** `fleet.concurrency` (default 3 in total, 2 of one assistant). Lanes beyond the cap start as slots free.
|
|
363
|
+
- **Stalls.** A lane with no report and no `tasks.md` change for `fleet.stallMinutes` (15) is stopped and restarted
|
|
364
|
+
with its work preserved, up to `fleet.restartLimit` (2) times; then it pauses and a person decides. Waiting,
|
|
365
|
+
blocked and paused lanes are never stalled. A lane moves to another assistant only with
|
|
366
|
+
`approve --reassign`.
|
|
367
|
+
- **Review before merge.** A finished lane is reviewed by QA, then the architect, each launched as a process of the
|
|
368
|
+
lane's assistant, using spec 019's verdict files (`verdicts/<lane>.<role>.<round>.json`). A failure goes back to
|
|
369
|
+
the same lane's worker as finding IDs only; after `fleet.roundLimit` (3) failed rounds a person is asked. A
|
|
370
|
+
lane whose phase **Verify** line failed is never merged.
|
|
371
|
+
- **Merges.** One lane at a time in name order, with the check-off-aware merge of `ambykit lane merge`. A real
|
|
372
|
+
conflict pauses that merge and the run waits; resolve it by hand and the run carries on. A lane that ends with
|
|
373
|
+
tasks open is `unfinished` and never merged.
|
|
374
|
+
- **Checkpoints.** When a prepared set completes a user story the run stops for `approve` (or `reject`) before
|
|
375
|
+
the next set starts, unless `--unattended` was given (shown at start). The gate lives in `run.json` `gates[]`;
|
|
376
|
+
the dashboard calls the same function. Non-parallel tasks of a phase are not run headless: the run reports
|
|
377
|
+
them and pauses.
|
|
378
|
+
- **Budgets.** Wall-clock (default 120 minutes) and task events (twice the open tasks) are always enforced; a
|
|
379
|
+
token ceiling (`--max-tokens`) only where the runner reports usage, and the run says so when it cannot. Going
|
|
380
|
+
over stops launching, writes a `stop` directive for each running lane, records why, and terminates a lane that
|
|
381
|
+
still has not reported after `fleet.stopGraceMinutes` (10).
|
|
382
|
+
- **Directives.** `ambykit directive` (or the dashboard, or `/amby.run`) pauses, resumes or stops a lane from any
|
|
383
|
+
host; the worker finishes its task and obeys at its next report, and the run records it. Ctrl-C saves and
|
|
384
|
+
exits; `--continue-run` carries on and repeats no completed task.
|
|
385
|
+
- **State** is `.amby/fleet/<run>/`, the same layout `/amby.run` uses, so either host can inspect, pause or
|
|
386
|
+
continue the other's run. Nothing is written outside the project.
|
|
387
|
+
|
|
388
|
+
`run` uses the single `fleet` object in `.amby/config.json` (`stallMinutes`, `restartLimit`, `concurrency`,
|
|
389
|
+
`roundLimit`, `tickSeconds`, `budgets`, `workerModel`) and adds two keys: `stopGraceMinutes` and `runners` (the
|
|
390
|
+
assistants lanes are spread over, in order; default the configured `tools`). Both headless runners start
|
|
391
|
+
**unverified** (see the matrix in `docs/tool-compatibility.md`), so `--yes` refuses them until each has been
|
|
392
|
+
confirmed on a live install.
|
|
393
|
+
|
|
318
394
|
## `ambykit analyze`
|
|
319
395
|
|
|
320
396
|
Validate the story dependency graph, computed locally from `specs/` (no model tokens): detects
|
|
@@ -195,6 +195,23 @@ 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)
|
|
199
|
+
|
|
200
|
+
`ambykit run` launches one assistant per lane without a person at the keyboard. Only a **verified** runner is
|
|
201
|
+
ever launched (Principle 4); the registry in `src/core/runners.ts` and this table carry the same rows, and a
|
|
202
|
+
test keeps them equal. A row becomes `verified` only after its command has run a real lane task on a live
|
|
203
|
+
install (the manual tasks T044 and T045 of spec 028), with the CLI version recorded.
|
|
204
|
+
|
|
205
|
+
| Runner | Command (prompt on stdin) | Exit behaviour | Reports usage | Status | Version |
|
|
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 | — |
|
|
209
|
+
|
|
210
|
+
To confirm on a live install, per runner: the non-interactive flag, how the prompt is delivered (stdin, an
|
|
211
|
+
argument or a file), the permission or sandbox flags a headless edit needs, the exit codes, and whether usage
|
|
212
|
+
is reported (a token ceiling is enforced only for runners that report it). Until then `ambykit run --runners`
|
|
213
|
+
lists the runner as not runnable and `ambykit run <feature> --yes` refuses it with this reason.
|
|
214
|
+
|
|
198
215
|
## To verify against a live install
|
|
199
216
|
|
|
200
217
|
Docs conflicted on a couple of points; confirm before shipping those emitters:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambystech/ambykit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
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",
|