@rasensio/aidlc-content 2.14.0 → 2.16.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 +6 -0
- package/docs/index.yaml +6 -0
- package/docs/roadmap.md +45 -2
- package/package.json +1 -1
- package/skills/04-roadmap.md +26 -1
- package/skills/90-retrospective.md +1 -1
|
@@ -150,6 +150,12 @@ re-triage it; re-parking it with a new `hold` entry clears the finding. All thre
|
|
|
150
150
|
for the reason `roadmap-item-summary` is: each fix is a decision, and an invented decision reads
|
|
151
151
|
exactly like a real one. They read the primary checkout's roadmap and skip items that will not parse.
|
|
152
152
|
|
|
153
|
+
**`roadmap-milestones`** runs only when `.aidlc/roadmap/milestones.yaml` exists. It names a
|
|
154
|
+
milestones file that will not parse or breaks a rule, and every open item — inbox, backlog, in
|
|
155
|
+
progress or hold — whose `milestone` field is missing or names an id the file does not list. It is
|
|
156
|
+
report tier for the same reason: which goal an item serves is a decision. The fix it names is
|
|
157
|
+
`aidlc roadmap assign-milestones`.
|
|
158
|
+
|
|
153
159
|
**`roadmap-merged-done`** and **`roadmap-merged-unrecorded`** clear `hold/` of items merged into a
|
|
154
160
|
carrier that has finished. A `hold/` item is merged when its last `hold` reason says "merged into"
|
|
155
161
|
an item id — or, with no reason, when its body opens with that line — and the merge is recorded when
|
package/docs/index.yaml
CHANGED
|
@@ -120,3 +120,9 @@ historical_paths:
|
|
|
120
120
|
(hooks-carry-lifecycle-state/AC-18, AC-20), and nobody has agreed for this
|
|
121
121
|
repository, so it does not exist here — an unattended session cannot give that
|
|
122
122
|
consent on the user's behalf.
|
|
123
|
+
- path: .aidlc/roadmap/milestones.yaml
|
|
124
|
+
reason: >-
|
|
125
|
+
The optional milestones file, named in roadmap.md and hygiene-and-compliance.md as
|
|
126
|
+
where milestones are declared (roadmap-milestones/AC-1). This repository has not
|
|
127
|
+
adopted milestones, and creating the file would change how its own roadmap ranks,
|
|
128
|
+
so it does not exist here.
|
package/docs/roadmap.md
CHANGED
|
@@ -138,7 +138,7 @@ progress, with done and hold folded into rails you click to reopen; Dependencies
|
|
|
138
138
|
but hides clusters that are entirely done ("Open chains only"), and dims what its filters exclude rather
|
|
139
139
|
than removing it. The tab, both tabs' filters and the hide-done switch live in the URL hash, so a reload
|
|
140
140
|
or a shared link reopens the same view. `/` focuses search, `j` and `k` move to the next and previous
|
|
141
|
-
item (the open panel follows), `1`, `2` and `3` switch tabs, `Esc` closes the panel or clears the
|
|
141
|
+
item (the open panel follows), `1`, `2` and `3` switch tabs (`1` to `4` with milestones), `Esc` closes the panel or clears the
|
|
142
142
|
search. The page opens light; the header button switches to dark, and the browser remembers it across
|
|
143
143
|
regenerations. The page is written to `<git-common-dir>/aidlc/roadmap.html` — outside every working tree, so
|
|
144
144
|
it is never committed and every worktree shares one copy — or wherever `--out` says; `--no-open` only
|
|
@@ -183,6 +183,28 @@ hand leaves the link set, and `aidlc start --roadmap-item` refuses an item that
|
|
|
183
183
|
and lists it under `skipped` in `--explain` and `--json`, naming the instance. Clear the
|
|
184
184
|
`promoted_to` line to make it ready again.
|
|
185
185
|
|
|
186
|
+
**Milestones** group items by the goal they serve. Add `.aidlc/roadmap/milestones.yaml` — an ordered
|
|
187
|
+
`milestones:` list whose entries each have an `id` (lowercase letters, digits and hyphens), a `title`
|
|
188
|
+
and a one-line `exit` test — and give every item a `milestone:` line naming one of the ids, or `none`
|
|
189
|
+
for Unassigned. Without the file nothing changes: the page, `roadmap next` and every item read exactly
|
|
190
|
+
as before. With it, a milestone's status is worked out on every read and never stored: *not started*
|
|
191
|
+
with no items, *done* once it has items and every one is done or declined (a parked item keeps it open),
|
|
192
|
+
and the first one in order that is not done is *current*, even with nothing in it yet. `roadmap next`,
|
|
193
|
+
`--autopilot` and autopilot pick from the current milestone's ready items first and fall back to the
|
|
194
|
+
usual order when it has none; `--explain` names it. `aidlc roadmap view` opens on a **Milestones** tab
|
|
195
|
+
— a track of every milestone and its status, then each milestone's exit test and its items as done, in
|
|
196
|
+
flight, next, parked, open and dropped, then Unassigned — and with milestones the tabs are numbered `1`
|
|
197
|
+
to `4`, Milestones first. A hold card names the milestone it is parked for, so the hold reason can carry
|
|
198
|
+
the trigger rather than the goal. **`aidlc roadmap status`** prints the same thing as text, for chat;
|
|
199
|
+
`--milestone <id>` prints one milestone and `--milestone none` the Unassigned items. It exits 1, after
|
|
200
|
+
printing, when an open item has no `milestone:` line or names an id the file does not list — `aidlc
|
|
201
|
+
doctor` reports the same under `roadmap-milestones` — and done items are not required to carry the
|
|
202
|
+
line. **`aidlc roadmap assign-milestones`** lists the milestones and every Unassigned open item; with
|
|
203
|
+
`--set <item>=<id|none>`, repeated, it writes those lines and nothing else, checking every pair before
|
|
204
|
+
writing any, and commits nothing. The roadmap skill uses it to draft a milestone for every open item as
|
|
205
|
+
one diff that a person reviews and commits. While the file exists, the portable authoring skill asks for
|
|
206
|
+
a `milestone` line too — run `aidlc update` after adding it.
|
|
207
|
+
|
|
186
208
|
Keep the raw idea count around a dozen. At the cap, promote or drop before capturing anything new. A
|
|
187
209
|
completed instance queues **at most two** follow-up items and records the rest in its own
|
|
188
210
|
`retrospective.md` as observed, not queued — the same cap, in the same shape, as the one on lessons.
|
|
@@ -579,6 +601,27 @@ An item that has left a projected status keeps its open issue and is reported ev
|
|
|
579
601
|
a user-side step, and a shipped action would start firing in every project on the next
|
|
580
602
|
`aidlc update`.
|
|
581
603
|
|
|
604
|
+
### Milestones on GitHub
|
|
605
|
+
|
|
606
|
+
With a valid `.aidlc/roadmap/milestones.yaml`, `sync` also projects each milestone to a GitHub
|
|
607
|
+
milestone, in file order and before any issue write. The milestone's title is its `title`, and its
|
|
608
|
+
description is its exit test followed by a line `aidlc-milestone: <id>` — that line, not the title, is
|
|
609
|
+
how the next run finds it, so renaming a milestone in the file renames it on GitHub. A milestone whose
|
|
610
|
+
status is done is closed; one that gains an open item again is reopened. Each projected issue is put
|
|
611
|
+
under its item's milestone, or has its milestone cleared when the item is Unassigned. This goes by
|
|
612
|
+
milestone number through `gh api`, because `gh issue edit --milestone` only finds open milestones and
|
|
613
|
+
an issue could then never sit under a done one. An issue the same run creates gets its milestone in
|
|
614
|
+
that run.
|
|
615
|
+
|
|
616
|
+
It is push-only like the rest. A milestone retitled on GitHub, or an issue moved to another milestone
|
|
617
|
+
there, is put back on the next sync; nothing is read back into the files. A GitHub milestone that
|
|
618
|
+
carries a marker the file no longer lists is reported as `milestone-orphan` and left alone — deleting
|
|
619
|
+
it is yours. `sync` refuses, writing nothing, when the file does not parse, when two GitHub milestones
|
|
620
|
+
carry the same marker, or when a milestone's title is already used by another entry or by a GitHub
|
|
621
|
+
milestone that is not its own. Only projected issues are counted, so a milestone's GitHub total
|
|
622
|
+
leaves out items whose status `sync` does not project. Without a milestones file, `sync` makes the
|
|
623
|
+
same calls as before and never touches an issue's milestone.
|
|
624
|
+
|
|
582
625
|
### Moving a Project board
|
|
583
626
|
|
|
584
627
|
Put the issues on a GitHub Project and they all land in one column. That is the projection stopping
|
|
@@ -624,7 +667,7 @@ the two differ.
|
|
|
624
667
|
- `packages/cli/src/roadmap/sync` — the GitHub projection: `plan.ts` is pure and imports no
|
|
625
668
|
filesystem, no subprocess and not the `gh` seam, so planning is testable with no network at all;
|
|
626
669
|
`execute.ts` is the only writer and imports no `node:fs`; `gh.ts` is the single subprocess boundary,
|
|
627
|
-
argument-array only. `body.ts` renders the projection-owned region and merges it into an existing
|
|
670
|
+
argument-array only. `milestone-projection.ts` plans the GitHub milestones, as pure as `plan.ts`. `body.ts` renders the projection-owned region and merges it into an existing
|
|
628
671
|
issue; `sanitize.ts` defuses item prose; `markdown.ts` is the one place that decides what counts as
|
|
629
672
|
code, shared by the sanitizer and the marker scanner so the two cannot disagree.
|
|
630
673
|
- `packages/cli/src/commands/roadmap.ts` — the `sync`, `import` and `board-workflow` commands,
|
package/package.json
CHANGED
package/skills/04-roadmap.md
CHANGED
|
@@ -184,6 +184,30 @@ When the project declares `run` in `roadmap.item_fields`, the same moment also s
|
|
|
184
184
|
|
|
185
185
|
Never write `run:` without the person's answer, for the reason the rank is never written without one. An item with no `run:` is one autopilot may build, so leaving it unset is a choice, not a neutral default. Projects that do not declare `run` triage exactly as before.
|
|
186
186
|
|
|
187
|
+
## Milestones
|
|
188
|
+
|
|
189
|
+
A milestone is a goal a set of items serves — "Stage 1", "first-customer readiness". A roadmap has them when **`.aidlc/roadmap/milestones.yaml`** exists: an ordered `milestones:` list, each entry with an `id` (lowercase letters, digits and hyphens), a `title` and a one-line `exit` test. Without that file nothing in this section applies, and the roadmap reads and ranks exactly as it would otherwise.
|
|
190
|
+
|
|
191
|
+
```yaml
|
|
192
|
+
milestones:
|
|
193
|
+
- id: stage-1
|
|
194
|
+
title: Stage 1
|
|
195
|
+
exit: a customer runs one region end to end
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- **Every new item names one.** When the file exists, set `milestone:` to a milestone id or `none` in every item you write — a captured idea, a follow-up from a retrospective, an item an instance writes. `none` means Unassigned on purpose. A missing field, or an id the file does not list, is what `aidlc roadmap status` and `aidlc doctor` report.
|
|
199
|
+
- **Status is derived, never written.** A milestone with no items is *not started*; one whose items are all done or declined is *done*, and any parked item keeps it open; the first one in order that is not done is *current*, even when it has no items yet.
|
|
200
|
+
- **What next prefers it.** `aidlc roadmap next`, `--autopilot` and autopilot put the current milestone's ready items first, then fall back to the usual order across the rest. `--explain` names the current milestone.
|
|
201
|
+
- **"What is still missing?"** Run **`aidlc roadmap status`** and quote it: each milestone and its status, then per milestone what is done, in flight, next, parked, open and dropped, then Unassigned. `--milestone <id>` prints one; `--milestone none` prints Unassigned. `aidlc roadmap view` shows the same as its first tab.
|
|
202
|
+
- **Parking.** A parked item keeps its `milestone:` — that is the goal it waits for. Write the trigger in the hold reason, not the goal.
|
|
203
|
+
|
|
204
|
+
**Assigning milestones to an existing roadmap.**
|
|
205
|
+
|
|
206
|
+
1. Run `aidlc roadmap assign-milestones`. It prints the milestones with their exit tests and every open item that is Unassigned, and writes nothing.
|
|
207
|
+
2. For each item, draft one milestone from its executive summary and the exit tests: the earliest milestone whose exit test the item is needed for. When no milestone fits, use `none` and say why in your reply.
|
|
208
|
+
3. Write them with `aidlc roadmap assign-milestones --set <item>=<id> --set <item>=<id> …`. It checks every pair before writing any, and edits only each item's `milestone:` line.
|
|
209
|
+
4. Do not commit. Tell the person to review `git diff`, change what they disagree with, and commit it themselves. An item left out stays Unassigned and keeps being reported.
|
|
210
|
+
|
|
187
211
|
## Promote
|
|
188
212
|
|
|
189
213
|
Promotion is where the roadmap meets the lifecycle:
|
|
@@ -225,11 +249,12 @@ Move the item to `hold/` and append the `history` entry, with a reason prefixed
|
|
|
225
249
|
|
|
226
250
|
Optional, opt-in, and inert until a `roadmap.sync` section exists in `.aidlc/config.yaml`. When a user asks how the roadmap can be visible to people who will not clone the repo, or how it can appear where their team already triages, the answer is `aidlc roadmap sync` — see `docs/roadmap.md`.
|
|
227
251
|
|
|
228
|
-
|
|
252
|
+
Five things to know before you offer it:
|
|
229
253
|
|
|
230
254
|
- It is a **projection, not sync**. Disk stays the source of truth; nothing is written back to disk, so no item gains a `remote:` field and no flow above changes. The link lives on the issue as a marker carrying the item `id`.
|
|
231
255
|
- **`inbox/` and `hold/` are not projected by default**, because an untriaged idea and a parked one are not decisions anybody has published. Do not widen that list on a user's behalf.
|
|
232
256
|
- **Every write needs consent.** Suggest `aidlc roadmap sync --dry-run` first, always. It prints the plan, names the target repository, and touches nothing.
|
|
257
|
+
- **Milestones follow the file.** With a `milestones.yaml`, sync creates, retitles, closes and reopens one GitHub milestone per entry and sets each issue's milestone from its item's `milestone:` line. Change a milestone in the file, never on GitHub — a GitHub-side edit is overwritten on the next sync.
|
|
233
258
|
- **The issue body carries the whole item** — its frontmatter facts, its prose, and links to its file and to the items it names — inside a region marked `<!-- aidlc-body:begin -->` … `<!-- aidlc-body:end -->`, regenerated on every sync. Text outside that region is preserved, so a note added to an issue description survives. When somebody asks why a projected issue is out of date, the answer is that a sync has not run since the item changed, not that the body is frozen.
|
|
234
259
|
|
|
235
260
|
Editing an item's body is therefore a publishing act on a repo with `roadmap.sync` configured. That is not a reason to hesitate, but it is a reason not to paste anything into an item you would not put on the tracker. Item prose is sanitized on the way out — HTML comments removed, `@name` and `#123` made inert — so no sync notifies anybody; secrets are not sanitized, and never were. If a user's braindump contains credentials, the existing hard rule applies: flag it and leave them out of the file.
|
|
@@ -32,7 +32,7 @@ Run the retro **before** any completion cleanup (worktree removal, claim release
|
|
|
32
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
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
|
-
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.
|
|
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**) and, when `.aidlc/roadmap/milestones.yaml` exists, a `milestone:` line naming a milestone id or `none`. **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.
|
|
37
37
|
8. **Confirm, then append.** Show the distilled entry verbatim and get one confirmation for the whole entry. Never append unconfirmed text — lessons are auto-loaded into every future session, so this confirmation is the injection gate. Redact anything resembling credentials or secrets. On confirm, append to the lessons layer per the write rules below.
|
|
38
38
|
9. **Commit** `retrospective.md` and the lessons append to the **current branch** now, before any worktree cleanup runs.
|