@rasensio/aidlc-content 1.45.1 → 1.47.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "1.45.1",
3
+ "version": "1.47.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -49,6 +49,7 @@ Compose a short menu from the state. Include only the options that make sense:
49
49
  - **Answer pending questions** — when the pending-question count is above zero; show it and where they are (e.g. "2 questions waiting — `my-feature`, constitution update"). List this first among the roadmap and question entries: an unanswered question is work already blocked.
50
50
  - **Triage the inbox** — when `inbox/` is non-empty; show the count (e.g. "3 items awaiting triage"). List this above **Browse** — an untriaged submission is somebody waiting on a decision.
51
51
  - **Browse / promote the roadmap** — when any status directory outside `hold/` is non-empty; show counts per status (e.g. "3 inbox, 5 backlog, 1 in progress, 12 done").
52
+ - **Work the backlog in the background** — when `backlog/` is non-empty; show the count (e.g. "5 ready in backlog — do the next n, or all").
52
53
  - **Show status** — when at least one instance exists.
53
54
  - **Review an artifact** — when at least one instance has a completed artifact.
54
55
  - **Help / getting started** — always.
@@ -68,6 +69,8 @@ If `.aidlc/state/` is empty or missing, offer just three options: start somethin
68
69
  | Triage the inbox | Follow the **aidlc-roadmap** skill (triage flow) |
69
70
  | Browse / promote the roadmap | Follow the **aidlc-roadmap** skill (browse/promote flow) |
70
71
  | Start a roadmap item in a new worktree | Follow the **aidlc-roadmap** skill (**Promote into a new worktree**). It ends by handing off to a new session; do not start the phase here |
72
+ | Work the backlog in the background ("do the next 3 items", "do all the items") | Follow the **aidlc-autopilot** skill |
73
+ | Stop autopilot | Follow the **aidlc-autopilot-stop** skill |
71
74
  | Show status | Summarize each instance from its state files — name, template, current phase, completion %, and whether it looks stalled. When the roadmap is non-empty, append the per-status counts (e.g. "roadmap: 3 inbox, 5 backlog, 12 done") |
72
75
  | Review an artifact | Follow the **aidlc-review** skill |
73
76
  | Help / getting started | Follow the **aidlc-getting-started** skill |
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: aidlc-autopilot
3
+ description: Works the next backlog items in the background — "do the next 3 items" or "do all the items" — and reports how to watch and stop
4
+ phase: implementation
5
+ priority: 60
6
+ trigger: When the user asks to do, work, build or ship the next n backlog items, or all of them, without supervising each one
7
+ ---
8
+ # Autopilot
9
+
10
+ ## Purpose
11
+
12
+ Turn "do the next 3 items" into one background run. The run builds each ready backlog item in its own worktree with an unattended agent, opens a pull request, waits for CI, merges, and runs the configured release step — one item at a time through the merge.
13
+
14
+ The CLI does the work. This skill starts it and says how to watch and stop it. Do not build the items yourself in this session.
15
+
16
+ ## Instructions
17
+
18
+ 1. **Read the count.** "the next 3 items" → `--items 3`. "all the items", "the whole backlog" → `--all`. "the next item" → `--items 1`. If no count is given, ask once: how many items, or all?
19
+
20
+ 2. **Check it is set up.** Run `aidlc autopilot status`. If the user has never run setup, `run` refuses in step 3 and says so; then go to step 4.
21
+
22
+ 3. **Start the run.** From the project, run:
23
+ ```
24
+ aidlc autopilot run --items <n>
25
+ ```
26
+ or `aidlc autopilot run --all`. It returns at once. Do not wait for it, and do not poll it.
27
+
28
+ 4. **If it refuses:**
29
+ - *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.
30
+ - *a run is already active* → report its pid and offer `aidlc autopilot stop` first.
31
+
32
+ 5. **Report**, in four short lines: what it is doing (how many items), the log file it printed, `aidlc autopilot status` to watch, and `/aidlc-autopilot-stop` (or `aidlc autopilot stop`) to stop.
33
+
34
+ ## What the run does on its own
35
+
36
+ - Takes items in `aidlc roadmap next` order. Builds at most two at once, and never more than the count asked for.
37
+ - Parks an item (moves it to `hold/` with a reason) when its agent stops short, when CI fails twice, or when it passes the cost cap.
38
+ - Halts the merge queue when a merge or release step fails, and never retries it. A half-done release is for a person — `aidlc autopilot status` shows the error.
39
+ - Ends when the asked-for items are each released or parked, or, with `--all`, when nothing is ready and nothing is in flight.
40
+
41
+ ## Exit Criteria
42
+
43
+ - `aidlc autopilot run` has started a run, or its refusal has been reported with the one command that fixes it
44
+ - The user knows where the log is, how to watch, and how to stop
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: aidlc-autopilot-stop
3
+ description: Stops the background autopilot run — nothing further is started, merged or released
4
+ phase: implementation
5
+ priority: 60
6
+ trigger: When the user asks to stop, halt or pause autopilot or the background backlog run
7
+ ---
8
+ # Stop Autopilot
9
+
10
+ ## Purpose
11
+
12
+ Stop the background run in one step.
13
+
14
+ ## Instructions
15
+
16
+ 1. Run:
17
+ ```
18
+ aidlc autopilot stop
19
+ ```
20
+ No confirmation is needed: stopping changes nothing that cannot be resumed.
21
+
22
+ 2. Report what it printed: which run was stopped (its pid) or that none was active, and each agent still finishing. Agents already running are left to finish their current item; nothing new is started, merged or released.
23
+
24
+ 3. Say how to resume: `aidlc autopilot run --items <n>` (or `--all`) starts again and clears the stop.
25
+
26
+ ## Exit Criteria
27
+
28
+ - The stop file exists and the user has been told what was stopped and how to resume