@rasensio/aidlc-content 2.21.0 → 2.22.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.
|
@@ -47,7 +47,10 @@ never become, derived from a product vision document. With no such document, the
|
|
|
47
47
|
skill asks five skippable questions and saves the answers, in your words, as `docs/vision.md` — then
|
|
48
48
|
imports that like any other. Triage checks items against it, and an item
|
|
49
49
|
that crosses a prohibition is the clearest `hold/` there is — naming the prohibition turns "not for
|
|
50
|
-
us" into a reason the submitter can read.
|
|
50
|
+
us" into a reason the submitter can read. When work in an instance crosses a prohibition, your
|
|
51
|
+
choice — an exception for this instance, or an amendment — is written to the instance as one line.
|
|
52
|
+
At completion the retrospective asks once whether any constitution or decision-register entry the
|
|
53
|
+
work ran into should change, and names a prohibition that has been waived two or more times.
|
|
51
54
|
|
|
52
55
|
**What breaks without them:** work passes review because the reviewer was the author, the same defect
|
|
53
56
|
recurs every few weeks with nobody noticing it is the same defect, and scope drifts one reasonable
|
package/docs/roadmap.md
CHANGED
|
@@ -132,7 +132,7 @@ that picks has no way to write. `priority` is an ordinary extension field (a ran
|
|
|
132
132
|
project declares in `roadmap.item_fields`.
|
|
133
133
|
|
|
134
134
|
**Seeing the roadmap** is `aidlc roadmap view`: one self-contained HTML page, opened in the browser,
|
|
135
|
-
with
|
|
135
|
+
with four tabs. Every item has a plain summary — its `## In plain words` section, or a draft built from
|
|
136
136
|
"What it is" and "Customer value", labelled Draft — and the page always shows it whole. **Board** has a
|
|
137
137
|
column per status — backlog in `roadmap next` order with ranks and ready items marked, the latest 20 done
|
|
138
138
|
items with the rest behind a control, hold split into Parked, Declined and On hold with the reason on each
|
|
@@ -152,12 +152,18 @@ a square jumps to that item; a sticky column shows the selected item's facts, wh
|
|
|
152
152
|
on it. **Shipped** groups done items by release — the first `v*` tag after the merge of the item's branch —
|
|
153
153
|
newest first, each heading with the version, date, item count and total true cost from `aidlc metrics`;
|
|
154
154
|
each card shows its plain summary, kind of work, days from idea to done, true cost, and a red mark when it
|
|
155
|
-
caused bugfixes.
|
|
155
|
+
caused bugfixes. **Usage** lists every done item, most tokens first, with one bar each for input, output,
|
|
156
|
+
cache read and cache write and each value printed beside its bar. Each type is scaled to its own largest
|
|
157
|
+
value on the tab, because cache reads are usually most of a feature's tokens and one shared scale would
|
|
158
|
+
leave the other three bars at nothing. Every cost on the page is tokens first, as `aidlc cost` prints them
|
|
159
|
+
(`45.2M tok`), then the dollar figure labelled "API price" — what the same usage would cost at API rates,
|
|
160
|
+
which a Claude or Codex subscription does not charge. Where no usage was recorded the page says "no data",
|
|
161
|
+
never 0 or $0: an unmeasured feature is not a free one. The Board has status chips, presets (Active work,
|
|
156
162
|
Needs a decision, Shipped, Parked, Everything) and Ready/Blocked toggles and opens on inbox, backlog and in
|
|
157
163
|
progress, with done and hold folded into rails you click to reopen; Dependencies has status chips with
|
|
158
164
|
done off and an "Only items with links" toggle. The tab, both tabs' filters and the Summaries toggle live
|
|
159
165
|
in the URL hash, so a reload or a shared link reopens the same view. `/` focuses search, `j` and `k` move to the next and previous
|
|
160
|
-
item (the open panel follows), `1
|
|
166
|
+
item (the open panel follows), `1` to `4` switch tabs (`1` to `5` with milestones), `Esc` closes the panel or clears the
|
|
161
167
|
search. The page opens light; the header button switches to dark, and the browser remembers it across
|
|
162
168
|
regenerations. The page is written to `<git-common-dir>/aidlc/roadmap.html` — outside every working tree, so
|
|
163
169
|
it is never committed and every worktree shares one copy — or wherever `--out` says; `--no-open` only
|
|
@@ -227,7 +233,7 @@ and the first one in order that is not done is *current*, even with nothing in i
|
|
|
227
233
|
usual order when it has none; `--explain` names it. `aidlc roadmap view` opens on a **Milestones** tab
|
|
228
234
|
— a track of every milestone and its status, then each milestone's exit test and its items as done, in
|
|
229
235
|
flight, next, parked, open and dropped, then Unassigned — and with milestones the tabs are numbered `1`
|
|
230
|
-
to `
|
|
236
|
+
to `5`, Milestones first. A hold card names the milestone it is parked for, so the hold reason can carry
|
|
231
237
|
the trigger rather than the goal. **`aidlc roadmap status`** prints the same thing as text, for chat;
|
|
232
238
|
`--milestone <id>` prints one milestone and `--milestone none` the Unassigned items. It exits 1, after
|
|
233
239
|
printing, when an open item has no `milestone:` line or names an id the file does not list — `aidlc
|
|
@@ -376,8 +382,9 @@ six questions on its own. Each is a list with one choice marked recommended:
|
|
|
376
382
|
like, but never `autopilot`, `start`, `update` or `roadmap sync`) and read-only `gh pr checks` /
|
|
377
383
|
`gh run view` (recommended). A machine set up with the older scoped command is moved to this one
|
|
378
384
|
the next time autopilot reads its config; Claude Code with full access; Codex editing and
|
|
379
|
-
running commands inside its `workspace-write` sandbox, which
|
|
380
|
-
|
|
385
|
+
running commands inside its `workspace-write` sandbox, which blocks git, so it cannot commit and
|
|
386
|
+
an item stops at its first commit; Codex with full access, which runs with no sandbox and no
|
|
387
|
+
prompts; or a command you type. This decides what an unattended agent may do on your machine, so
|
|
381
388
|
it is never picked for you: with no terminal, setup needs `--agent <preset>` or
|
|
382
389
|
`--non-interactive`.
|
|
383
390
|
- **How many items build at once** — two (recommended) or one.
|
package/package.json
CHANGED
|
@@ -4,4 +4,6 @@ This file is the only statement of the rule. Other skills point here instead of
|
|
|
4
4
|
|
|
5
5
|
When `.aidlc/context/constitution.md` exists, read it before shaping work. It records what this repo owns (`IN-<n>` entries) and what it must never do (`NOT-<n>` entries), each citing the vision statement it was derived from. **If the work in front of you crosses a prohibition, name that prohibition by its id and say plainly that it does, before going further.** The user may still choose to proceed, or to amend the constitution — but the crossing gets stated out loud at the start rather than discovered in review.
|
|
6
6
|
|
|
7
|
+
Once the user has chosen, record it in the instance: append one line to `.aidlc/state/<instance>/constitution-crossings.md` — `- NOT-<n>: exception | amend — <reason> — <YYYY-MM-DD>`. "exception" proceeds for this instance only; "amend" changes the entry through the **aidlc-constitution** skill's "Amending from work" section. Without the line, a prohibition waived five times looks the same as one never touched. A crossing found outside any instance, such as at roadmap triage, has nowhere to go and is not recorded. The retrospective reads these lines.
|
|
8
|
+
|
|
7
9
|
The constitution never fails a gate and never blocks a transition; its whole force is that somebody read it out at the right moment. An absent file is a normal state, not a gap to fill — it is written by the **aidlc-constitution** skill, from a vision document or, when there is none, from the user's answers to five questions.
|
|
@@ -24,6 +24,8 @@ Everything else is recorded as a `decision` entity exactly as before. When unsur
|
|
|
24
24
|
|
|
25
25
|
A reversed decision is a new entry with a `Supersedes: ADR-<n>` line, asked like any other. The old entry keeps its text unedited; only its status-table row changes, to "Superseded by ADR-<m>", and its graph entity is renamed to say so (`aidlc knowledge update <id> --name "ADR-<n> (superseded by ADR-<m>): <title>"`).
|
|
26
26
|
|
|
27
|
+
A person may ask to change an Accepted entry at any time, not only when design meets its reopen condition; that request runs this same flow.
|
|
28
|
+
|
|
27
29
|
## Before changing what an entry covers
|
|
28
30
|
|
|
29
31
|
Read the register head first: the status table, then only the entries the work touches. Never inline it into a skill or `CLAUDE.md`.
|
|
@@ -5,7 +5,7 @@ phase: ideation
|
|
|
5
5
|
priority: 88
|
|
6
6
|
arguments: "[path to the vision document]"
|
|
7
7
|
invocation: routed
|
|
8
|
-
trigger: When the user points at a product vision document, asks what this repo is or is not allowed to do, asks to create or update a project constitution (with or without a vision document), or when the vision document has changed
|
|
8
|
+
trigger: When the user points at a product vision document, asks what this repo is or is not allowed to do, asks to create or update a project constitution (with or without a vision document) or to challenge or amend one of its entries, or when the vision document has changed
|
|
9
9
|
native_mode_hint:
|
|
10
10
|
claude-code: >-
|
|
11
11
|
This skill imports a document and drafts prose for the user to correct. Do
|
|
@@ -216,6 +216,15 @@ changed, why. Amendments are how the next reader tells a deliberate local rule f
|
|
|
216
216
|
a stale derivation. Record each answer in the question file and leave it in place —
|
|
217
217
|
it is the record of what was asked and decided.
|
|
218
218
|
|
|
219
|
+
## Amending from work
|
|
220
|
+
|
|
221
|
+
A crossing answered "amend", the retrospective's challenge, or the user asking to
|
|
222
|
+
change an entry all start here. The vision has not changed, so skip
|
|
223
|
+
`aidlc constitution check` and the re-import. Ask one question for that entry in
|
|
224
|
+
`.aidlc/questions/constitution-update-<YYYY-MM-DD>.md`, shaped like Step 2's with
|
|
225
|
+
leave-as-it-is among the options, and apply it only as Step 3 says: an Amendments
|
|
226
|
+
line naming the instance the challenge came from, when there is one.
|
|
227
|
+
|
|
219
228
|
## Consulting the constitution
|
|
220
229
|
|
|
221
230
|
Reading it during other work is not this skill's job — the overview skill carries
|
|
@@ -30,7 +30,9 @@ Run the retro **before** any completion cleanup (worktree removal, claim release
|
|
|
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
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
|
+
|
|
34
|
+
**Challenge the entries the work ran into.** Only when the instance has a `constitution-crossings.md`, or its `design.md` or `design-questions.md` cites an `ADR-<n>`: in the same message, ask one question — should any of these entries change? — naming each one. For a `NOT-<n>`, count its `exception` lines across `.aidlc/state/*/constitution-crossings.md`; at two or more, give the count and the instances, so a rule that keeps being waived is visible. A yes goes to the **aidlc-constitution** skill's "Amending from work" section for a `NOT-<n>`, or to a superseding entry per **The decision-register rule** (`.aidlc/resources/rules/decision-register.md`) for an `ADR-<n>`; the retro edits neither document. With neither signal, ask nothing. Unattended, list the entries and counts and mark the question not asked.
|
|
35
|
+
4. **Write `retrospective.md`** in the instance state dir: the answers, as the user corrected the drafts; when the challenge was asked or listed, a `## Constitution and register` section with one line per entry and its answer, a "no" included; 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
36
|
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
37
|
|
|
36
38
|
**Before distilling, search** `.aidlc/guidance/lessons.md` and `.aidlc/guidance/lessons-digest.md` for an earlier lesson making the same claim — the same mechanism, not the same words. Then end every lesson with **exactly one resolution tag**, naming what stops it next time: `[test: <path>]`, `[check: <name or path>]`, `[guidance: <file>]`, or `[observation]` when nothing does. A lesson the search matched **cannot be tagged `[observation]`**: the project has already paid for it as prose. It names the test, check or guidance file that now stops it, or it becomes one of the step 6 follow-ups with that artifact as its smallest change, and its tag names the artifact that follow-up will build.
|