@rasensio/aidlc-content 2.20.0 → 2.21.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.
@@ -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`, and
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.
package/docs/roadmap.md CHANGED
@@ -189,6 +189,20 @@ Declare `run` in `roadmap.item_fields` and triage proposes the value with the ra
189
189
  in one question. With only attended items ready, `aidlc autopilot run --all` finds nothing ready and
190
190
  ends.
191
191
 
192
+ **Autopilot also leaves out an item that is not ready to build.** An item is ready when it has at
193
+ least one `- AC-n:` line, at least one of those lines names a file path in backticks, and every path
194
+ they name exists — or its parent folder does, since an AC may name a file it creates. A path is a
195
+ backticked token with no spaces that contains `/` or ends in a file extension. Of a path with a
196
+ `*`, `?`, `<…>` or `{…}` segment, only the folders before that segment must exist. A criterion
197
+ reference (`<instance>/AC-<n>`), a URL, and a path that is absolute, starts with `~` or has a `..`
198
+ segment are not paths. `aidlc roadmap next --autopilot` lists an unready item under `skipped` with
199
+ the reason `not-ready` and the first failing rule — `not ready: no AC-n lines`,
200
+ `not ready: no AC names a file path`, or `not ready: AC-<n> names <path>, which does not exist` —
201
+ and autopilot says `not ready: <file>: <reason>` once a pass. The check runs after every other
202
+ reason, and a plain `aidlc roadmap next` does not run it. `aidlc roadmap triage <item> backlog` with
203
+ `--run autopilot`, or for an item already marked `run: autopilot`, prints the same reason as
204
+ `warning: <file>: not ready: …` on stderr and still moves the item.
205
+
192
206
  **Parking from an instance** is `aidlc roadmap park <instance> --reason "<why>"`: it moves the item
193
207
  promoted to that instance into `hold/` with a `parked — ` reason. It exists for unattended mode's hard
194
208
  stops — see [Skills and platforms](skills-and-platforms.md) — where the agent works in a worktree but
@@ -248,7 +262,8 @@ resumes.
248
262
  Each item goes through these steps:
249
263
 
250
264
  1. **Pick.** `aidlc roadmap next --autopilot` names the next ready backlog item, leaving items
251
- marked `run: attended` for a person.
265
+ marked `run: attended` for a person and skipping items that are not ready to build — no
266
+ `AC-n` lines, or an AC naming a path that does not exist — with the reason.
252
267
  2. **Build.** `aidlc start … --worktree --roadmap-item <item>` creates the instance in its own
253
268
  worktree, then the configured agent runs there with `AIDLC_UNATTENDED=1` and `AIDLC_PAUSE_AFTER`
254
269
  set to the phases it must stop after. Its prompt states both values too, an empty pause list in
@@ -321,7 +336,10 @@ Each item goes through these steps:
321
336
  5. **Your merge, where the stop is the pull request** (the default). Green CI leaves the item as
322
337
  `awaiting-merge` and autopilot neither merges nor releases. When you merge, it closes the instance
323
338
  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. Close the
339
+ runs no release; if the instance is already closed there, it just stops tracking it. The
340
+ close-out commits only what it wrote, with the cost records and review verdicts the worktree
341
+ gained after its last commit; any other uncommitted file under `.aidlc` stays out and is named
342
+ in the closing notice. Close the
325
343
  pull request without merging and it stops tracking it too. That pull request is yours while it
326
344
  waits: autopilot does not bring it up to date with main or chase its CI.
327
345
  6. **Up to date with main**, for an item autopilot merges itself. Before merging, it merges
@@ -498,8 +516,13 @@ and `aidlc autopilot resume` carries on; a pause waits for a pass in progress ra
498
516
  release halfway. `aidlc autopilot forget <instance>` stops tracking an item you finished or
499
517
  abandoned by hand; a pull request merged by hand is noticed and dropped on its own. A rate limit
500
518
  from `gh`, `glab`, a `git push` or `fetch`, or the agent backs off five minutes, doubling to at most
501
- two hours. Only those are read for one, and only for the host's own words — a `429` in a file list,
502
- a branch name or an item's title is not a rate limit. `aidlc autopilot tick --dry-run` prints every command one pass would run and runs only the
519
+ two hours. Only those, and the `aidlc` commands that reach a host (`roadmap sync`, `roadmap import`,
520
+ `init`, `cost rates update`), are read for one, and only for the host's own words — a `429` in a file
521
+ 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
522
+ back-off, since nothing has changed yet. One on any step after the merge also stops the item for you,
523
+ as a failed step there does: the pull request is merged, so autopilot neither merges it again nor
524
+ drops it as merged by hand, and the release and close-out are yours to finish before
525
+ `aidlc autopilot forget`. `aidlc autopilot tick --dry-run` prints every command one pass would run and runs only the
503
526
  reads.
504
527
 
505
528
  ## Repositories not on GitHub
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "2.20.0",
3
+ "version": "2.21.0",
4
4
  "bugs": "https://github.com/rasensio/aidlc-feedback/issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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`, and items whose `run` is neither value, listing each as skipped. **`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.
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, and a zoomable map of the `depends_on` chains with blocked items and unknown ids marked — 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.
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.
@@ -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. The manifest at `docs/index.yaml` maps each topic to the code it documents, so
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.
@@ -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`. Builds at most two at once, and never more than the count asked for.
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.