@99x-ai-dlc/idf-installer 0.0.0-stage → 0.2.8

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 (49) hide show
  1. package/README.md +51 -2
  2. package/bin/idf-installer.js +185 -0
  3. package/package.json +22 -4
  4. package/repository-agents/process-diagnostic-agent/review-guide.md +669 -0
  5. package/repository-agents/process-diagnostic-agent/role-play.md +223 -0
  6. package/repository-agents/process-diagnostic-agent/skills/trend-analysis.md +113 -0
  7. package/repository-agents/process-estimation-agent/estimate.md +69 -0
  8. package/repository-agents/process-estimation-agent/estimation-guide.md +435 -0
  9. package/repository-agents/process-migration-agent/migrate.md +72 -0
  10. package/repository-agents/process-migration-agent/migration-guide.md +490 -0
  11. package/repository-agents/process-onboarding-agent/external-skills/README.md +189 -0
  12. package/repository-agents/process-onboarding-agent/external-skills/ux-os.md +92 -0
  13. package/repository-agents/process-onboarding-agent/onboard.md +214 -0
  14. package/repository-agents/process-onboarding-agent/ops/build/backlog.md +43 -0
  15. package/repository-agents/process-onboarding-agent/ops/build/bolts/_template.md +53 -0
  16. package/repository-agents/process-onboarding-agent/ops/build/units/_template.md +112 -0
  17. package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/README.md +22 -0
  18. package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/_template.md +34 -0
  19. package/repository-agents/process-onboarding-agent/ops/inception/dependency-map.md +47 -0
  20. package/repository-agents/process-onboarding-agent/ops/inception/elaborations/_template.md +46 -0
  21. package/repository-agents/process-onboarding-agent/ops/inception/intents/README.md +9 -0
  22. package/repository-agents/process-onboarding-agent/ops/inception/intents/_template.md +92 -0
  23. package/repository-agents/process-onboarding-agent/ops/operate/improvements/_template.md +51 -0
  24. package/repository-agents/process-onboarding-agent/ops/operate/incidents/_template.md +61 -0
  25. package/repository-agents/process-onboarding-agent/ops/operate/retros/_template.md +122 -0
  26. package/repository-agents/process-onboarding-agent/rules/engagement.md +70 -0
  27. package/repository-agents/process-onboarding-agent/setup-guide.md +1409 -0
  28. package/repository-agents/process-onboarding-agent/skills/ai-hub-metrics.md +341 -0
  29. package/repository-agents/process-onboarding-agent/skills/bolt-risk-assessment.md +208 -0
  30. package/repository-agents/process-onboarding-agent/skills/bug-bolt.md +105 -0
  31. package/repository-agents/process-onboarding-agent/skills/compact-docs.md +123 -0
  32. package/repository-agents/process-onboarding-agent/skills/dependency-audit.md +187 -0
  33. package/repository-agents/process-onboarding-agent/skills/design-session.md +230 -0
  34. package/repository-agents/process-onboarding-agent/skills/governance-map.md +212 -0
  35. package/repository-agents/process-onboarding-agent/skills/hotfix-bolt.md +102 -0
  36. package/repository-agents/process-onboarding-agent/skills/knowledge-promotion.md +188 -0
  37. package/repository-agents/process-onboarding-agent/skills/new-engineer-induction.md +303 -0
  38. package/repository-agents/process-onboarding-agent/skills/nfr-bolt.md +117 -0
  39. package/repository-agents/process-onboarding-agent/skills/notifications.md +456 -0
  40. package/repository-agents/process-onboarding-agent/skills/process-health.md +252 -0
  41. package/repository-agents/process-onboarding-agent/skills/process-visualization.md +157 -0
  42. package/repository-agents/process-onboarding-agent/skills/product-engineering-essentials.md +261 -0
  43. package/repository-agents/process-onboarding-agent/skills/progress-digest.md +184 -0
  44. package/repository-agents/process-onboarding-agent/skills/release-readiness-checklist.md +259 -0
  45. package/repository-agents/process-onboarding-agent/skills/root-cause-analysis.md +151 -0
  46. package/repository-agents/process-onboarding-agent/skills/solution-shaping.md +98 -0
  47. package/repository-agents/process-onboarding-agent/skills/uat.md +267 -0
  48. package/repository-agents/process-skills-agent/onboard.md +68 -0
  49. package/repository-agents/process-skills-agent/skills-guide.md +404 -0
@@ -0,0 +1,252 @@
1
+ # Skill: Process Health
2
+
3
+ **Purpose:** Analyse the project's AI-DLC operational artifacts and produce a quantitative report on how well the process is functioning. Surfaces improvement adoption gaps, recurring quality gate failures, AC quality drift, and bolt velocity trends — the signals that indicate process decay before it becomes visible in code quality.
4
+
5
+ **Trigger:** Engineer-initiated at any time. Invoked by saying something like "run process health", "how is our AI-DLC process doing?", or "generate a process health report."
6
+
7
+ **Never run automatically.** The engineer decides when to run this check. Recommended cadence: after every third or fourth bolt, or whenever the team suspects the process has drifted.
8
+
9
+ ---
10
+
11
+ ## Step 1 — Define the Scope
12
+
13
+ Ask the engineer:
14
+
15
+ > "Should I analyse all artifacts in the project, or limit the report to a specific time range? (e.g. 'last 3 months', 'since [date]', or 'all time')"
16
+
17
+ Record the answer. If the engineer says "all time" or does not specify, analyse everything in `process-onboarding-agent/ops/`.
18
+
19
+ Then read the following without further prompting — do not ask for files individually:
20
+
21
+ | Artifact type | Location | What to extract |
22
+ |---|---|---|
23
+ | Retro files | `process-onboarding-agent/ops/operate/retros/` | Date, bolt link, Improvements Triggered table, AI-Specific Observations section, What Didn't Go Well section |
24
+ | Improvement files | `process-onboarding-agent/ops/operate/improvements/` | Status, Triggered by, Applied date |
25
+ | Bolt files | `process-onboarding-agent/ops/build/bolts/` | Status, Start date, Target date, Completed date, Retrospective link |
26
+ | Intent files | `process-onboarding-agent/ops/inception/intents/` | Status, Date, UAT Sign-off status |
27
+
28
+ Read all files within scope before calculating any metric. Do not calculate or report while still reading.
29
+
30
+ ---
31
+
32
+ ## Step 2 — Calculate Metric 1: Improvement Adoption Rate
33
+
34
+ **What it measures:** Whether improvements filed after retros are actually being applied to the target files, or are sitting Open and having no effect on future bolts.
35
+
36
+ **Source:** All improvement files in scope.
37
+
38
+ **Calculation:**
39
+
40
+ 1. Count all improvement files by status:
41
+ - `Applied` — improvement was completed
42
+ - `Open` — improvement was filed but not yet applied
43
+ - `Rejected` — engineer deliberately chose not to apply
44
+
45
+ 2. Adoption rate = (Applied) ÷ (Applied + Open) × 100
46
+ *Exclude Rejected from both numerator and denominator — a deliberate rejection is not a gap.*
47
+
48
+ 3. For each Open improvement, calculate how many days it has been open (today's date minus the date in the file name or Triggered by link date).
49
+
50
+ 4. Flag any improvement Open for more than 30 days as stale.
51
+
52
+ 5. If more than one retro is in scope, calculate the trend: compare adoption rate for the first half of retros versus the second half. A declining rate signals worsening process discipline.
53
+
54
+ **Thresholds:**
55
+
56
+ | Rate | Rating |
57
+ |---|---|
58
+ | ≥ 80% | Healthy |
59
+ | 60 – 79% | Warning |
60
+ | < 60% | Critical |
61
+
62
+ **Stale improvements threshold:** Any single improvement Open > 30 days is a Warning signal regardless of the overall rate.
63
+
64
+ ---
65
+
66
+ ## Step 3 — Calculate Metric 2: Quality Gate Failure Rate
67
+
68
+ **What it measures:** How often the Prompt Quality Gate is failing — meaning the AI is having to stop and ask, either because the engineer submitted an incomplete prompt (missing context, constraints, ACs, or output format) or because the Sensitive Data Check found a credential, secret, or personal data in an otherwise complete prompt.
69
+
70
+ **Source:** The "Quality gate failures" subsection of "AI-Specific Observations" in every retro file in scope.
71
+
72
+ **Calculation:**
73
+
74
+ 1. For each retro, check the "Quality gate failures" subsection. A retro counts as having a QG failure if the subsection contains any entry other than "—", a blank line, or an explicit "None."
75
+
76
+ 2. QG failure rate = retros with at least one QG failure ÷ total retros in scope × 100.
77
+
78
+ 3. List each distinct failure description (do not deduplicate across retros — recurring failures are a separate signal). Look for failures that appear in more than one retro: these are systematic gaps, not one-off mistakes.
79
+
80
+ 4. Trend: if four or more retros are in scope, split them chronologically in half. Is the rate in the recent half lower (improving) or higher (worsening) than the earlier half?
81
+
82
+ **Thresholds:**
83
+
84
+ | Rate | Rating |
85
+ |---|---|
86
+ | ≤ 20% | Healthy |
87
+ | 21 – 40% | Warning |
88
+ | > 40% | Critical |
89
+
90
+ **Recurring failure signal:** Any specific QG failure type appearing in two or more retros is flagged as a recurring gap regardless of the overall rate.
91
+
92
+ ---
93
+
94
+ ## Step 4 — Calculate Metric 3: AC Revision Rate
95
+
96
+ **What it measures:** How often acceptance criteria are found to be wrong, incomplete, or untestable — either during the bolt or discovered in retro — requiring revision after elaboration sign-off.
97
+
98
+ **Source:** "What Didn't Go Well" and "Prompts that needed revision" subsection of retro files in scope.
99
+
100
+ **Signal detection:** Scan each retro for language indicating AC problems. Flag a retro as having AC issues if any of the following appear in the relevant sections:
101
+
102
+ - References to ACs being wrong, incomplete, changed, or missing after elaboration
103
+ - References to acceptance criteria not covering a scenario that was discovered during build
104
+ - References to ACs being untestable or too vague to implement against
105
+ - References to a unit requiring rework because the original criteria were misunderstood
106
+
107
+ Do not flag retros where prompt revision was purely about context or output format — only flag AC-specific findings.
108
+
109
+ **Calculation:**
110
+
111
+ 1. AC revision rate = retros with AC issues ÷ total retros in scope × 100.
112
+
113
+ 2. Note any AC issues that appear across multiple retros: these are patterns, not one-off incidents. Common recurring patterns include: missing unhappy-path ACs, ACs written at the wrong level of abstraction, or ACs that mix behavior and implementation.
114
+
115
+ 3. Trend: same split as Metric 2 — is the rate improving or worsening in recent retros?
116
+
117
+ **Thresholds:**
118
+
119
+ | Rate | Rating |
120
+ |---|---|
121
+ | ≤ 15% | Healthy |
122
+ | 16 – 30% | Warning |
123
+ | > 30% | Critical |
124
+
125
+ ---
126
+
127
+ ## Step 5 — Calculate Metric 4: Bolt Velocity Trend
128
+
129
+ **What it measures:** Whether bolts are consistently completing on time, running late, or accelerating — and whether the trend is improving or worsening.
130
+
131
+ **Source:** All bolt files in scope with status Done and a Completed date recorded.
132
+
133
+ **Calculation:**
134
+
135
+ 1. For each completed bolt, calculate the variance:
136
+ - Variance = Completed date − Target date (in calendar days)
137
+ - Positive variance = bolt completed late
138
+ - Negative variance = bolt completed early
139
+ - Zero = on time
140
+
141
+ 2. Compute the average variance across all completed bolts in scope.
142
+
143
+ 3. Identify the distribution:
144
+ - How many bolts completed on time (variance −2 to +2 days)?
145
+ - How many completed early (variance < −2)?
146
+ - How many completed late (variance > +2)?
147
+
148
+ 4. Trend: if four or more completed bolts are in scope, compare the average variance of the first half versus the second half. Increasing average variance = worsening delivery predictability.
149
+
150
+ 5. Flag any bolt that overran by more than 50% of its planned duration — these are outliers that warrant a separate note.
151
+
152
+ **Thresholds (average variance):**
153
+
154
+ | Average variance | Rating |
155
+ |---|---|
156
+ | −2 to +3 days | Healthy |
157
+ | +4 to +7 days | Warning |
158
+ | > +7 days, or trend worsening | Critical |
159
+
160
+ If fewer than two completed bolts are in scope, write: "Insufficient data — fewer than two completed bolts in scope. Run again after more bolts complete."
161
+
162
+ ---
163
+
164
+ ## Step 6 — Identify Additional Decay Signals
165
+
166
+ After calculating the four metrics, scan the artifacts for the following additional signals. Each one found is noted in the report as a decay signal.
167
+
168
+ | Signal | How to detect | Severity |
169
+ |---|---|---|
170
+ | Retro with no improvements and no stated reason | "Improvements Triggered" table is blank or contains "—" with no explanatory note | Warning |
171
+ | Bolt with no retro filed | Bolt status is Done but Retrospective field links to a non-existent file | Warning |
172
+ | Intent In Progress with no active bolt | Intent status is In Progress but no bolt links back to it and no unit under it is In Progress | Warning |
173
+ | Improvement Open > 30 days | Calculated in Metric 1 — list each stale improvement | Warning |
174
+ | UAT consistently deferred | More than half of Implemented intents have UAT status Deferred with no follow-up record | Warning |
175
+ | Same QG failure type in 3+ retros | Identified in Metric 2 — list the recurring failure | Critical |
176
+ | Same AC issue type in 3+ retros | Identified in Metric 3 — list the recurring pattern | Critical |
177
+
178
+ ---
179
+
180
+ ## Step 7 — Produce and Save the Report
181
+
182
+ Present the full report in the conversation, then write it to `process-onboarding-agent/ops/operate/process-health-YYYY-MM-DD.md` automatically. Do not ask for permission — saving is mandatory so that health reports accumulate over time and trends can be compared across runs.
183
+
184
+ ```
185
+ ─────────────────────────────────────────────────────
186
+ AI-DLC Process Health Report
187
+ Project: [project name from master rule file]
188
+ Scope: [time range or "All time"]
189
+ Date: YYYY-MM-DD
190
+ Artifacts read: [N] retros, [N] improvements, [N] bolts, [N] intents
191
+ ─────────────────────────────────────────────────────
192
+
193
+ METRIC 1 — Improvement Adoption Rate
194
+ Rate: [X]% ([Applied] applied of [Applied+Open] filed; [Rejected] rejected)
195
+ Rating: [Healthy / Warning / Critical]
196
+ Stale: [N] improvements Open > 30 days
197
+ [list: improvement title — open since YYYY-MM-DD]
198
+ Trend: [Improving / Stable / Worsening — or "Insufficient data"]
199
+
200
+ METRIC 2 — Quality Gate Failure Rate
201
+ Rate: [X]% ([N] of [N] retros had at least one QG failure)
202
+ Rating: [Healthy / Warning / Critical]
203
+ Recurring failures:
204
+ [list recurring failure types, or "None"]
205
+ Trend: [Improving / Stable / Worsening — or "Insufficient data"]
206
+
207
+ METRIC 3 — AC Revision Rate
208
+ Rate: [X]% ([N] of [N] retros flagged AC issues)
209
+ Rating: [Healthy / Warning / Critical]
210
+ Recurring patterns:
211
+ [list recurring AC issue types, or "None"]
212
+ Trend: [Improving / Stable / Worsening — or "Insufficient data"]
213
+
214
+ METRIC 4 — Bolt Velocity
215
+ Completed bolts in scope: [N]
216
+ Average variance: [+/− X days]
217
+ On time / Early / Late: [N] / [N] / [N]
218
+ Rating: [Healthy / Warning / Critical]
219
+ Outliers: [bolts that overran > 50% of planned duration, or "None"]
220
+ Trend: [Improving / Stable / Worsening — or "Insufficient data"]
221
+
222
+ ─────────────────────────────────────────────────────
223
+ DECAY SIGNALS
224
+ [List each signal found, or "None detected"]
225
+
226
+ ⚠ [signal description]
227
+ ⚠ [signal description]
228
+
229
+ ─────────────────────────────────────────────────────
230
+ OVERALL HEALTH
231
+
232
+ [Healthy / Warning / Critical]
233
+
234
+ Rules:
235
+ - Healthy: all four metrics Healthy, no Critical decay signals
236
+ - Warning: one or more metrics Warning, or one or more Warning decay signals
237
+ - Critical: any metric Critical, or any Critical decay signal
238
+
239
+ ─────────────────────────────────────────────────────
240
+ FIRST ACTION
241
+
242
+ [One sentence. The single most impactful thing the team should address first,
243
+ derived from the highest-severity finding. Examples:
244
+ "Apply the [N] stale Open improvements before the next bolt begins."
245
+ "Address the recurring quality gate failure '[type]' — it has appeared in [N] retros."
246
+ "Run retros consistently — [N] completed bolts have no retro on record."]
247
+ ─────────────────────────────────────────────────────
248
+ ```
249
+
250
+ After presenting the report, write it to `process-onboarding-agent/ops/operate/process-health-YYYY-MM-DD.md` and confirm:
251
+
252
+ > "Report saved to `process-onboarding-agent/ops/operate/process-health-YYYY-MM-DD.md`. Run this skill again after the next few bolts to track whether the health trend is improving."
@@ -0,0 +1,157 @@
1
+ # Skill: Process Visualization
2
+
3
+ **Purpose:** Reconstruct how a bolt (or a whole intent) actually got delivered — not the plan written before build started, but what really happened: when units really moved through their statuses, where things stalled or got reordered, and how the retro-and-improvement loop closed. Renders the reconstruction as Mermaid diagrams so the team has a shared, factual picture to react to, instead of relying on memory.
4
+
5
+ Bolt files record a plan (`Execution Order`, `Start date`, `Target date`). This skill produces the *actual* counterpart — grounded in status history where it is available, and in the recorded artifact dates where it isn't. It never fabricates timing data it cannot support.
6
+
7
+ **Trigger:** Runs at the developer's discretion — recommended, not mandatory. The AI should offer it at the start of every retro, before "What Went Well" is discussed, the same way `solution-shaping.md` is offered before design sessions: propose it, let the engineer accept, skip, or run it later. It can also be invoked directly at any time, outside a retro, to review delivery history for an intent:
8
+
9
+ > "Read `process-onboarding-agent/skills/process-visualization.md` and visualize how [bolt/intent name] actually went."
10
+
11
+ **Never run without the engineer's go-ahead.** Retros are engineer-paced, and so is this.
12
+
13
+ **Output:** Two Mermaid diagrams (an actual delivery timeline and an actual execution path), a plan-vs-actual deviation table, and a short narrative — written into the "Delivery Flow (What Actually Happened)" section of the bolt's retro file at `process-onboarding-agent/ops/operate/retros/YYYY-MM-DD-<unix_timestamp>-[bolt-slug].md`. If the retro file does not exist yet, create it from the template first, then populate this section before the retro discussion continues.
14
+
15
+ ---
16
+
17
+ ## Step 1 — Identify the Scope
18
+
19
+ Ask the engineer (skip if already stated):
20
+
21
+ > "Which bolt should I visualize? Or name the intent if you want the full delivery history across all its bolts."
22
+
23
+ Read, in full, everything within scope before building anything:
24
+
25
+ | Artifact | What to extract |
26
+ |---|---|
27
+ | Bolt file(s) in scope | Status, Start/Target/Completed dates, Units table, Execution Order (the plan), Retrospective link |
28
+ | Every unit linked from those bolts | Status, Dependencies table, Notes |
29
+ | The intent the bolt(s) deliver | Elaboration Sessions table, Extracted Units table |
30
+ | Elaboration session file(s) | Session date |
31
+ | Prior retro + improvement files under the same intent (multi-bolt intents only) | Date, Improvements Triggered table, Applied dates — these show the loop feeding into later bolts |
32
+
33
+ Do not ask for files individually — read everything in scope in one pass.
34
+
35
+ ---
36
+
37
+ ## Step 2 — Reconstruct the Actual Timeline
38
+
39
+ **Primary source — git history.** If the project is a git repository, run `git log --follow --format="%ad|%h|%s" --date=short -- [file path]` against every unit and bolt file in scope, then diff consecutive revisions of each file to find the commits where the `Status:` line changed value. This produces ground truth: the date a unit actually moved Open → In Progress, In Progress → Blocked, Blocked → In Progress, → Done, and the date a bolt's own `Status:` field changed. Build this per file before moving to the next.
40
+
41
+ **Fallback — recorded dates only.** If git history is unavailable (not a git repo, history squashed, files never committed individually, or the engineer says not to bother), fall back to the dates already recorded in the artifacts: bolt Start/Target/Completed dates, elaboration session dates, retro date, improvement Applied dates. State plainly which mode was used before presenting any diagram — **never let a diagram imply per-unit precision the underlying data doesn't support.** In fallback mode, Diagram 1 collapses to bolt-level granularity (see Step 4).
42
+
43
+ Whichever source is used, build a chronological event list first, and get engineer confirmation that it looks right before turning it into diagrams:
44
+
45
+ ```
46
+ [date] Elaboration session N held
47
+ [date] Unit [name] entered In Progress
48
+ [date] Unit [name] entered Blocked — [reason, from the Dependencies table or Notes if stated; "reason not recorded" if not]
49
+ [date] Unit [name] returned to In Progress
50
+ [date] Unit [name] marked Done
51
+ [date] Bolt marked Done
52
+ [date] Retro held
53
+ [date] Improvement [name] applied
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Step 3 — Diagram 1: Actual Delivery Timeline (Mermaid `gantt`)
59
+
60
+ Render the event list as a `gantt` chart with three sections: Elaboration, Build, Retro & Follow-up. Use these tag conventions consistently — they are the only way Mermaid's gantt syntax can carry a status signal, so treat them as a fixed legend rather than literal critical-path analysis:
61
+
62
+ - `done` — unit or activity is complete
63
+ - `active` — still open/in progress as of today
64
+ - `crit` — flag any unit that spent time Blocked, or ran markedly longer than the bolt's median unit duration — this marks a deviation worth discussing, not a scheduling critical path
65
+ - `milestone` — zero-duration events (retro date, sign-off)
66
+
67
+ ```mermaid
68
+ gantt
69
+ title Actual Delivery Timeline — [Bolt or Intent name]
70
+ dateFormat YYYY-MM-DD
71
+ axisFormat %b %d
72
+
73
+ section Elaboration
74
+ Session 1 (units agreed) :done, elab1, 2026-06-02, 1d
75
+
76
+ section Build
77
+ Unit: Add booking form :done, u1, 2026-06-04, 2026-06-05
78
+ Unit: Validate booking slot :crit, done, u2, 2026-06-05, 2026-06-09
79
+ Unit: Send confirmation email :done, u3, 2026-06-09, 2026-06-10
80
+
81
+ section Retro & Follow-up
82
+ Retrospective :milestone, retro1, 2026-06-11, 0d
83
+ Improvement: tighten AC gate :done, imp1, 2026-06-12, 1d
84
+ ```
85
+
86
+ **Fallback mode (no git history):** collapse Build to one bar per bolt spanning Start date → Completed date (or → today, tagged `active`, if not yet Done), instead of one bar per unit. Say so directly above the diagram: "Unit-level timing isn't available for this bolt — showing bolt-level actuals only."
87
+
88
+ ---
89
+
90
+ ## Step 4 — Diagram 2: Actual Execution Path (Mermaid `flowchart`)
91
+
92
+ Render the real sequence — including detours — as a left-to-right flowchart. Represent a Blocked or Deferred period as its own note node between the two units it separates, rather than a self-loop, so the reason is legible at a glance. Use `classDef` for status coloring, applied consistently:
93
+
94
+ ```mermaid
95
+ flowchart LR
96
+ classDef done fill:#2ecc71,color:#fff
97
+ classDef blocked fill:#e74c3c,color:#fff
98
+ classDef inprogress fill:#f1c40f,color:#000
99
+ classDef deferred fill:#95a5a6,color:#fff
100
+ classDef note fill:none,stroke-dasharray: 3 3
101
+
102
+ Elab[Elaboration Session 1] --> U1[Unit: Add booking form]:::done
103
+ U1 --> U2[Unit: Validate booking slot]:::done
104
+ U2 --> Block1["⏸ Blocked 3 days — waiting on payments API contract"]:::note
105
+ Block1 --> U3[Unit: Send confirmation email]:::done
106
+ U3 --> Bolt[Bolt: Booking MVP — Done]:::done
107
+ Bolt --> Retro[Retro held 2026-06-11]
108
+ Retro --> Imp1[Improvement: tighten AC gate — Applied]
109
+ Imp1 --> KP{Knowledge Promotion}
110
+ KP -->|Generic| PR[PR drafted against ai-dlc-base]
111
+ KP -->|Project-specific| Local[Stays local]
112
+ ```
113
+
114
+ If the intent spans multiple bolts, chain each bolt's terminal node into the next bolt's first unit, so the diagram reads as one continuous delivery, not disconnected fragments.
115
+
116
+ ---
117
+
118
+ ## Step 5 — Plan vs. Actual Deviation Table
119
+
120
+ Compare the bolt's recorded `Execution Order` block (the plan) against the order derived in Step 2 (what actually happened). Produce one row per unit whose actual position, duration, or path diverged from the plan:
121
+
122
+ | Planned order | Actual order | Deviation |
123
+ |---|---|---|
124
+ | Unit A → Unit B → Unit C | Unit A → Unit C → Unit B | B ran last — blocked 3 days waiting on payments API contract |
125
+
126
+ If the bolt has a Target date and a Completed date, add one line stating the variance in days (reuse the framing from `process-health.md` Metric 4 — positive means late, negative means early). If nothing diverged from plan, write "No deviations — delivered as planned" instead of an empty table.
127
+
128
+ ---
129
+
130
+ ## Step 6 — Present for Review
131
+
132
+ Before writing anything, present the event list, both diagrams, and the deviation table in the conversation:
133
+
134
+ > "Here is how [bolt/intent name] actually went, reconstructed from [git history / recorded artifact dates]. Review it before I save it into the retro — does this match what the team remembers, or is something missing from the record?"
135
+
136
+ Wait for the engineer to confirm or correct. If the reconstructed data is wrong (e.g. a status change wasn't reflected in a commit, or a blocked period wasn't noted anywhere), apply the correction the engineer gives and note in the output that this detail came from the engineer's recollection, not the recorded artifacts.
137
+
138
+ ---
139
+
140
+ ## Step 7 — Write to the Retro File
141
+
142
+ If the retro file for this bolt does not exist yet, create it from `process-onboarding-agent/ops/operate/retros/_template.md` first (Bolt link, Date = today, Participants = ask).
143
+
144
+ Write the confirmed content into the retro's "Delivery Flow (What Actually Happened)" section, in this order: the reconstruction-mode statement (git history or fallback), Diagram 1, Diagram 2, the deviation table. If the section already has content from a prior run, ask before overwriting — a retro in progress may have team notes added around it that a silent overwrite would destroy.
145
+
146
+ Confirm:
147
+
148
+ ```
149
+ Delivery flow written.
150
+
151
+ File: process-onboarding-agent/ops/operate/retros/YYYY-MM-DD-<unix_timestamp>-[bolt-slug].md
152
+ Section: Delivery Flow (What Actually Happened)
153
+ Reconstruction mode: [Git history / Recorded artifact dates only]
154
+ Deviations found: [N] (or "None — delivered as planned")
155
+
156
+ Use this as the factual anchor for "What Went Well" and "What Didn't Go Well" below it.
157
+ ```