ahead-pi 0.2.1 → 0.3.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 (91) hide show
  1. package/README.md +17 -7
  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/docs/design/adapted-skill-guidance.md +27 -0
  69. package/generated/reference/docs/design/executable-workflows.md +20 -8
  70. package/generated/reference/docs/design/instruction-authoring.md +28 -0
  71. package/generated/reference/docs/design/review-workbench.md +37 -0
  72. package/generated/reference/docs/recommended-skills.md +19 -0
  73. package/generated/reference/docs/workflows/README.md +3 -3
  74. package/generated/reference/docs/workflows/corrective-debugging.md +37 -19
  75. package/generated/reference/docs/workflows/decision.md +2 -2
  76. package/generated/reference/docs/workflows/internal-improvement.md +35 -23
  77. package/generated/reference/docs/workflows/investigation.md +3 -1
  78. package/generated/reference/docs/workflows/operational-stabilization.md +14 -12
  79. package/generated/reference/docs/workflows/product-change.md +14 -3
  80. package/generated/reference/index.json +131 -13
  81. package/package.json +34 -25
  82. package/src/engine.ts +26 -7
  83. package/src/flow-guides.ts +168 -0
  84. package/src/guidance.ts +218 -72
  85. package/src/index.ts +603 -175
  86. package/src/reference-viewer.ts +20 -18
  87. package/src/reference.ts +65 -14
  88. package/src/review.ts +360 -0
  89. package/src/skills.ts +133 -0
  90. package/src/storage.ts +77 -13
  91. package/src/types.ts +1 -0
@@ -23,20 +23,21 @@ Use product change when externally meaningful behavior is intentionally changing
23
23
  └──────────────────────┬───────────────────────┘
24
24
 
25
25
  ┌──────────────────────────────────────────────┐
26
- │ 2. BASELINE AND TARGET
26
+ │ 2. BASELINE
27
27
  │ │
28
- │ HUMAN
29
- Accept current evidence and measurement
30
- │ • Define target quality │
31
- │ • Define success threshold │
28
+ │ HUMAN accepts method, evidence, uncertainty
29
+ AI ASSIST challenges noise / confounders
30
+ └──────────────────────┬───────────────────────┘
31
+
32
+ ┌──────────────────────────────────────────────┐
33
+ │ 3. TARGET │
32
34
  │ │
33
- AI ASSIST
34
- Gather metrics find measurement gaps
35
- │ • Suggest unintended effects to watch │
35
+ HUMAN defines quality, threshold, guardrails
36
+ AI ASSIST exposes gaming / shifted cost
36
37
  └──────────────────────┬───────────────────────┘
37
38
 
38
39
  ┌──────────────────────────────────────────────┐
39
- 3. OPTIONS │
40
+ 4. OPTIONS │
40
41
  │ │
41
42
  │ HUMAN — FIRST PASS │
42
43
  │ • Propose at least one improvement approach │
@@ -50,13 +51,13 @@ Use product change when externally meaningful behavior is intentionally changing
50
51
  └──────────────────────┬───────────────────────┘
51
52
 
52
53
  ┌──────────────────────────────────────────────┐
53
- 4. HUMAN DECISION GATE │
54
+ 5. HUMAN DECISION GATE │
54
55
  │ • Select approach and accept tradeoffs │
55
56
  │ • Record rationale │
56
57
  └──────────────────────┬───────────────────────┘
57
58
 
58
59
  ┌──────────────────────────────────────────────┐
59
- 5. PLAN │
60
+ 6. PLAN │
60
61
  │ │
61
62
  │ HUMAN — FIRST PASS │
62
63
  │ • Sequence change, checks, and rollback │
@@ -68,28 +69,31 @@ Use product change when externally meaningful behavior is intentionally changing
68
69
  └──────────────────────┬───────────────────────┘
69
70
 
70
71
  ┌──────────────────────────────────────────────┐
71
- 6. IMPLEMENT │
72
+ 7. IMPLEMENT │
72
73
  │ ENGINEER owns and understands the change │
73
74
  │ AI — ASSIST with bounded contributions │
74
75
  └──────────────────────┬───────────────────────┘
75
76
 
76
77
  ┌──────────────────────────────────────────────┐
77
- 7. AI REVIEW │
78
+ 8. AI REVIEW │
78
79
  │ • Hidden behavior changes • complexity │
79
80
  │ • Tests • coupling • plan compliance │
80
81
  └──────────────────────┬───────────────────────┘
81
82
 
83
+ HUMAN DISPOSITIONS EACH MATERIAL
84
+ AI FINDING WITH RATIONALE / EVIDENCE
85
+
82
86
  ┌──────────────────────────────────────────────┐
83
- 8. INDEPENDENT HUMAN REVIEW │
87
+ 9. INDEPENDENT HUMAN REVIEW │
84
88
  │ • Reviewer is not the implementer │
85
89
  │ • Final judgment on preservation/improvement │
86
90
  └──────────────────────┬───────────────────────┘
87
91
 
88
- 9. HUMAN AUTHORIZES DEPLOY / RELEASE
92
+ 10. HUMAN AUTHORIZES DEPLOY / RELEASE
89
93
  WHEN APPLICABLE
90
94
 
91
95
  ┌──────────────────────────────────────────────┐
92
- 10. VERIFY │
96
+ 11. VERIFY │
93
97
  │ │
94
98
  │ HUMAN │
95
99
  │ • Verify invariants │
@@ -100,12 +104,13 @@ Use product change when externally meaningful behavior is intentionally changing
100
104
  └──────────────────────┬───────────────────────┘
101
105
 
102
106
  ┌──────────────────────────────────────────────┐
103
- 11. AI AUDIT │
107
+ 12. AI AUDIT │
104
108
  │ • Compare invariants, target, plan, reviews, │
105
109
  │ deployment, and observed evidence │
106
- │ HUMAN disposes material findings │
107
110
  └──────────────────────┬───────────────────────┘
108
111
 
112
+ HUMAN DISPOSITIONS AUDIT FINDINGS
113
+
109
114
  ┌───────────────┐
110
115
  │ INVARIANTS │
111
116
  │ PRESERVED? │
@@ -118,7 +123,7 @@ Use product change when externally meaningful behavior is intentionally changing
118
123
  │ │ IMPROVED? │
119
124
  │ └───────┬────────┘
120
125
  │ NO ↙ ↘ YES
121
- │ │ └────► HUMAN OUTCOME GATE
126
+ │ │ └────► HUMAN OUTCOME GATE (13)
122
127
  │ ▼
123
128
  │ HUMAN CHOOSES
124
129
  │ ├─ Rework ─────────────↺ IMPLEMENT
@@ -144,14 +149,15 @@ Preservation and improvement are separate judgments. A failed invariant cannot b
144
149
  | 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
150
  | 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
151
  | 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 |
152
+ | 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 |
153
+ | Decision | Selection, risk, confidence, and reversibility | Check the option against baseline, target, and invariants | Decision and rationale | Human approves the approach |
148
154
  | 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
155
  | 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 |
156
+ | 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
157
  | 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
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 |
153
159
  | 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 |
160
+ | 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
161
  | Outcome | Acceptance, rollback, partial result, or new work | Summarize learning | Outcome, remaining debt, and follow-ups | Human accepts closure |
156
162
 
157
163
  ## Preservation and improvement chain
@@ -172,7 +178,13 @@ HUMAN DECISION / FIRST-PASS PLAN
172
178
  ENGINEER-OWNED CHANGESET
173
179
 
174
180
 
175
- AI REVIEW + INDEPENDENT HUMAN REVIEW
181
+ SNAPSHOT-BOUND AI REVIEW
182
+
183
+
184
+ IMPLEMENTING-HUMAN DISPOSITION
185
+
186
+
187
+ INDEPENDENT HUMAN REVIEW
176
188
 
177
189
 
178
190
  HUMAN-AUTHORIZED DEPLOYMENT WHEN APPLICABLE
@@ -72,6 +72,8 @@ An investigation may end with no action, insufficient evidence, several viable i
72
72
  │ AI — ASSIST │
73
73
  │ • May fully generate an isolated throwaway │
74
74
  │ prototype under prototype policy │
75
+ │ HUMAN records prototype disposition, or │
76
+ │ explicitly records that none was used │
75
77
  └──────────────────────┬───────────────────────┘
76
78
 
77
79
  ┌───────────────┐
@@ -110,7 +112,7 @@ Stopping conditions may be satisfied by enough evidence for a conclusion, exhaus
110
112
  | 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
113
  | 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
114
  | 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 |
115
+ | 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
116
  | Synthesize | Meaning, confidence, contradictory evidence, and limitations | Organize findings and challenge overclaiming | Findings, confidence, limits, and unknowns | Human can state a bounded conclusion |
115
117
  | 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
118
 
@@ -40,7 +40,8 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
40
40
  │ │
41
41
  ▼ ▼
42
42
  ┌──────────────────────┐ ┌──────────────────────┐
43
- │ 2A. INVESTIGATE │ │ 2B. STABILIZE
43
+ │ 2A. RESPOND: │ │ 2B. RESPOND:
44
+ │ INVESTIGATE │ │ STABILIZE │
44
45
  │ │ │ │
45
46
  │ HUMAN LEADS │ │ HUMAN LEADS │
46
47
  │ • Model system │ │ • Set priorities │
@@ -55,7 +56,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
55
56
  │ CONTINUES │
56
57
  │ WHILE NEEDED ▼
57
58
  │ ┌─────────────────────────┐
58
- │ │ 3. HUMAN ACTION GATE
59
+ │ │ 2C. HUMAN ACTION GATE
59
60
  │ MAY INFORM │ │
60
61
  ├─ - - - - - - - - - ►│ • Authorize actor/scope │
61
62
  │ NO BARRIER │ • Blast radius │
@@ -64,14 +65,14 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
64
65
  │ └────────────┬────────────┘
65
66
  │ ↓
66
67
  ┌──────────────────────────────────────────────┐
67
- 4. EXECUTE AND OBSERVE │
68
+ 3. EXECUTE AND OBSERVE │
68
69
  │ │
69
70
  │ HUMAN / PREAUTHORIZED AUTOMATION │
70
71
  │ • Performs the operational action │
71
72
  │ │
72
73
  │ AI — ASSIST │
73
- │ • May act only through separate, scoped,
74
- human-authorized operational permission
74
+ │ • Interprets authorized observations
75
+ Does not execute the intervention
75
76
  │ • Workflow phase grants no production access │
76
77
  └──────────────────────┬───────────────────────┘
77
78
 
@@ -82,7 +83,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
82
83
  ↺ INVESTIGATE │
83
84
  / STABILIZE ▼
84
85
  ┌──────────────────────────────────────────────┐
85
- 5. VERIFY RECOVERY │
86
+ 4. VERIFY RECOVERY │
86
87
  │ │
87
88
  │ HUMAN │
88
89
  │ • Verify convergence and user-visible state │
@@ -92,7 +93,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
92
93
  └──────────────────────┬───────────────────────┘
93
94
 
94
95
  ┌──────────────────────────────────────────────┐
95
- 6. MONITOR RECURRENCE │
96
+ 5. MONITOR RECURRENCE │
96
97
  │ HUMAN selects duration and signals │
97
98
  │ AI — ASSIST │
98
99
  │ • Summarize authorized telemetry │
@@ -105,7 +106,7 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
105
106
  ↺ INVESTIGATE │
106
107
  / STABILIZE ▼
107
108
  ┌──────────────────────────────────────────────┐
108
- 7. HUMAN OUTCOME │
109
+ 6. HUMAN OUTCOME │
109
110
  │ • Accept closure and remaining risk │
110
111
  │ • Link corrective, investigation, decision, │
111
112
  │ or improvement follow-up runs │
@@ -114,14 +115,15 @@ Incident mode is an urgency and coordination overlay. It does not assert a cause
114
115
 
115
116
  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
117
 
118
+ 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.
119
+
117
120
  ## Minimal phases
118
121
 
119
122
  | Phase | Human owns | AI may | Minimum record | Advance when |
120
123
  |---|---|---|---|---|
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 |
124
+ | 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 |
125
+ | 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 |
126
+ | 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
127
  | 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
128
  | Monitor | Duration and signals sufficient to detect recurrence | Summarize authorized telemetry | Monitoring window and result | Human accepts stability or reopens response |
127
129
  | 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 |
@@ -110,6 +110,9 @@ Do not use it when the main task is explaining an observed failure, restoring a
110
110
  │ • Maintainability │
111
111
  └──────────────────────┬───────────────────────┘
112
112
 
113
+ HUMAN DISPOSITIONS EACH MATERIAL
114
+ AI FINDING WITH RATIONALE / EVIDENCE
115
+
113
116
  ┌──────────────────────────────────────────────┐
114
117
  │ 9. INDEPENDENT HUMAN REVIEW │
115
118
  │ • Final engineering judgment by a reviewer │
@@ -123,6 +126,8 @@ Do not use it when the main task is explaining an observed failure, restoring a
123
126
 
124
127
  12. AI AUDIT
125
128
 
129
+ HUMAN DISPOSITIONS AUDIT FINDINGS
130
+
126
131
  ┌──────────────────────────────────────────────┐
127
132
  │ 13. HUMAN OUTCOME │
128
133
  │ • Accept, roll back, follow up, or abandon │
@@ -146,11 +151,11 @@ An important unknown is disposed only when it is answered or an accountable huma
146
151
  | Decide | Selection and consequences | Check rationale and surface risks | Decision, rationale, tradeoffs, reversibility | Accountable human approves the decision |
147
152
  | Plan | First-pass implementation plan | Identify gaps, dependencies, tests, risks, and rollback needs | Sequenced plan and deviations policy | Human approves the final plan |
148
153
  | 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 |
154
+ | 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
155
  | 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
156
  | 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
157
  | 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 |
158
+ | 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
159
  | Outcome | Acceptance, rollback, follow-up, or abandonment | Summarize learning | Result, uncertainty, follow-ups | Human accepts closure or routes more work |
155
160
 
156
161
  ## Artifact and evidence chain
@@ -174,7 +179,13 @@ HUMAN FIRST-PASS / FINAL PLAN
174
179
  CHANGESET / TESTS
175
180
 
176
181
 
177
- AI REVIEW / INDEPENDENT HUMAN REVIEW
182
+ SNAPSHOT-BOUND AI REVIEW
183
+
184
+
185
+ IMPLEMENTING-HUMAN DISPOSITION
186
+
187
+
188
+ INDEPENDENT HUMAN REVIEW
178
189
 
179
190
 
180
191
  HUMAN-AUTHORIZED DEPLOYMENT
@@ -2,13 +2,17 @@
2
2
  "generated_from": [
3
3
  "CONSTITUTION.md",
4
4
  "docs/acceptable-ai-use.md",
5
+ "docs/design/adapted-skill-guidance.md",
5
6
  "docs/design/debugging-and-operations.md",
6
7
  "docs/design/executable-workflows.md",
8
+ "docs/design/instruction-authoring.md",
7
9
  "docs/design/process-taxonomy.md",
10
+ "docs/design/review-workbench.md",
8
11
  "docs/engineering-practice.md",
9
12
  "docs/evidence/evidence-standard.md",
10
13
  "docs/evidence/research-map.md",
11
14
  "docs/rationale.md",
15
+ "docs/recommended-skills.md",
12
16
  "docs/references/pragmatic-programmer-page-index.md",
13
17
  "docs/references/submitted-engineering-notes.md",
14
18
  "docs/releasing-pi.md",
@@ -28,6 +32,9 @@
28
32
  "summary": "This constitution records the durable principles of **Assisted Human Engineering and Development**. Workflows and tools may evolve. These principles define what makes them AHEAD.",
29
33
  "phases": [
30
34
  "*"
35
+ ],
36
+ "workflows": [
37
+ "*"
31
38
  ]
32
39
  },
33
40
  {
@@ -37,6 +44,19 @@
37
44
  "summary": "This policy is binding for AHEAD pilot workflows. The [AHEAD Constitution](../CONSTITUTION.md) is the highest authority; this policy interprets its human-ownership boundaries; workflow profiles apply both and may narrow AI permissions for a",
38
45
  "phases": [
39
46
  "*"
47
+ ],
48
+ "workflows": [
49
+ "*"
50
+ ]
51
+ },
52
+ {
53
+ "id": "design:adapted-skill-guidance",
54
+ "path": "docs/design/adapted-skill-guidance.md",
55
+ "title": "Adapted Skill Guidance",
56
+ "summary": "AHEAD reviewed the [Matt Pocock skills collection](https://www.skills.sh/mattpocock/skills), including the specifically discussed [grill-me](https://www.skills.sh/mattpocock/skills/grill-me), [prototype](https://www.skills.sh/mattpocock/ski",
57
+ "phases": [],
58
+ "workflows": [
59
+ "*"
40
60
  ]
41
61
  },
42
62
  {
@@ -44,7 +64,10 @@
44
64
  "path": "docs/design/debugging-and-operations.md",
45
65
  "title": "Debugging and Operational Investigation",
46
66
  "summary": "The minimal [corrective-debugging](../workflows/corrective-debugging.md) and [operational-stabilization](../workflows/operational-stabilization.md) profiles translate this discussion into pilotable flows. This document retains the reasoning",
47
- "phases": []
67
+ "phases": [],
68
+ "workflows": [
69
+ "*"
70
+ ]
48
71
  },
49
72
  {
50
73
  "id": "design:executable-workflows",
@@ -53,6 +76,19 @@
53
76
  "summary": "The executable layer makes AHEAD workflow state durable and makes selected human/AI boundaries enforceable across integrations. It does not turn judgment into a checklist or make workflow artifacts proof of understanding.",
54
77
  "phases": [
55
78
  "*"
79
+ ],
80
+ "workflows": [
81
+ "*"
82
+ ]
83
+ },
84
+ {
85
+ "id": "design:instruction-authoring",
86
+ "path": "docs/design/instruction-authoring.md",
87
+ "title": "Instruction Authoring",
88
+ "summary": "AHEAD instructions are an executable interface to the framework. They should make the next valid behavior clear without duplicating the full Constitution, rationale, or workflow documentation into every model turn.",
89
+ "phases": [],
90
+ "workflows": [
91
+ "*"
56
92
  ]
57
93
  },
58
94
  {
@@ -60,7 +96,25 @@
60
96
  "path": "docs/design/process-taxonomy.md",
61
97
  "title": "AHEAD Process Taxonomy",
62
98
  "summary": "AHEAD should not create a workflow for every issue label. “Security,” “performance,” “data,” “incident,” and “technical debt” often describe risk, domain, urgency, or cause—not the kind of reasoning needed to complete the work.",
63
- "phases": []
99
+ "phases": [],
100
+ "workflows": [
101
+ "*"
102
+ ]
103
+ },
104
+ {
105
+ "id": "design:review-workbench",
106
+ "path": "docs/design/review-workbench.md",
107
+ "title": "Review Workbench",
108
+ "summary": "The review workbench makes the handoff from implementation to independent human review explicit and inspectable:",
109
+ "phases": [
110
+ "ai-review",
111
+ "human-review"
112
+ ],
113
+ "workflows": [
114
+ "product-change",
115
+ "corrective-debugging",
116
+ "internal-improvement"
117
+ ]
64
118
  },
65
119
  {
66
120
  "id": "engineering-practice",
@@ -69,6 +123,9 @@
69
123
  "summary": "AHEAD is not only a sequence of AI gates. It is a way of practicing engineering. This guide distills general habits from the submitted starting list into a smaller set of principles that can be remembered, applied, and evaluated.",
70
124
  "phases": [
71
125
  "*"
126
+ ],
127
+ "workflows": [
128
+ "*"
72
129
  ]
73
130
  },
74
131
  {
@@ -86,6 +143,9 @@
86
143
  "verify",
87
144
  "ai-audit",
88
145
  "outcome"
146
+ ],
147
+ "workflows": [
148
+ "*"
89
149
  ]
90
150
  },
91
151
  {
@@ -93,7 +153,10 @@
93
153
  "path": "docs/evidence/research-map.md",
94
154
  "title": "AHEAD Research Map",
95
155
  "summary": "This document maps current AHEAD design claims to available evidence. It is not a bibliography of everything related to software engineering. It focuses on claims that materially shape the methodology.",
96
- "phases": []
156
+ "phases": [],
157
+ "workflows": [
158
+ "*"
159
+ ]
97
160
  },
98
161
  {
99
162
  "id": "rationale",
@@ -102,6 +165,19 @@
102
165
  "summary": "AI can make software engineering faster. It can search broadly, synthesize information, identify omissions, generate alternatives, produce routine code, explain unfamiliar systems, and review more material than a person can inspect unaided.",
103
166
  "phases": [
104
167
  "*"
168
+ ],
169
+ "workflows": [
170
+ "*"
171
+ ]
172
+ },
173
+ {
174
+ "id": "recommended-skills",
175
+ "path": "docs/recommended-skills.md",
176
+ "title": "Recommended Skills",
177
+ "summary": "AHEAD may recommend independently maintained agent skills when they strengthen an active phase. Recommendations are references, not bundled code or silent dependencies. A human chooses whether to inspect and install one, and AHEAD's workflo",
178
+ "phases": [],
179
+ "workflows": [
180
+ "*"
105
181
  ]
106
182
  },
107
183
  {
@@ -109,63 +185,102 @@
109
185
  "path": "docs/references/pragmatic-programmer-page-index.md",
110
186
  "title": "*The Pragmatic Programmer* Page Index",
111
187
  "summary": "This index preserves the page-level provenance from the original AHEAD engineering-practice notes for:",
112
- "phases": []
188
+ "phases": [],
189
+ "workflows": [
190
+ "*"
191
+ ]
113
192
  },
114
193
  {
115
194
  "id": "references:submitted-engineering-notes",
116
195
  "path": "docs/references/submitted-engineering-notes.md",
117
196
  "title": "Submitted Engineering Notes",
118
197
  "summary": "This document preserves submitted engineering tips, checklists, and practices that are intentionally condensed in the [AHEAD Engineering Practice](../engineering-practice.md) guide. It is a source record, not a claim that every item is an e",
119
- "phases": []
198
+ "phases": [],
199
+ "workflows": [
200
+ "*"
201
+ ]
120
202
  },
121
203
  {
122
204
  "id": "releasing-pi",
123
205
  "path": "docs/releasing-pi.md",
124
206
  "title": "Releasing the Pi Extension",
125
207
  "summary": "- npm package: `ahead-pi` - package source: `integrations/pi` - release workflow: `.github/workflows/publish-pi.yml` - release tag: `pi-v<package-version>` - stable npm dist-tag: `latest` - prerelease npm dist-tag: `next` - registry: `https",
126
- "phases": []
208
+ "phases": [],
209
+ "workflows": [
210
+ "*"
211
+ ]
127
212
  },
128
213
  {
129
214
  "id": "workflows:readme",
130
215
  "path": "docs/workflows/README.md",
131
216
  "title": "AHEAD Pilot Workflows",
132
- "summary": "These six minimal workflow profiles are meant to be used on real engineering work before AHEAD builds a workflow engine, editor extension, or CI enforcement. They are deliberately small. The pilot should reveal which phases, gates, and reco",
133
- "phases": []
217
+ "summary": "These six minimal workflow profiles are meant to be used on real engineering work through the Pi adapter or a manual record. Their canonical executable contracts live in `spec/workflows`, while these documents explain the same boundaries an",
218
+ "phases": [
219
+ "*"
220
+ ],
221
+ "workflows": [
222
+ "*"
223
+ ]
134
224
  },
135
225
  {
136
226
  "id": "workflows:corrective-debugging",
137
227
  "path": "docs/workflows/corrective-debugging.md",
138
228
  "title": "Corrective Debugging Workflow",
139
229
  "summary": "Use this flow when observed behavior conflicts with intended behavior and the dominant work is causal diagnosis plus correction. It ends with a verified correction or an explicit human acceptance of remaining uncertainty.",
140
- "phases": []
230
+ "phases": [
231
+ "*"
232
+ ],
233
+ "workflows": [
234
+ "corrective-debugging"
235
+ ]
141
236
  },
142
237
  {
143
238
  "id": "workflows:decision",
144
239
  "path": "docs/workflows/decision.md",
145
240
  "title": "Decision Workflow",
146
241
  "summary": "Use this flow when the deliverable is an accountable human choice among alternatives: architecture, buy versus build, technology selection, platform direction, policy, or another consequential course.",
147
- "phases": []
242
+ "phases": [
243
+ "*"
244
+ ],
245
+ "workflows": [
246
+ "decision"
247
+ ]
148
248
  },
149
249
  {
150
250
  "id": "workflows:internal-improvement",
151
251
  "path": "docs/workflows/internal-improvement.md",
152
252
  "title": "Internal Improvement Workflow",
153
253
  "summary": "Use this flow when externally required behavior should remain invariant while an internal quality improves: maintainability, comprehensibility, performance, reliability margin, operability, testability, cost, or preventive risk reduction.",
154
- "phases": []
254
+ "phases": [
255
+ "*"
256
+ ],
257
+ "workflows": [
258
+ "internal-improvement"
259
+ ]
155
260
  },
156
261
  {
157
262
  "id": "workflows:investigation",
158
263
  "path": "docs/workflows/investigation.md",
159
264
  "title": "Investigation Workflow",
160
265
  "summary": "Use this flow when the primary deliverable is knowledge or reduced uncertainty and no intervention has yet been selected. It may answer feasibility, causal, capacity, vendor, architectural, or technical questions.",
161
- "phases": []
266
+ "phases": [
267
+ "*"
268
+ ],
269
+ "workflows": [
270
+ "investigation"
271
+ ]
162
272
  },
163
273
  {
164
274
  "id": "workflows:operational-stabilization",
165
275
  "path": "docs/workflows/operational-stabilization.md",
166
276
  "title": "Operational Stabilization Workflow",
167
277
  "summary": "Use this flow when a live system is outside an acceptable operating state and the immediate outcome is restoration, stabilization, or demonstrated convergence. It covers code and non-code causes such as reconciliation storms, configuration ",
168
- "phases": []
278
+ "phases": [
279
+ "*"
280
+ ],
281
+ "workflows": [
282
+ "operational-stabilization"
283
+ ]
169
284
  },
170
285
  {
171
286
  "id": "workflows:product-change",
@@ -174,6 +289,9 @@
174
289
  "summary": "Use this flow when the dominant outcome is new, changed, adapted, migrated, or retired externally meaningful behavior. It ends with verified intended behavior and an accountable human outcome decision.",
175
290
  "phases": [
176
291
  "*"
292
+ ],
293
+ "workflows": [
294
+ "product-change"
177
295
  ]
178
296
  }
179
297
  ]