ahead-pi 0.2.1 → 0.3.1

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 (101) hide show
  1. package/README.md +26 -41
  2. package/dist/ahead_wasm.wasm +0 -0
  3. package/generated/corrective-debugging/ai-audit.md +39 -0
  4. package/generated/corrective-debugging/ai-review.md +46 -0
  5. package/generated/corrective-debugging/characterize.md +53 -0
  6. package/generated/corrective-debugging/conclude.md +59 -0
  7. package/generated/corrective-debugging/correction.md +53 -0
  8. package/generated/corrective-debugging/deploy.md +38 -0
  9. package/generated/corrective-debugging/human-review.md +45 -0
  10. package/generated/corrective-debugging/implement.md +42 -0
  11. package/generated/corrective-debugging/investigate.md +59 -0
  12. package/generated/corrective-debugging/manifest.json +30 -0
  13. package/generated/corrective-debugging/model.md +53 -0
  14. package/generated/corrective-debugging/outcome.md +38 -0
  15. package/generated/corrective-debugging/plan.md +53 -0
  16. package/generated/corrective-debugging/verify.md +47 -0
  17. package/generated/decision/compare.md +45 -0
  18. package/generated/decision/criteria.md +45 -0
  19. package/generated/decision/decide.md +45 -0
  20. package/generated/decision/frame.md +45 -0
  21. package/generated/decision/manifest.json +21 -0
  22. package/generated/decision/options.md +47 -0
  23. package/generated/decision/publish.md +38 -0
  24. package/generated/decision/research.md +45 -0
  25. package/generated/internal-improvement/ai-audit.md +39 -0
  26. package/generated/internal-improvement/ai-review.md +46 -0
  27. package/generated/internal-improvement/baseline.md +46 -0
  28. package/generated/internal-improvement/decision.md +45 -0
  29. package/generated/internal-improvement/deploy.md +38 -0
  30. package/generated/internal-improvement/human-review.md +45 -0
  31. package/generated/internal-improvement/implement.md +42 -0
  32. package/generated/internal-improvement/invariants.md +38 -0
  33. package/generated/internal-improvement/manifest.json +29 -0
  34. package/generated/internal-improvement/options.md +47 -0
  35. package/generated/internal-improvement/outcome.md +38 -0
  36. package/generated/internal-improvement/plan.md +53 -0
  37. package/generated/internal-improvement/target.md +45 -0
  38. package/generated/internal-improvement/verify.md +45 -0
  39. package/generated/investigation/bound.md +45 -0
  40. package/generated/investigation/conclude.md +45 -0
  41. package/generated/investigation/explore.md +60 -0
  42. package/generated/investigation/frame.md +45 -0
  43. package/generated/investigation/gather.md +45 -0
  44. package/generated/investigation/manifest.json +21 -0
  45. package/generated/investigation/synthesize.md +51 -0
  46. package/generated/operational-stabilization/assess.md +46 -0
  47. package/generated/operational-stabilization/execute-observe.md +45 -0
  48. package/generated/operational-stabilization/manifest.json +19 -0
  49. package/generated/operational-stabilization/monitor.md +45 -0
  50. package/generated/operational-stabilization/outcome.md +38 -0
  51. package/generated/operational-stabilization/respond.md +40 -0
  52. package/generated/operational-stabilization/verify-recovery.md +45 -0
  53. package/generated/product-change/ai-audit.md +7 -4
  54. package/generated/product-change/ai-review.md +15 -5
  55. package/generated/product-change/decision.md +11 -2
  56. package/generated/product-change/define.md +4 -2
  57. package/generated/product-change/deploy.md +4 -2
  58. package/generated/product-change/human-review.md +11 -2
  59. package/generated/product-change/implement.md +4 -2
  60. package/generated/product-change/manifest.json +8 -3
  61. package/generated/product-change/options.md +11 -2
  62. package/generated/product-change/outcome.md +4 -2
  63. package/generated/product-change/plan.md +17 -2
  64. package/generated/product-change/questions.md +17 -2
  65. package/generated/product-change/research.md +11 -2
  66. package/generated/product-change/verify.md +4 -2
  67. package/generated/recommended-skills.json +24 -0
  68. package/generated/reference/CONSTITUTION.md +2 -0
  69. package/generated/reference/docs/evidence/README.md +17 -0
  70. package/generated/reference/docs/evidence/evidence-standard.md +2 -0
  71. package/generated/reference/docs/evidence/research-map.md +2 -0
  72. package/generated/reference/docs/{references → evidence/sources}/pragmatic-programmer-page-index.md +3 -1
  73. package/generated/reference/docs/{references → evidence/sources}/submitted-engineering-notes.md +3 -1
  74. package/generated/reference/docs/guide/README.md +28 -0
  75. package/generated/reference/docs/{acceptable-ai-use.md → guide/acceptable-ai-use.md} +4 -2
  76. package/generated/reference/docs/{engineering-practice.md → guide/engineering-practice.md} +5 -3
  77. package/generated/reference/docs/{rationale.md → guide/rationale.md} +3 -1
  78. package/generated/reference/docs/guide/recommended-skills.md +21 -0
  79. package/generated/reference/docs/{workflows → guide/workflows}/README.md +6 -4
  80. package/generated/reference/docs/{workflows → guide/workflows}/corrective-debugging.md +39 -19
  81. package/generated/reference/docs/{workflows → guide/workflows}/decision.md +4 -2
  82. package/generated/reference/docs/{workflows → guide/workflows}/internal-improvement.md +37 -23
  83. package/generated/reference/docs/{workflows → guide/workflows}/investigation.md +5 -1
  84. package/generated/reference/docs/{workflows → guide/workflows}/operational-stabilization.md +16 -12
  85. package/generated/reference/docs/{workflows → guide/workflows}/product-change.md +16 -3
  86. package/generated/reference/index.json +200 -87
  87. package/package.json +34 -25
  88. package/src/engine.ts +27 -8
  89. package/src/flow-guides.ts +168 -0
  90. package/src/guidance.ts +220 -78
  91. package/src/index.ts +852 -189
  92. package/src/reference-viewer.ts +20 -18
  93. package/src/reference.ts +76 -14
  94. package/src/review.ts +360 -0
  95. package/src/skills.ts +133 -0
  96. package/src/storage.ts +139 -15
  97. package/src/types.ts +1 -0
  98. package/generated/reference/docs/design/debugging-and-operations.md +0 -119
  99. package/generated/reference/docs/design/executable-workflows.md +0 -110
  100. package/generated/reference/docs/design/process-taxonomy.md +0 -144
  101. package/generated/reference/docs/releasing-pi.md +0 -89
@@ -1,5 +1,7 @@
1
1
  # Corrective Debugging Workflow
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: pilot v0.1
4
6
 
5
7
  ## Outcome
@@ -36,7 +38,7 @@ Use operational stabilization instead when a live system is unhealthy and restor
36
38
  │
37
39
  ▼
38
40
  ┌─────────────────┐
39
- │ 3. AI ASSISTS │
41
+ │ 3A. AI ASSISTS │
40
42
  │ EVIDENCE REVIEW │
41
43
  │ │
42
44
  │ • Code │
@@ -48,7 +50,7 @@ Use operational stabilization instead when a live system is unhealthy and restor
48
50
  │
49
51
  ▼
50
52
  ┌─────────────────┐
51
- │ 4. HYPOTHESES │
53
+ │ 3B. HYPOTHESES │
52
54
  │ │
53
55
  │ HUMAN LEADS │
54
56
  │ AI ASSISTS │
@@ -60,8 +62,8 @@ Use operational stabilization instead when a live system is unhealthy and restor
60
62
  │
61
63
  ▼
62
64
  ┌─────────────────┐
63
- │ 5. HUMAN SELECTS│
64
- │ WHAT TO TEST │
65
+ │ 3C. HUMAN │
66
+ │ SELECTS TEST │
65
67
  │ │
66
68
  │ • Prediction │
67
69
  │ • Safety/scope │
@@ -69,7 +71,7 @@ Use operational stabilization instead when a live system is unhealthy and restor
69
71
  │
70
72
  ▼
71
73
  ┌─────────────────┐
72
- │ 6. TEST │
74
+ │ 3D. TEST │
73
75
  │ HYPOTHESIS │
74
76
  │ │
75
77
  │ HUMAN/ENGINEER │
@@ -87,38 +89,44 @@ Use operational stabilization instead when a live system is unhealthy and restor
87
89
  │ │
88
90
  │ ▼
89
91
  ↺ HUMAN MODEL HUMAN ACCEPTS DIAGNOSIS
90
- OR UNKNOWN CAUSE / RISK
92
+ OR UNKNOWN CAUSE / RISK (4)
93
+ │
94
+ ▼
95
+ HUMAN FIX APPROACH (5)
91
96
  │
92
97
  ▼
93
- HUMAN FIX APPROACH
98
+ HUMAN FIRST-PASS PLAN (6)
94
99
  │
95
100
  ▼
96
- HUMAN FIRST-PASS PLAN
101
+ ENGINEER IMPLEMENTS (7)
97
102
  │
98
103
  ▼
99
- ENGINEER IMPLEMENTS
104
+ AI REVIEW (8)
100
105
  │
101
106
  ▼
102
- AI REVIEW
107
+ HUMAN DISPOSITIONS MATERIAL FINDINGS
103
108
  │
104
109
  ▼
105
- INDEPENDENT HUMAN REVIEW
110
+ INDEPENDENT HUMAN REVIEW (9)
106
111
  │
107
112
  ▼
108
- HUMAN AUTHORIZES DEPLOY / RELEASE
113
+ HUMAN AUTHORIZES DEPLOY / RELEASE (10)
109
114
  WHEN APPLICABLE
110
115
  │
111
116
  ▼
112
- HUMAN VERIFIES CORRECTION OF ORIGINAL FAILURE
117
+ HUMAN VERIFIES CORRECTION OF ORIGINAL FAILURE (11)
113
118
  │
114
119
  ▼
115
120
  HUMAN OBSERVES DEPLOYED OUTCOME
116
121
  │
117
122
  ▼
118
- AI AUDIT
123
+ AI AUDIT (12)
119
124
  │
120
125
  ▼
121
- HUMAN OUTCOME GATE
126
+ HUMAN DISPOSITIONS AUDIT FINDINGS
127
+ │
128
+ ▼
129
+ HUMAN OUTCOME GATE (13)
122
130
 
123
131
  Not corrected ───────────────────↺ HUMAN MODEL
124
132
  ```
@@ -127,21 +135,24 @@ Reproduction is useful but not a universal gate. Historical, intermittent, produ
127
135
 
128
136
  “Ready to choose” means either the evidence sufficiently supports a human-accepted diagnosis or the accountable human explicitly accepts that the cause remains unknown and records the risk of proceeding. Unsupported hypotheses alone do not satisfy the gate.
129
137
 
138
+ Executable phase 3, `investigate`, contains the evidence review, hypothesis, human test-selection, and test loop shown as 3A–3D. The human conclusion is a separate gate so a plausible hypothesis cannot silently become a diagnosis.
139
+
130
140
  ## Minimal phases
131
141
 
132
142
  | Phase | Human owns | AI may | Minimum record | Advance when |
133
143
  |---|---|---|---|---|
134
144
  | Report and characterize | Intended behavior, observed behavior, impact, scope, and evidence quality | Organize evidence and identify missing characterization | Failure statement and evidence links | The failure is bounded enough to investigate |
135
145
  | Mental model | Current explanation of relevant components, state, and interactions | Explain unfamiliar mechanisms and challenge omissions | Model, assumptions, and unknowns | The model can generate testable hypotheses |
136
- | Hypothesize and test | Hypothesis selection, test authorization, prediction, and interpretation | Generate alternatives, evidence for/against, and discriminating tests | Facts, inferences, hypotheses, predictions, tests, results, confidence | Human accepts a diagnosis or explicitly accepts uncertainty |
146
+ | Investigate and test | Hypothesis selection, test authorization, prediction, and interpretation | Generate alternatives, evidence for/against, and discriminating tests | Facts, inferences, hypotheses, predictions, tests, results, confidence | Evidence is ready for a human conclusion |
147
+ | Conclude diagnosis | Supported diagnosis or explicit acceptance of unknown cause, confidence, and risk | Challenge the conclusion against evidence and counterevidence | Diagnosis or accepted uncertainty | Human accepts the diagnosis or remaining uncertainty |
137
148
  | Choose correction | Desired correction and tradeoffs | Compare fix approaches and recurrence risks | Selected correction and rationale | Human approves the correction |
138
149
  | Plan | First-pass correction and verification plan | Find missing cases, risks, regression tests, and rollout concerns | Plan and rollback or containment needs | Human approves the plan |
139
150
  | Implement | Code and engineering changes | Bounded implementation and debugging assistance | Linked changeset and regression evidence | Change is ready for review |
140
- | AI review | Disposition of valid findings | Review correction, tests, risks, and plan alignment | AI findings and dispositions | Blocking findings are resolved or rejected with rationale |
151
+ | AI review | Validate and disposition every material AI finding | Review the exact snapshot for correction, tests, risks, and plan alignment without modifying it | Snapshot-bound AI findings; separate human disposition | Every material finding is fixed, invalid, accepted risk, or follow-up with rationale |
141
152
  | Human review | Independent final engineering judgment by someone other than the implementer | Answer targeted questions and retrieve evidence | Current independent human review | Independent human reviewer accepts the current change |
142
153
  | Deploy or release | Authorization and rollout decision | Analyze readiness evidence within policy | Version, environment, actor, time, and result | The intended correction reaches the target environment or deployment is explicitly not applicable |
143
154
  | Verify and observe | Original failure, regression protection, and deployed behavior when applicable | Suggest checks and analyze authorized evidence | Pre-change comparison, fix validation, deployment evidence, and observed outcome | The original failure and user-visible outcome are evaluated |
144
- | AI audit | Disposition of findings and required response | Compare the result with the failure, diagnosis or accepted uncertainty, correction, plan, reviews, and observed behavior | Audit findings and dispositions | Human has reviewed material findings |
155
+ | AI audit | Disposition of findings and required response | Compare the result with the failure, diagnosis or accepted uncertainty, correction, plan, reviews, and observed behavior | AI audit findings; separate human disposition | The human disposer accepts the audit gate or reopens work |
145
156
  | Outcome | Acceptance, rollback, continued investigation, follow-up, or abandonment | Summarize learning | Result, causal confidence, uncertainty, and follow-ups | Human accepts closure or reopens/routes work |
146
157
 
147
158
  ## Evidence chain
@@ -167,7 +178,16 @@ FACTS / EVIDENCE ──► HUMAN MENTAL MODEL
167
178
  HUMAN CORRECTION DECISION / PLAN
168
179
  │
169
180
  ▼
170
- ENGINEER CHANGE / AI REVIEW / INDEPENDENT REVIEW
181
+ ENGINEER CHANGE
182
+ │
183
+ ▼
184
+ SNAPSHOT-BOUND AI REVIEW
185
+ │
186
+ ▼
187
+ IMPLEMENTING-HUMAN DISPOSITION
188
+ │
189
+ ▼
190
+ INDEPENDENT HUMAN REVIEW
171
191
  │
172
192
  ▼
173
193
  HUMAN-AUTHORIZED DEPLOYMENT
@@ -1,5 +1,7 @@
1
1
  # Decision Workflow
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: pilot v0.1
4
6
 
5
7
  ## Outcome
@@ -100,11 +102,11 @@ Reframe or seek evidence ─────────↺ FRAME / RESEARCH
100
102
  |---|---|---|---|---|
101
103
  | Frame | Decision to be made, accountable decider, scope, deadline, and stakeholders | Clarify ambiguity and identify missing stakeholders | Decision statement and owner | Human accepts the frame |
102
104
  | Criteria | Goals, constraints, evaluation criteria, and relative importance | Challenge hidden criteria and identify tensions | Criteria and non-negotiable constraints | Criteria are sufficient for comparison |
103
- | Research and questions | Evaluation of evidence and disposition of uncertainty | Gather cited evidence and find contradictions or missing questions; do not introduce solution alternatives yet | Sources, findings, unknowns, and limits | Material evidence is reviewed and uncertainty is answered or explicitly accepted |
105
+ | Research | Evaluation of evidence and disposition of uncertainty | Gather cited evidence and find contradictions or missing questions; do not introduce solution alternatives yet | Sources, findings, assumptions, unknowns, and limits | Material evidence is reviewed and uncertainty is answered or explicitly accepted |
104
106
  | Options | At least one human-originated option | Expand, combine, challenge, and propose alternatives | Options with provenance | Plausible option space is understood |
105
107
  | Compare | Interpretation of tradeoffs | Structure comparison and sensitivity analysis | Benefits, costs, risks, consequences, reversibility | Decision is ready for accountable judgment |
106
108
  | Decide | Selection, rationale, accepted tradeoffs, and dissent | Test rationale for inconsistency or missing consequence | Decision and rejected alternatives | Accountable human approves a specific revision |
107
- | Validate and publish | Consequence check, communication, review trigger, and linked work | Summarize and propose validation checks | Consequences, reversibility, review trigger, links | Decision is published and accepted as current |
109
+ | Publish and revisit | Consequence check, communication, review trigger, revisit date, and linked work | Improve clarity, traceability, and proposed validation checks | Consequences, reversibility, review trigger, revisit date, and links | Decision is published and accepted as current |
108
110
 
109
111
  ## Decision evidence chain
110
112
 
@@ -1,5 +1,7 @@
1
1
  # Internal Improvement Workflow
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: pilot v0.1
4
6
 
5
7
  ## Outcome
@@ -23,20 +25,21 @@ Use product change when externally meaningful behavior is intentionally changing
23
25
  └──────────────────────┬───────────────────────┘
24
26
  ↓
25
27
  ┌──────────────────────────────────────────────┐
26
- │ 2. BASELINE AND TARGET │
28
+ │ 2. BASELINE │
27
29
  │ │
28
- │ HUMAN │
29
- │ • Accept current evidence and measurement │
30
- │ • Define target quality │
31
- │ • Define success threshold │
30
+ │ HUMAN accepts method, evidence, uncertainty │
31
+ │ AI — ASSIST challenges noise / confounders │
32
+ └──────────────────────┬───────────────────────┘
33
+ ↓
34
+ ┌──────────────────────────────────────────────┐
35
+ │ 3. TARGET │
32
36
  │ │
33
- │ AI — ASSIST │
34
- │ • Gather metrics • find measurement gaps │
35
- │ • Suggest unintended effects to watch │
37
+ │ HUMAN defines quality, threshold, guardrails │
38
+ │ AI — ASSIST exposes gaming / shifted cost │
36
39
  └──────────────────────┬───────────────────────┘
37
40
  ↓
38
41
  ┌──────────────────────────────────────────────┐
39
- │ 3. OPTIONS │
42
+ │ 4. OPTIONS │
40
43
  │ │
41
44
  │ HUMAN — FIRST PASS │
42
45
  │ • Propose at least one improvement approach │
@@ -50,13 +53,13 @@ Use product change when externally meaningful behavior is intentionally changing
50
53
  └──────────────────────┬───────────────────────┘
51
54
  ↓
52
55
  ┌──────────────────────────────────────────────┐
53
- │ 4. HUMAN DECISION GATE │
56
+ │ 5. HUMAN DECISION GATE │
54
57
  │ • Select approach and accept tradeoffs │
55
58
  │ • Record rationale │
56
59
  └──────────────────────┬───────────────────────┘
57
60
  ↓
58
61
  ┌──────────────────────────────────────────────┐
59
- │ 5. PLAN │
62
+ │ 6. PLAN │
60
63
  │ │
61
64
  │ HUMAN — FIRST PASS │
62
65
  │ • Sequence change, checks, and rollback │
@@ -68,28 +71,31 @@ Use product change when externally meaningful behavior is intentionally changing
68
71
  └──────────────────────┬───────────────────────┘
69
72
  ↓
70
73
  ┌──────────────────────────────────────────────┐
71
- │ 6. IMPLEMENT │
74
+ │ 7. IMPLEMENT │
72
75
  │ ENGINEER owns and understands the change │
73
76
  │ AI — ASSIST with bounded contributions │
74
77
  └──────────────────────┬───────────────────────┘
75
78
  ↓
76
79
  ┌──────────────────────────────────────────────┐
77
- │ 7. AI REVIEW │
80
+ │ 8. AI REVIEW │
78
81
  │ • Hidden behavior changes • complexity │
79
82
  │ • Tests • coupling • plan compliance │
80
83
  └──────────────────────┬───────────────────────┘
81
84
  ↓
85
+ HUMAN DISPOSITIONS EACH MATERIAL
86
+ AI FINDING WITH RATIONALE / EVIDENCE
87
+ ↓
82
88
  ┌──────────────────────────────────────────────┐
83
- │ 8. INDEPENDENT HUMAN REVIEW │
89
+ │ 9. INDEPENDENT HUMAN REVIEW │
84
90
  │ • Reviewer is not the implementer │
85
91
  │ • Final judgment on preservation/improvement │
86
92
  └──────────────────────┬───────────────────────┘
87
93
  ↓
88
- 9. HUMAN AUTHORIZES DEPLOY / RELEASE
94
+ 10. HUMAN AUTHORIZES DEPLOY / RELEASE
89
95
  WHEN APPLICABLE
90
96
  ↓
91
97
  ┌──────────────────────────────────────────────┐
92
- │ 10. VERIFY │
98
+ │ 11. VERIFY │
93
99
  │ │
94
100
  │ HUMAN │
95
101
  │ • Verify invariants │
@@ -100,12 +106,13 @@ Use product change when externally meaningful behavior is intentionally changing
100
106
  └──────────────────────┬───────────────────────┘
101
107
  ↓
102
108
  ┌──────────────────────────────────────────────┐
103
- │ 11. AI AUDIT │
109
+ │ 12. AI AUDIT │
104
110
  │ • Compare invariants, target, plan, reviews, │
105
111
  │ deployment, and observed evidence │
106
- │ HUMAN disposes material findings │
107
112
  └──────────────────────┬───────────────────────┘
108
113
  ↓
114
+ HUMAN DISPOSITIONS AUDIT FINDINGS
115
+ ↓
109
116
  ┌───────────────┐
110
117
  │ INVARIANTS │
111
118
  │ PRESERVED? │
@@ -118,7 +125,7 @@ Use product change when externally meaningful behavior is intentionally changing
118
125
  │ │ IMPROVED? │
119
126
  │ └───────┬────────┘
120
127
  │ NO ↙ ↘ YES
121
- │ │ └────► HUMAN OUTCOME GATE
128
+ │ │ └────► HUMAN OUTCOME GATE (13)
122
129
  │ ▼
123
130
  │ HUMAN CHOOSES
124
131
  │ ├─ Rework ─────────────↺ IMPLEMENT
@@ -144,14 +151,15 @@ Preservation and improvement are separate judgments. A failed invariant cannot b
144
151
  | Invariants | Behavior that must remain unchanged, scope, and non-goals | Identify overlooked contracts and consumers | Explicit invariants and exclusions | Human accepts the preservation contract |
145
152
  | Baseline | Current quality evidence and measurement validity | Gather metrics and identify measurement gaps | Tests, measurements, structural evidence, or observations | Baseline is credible enough for comparison |
146
153
  | Target | Quality to improve, success threshold, and tradeoffs | Suggest measures and unintended effects | Target quality and acceptance signal | Improvement can be evaluated |
147
- | Options and decision | Initial approach, selection, and risk | Expand alternatives, expose coupling, and challenge abstraction | Options, decision, and rationale | Human approves the approach |
154
+ | Options | Initial approach and evaluation of alternatives | After the human first pass, expand alternatives, expose coupling, and challenge abstraction | Human option, AI challenge when used, and evaluated options | Viable approaches and tradeoffs are understood |
155
+ | Decision | Selection, risk, confidence, and reversibility | Check the option against baseline, target, and invariants | Decision and rationale | Human approves the approach |
148
156
  | Plan | First-pass sequence, verification, and rollback | Find affected boundaries, migration needs, and missing tests | Plan and invariant checks | Human approves the final plan |
149
157
  | Implement | Engineering change and scope control | Bounded refactoring, explanation, tests, and mechanical assistance | Linked changeset and deviations | Change is ready for review |
150
- | AI review | Disposition of valid findings | Review for hidden behavior changes, incidental complexity, tests, and plan alignment | AI findings and dispositions | Blocking findings are resolved or rejected with rationale |
158
+ | AI review | Validate and disposition every material AI finding | Review the exact snapshot for hidden behavior changes, incidental complexity, tests, and plan alignment without modifying it | Snapshot-bound AI findings; separate human disposition | Every material finding is fixed, invalid, accepted risk, or follow-up with rationale |
151
159
  | Human review | Independent final judgment by someone other than the implementer about simplicity, coupling, risk, and preservation | Answer targeted questions and retrieve evidence | Current independent human review | Independent human reviewer accepts the current change |
152
160
  | Deploy or release | Authorization and rollout decision | Analyze readiness evidence within policy | Version, environment, actor, time, and result | The intended version reaches the target environment or deployment is explicitly not applicable |
153
161
  | Verify | Invariant preservation and target-quality comparison | Analyze measurements and suggest negative checks | Before/after and deployed-outcome evidence when applicable, plus invariant results | Invariants are evaluated and target-quality results are measured; an invariant failure routes to rollback, rework, or product-change reclassification |
154
- | AI audit | Disposition of findings and required response | Compare invariants, target, plan, reviews, deployment, and observed evidence; identify divergence or weak proof | Audit findings and dispositions | Human has reviewed material findings |
162
+ | AI audit | Disposition of findings and required response | Compare invariants, target, plan, reviews, deployment, and observed evidence; identify divergence or weak proof | AI audit findings; separate human disposition | The human disposer accepts the audit gate or reopens work |
155
163
  | Outcome | Acceptance, rollback, partial result, or new work | Summarize learning | Outcome, remaining debt, and follow-ups | Human accepts closure |
156
164
 
157
165
  ## Preservation and improvement chain
@@ -172,7 +180,13 @@ HUMAN DECISION / FIRST-PASS PLAN
172
180
  ENGINEER-OWNED CHANGESET
173
181
  │
174
182
  ▼
175
- AI REVIEW + INDEPENDENT HUMAN REVIEW
183
+ SNAPSHOT-BOUND AI REVIEW
184
+ │
185
+ ▼
186
+ IMPLEMENTING-HUMAN DISPOSITION
187
+ │
188
+ ▼
189
+ INDEPENDENT HUMAN REVIEW
176
190
  │
177
191
  ▼
178
192
  HUMAN-AUTHORIZED DEPLOYMENT WHEN APPLICABLE
@@ -1,5 +1,7 @@
1
1
  # Investigation Workflow
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: pilot v0.1
4
6
 
5
7
  ## Outcome
@@ -72,6 +74,8 @@ An investigation may end with no action, insufficient evidence, several viable i
72
74
  │ AI — ASSIST │
73
75
  │ • May fully generate an isolated throwaway │
74
76
  │ prototype under prototype policy │
77
+ │ HUMAN records prototype disposition, or │
78
+ │ explicitly records that none was used │
75
79
  └──────────────────────┬───────────────────────┘
76
80
  ↓
77
81
  ┌───────────────┐
@@ -110,7 +114,7 @@ Stopping conditions may be satisfied by enough evidence for a conclusion, exhaus
110
114
  | Frame | Question, decision relevance, audience, scope, and initial understanding | Clarify ambiguity and identify adjacent questions | Primary question and why it matters | Human accepts the question |
111
115
  | Bound | Confidence needed, exclusions, time or evidence budget, and stopping conditions | Challenge whether the question is answerable | Scope, limits, and stopping rule | Investigation can proceed without unbounded research |
112
116
  | Gather | Source evaluation and evidence access | Locate, summarize, compare, cite, and expose conflicts | Evidence links, source quality, and observations | Relevant available evidence is assembled |
113
- | Model and explore | Mental model, path selection, test authorization, and interpretation | Generate hypotheses, analysis approaches, or prototype ideas | Model, assumptions, hypotheses, tests, and results | Evidence is sufficient for synthesis or budget is reached |
117
+ | Model and explore | Mental model, path selection, test authorization, interpretation, and prototype disposition | Generate hypotheses, analysis approaches, or an isolated disposable prototype | Model, predictions, tests, results, and human prototype disposition or no-prototype record | Evidence is sufficient for synthesis or budget is reached |
114
118
  | Synthesize | Meaning, confidence, contradictory evidence, and limitations | Organize findings and challenge overclaiming | Findings, confidence, limits, and unknowns | Human can state a bounded conclusion |
115
119
  | Conclude and route | Accepted conclusion, recommendation, and next workflow | Suggest follow-up questions or routes | Conclusion and linked decision/change/debug/improvement runs | Human accepts closure or explicitly extends the investigation |
116
120
 
@@ -1,5 +1,7 @@
1
1
  # Operational Stabilization Workflow
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: pilot v0.1
4
6
 
5
7
  ## Outcome
@@ -40,7 +42,8 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
40
42
  │ │
41
43
  ▼ ▼
42
44
  ┌──────────────────────┐ ┌──────────────────────┐
43
- │ 2A. INVESTIGATE │ │ 2B. STABILIZE │
45
+ │ 2A. RESPOND: │ │ 2B. RESPOND: │
46
+ │ INVESTIGATE │ │ STABILIZE │
44
47
  │ │ │ │
45
48
  │ HUMAN LEADS │ │ HUMAN LEADS │
46
49
  │ • Model system │ │ • Set priorities │
@@ -55,7 +58,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
55
58
  │ CONTINUES │
56
59
  │ WHILE NEEDED ▼
57
60
  │ ┌─────────────────────────┐
58
- │ │ 3. HUMAN ACTION GATE │
61
+ │ │ 2C. HUMAN ACTION GATE │
59
62
  │ MAY INFORM │ │
60
63
  ├─ - - - - - - - - - ►│ • Authorize actor/scope │
61
64
  │ NO BARRIER │ • Blast radius │
@@ -64,14 +67,14 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
64
67
  │ └────────────┬────────────┘
65
68
  │ ↓
66
69
  ┌──────────────────────────────────────────────┐
67
- │ 4. EXECUTE AND OBSERVE │
70
+ │ 3. EXECUTE AND OBSERVE │
68
71
  │ │
69
72
  │ HUMAN / PREAUTHORIZED AUTOMATION │
70
73
  │ • Performs the operational action │
71
74
  │ │
72
75
  │ AI — ASSIST │
73
- │ • May act only through separate, scoped, │
74
- │ human-authorized operational permission │
76
+ │ • Interprets authorized observations │
77
+ │ • Does not execute the intervention │
75
78
  │ • Workflow phase grants no production access │
76
79
  └──────────────────────┬───────────────────────┘
77
80
  ↓
@@ -82,7 +85,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
82
85
  ↺ INVESTIGATE │
83
86
  / STABILIZE ▼
84
87
  ┌──────────────────────────────────────────────┐
85
- │ 5. VERIFY RECOVERY │
88
+ │ 4. VERIFY RECOVERY │
86
89
  │ │
87
90
  │ HUMAN │
88
91
  │ • Verify convergence and user-visible state │
@@ -92,7 +95,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
92
95
  └──────────────────────┬───────────────────────┘
93
96
  ↓
94
97
  ┌──────────────────────────────────────────────┐
95
- │ 6. MONITOR RECURRENCE │
98
+ │ 5. MONITOR RECURRENCE │
96
99
  │ HUMAN selects duration and signals │
97
100
  │ AI — ASSIST │
98
101
  │ • Summarize authorized telemetry │
@@ -105,7 +108,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
105
108
  ↺ INVESTIGATE │
106
109
  / STABILIZE ▼
107
110
  ┌──────────────────────────────────────────────┐
108
- │ 7. HUMAN OUTCOME │
111
+ │ 6. HUMAN OUTCOME │
109
112
  │ • Accept closure and remaining risk │
110
113
  │ • Link corrective, investigation, decision, │
111
114
  │ or improvement follow-up runs │
@@ -114,14 +117,15 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
114
117
 
115
118
  Investigation and stabilization proceed independently: there is no join gate. Investigation may inform an intervention and continue after it, but service restoration does not wait for a complete causal explanation when a human authorizes a proportionate intervention.
116
119
 
120
+ The executable `respond` phase contains both parallel tracks and the human action gate shown as 2A–2C. Combining their evidence in one phase visit preserves the no-join rule: a bounded intervention may be authorized while causal investigation remains incomplete.
121
+
117
122
  ## Minimal phases
118
123
 
119
124
  | Phase | Human owns | AI may | Minimum record | Advance when |
120
125
  |---|---|---|---|---|
121
- | Detect and assess | Incident declaration, impact, scope, severity, and desired operating state | Correlate authorized signals and expose missing information | Timeline start, affected users/systems, actual and desired state | Response mode and ownership are clear |
122
- | Investigate | System/control-loop model, hypothesis selection, test authorization, and conclusions | Organize telemetry, identify changes, generate hypotheses, find contradictions | Facts, timeline, model, hypotheses, tests, and unknowns | Enough is known to guide action or bound uncertainty |
123
- | Stabilize | Containment, mitigation, recovery priorities, and risk | Compare interventions, rollback paths, and likely side effects | Candidate action, purpose, scope, blast radius, rollback | Human authorizes consequential action |
124
- | Execute and observe | Action execution and interpretation | Assist only within separately authorized operational permissions | Actor, command or change, time, result, and new evidence | Result is known and desired state is approached |
126
+ | Assess | Response-mode declaration, impact, scope, urgency, desired state, ownership, and recovery signals | Correlate authorized signals and expose missing information after the human assessment begins | Assessment and response-mode record | Response mode, ownership, boundaries, and recovery criteria are clear |
127
+ | Respond | System model, investigation direction, stabilization priorities, and selected intervention | Organize telemetry, generate hypotheses, compare interventions, and expose contradictions or side effects | Human model, optional investigation ledger, and bounded intervention with rollback and stop conditions | Human authorizes the consequential action; proven root cause is not required |
128
+ | Execute and observe | Action execution, stop or rollback decisions, and interpretation | Analyze observations; AI has no execute capability in this phase | Actor, command or change, time, result, and new evidence | Result is known and desired state is approached |
125
129
  | Verify recovery | Recovery criteria and user-visible validation | Analyze convergence and recurrence indicators | Health, convergence, and external behavior evidence | Recovery is demonstrated, not merely assumed |
126
130
  | Monitor | Duration and signals sufficient to detect recurrence | Summarize authorized telemetry | Monitoring window and result | Human accepts stability or reopens response |
127
131
  | Outcome and follow-up | Closure, remaining risk, causal confidence, and routed work | Summarize timeline and proposed follow-ups | Outcome, unknowns, deferred records, linked runs | Human accepts closure and follow-up disposition |
@@ -1,5 +1,7 @@
1
1
  # Product Change Workflow
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: pilot v0.1
4
6
 
5
7
  ## Outcome
@@ -110,6 +112,9 @@ Do not use it when the main task is explaining an observed failure, restoring a
110
112
  │ • Maintainability │
111
113
  └──────────────────────┬───────────────────────┘
112
114
  ↓
115
+ HUMAN DISPOSITIONS EACH MATERIAL
116
+ AI FINDING WITH RATIONALE / EVIDENCE
117
+ ↓
113
118
  ┌──────────────────────────────────────────────┐
114
119
  │ 9. INDEPENDENT HUMAN REVIEW │
115
120
  │ • Final engineering judgment by a reviewer │
@@ -123,6 +128,8 @@ Do not use it when the main task is explaining an observed failure, restoring a
123
128
  ↓
124
129
  12. AI AUDIT
125
130
  ↓
131
+ HUMAN DISPOSITIONS AUDIT FINDINGS
132
+ ↓
126
133
  ┌──────────────────────────────────────────────┐
127
134
  │ 13. HUMAN OUTCOME │
128
135
  │ • Accept, roll back, follow up, or abandon │
@@ -146,11 +153,11 @@ An important unknown is disposed only when it is answered or an accountable huma
146
153
  | Decide | Selection and consequences | Check rationale and surface risks | Decision, rationale, tradeoffs, reversibility | Accountable human approves the decision |
147
154
  | Plan | First-pass implementation plan | Identify gaps, dependencies, tests, risks, and rollback needs | Sequenced plan and deviations policy | Human approves the final plan |
148
155
  | Implement | Code and engineering changes | Bounded generation, explanation, tests, debugging, and refactoring assistance | Linked changeset and plan deviations | Work is ready for independent review and checks pass |
149
- | AI review | Resolution of valid findings | Review behavior, security, tests, architecture, and plan alignment | Findings and dispositions | Blocking findings are resolved or rejected with rationale |
156
+ | AI review | Validate and disposition every material AI finding | Review the exact snapshot for behavior, security, tests, architecture, and plan alignment without modifying it | Snapshot-bound AI findings; separate human disposition | Every material finding is fixed, invalid, accepted risk, or follow-up with rationale |
150
157
  | Human review | Independent final engineering judgment by someone other than the implementer | Answer targeted questions and retrieve evidence | Current independent human review | Independent human reviewer accepts the current change |
151
158
  | Deploy or release | Authorization and rollout decision | Analyze readiness evidence within policy | Version, environment, actor, time, and result | The intended version reaches the target environment or deployment is explicitly not applicable |
152
159
  | Verify and observe | Evaluation against intended behavior | Suggest checks and analyze authorized observations | Test, deployment, and user-visible evidence | Intended outcome is demonstrated or failure is recorded |
153
- | AI audit | Disposition of findings and any required response | Compare the result with the problem, decision, plan, reviews, and observed behavior; identify divergence, weak evidence, and missed learning | Audit findings and dispositions | Human has reviewed material findings |
160
+ | AI audit | Disposition of findings and any required response | Compare the result with the problem, decision, plan, reviews, and observed behavior; identify divergence, weak evidence, and missed learning | AI audit findings; separate human disposition | The human disposer accepts the audit gate or reopens work |
154
161
  | Outcome | Acceptance, rollback, follow-up, or abandonment | Summarize learning | Result, uncertainty, follow-ups | Human accepts closure or routes more work |
155
162
 
156
163
  ## Artifact and evidence chain
@@ -174,7 +181,13 @@ HUMAN FIRST-PASS / FINAL PLAN
174
181
  CHANGESET / TESTS
175
182
  │
176
183
  ▼
177
- AI REVIEW / INDEPENDENT HUMAN REVIEW
184
+ SNAPSHOT-BOUND AI REVIEW
185
+ │
186
+ ▼
187
+ IMPLEMENTING-HUMAN DISPOSITION
188
+ │
189
+ ▼
190
+ INDEPENDENT HUMAN REVIEW
178
191
  │
179
192
  ▼
180
193
  HUMAN-AUTHORIZED DEPLOYMENT