@rasensio/aidlc-content 2.6.0 → 2.8.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/lifecycle.md +4 -4
- package/docs/roadmap.md +4 -1
- package/package.json +1 -1
- package/resources/rules/question-protocol.md +8 -6
- package/resources/rules/task-agents.md +5 -7
- package/resources/rules/unattended.md +4 -4
- package/skills/04-roadmap.md +6 -3
- package/skills/05-constitution.md +1 -1
- package/skills/20-requirements.md +2 -2
- package/skills/30-design.md +3 -2
- package/skills/40-implementation.md +1 -1
- package/skills/83-add-skill.md +1 -1
- package/skills/84-autopilot.md +1 -1
- package/skills/90-retrospective.md +3 -3
package/docs/lifecycle.md
CHANGED
|
@@ -225,12 +225,12 @@ a second agent that edits nothing reviews it, and the box is ticked only after t
|
|
|
225
225
|
reviewer is handed one fixed `git diff` listing every test or spec file that existed before the task
|
|
226
226
|
and was modified, deleted or renamed — and fails each one the task did not ask to change. The listing
|
|
227
227
|
is mechanical on purpose: the agent that wrote the code also used to be the one deciding the tests that
|
|
228
|
-
define done were fine, and a loosened assertion looks like a pass from inside. It is
|
|
229
|
-
|
|
228
|
+
define done were fine, and a loosened assertion looks like a pass from inside. It is off by default,
|
|
229
|
+
because it roughly doubles the agents, and asked once per instance only when nothing has chosen it. A repo can change the default:
|
|
230
230
|
`aidlc init` asks "How should implementation tasks run?" when a configured platform has sub-agents,
|
|
231
231
|
and saves the answer as `task_agents: per-task` (or `one-session`) in `.aidlc/config.yaml`. That
|
|
232
|
-
answer
|
|
233
|
-
|
|
232
|
+
answer is used without asking: an instance names the mode and where it came from and starts its first
|
|
233
|
+
task, while a prompt or a roadmap item asking for the other mode still wins for its instance. Tasks that may run at the same time
|
|
234
234
|
carry `(wave: <n>)` in `tasks.md`; a wave must be a run of consecutive tasks, and a bad marker keeps
|
|
235
235
|
the task and warns rather than dropping it from gate coverage. The whole loop is one rule file,
|
|
236
236
|
`.aidlc/resources/rules/task-agents.md`, so a session that runs its tasks itself never reads it.
|
package/docs/roadmap.md
CHANGED
|
@@ -73,7 +73,10 @@ on something that does not exist yet makes every count of what is ready wrong.
|
|
|
73
73
|
|
|
74
74
|
Three flows: **capture** writes to `inbox/`, after checking whether an open item already owns the area
|
|
75
75
|
— if one does, the finding is appended there as a dated `## Received from <source>` section instead of
|
|
76
|
-
becoming a new file.
|
|
76
|
+
becoming a new file. Before writing, capture asks at most three decisions the build would otherwise
|
|
77
|
+
stop on — a scope edge, a name, a default — each with a recommendation and each skippable, and writes
|
|
78
|
+
the answers one line each under `## Decisions`, which requirements and design read before they ask.
|
|
79
|
+
**Triage** moves to `backlog/` or `hold/`, and is the one flow allowed to read
|
|
77
80
|
into an item's body — as far as the executive summary and no further. **Promote** creates an instance,
|
|
78
81
|
sets `promoted_to`, and moves the file to `in-progress/`. When the instance completes, the
|
|
79
82
|
`roadmap-done` action moves every item whose `promoted_to` names it to `done/` by itself; do not do
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Question Protocol
|
|
2
2
|
|
|
3
|
-
Ask
|
|
3
|
+
Ask when **different answers would change an artifact, a design decision, or scope** — the trigger is consequence, not volume. A question whose answers change nothing is not asked. Building something other than what was agreed is always asked: `.aidlc/resources/rules/departures.md`.
|
|
4
|
+
|
|
5
|
+
**Before asking, check the sources:** `.aidlc/config.yaml`, the roadmap item, the starting prompt, the answers already recorded in this instance, and the code. If one answers it, do not ask: write the answer into the artifact it was for, citing `path:line` or `path`. A question whose recommendation could only quote one of them is already answered. Ask when they disagree or none decides; an earlier answer is not re-asked — ask only the narrow follow-up.
|
|
4
6
|
|
|
5
7
|
## The spec
|
|
6
8
|
|
|
@@ -18,11 +20,11 @@ When several questions in one file share a concept, open the file with one share
|
|
|
18
20
|
|
|
19
21
|
The example shows what would really happen. One simplified until it changes the answer misleads as badly as jargon does, and it is harder to spot.
|
|
20
22
|
|
|
21
|
-
Expand every identifier on first use, writing the thing out with the tag in parentheses — "the citation rule (AC-1)", not a bare `AC-1
|
|
23
|
+
Expand every identifier on first use, writing the thing out with the tag in parentheses — "the citation rule (AC-1)", not a bare `AC-1`: a bare tag assumes the reader carries a mapping they do not have.
|
|
22
24
|
|
|
23
25
|
## Rendering the spec
|
|
24
26
|
|
|
25
|
-
The spec is input to a rendering, never output. How to render it
|
|
27
|
+
The spec is input to a rendering, never output. How to render it here is in `.aidlc/resources/questions/rendering.md` — read that before asking. Routing is decided by the question, never by asking the user which mode they want:
|
|
26
28
|
|
|
27
29
|
- Options self-explanatory and the stake fits one line → render it directly and let the user answer in place.
|
|
28
30
|
- Needs citations, trade-offs, or more than three lines of context → write the question file first, then render a prompt naming its path in one line.
|
|
@@ -34,10 +36,10 @@ Written in **every** branch, including when the user answers in place — it is
|
|
|
34
36
|
- Inside an instance: `.aidlc/state/<instance>/<phase>-questions.md`.
|
|
35
37
|
- No instance (constitution update, first activation): `.aidlc/questions/<topic>.md`.
|
|
36
38
|
|
|
37
|
-
Each question in the file ends with an `[Answer]:` tag — blank while open, carrying the chosen option label verbatim once answered. Fold answers into the phase artifact they were gathered for and leave the file in place
|
|
39
|
+
Each question in the file ends with an `[Answer]:` tag — blank while open, carrying the chosen option label verbatim once answered. Fold answers into the phase artifact they were gathered for and leave the file in place.
|
|
38
40
|
|
|
39
41
|
With no interactive terminal, write the file, say where it is, and end the turn. Never assume an answer.
|
|
40
42
|
|
|
41
|
-
**Unattended (`AIDLC_UNATTENDED=1`)** is the one exception, and it is not an assumption: take the recommended option, write it into `[Answer]:` followed by `(unattended default)`, and log it — or, when
|
|
43
|
+
**Unattended (`AIDLC_UNATTENDED=1`)** is the one exception, and it is not an assumption: take the recommended option, write it into `[Answer]:` followed by `(unattended default)`, and log it — or, when that option falls in a hard-stop class, stop. Both per `.aidlc/resources/rules/unattended.md`.
|
|
42
44
|
|
|
43
|
-
**At most five questions stand open at once.** At the limit, answering — or accepting the stated defaults — comes before asking another. The cap counts open questions, not questions asked
|
|
45
|
+
**At most five questions stand open at once.** At the limit, answering — or accepting the stated defaults — comes before asking another. The cap counts open questions, not questions asked.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# The task-agents rule
|
|
2
2
|
|
|
3
|
-
This file is the only statement of the rule
|
|
3
|
+
This file is the only statement of the rule; the implementation skill points here.
|
|
4
4
|
|
|
5
|
-
**One agent per task** hands each task in `tasks.md` to a fresh agent, then has a second fresh agent review it. The agent that wrote the code does not decide it is done. It
|
|
5
|
+
**One agent per task** hands each task in `tasks.md` to a fresh agent, then has a second fresh agent review it. The agent that wrote the code does not decide it is done. It is off unless chosen.
|
|
6
6
|
|
|
7
7
|
## When it is offered
|
|
8
8
|
|
|
@@ -10,13 +10,12 @@ Only for an instance with a task-bearing `tasks.md`, and only where the platform
|
|
|
10
10
|
|
|
11
11
|
## Choosing, once per instance
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- **One session** — every task runs here. Cheapest; later tasks inherit earlier context.
|
|
16
|
-
- **One agent per task** — each task in a fresh agent, checked by a reviewer that edits nothing. Roughly twice the tokens.
|
|
13
|
+
**One session** — every task runs here; cheapest, and later tasks inherit earlier context. **One agent per task** — roughly twice the tokens.
|
|
17
14
|
|
|
18
15
|
Recommend per `task_agents` in `.aidlc/config.yaml`: **One agent per task** if `per-task`, else **One session**. The starting prompt or `roadmap-item.md` asking for the other wins. An `[Answer]:` already recorded is followed, never re-asked. Unattended, take the recommendation as the open-question default — so autopilot follows the repo.
|
|
19
16
|
|
|
17
|
+
Do not ask when `task_agents` is set, the prompt or `roadmap-item.md` names a mode, or an `[Answer]:` is recorded: take that mode, name it and its source in one line and in `code-complete.md`, and start. Otherwise ask, before the first task, through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) in `.aidlc/state/<instance>/implementation-questions.md`.
|
|
18
|
+
|
|
20
19
|
## The loop, task by task
|
|
21
20
|
|
|
22
21
|
Take open tasks in number order. For each one:
|
|
@@ -49,7 +48,6 @@ Adjacent open tasks carrying the same `(wave: <n>)` may be handed out at once, e
|
|
|
49
48
|
Add a `## Task reviews` section to `code-complete.md`, one line per task:
|
|
50
49
|
|
|
51
50
|
```
|
|
52
|
-
- T4: PASS — attempts 1 — flagged: none
|
|
53
51
|
- T5: REJECT → PASS — attempts 2 — flagged: test/parser.test.ts (task asks to update it)
|
|
54
52
|
- T6: finished in session — attempts 2 — flagged: none
|
|
55
53
|
```
|
|
@@ -51,7 +51,7 @@ When it names the phase that just completed, that boundary is a **review boundar
|
|
|
51
51
|
3. Run `aidlc release <instance>` — a review can outlast the claim's 60-minute staleness, and the next session must not find a claim it has to override.
|
|
52
52
|
4. End the session. Do **not** park the item: it is waiting, not failed.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
The phase is still completed and transitioned first, so the next session resumes from the next phase.
|
|
55
55
|
|
|
56
56
|
## Every known stop
|
|
57
57
|
|
|
@@ -65,15 +65,15 @@ Each bullet begins with its one outcome; a condition after it is part of the rul
|
|
|
65
65
|
- `roadmap-item-unlinked` — **default and log**: use `aidlc start --roadmap-item`; never move the item by hand.
|
|
66
66
|
- `requirements-input` — **default and log**: read `roadmap-item.md`; with neither it nor an ideation artifact, hard stop.
|
|
67
67
|
- `open-question` — **default and log**: the recommended option, marked `(unattended default)`; if it is a hard-stop class, hard stop — never another option.
|
|
68
|
-
- `requirements-confirmation` — **
|
|
69
|
-
- `design-confirmation` — **
|
|
68
|
+
- `requirements-confirmation` — **hard stop** when the requirements exceed the roadmap item; inside it, nothing is confirmed or logged.
|
|
69
|
+
- `design-confirmation` — **hard stop** when the design exceeds the roadmap item; inside it, nothing is confirmed or logged.
|
|
70
70
|
- `phase-end-turn` — **default and log**: continue into the next phase, unless `AIDLC_PAUSE_AFTER` names the phase just completed, which is a review boundary.
|
|
71
71
|
- `review-boundary` — **review boundary**: `AIDLC_PAUSE_AFTER` names the phase just completed.
|
|
72
72
|
- `fresh-session` — **default and log**: continue; the runner decides where sessions start.
|
|
73
73
|
- `own-change-revert` — **default and log**: reverting this session's own change, after keeping a copy.
|
|
74
74
|
- `generated-output-discard` — **hard stop**: discarding output this session did not write.
|
|
75
75
|
- `sensitive-operation` — **hard stop**: deletions, infrastructure, permissions, credentials — except `own-change-revert`.
|
|
76
|
-
- `shared-state-prune` — **default and log**: it removes only entries whose worktree is gone and branch merged or deleted
|
|
76
|
+
- `shared-state-prune` — **default and log**: it removes only entries whose worktree is gone and branch merged or deleted; log the names it prints.
|
|
77
77
|
- `commit-incrementally` — **default and log**: on the instance branch only; never `main`, never push.
|
|
78
78
|
- `testing-security` — **hard stop**: production-like environments, real credentials, destructive operations.
|
|
79
79
|
- `platform-unknown` — **default and log**: carry on; the runner sets `AIDLC_AGENT`.
|
package/skills/04-roadmap.md
CHANGED
|
@@ -127,9 +127,12 @@ Older items may predate this section. Add it when you next touch such an item
|
|
|
127
127
|
2. **Name the file.** `YYYYMMDD-<slug>.md` — today's date plus a short (2–4 word) slug.
|
|
128
128
|
3. **Handle collisions.** If the filename already exists in *any* status directory, ask one question — extend the existing item or new item? On extend, append a dated `## Update (YYYY-MM-DD)` section to it where it is; on new, suffix the slug (`-2`). Never silently overwrite.
|
|
129
129
|
4. **Merge first.** Before writing a new file, check whether an open item — anything in `inbox/`, `backlog/` or `in-progress/` — already owns the area this is about. If one does, append a dated `## Received from <source>` section to **that** item and stop; say which item it went to. This is about *subject*, where step 3 is about *filename*: four of those eighteen items were findings about areas an existing item already owned, one of them literally asking somebody to triage another item. Merging them took minutes and removed four files. A new file is the right answer when no open item owns the area — which is most of the time, and the check costs one read of a list you are already looking at.
|
|
130
|
-
5. **
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
5. **Ask the decisions the build will need.** Name at most three choices requirements or design would otherwise stop on — a scope edge, a user-visible name or flag, a default — each with a recommendation, and ask them in one message, together with step 7's one question when it asks one. Any or all may be answered "skip". No follow-up round. A choice the braindump already settles is not asked. When nobody is there to answer — an item an instance writes, an unattended run — ask nothing.
|
|
131
|
+
|
|
132
|
+
This is the moment the person still has the context. Requirements and design read the item's `## Decisions` section before they ask, so a choice answered here is not asked again hours later, when nobody remembers why.
|
|
133
|
+
6. **Write the file** into `inbox/`, with `source: human`, `promoted_to: null`, and one `history` entry dated today. Record `depends_on` only if the braindump itself names other items; never ask for dependencies. Write each answered decision as one line under `## Decisions`, after the item's other sections: `- <decision> — <answer>`. A skipped decision is not written; with none answered, there is no `## Decisions` section. Beyond step 5's decisions, do not interrogate the user for structure — capture friction kills inboxes; one braindump in, one file out.
|
|
134
|
+
7. **Draft the executive summary from the braindump, do not extract it by interview.** You write those six lines; the user does not. Ask at most one question, in step 5's message, and only when the braindump says nothing about who wants this or why — a good one is "would this make money, save money, or is it just something that needs doing?". Anything still unknown is `Not yet decided.`, which is the point of having the label.
|
|
135
|
+
8. **Confirm and return.** Report the file path and the `Recommendation` line, then return to whatever was happening. Showing the recommendation lets the user correct a wrong read immediately, while the context is still in front of them.
|
|
133
136
|
|
|
134
137
|
**Hard rule:** capture never reads or writes anything under `.aidlc/state/` — no claims, no phase files, no transitions log. Two sessions capturing simultaneously just produce two files; no locking exists or is needed. Do not auto-commit; staging is the user's.
|
|
135
138
|
|
|
@@ -151,7 +151,7 @@ at nothing.
|
|
|
151
151
|
**Why it matters:** NOT-2 is a boundary this repo is held to. Left citing a
|
|
152
152
|
statement the vision no longer carries, it is enforced without a source.
|
|
153
153
|
|
|
154
|
-
**What the repo already says:** `.aidlc/constitution.md` NOT-2 cites V-99887766.
|
|
154
|
+
**What the repo already says:** `.aidlc/context/constitution.md` NOT-2 cites V-99887766.
|
|
155
155
|
The vision no longer says: "<old statement text>"
|
|
156
156
|
It now says: "<new statement text, if there is a successor>"
|
|
157
157
|
|
|
@@ -59,7 +59,7 @@ See **The context rule** (`.aidlc/resources/rules/context.md`).
|
|
|
59
59
|
4. **Set scope boundaries.** Explicitly state what is NOT included.
|
|
60
60
|
5. **Non-functional requirements.** Address performance, security, accessibility, and compatibility where relevant.
|
|
61
61
|
6. **Write the change as a spec delta.** `.aidlc/specs/<capability>.md` says what the system does today. Read the files your change touches, then end `requirements.md` with a `## Spec delta` section: one `### ADDED <capability>: <requirement name>`, `### MODIFIED …` or `### REMOVED …` block per change. ADDED and MODIFIED blocks hold the requirement's full new text, written as what the system does. MODIFIED and REMOVED blocks start with `Base: <revision>`, copied from `aidlc spec show <capability>`. Capabilities are lowercase kebab-case names; a new one is created by its first ADDED block. Run `aidlc spec fold <instance> --dry-run` before the phase closes — it reports every error and conflict, and the same fold runs at completion, where a conflict blocks it. Skip the section when the change alters no lasting behaviour, as most bugfixes do not.
|
|
62
|
-
7. **For open decisions**: When a decision would change what `requirements.md` says, ask it through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) — questions for this phase go to `.aidlc/state/<instance>/requirements-questions.md`. Prefer drafting `requirements.md` early with the unresolved points marked as explicit decision blocks: users decide better reacting to a concrete draft than answering abstract questions. Fold each answer into the draft and leave the question file as the record of what was decided and why.
|
|
62
|
+
7. **For open decisions**: When a decision would change what `requirements.md` says, ask it through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) — questions for this phase go to `.aidlc/state/<instance>/requirements-questions.md`. Prefer drafting `requirements.md` early with the unresolved points marked as explicit decision blocks: users decide better reacting to a concrete draft than answering abstract questions. Fold each answer into the draft and leave the question file as the record of what was decided and why. A question the roadmap item's `## Decisions` section answers is not asked — its author answered it at capture: write the answer into `requirements.md`, citing `roadmap-item.md` `## Decisions`.
|
|
63
63
|
|
|
64
64
|
## Bugfix Reproduction (bugfix template)
|
|
65
65
|
|
|
@@ -82,7 +82,7 @@ When the instance uses the `bugfix` template, this phase produces `reproduction.
|
|
|
82
82
|
|
|
83
83
|
- `requirements.md` exists with at least one user story and corresponding acceptance criteria
|
|
84
84
|
- Each acceptance criterion is testable (has an observable pass/fail condition)
|
|
85
|
-
- The
|
|
85
|
+
- The phase ends by naming each open decision — asked through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) in `.aidlc/state/<instance>/requirements-questions.md` — or by saying "Nothing open". Do not ask the user to confirm the whole document. Unattended (`AIDLC_UNATTENDED=1`): nothing is confirmed or logged; hard-stop when the requirements reach beyond the roadmap item, per `.aidlc/resources/rules/unattended.md`.
|
|
86
86
|
|
|
87
87
|
## Guidance
|
|
88
88
|
|
package/skills/30-design.md
CHANGED
|
@@ -28,6 +28,7 @@ Read only:
|
|
|
28
28
|
- the always-read guidance layers named in `.aidlc/guidance/index.yaml` (see **The always-read rule** (`.aidlc/resources/rules/always-read.md`))
|
|
29
29
|
- `.aidlc/context/architecture.md` and `style-guide.md`
|
|
30
30
|
- `.aidlc/context/constitution.md`, when it exists
|
|
31
|
+
- the `## Decisions` section of `roadmap-item.md`, when the item has one — answers its author gave at capture
|
|
31
32
|
- the spec corpus files in `.aidlc/specs/` named by `requirements.md`'s `## Spec delta` section —
|
|
32
33
|
the current spec, which is what the design is built against. Not a past instance's
|
|
33
34
|
`requirements.md`: it describes a change, and later instances may have changed it again.
|
|
@@ -50,7 +51,7 @@ transcript. See **The context rule** (`.aidlc/resources/rules/context.md`).
|
|
|
50
51
|
4. **Define architecture.** Describe the high-level structure: components, their responsibilities, and how they communicate. Say for each one whether it extends a seam found in step 3 or is new.
|
|
51
52
|
5. **Specify interfaces.** For each component boundary, define the contract (function signatures, API shapes, data types).
|
|
52
53
|
6. **Data flow.** Document how data moves through the system — inputs, transformations, storage, outputs.
|
|
53
|
-
7. **Design decisions.** Record each significant decision with rationale and alternatives considered. Persist accepted decisions as `decision` entities: `aidlc knowledge add --type decision --id <slug> --name "<title>" --description "<rationale>"`. A decision that would build other than what was agreed — in `requirements.md`, the roadmap item or a person's answer — is asked before it is recorded, as **The departure rule** (`.aidlc/resources/rules/departures.md`) says.
|
|
54
|
+
7. **Design decisions.** Record each significant decision with rationale and alternatives considered. Persist accepted decisions as `decision` entities: `aidlc knowledge add --type decision --id <slug> --name "<title>" --description "<rationale>"`. A decision that would build other than what was agreed — in `requirements.md`, the roadmap item or a person's answer — is asked before it is recorded, as **The departure rule** (`.aidlc/resources/rules/departures.md`) says. A design question the roadmap item's `## Decisions` section answers is not asked: write the answer into `design.md`, citing `roadmap-item.md` `## Decisions`.
|
|
54
55
|
8. **Address non-functional concerns.** Map performance, security, and accessibility requirements to design choices.
|
|
55
56
|
9. **Identify risks.** Note technical risks and mitigation strategies.
|
|
56
57
|
10. **Produce the task breakdown.** For templates that require it (full-feature, quick-feature), write `tasks.md` in the instance state directory as the final design step — the design is not done until it is actionable. Decompose the design into commit-sized tasks: each one reviewable in one sitting and independently verifiable. One task per line, in this exact grammar:
|
|
@@ -74,7 +75,7 @@ transcript. See **The context rule** (`.aidlc/resources/rules/context.md`).
|
|
|
74
75
|
- Every knowledge-graph symbol the design builds on was checked against the source
|
|
75
76
|
- The design addresses all acceptance criteria from `requirements.md`
|
|
76
77
|
- For templates requiring it: `tasks.md` exists and every active acceptance criterion is claimed by at least one task, or the gap is deliberate
|
|
77
|
-
- The user
|
|
78
|
+
- The phase ends by naming each open design decision — asked through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) in `.aidlc/state/<instance>/design-questions.md` — or by saying "Nothing open". Do not ask the user to confirm the design as a whole. Unattended (`AIDLC_UNATTENDED=1`): nothing is confirmed or logged; hard-stop when the design reaches beyond the roadmap item, per `.aidlc/resources/rules/unattended.md`.
|
|
78
79
|
|
|
79
80
|
## Guidance
|
|
80
81
|
|
|
@@ -48,7 +48,7 @@ Then the source files that task touches. See **The context rule** (`.aidlc/resou
|
|
|
48
48
|
3. **Check that the planning artifacts agree.** Before the first task, run `aidlc cross-check <instance>` and show the user the list. It reads `requirements.md`, `design.md` and `tasks.md` side by side and prints one line per gap — a criterion no task cites, a task citing no criterion, a criterion design never mentions — each naming both artifacts and the ID. It is a report: it writes nothing and never blocks, and acting on a gap is the user's call. A gap in `tasks.md` is fixed in place, since its phase is still open here; a gap in a completed `requirements.md` or `design.md` is fixed through an amendment (**Amending a Completed Phase**, in the requirements skill), never by editing it silently. Unattended (`AIDLC_UNATTENDED=1`): record the list in `code-complete.md` and carry on.
|
|
49
49
|
4. **Execute the task breakdown.** When the instance has a `tasks.md` (produced in Design for full/quick-feature scope), read it and execute tasks in order: complete a task, then mark its checkbox `[x]` as part of the same work unit — never batch checkbox updates for later. A task that should not be done is deferred in place (`- [>] T<n>: <title> (deferred YYYY-MM-DD: <reason>)`) with a dated reason, never skipped silently or deleted; the implementation→testing gate blocks on open tasks. For bugfix scope, create the optional `tasks.md` at implementation start when the fix spans more than one commit-sized unit. For Micro scope, reference the task description and acceptance criteria directly — no task file.
|
|
50
50
|
|
|
51
|
-
**One agent per task.** Where the platform's entry for this skill says sub-agents are available and the instance has a task-bearing `tasks.md`, offer it before the first task — or
|
|
51
|
+
**One agent per task.** Where the platform's entry for this skill says sub-agents are available and the instance has a task-bearing `tasks.md`, offer it before the first task — or take the mode `task_agents`, the prompt, the roadmap item or a recorded answer already names — exactly as **The task-agents rule** (`.aidlc/resources/rules/task-agents.md`) says. Chosen, it replaces the task-by-task work above: each task goes to a fresh agent, a second agent reviews it, and the box is ticked only after that review passes. Not offered, or not chosen, run every task in this session as before.
|
|
52
52
|
5. **Write code.** Follow the design interfaces. Match existing code style (naming, formatting, error handling patterns). Code that would build other than what was agreed is asked before it is written, as **The departure rule** (`.aidlc/resources/rules/departures.md`) says.
|
|
53
53
|
6. **Handle sensitive operations.** Before executing any of the following, describe the action and wait for explicit user confirmation (unattended, `AIDLC_UNATTENDED=1`: each is a hard stop except reverting this session's own changes, per `.aidlc/resources/rules/unattended.md`):
|
|
54
54
|
- File deletions or destructive operations
|
package/skills/83-add-skill.md
CHANGED
|
@@ -36,7 +36,7 @@ building something — say so plainly and offer the alternative:
|
|
|
36
36
|
> {{glossary:instance}}
|
|
37
37
|
|
|
38
38
|
> "This sounds like a change to the system rather than a repeatable operation of it: <reason>. That
|
|
39
|
-
> usually belongs in the lifecycle. I can capture it as
|
|
39
|
+
> usually belongs in the lifecycle. I can capture it as a roadmap idea (`aidlc-roadmap`) or start an instance
|
|
40
40
|
> instead. Or if you would rather have the skill anyway, say so and I will generate it."
|
|
41
41
|
|
|
42
42
|
**If the user disagrees, generate the skill.** A false positive must never be a dead end — the user knows
|
package/skills/84-autopilot.md
CHANGED
|
@@ -35,7 +35,7 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
|
|
|
35
35
|
|
|
36
36
|
5. **Report**, in six short lines: what it is doing (how many items), the `stops:` line `run` printed verbatim, the log file, `aidlc autopilot status --watch` to watch (cards per item, live, until the run ends; `v` switches to a table or lanes, `q` leaves), `aidlc autopilot pause` before the machine sleeps (`aidlc autopilot resume` after), and `/aidlc-autopilot-stop` (or `aidlc autopilot stop`) to stop. When the stops line says none are set, say plainly that every item will be merged and released with no review, and name `aidlc autopilot setup` as what changes that.
|
|
37
37
|
|
|
38
|
-
6. **Where it stops for a person.**
|
|
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.
|
|
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
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.
|
|
@@ -29,8 +29,8 @@ Run the retro **before** any completion cleanup (worktree removal, claim release
|
|
|
29
29
|
|
|
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
|
-
3. **
|
|
33
|
-
4. **Write `retrospective.md`** in the instance state dir: the answers; 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.
|
|
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
|
+
4. **Write `retrospective.md`** in the instance state dir: the answers, as the user corrected the drafts; 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
34
|
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
35
|
6. **Cap the follow-ups — 0 to 2 queued roadmap items.** Rank what the work turned up and queue at most the top two into `.aidlc/roadmap/inbox/`, each with its six-line executive summary (see **aidlc-roadmap**). **Zero is a valid outcome**, and often the right one. This is the same cap, in the same shape, as the 0–3 on lessons, and it exists because the lessons cap alone was half a brake: the framework capped what an instance *learned* and capped nothing about what it *queued*, so closing an instance reliably grew the backlog. One measured project emitted five to nine items per close; triage kept three of eighteen.
|
|
36
36
|
7. **Record the rest as observed, not queued.** Everything past the cap goes into `retrospective.md` under `## Observed, not queued`, one line each. **The cap is on queued items, not on observations** — a retro that noticed nine things writes nine and queues two. Findable, attributable, and costing nobody a triage decision. If one of them matters later, it is already written down; promote it then, with the same summary rule.
|
|
@@ -90,5 +90,5 @@ Run only in the **primary checkout** (not a linked worktree — check `git rev-p
|
|
|
90
90
|
|
|
91
91
|
- The retro never blocks completion: it is non-blocking, declinable, and its absence is never an error.
|
|
92
92
|
- The follow-up cap is never a reason to *not notice* something. Merge first — if an open roadmap item already owns the area, append a dated `## Received from <instance>` section to it rather than spending one of the two slots on a file that duplicates it.
|
|
93
|
-
- Never write lessons without the step-
|
|
93
|
+
- Never write lessons without the step-8 confirmation. Never record credentials or secrets.
|
|
94
94
|
- Lessons are historical observations, not directives — phrase them as what was learned, not as instructions to obey.
|