@rasensio/aidlc-content 2.12.0 → 2.14.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 +11 -0
- package/docs/roadmap.md +26 -0
- package/package.json +1 -1
- package/resources/rules/unattended.md +2 -0
- package/skills/84-autopilot.md +12 -3
|
@@ -150,6 +150,17 @@ re-triage it; re-parking it with a new `hold` entry clears the finding. All thre
|
|
|
150
150
|
for the reason `roadmap-item-summary` is: each fix is a decision, and an invented decision reads
|
|
151
151
|
exactly like a real one. They read the primary checkout's roadmap and skip items that will not parse.
|
|
152
152
|
|
|
153
|
+
**`roadmap-merged-done`** and **`roadmap-merged-unrecorded`** clear `hold/` of items merged into a
|
|
154
|
+
carrier that has finished. A `hold/` item is merged when its last `hold` reason says "merged into"
|
|
155
|
+
an item id — or, with no reason, when its body opens with that line — and the merge is recorded when
|
|
156
|
+
the carrier's item file, or its instance's `roadmap-item.md`, has a `## Merged from <id>` heading for
|
|
157
|
+
it. When a carrier completes, the `roadmap-done` action moves its recorded merged items to `done/`
|
|
158
|
+
in the same step. These two catch carriers that finished before that. The first is safe tier: it
|
|
159
|
+
moves each recorded merged item of a `done/` carrier to `done/`, with a history entry naming the
|
|
160
|
+
carrier. The second is report tier and moves nothing: it names each merged item whose done carrier
|
|
161
|
+
never recorded it, because the criterion may have been dropped. Check the carrier delivered it,
|
|
162
|
+
then add the heading and run `doctor` again, or re-park the item with a new reason.
|
|
163
|
+
|
|
153
164
|
**`knowledge-stale-sources`** resolves every knowledge-graph entity's `source` against the disk, and
|
|
154
165
|
every relationship endpoint against the entity set, and names what does not resolve. It is the check
|
|
155
166
|
that was missing when 15 graph entities described `packages/web` for 17 days after the website cutover
|
package/docs/roadmap.md
CHANGED
|
@@ -409,6 +409,32 @@ it prints one plain frame of the chosen view and returns. In the `aidlc` console
|
|
|
409
409
|
this view, with attended instances beside autopilot's, and `v` cycles its layouts there. In the narrow one-column console, Ctrl-T shows or hides the one-line updates above
|
|
410
410
|
the prompt.
|
|
411
411
|
|
|
412
|
+
**Answering from the session that started the run.** `aidlc autopilot pending` lists every decision
|
|
413
|
+
the run waits on you for: a paused item's open questions and its approval, an open question an
|
|
414
|
+
unattended agent logged or answered with its `(unattended default)`, an item's unreviewed
|
|
415
|
+
interpretations (one entry for all of them), an item this run parked, `inbox/` items to triage when
|
|
416
|
+
nothing is ready, a retrospective pending for an item of this run, and an item the merge queue halted
|
|
417
|
+
on. Each entry says whether it blocks the run or only waits, and lists its options, the recommended
|
|
418
|
+
one first, each with what it does in one line. `--json` is for the agent session that started the
|
|
419
|
+
run: the `aidlc-autopilot` skill reads it, asks you each entry as a multiple-choice question, and
|
|
420
|
+
applies your answer with the one command each option names, `aidlc autopilot answer <fingerprint>
|
|
421
|
+
<option>`. That command records the answer in `answers.ndjson` beside autopilot's state, so no
|
|
422
|
+
session asks it again. It writes a phase question's answer into its question file, triages an inbox
|
|
423
|
+
item, declines a parked item, or retries a halted one. It also approves a paused item, and keeps or
|
|
424
|
+
rejects a decision an agent logged, in your name: the approval is recorded in autopilot's state and
|
|
425
|
+
the verdict in the decision log, each naming you and the watcher. `aidlc autopilot approve` and
|
|
426
|
+
`aidlc autopilot review` themselves still need you at a terminal. Anything else only you can do —
|
|
427
|
+
finishing an item by hand, a retrospective — it prints for you to run. `other --note "<text>"`
|
|
428
|
+
records your words and applies nothing. Between rounds the skill runs `aidlc autopilot wait
|
|
429
|
+
--pending` in the background; it exits when something new waits, after 30 minutes with nothing new
|
|
430
|
+
(`--heartbeat <minutes>`), or when the run ends, and that exit is what wakes the session.
|
|
431
|
+
|
|
432
|
+
**Triage from the command line** is `aidlc roadmap triage <item> backlog [--rank <n>] [--run
|
|
433
|
+
autopilot|attended]`, which moves an `inbox/` item to `backlog/`, ranks it as `roadmap rank` does and
|
|
434
|
+
writes its `run:` line, or `aidlc roadmap triage <item> park|decline --reason "<why>"`, which moves it
|
|
435
|
+
to `hold/` with the `parked — ` or `declined — ` prefix. `decline` also takes a parked `hold/` item.
|
|
436
|
+
Anything else writes nothing.
|
|
437
|
+
|
|
412
438
|
**Notifications.** A run sends a desktop notification (`osascript` on macOS, `notify-send` on Linux)
|
|
413
439
|
when an item is parked, fails — "release failed" or "queue halted" where that applies — waits for
|
|
414
440
|
your review or your merge, or is merged, released or closed, and when the run finishes. Each is sent
|
package/package.json
CHANGED
|
@@ -20,6 +20,8 @@ Append one entry per default, decision or hard stop to `.aidlc/state/<instance>/
|
|
|
20
20
|
|
|
21
21
|
Unattended, the end of the turn is the end of the session, and a command still running dies with it. Run a long command in the foreground, or poll it inside the turn until it ends. Never end the turn while it runs, or to wait for a wakeup or a notification.
|
|
22
22
|
|
|
23
|
+
This binds unattended agents. The one exception is the attended session watching an autopilot run (`aidlc-autopilot`): it ends its turn to wait for `aidlc autopilot wait --pending`.
|
|
24
|
+
|
|
23
25
|
## Hard stop
|
|
24
26
|
|
|
25
27
|
Always a hard stop:
|
package/skills/84-autopilot.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aidlc-autopilot
|
|
3
|
-
description: Works the next backlog items in the background — "do the next 3 items" or "do all the items" — pauses and resumes that run, and reports how to watch and stop
|
|
3
|
+
description: Works the next backlog items in the background — "do the next 3 items" or "do all the items" — stays on watch and asks you what the run waits on, pauses and resumes that run, and reports how to watch and stop
|
|
4
4
|
phase: implementation
|
|
5
5
|
priority: 60
|
|
6
6
|
arguments: "[<n> | all | pause | resume]"
|
|
@@ -26,7 +26,7 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
|
|
|
26
26
|
```
|
|
27
27
|
aidlc autopilot run --items <n>
|
|
28
28
|
```
|
|
29
|
-
or `aidlc autopilot run --all`. It returns at once. Do not wait for it, and do not poll
|
|
29
|
+
or `aidlc autopilot run --all`. It returns at once. Do not wait for it, and do not poll its status: step 7 is how you stay on watch.
|
|
30
30
|
|
|
31
31
|
4. **If it refuses:**
|
|
32
32
|
- *not set up* → tell the user to run `aidlc autopilot setup` in their own terminal. It asks which agent to use and what it may do; that choice is theirs, so do not pick it with flags on their behalf.
|
|
@@ -44,7 +44,15 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
|
|
|
44
44
|
|
|
45
45
|
When the user asks what is waiting for them, run `aidlc autopilot status`: it names the phase, the worktree and the exact approve command for each waiting item, and under it each open decision — the question, why it matters, the options with the recommended one marked, and the file to answer in. Answering is writing the chosen option after that question's `[Answer]:`, then the approve command. When they ask how the items are getting on, run `aidlc autopilot status --watch`: called from here it prints each item's phase, tasks done, time in its step and last event once, and returns.
|
|
46
46
|
|
|
47
|
-
7. **
|
|
47
|
+
7. **Stay on watch while the run is active.** The run's agents can ask nobody, so every decision only a person can make ends up in a file. You are the one session a person is watching: ask them. Do not build, review or fix any item yourself.
|
|
48
|
+
- **Read what waits.** Run `aidlc autopilot pending --json`. Each entry has a `fingerprint`, a `kind`, `blocks` (it blocks the run) or not (it only waits), a `question`, a `summary`, an `artifact` to read, and `options`, the recommended one first. Each option has an `id`, a `label`, a one-line `consequence`, `person` (only the person may apply it, in their own terminal), `applies` (what it comes down to) and the `command` that applies it.
|
|
49
|
+
- **Ask.** At most four questions a round: blocking entries first, then the oldest. Before each round, write one message with what the person needs to answer: which item, what the agent did, the artifact path, and every command an option will run or hand to them — the question UI cannot copy text, so commands go in the message, never in a question. Ask each entry as a multiple-choice question: its `question`, and its options by `label`, recommended first, each with its `consequence` on one line. For a triage entry the rank and the run mode are one answer. When nothing new waits, say nothing.
|
|
50
|
+
- **Apply each answer** by running exactly the chosen option's `command` — `aidlc autopilot answer <fingerprint> <option>` — and report what it printed. A triage answer with another rank ("rank 2, attended") is that option with `--rank 2`. A park or decline takes the person's reason as `--note "<reason>"`. An answer you cannot map to an option, run as `aidlc autopilot answer <fingerprint> other --note "<their words>"`, and repeat their words back; never guess an option from it. Approving an item, and keeping or rejecting a decision its agent logged, are applied by `answer` itself, in the person's name: run that option only when the person chose it. A person-only option prints the command for them to run in their own terminal: pass it on as printed. When the person does not answer, run nothing; the run carries on with everything else.
|
|
51
|
+
- **Wait to be woken.** Then run `aidlc autopilot wait --pending` as a background command and end your turn. It exits when something new waits, after 30 minutes with nothing new, or when the run ends, and its exit wakes you. On waking, read `aidlc autopilot pending --json` again: ask what you have not asked this session, stay silent when there is nothing new, and start the wait again. When it prints `run ended`, say so in one line and stop watching. This is the one place a session ends its turn to wait: `rules/unattended.md` "Waiting for a command" binds unattended agents, not you.
|
|
52
|
+
- **No background command?** Where this agent cannot be woken by a background command's exit, check `aidlc autopilot pending --json` every 20–30 minutes with a scheduled check instead. Failing both, say once that the person must run `aidlc autopilot status` themselves to see what waits.
|
|
53
|
+
- **Never** answer a question yourself, approve or review unless the person chose that option this round (and then only through its `answer` command; `aidlc autopilot approve` and `aidlc autopilot review` are theirs to run in their own terminal), change `pause_after` or `stop_at`, merge or release beyond what the run's stops allow, or build an item. An answer already given in another session is refused by `answer` with who gave it; report that and move on.
|
|
54
|
+
|
|
55
|
+
8. **Pause and resume.** When the user is stepping away or closing the laptop, run `aidlc autopilot pause`; when they are back, `aidlc autopilot resume`. Report what each printed. If pause says a pass is in progress — a merge or a release — run it again a minute later rather than stopping the run.
|
|
48
56
|
|
|
49
57
|
## What the run does on its own
|
|
50
58
|
|
|
@@ -60,3 +68,4 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
|
|
|
60
68
|
|
|
61
69
|
- `aidlc autopilot run` has started a run, or its refusal has been reported with the one command that fixes it
|
|
62
70
|
- The user knows where it will stop for them, where the log is, how to watch, how to pause, and how to stop
|
|
71
|
+
- While the run is active, this session is on watch: it asks about what waits, applies each answer with its one command, and waits to be woken
|