@rasensio/aidlc-content 2.5.2 → 2.7.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/skills-and-platforms.md +2 -1
- package/package.json +1 -1
- package/resources/rules/departures.md +25 -0
- package/resources/rules/question-protocol.md +8 -6
- package/resources/rules/task-agents.md +5 -7
- package/resources/rules/unattended.md +7 -5
- package/skills/00-overview.md +1 -1
- package/skills/05-constitution.md +1 -1
- package/skills/20-requirements.md +2 -2
- package/skills/30-design.md +2 -2
- package/skills/40-implementation.md +2 -2
- 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.
|
|
@@ -209,7 +209,8 @@ takes it away again.
|
|
|
209
209
|
agent follows `.aidlc/resources/rules/unattended.md` instead: each place a skill would ask, wait or
|
|
210
210
|
confirm has one written outcome — take the named default and log it to the instance's
|
|
211
211
|
`unattended-stops.md`, or hard-stop (constitution, deleting data the session did not create,
|
|
212
|
-
credentials and permissions, scope beyond the roadmap item
|
|
212
|
+
credentials and permissions, scope beyond the roadmap item, building other than what was agreed,
|
|
213
|
+
naming which instance caused a bug), which parks the item and ends the session.
|
|
213
214
|
A situation no stop covers is decided and logged when the choice lies inside the item's "What success
|
|
214
215
|
looks like", as an `interpretation`, a `deviation` or an `open-question`; an open question keeps
|
|
215
216
|
autopilot from merging the pull request until a person has answered, and `aidlc autopilot review`
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# The departure rule
|
|
2
|
+
|
|
3
|
+
What was agreed is what gets built. Changing it is the owner's call, never the agent's.
|
|
4
|
+
|
|
5
|
+
## What a departure is
|
|
6
|
+
|
|
7
|
+
A change that narrows, widens or replaces what one of three sources says:
|
|
8
|
+
|
|
9
|
+
- an acceptance criterion or a scope boundary in `requirements.md`;
|
|
10
|
+
- the roadmap item the instance came from (`roadmap-item.md`);
|
|
11
|
+
- a person's recorded answer in a question file — an `[Answer]:` not marked `(unattended default)`.
|
|
12
|
+
|
|
13
|
+
A choice those sources leave open is not a departure: internal names, file layout, the order of work, how something is tested. Decide it and record it as usual; do not ask.
|
|
14
|
+
|
|
15
|
+
Example: the user picked the Cockpit layout, and building the one-column Stream instead, because Cockpit is harder, is a departure. Calling the module `cockpit.ts` or `dashboard.ts` is not.
|
|
16
|
+
|
|
17
|
+
## What to do
|
|
18
|
+
|
|
19
|
+
Stop before the change is written — in design, before it reaches `design.md`; in implementation, before the code. Ask through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) in that phase's question file. Quote the source and what it says, and make keeping what was agreed one of the options.
|
|
20
|
+
|
|
21
|
+
A change the person accepts that alters a completed `requirements.md` goes through an amendment (**Amending a Completed Phase**, in the requirements skill), never a silent edit.
|
|
22
|
+
|
|
23
|
+
## Unattended
|
|
24
|
+
|
|
25
|
+
With `AIDLC_UNATTENDED=1`, build what was agreed, even when another option looks better. A run that cannot is the `departs-from-agreed` hard stop in `.aidlc/resources/rules/unattended.md`, never a logged `deviation`.
|
|
@@ -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
|
```
|
|
@@ -14,7 +14,7 @@ A situation no stop below covers is decided and logged when its choice lies insi
|
|
|
14
14
|
|
|
15
15
|
## The log
|
|
16
16
|
|
|
17
|
-
Append one entry per default, decision or hard stop to `.aidlc/state/<instance>/unattended-stops.md`: a `## <n>. <title> — <slug>` heading, then **Source:** (skill and section, or rule), **Instruction:** (the exact text), **Decided:** (the default, the choice, or "hard stop"), **Type:** (`default` for a listed stop or a hard stop; for a decision, `interpretation` — how an unclear requirement was read, `deviation` —
|
|
17
|
+
Append one entry per default, decision or hard stop to `.aidlc/state/<instance>/unattended-stops.md`: a `## <n>. <title> — <slug>` heading, then **Source:** (skill and section, or rule), **Instruction:** (the exact text), **Decided:** (the default, the choice, or "hard stop"), **Type:** (`default` for a listed stop or a hard stop; for a decision, `interpretation` — how an unclear requirement was read, `deviation` — a design detail not followed that changes no scope and no chosen option, never a departure, or `open-question` — needs a person), **Why:** (why it is safe, or which hard-stop class). A Question Protocol answer also carries `(unattended default)` in its `[Answer]:` — how a reviewer finds every choice nobody made. An `open-question` builds the option easiest to undo, says how to switch, and still reaches a pull request, which autopilot does not merge until a person has answered.
|
|
18
18
|
|
|
19
19
|
## Waiting for a command
|
|
20
20
|
|
|
@@ -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,16 +65,18 @@ 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`.
|
|
80
80
|
- `release-boundary` — **release boundary**: completing testing.
|
|
81
|
+
- `departs-from-agreed` — **hard stop**: design or implementation cannot keep to what was agreed (`.aidlc/resources/rules/departures.md`); keeping to it is no stop.
|
|
82
|
+
- `caused-by` — **hard stop**: the bugfix `caused_by` question; only a person names which instance caused a bug.
|
package/skills/00-overview.md
CHANGED
|
@@ -92,7 +92,7 @@ On each lifecycle event — `on-instance-start`, `on-phase-enter`, `on-phase-exi
|
|
|
92
92
|
|
|
93
93
|
## Question Protocol
|
|
94
94
|
|
|
95
|
-
When to ask the user
|
|
95
|
+
When and how to ask the user: `.aidlc/resources/rules/question-protocol.md`. With nobody there: `.aidlc/resources/rules/unattended.md`. Before departing from what was agreed: `.aidlc/resources/rules/departures.md`.
|
|
96
96
|
|
|
97
97
|
## Ending a Phase or a Review
|
|
98
98
|
|
|
@@ -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
|
|
|
@@ -75,14 +75,14 @@ When the instance uses the `bugfix` template, this phase produces `reproduction.
|
|
|
75
75
|
- `git blame` the defective lines and match commits to instance branches (`fix|feat|chore/<YYYYMMDD>-<name>`)
|
|
76
76
|
- Query the knowledge graph for the module's history
|
|
77
77
|
- Check instance state dirs and the registry for names
|
|
78
|
-
Present the candidates *as guesses* with the evidence. The user confirms, edits, or declines — `caused_by` is **never written without explicit user confirmation**, and declining leaves the field absent (absent = unknown, never an error).
|
|
78
|
+
Present the candidates *as guesses* with the evidence. The user confirms, edits, or declines — `caused_by` is **never written without explicit user confirmation**, and declining leaves the field absent (absent = unknown, never an error). Unattended (`AIDLC_UNATTENDED=1`): a hard stop, per `.aidlc/resources/rules/unattended.md`.
|
|
79
79
|
5. **Write the confirmed linkage** to `instance.yaml` as a list: `caused_by: [<instance>, ...]` (single cause = one-element list). Validate every name against existing state dirs or registry entries — an unknown name needs re-confirmation; reject the bugfix's own name (no self-reference).
|
|
80
80
|
|
|
81
81
|
## Exit Criteria
|
|
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
|
@@ -50,7 +50,7 @@ transcript. See **The context rule** (`.aidlc/resources/rules/context.md`).
|
|
|
50
50
|
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
51
|
5. **Specify interfaces.** For each component boundary, define the contract (function signatures, API shapes, data types).
|
|
52
52
|
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>"`.
|
|
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
54
|
8. **Address non-functional concerns.** Map performance, security, and accessibility requirements to design choices.
|
|
55
55
|
9. **Identify risks.** Note technical risks and mitigation strategies.
|
|
56
56
|
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 +74,7 @@ transcript. See **The context rule** (`.aidlc/resources/rules/context.md`).
|
|
|
74
74
|
- Every knowledge-graph symbol the design builds on was checked against the source
|
|
75
75
|
- The design addresses all acceptance criteria from `requirements.md`
|
|
76
76
|
- 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
|
|
77
|
+
- 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
78
|
|
|
79
79
|
## Guidance
|
|
80
80
|
|
|
@@ -48,8 +48,8 @@ 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
|
|
52
|
-
5. **Write code.** Follow the design interfaces. Match existing code style (naming, formatting, error handling patterns).
|
|
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
|
+
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
|
|
55
55
|
- Infrastructure changes (provisioning, configuration)
|
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.
|