@rasensio/aidlc-content 1.96.0 → 1.97.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 +3 -3
- package/docs/lifecycle.md +4 -2
- package/docs/reviews-and-guidance.md +2 -1
- package/docs/skills-and-platforms.md +3 -2
- package/howto/add-to-existing-project.md +3 -0
- package/howto/change-a-finished-requirement.md +14 -5
- package/howto/keep-aidlc-up-to-date.md +6 -5
- package/howto/let-autopilot-work-the-backlog.md +81 -0
- package/howto/see-what-work-cost.md +5 -3
- package/howto/send-roadmap-to-github.md +34 -21
- package/howto/undo-a-task.md +49 -0
- package/package.json +1 -1
- package/tutorials/deep-dive-gates-that-say-no.md +18 -10
- package/tutorials/deep-dive-how-much-process.md +1 -1
- package/tutorials/deep-dive-ideas-you-keep.md +48 -6
- package/tutorials/deep-dive-making-it-yours.md +66 -7
- package/tutorials/deep-dive-memory.md +1 -1
- package/tutorials/deep-dive-two-people.md +11 -3
- package/tutorials/deep-dive-what-it-cost.md +9 -8
- package/tutorials/deep-dive-why-files.md +1 -1
- package/tutorials/getting-started.md +10 -2
|
@@ -114,17 +114,17 @@ pack is shown as "also asked for as SOC 1, SSAE 16" for this reason.
|
|
|
114
114
|
|
|
115
115
|
```
|
|
116
116
|
aidlc doctor
|
|
117
|
-
aidlc doctor --
|
|
117
|
+
aidlc doctor --dry-run
|
|
118
118
|
aidlc compliance list
|
|
119
119
|
aidlc compliance check
|
|
120
120
|
aidlc compliance report
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
`doctor`
|
|
123
|
+
Bare `doctor` applies the safe migrations and asks before the rest. `--dry-run` previews them, and `--yes` confirms the rest without asking. Run it after anything structural — a new top-level directory, a
|
|
124
124
|
worktree removed, an instance abandoned.
|
|
125
125
|
|
|
126
126
|
Some checks report and repair nothing, on purpose. A `report`-tier migration states a condition whose
|
|
127
|
-
only remedy is a decision, and it never touches `doctor`'s exit code, so `--
|
|
127
|
+
only remedy is a decision, and it never touches `doctor`'s exit code, so `--yes` cannot
|
|
128
128
|
make it write. Four conditions qualify today: an out-of-date compliance pack, a configured roadmap
|
|
129
129
|
projection with no `gh` on `PATH`, `knowledge-stale-sources`, and `roadmap-item-summary`.
|
|
130
130
|
|
package/docs/lifecycle.md
CHANGED
|
@@ -268,6 +268,8 @@ during implementation and never on `main`.
|
|
|
268
268
|
`git log -z` with NUL between fields because NUL is the one byte a commit message cannot carry; git
|
|
269
269
|
keeps every other control character, and a body carrying the first separators chosen forged a
|
|
270
270
|
commit from `main` into the plan.
|
|
271
|
-
- `packages/cli/src/
|
|
272
|
-
|
|
271
|
+
- `packages/cli/src/console` — the console that bare `aidlc` and `aidlc menu` open. The operator
|
|
272
|
+
dashboard is in `console/operator/`.
|
|
273
|
+
- `packages/cli/src/menu` — the roster of curated commands and the dispatch helpers the console uses. It
|
|
274
|
+
reads no lifecycle state by design, because "what should I do next?" belongs to the skill.
|
|
273
275
|
- `packages/content/templates` — the five templates, as data.
|
|
@@ -55,7 +55,8 @@ item at a time.
|
|
|
55
55
|
|
|
56
56
|
```
|
|
57
57
|
aidlc review my-thing requirements.md
|
|
58
|
-
aidlc constitution
|
|
58
|
+
aidlc constitution import path/to/vision.md
|
|
59
|
+
aidlc constitution check
|
|
59
60
|
```
|
|
60
61
|
|
|
61
62
|
`review` scaffolds the findings file with a placeholder; an agent then performs the actual review and
|
|
@@ -209,8 +209,9 @@ credentials and permissions, scope beyond the roadmap item), which parks the ite
|
|
|
209
209
|
Completing testing is the normal end: the agent writes the release plan and stops, and whatever runs
|
|
210
210
|
it owns the push, merge and release. The list of stops came from two dry runs on 2026-10-02 that
|
|
211
211
|
logged the same thirteen on two machines. The mode is a rule the agent reads, not a switch the CLI
|
|
212
|
-
reads
|
|
213
|
-
|
|
212
|
+
reads. Only three commands behave differently when the variable is set: `autopilot approve`,
|
|
213
|
+
`transition --override` and `amend --confirm` refuse, because only a person may run them. A branch in
|
|
214
|
+
any other command would be a cost every future change pays.
|
|
214
215
|
|
|
215
216
|
## Where the code lives
|
|
216
217
|
|
|
@@ -34,6 +34,9 @@ first description of your code for your AI assistant to read. None of your code
|
|
|
34
34
|
The other names are `codex`, `copilot`, `cursor`, `kiro` and `windsurf`. To see what
|
|
35
35
|
`init` would write before it writes anything, add `--dry-run`.
|
|
36
36
|
|
|
37
|
+
`init` also installs the cost-capture hooks, the session-start hook and the shipped
|
|
38
|
+
actions. Add `--no-cost-hooks` or `--no-lifecycle-hooks` to skip the hooks.
|
|
39
|
+
|
|
37
40
|
3. Read the two files `init` wrote in `.aidlc/context/`: `architecture.md` and
|
|
38
41
|
`style-guide.md`. They describe your code, and your assistant reads them before every
|
|
39
42
|
phase, so fix anything they get wrong now. A mistake here repeats in every piece of work.
|
|
@@ -33,7 +33,13 @@ every gate passing while the requirements and the code disagree.
|
|
|
33
33
|
|
|
34
34
|
List each criterion by its full name. `AC-4..AC-6` is not read as a range.
|
|
35
35
|
|
|
36
|
-
2.
|
|
36
|
+
2. Claim the instance. `amend` refuses to write without a live claim:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
aidlc claim <instance>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
3. See what still depends on the criteria you are retiring. This writes nothing:
|
|
37
43
|
|
|
38
44
|
```bash
|
|
39
45
|
aidlc amend <instance> --impact
|
|
@@ -42,19 +48,22 @@ every gate passing while the requirements and the code disagree.
|
|
|
42
48
|
It prints a line starting `Reopens:` that names the earliest phase the change must
|
|
43
49
|
reopen, or `none`. If your `Reopens:` is later than that, move it earlier.
|
|
44
50
|
|
|
45
|
-
|
|
51
|
+
4. Apply the amendment:
|
|
46
52
|
|
|
47
53
|
```bash
|
|
48
54
|
aidlc amend <instance>
|
|
49
55
|
```
|
|
50
56
|
|
|
51
57
|
If the work is already in testing or later, add `--confirm`. Reopening that far is
|
|
52
|
-
costly, and the flag makes you say so.
|
|
58
|
+
costly, and the flag makes you say so. If the amendment changes nothing that needs
|
|
59
|
+
reopening, it prints `Nothing to reopen` and records the amendment as applied. That is a
|
|
60
|
+
good result, not an error.
|
|
53
61
|
|
|
54
|
-
|
|
62
|
+
5. Ask your assistant to continue. It resumes in the reopened phase.
|
|
55
63
|
|
|
56
64
|
The full rules for amendments are on the {{ref:phase/requirements}} phase page.
|
|
57
65
|
|
|
58
66
|
## Check it worked
|
|
59
67
|
|
|
60
|
-
Run `aidlc status`. The instance's phase should now be the one you named in `Reopens:`.
|
|
68
|
+
Run `aidlc status`. The instance's phase should now be the one you named in `Reopens:`. If
|
|
69
|
+
`amend` said `Nothing to reopen`, the phase should be unchanged.
|
|
@@ -7,8 +7,8 @@ slug: keep-aidlc-up-to-date
|
|
|
7
7
|
|
|
8
8
|
## What you'll do
|
|
9
9
|
|
|
10
|
-
Update the CLI and refresh the AIDLC files in your project with one command
|
|
11
|
-
`doctor`
|
|
10
|
+
Update the CLI and refresh the AIDLC files in your project with one command. `update`
|
|
11
|
+
already runs `doctor`'s safe migrations, so a second `doctor` run only mops up what is left. Your own context documents in
|
|
12
12
|
`.aidlc/context/` are not overwritten.
|
|
13
13
|
|
|
14
14
|
## Steps
|
|
@@ -27,10 +27,11 @@ Update the CLI and refresh the AIDLC files in your project with one command, the
|
|
|
27
27
|
|
|
28
28
|
It updates the CLI if a newer version exists, then refreshes the skills and instruction
|
|
29
29
|
files for each tool you set up. Text you wrote outside the AIDLC markers in files like
|
|
30
|
-
`CLAUDE.md` is kept.
|
|
30
|
+
`CLAUDE.md` is kept. Your context documents are left alone. To regenerate them from the
|
|
31
|
+
current code, run `aidlc update --rediscover` instead.
|
|
31
32
|
|
|
32
|
-
3.
|
|
33
|
-
tracks:
|
|
33
|
+
3. Check what is left. `doctor` applies safe fixes on its own and asks before it changes what
|
|
34
|
+
git tracks:
|
|
34
35
|
|
|
35
36
|
```bash
|
|
36
37
|
aidlc doctor
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Let autopilot work your backlog
|
|
3
|
+
description: Set up autopilot once, start a run, and stay in charge of reviews, pausing and stopping.
|
|
4
|
+
order: 70
|
|
5
|
+
slug: let-autopilot-work-the-backlog
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## What you'll do
|
|
9
|
+
|
|
10
|
+
Set up autopilot, then start a run over the ready items in your roadmap backlog. Each item
|
|
11
|
+
builds in its own worktree. Autopilot stops where you told it to, so you review and approve
|
|
12
|
+
before anything ships. You can pause or stop the run at any time.
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
1. Set autopilot up once on this machine. It asks which agent to use, how many items build at
|
|
17
|
+
once, a cost cap, where to pause for your review and where to stop:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
aidlc autopilot setup
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
To answer with flags instead, use `--agent`, `--parallel`, `--cost-cap`, `--pause-after`,
|
|
24
|
+
`--stop-at` and `--release`. `aidlc init --autopilot` runs the same setup at the end of
|
|
25
|
+
`init`.
|
|
26
|
+
|
|
27
|
+
2. See what autopilot would pick first. This writes nothing:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
aidlc roadmap next --autopilot
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
An item marked `run: attended` in its roadmap file is never picked. Use that for work you
|
|
34
|
+
want to do yourself.
|
|
35
|
+
|
|
36
|
+
3. Start a run. It starts in the background and returns at once:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
aidlc autopilot run --items 3
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Use `--all` instead of `--items` to keep going until nothing is ready. To change where
|
|
43
|
+
this run stops, add `--stop-at pr`, `--stop-at merge` or `--stop-at release`. To change the
|
|
44
|
+
phases it pauses after, add `--pause-after requirements,design`.
|
|
45
|
+
|
|
46
|
+
4. Watch it. Add `--watch` to keep the view live; `q` leaves and the run keeps going:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
aidlc autopilot status --watch
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
5. When an item waits for your review, read its artifact in the item's worktree. Then approve
|
|
53
|
+
it. Only a person can run this command; an agent is refused:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
aidlc autopilot approve <instance>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
6. To freeze the run, for example before you close the laptop, pause it. Resume it later:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
aidlc autopilot pause
|
|
63
|
+
aidlc autopilot resume
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
7. To end the run, stop it. Agents already running finish their work first:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
aidlc autopilot stop
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
8. If you finished or abandoned an item by hand, tell autopilot to stop tracking it:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
aidlc autopilot forget <instance>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Check it worked
|
|
79
|
+
|
|
80
|
+
Run `aidlc autopilot status`. You should see the run and each item's step. When no run is
|
|
81
|
+
active, it prints `run: none active`.
|
|
@@ -25,7 +25,9 @@ anywhere.
|
|
|
25
25
|
aidlc cost hooks install --platform claude-code
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
`--platform` takes `claude-code` or `kiro`. Codex has no hook: run `aidlc cost sync`
|
|
29
|
+
to read its session records after the fact. Cursor, Windsurf and Copilot have no cost
|
|
30
|
+
capture, so they show no data.
|
|
29
31
|
|
|
30
32
|
2. Read the cost of one piece of work:
|
|
31
33
|
|
|
@@ -48,5 +50,5 @@ anywhere.
|
|
|
48
50
|
## Check it worked
|
|
49
51
|
|
|
50
52
|
Run `aidlc cost <instance>` on a piece of work you have spent time on. You should see a
|
|
51
|
-
dollar amount on its `total:` line. `no data` means capture
|
|
52
|
-
|
|
53
|
+
dollar amount on its `total:` line. `no data` means capture never ran. Run `aidlc doctor`, then
|
|
54
|
+
`aidlc cost hooks status`, and turn the hook on as in step 1. The next session is counted.
|
|
@@ -10,7 +10,7 @@ slug: send-roadmap-to-github
|
|
|
10
10
|
Copy your roadmap items to GitHub Issues with one command. Items in `backlog/`,
|
|
11
11
|
`in-progress/` and `done/` become issues; `inbox/` and `hold/` stay private. The copy is one
|
|
12
12
|
way: the files in `.aidlc/roadmap/` stay the source, and GitHub follows them. Moving cards
|
|
13
|
-
on a Project board is an optional
|
|
13
|
+
on a Project board is an optional extra, and it must be set up first.
|
|
14
14
|
|
|
15
15
|
## Steps
|
|
16
16
|
|
|
@@ -20,39 +20,52 @@ on a Project board is an optional second part.
|
|
|
20
20
|
gh auth login
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
2.
|
|
23
|
+
2. Turn the sync on. `roadmap sync` does nothing until `.aidlc/config.yaml` has a
|
|
24
|
+
`roadmap.sync` section. `aidlc init` offers to write it, or add it yourself:
|
|
24
25
|
|
|
25
|
-
```
|
|
26
|
-
|
|
26
|
+
```yaml
|
|
27
|
+
roadmap:
|
|
28
|
+
sync:
|
|
29
|
+
provider: github
|
|
30
|
+
statuses: [backlog, in-progress, done]
|
|
27
31
|
```
|
|
28
32
|
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
`statuses` must include `done`. Add `repo: <owner/name>` to target a repository other than
|
|
34
|
+
the one your folder points at.
|
|
31
35
|
|
|
32
|
-
3.
|
|
36
|
+
3. Optional — if you want a Project board, set it up now, before the first sync. A label
|
|
37
|
+
change made before the board is ready is skipped and never replayed. Do these in order:
|
|
33
38
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
39
|
+
- Create the Project on GitHub with a Status column for each state you sync.
|
|
40
|
+
- Save the workflow AIDLC ships, then commit it and push it:
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
```bash
|
|
43
|
+
aidlc roadmap board-workflow > .github/workflows/aidlc-project-status.yml
|
|
44
|
+
```
|
|
40
45
|
|
|
41
|
-
|
|
46
|
+
- In your repository's settings, store a classic token as the secret `AIDLC_PROJECT_TOKEN`,
|
|
47
|
+
with `<your-github-token>` as the value. Give it the `project` and `read:org` scopes
|
|
48
|
+
(add `repo` if the repository is private). Never paste it into a file you commit. Use a
|
|
49
|
+
classic token because a fine-grained one cannot reach a project on a personal account.
|
|
50
|
+
- Set the repository variable `AIDLC_PROJECT_NUMBER` to your project's number — the digits
|
|
51
|
+
in its URL.
|
|
52
|
+
|
|
53
|
+
The top of the workflow file lists the Status columns it expects and how to rename them.
|
|
54
|
+
|
|
55
|
+
4. Preview what would change. This writes nothing:
|
|
42
56
|
|
|
43
57
|
```bash
|
|
44
|
-
aidlc roadmap
|
|
58
|
+
aidlc roadmap sync --dry-run
|
|
45
59
|
```
|
|
46
60
|
|
|
47
|
-
|
|
61
|
+
5. Apply it:
|
|
48
62
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- Set the repository variable `AIDLC_PROJECT_NUMBER` to your project's number — the
|
|
53
|
-
digits in its URL.
|
|
63
|
+
```bash
|
|
64
|
+
aidlc roadmap sync
|
|
65
|
+
```
|
|
54
66
|
|
|
55
|
-
|
|
67
|
+
It shows the plan and asks before it writes. Run it again whenever items move — it
|
|
68
|
+
updates labels, and closes an issue when its item reaches `done/`.
|
|
56
69
|
|
|
57
70
|
## Check it worked
|
|
58
71
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Undo a task
|
|
3
|
+
description: Take one task's commits back out of the branch with a single revert commit, and reopen the task.
|
|
4
|
+
order: 80
|
|
5
|
+
slug: undo-a-task
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## What you'll do
|
|
9
|
+
|
|
10
|
+
Undo the commits of one task, or of the whole implementation phase, while the work is still
|
|
11
|
+
on its branch. AIDLC finds the commits by the `Task: <instance>/T<n>` line each one carries,
|
|
12
|
+
shows you the plan, and adds one commit that undoes them.
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
1. Claim the instance, so AIDLC knows the work is yours. Without a claim, the revert needs
|
|
17
|
+
`--override`:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
aidlc claim <instance>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
2. See the plan first. This changes nothing:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
aidlc revert <instance> --task T3 --dry-run
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
It lists the commits newest first. A commit that also belongs to another task is marked
|
|
30
|
+
as shared, and that task is reset too.
|
|
31
|
+
|
|
32
|
+
3. Run it for real. It shows the plan again and asks before it writes:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
aidlc revert <instance> --task T3
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Without a terminal, add `--yes`. To undo every task commit at once, use
|
|
39
|
+
`--phase implementation` instead of `--task`.
|
|
40
|
+
|
|
41
|
+
4. If the undo clashes with later work, AIDLC stops and leaves your branch as it was. Fix the
|
|
42
|
+
later work, or pick a later task to undo first.
|
|
43
|
+
|
|
44
|
+
`revert` works only during the implementation phase, and never on `main`.
|
|
45
|
+
|
|
46
|
+
## Check it worked
|
|
47
|
+
|
|
48
|
+
Run `git log --oneline -1`. You should see one new revert commit at the top. Open
|
|
49
|
+
`.aidlc/state/<instance>/tasks.md`. The task should show as open again.
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ Step through a real block, from the refusal to the fix:
|
|
|
19
19
|
|
|
20
20
|
{{widget:transcript/blocked-transition}}
|
|
21
21
|
|
|
22
|
-
Notice the shape of the refusal. It doesn't say "requirements not met" — it names the file, names the rule,
|
|
22
|
+
Notice the shape of the refusal. It doesn't say "requirements not met" — it names the file, names the rule, names what's absent, and ends with numbered next steps. That's the whole design goal of a [gate](/docs/glossary/#gate): a check that fails should tell you what to do next, not that you have failed.
|
|
23
23
|
|
|
24
24
|
Notice also that the second attempt was *also* refused. Writing the review wasn't enough. A review that found a serious hole and was then ignored is not a review; it's a file.
|
|
25
25
|
|
|
@@ -34,9 +34,13 @@ The review step doesn't ask "does this look reasonable". It works through a fixe
|
|
|
34
34
|
- **Hidden assumptions** — the precondition nobody wrote down.
|
|
35
35
|
- **Security gaps**, **scalability concerns**, **scope creep**.
|
|
36
36
|
|
|
37
|
-
Every finding gets a severity, and only `critical` findings block. That threshold is deliberate: a check that blocks on everything gets
|
|
37
|
+
Every finding gets a severity, and only `critical` findings block. That threshold is deliberate: a check that blocks on everything gets waved through as a matter of routine, and a check that's waved through is not a check.
|
|
38
38
|
|
|
39
|
-
The {{ref:skill/aidlc-review}} skill also says something inconvenient: whoever wrote the document should not be the one reviewing it. Self-review finds the problems you already knew about and misses the ones you can't see, which are the expensive ones.
|
|
39
|
+
The {{ref:skill/aidlc-review}} skill also says something inconvenient: whoever wrote the document should not be the one reviewing it. Self-review finds the problems you already knew about and misses the ones you can't see, which are the expensive ones.
|
|
40
|
+
|
|
41
|
+
So the review runs in a separate agent, `aidlc-reviewer`, that starts fresh and cannot edit files. On Claude Code that is `.claude/agents/aidlc-reviewer.md`, and a hook allows it only `git diff`, `git log` and the compliance checks. On Codex it is an agent in a read-only sandbox. `aidlc init` installs it on both. Because it cannot write, it hands its findings back and the session that called it writes the file. On other platforms there is no agent file. The review skill spawns a fresh sub-agent and tells it to edit nothing. That is a request, not a lock, so say so at the top of the review and read it knowing that.
|
|
42
|
+
|
|
43
|
+
The same reviewer can check the build. On Claude Code and Codex, the implementation skill offers to hand each task in `tasks.md` to a fresh agent, so task 8 does not inherit tasks 1 to 7. Then the reviewer checks that task against the criteria it cites. Only after that check passes is the task ticked and committed. It is off unless you ask for it, because it roughly doubles the agents.
|
|
40
44
|
|
|
41
45
|
## Step 4: What a gate actually checks
|
|
42
46
|
|
|
@@ -54,17 +58,21 @@ aidlc gate price-alerts testing
|
|
|
54
58
|
|
|
55
59
|
The strictest of them all guards the testing step, and it is worth knowing about before you meet it: it reads the numbered criteria out of `requirements.md` and fails if any of them has no test referring to it. Which means the practical consequence of writing a vague requirement isn't a philosophical debate — it's a red build.
|
|
56
60
|
|
|
57
|
-
## Step 5: When you
|
|
61
|
+
## Step 5: When you disagree with a finding
|
|
58
62
|
|
|
59
|
-
Sometimes the
|
|
63
|
+
Sometimes the review gets it wrong. The finding was a misunderstanding, or the risk is real and you accept it.
|
|
60
64
|
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
Do not look for a way around the gate. Settle the finding, in the file that records it. Open `design.md.review.md` and change the status line of that finding to one of three words, with a reason after it:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
- **Status:** accepted-risk — a price of 0 never reaches the engine; the feed drops it
|
|
63
69
|
```
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
`resolved` means you fixed it. `accepted-risk` means it is real and you are living with it. `rejected` means the reviewer was wrong. Only `open` blocks. The reason sits in the file, in your git history, where the next person can find it.
|
|
72
|
+
|
|
73
|
+
There is one flag that sounds like the way out and isn't: `aidlc transition --override`. It skips the ownership gate, the one that stops you moving work someone else has claimed. It does not touch reviews. Only a person may run it; an agent is refused.
|
|
66
74
|
|
|
67
|
-
|
|
75
|
+
Settle a finding when you have decided it is wrong or acceptable. Not when you'd rather not do the work.
|
|
68
76
|
|
|
69
77
|
## Step 6: Checkpoint
|
|
70
78
|
|
|
@@ -72,6 +80,6 @@ Use it when you've decided the check is wrong. Not when you'd rather not do the
|
|
|
72
80
|
|
|
73
81
|
## Step 7: What you can do now
|
|
74
82
|
|
|
75
|
-
You can read a blocked transition and know exactly what to do about it, and you can
|
|
83
|
+
You can read a blocked transition and know exactly what to do about it, and you can settle a finding on the record. You know the review runs in an agent that cannot edit your files, and that each build task can get the same treatment.
|
|
76
84
|
|
|
77
85
|
Next: the notes AIDLC keeps about your codebase, and why they mean your assistant stops reading the same files over and over.
|
|
@@ -22,7 +22,7 @@ Step through the same tool making three different amounts of noise:
|
|
|
22
22
|
Each of those named workflows — AIDLC calls them [templates](/docs/glossary/#template) — fixes which steps the work runs through and which documents it owes. There are five:
|
|
23
23
|
|
|
24
24
|
- {{ref:template/micro-task}} — implementation and testing. For changes where the design decision was made years ago.
|
|
25
|
-
- {{ref:template/bugfix}} — reproduce it, fix it, test it, ship it. No design step.
|
|
25
|
+
- {{ref:template/bugfix}} — reproduce it, fix it, test it, ship it. No design step. Its first step owes both a `reproduction.md` and a `requirements.md`.
|
|
26
26
|
- {{ref:template/quick-feature}} — requirements through deployment. For a feature whose shape is already obvious.
|
|
27
27
|
- {{ref:template/full-feature}} — all seven steps, with a hostile review of the requirements and the design.
|
|
28
28
|
- {{ref:template/spike}} — for a question you can't answer without experimenting. Ends in a findings document, not a change.
|
|
@@ -27,7 +27,7 @@ That sounds like a stylistic preference. It isn't. Two records of one fact event
|
|
|
27
27
|
|
|
28
28
|
The five folders are `inbox` (somebody suggested it), `backlog` (we agreed to do it), `in-progress` (work has started), `done` (shipped), and `hold` (not now, or no).
|
|
29
29
|
|
|
30
|
-
`hold` deliberately holds both "parked" and "declined".
|
|
30
|
+
`hold` deliberately holds both "parked" and "declined", so one folder serves both. What tells them apart is the reason on the item's history line: a move into `hold/` carries a reason that starts `parked — ` or `declined — `. Agreed work that is waiting on something goes there as parked, not in `backlog/`, because `backlog/` means "could start now". From a running piece of work, `aidlc roadmap park` does the move and writes the `parked — ` reason for you.
|
|
31
31
|
|
|
32
32
|
## Step 3: The six lines
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ Six, and no more. The purpose is that a decision can be made from the top of the
|
|
|
37
37
|
|
|
38
38
|
Two of the rules attached to it are more interesting than they look.
|
|
39
39
|
|
|
40
|
-
**"None" is a real answer for revenue, and often the right one.** Writing "indirect" for everything makes the field useless — and worse than blank, because it reads as answered. It's also the cheapest available honesty check: an idea that has to write *revenue — none* and *value — it observes the process rather than serving a user* has just declared itself.
|
|
40
|
+
**"None" is a real answer for revenue, and often the right one.** In the frame above, an alert email earns nothing directly, so the line says `None` and says why. Writing "indirect" for everything makes the field useless — and worse than blank, because it reads as answered. It's also the cheapest available honesty check: an idea that has to write *revenue — none* and *value — it observes the process rather than serving a user* has just declared itself.
|
|
41
41
|
|
|
42
42
|
**Write it last.** A summary drafted before the detail is a guess wearing a summary's clothes.
|
|
43
43
|
|
|
@@ -45,11 +45,53 @@ Two of the rules attached to it are more interesting than they look.
|
|
|
45
45
|
|
|
46
46
|
{{widget:completion/change-the-status}}
|
|
47
47
|
|
|
48
|
-
## Step 5:
|
|
48
|
+
## Step 5: Choosing and starting the next one
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Three read-and-rank commands answer "what should we do next?" without anybody having to remember.
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
```bash
|
|
53
|
+
aidlc roadmap next
|
|
54
|
+
aidlc roadmap next --explain
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The first names the backlog item with the lowest rank whose dependencies are done. `--explain` shows the whole ready order and anything it skipped, with the reason. Neither one writes anything. Picking is deterministic; promoting stays your decision.
|
|
58
|
+
|
|
59
|
+
To change the order, give an item a rank:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
aidlc roadmap rank 20260902-csv-export 1 --dry-run
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Run it with `--dry-run` first. It prints the order you would get and writes nothing:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
dry run — nothing written; 20260902-csv-export.md would be ranked 1
|
|
69
|
+
> 1 20260902-csv-export.md — Export watched prices to CSV
|
|
70
|
+
2 20260902-price-alerts.md — Alert me when a price drops
|
|
71
|
+
3 20260902-dark-mode.md — Dark mode for the dashboard
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Then run it again without the flag. Every other rank is renumbered, so ranks stay unique with no gaps. Don't type `priority:` by hand. (Ranking needs the project to declare a `priority` field for its roadmap items.)
|
|
75
|
+
|
|
76
|
+
To see everything at once:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
aidlc roadmap view --no-open
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
That writes one HTML page, a board by status plus a map of which items wait on which. Leave out `--no-open` and it opens in your browser.
|
|
83
|
+
|
|
84
|
+
Promotion is where the list meets everything in the earlier chapters: pick a workflow, pick how far back to start, create the work, and let the idea seed it. It is one command:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
aidlc start full-feature --name price-alerts --roadmap-item 20260902-price-alerts
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The third frame shows it. The command creates the work, sets `promoted_to` on the idea, moves the file to `in-progress/` and copies it into the work as its starting point. If anything fails part way, it removes what it made and leaves the idea where it was. The move is left uncommitted; committing it is yours.
|
|
91
|
+
|
|
92
|
+
Don't do those steps by hand with `git mv`. Two unattended runs of the hand-made version once disagreed: one linked the idea, the other left it in `backlog/` with no link, so the idea would never have reached `done/`. When the work finishes, the idea moves to `done` on its own. The completion event does it, which is the only reason it reliably happens.
|
|
93
|
+
|
|
94
|
+
Autopilot works this same backlog in the background while you do something else. The recipe is [let autopilot work the backlog](/how-to/let-autopilot-work-the-backlog/).
|
|
53
95
|
|
|
54
96
|
## Step 6: The cap, and why it's uncomfortable
|
|
55
97
|
|
|
@@ -63,6 +105,6 @@ The one exception is worth knowing, because this project paid for it: **if a fix
|
|
|
63
105
|
|
|
64
106
|
## Step 7: What you can do now
|
|
65
107
|
|
|
66
|
-
You can capture an idea mid-task in one file with no ceremony, decide on somebody else's idea by reading six lines, and change its status by moving it. And you know why there's no status field to edit.
|
|
108
|
+
You can capture an idea mid-task in one file with no ceremony, decide on somebody else's idea by reading six lines, and change its status by moving it. You can ask what's next, change the order with `aidlc roadmap rank`, look at the whole roadmap with `aidlc roadmap view`, and turn an idea into work with `aidlc start --roadmap-item`. And you know why there's no status field to edit.
|
|
67
109
|
|
|
68
110
|
Next: what actually breaks when two people work in the same folder at the same time. It isn't what you'd expect.
|
|
@@ -25,7 +25,7 @@ Three separate mechanisms in one transcript. Take them one at a time.
|
|
|
25
25
|
|
|
26
26
|
`.aidlc/guidance/` holds files that get read at the **start** of a job. That single detail is the whole mechanism.
|
|
27
27
|
|
|
28
|
-
`lessons.md` is the one fed by finishing work.
|
|
28
|
+
`lessons.md` is the one fed by finishing work. It doesn't exist in a fresh setup — the first frame shows only `lessons-digest.md`, the short distillation that ships with it. When your first piece of work completes, the [retrospective](/docs/glossary/#retrospective) captures what was learned and creates `lessons.md` with it. Next job, before anything else happens, those lines get read.
|
|
29
29
|
|
|
30
30
|
Contrast with the failure mode: writing the same lesson into the completed job's own write-up. That file is read by nobody, ever again. The distinction between *guidance* (read at the start of every job) and *record* (read when investigating that particular job) is the entire difference between a lesson that carries forward and one that doesn't.
|
|
31
31
|
|
|
@@ -43,6 +43,8 @@ Adding a feature so posts can belong to a series changes what the system can do
|
|
|
43
43
|
aidlc add skill publish-release-notes --description "Publish notes for a tagged release"
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
The skill is written to `.aidlc/operational-skills/publish-release-notes.md`, with a small file for your assistant beside it. It always asks before writing, because a skill is instructions an agent will run later.
|
|
47
|
+
|
|
46
48
|
The important part is what gets scaffolded with it: **the verification lives inside the skill.** Facts checked, links resolved, build run — as steps of the skill itself, not as a review wrapped around each invocation. A skill carrying its own checks produces checked output every time it runs. A skill relying on somebody remembering to review it produces checked output sometimes.
|
|
47
49
|
|
|
48
50
|
There's an escape hatch worth knowing. Sometimes running a chore reveals a missing capability — you go to publish and find there's no way to mark something a draft. At that point the chore stops being the work, and the missing capability becomes an ordinary piece of work. What you must not do is quietly grow the skill into building the feature.
|
|
@@ -51,17 +53,72 @@ There's an escape hatch worth knowing. Sometimes running a chore reveals a missi
|
|
|
51
53
|
|
|
52
54
|
## Step 5: Doctor — repairing the repository
|
|
53
55
|
|
|
54
|
-
Repositories accumulate rubbish:
|
|
56
|
+
Repositories accumulate rubbish: ignore rules that no longer cover what they should, layouts left over from an older version, generated files that got committed by accident.
|
|
55
57
|
|
|
56
58
|
```bash
|
|
57
59
|
aidlc doctor --dry-run
|
|
58
60
|
```
|
|
59
61
|
|
|
60
|
-
Two tiers, and the split is the interesting bit. **Safe** repairs apply on their own — adding a missing ignore rule harms nobody.
|
|
62
|
+
Two tiers, and the split is the interesting bit. **Safe** repairs apply on their own — adding a missing ignore rule harms nobody. The rest describe themselves and wait for your yes, because anything that could surprise you must be your decision. `--dry-run` shows both without doing either, and `--yes` confirms them all. In the frame, doctor would add five missing `.gitattributes` entries. The lines that start `skipped` are checks that found nothing to do here.
|
|
61
63
|
|
|
62
64
|
The same pass runs during `aidlc update`, with one difference that's a deliberate design choice: `doctor` exits non-zero when confirmable work is pending, and `update` never fails for it. A command you run to check health should be able to fail; a command you run to get the latest version should not fail because of unrelated tidying.
|
|
63
65
|
|
|
64
|
-
## Step 6:
|
|
66
|
+
## Step 6: Hooks, and a short statement of what the repo is for
|
|
67
|
+
|
|
68
|
+
Two more things you set up once. Both are opt-in or one command.
|
|
69
|
+
|
|
70
|
+
**A session that knows where it is.** When an assistant session starts, is cleared or is compacted, it forgets which piece of work it had a [claim](/docs/glossary/#claim) on. The session-start hook tells it which [instance](/docs/glossary/#instance) is claimed. `aidlc init` installs it by default for Claude Code. In an older project, add it yourself:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
aidlc hook install
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
From then on a new session is told the claimed instance (with its template and [scope](/docs/glossary/#scope)), its phase and the next step, in three lines at most. If you run the hook by hand in a project with a claim, it prints this:
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
AIDLC: instance price-alerts is claimed in this checkout (full-feature template, full scope).
|
|
80
|
+
Phase: ideation. Phase instructions: .aidlc/skills/aidlc-ideation.md
|
|
81
|
+
Next step: produce idea.md. Resume with the aidlc-continue skill.
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**A guard you choose.** Planning phases are for documents. The phase guard asks before a project file outside `.aidlc/` is edited during ideation, requirements or design:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
aidlc hook install --guard
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
It only asks. It never blocks on its own, and it can't see files written through the shell, so it is a guardrail, not a wall. It is for Claude Code. To take it away again:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
aidlc hook remove --guard
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
`aidlc hook remove` on its own removes both hooks.
|
|
97
|
+
|
|
98
|
+
**The constitution** is the other thing every phase reads first. It says what this repo is for and what it must never become. You don't write it from nothing. You start from your product vision document:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
aidlc constitution import docs/vision.md
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
That reads a `.docx`, `.md`, `.markdown` or `.txt` file into a snapshot and lists the statements it found:
|
|
105
|
+
|
|
106
|
+
```text
|
|
107
|
+
Imported docs/vision.md → .aidlc/context/vision-source.md
|
|
108
|
+
extractor: text, statements: 4
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Then the `aidlc-constitution` skill turns those statements into `.aidlc/context/constitution.md`. Every phase reads that file at the start, the way it reads guidance. It is also what makes "no, not for us" a reason someone can read when you triage an idea.
|
|
112
|
+
|
|
113
|
+
Visions change. To see whether yours did:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
aidlc constitution check
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
It reports statements added or removed since the last import, and says whether the constitution cites any that were removed. It is advice only. It never stops a phase.
|
|
120
|
+
|
|
121
|
+
## Step 7: The same setup on six assistants
|
|
65
122
|
|
|
66
123
|
The lifecycle instructions live once, in `.aidlc/skills/`, as plain markdown. Setup packages that same text into whatever native format each assistant expects — Claude Code, Cursor, Kiro, Codex, Windsurf and GitHub Copilot all get files in their own convention, generated from one canonical body.
|
|
67
124
|
|
|
@@ -73,14 +130,16 @@ Which means switching assistants, or having two people on different ones, doesn'
|
|
|
73
130
|
|
|
74
131
|
One caution learned the hard way here: `npx <tool>` will happily prefer a globally installed copy over your local one. If a command reports that nothing changed while you're looking at changed files on disk, that's usually why.
|
|
75
132
|
|
|
76
|
-
## Step
|
|
133
|
+
## Step 8: Checkpoint
|
|
77
134
|
|
|
78
135
|
{{widget:checkpoint/where-lessons-go}}
|
|
79
136
|
|
|
80
|
-
## Step
|
|
137
|
+
## Step 9: What you can do now
|
|
81
138
|
|
|
82
|
-
You've been through the whole surface. Concretely, you can now: read a piece of work's state off the disk; pick the right amount of process for it; read a blocked check and fix it; ask what the project already knows instead of re-reading code; find out what something cost, including the bugs it caused; keep an idea list that doesn't rot; run alongside somebody else without losing work; and turn a repeated lesson or a repeated chore into something that carries itself forward.
|
|
139
|
+
You've been through the whole surface. Concretely, you can now: read a piece of work's state off the disk; pick the right amount of process for it; read a blocked check and fix it; ask what the project already knows instead of re-reading code; find out what something cost, including the bugs it caused; keep an idea list that doesn't rot; run alongside somebody else without losing work; and turn a repeated lesson or a repeated chore into something that carries itself forward; and tell a new session where it is, ask before code changes during planning, and keep a short statement of what the repo is for.
|
|
83
140
|
|
|
84
141
|
The one thing worth carrying out of all of it: **every check you add is paid for by every future job, forever.** This project shipped eleven features in nine days and then spent five days almost entirely on fixes, because most of what it had shipped were features that watch the process rather than serve a user. Guidance somebody reads costs nothing to anyone who doesn't need it. A [gate](/docs/glossary/#gate) costs everybody, every time. Prefer the former, and hold the latter to a much higher bar.
|
|
85
142
|
|
|
143
|
+
When you want to know why something works the way it does, `aidlc explain` is where to ask.
|
|
144
|
+
|
|
86
145
|
Reference for everything mentioned here: [the command reference](/docs/cli/), [the skills](/docs/skills/), [the workflows](/docs/templates/), and [the glossary](/docs/glossary/) for any word that's been used carefully.
|
|
@@ -19,7 +19,7 @@ The obvious fix is to write down what was learned. The reason nobody does it is
|
|
|
19
19
|
|
|
20
20
|
{{widget:transcript/knowledge-round-trip}}
|
|
21
21
|
|
|
22
|
-
Three commands, and they're the whole surface: record something, record a connection, ask a question.
|
|
22
|
+
Three commands, and they're the whole surface: record something, record a connection, ask a question. A connection joins two notes, so both have to exist first. Notes are saved under `.aidlc/knowledge/`, one small file each.
|
|
23
23
|
|
|
24
24
|
Each note carries what it is (`module`, `service`, `decision`, `convention`, a few more), a description in plain words, and where in the codebase it came from. The source path matters more than it looks: a note that names its origin can be checked, and a note that can't be checked eventually becomes a lie.
|
|
25
25
|
|
|
@@ -27,12 +27,20 @@ There's a second casualty that's easier to miss. Two overlapping claims means us
|
|
|
27
27
|
|
|
28
28
|
There *is* a lock. It's the [claim](/docs/glossary/#claim) from the cost chapter, and it lives in a shared location so every folder of the same repository sees the same set.
|
|
29
29
|
|
|
30
|
-
What it does: tells you somebody else is already inside this piece of work, before you start editing its documents. It also expires — sixty minutes by default — because a session that crashes must not lock work forever. A claim past its timeout counts as stale and can be taken over, and if you're in a long session you renew it:
|
|
30
|
+
What it does: tells you somebody else is already inside this piece of work, before you start editing its documents. It also expires — sixty minutes by default — because a session that crashes must not lock work forever. A claim past its timeout counts as stale and can be taken over, and if you're in a long session you renew it before then:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
aidlc claim price-alerts --renew
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
When you are finished, or you are stopping for the day, hand the work back:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
aidlc release price-alerts
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
That frees the claim at once, so the next person doesn't wait out the timeout. The claim file in the first frame shows what is recorded: who holds it (`session`), when it was taken (`claimed_at`), and, once renewed, `renewed_at`.
|
|
43
|
+
|
|
36
44
|
What it does **not** do: stop the git collision. It can't. Nothing about a lock on a piece of work prevents a branch switch in a shared folder.
|
|
37
45
|
|
|
38
46
|
So a claim tells the tool who is working on what. It is not the answer to concurrency, and treating it as one is how people end up surprised.
|
|
@@ -45,7 +53,7 @@ A git worktree gives you a second folder that shares one history. Two branches c
|
|
|
45
53
|
aidlc start bugfix --name login-500 --worktree
|
|
46
54
|
```
|
|
47
55
|
|
|
48
|
-
That creates the folder, creates the branch, and does all further work for that piece of work inside it. Both folders still see the same claims, because claims live in the shared git directory rather than in either checkout — which is exactly the property you want: separate branches, shared knowledge of who's doing what.
|
|
56
|
+
That creates the folder, creates the branch, and does all further work for that piece of work inside it. Note that the worktree is printed as an absolute path, a sibling of your main folder, not inside it. Both folders still see the same claims, because claims live in the shared git directory rather than in either checkout — which is exactly the property you want: separate branches, shared knowledge of who's doing what.
|
|
49
57
|
|
|
50
58
|
One thing to know about worktrees: `.aidlc/roadmap/` is written to the **primary** checkout, not the worktree's copy. Two worktrees each capturing ideas into their own copy would give you two idea lists that both look complete.
|
|
51
59
|
|
|
@@ -65,6 +73,6 @@ That records no branch, and the implementation step stays blocked until one exis
|
|
|
65
73
|
|
|
66
74
|
## Step 7: What you can do now
|
|
67
75
|
|
|
68
|
-
You can start concurrent work without losing any of it, and you know which of the three options to reach for: a worktree when the second piece of work needs code, `--no-code` when it doesn't, and waiting when neither is true. And you know that a lock on the work is not a lock on the folder.
|
|
76
|
+
You can start concurrent work without losing any of it, and you know which of the three options to reach for: a worktree when the second piece of work needs code, `--no-code` when it doesn't, and waiting when neither is true. You can renew a long claim and release it when you're done. And you know that a lock on the work is not a lock on the folder.
|
|
69
77
|
|
|
70
78
|
Next, and last: making it yours — the lessons that come back, the chores that become skills, and the tool that repairs the repository.
|
|
@@ -21,11 +21,12 @@ The [claim](/docs/glossary/#claim) in the first frame is doing more than you'd t
|
|
|
21
21
|
|
|
22
22
|
Which produces the one rule worth remembering from this chapter: **spending during an unclaimed session cannot be attributed to anything.** It isn't lost — it goes into an unattributed pile you can reconcile later with `aidlc cost sync` — but it doesn't appear against the work until you do.
|
|
23
23
|
|
|
24
|
-
## Step 3: Read the
|
|
24
|
+
## Step 3: Read the fidelity
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
The total line of a cost report says how solid the number is. It is a share, not a single word, because one piece of work can have all kinds of record in it:
|
|
27
27
|
|
|
28
|
-
- `metered` — measured from real usage records. Trust it.
|
|
28
|
+
- `metered` — measured from real usage records at the time. Trust it.
|
|
29
|
+
- `reconciled` — rebuilt afterwards from the platform's own session record, by `aidlc cost sync`, for a stretch the live capture missed. Measured, just late.
|
|
29
30
|
- `estimated` — derived from figures the platform reported but didn't itemise. Roughly right.
|
|
30
31
|
- `unknown` — a period of time is recorded with no usage attached to it.
|
|
31
32
|
- `no data` — nothing at all.
|
|
@@ -34,7 +35,7 @@ The reason to expose this rather than smooth it over: averaging a measured numbe
|
|
|
34
35
|
|
|
35
36
|
`unknown` deserves particular attention, because it does not mean zero. It means a stretch of work happened that nobody measured. Reading it as zero makes the cheapest-looking features the least-measured ones.
|
|
36
37
|
|
|
37
|
-
## Step 4: The number that's
|
|
38
|
+
## Step 4: The number that's too low
|
|
38
39
|
|
|
39
40
|
Now the part that matters. Ask for the roll-up:
|
|
40
41
|
|
|
@@ -47,13 +48,13 @@ Two numbers appear against each piece of work:
|
|
|
47
48
|
- **cost** — what that work itself spent.
|
|
48
49
|
- **true cost** — that, plus what the bugs it caused spent.
|
|
49
50
|
|
|
50
|
-
They can differ
|
|
51
|
+
They can differ a lot. A feature can look moderately priced on its own cost and turn out to be one of the most expensive things you built, once you add the fixes it forced. Cost tracking was like that on this project: its own cost understated its true cost by a third or more, and what hid a bad decision for two weeks was that the cheap-looking number was the one on the report.
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
Don't trust a figure quoted in a chapter like this one. Spending changes every day. Run `aidlc metrics` and read the two numbers for your own work.
|
|
53
54
|
|
|
54
55
|
The mechanism is deliberately simple. When you fix a bug, you record which piece of work introduced it. That link is never written without somebody confirming it, because a guessed attribution is worse than none. Then the roll-up follows the links one level deep — a bug caused by a bug caused by a feature is not charged onwards, because at two levels the chains get long and the attribution gets dishonest.
|
|
55
56
|
|
|
56
|
-
That same linkage gives you a change failure rate per workflow: of the pieces of work completed under each template, what proportion caused a fix.
|
|
57
|
+
That same linkage gives you a change failure rate per workflow: of the pieces of work completed under each template, what proportion caused a fix. Run it on a project with some history and you will see it differ by workflow: some templates cause fixes far more often than others, which tells you something useful and slightly uncomfortable about which work actually breaks.
|
|
57
58
|
|
|
58
59
|
## Step 5: What these numbers can't tell you
|
|
59
60
|
|
|
@@ -71,6 +72,6 @@ Three limits, stated plainly, because a metric you over-trust is worse than one
|
|
|
71
72
|
|
|
72
73
|
## Step 7: What you can do now
|
|
73
74
|
|
|
74
|
-
You can find out what a feature cost, tell how solid that figure is, and get the honest version that includes the bugs it caused. And you know that `unknown` on a cost report is a gap in measurement, not a free feature.
|
|
75
|
+
You can find out what a feature cost, tell how solid that figure is (`metered`, `reconciled`, `estimated` or `unknown`), and get the honest version from `aidlc metrics` that includes the bugs it caused. And you know that `unknown` or `no data` on a cost report is a gap in measurement, not a free feature.
|
|
75
76
|
|
|
76
77
|
Next: the idea list — how to stop good suggestions evaporating, and the design decision that stops it rotting.
|
|
@@ -27,7 +27,7 @@ Three things worth noticing.
|
|
|
27
27
|
|
|
28
28
|
**The folder is the memory.** Nothing in there depends on a conversation having happened. `aidlc status` read those files cold.
|
|
29
29
|
|
|
30
|
-
**Each step of the work owes documents.** `phase-ideation.yaml` doesn't contain the thinking — it says which document that step is expected to produce and whether it exists yet. The thinking goes in `idea.md`, a normal markdown file you can read, edit, and argue with in a pull request.
|
|
30
|
+
**Each step of the work owes documents.** `phase-ideation.yaml` doesn't contain the thinking — it says which document that step is expected to produce and whether it exists yet. The thinking goes in `idea.md`, a normal markdown file you can read, edit, and argue with in a pull request. There is no log of moves yet, because nothing has moved. The first step forward creates `transitions.log` and adds one line to it; every later step adds another.
|
|
31
31
|
|
|
32
32
|
**One folder per piece of work.** AIDLC calls that folder an [instance](/docs/glossary/#instance) — a word worth taking care with, because in most of software it means something else entirely. Here it just means one unit of work with its own folder: a feature, a fix, a spike.
|
|
33
33
|
|
|
@@ -17,7 +17,7 @@ npx @rasensio/aidlc init
|
|
|
17
17
|
npx @rasensio/aidlc init --platform claude-code
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Either way, `init` creates a `.aidlc/` directory with the canonical lifecycle skills, plus platform-native activation files (for example `.claude/skills/` for Claude Code or `.cursor/rules/` for Cursor). It also scans your codebase and generates context documents under `.aidlc/context/` so your AI assistant starts with real knowledge of the project.
|
|
20
|
+
Either way, `init` creates a `.aidlc/` directory with the canonical lifecycle skills, plus platform-native activation files (for example `.claude/skills/` for Claude Code or `.cursor/rules/` for Cursor). It also scans your codebase and generates context documents under `.aidlc/context/` so your AI assistant starts with real knowledge of the project. It installs a session-start hook, a read-only reviewer agent and the autopilot skills too, so you do not set those up by hand.
|
|
21
21
|
|
|
22
22
|
## Step 2: Choose a Workflow Template
|
|
23
23
|
|
|
@@ -51,7 +51,15 @@ aidlc continue # resume the active instance at its next step
|
|
|
51
51
|
aidlc transition my-feature # evaluate gates and advance to the next phase
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
If a transition is blocked, the output lists exactly what's missing — incomplete artifacts, unresolved review findings, or phases that must finish first. Your AI assistant reads the same state, so `aidlc continue` in a fresh session picks up precisely where the last one left off.
|
|
54
|
+
If a transition is blocked, the output lists exactly what's missing — incomplete artifacts, unresolved review findings, or phases that must finish first — and ends with a "Next steps" list of the exact commands to run. If several instances are active, `aidlc continue` asks which one you mean, or you can name it: `aidlc continue my-feature`. Your AI assistant reads the same state, so `aidlc continue` in a fresh session picks up precisely where the last one left off.
|
|
55
|
+
|
|
56
|
+
There is a third way to drive the loop: the console. Run `aidlc` with no arguments, or `aidlc menu`, and it opens:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
aidlc
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
On a terminal of at least 60×20 it is a dashboard of autopilot, your roadmap, your instances and your spend. Each action is one key, and `?` lists them all. Press Ctrl-K for a list of every command. Press `c` to open your AI agent in a drawer under the dashboard. On a narrower terminal you get a one-column console instead: type `/help` for the commands, and plain words go to your agent.
|
|
55
63
|
|
|
56
64
|
## Step 5: Enforce Gates in CI
|
|
57
65
|
|