ahead-pi 0.2.0 → 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.
- package/README.md +29 -9
- package/dist/ahead_wasm.wasm +0 -0
- package/generated/corrective-debugging/ai-audit.md +39 -0
- package/generated/corrective-debugging/ai-review.md +46 -0
- package/generated/corrective-debugging/characterize.md +53 -0
- package/generated/corrective-debugging/conclude.md +59 -0
- package/generated/corrective-debugging/correction.md +53 -0
- package/generated/corrective-debugging/deploy.md +38 -0
- package/generated/corrective-debugging/human-review.md +45 -0
- package/generated/corrective-debugging/implement.md +42 -0
- package/generated/corrective-debugging/investigate.md +59 -0
- package/generated/corrective-debugging/manifest.json +30 -0
- package/generated/corrective-debugging/model.md +53 -0
- package/generated/corrective-debugging/outcome.md +38 -0
- package/generated/corrective-debugging/plan.md +53 -0
- package/generated/corrective-debugging/verify.md +47 -0
- package/generated/decision/compare.md +45 -0
- package/generated/decision/criteria.md +45 -0
- package/generated/decision/decide.md +45 -0
- package/generated/decision/frame.md +45 -0
- package/generated/decision/manifest.json +21 -0
- package/generated/decision/options.md +47 -0
- package/generated/decision/publish.md +38 -0
- package/generated/decision/research.md +45 -0
- package/generated/internal-improvement/ai-audit.md +39 -0
- package/generated/internal-improvement/ai-review.md +46 -0
- package/generated/internal-improvement/baseline.md +46 -0
- package/generated/internal-improvement/decision.md +45 -0
- package/generated/internal-improvement/deploy.md +38 -0
- package/generated/internal-improvement/human-review.md +45 -0
- package/generated/internal-improvement/implement.md +42 -0
- package/generated/internal-improvement/invariants.md +38 -0
- package/generated/internal-improvement/manifest.json +29 -0
- package/generated/internal-improvement/options.md +47 -0
- package/generated/internal-improvement/outcome.md +38 -0
- package/generated/internal-improvement/plan.md +53 -0
- package/generated/internal-improvement/target.md +45 -0
- package/generated/internal-improvement/verify.md +45 -0
- package/generated/investigation/bound.md +45 -0
- package/generated/investigation/conclude.md +45 -0
- package/generated/investigation/explore.md +60 -0
- package/generated/investigation/frame.md +45 -0
- package/generated/investigation/gather.md +45 -0
- package/generated/investigation/manifest.json +21 -0
- package/generated/investigation/synthesize.md +51 -0
- package/generated/operational-stabilization/assess.md +46 -0
- package/generated/operational-stabilization/execute-observe.md +45 -0
- package/generated/operational-stabilization/manifest.json +19 -0
- package/generated/operational-stabilization/monitor.md +45 -0
- package/generated/operational-stabilization/outcome.md +38 -0
- package/generated/operational-stabilization/respond.md +40 -0
- package/generated/operational-stabilization/verify-recovery.md +45 -0
- package/generated/product-change/ai-audit.md +12 -6
- package/generated/product-change/ai-review.md +20 -7
- package/generated/product-change/decision.md +16 -4
- package/generated/product-change/define.md +9 -4
- package/generated/product-change/deploy.md +9 -4
- package/generated/product-change/human-review.md +16 -4
- package/generated/product-change/implement.md +14 -5
- package/generated/product-change/manifest.json +9 -4
- package/generated/product-change/options.md +16 -4
- package/generated/product-change/outcome.md +9 -4
- package/generated/product-change/plan.md +22 -4
- package/generated/product-change/questions.md +22 -4
- package/generated/product-change/research.md +16 -4
- package/generated/product-change/verify.md +9 -4
- package/generated/recommended-skills.json +24 -0
- package/generated/reference/CONSTITUTION.md +43 -0
- package/generated/reference/docs/acceptable-ai-use.md +217 -0
- package/generated/reference/docs/design/adapted-skill-guidance.md +27 -0
- package/generated/reference/docs/design/debugging-and-operations.md +119 -0
- package/generated/reference/docs/design/executable-workflows.md +122 -0
- package/generated/reference/docs/design/instruction-authoring.md +28 -0
- package/generated/reference/docs/design/process-taxonomy.md +144 -0
- package/generated/reference/docs/design/review-workbench.md +37 -0
- package/generated/reference/docs/engineering-practice.md +163 -0
- package/generated/reference/docs/evidence/evidence-standard.md +123 -0
- package/generated/reference/docs/evidence/research-map.md +98 -0
- package/generated/reference/docs/rationale.md +210 -0
- package/generated/reference/docs/recommended-skills.md +19 -0
- package/generated/reference/docs/references/pragmatic-programmer-page-index.md +113 -0
- package/generated/reference/docs/references/submitted-engineering-notes.md +306 -0
- package/generated/reference/docs/releasing-pi.md +89 -0
- package/generated/reference/docs/workflows/README.md +142 -0
- package/generated/reference/docs/workflows/corrective-debugging.md +221 -0
- package/generated/reference/docs/workflows/decision.md +149 -0
- package/generated/reference/docs/workflows/internal-improvement.md +219 -0
- package/generated/reference/docs/workflows/investigation.md +161 -0
- package/generated/reference/docs/workflows/operational-stabilization.md +187 -0
- package/generated/reference/docs/workflows/product-change.md +216 -0
- package/generated/reference/index.json +298 -0
- package/package.json +36 -25
- package/src/engine.ts +26 -7
- package/src/flow-guides.ts +168 -0
- package/src/guidance.ts +220 -72
- package/src/index.ts +696 -140
- package/src/reference-viewer.ts +73 -0
- package/src/reference.ts +107 -0
- package/src/review.ts +360 -0
- package/src/skills.ts +133 -0
- package/src/storage.ts +77 -13
- package/src/types.ts +1 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# Internal Improvement Workflow
|
|
2
|
+
|
|
3
|
+
Status: pilot v0.1
|
|
4
|
+
|
|
5
|
+
## Outcome
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
Use product change when externally meaningful behavior is intentionally changing, or corrective debugging when an observed defect is the reason for the work.
|
|
10
|
+
|
|
11
|
+
## Lifecycle
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
┌──────────────────────────────────────────────┐
|
|
15
|
+
│ 1. DEFINE INVARIANTS │
|
|
16
|
+
│ │
|
|
17
|
+
│ HUMAN │
|
|
18
|
+
│ • Define behavior that must not change │
|
|
19
|
+
│ • Define scope and non-goals │
|
|
20
|
+
│ │
|
|
21
|
+
│ AI — ASSIST │
|
|
22
|
+
│ • Identify overlooked contracts/consumers │
|
|
23
|
+
└──────────────────────┬───────────────────────┘
|
|
24
|
+
↓
|
|
25
|
+
┌──────────────────────────────────────────────┐
|
|
26
|
+
│ 2. BASELINE │
|
|
27
|
+
│ │
|
|
28
|
+
│ HUMAN accepts method, evidence, uncertainty │
|
|
29
|
+
│ AI — ASSIST challenges noise / confounders │
|
|
30
|
+
└──────────────────────┬───────────────────────┘
|
|
31
|
+
↓
|
|
32
|
+
┌──────────────────────────────────────────────┐
|
|
33
|
+
│ 3. TARGET │
|
|
34
|
+
│ │
|
|
35
|
+
│ HUMAN defines quality, threshold, guardrails │
|
|
36
|
+
│ AI — ASSIST exposes gaming / shifted cost │
|
|
37
|
+
└──────────────────────┬───────────────────────┘
|
|
38
|
+
↓
|
|
39
|
+
┌──────────────────────────────────────────────┐
|
|
40
|
+
│ 4. OPTIONS │
|
|
41
|
+
│ │
|
|
42
|
+
│ HUMAN — FIRST PASS │
|
|
43
|
+
│ • Propose at least one improvement approach │
|
|
44
|
+
│ │
|
|
45
|
+
│ AI — ASSIST │
|
|
46
|
+
│ • Expand alternatives • expose coupling │
|
|
47
|
+
│ • Challenge complexity and assumptions │
|
|
48
|
+
│ │
|
|
49
|
+
│ HUMAN │
|
|
50
|
+
│ • Evaluate and refine options │
|
|
51
|
+
└──────────────────────┬───────────────────────┘
|
|
52
|
+
↓
|
|
53
|
+
┌──────────────────────────────────────────────┐
|
|
54
|
+
│ 5. HUMAN DECISION GATE │
|
|
55
|
+
│ • Select approach and accept tradeoffs │
|
|
56
|
+
│ • Record rationale │
|
|
57
|
+
└──────────────────────┬───────────────────────┘
|
|
58
|
+
↓
|
|
59
|
+
┌──────────────────────────────────────────────┐
|
|
60
|
+
│ 6. PLAN │
|
|
61
|
+
│ │
|
|
62
|
+
│ HUMAN — FIRST PASS │
|
|
63
|
+
│ • Sequence change, checks, and rollback │
|
|
64
|
+
│ │
|
|
65
|
+
│ AI — ASSIST │
|
|
66
|
+
│ • Find affected boundaries and missing tests │
|
|
67
|
+
│ │
|
|
68
|
+
│ HUMAN finalizes and approves │
|
|
69
|
+
└──────────────────────┬───────────────────────┘
|
|
70
|
+
↓
|
|
71
|
+
┌──────────────────────────────────────────────┐
|
|
72
|
+
│ 7. IMPLEMENT │
|
|
73
|
+
│ ENGINEER owns and understands the change │
|
|
74
|
+
│ AI — ASSIST with bounded contributions │
|
|
75
|
+
└──────────────────────┬───────────────────────┘
|
|
76
|
+
↓
|
|
77
|
+
┌──────────────────────────────────────────────┐
|
|
78
|
+
│ 8. AI REVIEW │
|
|
79
|
+
│ • Hidden behavior changes • complexity │
|
|
80
|
+
│ • Tests • coupling • plan compliance │
|
|
81
|
+
└──────────────────────┬───────────────────────┘
|
|
82
|
+
↓
|
|
83
|
+
HUMAN DISPOSITIONS EACH MATERIAL
|
|
84
|
+
AI FINDING WITH RATIONALE / EVIDENCE
|
|
85
|
+
↓
|
|
86
|
+
┌──────────────────────────────────────────────┐
|
|
87
|
+
│ 9. INDEPENDENT HUMAN REVIEW │
|
|
88
|
+
│ • Reviewer is not the implementer │
|
|
89
|
+
│ • Final judgment on preservation/improvement │
|
|
90
|
+
└──────────────────────┬───────────────────────┘
|
|
91
|
+
↓
|
|
92
|
+
10. HUMAN AUTHORIZES DEPLOY / RELEASE
|
|
93
|
+
WHEN APPLICABLE
|
|
94
|
+
↓
|
|
95
|
+
┌──────────────────────────────────────────────┐
|
|
96
|
+
│ 11. VERIFY │
|
|
97
|
+
│ │
|
|
98
|
+
│ HUMAN │
|
|
99
|
+
│ • Verify invariants │
|
|
100
|
+
│ • Compare before/after target evidence │
|
|
101
|
+
│ │
|
|
102
|
+
│ AI — ASSIST │
|
|
103
|
+
│ • Analyze measurements / suggest checks │
|
|
104
|
+
└──────────────────────┬───────────────────────┘
|
|
105
|
+
↓
|
|
106
|
+
┌──────────────────────────────────────────────┐
|
|
107
|
+
│ 12. AI AUDIT │
|
|
108
|
+
│ • Compare invariants, target, plan, reviews, │
|
|
109
|
+
│ deployment, and observed evidence │
|
|
110
|
+
└──────────────────────┬───────────────────────┘
|
|
111
|
+
↓
|
|
112
|
+
HUMAN DISPOSITIONS AUDIT FINDINGS
|
|
113
|
+
↓
|
|
114
|
+
┌───────────────┐
|
|
115
|
+
│ INVARIANTS │
|
|
116
|
+
│ PRESERVED? │
|
|
117
|
+
└───────┬───────┘
|
|
118
|
+
NO ↙ ↘ YES
|
|
119
|
+
│ │
|
|
120
|
+
│ ▼
|
|
121
|
+
│ ┌────────────────┐
|
|
122
|
+
│ │ TARGET QUALITY │
|
|
123
|
+
│ │ IMPROVED? │
|
|
124
|
+
│ └───────┬────────┘
|
|
125
|
+
│ NO ↙ ↘ YES
|
|
126
|
+
│ │ └────► HUMAN OUTCOME GATE (13)
|
|
127
|
+
│ ▼
|
|
128
|
+
│ HUMAN CHOOSES
|
|
129
|
+
│ ├─ Rework ─────────────↺ IMPLEMENT
|
|
130
|
+
│ ├─ Roll back ─────────► HUMAN OUTCOME
|
|
131
|
+
│ └─ Accept partial/no improvement
|
|
132
|
+
│ with rationale ─────► HUMAN OUTCOME
|
|
133
|
+
▼
|
|
134
|
+
HUMAN CHOOSES
|
|
135
|
+
├─ Rework ──────────────────────↺ IMPLEMENT
|
|
136
|
+
├─ Roll back ──────────────────► HUMAN OUTCOME
|
|
137
|
+
└─ Reclassify ─────────────────► NEW PRODUCT CHANGE RUN
|
|
138
|
+
+ HUMAN OUTCOME
|
|
139
|
+
|
|
140
|
+
Review changes requested ─────────────↺ IMPLEMENT
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Preservation and improvement are separate judgments. A failed invariant cannot be accepted as an internal improvement: the team must roll back, rework, or deliberately reclassify the work as a product change. If invariants hold but the target quality does not improve, a human may stop and record a partial or unsuccessful result rather than manufacture success.
|
|
144
|
+
|
|
145
|
+
## Minimal phases
|
|
146
|
+
|
|
147
|
+
| Phase | Human owns | AI may | Minimum record | Advance when |
|
|
148
|
+
|---|---|---|---|---|
|
|
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 |
|
|
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 |
|
|
151
|
+
| Target | Quality to improve, success threshold, and tradeoffs | Suggest measures and unintended effects | Target quality and acceptance signal | Improvement can be evaluated |
|
|
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 |
|
|
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 |
|
|
155
|
+
| Implement | Engineering change and scope control | Bounded refactoring, explanation, tests, and mechanical assistance | Linked changeset and deviations | Change is ready for review |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
161
|
+
| Outcome | Acceptance, rollback, partial result, or new work | Summarize learning | Outcome, remaining debt, and follow-ups | Human accepts closure |
|
|
162
|
+
|
|
163
|
+
## Preservation and improvement chain
|
|
164
|
+
|
|
165
|
+
```text
|
|
166
|
+
HUMAN-OWNED INVARIANTS / NON-GOALS
|
|
167
|
+
│
|
|
168
|
+
▼
|
|
169
|
+
HUMAN-ACCEPTED BASELINE / TARGET
|
|
170
|
+
│
|
|
171
|
+
▼
|
|
172
|
+
HUMAN OPTION + AI-EXPANDED ALTERNATIVES
|
|
173
|
+
│
|
|
174
|
+
▼
|
|
175
|
+
HUMAN DECISION / FIRST-PASS PLAN
|
|
176
|
+
│
|
|
177
|
+
▼
|
|
178
|
+
ENGINEER-OWNED CHANGESET
|
|
179
|
+
│
|
|
180
|
+
▼
|
|
181
|
+
SNAPSHOT-BOUND AI REVIEW
|
|
182
|
+
│
|
|
183
|
+
▼
|
|
184
|
+
IMPLEMENTING-HUMAN DISPOSITION
|
|
185
|
+
│
|
|
186
|
+
▼
|
|
187
|
+
INDEPENDENT HUMAN REVIEW
|
|
188
|
+
│
|
|
189
|
+
▼
|
|
190
|
+
HUMAN-AUTHORIZED DEPLOYMENT WHEN APPLICABLE
|
|
191
|
+
│
|
|
192
|
+
▼
|
|
193
|
+
HUMAN-ACCEPTED INVARIANT VERIFICATION
|
|
194
|
+
AND BEFORE / AFTER COMPARISON
|
|
195
|
+
│
|
|
196
|
+
▼
|
|
197
|
+
AI AUDIT / HUMAN DISPOSITION
|
|
198
|
+
│
|
|
199
|
+
▼
|
|
200
|
+
HUMAN OUTCOME / REMAINING DEBT
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Non-waivable pilot rules
|
|
204
|
+
|
|
205
|
+
- Invariants are stated before the change.
|
|
206
|
+
- Passing existing tests alone does not prove preservation when those tests do not cover the contract.
|
|
207
|
+
- AI may propose a refactor; humans decide whether it reduces conceptual complexity.
|
|
208
|
+
- File movement or abstraction count is not itself an improvement.
|
|
209
|
+
- The outcome compares before and after evidence against the declared target.
|
|
210
|
+
- An invariant failure cannot close as a successful internal improvement.
|
|
211
|
+
- AI review and implementer self-review do not satisfy independent human review.
|
|
212
|
+
- Implementation completion is not deployment or outcome verification.
|
|
213
|
+
|
|
214
|
+
## Pilot questions
|
|
215
|
+
|
|
216
|
+
- Were the invariants specific enough to catch unintended behavior changes?
|
|
217
|
+
- Did the selected measure reflect the quality people actually wanted?
|
|
218
|
+
- Did the work reduce conceptual complexity or merely rearrange it?
|
|
219
|
+
- When did an internal improvement reveal that a product change or bug flow was needed?
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
│ HUMAN records prototype disposition, or │
|
|
76
|
+
│ explicitly records that none was used │
|
|
77
|
+
└──────────────────────┬───────────────────────┘
|
|
78
|
+
↓
|
|
79
|
+
┌───────────────┐
|
|
80
|
+
│ STOPPING │
|
|
81
|
+
│ CONDITION │
|
|
82
|
+
│ REACHED? │
|
|
83
|
+
└───────┬───────┘
|
|
84
|
+
NO ↙ ↘ YES
|
|
85
|
+
↺ MODEL / PATHS │
|
|
86
|
+
▼
|
|
87
|
+
┌──────────────────────────────────────────────┐
|
|
88
|
+
│ 8. SYNTHESIZE │
|
|
89
|
+
│ │
|
|
90
|
+
│ HUMAN │
|
|
91
|
+
│ • Interpret evidence, contradictions, limits │
|
|
92
|
+
│ │
|
|
93
|
+
│ AI — ASSIST │
|
|
94
|
+
│ • Organize findings and challenge overclaims │
|
|
95
|
+
└──────────────────────┬───────────────────────┘
|
|
96
|
+
↓
|
|
97
|
+
┌──────────────────────────────────────────────┐
|
|
98
|
+
│ 9. HUMAN CONCLUSION / OUTCOME GATE │
|
|
99
|
+
│ • State conclusion, confidence, and unknowns │
|
|
100
|
+
│ • Recommend no action or link another flow │
|
|
101
|
+
└──────────────────────────────────────────────┘
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
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.
|
|
105
|
+
|
|
106
|
+
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.
|
|
107
|
+
|
|
108
|
+
## Minimal phases
|
|
109
|
+
|
|
110
|
+
| Phase | Human owns | AI may | Minimum record | Advance when |
|
|
111
|
+
|---|---|---|---|---|
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
116
|
+
| Synthesize | Meaning, confidence, contradictory evidence, and limitations | Organize findings and challenge overclaiming | Findings, confidence, limits, and unknowns | Human can state a bounded conclusion |
|
|
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 |
|
|
118
|
+
|
|
119
|
+
## Knowledge chain
|
|
120
|
+
|
|
121
|
+
```text
|
|
122
|
+
HUMAN QUESTION / RELEVANCE
|
|
123
|
+
│
|
|
124
|
+
▼
|
|
125
|
+
HUMAN SCOPE / STOPPING RULE
|
|
126
|
+
│
|
|
127
|
+
▼
|
|
128
|
+
AI-ASSISTED EVIDENCE GATHERING
|
|
129
|
+
HUMAN SOURCE EVALUATION
|
|
130
|
+
│
|
|
131
|
+
▼
|
|
132
|
+
HUMAN MODEL / ASSUMPTIONS
|
|
133
|
+
│
|
|
134
|
+
▼
|
|
135
|
+
AI-EXPANDED EXPLORATION PATHS
|
|
136
|
+
HUMAN-SELECTED TEST / ANALYSIS / PROTOTYPE
|
|
137
|
+
│
|
|
138
|
+
▼
|
|
139
|
+
RESULTS / CONTRADICTIONS
|
|
140
|
+
│
|
|
141
|
+
▼
|
|
142
|
+
HUMAN CONCLUSION / CONFIDENCE / LIMITS
|
|
143
|
+
│
|
|
144
|
+
▼
|
|
145
|
+
HUMAN RECOMMENDATION / LINKED RUN
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Non-waivable pilot rules
|
|
149
|
+
|
|
150
|
+
- The question is human-owned; AI does not quietly redefine it.
|
|
151
|
+
- Facts, retrieved claims, inference, and AI synthesis remain distinguishable.
|
|
152
|
+
- Important citations are followed to authoritative sources.
|
|
153
|
+
- A prototype demonstrates only what it actually tested.
|
|
154
|
+
- “Insufficient evidence” is a valid result.
|
|
155
|
+
|
|
156
|
+
## Pilot questions
|
|
157
|
+
|
|
158
|
+
- Were the stopping conditions usable or did research expand indefinitely?
|
|
159
|
+
- Did the conclusion state confidence and contradictory evidence honestly?
|
|
160
|
+
- Did a disposable prototype answer the learning question without leaking into production?
|
|
161
|
+
- Was the next workflow clear when the investigation ended?
|
|
@@ -0,0 +1,187 @@
|
|
|
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. RESPOND: │ │ 2B. RESPOND: │
|
|
44
|
+
│ INVESTIGATE │ │ STABILIZE │
|
|
45
|
+
│ │ │ │
|
|
46
|
+
│ HUMAN LEADS │ │ HUMAN LEADS │
|
|
47
|
+
│ • Model system │ │ • Set priorities │
|
|
48
|
+
│ • Select tests │ │ • Select candidate │
|
|
49
|
+
│ • Interpret evidence│ │ intervention │
|
|
50
|
+
│ │ │ • Assess risk │
|
|
51
|
+
│ AI — ASSIST │ │ │
|
|
52
|
+
│ • Organize telemetry│ │ AI — ASSIST │
|
|
53
|
+
│ • Suggest hypotheses│ │ • Compare actions │
|
|
54
|
+
│ • Find conflicts │ │ • Find side effects │
|
|
55
|
+
└──────────┬───────────┘ └──────────┬───────────┘
|
|
56
|
+
│ CONTINUES │
|
|
57
|
+
│ WHILE NEEDED ▼
|
|
58
|
+
│ ┌─────────────────────────┐
|
|
59
|
+
│ │ 2C. HUMAN ACTION GATE │
|
|
60
|
+
│ MAY INFORM │ │
|
|
61
|
+
├─ - - - - - - - - - ►│ • Authorize actor/scope │
|
|
62
|
+
│ NO BARRIER │ • Blast radius │
|
|
63
|
+
│ │ • Rollback/containment │
|
|
64
|
+
│ │ • Accepted uncertainty │
|
|
65
|
+
│ └────────────┬────────────┘
|
|
66
|
+
│ ↓
|
|
67
|
+
┌──────────────────────────────────────────────┐
|
|
68
|
+
│ 3. EXECUTE AND OBSERVE │
|
|
69
|
+
│ │
|
|
70
|
+
│ HUMAN / PREAUTHORIZED AUTOMATION │
|
|
71
|
+
│ • Performs the operational action │
|
|
72
|
+
│ │
|
|
73
|
+
│ AI — ASSIST │
|
|
74
|
+
│ • Interprets authorized observations │
|
|
75
|
+
│ • Does not execute the intervention │
|
|
76
|
+
│ • Workflow phase grants no production access │
|
|
77
|
+
└──────────────────────┬───────────────────────┘
|
|
78
|
+
↓
|
|
79
|
+
┌───────────────┐
|
|
80
|
+
│ CONVERGING? │
|
|
81
|
+
└───────┬───────┘
|
|
82
|
+
NO ↙ ↘ YES
|
|
83
|
+
↺ INVESTIGATE │
|
|
84
|
+
/ STABILIZE ▼
|
|
85
|
+
┌──────────────────────────────────────────────┐
|
|
86
|
+
│ 4. VERIFY RECOVERY │
|
|
87
|
+
│ │
|
|
88
|
+
│ HUMAN │
|
|
89
|
+
│ • Verify convergence and user-visible state │
|
|
90
|
+
│ │
|
|
91
|
+
│ AI — ASSIST │
|
|
92
|
+
│ • Analyze authorized recovery indicators │
|
|
93
|
+
└──────────────────────┬───────────────────────┘
|
|
94
|
+
↓
|
|
95
|
+
┌──────────────────────────────────────────────┐
|
|
96
|
+
│ 5. MONITOR RECURRENCE │
|
|
97
|
+
│ HUMAN selects duration and signals │
|
|
98
|
+
│ AI — ASSIST │
|
|
99
|
+
│ • Summarize authorized telemetry │
|
|
100
|
+
└──────────────────────┬───────────────────────┘
|
|
101
|
+
↓
|
|
102
|
+
┌───────────────┐
|
|
103
|
+
│ STABLE? │
|
|
104
|
+
└───────┬───────┘
|
|
105
|
+
NO ↙ ↘ YES
|
|
106
|
+
↺ INVESTIGATE │
|
|
107
|
+
/ STABILIZE ▼
|
|
108
|
+
┌──────────────────────────────────────────────┐
|
|
109
|
+
│ 6. HUMAN OUTCOME │
|
|
110
|
+
│ • Accept closure and remaining risk │
|
|
111
|
+
│ • Link corrective, investigation, decision, │
|
|
112
|
+
│ or improvement follow-up runs │
|
|
113
|
+
└──────────────────────────────────────────────┘
|
|
114
|
+
```
|
|
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.
|
|
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
|
+
|
|
120
|
+
## Minimal phases
|
|
121
|
+
|
|
122
|
+
| Phase | Human owns | AI may | Minimum record | Advance when |
|
|
123
|
+
|---|---|---|---|---|
|
|
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 |
|
|
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 |
|
|
128
|
+
| Monitor | Duration and signals sufficient to detect recurrence | Summarize authorized telemetry | Monitoring window and result | Human accepts stability or reopens response |
|
|
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 |
|
|
130
|
+
|
|
131
|
+
## Parallel evidence and action chains
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
OBSERVED OPERATING CONDITION
|
|
135
|
+
│
|
|
136
|
+
▼
|
|
137
|
+
HUMAN-OWNED IMPACT / SCOPE / DESIRED STATE
|
|
138
|
+
│
|
|
139
|
+
┌──────┴────────┐
|
|
140
|
+
▼ ▼
|
|
141
|
+
EVIDENCE / MODEL STABILIZATION OPTIONS
|
|
142
|
+
│ CONTINUES │
|
|
143
|
+
▼ ▼
|
|
144
|
+
HUMAN-SELECTED HUMAN AUTHORIZATION
|
|
145
|
+
HYPOTHESES / TESTS │
|
|
146
|
+
│ MAY INFORM ▼
|
|
147
|
+
├─ - - - - - ► ACTION / OBSERVED RESULT
|
|
148
|
+
│ │
|
|
149
|
+
└──── updates ◄─────┘
|
|
150
|
+
│
|
|
151
|
+
▼
|
|
152
|
+
HUMAN-ACCEPTED RECOVERY / CONVERGENCE
|
|
153
|
+
│
|
|
154
|
+
▼
|
|
155
|
+
REMAINING RISK / LINKED FOLLOW-UP RUNS
|
|
156
|
+
|
|
157
|
+
The investigation chain has no join barrier. AI assists
|
|
158
|
+
evidence gathering, option generation, hypothesis
|
|
159
|
+
generation, and analysis; it owns no gate.
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Incident and emergency overlay
|
|
163
|
+
|
|
164
|
+
During incident or emergency mode, maintain at minimum:
|
|
165
|
+
|
|
166
|
+
- current owner and impact;
|
|
167
|
+
- timestamped consequential actions and decisions;
|
|
168
|
+
- actor, rationale, scope, blast radius, rollback, and result;
|
|
169
|
+
- current recovery criteria and communications owner;
|
|
170
|
+
- deferred records that must be reconstructed after stabilization.
|
|
171
|
+
|
|
172
|
+
## Non-waivable pilot rules
|
|
173
|
+
|
|
174
|
+
- Workflow permission is not production authorization.
|
|
175
|
+
- A live intervention requires an accountable human unless existing automation was previously authorized for that action.
|
|
176
|
+
- 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.
|
|
177
|
+
- Kubernetes readiness, controller status, or a successful command is not automatically user-visible recovery.
|
|
178
|
+
- The conclusion may include mechanism, trigger, enabling conditions, and detection or containment gaps rather than one root cause.
|
|
179
|
+
- Closure does not require every follow-up to remain inside the operational run.
|
|
180
|
+
|
|
181
|
+
## Pilot questions
|
|
182
|
+
|
|
183
|
+
- What threshold should activate incident mode?
|
|
184
|
+
- Which records were feasible during response versus reconstructed later?
|
|
185
|
+
- When was unknown-cause remediation justified?
|
|
186
|
+
- What evidence demonstrated convergence and user-visible recovery?
|
|
187
|
+
- Did linked follow-up runs prevent the incident from remaining permanently open?
|