@rasensio/aidlc-content 2.26.0 → 2.29.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.
Files changed (47) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/templates.d.ts +7 -0
  6. package/dist/templates.d.ts.map +1 -1
  7. package/dist/templates.js +9 -0
  8. package/dist/templates.js.map +1 -1
  9. package/docs/cost-tracking.md +25 -3
  10. package/docs/hygiene-and-compliance.md +48 -5
  11. package/docs/index.yaml +6 -0
  12. package/docs/knowledge-graph.md +2 -2
  13. package/docs/lifecycle.md +22 -0
  14. package/docs/reviews-and-guidance.md +4 -2
  15. package/docs/roadmap.md +61 -15
  16. package/docs/skills-and-platforms.md +29 -11
  17. package/guidance/index.yaml +5 -0
  18. package/guidance/mermaid-diagrams.md +219 -0
  19. package/howto/make-a-custom-template.md +78 -0
  20. package/package.json +1 -1
  21. package/packs/aspice/controls.yaml +561 -0
  22. package/packs/aspice/guidance/aspice-constraints.md +109 -0
  23. package/packs/aspice/pack.yaml +30 -0
  24. package/packs/gdpr/controls.yaml +287 -0
  25. package/packs/gdpr/guidance/gdpr-constraints.md +141 -0
  26. package/packs/gdpr/pack.yaml +24 -0
  27. package/packs/gxp/controls.yaml +479 -0
  28. package/packs/gxp/guidance/gxp-constraints.md +159 -0
  29. package/packs/gxp/pack.yaml +35 -0
  30. package/packs/sox/controls.yaml +229 -0
  31. package/packs/sox/guidance/sox-constraints.md +100 -0
  32. package/packs/sox/pack.yaml +30 -0
  33. package/resources/rules/decision-register.md +3 -3
  34. package/resources/rules/departures.md +3 -1
  35. package/resources/rules/fresh-main.md +25 -0
  36. package/resources/rules/unattended.md +1 -1
  37. package/skills/00-overview.md +3 -4
  38. package/skills/03-entry-point.md +1 -0
  39. package/skills/20-requirements.md +4 -2
  40. package/skills/30-design.md +16 -3
  41. package/skills/50-testing.md +15 -0
  42. package/skills/60-deployment.md +38 -4
  43. package/skills/81-continue.md +2 -1
  44. package/skills/84-autopilot.md +1 -1
  45. package/skills/90-retrospective.md +1 -1
  46. package/templates/quick-feature.yaml +3 -0
  47. package/templates/system.md +39 -0
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { loadSkills, getSkill } from './skills.js';
2
- export { loadTemplates, getTemplate, loadRegisterTemplate, REGISTER_TEMPLATE_FILE } from './templates.js';
2
+ export { loadTemplates, getTemplate, loadRegisterTemplate, REGISTER_TEMPLATE_FILE, loadSystemTemplate, SYSTEM_TEMPLATE_FILE, } from './templates.js';
3
3
  export { loadGuidance } from './guidance.js';
4
4
  export { loadGlossary, getGlossaryTerm } from './glossary.js';
5
5
  export { loadCapabilities, getCapabilityMap } from './capabilities.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,gBAAgB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EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EAAE,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { loadSkills, getSkill } from './skills.js';
2
- export { loadTemplates, getTemplate, loadRegisterTemplate, REGISTER_TEMPLATE_FILE } from './templates.js';
2
+ export { loadTemplates, getTemplate, loadRegisterTemplate, REGISTER_TEMPLATE_FILE, loadSystemTemplate, SYSTEM_TEMPLATE_FILE, } from './templates.js';
3
3
  export { loadGuidance } from './guidance.js';
4
4
  export { loadGlossary, getGlossaryTerm } from './glossary.js';
5
5
  export { loadCapabilities, getCapabilityMap } from './capabilities.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,Y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,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
@@ -9,4 +9,11 @@ export declare function getTemplate(name: string): WorkflowTemplate | undefined;
9
9
  export declare const REGISTER_TEMPLATE_FILE = "decision-register.md";
10
10
  /** The register template's text, as `aidlc update` installs it (decision-register/AC-5). */
11
11
  export declare function loadRegisterTemplate(): string;
12
+ /**
13
+ * The living system diagram's starting file, named after the file it creates as the
14
+ * register's is (living-system-diagram/AC-4). Markdown, so `loadTemplates` skips it.
15
+ */
16
+ export declare const SYSTEM_TEMPLATE_FILE = "system.md";
17
+ /** The living document's template text, as `aidlc update` installs it (living-system-diagram/AC-5). */
18
+ export declare function loadSystemTemplate(): string;
12
19
  //# sourceMappingURL=templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnD,wBAAgB,aAAa,IAAI,gBAAgB,EAAE,CAqBlD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEtE;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,4FAA4F;AAC5F,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnD,wBAAgB,aAAa,IAAI,gBAAgB,EAAE,CAqBlD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEtE;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,4FAA4F;AAC5F,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAEhD,uGAAuG;AACvG,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
package/dist/templates.js CHANGED
@@ -36,4 +36,13 @@ export const REGISTER_TEMPLATE_FILE = 'decision-register.md';
36
36
  export function loadRegisterTemplate() {
37
37
  return readFileSync(resolve(TEMPLATES_DIR, REGISTER_TEMPLATE_FILE), 'utf8');
38
38
  }
39
+ /**
40
+ * The living system diagram's starting file, named after the file it creates as the
41
+ * register's is (living-system-diagram/AC-4). Markdown, so `loadTemplates` skips it.
42
+ */
43
+ export const SYSTEM_TEMPLATE_FILE = 'system.md';
44
+ /** The living document's template text, as `aidlc update` installs it (living-system-diagram/AC-5). */
45
+ export function loadSystemTemplate() {
46
+ return readFileSync(resolve(TEMPLATES_DIR, SYSTEM_TEMPLATE_FILE), 'utf8');
47
+ }
39
48
  //# sourceMappingURL=templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAG1C,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;AAC5E,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAEzD,MAAM,UAAU,aAAa;IAC3B,MAAM,KAAK,GAAG,WAAW,CAAC,aAAa,CAAC;SACrC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAA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AG,EAAE,MAAM;SACZ,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,OAAO,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACpD,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE7D,4FAA4F;AAC5F,MAAM,UAAU,oBAAoB;IAClC,OAAO,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,sBAAsB,CAAC,EAAE,MAAM,CAAC,CAAC;AAC9E,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAEhD,uGAAuG;AACvG,MAAM,UAAU,kBAAkB;IAChC,OAAO,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,oBAAoB,CAAC,EAAE,MAAM,CAAC,CAAC;AAC5E,CAAC"}
@@ -100,7 +100,7 @@ sets nothing, and absence stays "unknown", never a fabricated count. The recorde
100
100
  segment regardless of provider, which put a tally of kiro usage records where a response count
101
101
  belongs — on the highest-precedence entries, where it outranked the honest absence beside it.
102
102
 
103
- The default report also prices the **unattributed pool** (`.aidlc/cost/unattributed.ndjson`) on its
103
+ The default report also prices the **unattributed pool** (`unattributed.ndjson`) on its
104
104
  last line, with the same read-time precedence weighting instances get. On this repo that pool was
105
105
  ~44% of total spend while the only surface for it printed a bare entry count. `aidlc cost
106
106
  --unattributed` breaks the pool down by fidelity and model; `aidlc cost sync` drains what claim
@@ -149,8 +149,30 @@ because capture, reconcile, backfill and recover all decide from intervals, so o
149
149
  in agreement.
150
150
 
151
151
  The pool itself still changes whenever a session with no claim ends, and no recorder change can stop
152
- that without dropping records. So `release.sh` commits churn that is *only* cost ledger files
153
- (`scripts/commit-cost-ledgers.sh --preflight`) and still refuses anything else.
152
+ that without dropping records. That is why the records no longer live in the tree at all.
153
+
154
+ **Where the records live.** Inside a git repository the ledgers (`costs.ndjson` per instance,
155
+ `unattributed.ndjson`) and each instance's `sessions.ndjson` live under
156
+ `<git-common-dir>/aidlc/records/<key>/` — `state/<instance>/` for an instance's two files,
157
+ `cost/` for the unattributed pool. `<key>` is `@root` for a project at the repository root, or the
158
+ project's path from the root, URL-encoded (`packages%2Fapp`), for one below it. Every worktree of
159
+ the repository shares that directory and git never tracks or pushes it, so no session dirties a
160
+ checkout, and `release.sh` refuses any change in the tree without exception. Outside a git
161
+ repository they stay under `.aidlc/`. A fresh clone starts with no cost history: the records are
162
+ this machine's. The capture hook runs the `aidlc` installed on the machine, not the workspace build,
163
+ so these paths hold only once the installed version postdates the move: from 2026-11-09 to the next
164
+ release, an older installed CLI wrote every worktree session's ledger inside the worktree, and
165
+ removing the worktree deleted it. `cost-record-from-linked-worktree.test.ts` pins the path.
166
+
167
+ A checkout from before the move still holds the old files under `.aidlc/`. Until `aidlc doctor --yes`
168
+ runs the `cost-records-out-of-git` migration there, every reader reads the old file with the new one
169
+ and counts each record once, and every append goes only to the new one. A rewrite that moves records
170
+ out of a ledger, as `cost sync` does, writes the same body to the old file while it exists, so a moved
171
+ record is not still counted from there. The migration appends each old
172
+ record to the new file, skipping one already there byte for byte, then untracks and deletes the old
173
+ files and writes the ignore lines; commit the staged deletions it leaves. Run it in each live
174
+ worktree too: `git worktree remove` deletes ignored files, and an old ledger there is ignored now.
175
+ Closing an instance by hand copies its worktree's old files out before removing the worktree.
154
176
 
155
177
  **Null is not zero.** When there is no ledger data, the report says null. It never zero-fills, because
156
178
  a zero reads as "this was free" and a null reads as "we do not know", and those are different claims.
@@ -110,6 +110,12 @@ a project ready for a SOC 1 examination; it gives you a change-control trail to
110
110
  control objectives you wrote ask for one. In `aidlc init` and `aidlc compliance list` the SOC 2
111
111
  pack is shown as "also asked for as SOC 1, SSAE 16" for this reason.
112
112
 
113
+ When the request is for the SOX IT general controls themselves, use the `sox` pack instead. It names
114
+ the change-management controls directly — change request, authorization, testing, approval before
115
+ production, segregation of duties and separate environments — and lists the access and operations
116
+ controls as excluded, each with its reason. The `aidlc init` wizard offers it when the project's
117
+ industry is `financial-services`. It does not make a project ready for a SOX audit either.
118
+
113
119
  ## How to use it
114
120
 
115
121
  ```
@@ -127,7 +133,7 @@ Some checks report and repair nothing, on purpose. A `report`-tier migration sta
127
133
  only remedy is a decision, and it never touches `doctor`'s exit code, so `--yes` cannot
128
134
  make it write. Among them: an out-of-date compliance pack, a configured roadmap projection with no
129
135
  `gh` on `PATH`, `knowledge-stale-sources`, `roadmap-item-summary`, `bare-ac-in-tests`,
130
- `tracked-nested-ignored`, and the three misfiled-item checks below.
136
+ `tracked-nested-ignored`, `decision-register-two-copies`, and the three misfiled-item checks below.
131
137
 
132
138
  **The nested ignore files are committed.** `.aidlc/cost/.gitignore` and
133
139
  `.aidlc/knowledge/.gitignore` ignore the cost session files and the knowledge index, and neither
@@ -192,6 +198,21 @@ once resolved, is reported as a defect in the entry and **never passed to a file
192
198
  tracked YAML file is not a trusted one, and it must not be able to make `doctor` probe paths outside
193
199
  the repo.
194
200
 
201
+ **`decision-register-location`** moves a decision register from the `docs/` folder it first shipped
202
+ in to `.aidlc/decisions/decision-register.md`, once. The register is the one record the lifecycle
203
+ writes about the product, and every other such record already lived under `.aidlc/`; it cannot go in
204
+ `.aidlc/context/`, because `aidlc discover --force` regenerates that folder. The move is a rename, so
205
+ the register's bytes are never read or rewritten, and its README goes with it. The old folder is
206
+ removed only when nothing else is left in it. The graph's `source:` lines that named the old path are
207
+ edited line by line — never re-dumped, which would reflow every long description in the file — and it
208
+ runs directly before `knowledge-stale-sources` so those pointers resolve in the same run. Then it
209
+ lists every other tracked file that still names the old folder: live files you must update, and
210
+ history under `.aidlc/state/` and `.aidlc/roadmap/done/` left as written. It edits none of them,
211
+ because a project's own tests and guidance are the project's to fix, and it stages nothing. It is
212
+ safe tier because `aidlc update` never confirms anything and a rename that never overwrites is undone
213
+ by `git checkout`. When both registers exist, it moves nothing and **`decision-register-two-copies`**
214
+ says so on every run: which one to keep is your call.
215
+
195
216
  **`bare-ac-in-tests`** names the test lines that cite a criterion as a bare `AC-<n>` instead of
196
217
  `<instance>/AC-<n>`, as `path:line` followed by the ids on that line. A bare reference counts toward
197
218
  coverage only while exactly one instance defines that id, so it stops counting, with nothing failing,
@@ -203,15 +224,37 @@ gate warns about those. It lists the first 20 lines and ends with `… and <N> m
203
224
  that plants references in a fixture should build them at run time, or it becomes a bare reference
204
225
  itself.
205
226
 
227
+ **`deployment-outcome`** lists each completed instance whose `deployment-record.md` is missing or
228
+ whose `## Outcome` section is unwritten, with the record's path and why. It reads with the same
229
+ reader the transition's outcome gate uses, so a record doctor lists is one the transition would
230
+ refuse. A record that says `Nothing deployed — <reason>` is written and not listed. It lists the
231
+ first 20 and ends with `… and <N> more`; the header counts all of them. It is report tier because
232
+ the remedy is writing what happened after the merge, which only a person who checked can do.
233
+
206
234
  `compliance remove` and `upgrade` follow the same rule for the pack record in `.aidlc/config.yaml`.
207
235
  They delete only files whose recorded path stays inside `.aidlc/guidance/`, and only when that
208
236
  entry's own recorded hash matches what is on disk. The record is tracked, so a cloned repo writes
209
237
  it. The hash used to be looked up by file *basename*, so a second entry named `victim.md` could
210
238
  vouch for `../../victim.md` and get a file outside the project deleted (security-review-findings).
211
239
 
212
- `compliance list` shows packs available and installed. Two ship with the framework: `soc2` and
213
- `iso27001` (ISO/IEC 27001:2022, Annex A only). `check` returns
214
- the controls applying to the current phase, each with its requirement, where to look, and its fail
240
+ `compliance list` shows packs available and installed. These ship with the framework:
241
+
242
+ - `soc2` — the SOC 2 Common Criteria.
243
+ - `iso27001` — ISO/IEC 27001:2022, Annex A only.
244
+ - `sox` — SOX ITGC, change management only.
245
+ - `gdpr` — GDPR Articles 25, 30, 32 and 35. Not legal advice.
246
+ - `aspice` — Automotive SPICE 4.0, SWE.1 to SWE.6 only.
247
+ - `gxp` — 21 CFR Part 11, EU GMP Annex 11 and GAMP 5, validation evidence per change only.
248
+
249
+ `aspice` gives process evidence per change and rates no capability level: an assessor rates an
250
+ organisation's processes across its projects, and the trail is input to that rating.
251
+
252
+ `gxp` gives the validation evidence one change to a regulated system leaves; it does not validate
253
+ the system. AIDLC approvals are not Part 11 electronic signatures: they record the date and time,
254
+ but no printed name, no meaning and no binding to the record.
255
+
256
+ `sox`, `aspice` and `gxp` are scoped to an industry, `financial-services`, `automotive` and
257
+ `pharma`, so `aidlc init` asks which industry a project serves and offers each only under its answer. `check` returns the controls applying to the current phase, each with its requirement, where to look, and its fail
215
258
  condition.
216
259
 
217
260
  Two rules for anyone acting on a `check`:
@@ -234,7 +277,7 @@ and read what it says the second time. Steady-state bugs are invisible on the fi
234
277
  - `packages/cli/src/doctor` — the checks and repairs. `migrations` holds the one-off repairs, including
235
278
  the nested-`.gitignore` coverage fix and the self-ignore line removal (`nested-gitignore.ts`).
236
279
  - `packages/cli/src/compliance` — pack loading, control evaluation, and the evidence report.
237
- - `packages/content/packs` — the shipped packs, `soc2` and `iso27001`. A new directory there is a new
280
+ - `packages/content/packs` — the shipped packs, one directory each. A new directory there is a new
238
281
  pack; nothing else registers it.
239
282
  - `packages/content/skills/80-review.md` — where the compliance findings stream is specified, including
240
283
  the two-places rule for every applicable control.
package/docs/index.yaml CHANGED
@@ -126,3 +126,9 @@ historical_paths:
126
126
  where milestones are declared (roadmap-milestones/AC-1). This repository has not
127
127
  adopted milestones, and creating the file would change how its own roadmap ranks,
128
128
  so it does not exist here.
129
+ - path: .aidlc/decisions
130
+ reason: >-
131
+ Where a project's decision register lives, named in knowledge-graph.md and
132
+ hygiene-and-compliance.md (move-decision-register-into-aidlc/AC-1). Only a
133
+ project-wide decision creates the file, and this repository has made none, so
134
+ neither the folder nor the register exists here.
@@ -111,8 +111,8 @@ points into `.aidlc/knowledge/`.
111
111
 
112
112
  Most decisions are one `decision` entity: a name and a reason. That is too little for the few that
113
113
  bind the whole project — a one-way door, a new runtime or dev dependency, a new service, a change to
114
- a stated constraint. Those go to the decision register, `docs/adr/decision-register.md`, which design
115
- creates from a template the first time a project needs one. Each entry keeps the options that were
114
+ a stated constraint. Those go to the decision register, `.aidlc/decisions/decision-register.md`, which
115
+ design creates from a template the first time a project needs one. Each entry keeps the options that were
116
116
  rejected and what would reopen it, stays Proposed until a person accepts it, and is superseded by a
117
117
  new entry rather than edited.
118
118
 
package/docs/lifecycle.md CHANGED
@@ -43,6 +43,11 @@ aidlc transition my-thing
43
43
  only the context that step needs. `transition` evaluates the gates and advances the phase — it
44
44
  refuses if the phase's documents are not done, which is the point.
45
45
 
46
+ `init` and `update` record the CLI version they ran with as `aidlc_version:` in
47
+ `.aidlc/config.yaml`, which is committed. Inside a project, `aidlc --version` prints the command
48
+ line's version and the project's, and says what to run when they differ; `aidlc status` shows both
49
+ on its first line. Outside a project, `aidlc --version` prints the bare version, as before.
50
+
46
51
  **Templates** decide which phases apply. There are five, in `packages/content/templates`:
47
52
 
48
53
  | Template | Phases | Use it for |
@@ -104,6 +109,15 @@ Three gates are worth knowing because they block real work (four, in verified mo
104
109
  checkout on a merge ref never matches, so expect the re-run there. Without the `assurance` key
105
110
  nothing changes. The receipt is not tamper-proof yet: an agent could still write the file by hand
106
111
  until a guard on that lands.
112
+ - The **outcome gate** reads `deployment-record.md` when an instance leaves deployment. The record
113
+ used to count as complete by its artifact status alone, and under autopilot that status was set
114
+ seconds after the merge whatever the record said. Now the `## Outcome` section must say what
115
+ happened after the merge, or `Nothing deployed — <reason>`. A missing section, an empty one, the
116
+ placeholder `Pending — written after the merge.`, a body of only TBD/TODO, or "Nothing deployed"
117
+ with no reason is refused. `## Post-deployment verification` never counts: it is written before
118
+ the merge, so it is a plan. `--override` does not skip this gate, and an instance already complete
119
+ is not re-judged — `aidlc doctor` lists those instead. One reader (`closeout/outcome.ts`) serves
120
+ the transition, autopilot and doctor, so they cannot disagree about what counts as written.
107
121
 
108
122
  **Commands that need a person.** Three commands exist so that a person can say yes:
109
123
  `aidlc autopilot approve`, `aidlc transition --override` and `aidlc amend --confirm`. An agent that
@@ -178,6 +192,14 @@ that would leave a completed phase still citing a retired criterion, names each
178
192
  `Reopens:` it would accept. `--impact` ends with the same verdict in one line. The walk still never
179
193
  chooses what is reopened; it can only stop a write, never cause one.
180
194
 
195
+ Criterion ids are whole numbers, counted across the whole document. A sub-numbered id such as `AC-6.1`
196
+ in `Retires:` or `Issues:` is refused before the walk, with or without `--impact`, and nothing is
197
+ written (`--json` code `sub-numbered-criterion`). Before, the parser dropped it with a warning, the
198
+ amendment read `Issues: (none)`, the walk walked nothing, and the write recorded it as applied. Ids
199
+ are integers through the requirements parser, the traceability matrix and the walk, so supporting the
200
+ dotted shape would have changed all three; refusing it changed none. A range such as `AC-4..AC-6` is
201
+ still only warned about.
202
+
181
203
  **What the system does today** lives in `.aidlc/specs/`, one file per capability. Each instance's
182
204
  `requirements.md` describes a change; after enough of them, nobody can say what the system does without
183
205
  replaying all of them. The corpus is that replay, done once per instance instead of by every reader.
@@ -142,8 +142,10 @@ person confirming the retro is the check, which is why that confirmation shows a
142
142
  tier, and it never opens the file. A collision (both spellings present for one artifact) is
143
143
  *reported*, never resolved: renaming would clobber a real review to tidy a name.
144
144
  - `packages/content/guidance` — the layers shipped with the framework: `secure-defaults.md`,
145
- `accessibility.md`, `api-conventions.md`, `lessons-digest.md`, `content-operations.md`, plus
146
- `index.yaml`. The shipped digest is a **stub**, deliberately: lessons are project data, and a
145
+ `accessibility.md`, `api-conventions.md`, `lessons-digest.md`, `content-operations.md`,
146
+ `mermaid-diagrams.md`, plus `index.yaml`. `mermaid-diagrams.md` is shipped `on_demand: true`: the
147
+ design skill and the living-system-diagram step read it only when a diagram is drawn or changed,
148
+ and a project's own changed copy is never overwritten. The shipped digest is a **stub**, deliberately: lessons are project data, and a
147
149
  framework package must not hand one project's observations to every consumer.
148
150
  - `packages/cli/src/compile/guidance-budget.ts` — `alwaysReadLayers` and the two 20KB constants. One
149
151
  module so the skill prose, the `aidlc status` notice and the tests cite one declaration.
package/docs/roadmap.md CHANGED
@@ -152,7 +152,12 @@ 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. **Usage** lists every done item, most tokens first, with one bar each for input, output,
155
+ caused bugfixes. With a compliance pack installed, each card whose instance has a state directory also
156
+ gets one line per pack — evidenced, pending review, failing and not covered — taken from the rows
157
+ `aidlc compliance report --instance <name>` builds, with a ⚠ on any pending or failing count above zero;
158
+ an instance the report leaves out of scope says why instead. The view calls the report's own row builder
159
+ rather than re-reading findings, so the card and the report cannot disagree; with no pack the page is
160
+ unchanged. **Usage** lists every done item, most tokens first, with one bar each for input, output,
156
161
  cache read and cache write and each value printed beside its bar. Each type is scaled to its own largest
157
162
  value on the tab, because cache reads are usually most of a feature's tokens and one shared scale would
158
163
  leave the other three bars at nothing. Every cost on the page is tokens first, as `aidlc cost` prints them
@@ -265,6 +270,11 @@ minute (`--interval` to change it) and ends when the items it started are each r
265
270
  or, with `--all`, when nothing is ready and nothing is in flight. A restart ends it; asking again
266
271
  resumes.
267
272
 
273
+ It refuses to start, and exits 1 having written nothing, when the `aidlc` running it is older than
274
+ the `aidlc_version` in `.aidlc/config.yaml`. An older CLI skips every check added since, without a
275
+ word. The message names both versions; run `aidlc update --self-only` and start again. A project
276
+ that records no version starts as before.
277
+
268
278
  Each item goes through these steps:
269
279
 
270
280
  1. **Pick.** `aidlc roadmap next --autopilot` names the next ready backlog item, leaving items
@@ -286,6 +296,23 @@ Each item goes through these steps:
286
296
  not on the background run's `PATH` — parks the item at the next pass with
287
297
  `agent failed to launch: spawn <command> ENOENT`, and the run carries on.
288
298
 
299
+ **One agent per phase.** Each launch's prompt names one phase, the instance's `current_phase`
300
+ in the worktree, and tells the agent to complete that phase, commit and stop; testing's prompt
301
+ stops at the release boundary instead. A long session re-reads everything said before on every
302
+ reply, so by deployment one session for the whole lifecycle was paying for about 290k tokens a
303
+ turn. When a session reports `shipped` and its phase file reads `status: complete`, autopilot
304
+ releases the instance's claim from the worktree and launches a fresh agent for the phase the
305
+ instance is now at; at deployment it opens the pull request instead. A custom command reports
306
+ no result, so its phase file alone decides. A phase that did not complete is resumed once and
307
+ then parked, and no later phase is launched, so the phases already committed stand. Run again,
308
+ the item starts at its current phase. The cost cap counts every session the item has had.
309
+
310
+ **Each phase runs on its tier's model.** With a preset, a phase launch gets the model its tier
311
+ maps to in `.aidlc/config.yaml` — `--model` and `--effort` for Claude Code, `-m` for Codex — and
312
+ a resumed session gets the same flags it had. No model for the tier, or `inherit`, adds no flag.
313
+ CI-fix, conflict, check and retrospective launches never get one. See
314
+ [Skills and platforms](skills-and-platforms.md) for the tiers and where `aidlc init` writes them.
315
+
289
316
  **The agent reports a typed result.** With one of the Claude Code or Codex presets, autopilot
290
317
  asks the agent how it ended: Claude Code runs with `--output-format json` and an outcome schema,
291
318
  Codex with `--json`, `--output-schema` and `-o`, and the agent finishes by reporting `shipped`,
@@ -296,7 +323,10 @@ Each item goes through these steps:
296
323
  what it cost, its turns, its session id, and each refused tool call and failed command.
297
324
 
298
325
  **A stopped session is resumed once.** An item stopped by a dropped connection is resumed with
299
- its own session id at the next pass. One stopped by a session limit waits for the reset time
326
+ its own session id at the next pass. A dropped connection includes a server error, a rate
327
+ limit, a DNS failure (`ENOTFOUND`) and a 403 that carries Cloudflare's `Attention Required`
328
+ challenge page. A 403 without that page is an authentication failure and parks the item, so a
329
+ bad key is never retried as an outage. One stopped by a session limit waits for the reset time
300
330
  its message names — an hour when it names none, parked at once when the reset is more than six
301
331
  hours away — launches no other agent meanwhile, and is then resumed once. Stopping the same way
302
332
  again parks it with the session id. A command you typed yourself is launched exactly as you
@@ -312,7 +342,7 @@ Each item goes through these steps:
312
342
  3. **Your review, after each paused phase.** When a phase in `pause_after` is complete and
313
343
  unapproved, the item waits as `awaiting-review` — not parked. Read the artifact in the item's
314
344
  worktree, then `aidlc autopilot approve <instance>`; the next pass waits at the next paused
315
- phase, opens the pull request, or relaunches the agent to carry on. Autopilot reads the phase
345
+ phase, opens the pull request, or launches a fresh agent for the phase the instance is at. Autopilot reads the phase
316
346
  files, not the agent's word, so an agent that runs past a pause still cannot reach a pull request.
317
347
  A requirements or design phase that left nothing open — its artifact has a line reading
318
348
  "Nothing open" and its question file is absent or has every `[Answer]:` filled — is not waited
@@ -345,16 +375,28 @@ Each item goes through these steps:
345
375
  runs no release; if the instance is already closed there, it just stops tracking it. The
346
376
  close-out commits only what it wrote, with the cost records and review verdicts the worktree
347
377
  gained after its last commit; any other uncommitted file under `.aidlc` stays out and is named
348
- in the closing notice. Close the
378
+ in the closing notice. One exception: the item's old copy that `aidlc start` deleted from
379
+ `backlog/` (or another roadmap folder) and left uncommitted goes into the commit, so main
380
+ tracks the finished item only under `done/`; the notice names it as committed with earlier
381
+ uncommitted changes. Close the
349
382
  pull request without merging and it stops tracking it too. That pull request is yours while it
350
383
  waits: autopilot does not bring it up to date with main or chase its CI.
384
+
385
+ Either close-out writes the record's `## Outcome` first, when it is still unwritten: the merge
386
+ commit, CI as autopilot last read it, whether the release step ran, and — when
387
+ `autopilot.deploy_workflow` in `.aidlc/config.yaml` names a workflow file such as
388
+ `infra-deploy.yml` — that workflow's successful run on the merge commit. An outcome already
389
+ written, `Nothing deployed — <reason>` included, is left as it is. When something cannot be
390
+ checked — the deploy run failed, is still going, does not exist or cannot be read, the name is
391
+ not a workflow file name, the host is GitLab with a deploy workflow named, or the merge commit
392
+ cannot be read — autopilot writes nothing, leaves the instance open and stops the item with an
393
+ error naming the record. Finish it yourself: write `## Outcome`, run `aidlc transition`, then
394
+ `aidlc autopilot forget <instance>`. The item is not parked and the next run does not retry it.
351
395
  6. **Up to date with main**, for an item autopilot merges itself. Before merging, it merges
352
396
  `origin/main` into the branch in the
353
397
  item's worktree — locally, so the repository's `merge=union` rules apply — pushes, and waits for
354
- CI on the new head. Just before that merge it commits the worktree's two cost ledgers,
355
- `.aidlc/cost/unattributed.ndjson` and the instance's `costs.ndjson`, and nothing else: the cost
356
- hook keeps writing to them after the agent's last commit, and git refuses to merge over an
357
- uncommitted change to a file main also changed. A conflict — a merge that leaves unmerged
398
+ CI on the new head. The cost ledgers are not in the tree — they live in the git common
399
+ directory — so there is nothing to commit before that merge. A conflict — a merge that leaves unmerged
358
400
  files — goes back to the item's agent to resolve, twice at most, then the item is parked. A merge
359
401
  git refuses without one, because some other local change would be overwritten, is not a
360
402
  conflict: it halts the queue as a failed update with git's message, and `aidlc autopilot run`
@@ -372,18 +414,22 @@ Each item goes through these steps:
372
414
  `aidlc-retrospective` skill, and holds the merge lane while it runs: nothing merges or closes
373
415
  out, though builds, CI and pull requests carry on. The agent commits nothing; autopilot commits
374
416
  on main, by pathspec, only what changed among the instance's `retrospective.md`,
375
- `.aidlc/guidance/lessons.md`, new files in the roadmap's `inbox/` and the instance's
376
- `costs.ndjson`, then pushes and removes the marker itself — the agent cannot write under
417
+ `.aidlc/guidance/lessons.md` and new files in the roadmap's `inbox/`, then pushes and removes
418
+ the marker itself — the agent cannot write under
377
419
  `.git/`. It counts as finished on exit 0 with the outcome `shipped`, or, for a custom agent
378
420
  command that reports no outcome, exit 0 with the instance's `retrospective.md` on disk. Any
379
- other path that changed — the watching session's cost hook, a
380
- digest the agent should not have touched — is left as it is and named. A retrospective that
421
+ other path that changed — a digest the agent should not have touched — is left as it is and
422
+ named. A retrospective that
381
423
  changed an existing lesson line, added more than three lessons or two follow-ups, touched one of
382
424
  those paths while it was already uncommitted, failed, or ran past 30 minutes or the cost cap
383
- commits nothing but its cost lines: its other changes are undone, the marker is put back for
425
+ commits nothing: its changes are undone, the marker is put back for
384
426
  `aidlc autopilot pending`, and one line says why. It never parks the item or halts the lane. Its
385
- session's cost is recorded against the instance (`AIDLC_COST_INSTANCE`), not in
386
- `unattributed.ndjson`. Consolidating `lessons.md` and rewriting `lessons-digest.md` stay yours.
427
+ session's cost is recorded once against the instance (`AIDLC_COST_INSTANCE`), in its ledger in
428
+ the git common directory, not in the unattributed pool. When you close an instance by hand
429
+ with `aidlc transition` in the primary checkout on main, the same retrospective starts in the
430
+ background, commits on main the same way and pushes nothing; your next push carries it. The
431
+ same close-out then removes the instance's worktree unless it has uncommitted changes, its
432
+ branch has commits main lacks, or you ran the transition inside it. Consolidating `lessons.md` and rewriting `lessons-digest.md` stay yours.
387
433
 
388
434
  At most two items build at once, and never more than you asked for. Autopilot never moves anything
389
435
  between `inbox/`, `backlog/` and `hold/` except to park what it is building or could not start, and
@@ -130,25 +130,43 @@ and an unattended run is a single message, so a read-only skill loaded anywhere
130
130
  and Write away for the rest of the run. The review, the one skill that must not write, already gets
131
131
  that from its agent.
132
132
 
133
- **Model and effort per tier** are off until you set them, in `.aidlc/config.yaml`:
133
+ **Model and effort per tier** live in `.aidlc/config.yaml`. `aidlc init` asks which model each tier
134
+ uses, for each platform you configure, and `aidlc autopilot setup` asks the same for the agent you
135
+ pick. Claude Code offers `opus`, `sonnet` and `haiku` by alias, so the defaults follow each new model
136
+ release, and defaults to `opus` for reasoning and standard — coding stays on the top model — and
137
+ `sonnet` for mechanical, where testing and deployment run. `aidlc init --non-interactive`,
138
+ `init --platform` and a non-interactive setup write those defaults only for a platform with no set yet,
139
+ and pressing Enter through a re-run leaves a saved set exactly as it was, a hand-written model or an
140
+ `effort` included. Init never asks about `effort`.
134
141
 
135
142
  ```yaml
136
143
  skill_tiers:
137
144
  mechanical:
138
145
  model: sonnet
139
146
  effort: low
140
- reasoning:
141
- effort: high
147
+ reasoning: { model: opus }
148
+ standard: { model: opus }
149
+ codex:
150
+ reasoning: { model: inherit }
151
+ standard: { model: inherit }
152
+ mechanical: { model: inherit }
142
153
  ```
143
154
 
144
- Each value is written as `model` or `effort` into the Claude Code shims of the skills in that tier;
145
- `inherit`, or no entry, writes nothing. `effort` takes `low`, `medium`, `high`, `xhigh` or `max`. A
146
- `model` must be one name of letters, digits and `. _ - : / [ ]` — a value that is not is warned about and
147
- left out, which is also what stops a config value from adding a header line of its own. Two limits are
148
- Claude Code's, not AIDLC's. The override lasts until your next message, and it applies only when the
149
- phase skill itself is invoked, as `/aidlc-testing`; `aidlc-continue` reads a phase's body directly, so
150
- an unattended run is not routed. Codex gets neither value: it would need a custom agent or a profile per
151
- tier, which is not built.
155
+ Claude Code's set is the flat entries; Codex's is the `codex` block, which Claude Code never reads, so a
156
+ Claude Code shim cannot carry a Codex model name. Codex offers `inherit` or a model name you type, and
157
+ defaults to `inherit`: no Codex model list or default could yet be grounded in Codex's own
158
+ documentation, which is the one place a Codex default may come from.
159
+
160
+ Each Claude Code value is written as `model` or `effort` into the Claude Code shims of the skills in
161
+ that tier; `inherit`, or no entry, writes nothing. `effort` takes `low`, `medium`, `high`, `xhigh` or
162
+ `max`. A `model` must be one name of letters, digits and `. _ - : / [ ]` — a value that is not is warned
163
+ about and left out, which is also what stops a config value from adding a header line or an argument
164
+ of its own. Two limits are Claude Code's, not AIDLC's. The override lasts until your next message, and
165
+ it applies only when the phase skill itself is invoked, as `/aidlc-testing`; `aidlc-continue` reads a
166
+ phase's body directly. That is why autopilot does not rely on the shims: it starts each phase as a fresh
167
+ agent and passes the tier's model on the command line (`--model`, `--effort`; `-m` for Codex, which gets
168
+ no effort flag). Codex gets neither value in its skill files; the launch flag is the only way a tier
169
+ reaches Codex.
152
170
 
153
171
  Those files also carry a **top-level `questions:` key**, outside the phase-keyed `capabilities:` map, and
154
172
  the reason it sits outside is not cosmetic. The shared capability resolution returns exactly one
@@ -13,3 +13,8 @@ layers:
13
13
  - name: lessons-digest
14
14
  file: lessons-digest.md
15
15
  always_pointer: true
16
+ # On demand: read only when a diagram is drawn or changed, never on phase entry, and no
17
+ # skill inlines it through a guidance placeholder (living-system-diagram/AC-12).
18
+ - name: mermaid-diagrams
19
+ file: mermaid-diagrams.md
20
+ on_demand: true