@rasensio/aidlc 2.3.0 → 2.5.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/README.md +1 -1
- package/dist/autopilot/decisions.d.ts +72 -0
- package/dist/autopilot/decisions.d.ts.map +1 -0
- package/dist/autopilot/decisions.js +176 -0
- package/dist/autopilot/decisions.js.map +1 -0
- package/dist/autopilot/driver.d.ts.map +1 -1
- package/dist/autopilot/driver.js +23 -2
- package/dist/autopilot/driver.js.map +1 -1
- package/dist/autopilot/review.d.ts +31 -0
- package/dist/autopilot/review.d.ts.map +1 -0
- package/dist/autopilot/review.js +109 -0
- package/dist/autopilot/review.js.map +1 -0
- package/dist/commands/autopilot.d.ts +2 -0
- package/dist/commands/autopilot.d.ts.map +1 -1
- package/dist/commands/autopilot.js +18 -1
- package/dist/commands/autopilot.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +18 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/concurrency/herdr.d.ts +62 -0
- package/dist/concurrency/herdr.d.ts.map +1 -0
- package/dist/concurrency/herdr.js +172 -0
- package/dist/concurrency/herdr.js.map +1 -0
- package/dist/core/on-path.d.ts +16 -0
- package/dist/core/on-path.d.ts.map +1 -0
- package/dist/core/on-path.js +44 -0
- package/dist/core/on-path.js.map +1 -0
- package/dist/roadmap/sync/gh.d.ts.map +1 -1
- package/dist/roadmap/sync/gh.js +2 -27
- package/dist/roadmap/sync/gh.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -218,7 +218,7 @@ The CLI has two core jobs: **bootstrap** (installing and refreshing skills — t
|
|
|
218
218
|
| `aidlc init [--platform <id>]` | Set up AIDLC: interactive wizard, or non-interactive with `--platform` |
|
|
219
219
|
| `aidlc update` | Update CLI and refresh project skills |
|
|
220
220
|
| `aidlc gate <instance> [phase]` | CI gate check (exit 0 = pass, 1 = fail) |
|
|
221
|
-
| `aidlc start [template]` | Begin a new lifecycle instance (`--name`, `--scope`, `--worktree`) |
|
|
221
|
+
| `aidlc start [template]` | Begin a new lifecycle instance (`--name`, `--scope`, `--worktree`, `--no-open`) |
|
|
222
222
|
| `aidlc continue [instance]` | Resume the active instance |
|
|
223
223
|
| `aidlc status [--json]` | Show progress across active instances (`--all`, `--prune`) |
|
|
224
224
|
| `aidlc transition <instance>` | Evaluate gates and advance phase |
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The unattended decision log — `.aidlc/state/<instance>/unattended-stops.md` — read as data
|
|
3
|
+
* (unattended-decision-diary).
|
|
4
|
+
*
|
|
5
|
+
* The agent writes one `## <n>. <title> — <slug>` entry per default, decision or hard stop.
|
|
6
|
+
* Autopilot counts the open questions in it before a merge (`driver.ts` `advancePr`), and
|
|
7
|
+
* `aidlc autopilot review` writes a person's verdict back into it and promotes the good calls
|
|
8
|
+
* into an always-read guidance layer.
|
|
9
|
+
*
|
|
10
|
+
* Every byte here was written by an agent, so it is cleaned before it reaches a terminal or a
|
|
11
|
+
* guidance file every later agent reads (AC-19).
|
|
12
|
+
*
|
|
13
|
+
* Design: design.md C2
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/
|
|
17
|
+
export declare const ENTRY_TYPES: readonly ["default", "interpretation", "deviation", "open-question"];
|
|
18
|
+
export type EntryType = (typeof ENTRY_TYPES)[number];
|
|
19
|
+
export declare const VERDICTS: readonly ["kept", "rejected", "promoted"];
|
|
20
|
+
export type Verdict = (typeof VERDICTS)[number];
|
|
21
|
+
export interface LogEntry {
|
|
22
|
+
/** From the `## <n>.` heading. */
|
|
23
|
+
n: number;
|
|
24
|
+
title: string;
|
|
25
|
+
/** The text after the heading's last ` — `; '' when it has none. */
|
|
26
|
+
slug: string;
|
|
27
|
+
type: EntryType;
|
|
28
|
+
verdict: Verdict | null;
|
|
29
|
+
/** The entry's lines, heading included, as written. */
|
|
30
|
+
lines: string[];
|
|
31
|
+
/** Index of the heading line in the file. */
|
|
32
|
+
start: number;
|
|
33
|
+
}
|
|
34
|
+
/** The longest text one promoted entry carries into guidance. */
|
|
35
|
+
export declare const PROMOTED_CAP = 2000;
|
|
36
|
+
export declare const DECISIONS_FILE = "decisions.md";
|
|
37
|
+
export declare const DECISIONS_LAYER = "decisions";
|
|
38
|
+
export declare function stopsLogPath(projectDir: string, instance: string): string;
|
|
39
|
+
/** Every entry in the log, in file order (AC-7). Text before the first entry belongs to none. */
|
|
40
|
+
export declare function parseLog(text: string): LogEntry[];
|
|
41
|
+
/** Open questions no person has answered yet; 0 for no log. */
|
|
42
|
+
export declare function unreviewedOpenQuestions(text: string | null): number;
|
|
43
|
+
/**
|
|
44
|
+
* The log with entry `n`'s verdict set: its `**Review:**` line replaced, or one added after
|
|
45
|
+
* its last non-blank line. Every other byte is kept (AC-15).
|
|
46
|
+
*/
|
|
47
|
+
export declare function withVerdict(text: string, n: number, verdict: Verdict, date: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* Agent text made safe to print and to read as guidance: C0 controls but newline and tab,
|
|
50
|
+
* DEL and C1 controls (ESC among them) removed, then capped (AC-19, design D6).
|
|
51
|
+
*/
|
|
52
|
+
export declare function cleanEntry(text: string, cap?: number): string;
|
|
53
|
+
/** Only a decision a person can stand behind becomes guidance (AC-18). */
|
|
54
|
+
export declare function promotable(entry: LogEntry): boolean;
|
|
55
|
+
/** The entry as it reads in `decisions.md`: a heading naming the instance and date, then its body. */
|
|
56
|
+
export declare function decisionBlock(instance: string, date: string, entry: LogEntry): string;
|
|
57
|
+
/** Write through a temp file in the same directory, so an interrupted write leaves the old file whole. */
|
|
58
|
+
export declare function writeWhole(path: string, text: string): void;
|
|
59
|
+
export type PromoteResult = {
|
|
60
|
+
ok: true;
|
|
61
|
+
file: string;
|
|
62
|
+
} | {
|
|
63
|
+
ok: false;
|
|
64
|
+
reason: string;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Append a promotable entry to `.aidlc/guidance/decisions.md`, creating it when absent, and
|
|
68
|
+
* register the layer (AC-17). An open question or a default is refused and nothing is
|
|
69
|
+
* written (AC-18).
|
|
70
|
+
*/
|
|
71
|
+
export declare function promote(projectRoot: string, instance: string, date: string, entry: LogEntry): PromoteResult;
|
|
72
|
+
//# sourceMappingURL=decisions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../../src/autopilot/decisions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,eAAO,MAAM,WAAW,sEAAuE,CAAC;AAChG,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,QAAQ,2CAA4C,CAAC;AAClE,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhD,MAAM,WAAW,QAAQ;IACvB,kCAAkC;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,uDAAuD;IACvD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iEAAiE;AACjE,eAAO,MAAM,YAAY,OAAQ,CAAC;AAElC,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAC7C,eAAO,MAAM,eAAe,cAAc,CAAC;AAK3C,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEzE;AAuBD,iGAAiG;AACjG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,CAqBjD;AAED,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAGnE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAc3F;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,SAAe,GAAG,MAAM,CAGnE;AAED,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAEnD;AAED,sGAAsG;AACtG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,MAAM,CAQrF;AAaD,0GAA0G;AAC1G,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAK3D;AAmBD,MAAM,MAAM,aAAa,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvF;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,aAAa,CAc3G"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The unattended decision log — `.aidlc/state/<instance>/unattended-stops.md` — read as data
|
|
3
|
+
* (unattended-decision-diary).
|
|
4
|
+
*
|
|
5
|
+
* The agent writes one `## <n>. <title> — <slug>` entry per default, decision or hard stop.
|
|
6
|
+
* Autopilot counts the open questions in it before a merge (`driver.ts` `advancePr`), and
|
|
7
|
+
* `aidlc autopilot review` writes a person's verdict back into it and promotes the good calls
|
|
8
|
+
* into an always-read guidance layer.
|
|
9
|
+
*
|
|
10
|
+
* Every byte here was written by an agent, so it is cleaned before it reaches a terminal or a
|
|
11
|
+
* guidance file every later agent reads (AC-19).
|
|
12
|
+
*
|
|
13
|
+
* Design: design.md C2
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/
|
|
17
|
+
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
18
|
+
import { dirname, join } from 'node:path';
|
|
19
|
+
import { parse as parseYaml } from 'yaml';
|
|
20
|
+
import { serializeYaml } from '../state/yaml-helpers.js';
|
|
21
|
+
export const ENTRY_TYPES = ['default', 'interpretation', 'deviation', 'open-question'];
|
|
22
|
+
export const VERDICTS = ['kept', 'rejected', 'promoted'];
|
|
23
|
+
/** The longest text one promoted entry carries into guidance. */
|
|
24
|
+
export const PROMOTED_CAP = 2_000;
|
|
25
|
+
export const DECISIONS_FILE = 'decisions.md';
|
|
26
|
+
export const DECISIONS_LAYER = 'decisions';
|
|
27
|
+
const HEADING_RE = /^## (\d+)\.\s+(.*)$/;
|
|
28
|
+
const SLUG_SEP = ' — ';
|
|
29
|
+
export function stopsLogPath(projectDir, instance) {
|
|
30
|
+
return join(projectDir, '.aidlc', 'state', instance, 'unattended-stops.md');
|
|
31
|
+
}
|
|
32
|
+
/** The value after a `**Field:**` line's label, backticks dropped, lower-cased. */
|
|
33
|
+
function field(lines, name) {
|
|
34
|
+
const label = `**${name}:**`;
|
|
35
|
+
const line = lines.find((l) => l.startsWith(label));
|
|
36
|
+
return line === undefined ? null : line.slice(label.length).replace(/`/g, '').trim().toLowerCase();
|
|
37
|
+
}
|
|
38
|
+
function entryType(lines) {
|
|
39
|
+
const value = field(lines, 'Type');
|
|
40
|
+
// No type: a log written before types existed (AC-8).
|
|
41
|
+
if (value === null)
|
|
42
|
+
return 'default';
|
|
43
|
+
const word = value.split(/\s/)[0];
|
|
44
|
+
// A type nobody defined fails toward a person: it blocks the merge (AC-9, design D5).
|
|
45
|
+
return ENTRY_TYPES.includes(word) ? word : 'open-question';
|
|
46
|
+
}
|
|
47
|
+
function entryVerdict(lines) {
|
|
48
|
+
const word = field(lines, 'Review')?.split(/\s/)[0];
|
|
49
|
+
return word !== undefined && VERDICTS.includes(word) ? word : null;
|
|
50
|
+
}
|
|
51
|
+
/** Every entry in the log, in file order (AC-7). Text before the first entry belongs to none. */
|
|
52
|
+
export function parseLog(text) {
|
|
53
|
+
const all = text.split('\n');
|
|
54
|
+
const starts = [];
|
|
55
|
+
all.forEach((line, i) => {
|
|
56
|
+
if (HEADING_RE.test(line))
|
|
57
|
+
starts.push(i);
|
|
58
|
+
});
|
|
59
|
+
return starts.map((start, k) => {
|
|
60
|
+
const lines = all.slice(start, starts[k + 1] ?? all.length);
|
|
61
|
+
const m = HEADING_RE.exec(lines[0]);
|
|
62
|
+
const heading = m[2].trim();
|
|
63
|
+
const cut = heading.lastIndexOf(SLUG_SEP);
|
|
64
|
+
return {
|
|
65
|
+
n: Number(m[1]),
|
|
66
|
+
title: cut === -1 ? heading : heading.slice(0, cut).trim(),
|
|
67
|
+
slug: cut === -1 ? '' : heading.slice(cut + SLUG_SEP.length).trim(),
|
|
68
|
+
type: entryType(lines),
|
|
69
|
+
verdict: entryVerdict(lines),
|
|
70
|
+
lines,
|
|
71
|
+
start,
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/** Open questions no person has answered yet; 0 for no log. */
|
|
76
|
+
export function unreviewedOpenQuestions(text) {
|
|
77
|
+
if (text === null)
|
|
78
|
+
return 0;
|
|
79
|
+
return parseLog(text).filter((e) => e.type === 'open-question' && e.verdict === null).length;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The log with entry `n`'s verdict set: its `**Review:**` line replaced, or one added after
|
|
83
|
+
* its last non-blank line. Every other byte is kept (AC-15).
|
|
84
|
+
*/
|
|
85
|
+
export function withVerdict(text, n, verdict, date) {
|
|
86
|
+
const entry = parseLog(text).find((e) => e.n === n);
|
|
87
|
+
if (entry === undefined)
|
|
88
|
+
return text;
|
|
89
|
+
const all = text.split('\n');
|
|
90
|
+
const line = `**Review:** ${verdict} ${date}`;
|
|
91
|
+
const at = entry.lines.findIndex((l) => l.startsWith('**Review:**'));
|
|
92
|
+
if (at !== -1) {
|
|
93
|
+
all[entry.start + at] = line;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
let last = entry.lines.length - 1;
|
|
97
|
+
while (last > 0 && entry.lines[last].trim() === '')
|
|
98
|
+
last--;
|
|
99
|
+
all.splice(entry.start + last + 1, 0, line);
|
|
100
|
+
}
|
|
101
|
+
return all.join('\n');
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Agent text made safe to print and to read as guidance: C0 controls but newline and tab,
|
|
105
|
+
* DEL and C1 controls (ESC among them) removed, then capped (AC-19, design D6).
|
|
106
|
+
*/
|
|
107
|
+
export function cleanEntry(text, cap = PROMOTED_CAP) {
|
|
108
|
+
const stripped = text.replace(/[\u0000-\u0008\u000B-\u001F\u007F-\u009F]/g, '');
|
|
109
|
+
return stripped.length <= cap ? stripped : `${stripped.slice(0, cap - 1)}…`;
|
|
110
|
+
}
|
|
111
|
+
/** Only a decision a person can stand behind becomes guidance (AC-18). */
|
|
112
|
+
export function promotable(entry) {
|
|
113
|
+
return entry.type === 'interpretation' || entry.type === 'deviation';
|
|
114
|
+
}
|
|
115
|
+
/** The entry as it reads in `decisions.md`: a heading naming the instance and date, then its body. */
|
|
116
|
+
export function decisionBlock(instance, date, entry) {
|
|
117
|
+
const body = entry.lines
|
|
118
|
+
.slice(1)
|
|
119
|
+
.filter((l) => !l.startsWith('**Review:**'))
|
|
120
|
+
.join('\n')
|
|
121
|
+
.trim();
|
|
122
|
+
const title = cleanEntry(entry.title, 200).replace(/\n/g, ' ');
|
|
123
|
+
return cleanEntry(`## ${instance} — ${date} — ${title}\n\n${body}`) + '\n';
|
|
124
|
+
}
|
|
125
|
+
const DECISIONS_HEAD = `---
|
|
126
|
+
name: ${DECISIONS_LAYER}
|
|
127
|
+
description: Calls unattended runs made and a person promoted with aidlc autopilot review
|
|
128
|
+
---
|
|
129
|
+
# Decisions
|
|
130
|
+
|
|
131
|
+
Each entry is a call an unattended run made inside its item's scope, which a person kept and
|
|
132
|
+
promoted with \`aidlc autopilot review\`. Read them as precedent for the same situation, not as
|
|
133
|
+
rules for every situation.
|
|
134
|
+
`;
|
|
135
|
+
/** Write through a temp file in the same directory, so an interrupted write leaves the old file whole. */
|
|
136
|
+
export function writeWhole(path, text) {
|
|
137
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
138
|
+
const tmp = `${path}.tmp`;
|
|
139
|
+
writeFileSync(tmp, text, 'utf8');
|
|
140
|
+
renameSync(tmp, path);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Register the decisions layer in `index.yaml` when nothing registers it, keeping every
|
|
144
|
+
* other entry and key as it is. Without `on_demand`, it is in the always-read set (AC-17).
|
|
145
|
+
*/
|
|
146
|
+
function registerLayer(guidanceDir) {
|
|
147
|
+
const indexPath = join(guidanceDir, 'index.yaml');
|
|
148
|
+
const raw = existsSync(indexPath) ? readFileSync(indexPath, 'utf8') : '';
|
|
149
|
+
const parsed = raw.trim() === '' ? {} : parseYaml(raw);
|
|
150
|
+
const doc = (typeof parsed === 'object' && parsed !== null ? parsed : {});
|
|
151
|
+
const layers = Array.isArray(doc.layers) ? doc.layers : [];
|
|
152
|
+
const known = layers.some((l) => typeof l === 'object' && l !== null && (l.name === DECISIONS_LAYER || l.file === DECISIONS_FILE));
|
|
153
|
+
if (known)
|
|
154
|
+
return;
|
|
155
|
+
writeWhole(indexPath, serializeYaml({ ...doc, layers: [...layers, { file: DECISIONS_FILE, name: DECISIONS_LAYER }] }));
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Append a promotable entry to `.aidlc/guidance/decisions.md`, creating it when absent, and
|
|
159
|
+
* register the layer (AC-17). An open question or a default is refused and nothing is
|
|
160
|
+
* written (AC-18).
|
|
161
|
+
*/
|
|
162
|
+
export function promote(projectRoot, instance, date, entry) {
|
|
163
|
+
if (!promotable(entry)) {
|
|
164
|
+
const why = entry.type === 'open-question'
|
|
165
|
+
? 'an open question is a person’s call, never guidance'
|
|
166
|
+
: 'a default is already in the rule';
|
|
167
|
+
return { ok: false, reason: `entry ${entry.n} is ${entry.type}: ${why}` };
|
|
168
|
+
}
|
|
169
|
+
const guidanceDir = join(projectRoot, '.aidlc', 'guidance');
|
|
170
|
+
const file = join(guidanceDir, DECISIONS_FILE);
|
|
171
|
+
const before = existsSync(file) ? readFileSync(file, 'utf8') : DECISIONS_HEAD;
|
|
172
|
+
writeWhole(file, `${before.replace(/\n*$/, '\n')}\n${decisionBlock(instance, date, entry)}`);
|
|
173
|
+
registerLayer(guidanceDir);
|
|
174
|
+
return { ok: true, file };
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=decisions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decisions.js","sourceRoot":"","sources":["../../src/autopilot/decisions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,CAAU,CAAC;AAGhG,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAU,CAAC;AAiBlE,iEAAiE;AACjE,MAAM,CAAC,MAAM,YAAY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C,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAC7F,aAAa,CAAC,WAAW,CAAC,CAAC;IAC3B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/autopilot/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAsB,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAkBhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAe1C,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,QAAQ,EAGR,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAuD,KAAK,UAAU,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/autopilot/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAsB,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAkBhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAe1C,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,QAAQ,EAGR,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAuD,KAAK,UAAU,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAa9G,MAAM,WAAW,SAAS;IACxB,MAAM,EA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;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAqB,GAC/C,MAAM,CAIR;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,IAAI,CAE9D;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,OAAO,GAAG,KAAK,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,GAAE,IAAe,GAAG,MAAM,EAAE,CAYhI"}
|
package/dist/autopilot/driver.js
CHANGED
|
@@ -25,6 +25,7 @@ import { REASON_MAX, RESET_WAIT_MAX_MS, codexEnd, emptyCodexProgress, firstLine,
|
|
|
25
25
|
import { capInForce, tokensLeft } from './cap.js';
|
|
26
26
|
import { fmtTokens } from '../commands/cost.js';
|
|
27
27
|
import { LEGACY_STOPS, pauseEnv, pendingReview, stopsInForce } from './stops.js';
|
|
28
|
+
import { stopsLogPath, unreviewedOpenQuestions } from './decisions.js';
|
|
28
29
|
import { OUTCOME_SCHEMA, UUID_RE, budgetCents, resumePrompt, typedArgv, typedHarness, withOutcomeContract, } from './typed.js';
|
|
29
30
|
/**
|
|
30
31
|
* A value `process.kill` reads as one process. It reads 0 as this process's group and
|
|
@@ -1230,9 +1231,20 @@ function upToDateWithMain(ctx, io, state, item, resume, budget) {
|
|
|
1230
1231
|
tell(ctx, item, 'brought up to date with main — waiting for CI on the new head');
|
|
1231
1232
|
return false;
|
|
1232
1233
|
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Open questions in the item's worktree log that no person has reviewed. Read every pass, so a
|
|
1236
|
+
* CI-fix or conflict relaunch that logs one is seen (unattended-decision-diary/AC-10).
|
|
1237
|
+
*/
|
|
1238
|
+
function openQuestions(ctx, item) {
|
|
1239
|
+
return unreviewedOpenQuestions(ctx.fs.read(stopsLogPath(item.worktree, item.name)));
|
|
1240
|
+
}
|
|
1233
1241
|
function advancePr(ctx, io, state, item, budget) {
|
|
1234
1242
|
const view = prView(ctx, io, item);
|
|
1235
|
-
|
|
1243
|
+
// An open question makes this pass a stop at the pull request: opened and watched, closed
|
|
1244
|
+
// out on a person's merge, never merged or released by autopilot
|
|
1245
|
+
// (unattended-decision-diary/AC-10, AC-11, design D2).
|
|
1246
|
+
const open = itemStops(item).stop_at === 'pr' ? 0 : openQuestions(ctx, item);
|
|
1247
|
+
const atPr = itemStops(item).stop_at === 'pr' || open > 0;
|
|
1236
1248
|
// A person merging before CI finishes is still the merge the stop asked for.
|
|
1237
1249
|
if (atPr ? answeredByPerson(ctx, io, state, item, view, budget) : droppedIfMerged(ctx, state, item, view, budget))
|
|
1238
1250
|
return;
|
|
@@ -1261,6 +1273,13 @@ function advancePr(ctx, io, state, item, budget) {
|
|
|
1261
1273
|
const failing = failed.map((c) => c.name);
|
|
1262
1274
|
if (failing.length === 0) {
|
|
1263
1275
|
item.ci = 'passed';
|
|
1276
|
+
if (open > 0) {
|
|
1277
|
+
item.step = 'awaiting-merge';
|
|
1278
|
+
const questions = `${open} open question${open === 1 ? '' : 's'}`;
|
|
1279
|
+
tell(ctx, item, `CI green — ${questions} wait${open === 1 ? 's' : ''} for you: run aidlc autopilot review ${item.name}, then merge pull request #${item.pr}`);
|
|
1280
|
+
notice(ctx, 'open questions', `${item.name}: ${questions} — pull request #${item.pr} waits for you to merge it`);
|
|
1281
|
+
return;
|
|
1282
|
+
}
|
|
1264
1283
|
if (atPr) {
|
|
1265
1284
|
item.step = 'awaiting-merge';
|
|
1266
1285
|
tell(ctx, item, `CI green — ${ref(hostOf(ctx), item.pr)} waits for you to merge it`);
|
|
@@ -1566,8 +1585,10 @@ function startBuilds(ctx, io, state, budget) {
|
|
|
1566
1585
|
}
|
|
1567
1586
|
tried.add(next.file);
|
|
1568
1587
|
const name = next.file.replace(/^\d{8}-/, '').replace(/\.md$/, '');
|
|
1588
|
+
// --no-open: autopilot launches the item's one agent itself, so a herdr pane must not get a
|
|
1589
|
+
// second (worktree-opens-in-herdr/AC-9).
|
|
1569
1590
|
const started = io.cli([
|
|
1570
|
-
'start', template, '--name', name, '--scope', 'standard', '--worktree', '--non-interactive',
|
|
1591
|
+
'start', template, '--name', name, '--scope', 'standard', '--worktree', '--non-interactive', '--no-open',
|
|
1571
1592
|
'--roadmap-item', next.file,
|
|
1572
1593
|
]);
|
|
1573
1594
|
const m = /Worktree:\s+(\S+)\s+\(branch\s+([^)]+)\)/.exec(started.stdout);
|