@rasensio/aidlc-content 2.27.0 → 2.30.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 (41) 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 +30 -3
  11. package/docs/index.yaml +6 -0
  12. package/docs/knowledge-graph.md +2 -2
  13. package/docs/lifecycle.md +14 -0
  14. package/docs/reviews-and-guidance.md +4 -2
  15. package/docs/roadmap.md +65 -16
  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/gxp/controls.yaml +479 -0
  22. package/packs/gxp/guidance/gxp-constraints.md +159 -0
  23. package/packs/gxp/pack.yaml +35 -0
  24. package/packs/sox/controls.yaml +2 -1
  25. package/packs/sox/guidance/sox-constraints.md +2 -1
  26. package/resources/rules/decision-register.md +3 -3
  27. package/resources/rules/departures.md +3 -1
  28. package/resources/rules/fresh-main.md +25 -0
  29. package/resources/rules/unattended.md +1 -1
  30. package/skills/00-overview.md +3 -4
  31. package/skills/03-entry-point.md +1 -0
  32. package/skills/04-roadmap.md +1 -1
  33. package/skills/20-requirements.md +1 -0
  34. package/skills/30-design.md +16 -3
  35. package/skills/50-testing.md +15 -0
  36. package/skills/60-deployment.md +38 -4
  37. package/skills/81-continue.md +2 -1
  38. package/skills/84-autopilot.md +1 -1
  39. package/skills/90-retrospective.md +1 -1
  40. package/templates/quick-feature.yaml +3 -0
  41. 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,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EA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B,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,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,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
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,EACL,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,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,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,QAAQ,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,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACtD,IAAI,EAAE,CAAC;IAEV,OAAO,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QAC1B,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CA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AC,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.
@@ -133,7 +133,7 @@ Some checks report and repair nothing, on purpose. A `report`-tier migration sta
133
133
  only remedy is a decision, and it never touches `doctor`'s exit code, so `--yes` cannot
134
134
  make it write. Among them: an out-of-date compliance pack, a configured roadmap projection with no
135
135
  `gh` on `PATH`, `knowledge-stale-sources`, `roadmap-item-summary`, `bare-ac-in-tests`,
136
- `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.
137
137
 
138
138
  **The nested ignore files are committed.** `.aidlc/cost/.gitignore` and
139
139
  `.aidlc/knowledge/.gitignore` ignore the cost session files and the knowledge index, and neither
@@ -198,6 +198,21 @@ once resolved, is reported as a defect in the entry and **never passed to a file
198
198
  tracked YAML file is not a trusted one, and it must not be able to make `doctor` probe paths outside
199
199
  the repo.
200
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
+
201
216
  **`bare-ac-in-tests`** names the test lines that cite a criterion as a bare `AC-<n>` instead of
202
217
  `<instance>/AC-<n>`, as `path:line` followed by the ids on that line. A bare reference counts toward
203
218
  coverage only while exactly one instance defines that id, so it stops counting, with nothing failing,
@@ -209,6 +224,13 @@ gate warns about those. It lists the first 20 lines and ends with `… and <N> m
209
224
  that plants references in a fixture should build them at run time, or it becomes a bare reference
210
225
  itself.
211
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
+
212
234
  `compliance remove` and `upgrade` follow the same rule for the pack record in `.aidlc/config.yaml`.
213
235
  They delete only files whose recorded path stays inside `.aidlc/guidance/`, and only when that
214
236
  entry's own recorded hash matches what is on disk. The record is tracked, so a cloned repo writes
@@ -222,12 +244,17 @@ vouch for `../../victim.md` and get a file outside the project deleted (security
222
244
  - `sox` — SOX ITGC, change management only.
223
245
  - `gdpr` — GDPR Articles 25, 30, 32 and 35. Not legal advice.
224
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.
225
248
 
226
249
  `aspice` gives process evidence per change and rates no capability level: an assessor rates an
227
250
  organisation's processes across its projects, and the trail is input to that rating.
228
251
 
229
- `sox` and `aspice` are scoped to an industry, `financial-services` and `automotive`, so `aidlc init`
230
- 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
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
231
258
  condition.
232
259
 
233
260
  Two rules for anyone acting on a `check`:
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
@@ -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
@@ -140,7 +140,12 @@ card — and each card links to its item file, its instance folder and retrospec
140
140
  on GitHub when the branch and `origin` are known. A **Summaries** toggle shows each card's plain summary
141
141
  under its title. Each open card says how long it has sat in its state ("in backlog 9 days", from its last
142
142
  history entry), and inbox, backlog and in-progress cards past 30 days are marked stale. Cards share a look
143
- per status: inbox dashed, backlog gray, in progress yellow, done green, hold dotted and faded. Clicking a
143
+ per status: inbox dashed, backlog gray, in progress yellow, done green, hold dotted and faded. When the
144
+ project declares `run` in `roadmap.item_fields`, every card, row and panel also shows the item's run mode:
145
+ `autopilot`, `attended`, `not set · autopilot takes it` or `run: invalid` (the raw value in its title),
146
+ the last two styled as warnings. An unset item is a warning, not a neutral third answer, because autopilot
147
+ builds it exactly as if it said `autopilot`. The page reads `run` with the same `parseRun` autopilot calls,
148
+ so the two cannot disagree; without `run` declared the page is unchanged. Clicking a
144
149
  card opens its executive summary, the rest of the item's text, its dependencies and a copy button for its
145
150
  next command (a triage prompt, start in a worktree, rank, or `aidlc continue`); the page itself runs
146
151
  nothing, and links in item text show as text. **Dependencies** lists every item as a card with a verdict —
@@ -270,6 +275,11 @@ minute (`--interval` to change it) and ends when the items it started are each r
270
275
  or, with `--all`, when nothing is ready and nothing is in flight. A restart ends it; asking again
271
276
  resumes.
272
277
 
278
+ It refuses to start, and exits 1 having written nothing, when the `aidlc` running it is older than
279
+ the `aidlc_version` in `.aidlc/config.yaml`. An older CLI skips every check added since, without a
280
+ word. The message names both versions; run `aidlc update --self-only` and start again. A project
281
+ that records no version starts as before.
282
+
273
283
  Each item goes through these steps:
274
284
 
275
285
  1. **Pick.** `aidlc roadmap next --autopilot` names the next ready backlog item, leaving items
@@ -291,6 +301,23 @@ Each item goes through these steps:
291
301
  not on the background run's `PATH` — parks the item at the next pass with
292
302
  `agent failed to launch: spawn <command> ENOENT`, and the run carries on.
293
303
 
304
+ **One agent per phase.** Each launch's prompt names one phase, the instance's `current_phase`
305
+ in the worktree, and tells the agent to complete that phase, commit and stop; testing's prompt
306
+ stops at the release boundary instead. A long session re-reads everything said before on every
307
+ reply, so by deployment one session for the whole lifecycle was paying for about 290k tokens a
308
+ turn. When a session reports `shipped` and its phase file reads `status: complete`, autopilot
309
+ releases the instance's claim from the worktree and launches a fresh agent for the phase the
310
+ instance is now at; at deployment it opens the pull request instead. A custom command reports
311
+ no result, so its phase file alone decides. A phase that did not complete is resumed once and
312
+ then parked, and no later phase is launched, so the phases already committed stand. Run again,
313
+ the item starts at its current phase. The cost cap counts every session the item has had.
314
+
315
+ **Each phase runs on its tier's model.** With a preset, a phase launch gets the model its tier
316
+ maps to in `.aidlc/config.yaml` — `--model` and `--effort` for Claude Code, `-m` for Codex — and
317
+ a resumed session gets the same flags it had. No model for the tier, or `inherit`, adds no flag.
318
+ CI-fix, conflict, check and retrospective launches never get one. See
319
+ [Skills and platforms](skills-and-platforms.md) for the tiers and where `aidlc init` writes them.
320
+
294
321
  **The agent reports a typed result.** With one of the Claude Code or Codex presets, autopilot
295
322
  asks the agent how it ended: Claude Code runs with `--output-format json` and an outcome schema,
296
323
  Codex with `--json`, `--output-schema` and `-o`, and the agent finishes by reporting `shipped`,
@@ -301,7 +328,10 @@ Each item goes through these steps:
301
328
  what it cost, its turns, its session id, and each refused tool call and failed command.
302
329
 
303
330
  **A stopped session is resumed once.** An item stopped by a dropped connection is resumed with
304
- its own session id at the next pass. One stopped by a session limit waits for the reset time
331
+ its own session id at the next pass. A dropped connection includes a server error, a rate
332
+ limit, a DNS failure (`ENOTFOUND`) and a 403 that carries Cloudflare's `Attention Required`
333
+ challenge page. A 403 without that page is an authentication failure and parks the item, so a
334
+ bad key is never retried as an outage. One stopped by a session limit waits for the reset time
305
335
  its message names — an hour when it names none, parked at once when the reset is more than six
306
336
  hours away — launches no other agent meanwhile, and is then resumed once. Stopping the same way
307
337
  again parks it with the session id. A command you typed yourself is launched exactly as you
@@ -317,7 +347,7 @@ Each item goes through these steps:
317
347
  3. **Your review, after each paused phase.** When a phase in `pause_after` is complete and
318
348
  unapproved, the item waits as `awaiting-review` — not parked. Read the artifact in the item's
319
349
  worktree, then `aidlc autopilot approve <instance>`; the next pass waits at the next paused
320
- phase, opens the pull request, or relaunches the agent to carry on. Autopilot reads the phase
350
+ phase, opens the pull request, or launches a fresh agent for the phase the instance is at. Autopilot reads the phase
321
351
  files, not the agent's word, so an agent that runs past a pause still cannot reach a pull request.
322
352
  A requirements or design phase that left nothing open — its artifact has a line reading
323
353
  "Nothing open" and its question file is absent or has every `[Answer]:` filled — is not waited
@@ -350,16 +380,28 @@ Each item goes through these steps:
350
380
  runs no release; if the instance is already closed there, it just stops tracking it. The
351
381
  close-out commits only what it wrote, with the cost records and review verdicts the worktree
352
382
  gained after its last commit; any other uncommitted file under `.aidlc` stays out and is named
353
- in the closing notice. Close the
383
+ in the closing notice. One exception: the item's old copy that `aidlc start` deleted from
384
+ `backlog/` (or another roadmap folder) and left uncommitted goes into the commit, so main
385
+ tracks the finished item only under `done/`; the notice names it as committed with earlier
386
+ uncommitted changes. Close the
354
387
  pull request without merging and it stops tracking it too. That pull request is yours while it
355
388
  waits: autopilot does not bring it up to date with main or chase its CI.
389
+
390
+ Either close-out writes the record's `## Outcome` first, when it is still unwritten: the merge
391
+ commit, CI as autopilot last read it, whether the release step ran, and — when
392
+ `autopilot.deploy_workflow` in `.aidlc/config.yaml` names a workflow file such as
393
+ `infra-deploy.yml` — that workflow's successful run on the merge commit. An outcome already
394
+ written, `Nothing deployed — <reason>` included, is left as it is. When something cannot be
395
+ checked — the deploy run failed, is still going, does not exist or cannot be read, the name is
396
+ not a workflow file name, the host is GitLab with a deploy workflow named, or the merge commit
397
+ cannot be read — autopilot writes nothing, leaves the instance open and stops the item with an
398
+ error naming the record. Finish it yourself: write `## Outcome`, run `aidlc transition`, then
399
+ `aidlc autopilot forget <instance>`. The item is not parked and the next run does not retry it.
356
400
  6. **Up to date with main**, for an item autopilot merges itself. Before merging, it merges
357
401
  `origin/main` into the branch in the
358
402
  item's worktree — locally, so the repository's `merge=union` rules apply — pushes, and waits for
359
- CI on the new head. Just before that merge it commits the worktree's two cost ledgers,
360
- `.aidlc/cost/unattributed.ndjson` and the instance's `costs.ndjson`, and nothing else: the cost
361
- hook keeps writing to them after the agent's last commit, and git refuses to merge over an
362
- uncommitted change to a file main also changed. A conflict — a merge that leaves unmerged
403
+ CI on the new head. The cost ledgers are not in the tree — they live in the git common
404
+ directory — so there is nothing to commit before that merge. A conflict — a merge that leaves unmerged
363
405
  files — goes back to the item's agent to resolve, twice at most, then the item is parked. A merge
364
406
  git refuses without one, because some other local change would be overwritten, is not a
365
407
  conflict: it halts the queue as a failed update with git's message, and `aidlc autopilot run`
@@ -377,18 +419,22 @@ Each item goes through these steps:
377
419
  `aidlc-retrospective` skill, and holds the merge lane while it runs: nothing merges or closes
378
420
  out, though builds, CI and pull requests carry on. The agent commits nothing; autopilot commits
379
421
  on main, by pathspec, only what changed among the instance's `retrospective.md`,
380
- `.aidlc/guidance/lessons.md`, new files in the roadmap's `inbox/` and the instance's
381
- `costs.ndjson`, then pushes and removes the marker itself — the agent cannot write under
422
+ `.aidlc/guidance/lessons.md` and new files in the roadmap's `inbox/`, then pushes and removes
423
+ the marker itself — the agent cannot write under
382
424
  `.git/`. It counts as finished on exit 0 with the outcome `shipped`, or, for a custom agent
383
425
  command that reports no outcome, exit 0 with the instance's `retrospective.md` on disk. Any
384
- other path that changed — the watching session's cost hook, a
385
- digest the agent should not have touched — is left as it is and named. A retrospective that
426
+ other path that changed — a digest the agent should not have touched — is left as it is and
427
+ named. A retrospective that
386
428
  changed an existing lesson line, added more than three lessons or two follow-ups, touched one of
387
429
  those paths while it was already uncommitted, failed, or ran past 30 minutes or the cost cap
388
- commits nothing but its cost lines: its other changes are undone, the marker is put back for
430
+ commits nothing: its changes are undone, the marker is put back for
389
431
  `aidlc autopilot pending`, and one line says why. It never parks the item or halts the lane. Its
390
- session's cost is recorded against the instance (`AIDLC_COST_INSTANCE`), not in
391
- `unattributed.ndjson`. Consolidating `lessons.md` and rewriting `lessons-digest.md` stay yours.
432
+ session's cost is recorded once against the instance (`AIDLC_COST_INSTANCE`), in its ledger in
433
+ the git common directory, not in the unattributed pool. When you close an instance by hand
434
+ with `aidlc transition` in the primary checkout on main, the same retrospective starts in the
435
+ background, commits on main the same way and pushes nothing; your next push carries it. The
436
+ same close-out then removes the instance's worktree unless it has uncommitted changes, its
437
+ branch has commits main lacks, or you ran the transition inside it. Consolidating `lessons.md` and rewriting `lessons-digest.md` stay yours.
392
438
 
393
439
  At most two items build at once, and never more than you asked for. Autopilot never moves anything
394
440
  between `inbox/`, `backlog/` and `hold/` except to park what it is building or could not start, and
@@ -448,7 +494,10 @@ six questions on its own. Each is a list with one choice marked recommended:
448
494
  - **The release step.** In a project with `scripts/autopilot-release.sh`, running it after each
449
495
  merge (recommended); otherwise merge only, and you release when you choose. This repository's
450
496
  script runs `release-bookkeeping --write`, commits the manifest and `.aidlc`, and runs
451
- `scripts/release.sh` with the bump bookkeeping printed. It runs only for an item whose stop is
497
+ `scripts/release.sh` with the bump bookkeeping printed, then waits for the tag's `release.yml`
498
+ run and succeeds only when that run does. A failed, missing or unfinished publish run halts the
499
+ queue with the run's URL: `release.sh` exits 0 as soon as the tag is pushed, so without the
500
+ wait a failed publish looked like a finished release. It runs only for an item whose stop is
452
501
  `release`.
453
502
 
454
503
  Flags skip the questions: `--agent`, `--parallel`, `--token-cap <tokens|none>` (`40M`, `500k`),
@@ -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