@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/templates.d.ts +7 -0
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +9 -0
- package/dist/templates.js.map +1 -1
- package/docs/cost-tracking.md +25 -3
- package/docs/hygiene-and-compliance.md +48 -5
- package/docs/index.yaml +6 -0
- package/docs/knowledge-graph.md +2 -2
- package/docs/lifecycle.md +22 -0
- package/docs/reviews-and-guidance.md +4 -2
- package/docs/roadmap.md +61 -15
- package/docs/skills-and-platforms.md +29 -11
- package/guidance/index.yaml +5 -0
- package/guidance/mermaid-diagrams.md +219 -0
- package/howto/make-a-custom-template.md +78 -0
- package/package.json +1 -1
- package/packs/aspice/controls.yaml +561 -0
- package/packs/aspice/guidance/aspice-constraints.md +109 -0
- package/packs/aspice/pack.yaml +30 -0
- package/packs/gdpr/controls.yaml +287 -0
- package/packs/gdpr/guidance/gdpr-constraints.md +141 -0
- package/packs/gdpr/pack.yaml +24 -0
- package/packs/gxp/controls.yaml +479 -0
- package/packs/gxp/guidance/gxp-constraints.md +159 -0
- package/packs/gxp/pack.yaml +35 -0
- package/packs/sox/controls.yaml +229 -0
- package/packs/sox/guidance/sox-constraints.md +100 -0
- package/packs/sox/pack.yaml +30 -0
- package/resources/rules/decision-register.md +3 -3
- package/resources/rules/departures.md +3 -1
- package/resources/rules/fresh-main.md +25 -0
- package/resources/rules/unattended.md +1 -1
- package/skills/00-overview.md +3 -4
- package/skills/03-entry-point.md +1 -0
- package/skills/20-requirements.md +4 -2
- package/skills/30-design.md +16 -3
- package/skills/50-testing.md +15 -0
- package/skills/60-deployment.md +38 -4
- package/skills/81-continue.md +2 -1
- package/skills/84-autopilot.md +1 -1
- package/skills/90-retrospective.md +1 -1
- package/templates/quick-feature.yaml +3 -0
- package/templates/system.md +39 -0
package/skills/60-deployment.md
CHANGED
|
@@ -48,6 +48,21 @@ The artifacts your template's deployment phase declares in `required_artifacts`
|
|
|
48
48
|
dir if unsure. Whatever the filename, the content is the release plan, rollback strategy, and
|
|
49
49
|
deployment checklist.
|
|
50
50
|
|
|
51
|
+
### The outcome section
|
|
52
|
+
|
|
53
|
+
`## Outcome` in `deployment-record.md` is the one section that holds the outcome: what
|
|
54
|
+
happened after the merge. It is written after the merge. The sections written before it,
|
|
55
|
+
`## Post-deployment verification` among them, are the plan and do not count.
|
|
56
|
+
|
|
57
|
+
- Before the merge, leave `## Outcome` followed by the placeholder line
|
|
58
|
+
`Pending — written after the merge.`
|
|
59
|
+
- A change that deploys nothing writes `Nothing deployed — <reason>` there instead.
|
|
60
|
+
- Under autopilot the close-out writes `## Outcome` itself, from the merge commit, CI, the
|
|
61
|
+
release step and the deploy workflow it checked. So the phase leaves the placeholder —
|
|
62
|
+
unless the change deploys nothing, when it writes the nothing-deployed line.
|
|
63
|
+
- `aidlc transition` out of deployment refuses while the section is missing, empty, or the
|
|
64
|
+
placeholder.
|
|
65
|
+
|
|
51
66
|
## Instructions
|
|
52
67
|
|
|
53
68
|
> {{glossary:gate}}
|
|
@@ -69,18 +84,37 @@ deployment checklist.
|
|
|
69
84
|
section: the knowledge graph records what the code looks like and cannot afford to record why, so
|
|
70
85
|
a reason that lives nowhere else is one the next agent will simplify away. This is a checklist
|
|
71
86
|
step, not a gate — no phase is blocked on it.
|
|
72
|
-
5. **
|
|
87
|
+
5. **Update the living system diagram.** Only when this instance drew `architecture-diagram.md`;
|
|
88
|
+
otherwise skip this step. In this instance's own branch, before release:
|
|
89
|
+
- Make `.aidlc/architecture/system.md` match what was built, not what design planned.
|
|
90
|
+
- When the file does not exist, create it and its folder by copying
|
|
91
|
+
`.aidlc/resources/templates/system.md`, leaving out the `<!-- aidlc:generated … -->` comment under its title. Then, when
|
|
92
|
+
`.aidlc/context/architecture.md` exists and has no line naming `.aidlc/architecture/system.md`,
|
|
93
|
+
add this section to it, and never a diagram:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
## System Diagram
|
|
97
|
+
|
|
98
|
+
The system as it stands is drawn in `.aidlc/architecture/system.md`. Read its section headings first, then only the diagrams the work touches.
|
|
99
|
+
```
|
|
100
|
+
- Edit only the diagrams the work touched and leave the rest as written. Never regenerate the
|
|
101
|
+
whole file.
|
|
102
|
+
- Read `.aidlc/guidance/mermaid-diagrams.md` before editing.
|
|
103
|
+
- Name the diagrams changed in the deployment artifact, or say none applied. No gate checks it.
|
|
104
|
+
6. **Pre-deployment checks.** Verify:
|
|
73
105
|
- CI pipeline passes
|
|
74
106
|
- No critical findings open from adversarial reviews
|
|
75
107
|
- Dependencies are pinned and audited
|
|
76
|
-
|
|
77
|
-
|
|
108
|
+
7. **Execute deployment.** Follow the release plan step by step.
|
|
109
|
+
8. **Verify.** Confirm the deployment succeeded using the monitoring steps.
|
|
110
|
+
9. **Write the outcome.** After the merge, replace the placeholder under `## Outcome` with
|
|
111
|
+
what happened — or `Nothing deployed — <reason>` — as **The outcome section** above says.
|
|
78
112
|
|
|
79
113
|
## Exit Criteria
|
|
80
114
|
|
|
81
115
|
- Every artifact the template's deployment phase requires exists, with release plan and rollback strategy
|
|
82
116
|
- Deployment executed successfully (or plan approved for manual execution)
|
|
83
|
-
-
|
|
117
|
+
- `## Outcome` says what happened after the merge, or why nothing deployed
|
|
84
118
|
|
|
85
119
|
## Security Confirmation
|
|
86
120
|
|
package/skills/81-continue.md
CHANGED
|
@@ -18,6 +18,7 @@ Resume an in-progress lifecycle instance efficiently. Determine where work left
|
|
|
18
18
|
|
|
19
19
|
> {{glossary:claim}}
|
|
20
20
|
|
|
21
|
+
0. **Bring main up to date.** Before reading any state, run the step in **The fresh-main rule** (`.aidlc/resources/rules/fresh-main.md`).
|
|
21
22
|
1. **Load state.** Read `.aidlc/state/<instance>/instance.yaml` to get:
|
|
22
23
|
- Current phase
|
|
23
24
|
- Template name
|
|
@@ -28,7 +29,7 @@ Resume an in-progress lifecycle instance efficiently. Determine where work left
|
|
|
28
29
|
- Check `renewed_at` against the staleness timeout (default: 60 minutes)
|
|
29
30
|
- If stale: warn and request override confirmation before taking over
|
|
30
31
|
- If active: warn and do NOT proceed without explicit override
|
|
31
|
-
3. **Claim the instance.** Prefer `aidlc claim <instance>` — it writes the claim and appends the claim event to `sessions.ndjson` (the durable session↔instance record cost attribution depends on). Without the CLI, do both: write the claim file (or `claim:` field in the fallback case), then append the claim event to
|
|
32
|
+
3. **Claim the instance.** Prefer `aidlc claim <instance>` — it writes the claim and appends the claim event to `sessions.ndjson` (the durable session↔instance record cost attribution depends on). Without the CLI, do both: write the claim file (or `claim:` field in the fallback case), then append the claim event to the instance's `sessions.ndjson` in `<git-common-dir>/aidlc/records/` (append-only; the state protocol in **aidlc-overview** gives the path). Renew (`aidlc claim --renew`) at every phase transition. Release the same way when you stop (`aidlc release <instance>`).
|
|
32
33
|
4. **Determine next step.** Apply this priority:
|
|
33
34
|
- If current phase has incomplete required artifacts → produce the next artifact
|
|
34
35
|
- If the current phase is implementation and a task-bearing `tasks.md` exists → resume at the lowest-numbered open (`[ ]`) task; do NOT re-derive the plan from design.md
|
package/skills/84-autopilot.md
CHANGED
|
@@ -78,7 +78,7 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
|
|
|
78
78
|
- Parks an item (moves it to `hold/` with a reason) when its agent stops short of a stop it was told to reach, when CI fails twice, or when it passes the cost cap. An item waiting for a person is never parked, and holds no build slot, so the run goes on starting others.
|
|
79
79
|
- An agent that loses the network exits, and is parked. Sleep cuts the network, so a run on a laptop needs `aidlc autopilot pause` first: it freezes the run and its agents where they are, and `aidlc autopilot resume` carries on.
|
|
80
80
|
- Before each merge, brings the item's branch up to date with main and waits for CI on the new head. A conflict with main goes back to the item's agent, twice at most, then the item is parked. A pull request someone merged by hand is dropped from tracking.
|
|
81
|
-
- After each close-out, after its own merge or a person's, runs the item's retrospective: one agent, unattended, in the primary checkout, one at a time in the merge lane — nothing else merges or closes out while it runs, though builds carry on. Autopilot commits and pushes only its files: the instance's `retrospective.md`, up to three lessons appended to `.aidlc/guidance/lessons.md`, up to two new files in `.aidlc/roadmap/inbox
|
|
81
|
+
- After each close-out, after its own merge or a person's, runs the item's retrospective: one agent, unattended, in the primary checkout, one at a time in the merge lane — nothing else merges or closes out while it runs, though builds carry on. Autopilot commits and pushes only its files: the instance's `retrospective.md`, up to three lessons appended to `.aidlc/guidance/lessons.md`, and up to two new files in `.aidlc/roadmap/inbox/`; its cost goes to the instance's ledger in the git common directory, which nothing commits. Any other path that changed is left as it is and named. A retrospective that fails, breaks a limit, runs past 30 minutes or past the cost cap commits nothing, undoes its changes and leaves its marker for `aidlc autopilot pending`; it never parks the item. Consolidating `lessons.md` and rewriting `.aidlc/guidance/lessons-digest.md` stay a person's step.
|
|
82
82
|
- Halts the merge queue when a step fails. Running `aidlc autopilot run` again retries a failure that came before the merge; a failed release is for a person — `aidlc autopilot status` shows the error. `aidlc autopilot forget <instance>` stops tracking an item finished by hand.
|
|
83
83
|
- Sends a desktop notification, once each, when an item is parked, fails, waits for the user, or is done, and when the run ends. `notify: false` under `autopilot:` in `.aidlc/config.yaml` turns them off.
|
|
84
84
|
- Ends when the asked-for items are each released or parked, or, with `--all`, when nothing is ready and nothing is in flight. An item waiting for a person keeps its run alive, so the run is still there to carry the item on after an approval or a merge.
|
|
@@ -28,7 +28,7 @@ Run the retro **before** any completion cleanup (worktree removal, claim release
|
|
|
28
28
|
> {{glossary:retrospective}}
|
|
29
29
|
|
|
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
|
-
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.
|
|
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 the instance's `costs.ndjson` raw (under `<git-common-dir>/aidlc/records/`) 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
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.
|
|
@@ -10,6 +10,9 @@ phases:
|
|
|
10
10
|
required_artifacts:
|
|
11
11
|
- name: design.md
|
|
12
12
|
- name: tasks.md
|
|
13
|
+
# Drawn only when the change alters the system's shape (living-system-diagram/AC-2).
|
|
14
|
+
optional_artifacts:
|
|
15
|
+
- name: architecture-diagram.md
|
|
13
16
|
- name: implementation
|
|
14
17
|
required_artifacts:
|
|
15
18
|
- name: code-complete.md
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# System diagram
|
|
2
|
+
|
|
3
|
+
The system as it stands: its components, its stores, the systems outside it, and how data moves
|
|
4
|
+
between them. One `##` section per diagram, each a single Mermaid diagram.
|
|
5
|
+
|
|
6
|
+
- An instance that drew `architecture-diagram.md` updates this file in its own branch, before
|
|
7
|
+
merge, to match what was built, not what design planned. An instance that drew none leaves it
|
|
8
|
+
alone.
|
|
9
|
+
- Edit only the diagrams the work touched and leave the rest as written. Never regenerate the
|
|
10
|
+
whole file.
|
|
11
|
+
- Read it head first: the section headings, then only the diagrams the work touches.
|
|
12
|
+
- Mermaid only. Before drawing or changing a diagram, read `.aidlc/guidance/mermaid-diagrams.md`.
|
|
13
|
+
- Replace the placeholder section below with the first real diagram, and name each section after
|
|
14
|
+
what its diagram shows.
|
|
15
|
+
|
|
16
|
+
## Legend
|
|
17
|
+
|
|
18
|
+
Shape carries the meaning, never colour alone.
|
|
19
|
+
|
|
20
|
+
```mermaid
|
|
21
|
+
flowchart LR
|
|
22
|
+
component[Component: a service, process or package]
|
|
23
|
+
store[(Store: a database, queue or bucket)]
|
|
24
|
+
external([External system: something this project does not run])
|
|
25
|
+
subgraph boundary [Boundary: an account, network, tenant or trust zone]
|
|
26
|
+
inside[Component inside the boundary]
|
|
27
|
+
end
|
|
28
|
+
component -->|synchronous call| store
|
|
29
|
+
component -.->|asynchronous message or event| external
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## <Diagram name>
|
|
33
|
+
|
|
34
|
+
<One sentence: what this diagram shows and where it stops.>
|
|
35
|
+
|
|
36
|
+
```mermaid
|
|
37
|
+
flowchart LR
|
|
38
|
+
component[Component name] -->|what it sends| store[(Store name)]
|
|
39
|
+
```
|