ahead-pi 0.2.0 → 0.2.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 (40) hide show
  1. package/README.md +13 -3
  2. package/generated/product-change/ai-audit.md +6 -3
  3. package/generated/product-change/ai-review.md +6 -3
  4. package/generated/product-change/decision.md +6 -3
  5. package/generated/product-change/define.md +6 -3
  6. package/generated/product-change/deploy.md +6 -3
  7. package/generated/product-change/human-review.md +6 -3
  8. package/generated/product-change/implement.md +11 -4
  9. package/generated/product-change/manifest.json +2 -2
  10. package/generated/product-change/options.md +6 -3
  11. package/generated/product-change/outcome.md +6 -3
  12. package/generated/product-change/plan.md +6 -3
  13. package/generated/product-change/questions.md +6 -3
  14. package/generated/product-change/research.md +6 -3
  15. package/generated/product-change/verify.md +6 -3
  16. package/generated/reference/CONSTITUTION.md +43 -0
  17. package/generated/reference/docs/acceptable-ai-use.md +217 -0
  18. package/generated/reference/docs/design/debugging-and-operations.md +119 -0
  19. package/generated/reference/docs/design/executable-workflows.md +110 -0
  20. package/generated/reference/docs/design/process-taxonomy.md +144 -0
  21. package/generated/reference/docs/engineering-practice.md +163 -0
  22. package/generated/reference/docs/evidence/evidence-standard.md +123 -0
  23. package/generated/reference/docs/evidence/research-map.md +98 -0
  24. package/generated/reference/docs/rationale.md +210 -0
  25. package/generated/reference/docs/references/pragmatic-programmer-page-index.md +113 -0
  26. package/generated/reference/docs/references/submitted-engineering-notes.md +306 -0
  27. package/generated/reference/docs/releasing-pi.md +89 -0
  28. package/generated/reference/docs/workflows/README.md +142 -0
  29. package/generated/reference/docs/workflows/corrective-debugging.md +203 -0
  30. package/generated/reference/docs/workflows/decision.md +149 -0
  31. package/generated/reference/docs/workflows/internal-improvement.md +207 -0
  32. package/generated/reference/docs/workflows/investigation.md +159 -0
  33. package/generated/reference/docs/workflows/operational-stabilization.md +185 -0
  34. package/generated/reference/docs/workflows/product-change.md +205 -0
  35. package/generated/reference/index.json +180 -0
  36. package/package.json +4 -2
  37. package/src/guidance.ts +6 -4
  38. package/src/index.ts +128 -0
  39. package/src/reference-viewer.ts +71 -0
  40. package/src/reference.ts +56 -0
@@ -0,0 +1,159 @@
1
+ # Investigation Workflow
2
+
3
+ Status: pilot v0.1
4
+
5
+ ## Outcome
6
+
7
+ 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.
8
+
9
+ An investigation may end with no action, insufficient evidence, several viable interventions, or work routed to another flow.
10
+
11
+ ## Lifecycle
12
+
13
+ ```text
14
+ ┌──────────────────────────────────────────────┐
15
+ │ 1. FRAME QUESTION │
16
+ │ │
17
+ │ HUMAN │
18
+ │ • State the question and why it matters │
19
+ │ • Record initial understanding │
20
+ │ • Name audience or dependent decision │
21
+ └──────────────────────┬───────────────────────┘
22
+
23
+ ┌──────────────────────────────────────────────┐
24
+ │ 2. BOUND INVESTIGATION │
25
+ │ │
26
+ │ HUMAN │
27
+ │ • Define scope, exclusions, confidence need │
28
+ │ • Set time/evidence budget and stopping rule │
29
+ │ │
30
+ │ AI — ASSIST │
31
+ │ • Challenge whether it is answerable │
32
+ └──────────────────────┬───────────────────────┘
33
+
34
+ ┌──────────────────────────────────────────────┐
35
+ │ 3. GATHER EVIDENCE │
36
+ │ │
37
+ │ AI — ASSIST │
38
+ │ • Locate, summarize, compare, and cite │
39
+ │ • Expose conflicting or missing evidence │
40
+ │ │
41
+ │ HUMAN │
42
+ │ • Evaluate source quality and relevance │
43
+ └──────────────────────┬───────────────────────┘
44
+
45
+ ┌──────────────────────────────────────────────┐
46
+ │ 4. HUMAN MODEL │
47
+ │ • Build/update the explanation of the domain │
48
+ │ • Record assumptions and unknowns │
49
+ └──────────────────────┬───────────────────────┘
50
+
51
+ ┌──────────────────────────────────────────────┐
52
+ │ 5. EXPLORATION PATHS │
53
+ │ │
54
+ │ HUMAN │
55
+ │ • Contribute/select what is worth exploring │
56
+ │ │
57
+ │ AI — ASSIST │
58
+ │ • Generate hypotheses and alternatives │
59
+ │ • Suggest analyses, tests, or prototypes │
60
+ └──────────────────────┬───────────────────────┘
61
+
62
+ ┌──────────────────────────────────────────────┐
63
+ │ 6. HUMAN SELECTS AND AUTHORIZES │
64
+ │ • Test / analysis / disposable prototype │
65
+ │ • Prediction, safety, scope, and disposal │
66
+ └──────────────────────┬───────────────────────┘
67
+
68
+ ┌──────────────────────────────────────────────┐
69
+ │ 7. EXECUTE EXPLORATION │
70
+ │ │
71
+ │ HUMAN / ENGINEER OWNS THE EXPERIMENT │
72
+ │ AI — ASSIST │
73
+ │ • May fully generate an isolated throwaway │
74
+ │ prototype under prototype policy │
75
+ └──────────────────────┬───────────────────────┘
76
+
77
+ ┌───────────────┐
78
+ │ STOPPING │
79
+ │ CONDITION │
80
+ │ REACHED? │
81
+ └───────┬───────┘
82
+ NO ↙ ↘ YES
83
+ ↺ MODEL / PATHS │
84
+
85
+ ┌──────────────────────────────────────────────┐
86
+ │ 8. SYNTHESIZE │
87
+ │ │
88
+ │ HUMAN │
89
+ │ • Interpret evidence, contradictions, limits │
90
+ │ │
91
+ │ AI — ASSIST │
92
+ │ • Organize findings and challenge overclaims │
93
+ └──────────────────────┬───────────────────────┘
94
+
95
+ ┌──────────────────────────────────────────────┐
96
+ │ 9. HUMAN CONCLUSION / OUTCOME GATE │
97
+ │ • State conclusion, confidence, and unknowns │
98
+ │ • Recommend no action or link another flow │
99
+ └──────────────────────────────────────────────┘
100
+ ```
101
+
102
+ Full vibe coding is permitted for an isolated, explicitly disposable prototype when its purpose is learning. The learning is retained; prototype code is discarded or deliberately re-enters the appropriate production workflow.
103
+
104
+ Stopping conditions may be satisfied by enough evidence for a conclusion, exhaustion of the agreed time or evidence budget, discovery that the question is not currently answerable, or another human-approved boundary. Therefore “insufficient evidence” can advance to synthesis and an honest conclusion rather than forcing an endless loop.
105
+
106
+ ## Minimal phases
107
+
108
+ | Phase | Human owns | AI may | Minimum record | Advance when |
109
+ |---|---|---|---|---|
110
+ | 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
+ | 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
+ | 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 |
114
+ | Synthesize | Meaning, confidence, contradictory evidence, and limitations | Organize findings and challenge overclaiming | Findings, confidence, limits, and unknowns | Human can state a bounded conclusion |
115
+ | 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
+
117
+ ## Knowledge chain
118
+
119
+ ```text
120
+ HUMAN QUESTION / RELEVANCE
121
+
122
+
123
+ HUMAN SCOPE / STOPPING RULE
124
+
125
+
126
+ AI-ASSISTED EVIDENCE GATHERING
127
+ HUMAN SOURCE EVALUATION
128
+
129
+
130
+ HUMAN MODEL / ASSUMPTIONS
131
+
132
+
133
+ AI-EXPANDED EXPLORATION PATHS
134
+ HUMAN-SELECTED TEST / ANALYSIS / PROTOTYPE
135
+
136
+
137
+ RESULTS / CONTRADICTIONS
138
+
139
+
140
+ HUMAN CONCLUSION / CONFIDENCE / LIMITS
141
+
142
+
143
+ HUMAN RECOMMENDATION / LINKED RUN
144
+ ```
145
+
146
+ ## Non-waivable pilot rules
147
+
148
+ - The question is human-owned; AI does not quietly redefine it.
149
+ - Facts, retrieved claims, inference, and AI synthesis remain distinguishable.
150
+ - Important citations are followed to authoritative sources.
151
+ - A prototype demonstrates only what it actually tested.
152
+ - “Insufficient evidence” is a valid result.
153
+
154
+ ## Pilot questions
155
+
156
+ - Were the stopping conditions usable or did research expand indefinitely?
157
+ - Did the conclusion state confidence and contradictory evidence honestly?
158
+ - Did a disposable prototype answer the learning question without leaking into production?
159
+ - Was the next workflow clear when the investigation ended?
@@ -0,0 +1,185 @@
1
+ # Operational Stabilization Workflow
2
+
3
+ Status: pilot v0.1
4
+
5
+ ## Outcome
6
+
7
+ 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 drift, capacity exhaustion, provider behavior, dependency failure, and emergent controller interaction.
8
+
9
+ Incident mode is an urgency and coordination overlay. It does not assert a cause.
10
+
11
+ ## Lifecycle
12
+
13
+ ```text
14
+ LIVE SYSTEM OUTSIDE
15
+ ACCEPTABLE OPERATING STATE
16
+
17
+
18
+ ┌──────────────────────────────────────────────┐
19
+ │ 1. ASSESS │
20
+ │ │
21
+ │ HUMAN │
22
+ │ • Assess impact, urgency, and scope │
23
+ │ • Define desired versus actual state │
24
+ │ • Assign accountable ownership │
25
+ │ │
26
+ │ AI — ASSIST │
27
+ │ • Correlate authorized signals │
28
+ │ • Identify missing information │
29
+ └──────────────────────┬───────────────────────┘
30
+
31
+ ┌───────────────┐
32
+ │ HUMAN SELECTS │
33
+ │ RESPONSE MODE │
34
+ │ Normal / │
35
+ │ incident / │
36
+ │ emergency │
37
+ └───────┬───────┘
38
+
39
+ ┌──────── PARALLEL — NO JOIN BARRIER ────────┐
40
+ │ │
41
+ ▼ ▼
42
+ ┌──────────────────────┐ ┌──────────────────────┐
43
+ │ 2A. INVESTIGATE │ │ 2B. STABILIZE │
44
+ │ │ │ │
45
+ │ HUMAN LEADS │ │ HUMAN LEADS │
46
+ │ • Model system │ │ • Set priorities │
47
+ │ • Select tests │ │ • Select candidate │
48
+ │ • Interpret evidence│ │ intervention │
49
+ │ │ │ • Assess risk │
50
+ │ AI — ASSIST │ │ │
51
+ │ • Organize telemetry│ │ AI — ASSIST │
52
+ │ • Suggest hypotheses│ │ • Compare actions │
53
+ │ • Find conflicts │ │ • Find side effects │
54
+ └──────────┬───────────┘ └──────────┬───────────┘
55
+ │ CONTINUES │
56
+ │ WHILE NEEDED ▼
57
+ │ ┌─────────────────────────┐
58
+ │ │ 3. HUMAN ACTION GATE │
59
+ │ MAY INFORM │ │
60
+ ├─ - - - - - - - - - ►│ • Authorize actor/scope │
61
+ │ NO BARRIER │ • Blast radius │
62
+ │ │ • Rollback/containment │
63
+ │ │ • Accepted uncertainty │
64
+ │ └────────────┬────────────┘
65
+ │ ↓
66
+ ┌──────────────────────────────────────────────┐
67
+ │ 4. EXECUTE AND OBSERVE │
68
+ │ │
69
+ │ HUMAN / PREAUTHORIZED AUTOMATION │
70
+ │ • Performs the operational action │
71
+ │ │
72
+ │ AI — ASSIST │
73
+ │ • May act only through separate, scoped, │
74
+ │ human-authorized operational permission │
75
+ │ • Workflow phase grants no production access │
76
+ └──────────────────────┬───────────────────────┘
77
+
78
+ ┌───────────────┐
79
+ │ CONVERGING? │
80
+ └───────┬───────┘
81
+ NO ↙ ↘ YES
82
+ ↺ INVESTIGATE │
83
+ / STABILIZE ▼
84
+ ┌──────────────────────────────────────────────┐
85
+ │ 5. VERIFY RECOVERY │
86
+ │ │
87
+ │ HUMAN │
88
+ │ • Verify convergence and user-visible state │
89
+ │ │
90
+ │ AI — ASSIST │
91
+ │ • Analyze authorized recovery indicators │
92
+ └──────────────────────┬───────────────────────┘
93
+
94
+ ┌──────────────────────────────────────────────┐
95
+ │ 6. MONITOR RECURRENCE │
96
+ │ HUMAN selects duration and signals │
97
+ │ AI — ASSIST │
98
+ │ • Summarize authorized telemetry │
99
+ └──────────────────────┬───────────────────────┘
100
+
101
+ ┌───────────────┐
102
+ │ STABLE? │
103
+ └───────┬───────┘
104
+ NO ↙ ↘ YES
105
+ ↺ INVESTIGATE │
106
+ / STABILIZE ▼
107
+ ┌──────────────────────────────────────────────┐
108
+ │ 7. HUMAN OUTCOME │
109
+ │ • Accept closure and remaining risk │
110
+ │ • Link corrective, investigation, decision, │
111
+ │ or improvement follow-up runs │
112
+ └──────────────────────────────────────────────┘
113
+ ```
114
+
115
+ 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
+ ## Minimal phases
118
+
119
+ | Phase | Human owns | AI may | Minimum record | Advance when |
120
+ |---|---|---|---|---|
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 |
125
+ | 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
+ | Monitor | Duration and signals sufficient to detect recurrence | Summarize authorized telemetry | Monitoring window and result | Human accepts stability or reopens response |
127
+ | 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 |
128
+
129
+ ## Parallel evidence and action chains
130
+
131
+ ```text
132
+ OBSERVED OPERATING CONDITION
133
+
134
+
135
+ HUMAN-OWNED IMPACT / SCOPE / DESIRED STATE
136
+
137
+ ┌──────┴────────┐
138
+ ▼ ▼
139
+ EVIDENCE / MODEL STABILIZATION OPTIONS
140
+ │ CONTINUES │
141
+ ▼ ▼
142
+ HUMAN-SELECTED HUMAN AUTHORIZATION
143
+ HYPOTHESES / TESTS │
144
+ │ MAY INFORM ▼
145
+ ├─ - - - - - ► ACTION / OBSERVED RESULT
146
+ │ │
147
+ └──── updates ◄─────┘
148
+
149
+
150
+ HUMAN-ACCEPTED RECOVERY / CONVERGENCE
151
+
152
+
153
+ REMAINING RISK / LINKED FOLLOW-UP RUNS
154
+
155
+ The investigation chain has no join barrier. AI assists
156
+ evidence gathering, option generation, hypothesis
157
+ generation, and analysis; it owns no gate.
158
+ ```
159
+
160
+ ## Incident and emergency overlay
161
+
162
+ During incident or emergency mode, maintain at minimum:
163
+
164
+ - current owner and impact;
165
+ - timestamped consequential actions and decisions;
166
+ - actor, rationale, scope, blast radius, rollback, and result;
167
+ - current recovery criteria and communications owner;
168
+ - deferred records that must be reconstructed after stabilization.
169
+
170
+ ## Non-waivable pilot rules
171
+
172
+ - Workflow permission is not production authorization.
173
+ - A live intervention requires an accountable human unless existing automation was previously authorized for that action.
174
+ - Any lasting engineering change produced during stabilization still requires a human first-pass plan and independent human review, either in this record or a linked change run; emergency policy may defer but not erase those gates.
175
+ - Kubernetes readiness, controller status, or a successful command is not automatically user-visible recovery.
176
+ - The conclusion may include mechanism, trigger, enabling conditions, and detection or containment gaps rather than one root cause.
177
+ - Closure does not require every follow-up to remain inside the operational run.
178
+
179
+ ## Pilot questions
180
+
181
+ - What threshold should activate incident mode?
182
+ - Which records were feasible during response versus reconstructed later?
183
+ - When was unknown-cause remediation justified?
184
+ - What evidence demonstrated convergence and user-visible recovery?
185
+ - Did linked follow-up runs prevent the incident from remaining permanently open?
@@ -0,0 +1,205 @@
1
+ # Product Change Workflow
2
+
3
+ Status: pilot v0.1
4
+
5
+ ## Outcome
6
+
7
+ 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.
8
+
9
+ Do not use it when the main task is explaining an observed failure, restoring a live system, making a decision without implementation, producing knowledge, or improving internals while preserving behavior.
10
+
11
+ ## Lifecycle
12
+
13
+ ```text
14
+ ┌──────────────────────────────────────────────┐
15
+ │ 1. DEFINE PROBLEM │
16
+ │ │
17
+ │ HUMAN │
18
+ │ • Define desired outcome and users │
19
+ │ • Define constraints and scope │
20
+ │ • Define success signals │
21
+ │ • Define initial questions │
22
+ └──────────────────────┬───────────────────────┘
23
+
24
+ ┌──────────────────────────────────────────────┐
25
+ │ 2. RESEARCH │
26
+ │ │
27
+ │ AI — ASSIST │
28
+ │ • Search authorized sources │
29
+ │ • Compile and cite evidence │
30
+ │ • Answer known questions │
31
+ │ • Identify contradictions and gaps │
32
+ └──────────────────────┬───────────────────────┘
33
+
34
+ ┌──────────────────────────────────────────────┐
35
+ │ 3. RESEARCH REVIEW │
36
+ │ │
37
+ │ HUMAN │
38
+ │ • Read and understand the research │
39
+ │ • Ask follow-up questions │
40
+ │ • Challenge findings │
41
+ │ │
42
+ │ AI — ASSIST │
43
+ │ • Identify questions humans missed │
44
+ │ • Research unanswered questions │
45
+ └──────────────────────┬───────────────────────┘
46
+
47
+ ┌───────────────┐
48
+ │ IMPORTANT │
49
+ │ UNKNOWNS │
50
+ │ DISPOSED? │
51
+ └───────┬───────┘
52
+ NO ↙ ↘ YES
53
+ │ │
54
+ ↺ RESEARCH ↓
55
+ ┌──────────────────────────────────────────────┐
56
+ │ 4. OPTIONS │
57
+ │ │
58
+ │ HUMAN — FIRST PASS │
59
+ │ • Propose at least one viable approach │
60
+ │ • Explain initial reasoning │
61
+ │ │
62
+ │ AI — ASSIST │
63
+ │ • Research and challenge the human option │
64
+ │ • Identify additional approaches │
65
+ │ • Compare tradeoffs and risks │
66
+ │ │
67
+ │ HUMAN │
68
+ │ • Evaluate, refine, add, or remove options │
69
+ └──────────────────────┬───────────────────────┘
70
+
71
+ ┌──────────────────────────────────────────────┐
72
+ │ 5. DECISION │
73
+ │ │
74
+ │ HUMAN GATE │
75
+ │ • Select approach │
76
+ │ • Accept tradeoffs and unknowns │
77
+ │ • Record rationale and reversibility │
78
+ └──────────────────────┬───────────────────────┘
79
+
80
+ ┌──────────────────────────────────────────────┐
81
+ │ 6. PLAN │
82
+ │ │
83
+ │ HUMAN — FIRST PASS │
84
+ │ • Define implementation steps and systems │
85
+ │ • Define testing, rollout, and recovery │
86
+ │ │
87
+ │ AI — OPTIONAL ASSISTANCE │
88
+ │ • Find gaps, dependencies, risks, edge cases │
89
+ │ • Challenge assumptions │
90
+ │ │
91
+ │ HUMAN │
92
+ │ • Finalize and approve the plan │
93
+ └──────────────────────┬───────────────────────┘
94
+
95
+ ┌──────────────────────────────────────────────┐
96
+ │ 7. IMPLEMENT │
97
+ │ │
98
+ │ ENGINEER │
99
+ │ • Own and understand the implementation │
100
+ │ │
101
+ │ AI — ASSIST │
102
+ │ • Bounded code, tests, and explanation │
103
+ │ • Debugging and refactoring suggestions │
104
+ └──────────────────────┬───────────────────────┘
105
+
106
+ ┌──────────────────────────────────────────────┐
107
+ │ 8. AI REVIEW │
108
+ │ • Correctness • security • tests │
109
+ │ • Architecture • plan compliance │
110
+ │ • Maintainability │
111
+ └──────────────────────┬───────────────────────┘
112
+
113
+ ┌──────────────────────────────────────────────┐
114
+ │ 9. INDEPENDENT HUMAN REVIEW │
115
+ │ • Final engineering judgment by a reviewer │
116
+ │ other than the implementer │
117
+ │ • Approve or request changes │
118
+ └──────────────────────┬───────────────────────┘
119
+
120
+ 10. HUMAN AUTHORIZES DEPLOY / RELEASE
121
+
122
+ 11. HUMAN VERIFIES / OBSERVES
123
+
124
+ 12. AI AUDIT
125
+
126
+ ┌──────────────────────────────────────────────┐
127
+ │ 13. HUMAN OUTCOME │
128
+ │ • Accept, roll back, follow up, or abandon │
129
+ │ • Record learning │
130
+ └──────────────────────────────────────────────┘
131
+
132
+ Review changes requested ─────────↺ IMPLEMENT
133
+ Outcome not demonstrated ─────────↺ PLAN / IMPLEMENT
134
+ ```
135
+
136
+ An important unknown is disposed only when it is answered or an accountable human explicitly accepts the uncertainty and its consequences. Merely recording or deferring it does not satisfy the gate.
137
+
138
+ ## Minimal phases
139
+
140
+ | Phase | Human owns | AI may | Minimum record | Advance when |
141
+ |---|---|---|---|---|
142
+ | Define | Desired outcome, users, scope, constraints, initial questions | Clarify ambiguity and expose assumptions | Problem and success signals | Human accepts the framing |
143
+ | Research | Reading and evaluating material | Gather internal/external evidence, cite, compare, identify gaps | Evidence links, findings, contradictions | Material evidence is available |
144
+ | Questions | Understanding and disposition of unknowns | Find missing questions and research answers | Answered, accepted, blocked, or deferred unknowns | Important unknowns are answered or explicitly accepted |
145
+ | Options | At least one initial approach and evaluation criteria | Expand, compare, challenge, add alternatives | Options and tradeoffs | Viable options are understood |
146
+ | Decide | Selection and consequences | Check rationale and surface risks | Decision, rationale, tradeoffs, reversibility | Accountable human approves the decision |
147
+ | Plan | First-pass implementation plan | Identify gaps, dependencies, tests, risks, and rollback needs | Sequenced plan and deviations policy | Human approves the final plan |
148
+ | 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 |
150
+ | 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
+ | 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
+ | 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 |
154
+ | Outcome | Acceptance, rollback, follow-up, or abandonment | Summarize learning | Result, uncertainty, follow-ups | Human accepts closure or routes more work |
155
+
156
+ ## Artifact and evidence chain
157
+
158
+ ```text
159
+ PROBLEM / SUCCESS SIGNALS
160
+
161
+
162
+ RESEARCH / QUESTIONS
163
+
164
+
165
+ HUMAN OPTION / ALTERNATIVES
166
+
167
+
168
+ HUMAN DECISION / RATIONALE
169
+
170
+
171
+ HUMAN FIRST-PASS / FINAL PLAN
172
+
173
+
174
+ CHANGESET / TESTS
175
+
176
+
177
+ AI REVIEW / INDEPENDENT HUMAN REVIEW
178
+
179
+
180
+ HUMAN-AUTHORIZED DEPLOYMENT
181
+
182
+
183
+ VERIFICATION / OBSERVATIONS
184
+
185
+
186
+ AI AUDIT / HUMAN DISPOSITION
187
+
188
+
189
+ HUMAN OUTCOME / LEARNING
190
+ ```
191
+
192
+ ## Non-waivable pilot rules
193
+
194
+ - A human defines or affirms the problem and outcome.
195
+ - A human contributes an option before AI expands the option set.
196
+ - A human authors the first-pass plan.
197
+ - AI review and implementer self-review do not satisfy independent human review.
198
+ - Implementation completion is not deployment or outcome verification.
199
+
200
+ ## Pilot questions
201
+
202
+ - Did separate research and question review improve the decision?
203
+ - Did requiring a human option and first-pass plan improve understanding or only add ceremony?
204
+ - Which changes were material enough to reopen the decision or plan?
205
+ - What outcome evidence was available only after deployment?