@rasensio/aidlc-content 2.20.0 → 2.22.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/docs/hygiene-and-compliance.md +13 -3
- package/docs/reviews-and-guidance.md +4 -1
- package/docs/roadmap.md +40 -10
- package/package.json +1 -1
- package/resources/rules/constitution.md +2 -0
- package/resources/rules/decision-register.md +2 -0
- package/skills/04-roadmap.md +3 -3
- package/skills/05-constitution.md +10 -1
- package/skills/60-deployment.md +2 -2
- package/skills/84-autopilot.md +1 -1
- package/skills/90-retrospective.md +3 -1
|
@@ -126,8 +126,18 @@ worktree removed, an instance abandoned.
|
|
|
126
126
|
Some checks report and repair nothing, on purpose. A `report`-tier migration states a condition whose
|
|
127
127
|
only remedy is a decision, and it never touches `doctor`'s exit code, so `--yes` cannot
|
|
128
128
|
make it write. Among them: an out-of-date compliance pack, a configured roadmap projection with no
|
|
129
|
-
`gh` on `PATH`, `knowledge-stale-sources`, `roadmap-item-summary`, `bare-ac-in-tests`,
|
|
130
|
-
the three misfiled-item checks below.
|
|
129
|
+
`gh` on `PATH`, `knowledge-stale-sources`, `roadmap-item-summary`, `bare-ac-in-tests`,
|
|
130
|
+
`tracked-nested-ignored`, and the three misfiled-item checks below.
|
|
131
|
+
|
|
132
|
+
**The nested ignore files are committed.** `.aidlc/cost/.gitignore` and
|
|
133
|
+
`.aidlc/knowledge/.gitignore` ignore the cost session files and the knowledge index, and neither
|
|
134
|
+
lists itself. They used to: each held a `.gitignore` line, so `git add -A` never committed them and
|
|
135
|
+
a new worktree started without them — and in a project with no root `.gitignore`, the next
|
|
136
|
+
`git add -A` there committed the binary index. Committed, they reach every worktree through git
|
|
137
|
+
before any `aidlc` command runs, which is what autopilot needs. `doctor` removes the old line (only
|
|
138
|
+
an exact `.gitignore`; a `/.gitignore` you wrote is yours), and opening the knowledge index writes
|
|
139
|
+
its ignore file first. An ignore line does nothing for a file git already tracks, so
|
|
140
|
+
`tracked-nested-ignored` names any such file and leaves untracking it to you.
|
|
131
141
|
|
|
132
142
|
**`roadmap-item-summary`** names every `inbox/` item with no complete six-line executive summary, and
|
|
133
143
|
the labels each one is missing. Two paths write into the inbox — the capture flow, which has always
|
|
@@ -222,7 +232,7 @@ and read what it says the second time. Steady-state bugs are invisible on the fi
|
|
|
222
232
|
## Where the code lives
|
|
223
233
|
|
|
224
234
|
- `packages/cli/src/doctor` — the checks and repairs. `migrations` holds the one-off repairs, including
|
|
225
|
-
the nested-`.gitignore` coverage fix.
|
|
235
|
+
the nested-`.gitignore` coverage fix and the self-ignore line removal (`nested-gitignore.ts`).
|
|
226
236
|
- `packages/cli/src/compliance` — pack loading, control evaluation, and the evidence report.
|
|
227
237
|
- `packages/content/packs` — the shipped packs, `soc2` and `iso27001`. A new directory there is a new
|
|
228
238
|
pack; nothing else registers it.
|
|
@@ -47,7 +47,10 @@ never become, derived from a product vision document. With no such document, the
|
|
|
47
47
|
skill asks five skippable questions and saves the answers, in your words, as `docs/vision.md` — then
|
|
48
48
|
imports that like any other. Triage checks items against it, and an item
|
|
49
49
|
that crosses a prohibition is the clearest `hold/` there is — naming the prohibition turns "not for
|
|
50
|
-
us" into a reason the submitter can read.
|
|
50
|
+
us" into a reason the submitter can read. When work in an instance crosses a prohibition, your
|
|
51
|
+
choice — an exception for this instance, or an amendment — is written to the instance as one line.
|
|
52
|
+
At completion the retrospective asks once whether any constitution or decision-register entry the
|
|
53
|
+
work ran into should change, and names a prohibition that has been waived two or more times.
|
|
51
54
|
|
|
52
55
|
**What breaks without them:** work passes review because the reviewer was the author, the same defect
|
|
53
56
|
recurs every few weeks with nobody noticing it is the same defect, and scope drifts one reasonable
|
package/docs/roadmap.md
CHANGED
|
@@ -132,7 +132,7 @@ that picks has no way to write. `priority` is an ordinary extension field (a ran
|
|
|
132
132
|
project declares in `roadmap.item_fields`.
|
|
133
133
|
|
|
134
134
|
**Seeing the roadmap** is `aidlc roadmap view`: one self-contained HTML page, opened in the browser,
|
|
135
|
-
with
|
|
135
|
+
with four tabs. Every item has a plain summary — its `## In plain words` section, or a draft built from
|
|
136
136
|
"What it is" and "Customer value", labelled Draft — and the page always shows it whole. **Board** has a
|
|
137
137
|
column per status — backlog in `roadmap next` order with ranks and ready items marked, the latest 20 done
|
|
138
138
|
items with the rest behind a control, hold split into Parked, Declined and On hold with the reason on each
|
|
@@ -152,12 +152,18 @@ a square jumps to that item; a sticky column shows the selected item's facts, wh
|
|
|
152
152
|
on it. **Shipped** groups done items by release — the first `v*` tag after the merge of the item's branch —
|
|
153
153
|
newest first, each heading with the version, date, item count and total true cost from `aidlc metrics`;
|
|
154
154
|
each card shows its plain summary, kind of work, days from idea to done, true cost, and a red mark when it
|
|
155
|
-
caused bugfixes.
|
|
155
|
+
caused bugfixes. **Usage** lists every done item, most tokens first, with one bar each for input, output,
|
|
156
|
+
cache read and cache write and each value printed beside its bar. Each type is scaled to its own largest
|
|
157
|
+
value on the tab, because cache reads are usually most of a feature's tokens and one shared scale would
|
|
158
|
+
leave the other three bars at nothing. Every cost on the page is tokens first, as `aidlc cost` prints them
|
|
159
|
+
(`45.2M tok`), then the dollar figure labelled "API price" — what the same usage would cost at API rates,
|
|
160
|
+
which a Claude or Codex subscription does not charge. Where no usage was recorded the page says "no data",
|
|
161
|
+
never 0 or $0: an unmeasured feature is not a free one. The Board has status chips, presets (Active work,
|
|
156
162
|
Needs a decision, Shipped, Parked, Everything) and Ready/Blocked toggles and opens on inbox, backlog and in
|
|
157
163
|
progress, with done and hold folded into rails you click to reopen; Dependencies has status chips with
|
|
158
164
|
done off and an "Only items with links" toggle. The tab, both tabs' filters and the Summaries toggle live
|
|
159
165
|
in the URL hash, so a reload or a shared link reopens the same view. `/` focuses search, `j` and `k` move to the next and previous
|
|
160
|
-
item (the open panel follows), `1
|
|
166
|
+
item (the open panel follows), `1` to `4` switch tabs (`1` to `5` with milestones), `Esc` closes the panel or clears the
|
|
161
167
|
search. The page opens light; the header button switches to dark, and the browser remembers it across
|
|
162
168
|
regenerations. The page is written to `<git-common-dir>/aidlc/roadmap.html` — outside every working tree, so
|
|
163
169
|
it is never committed and every worktree shares one copy — or wherever `--out` says; `--no-open` only
|
|
@@ -189,6 +195,20 @@ Declare `run` in `roadmap.item_fields` and triage proposes the value with the ra
|
|
|
189
195
|
in one question. With only attended items ready, `aidlc autopilot run --all` finds nothing ready and
|
|
190
196
|
ends.
|
|
191
197
|
|
|
198
|
+
**Autopilot also leaves out an item that is not ready to build.** An item is ready when it has at
|
|
199
|
+
least one `- AC-n:` line, at least one of those lines names a file path in backticks, and every path
|
|
200
|
+
they name exists — or its parent folder does, since an AC may name a file it creates. A path is a
|
|
201
|
+
backticked token with no spaces that contains `/` or ends in a file extension. Of a path with a
|
|
202
|
+
`*`, `?`, `<…>` or `{…}` segment, only the folders before that segment must exist. A criterion
|
|
203
|
+
reference (`<instance>/AC-<n>`), a URL, and a path that is absolute, starts with `~` or has a `..`
|
|
204
|
+
segment are not paths. `aidlc roadmap next --autopilot` lists an unready item under `skipped` with
|
|
205
|
+
the reason `not-ready` and the first failing rule — `not ready: no AC-n lines`,
|
|
206
|
+
`not ready: no AC names a file path`, or `not ready: AC-<n> names <path>, which does not exist` —
|
|
207
|
+
and autopilot says `not ready: <file>: <reason>` once a pass. The check runs after every other
|
|
208
|
+
reason, and a plain `aidlc roadmap next` does not run it. `aidlc roadmap triage <item> backlog` with
|
|
209
|
+
`--run autopilot`, or for an item already marked `run: autopilot`, prints the same reason as
|
|
210
|
+
`warning: <file>: not ready: …` on stderr and still moves the item.
|
|
211
|
+
|
|
192
212
|
**Parking from an instance** is `aidlc roadmap park <instance> --reason "<why>"`: it moves the item
|
|
193
213
|
promoted to that instance into `hold/` with a `parked — ` reason. It exists for unattended mode's hard
|
|
194
214
|
stops — see [Skills and platforms](skills-and-platforms.md) — where the agent works in a worktree but
|
|
@@ -213,7 +233,7 @@ and the first one in order that is not done is *current*, even with nothing in i
|
|
|
213
233
|
usual order when it has none; `--explain` names it. `aidlc roadmap view` opens on a **Milestones** tab
|
|
214
234
|
— a track of every milestone and its status, then each milestone's exit test and its items as done, in
|
|
215
235
|
flight, next, parked, open and dropped, then Unassigned — and with milestones the tabs are numbered `1`
|
|
216
|
-
to `
|
|
236
|
+
to `5`, Milestones first. A hold card names the milestone it is parked for, so the hold reason can carry
|
|
217
237
|
the trigger rather than the goal. **`aidlc roadmap status`** prints the same thing as text, for chat;
|
|
218
238
|
`--milestone <id>` prints one milestone and `--milestone none` the Unassigned items. It exits 1, after
|
|
219
239
|
printing, when an open item has no `milestone:` line or names an id the file does not list — `aidlc
|
|
@@ -248,7 +268,8 @@ resumes.
|
|
|
248
268
|
Each item goes through these steps:
|
|
249
269
|
|
|
250
270
|
1. **Pick.** `aidlc roadmap next --autopilot` names the next ready backlog item, leaving items
|
|
251
|
-
marked `run: attended` for a person
|
|
271
|
+
marked `run: attended` for a person and skipping items that are not ready to build — no
|
|
272
|
+
`AC-n` lines, or an AC naming a path that does not exist — with the reason.
|
|
252
273
|
2. **Build.** `aidlc start … --worktree --roadmap-item <item>` creates the instance in its own
|
|
253
274
|
worktree, then the configured agent runs there with `AIDLC_UNATTENDED=1` and `AIDLC_PAUSE_AFTER`
|
|
254
275
|
set to the phases it must stop after. Its prompt states both values too, an empty pause list in
|
|
@@ -321,7 +342,10 @@ Each item goes through these steps:
|
|
|
321
342
|
5. **Your merge, where the stop is the pull request** (the default). Green CI leaves the item as
|
|
322
343
|
`awaiting-merge` and autopilot neither merges nor releases. When you merge, it closes the instance
|
|
323
344
|
out on main — pull, mark the deployment record complete, `aidlc transition`, commit, push — and
|
|
324
|
-
runs no release; if the instance is already closed there, it just stops tracking it.
|
|
345
|
+
runs no release; if the instance is already closed there, it just stops tracking it. The
|
|
346
|
+
close-out commits only what it wrote, with the cost records and review verdicts the worktree
|
|
347
|
+
gained after its last commit; any other uncommitted file under `.aidlc` stays out and is named
|
|
348
|
+
in the closing notice. Close the
|
|
325
349
|
pull request without merging and it stops tracking it too. That pull request is yours while it
|
|
326
350
|
waits: autopilot does not bring it up to date with main or chase its CI.
|
|
327
351
|
6. **Up to date with main**, for an item autopilot merges itself. Before merging, it merges
|
|
@@ -358,8 +382,9 @@ six questions on its own. Each is a list with one choice marked recommended:
|
|
|
358
382
|
like, but never `autopilot`, `start`, `update` or `roadmap sync`) and read-only `gh pr checks` /
|
|
359
383
|
`gh run view` (recommended). A machine set up with the older scoped command is moved to this one
|
|
360
384
|
the next time autopilot reads its config; Claude Code with full access; Codex editing and
|
|
361
|
-
running commands inside its `workspace-write` sandbox, which
|
|
362
|
-
|
|
385
|
+
running commands inside its `workspace-write` sandbox, which blocks git, so it cannot commit and
|
|
386
|
+
an item stops at its first commit; Codex with full access, which runs with no sandbox and no
|
|
387
|
+
prompts; or a command you type. This decides what an unattended agent may do on your machine, so
|
|
363
388
|
it is never picked for you: with no terminal, setup needs `--agent <preset>` or
|
|
364
389
|
`--non-interactive`.
|
|
365
390
|
- **How many items build at once** — two (recommended) or one.
|
|
@@ -498,8 +523,13 @@ and `aidlc autopilot resume` carries on; a pause waits for a pass in progress ra
|
|
|
498
523
|
release halfway. `aidlc autopilot forget <instance>` stops tracking an item you finished or
|
|
499
524
|
abandoned by hand; a pull request merged by hand is noticed and dropped on its own. A rate limit
|
|
500
525
|
from `gh`, `glab`, a `git push` or `fetch`, or the agent backs off five minutes, doubling to at most
|
|
501
|
-
two hours. Only those
|
|
502
|
-
|
|
526
|
+
two hours. Only those, and the `aidlc` commands that reach a host (`roadmap sync`, `roadmap import`,
|
|
527
|
+
`init`, `cost rates update`), are read for one, and only for the host's own words — a `429` in a file
|
|
528
|
+
list, a branch name, an item's title or a requirement named in a close-out is not a rate limit. A rate limit on the merge is retried after the
|
|
529
|
+
back-off, since nothing has changed yet. One on any step after the merge also stops the item for you,
|
|
530
|
+
as a failed step there does: the pull request is merged, so autopilot neither merges it again nor
|
|
531
|
+
drops it as merged by hand, and the release and close-out are yours to finish before
|
|
532
|
+
`aidlc autopilot forget`. `aidlc autopilot tick --dry-run` prints every command one pass would run and runs only the
|
|
503
533
|
reads.
|
|
504
534
|
|
|
505
535
|
## Repositories not on GitHub
|
package/package.json
CHANGED
|
@@ -4,4 +4,6 @@ This file is the only statement of the rule. Other skills point here instead of
|
|
|
4
4
|
|
|
5
5
|
When `.aidlc/context/constitution.md` exists, read it before shaping work. It records what this repo owns (`IN-<n>` entries) and what it must never do (`NOT-<n>` entries), each citing the vision statement it was derived from. **If the work in front of you crosses a prohibition, name that prohibition by its id and say plainly that it does, before going further.** The user may still choose to proceed, or to amend the constitution — but the crossing gets stated out loud at the start rather than discovered in review.
|
|
6
6
|
|
|
7
|
+
Once the user has chosen, record it in the instance: append one line to `.aidlc/state/<instance>/constitution-crossings.md` — `- NOT-<n>: exception | amend — <reason> — <YYYY-MM-DD>`. "exception" proceeds for this instance only; "amend" changes the entry through the **aidlc-constitution** skill's "Amending from work" section. Without the line, a prohibition waived five times looks the same as one never touched. A crossing found outside any instance, such as at roadmap triage, has nowhere to go and is not recorded. The retrospective reads these lines.
|
|
8
|
+
|
|
7
9
|
The constitution never fails a gate and never blocks a transition; its whole force is that somebody read it out at the right moment. An absent file is a normal state, not a gap to fill — it is written by the **aidlc-constitution** skill, from a vision document or, when there is none, from the user's answers to five questions.
|
|
@@ -24,6 +24,8 @@ Everything else is recorded as a `decision` entity exactly as before. When unsur
|
|
|
24
24
|
|
|
25
25
|
A reversed decision is a new entry with a `Supersedes: ADR-<n>` line, asked like any other. The old entry keeps its text unedited; only its status-table row changes, to "Superseded by ADR-<m>", and its graph entity is renamed to say so (`aidlc knowledge update <id> --name "ADR-<n> (superseded by ADR-<m>): <title>"`).
|
|
26
26
|
|
|
27
|
+
A person may ask to change an Accepted entry at any time, not only when design meets its reopen condition; that request runs this same flow.
|
|
28
|
+
|
|
27
29
|
## Before changing what an entry covers
|
|
28
30
|
|
|
29
31
|
Read the register head first: the status table, then only the entries the work touches. Never inline it into a skill or `CLAUDE.md`.
|
package/skills/04-roadmap.md
CHANGED
|
@@ -163,9 +163,9 @@ List each status directory, reading **only frontmatter and the containing direct
|
|
|
163
163
|
|
|
164
164
|
For a `hold/` item, show whether it is **parked or declined**, with its reason, from the last `history` entry — that entry is in the frontmatter, so this costs nothing extra. An item with no reason recorded is reported as `hold — reason not recorded`, never guessed at: parked and declined are opposite answers, and a wrong one either revives work somebody killed or buries work somebody agreed to.
|
|
165
165
|
|
|
166
|
-
**`aidlc roadmap next`** is the deterministic answer to "what next?": the `backlog/` item with the lowest `priority` among those whose `depends_on` are all `done`, unranked items last, ties by file name (`--explain` shows the order and what was skipped and why; `--json` for scripts). It is read-only and never promotes — promoting stays a person's decision. `priority` is an ordinary extension field a project declares in `roadmap.item_fields`; a rank, where 1 is first. Where it is declared, `--explain` also lists every unranked backlog item, so one sitting last is visible rather than silently last. `--autopilot` picks as autopilot does: it leaves out items marked `run: attended`,
|
|
166
|
+
**`aidlc roadmap next`** is the deterministic answer to "what next?": the `backlog/` item with the lowest `priority` among those whose `depends_on` are all `done`, unranked items last, ties by file name (`--explain` shows the order and what was skipped and why; `--json` for scripts). It is read-only and never promotes — promoting stays a person's decision. `priority` is an ordinary extension field a project declares in `roadmap.item_fields`; a rank, where 1 is first. Where it is declared, `--explain` also lists every unranked backlog item, so one sitting last is visible rather than silently last. `--autopilot` picks as autopilot does: it leaves out items marked `run: attended`, items whose `run` is neither value, and items that are not ready to build, listing each as skipped. Ready means at least one `- AC-n:` line, at least one of those lines naming a file path in backticks, and every named path existing or having an existing parent folder (of a path with a `*`, `?`, `<…>` or `{…}` segment, the folders before it); the skip reason `not-ready` names the first failing rule. **`aidlc roadmap rank <item> <n>`** is the one way to change a rank: it puts the item at `n` and renumbers every ranked backlog item 1…k, so ranks stay unique and gap-free.
|
|
167
167
|
|
|
168
|
-
**Seeing the roadmap.** When someone asks to see the roadmap or its dependencies, run **`aidlc roadmap view`** rather than drawing a graph. It writes one self-contained HTML page — a kanban board of every item by status,
|
|
168
|
+
**Seeing the roadmap.** When someone asks to see the roadmap or its dependencies, run **`aidlc roadmap view`** rather than drawing a graph. It writes one self-contained HTML page — Board, a kanban board of every item by status; Dependencies, each item's `depends_on` needs with blocked items and unknown ids marked; and Shipped, what is done — plus a Milestones tab, first, when the roadmap has a milestones file — and opens it in the browser (`--no-open` only writes it; `--out <path>` writes it elsewhere). The page lives in the git common dir, outside every working tree, so it is never committed and nothing rebuilds it on a move; run the command again for a fresh one. `aidlc roadmap graph` is the same command.
|
|
169
169
|
|
|
170
170
|
The frontmatter-only rule holds for browsing, which is a list and must stay cheap enough to run over the whole roadmap. **Triage** below is the one flow allowed into the body, and only as far as the executive summary.
|
|
171
171
|
|
|
@@ -195,7 +195,7 @@ The proposed rank is never written without the person's answer: a rank nobody lo
|
|
|
195
195
|
|
|
196
196
|
### Run mode on the way in
|
|
197
197
|
|
|
198
|
-
When the project declares `run` in `roadmap.item_fields`, the same moment also settles whether autopilot may build the item alone: `run: autopilot` or `run: attended`. Autopilot picks with `aidlc roadmap next --autopilot`, which leaves `attended` items for a person; a person's `aidlc roadmap next` still offers them.
|
|
198
|
+
When the project declares `run` in `roadmap.item_fields`, the same moment also settles whether autopilot may build the item alone: `run: autopilot` or `run: attended`. Autopilot picks with `aidlc roadmap next --autopilot`, which leaves `attended` items for a person; a person's `aidlc roadmap next` still offers them. When an item goes to `backlog` with `run: autopilot` and is not ready to build, `aidlc roadmap triage` prints `warning: <file>: not ready: …` and still moves it: pass the warning to the author, since autopilot will skip the item until its acceptance criteria name paths that exist.
|
|
199
199
|
|
|
200
200
|
1. **Propose** `autopilot` or `attended` with a one-line reason, alongside the proposed rank. `attended` fits an item that changes what a gate trusts, or needs a decision before any code; `autopilot` fits hours of work with a clear reproduction and a clear fix.
|
|
201
201
|
2. Ask it **in the same question as the rank** — one answer gives both, for example "rank 3, attended". Never a second question.
|
|
@@ -5,7 +5,7 @@ phase: ideation
|
|
|
5
5
|
priority: 88
|
|
6
6
|
arguments: "[path to the vision document]"
|
|
7
7
|
invocation: routed
|
|
8
|
-
trigger: When the user points at a product vision document, asks what this repo is or is not allowed to do, asks to create or update a project constitution (with or without a vision document), or when the vision document has changed
|
|
8
|
+
trigger: When the user points at a product vision document, asks what this repo is or is not allowed to do, asks to create or update a project constitution (with or without a vision document) or to challenge or amend one of its entries, or when the vision document has changed
|
|
9
9
|
native_mode_hint:
|
|
10
10
|
claude-code: >-
|
|
11
11
|
This skill imports a document and drafts prose for the user to correct. Do
|
|
@@ -216,6 +216,15 @@ changed, why. Amendments are how the next reader tells a deliberate local rule f
|
|
|
216
216
|
a stale derivation. Record each answer in the question file and leave it in place —
|
|
217
217
|
it is the record of what was asked and decided.
|
|
218
218
|
|
|
219
|
+
## Amending from work
|
|
220
|
+
|
|
221
|
+
A crossing answered "amend", the retrospective's challenge, or the user asking to
|
|
222
|
+
change an entry all start here. The vision has not changed, so skip
|
|
223
|
+
`aidlc constitution check` and the re-import. Ask one question for that entry in
|
|
224
|
+
`.aidlc/questions/constitution-update-<YYYY-MM-DD>.md`, shaped like Step 2's with
|
|
225
|
+
leave-as-it-is among the options, and apply it only as Step 3 says: an Amendments
|
|
226
|
+
line naming the instance the challenge came from, when there is one.
|
|
227
|
+
|
|
219
228
|
## Consulting the constitution
|
|
220
229
|
|
|
221
230
|
Reading it during other work is not this skill's job — the overview skill carries
|
package/skills/60-deployment.md
CHANGED
|
@@ -64,8 +64,8 @@ deployment checklist.
|
|
|
64
64
|
4. **Update the affected topic page in `docs/`.** If this instance changed how a documented topic
|
|
65
65
|
behaves — its interface, its failure modes, or the reason it is built the way it is — update that
|
|
66
66
|
topic's page before releasing, and say in the deployment artifact which page you touched or that
|
|
67
|
-
none applied.
|
|
68
|
-
start there to find the page. A design reason bought with a bugfix belongs in the page's "why"
|
|
67
|
+
none applied. If the project keeps a docs manifest that maps each topic to the code it
|
|
68
|
+
documents, start there to find the page. A design reason bought with a bugfix belongs in the page's "why"
|
|
69
69
|
section: the knowledge graph records what the code looks like and cannot afford to record why, so
|
|
70
70
|
a reason that lives nowhere else is one the next agent will simplify away. This is a checklist
|
|
71
71
|
step, not a gate — no phase is blocked on it.
|
package/skills/84-autopilot.md
CHANGED
|
@@ -71,7 +71,7 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
|
|
|
71
71
|
|
|
72
72
|
## What the run does on its own
|
|
73
73
|
|
|
74
|
-
- Takes items in `aidlc roadmap next --autopilot` order, which leaves out items marked `run: attended
|
|
74
|
+
- Takes items in `aidlc roadmap next --autopilot` order, which leaves out items marked `run: attended` and items not ready to build — no `AC-n` lines, or an AC naming a path that does not exist; the run says `not ready: <file>: <reason>` for each, once a pass. Builds at most two at once, and never more than the count asked for.
|
|
75
75
|
- Parks an item (moves it to `hold/` with a reason) when its agent stops short of a stop it was told to reach, when CI fails twice, or when it passes the cost cap. An item waiting for a person is never parked, and holds no build slot, so the run goes on starting others.
|
|
76
76
|
- An agent that loses the network exits, and is parked. Sleep cuts the network, so a run on a laptop needs `aidlc autopilot pause` first: it freezes the run and its agents where they are, and `aidlc autopilot resume` carries on.
|
|
77
77
|
- Before each merge, brings the item's branch up to date with main and waits for CI on the new head. A conflict with main goes back to the item's agent, twice at most, then the item is parked. A pull request someone merged by hand is dropped from tracking.
|
|
@@ -30,7 +30,9 @@ Run the retro **before** any completion cleanup (worktree removal, claim release
|
|
|
30
30
|
1. **Idempotency check.** If `retrospective.md` already exists in the instance state dir, offer to update or skip — never duplicate. A skip still removes the retro-pending marker.
|
|
31
31
|
2. **Gather state.** Read `instance.yaml`, `phase-*.yaml`, and `transitions.log`. For the cost summary, prefer `aidlc cost <instance>` (it applies fidelity precedence); only read `costs.ndjson` raw when the CLI is unavailable, and mark that summary approximate. No cost data → omit the cost section entirely, never write zeros.
|
|
32
32
|
3. **Draft, then ask — one round-trip.** Draft your own answers to the three questions — what surprised us? what would we do differently? what took longer than expected? — from the record: `transitions.log`, the question files, `.aidlc/state/<instance>/unattended-stops.md`, `test-results.md` and the cost summary. Cite what each answer rests on. Show the three drafts in a single message and ask the user to correct them; a reply that changes nothing keeps them. For **Micro scope**, compress to one drafted answer covering all three. Unattended (`AIDLC_UNATTENDED=1`), write the drafts into `retrospective.md` under the line "Drafted by the agent from the record; not reviewed by a person." Declining the retro is fine: remove the marker, write nothing.
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
**Challenge the entries the work ran into.** Only when the instance has a `constitution-crossings.md`, or its `design.md` or `design-questions.md` cites an `ADR-<n>`: in the same message, ask one question — should any of these entries change? — naming each one. For a `NOT-<n>`, count its `exception` lines across `.aidlc/state/*/constitution-crossings.md`; at two or more, give the count and the instances, so a rule that keeps being waived is visible. A yes goes to the **aidlc-constitution** skill's "Amending from work" section for a `NOT-<n>`, or to a superseding entry per **The decision-register rule** (`.aidlc/resources/rules/decision-register.md`) for an `ADR-<n>`; the retro edits neither document. With neither signal, ask nothing. Unattended, list the entries and counts and mark the question not asked.
|
|
35
|
+
4. **Write `retrospective.md`** in the instance state dir: the answers, as the user corrected the drafts; when the challenge was asked or listed, a `## Constitution and register` section with one line per entry and its answer, a "no" included; instance metadata (template, scope); per-phase durations (pair each transitions.log `to: X` with the next `from: X`; fall back to the phase YAML's `entered_at`/`completed_at`; note inconsistencies rather than guessing); and the cost summary when available.
|
|
34
36
|
5. **Distill lessons — 0 to 3.** A lesson is a durable, project-general observation ("NDJSON merge=union false-dedups identical same-second events"), not an instance anecdote ("we finished late"). If nothing generalizes, write no lesson — an empty distillation is a valid outcome.
|
|
35
37
|
|
|
36
38
|
**Before distilling, search** `.aidlc/guidance/lessons.md` and `.aidlc/guidance/lessons-digest.md` for an earlier lesson making the same claim — the same mechanism, not the same words. Then end every lesson with **exactly one resolution tag**, naming what stops it next time: `[test: <path>]`, `[check: <name or path>]`, `[guidance: <file>]`, or `[observation]` when nothing does. A lesson the search matched **cannot be tagged `[observation]`**: the project has already paid for it as prose. It names the test, check or guidance file that now stops it, or it becomes one of the step 6 follow-ups with that artifact as its smallest change, and its tag names the artifact that follow-up will build.
|