@rasensio/aidlc-content 2.19.0 → 2.20.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/roadmap.md CHANGED
@@ -251,7 +251,10 @@ Each item goes through these steps:
251
251
  marked `run: attended` for a person.
252
252
  2. **Build.** `aidlc start … --worktree --roadmap-item <item>` creates the instance in its own
253
253
  worktree, then the configured agent runs there with `AIDLC_UNATTENDED=1` and `AIDLC_PAUSE_AFTER`
254
- set to the phases it must stop after. The agent follows the unattended rule and stops at a review
254
+ set to the phases it must stop after. Its prompt states both values too, an empty pause list in
255
+ words, and the agent reads them there first: the `claude-scoped` preset refuses `printenv`, and a
256
+ refused read once let an agent carry on past a pause. A pause list it can read from neither makes
257
+ every completed phase a review boundary. The agent follows the unattended rule and stops at a review
255
258
  boundary or the release boundary, or parks the item on a hard stop. A start that
256
259
  fails parks the item with `parked — could not start: <error>` and autopilot goes straight on to
257
260
  the next ready item; the parked one does not count toward `--items`. Retrying the same item every
@@ -355,15 +358,17 @@ six questions on its own. Each is a list with one choice marked recommended:
355
358
  like, but never `autopilot`, `start`, `update` or `roadmap sync`) and read-only `gh pr checks` /
356
359
  `gh run view` (recommended). A machine set up with the older scoped command is moved to this one
357
360
  the next time autopilot reads its config; Claude Code with full access; Codex editing and
358
- running commands inside its `workspace-write` sandbox; or a command you type. This decides what an unattended agent may do on your machine, so
361
+ running commands inside its `workspace-write` sandbox, which may also write the repository's git
362
+ directory so it can commit from a worktree; or a command you type. This decides what an unattended agent may do on your machine, so
359
363
  it is never picked for you: with no terminal, setup needs `--agent <preset>` or
360
364
  `--non-interactive`.
361
365
  - **How many items build at once** — two (recommended) or one.
362
366
  - **A cost cap per item, in tokens** — 40M (recommended), 15M, 80M, or no cap. An item past it is
363
367
  stopped and parked. Before each launch, an item whose sessions have used the cap less a 10% margin
364
368
  is parked instead. A Codex run is stopped as it runs, at the cap less the same margin, from the
365
- tokens it reports — no rate needed. Claude Code has no token budget flag, so during a Claude run
366
- `aidlc cost` holds it to the cap.
369
+ tokens it reports — no rate needed. A resumed Codex run reports its whole thread's total, so only
370
+ what it adds to the thread counts, live and when it ends. Claude Code has no token budget flag, so
371
+ during a Claude run `aidlc cost` holds it to the cap.
367
372
 
368
373
  A dollar cap saved before tokens (`cost_cap_usd`) keeps working until you set a new cap. Claude
369
374
  Code is given the cap as its budget (`--max-budget-usd`), less what the item already spent and a
@@ -222,7 +222,14 @@ naming which instance caused a bug), which parks the item and ends the session.
222
222
  A situation no stop covers is decided and logged when the choice lies inside the item's "What success
223
223
  looks like", as an `interpretation`, a `deviation` or an `open-question`; an open question keeps
224
224
  autopilot from merging the pull request until a person has answered, and `aidlc autopilot review`
225
- walks a person through every logged call.
225
+ walks a person through every logged call: one instance, every instance with an unreviewed call
226
+ (`--pending`), or an agent's proposal (`--from <file>`), which the CLI checks whole before it asks
227
+ anything and then stops only on the calls that need the person. Each verdict line says who decided:
228
+ `(accepted from the agent's proposal)` or `(judged by the person)`. Why: a person who copied an
229
+ agent's advice prompt by prompt was recorded as having judged every call. Promoting a good call and rejecting a bad one both feed
230
+ `.aidlc/guidance/decisions.md`, which every later item reads: a rejection asks what the call should
231
+ have been, and a non-empty answer is written there as a `Correction:` entry beside the original
232
+ decision. Why: before, a rejection kept nothing, so the next run could make the same call again.
226
233
  Completing testing is the normal end: the agent writes the release plan and stops, and whatever runs
227
234
  it owns the push, merge and release. The list of stops came from two dry runs on 2026-10-02 that
228
235
  logged the same thirteen on two machines. The mode is a rule the agent reads, not a switch the CLI
@@ -69,6 +69,23 @@ before anything ships. You can pause or stop the run at any time.
69
69
  Keep a call, reject it (then reopen the phase with `aidlc amend <instance> --impact`), or
70
70
  promote it into `.aidlc/guidance/decisions.md`, which every later item reads.
71
71
 
72
+ With several items to review, walk all of them in one go:
73
+
74
+ ```bash
75
+ aidlc autopilot review --pending
76
+ ```
77
+
78
+ Or ask your agent to prepare the review. It writes a proposal file with a verdict for each
79
+ call and a plain-words explanation for each one that needs you. Accept it in one step:
80
+
81
+ ```bash
82
+ aidlc autopilot review --from <file>
83
+ ```
84
+
85
+ The command checks the whole proposal before it writes anything. It keeps the routine calls
86
+ at once, marked as accepted from the agent's proposal, and stops only on open questions and
87
+ proposed rejects or promotes. What you answer there is marked as judged by you.
88
+
72
89
  6. To freeze the run, for example before you close the laptop, pause it. Resume it later:
73
90
 
74
91
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "2.19.0",
3
+ "version": "2.20.0",
4
4
  "bugs": "https://github.com/rasensio/aidlc-feedback/issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -2,7 +2,7 @@
2
2
 
3
3
  This file is the only statement of the rule. Skills point here instead of restating it, so there is no second copy to drift.
4
4
 
5
- Unattended mode is on exactly when the environment variable `AIDLC_UNATTENDED` is `1` (`printenv AIDLC_UNATTENDED`). Otherwise every skill behaves as written. Nobody answers in this mode, so every place a skill would stop for a person has one outcome:
5
+ Unattended mode is on exactly when the environment variable `AIDLC_UNATTENDED` is `1`. The launch prompt says so (`AIDLC_UNATTENDED=1`); run `printenv AIDLC_UNATTENDED` only when the prompt does not say, since a preset may refuse it. Otherwise every skill behaves as written. Nobody answers in this mode, so every place a skill would stop for a person has one outcome:
6
6
 
7
7
  - **Default and log** — take the named default, log it, carry on.
8
8
  - **Decide and log** — choose inside the item's scope, log a typed entry, carry on.
@@ -44,7 +44,7 @@ When testing completes, write the deployment record's release plan and end the s
44
44
 
45
45
  ## The review boundary
46
46
 
47
- `AIDLC_PAUSE_AFTER` (`printenv AIDLC_PAUSE_AFTER`) is a comma-separated list of phase names, set by whatever runs the agent. Empty or unset names none, and every phase boundary is the `phase-end-turn` default: carry on.
47
+ `AIDLC_PAUSE_AFTER` is a comma-separated list of phase names, set by whatever runs the agent and stated in its launch prompt: `AIDLC_PAUSE_AFTER=<list>`, or in words when empty. Run `printenv AIDLC_PAUSE_AFTER` only when the prompt does not state it. Empty, or unset when `printenv` runs, names none, and every phase boundary is the `phase-end-turn` default: carry on. A list read from neither — the prompt is silent and `printenv` is refused — names every phase: each completed phase is a review boundary. A wait costs less than a skipped review.
48
48
 
49
49
  When it names the phase that just completed, that boundary is a **review boundary**. A person reads the artifact and approves it; the run carries the work on afterwards, in a later session. So:
50
50
 
@@ -38,7 +38,22 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
38
38
  6. **Where it stops for a person.** Three stops. The first two are set in `aidlc autopilot setup` or `aidlc init` and on by default; the third needs no setting:
39
39
  - **After a phase** — the agent stops when a phase in `pause_after` completes (requirements and design by default). The item waits as `awaiting-review`; it is *not* parked. The user reads the artifact in the item's worktree, then `aidlc autopilot approve <instance>` carries it on. A requirements or design phase that wrote "Nothing open" into its artifact, with no unanswered question, is not waited on: the item carries on, and the run log says so.
40
40
  - **At the pull request** — autopilot opens it and waits for the user to merge. Merging is the approval: autopilot then closes the instance out on main and runs no release.
41
- - **At an open question** — an unattended agent decides calls inside the item's scope and logs each in the instance's state directory; one it marks `open-question` needs the user. Whatever `stop_at` says, that item waits at its pull request like the stop above. The user runs `aidlc autopilot review <instance>` in the item's worktree to keep, reject or promote each logged decision — promoting adds it to `.aidlc/guidance/decisions.md`, which every later item reads — then merges.
41
+ - **At an open question** — an unattended agent decides calls inside the item's scope and logs each in the instance's state directory; one it marks `open-question` needs the user. Whatever `stop_at` says, that item waits at its pull request like the stop above. The user runs `aidlc autopilot review <instance>` in the item's worktree to keep, reject or promote each logged decision — promoting adds it to `.aidlc/guidance/decisions.md`, which every later item reads, and rejecting one asks what the call should have been and adds that answer there as a correction (Enter skips) — then merges.
42
+
43
+ **Preparing that review.** When the person asks for help with the logged calls, write a proposal for them; never run `aidlc autopilot review` yourself. Write it to `<git common dir>/aidlc/review-proposal.yaml` (`git rev-parse --git-common-dir`), outside every working tree, so no commit picks it up. It is YAML with one key, `instances`, mapping each instance to its entries by number. Give every entry without a `**Review:**` line, in each instance you name, a verdict: `keep`, `reject` or `promote` — the CLI refuses a proposal that leaves one out. Promote only an `interpretation`, a `deviation` or an entry with no `**Type:**` line. An entry needs the person when it is an `open-question` or you propose reject or promote: write it as a mapping with `verdict` and three parts in plain words, each under 1,000 characters — `what_happened`, `example` (one concrete case), and `what_changes` (what each answer would change):
44
+
45
+ ```yaml
46
+ instances:
47
+ cost-in-tokens:
48
+ 1: keep
49
+ 3:
50
+ verdict: promote
51
+ what_happened: The run had to pick a unit for the cost cap and chose tokens.
52
+ example: A cap of 2,000,000 stops a run after about two hours of work.
53
+ what_changes: Keep leaves tokens. Promote makes it the call every later item reads. Reject sends it back to be built in dollars.
54
+ ```
55
+
56
+ Then give the person the command to run in their own terminal: `aidlc autopilot review --from <file>`. It checks the whole proposal against the logs first and names every problem, writes the routine keeps at once as accepted from the agent's proposal, and stops only on the entries that need the person, showing your explanation and your answer first. `aidlc autopilot review --pending` walks every instance with an unreviewed entry when there is no proposal.
42
57
 
43
58
  One run can change both without touching the saved setup: `aidlc autopilot run --items 3 --stop-at merge` or `--pause-after design` (`--pause-after none` for no pauses, `--stop-at release` for the old merge-and-release). The flags apply to the items that run starts; an item already in flight keeps the stops it started with. A config saved before stops existed keeps today's behaviour — no pauses, merge and release — until somebody sets them.
44
59