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.
Files changed (102) hide show
  1. package/README.md +29 -9
  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 +12 -6
  54. package/generated/product-change/ai-review.md +20 -7
  55. package/generated/product-change/decision.md +16 -4
  56. package/generated/product-change/define.md +9 -4
  57. package/generated/product-change/deploy.md +9 -4
  58. package/generated/product-change/human-review.md +16 -4
  59. package/generated/product-change/implement.md +14 -5
  60. package/generated/product-change/manifest.json +9 -4
  61. package/generated/product-change/options.md +16 -4
  62. package/generated/product-change/outcome.md +9 -4
  63. package/generated/product-change/plan.md +22 -4
  64. package/generated/product-change/questions.md +22 -4
  65. package/generated/product-change/research.md +16 -4
  66. package/generated/product-change/verify.md +9 -4
  67. package/generated/recommended-skills.json +24 -0
  68. package/generated/reference/CONSTITUTION.md +43 -0
  69. package/generated/reference/docs/acceptable-ai-use.md +217 -0
  70. package/generated/reference/docs/design/adapted-skill-guidance.md +27 -0
  71. package/generated/reference/docs/design/debugging-and-operations.md +119 -0
  72. package/generated/reference/docs/design/executable-workflows.md +122 -0
  73. package/generated/reference/docs/design/instruction-authoring.md +28 -0
  74. package/generated/reference/docs/design/process-taxonomy.md +144 -0
  75. package/generated/reference/docs/design/review-workbench.md +37 -0
  76. package/generated/reference/docs/engineering-practice.md +163 -0
  77. package/generated/reference/docs/evidence/evidence-standard.md +123 -0
  78. package/generated/reference/docs/evidence/research-map.md +98 -0
  79. package/generated/reference/docs/rationale.md +210 -0
  80. package/generated/reference/docs/recommended-skills.md +19 -0
  81. package/generated/reference/docs/references/pragmatic-programmer-page-index.md +113 -0
  82. package/generated/reference/docs/references/submitted-engineering-notes.md +306 -0
  83. package/generated/reference/docs/releasing-pi.md +89 -0
  84. package/generated/reference/docs/workflows/README.md +142 -0
  85. package/generated/reference/docs/workflows/corrective-debugging.md +221 -0
  86. package/generated/reference/docs/workflows/decision.md +149 -0
  87. package/generated/reference/docs/workflows/internal-improvement.md +219 -0
  88. package/generated/reference/docs/workflows/investigation.md +161 -0
  89. package/generated/reference/docs/workflows/operational-stabilization.md +187 -0
  90. package/generated/reference/docs/workflows/product-change.md +216 -0
  91. package/generated/reference/index.json +298 -0
  92. package/package.json +36 -25
  93. package/src/engine.ts +26 -7
  94. package/src/flow-guides.ts +168 -0
  95. package/src/guidance.ts +220 -72
  96. package/src/index.ts +696 -140
  97. package/src/reference-viewer.ts +73 -0
  98. package/src/reference.ts +107 -0
  99. package/src/review.ts +360 -0
  100. package/src/skills.ts +133 -0
  101. package/src/storage.ts +77 -13
  102. package/src/types.ts +1 -0
@@ -0,0 +1,216 @@
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
+ HUMAN DISPOSITIONS EACH MATERIAL
114
+ AI FINDING WITH RATIONALE / EVIDENCE
115
+ ↓
116
+ ┌──────────────────────────────────────────────┐
117
+ │ 9. INDEPENDENT HUMAN REVIEW │
118
+ │ • Final engineering judgment by a reviewer │
119
+ │ other than the implementer │
120
+ │ • Approve or request changes │
121
+ └──────────────────────┬───────────────────────┘
122
+ ↓
123
+ 10. HUMAN AUTHORIZES DEPLOY / RELEASE
124
+ ↓
125
+ 11. HUMAN VERIFIES / OBSERVES
126
+ ↓
127
+ 12. AI AUDIT
128
+ ↓
129
+ HUMAN DISPOSITIONS AUDIT FINDINGS
130
+ ↓
131
+ ┌──────────────────────────────────────────────┐
132
+ │ 13. HUMAN OUTCOME │
133
+ │ • Accept, roll back, follow up, or abandon │
134
+ │ • Record learning │
135
+ └──────────────────────────────────────────────┘
136
+
137
+ Review changes requested ─────────↺ IMPLEMENT
138
+ Outcome not demonstrated ─────────↺ PLAN / IMPLEMENT
139
+ ```
140
+
141
+ 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.
142
+
143
+ ## Minimal phases
144
+
145
+ | Phase | Human owns | AI may | Minimum record | Advance when |
146
+ |---|---|---|---|---|
147
+ | Define | Desired outcome, users, scope, constraints, initial questions | Clarify ambiguity and expose assumptions | Problem and success signals | Human accepts the framing |
148
+ | Research | Reading and evaluating material | Gather internal/external evidence, cite, compare, identify gaps | Evidence links, findings, contradictions | Material evidence is available |
149
+ | 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 |
150
+ | Options | At least one initial approach and evaluation criteria | Expand, compare, challenge, add alternatives | Options and tradeoffs | Viable options are understood |
151
+ | Decide | Selection and consequences | Check rationale and surface risks | Decision, rationale, tradeoffs, reversibility | Accountable human approves the decision |
152
+ | Plan | First-pass implementation plan | Identify gaps, dependencies, tests, risks, and rollback needs | Sequenced plan and deviations policy | Human approves the final plan |
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 |
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 |
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 |
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 |
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 |
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 |
159
+ | Outcome | Acceptance, rollback, follow-up, or abandonment | Summarize learning | Result, uncertainty, follow-ups | Human accepts closure or routes more work |
160
+
161
+ ## Artifact and evidence chain
162
+
163
+ ```text
164
+ PROBLEM / SUCCESS SIGNALS
165
+ │
166
+ ▼
167
+ RESEARCH / QUESTIONS
168
+ │
169
+ ▼
170
+ HUMAN OPTION / ALTERNATIVES
171
+ │
172
+ ▼
173
+ HUMAN DECISION / RATIONALE
174
+ │
175
+ ▼
176
+ HUMAN FIRST-PASS / FINAL PLAN
177
+ │
178
+ ▼
179
+ CHANGESET / TESTS
180
+ │
181
+ ▼
182
+ SNAPSHOT-BOUND AI REVIEW
183
+ │
184
+ ▼
185
+ IMPLEMENTING-HUMAN DISPOSITION
186
+ │
187
+ ▼
188
+ INDEPENDENT HUMAN REVIEW
189
+ │
190
+ ▼
191
+ HUMAN-AUTHORIZED DEPLOYMENT
192
+ │
193
+ ▼
194
+ VERIFICATION / OBSERVATIONS
195
+ │
196
+ ▼
197
+ AI AUDIT / HUMAN DISPOSITION
198
+ │
199
+ ▼
200
+ HUMAN OUTCOME / LEARNING
201
+ ```
202
+
203
+ ## Non-waivable pilot rules
204
+
205
+ - A human defines or affirms the problem and outcome.
206
+ - A human contributes an option before AI expands the option set.
207
+ - A human authors the first-pass plan.
208
+ - AI review and implementer self-review do not satisfy independent human review.
209
+ - Implementation completion is not deployment or outcome verification.
210
+
211
+ ## Pilot questions
212
+
213
+ - Did separate research and question review improve the decision?
214
+ - Did requiring a human option and first-pass plan improve understanding or only add ceremony?
215
+ - Which changes were material enough to reopen the decision or plan?
216
+ - What outcome evidence was available only after deployment?
@@ -0,0 +1,298 @@
1
+ {
2
+ "generated_from": [
3
+ "CONSTITUTION.md",
4
+ "docs/acceptable-ai-use.md",
5
+ "docs/design/adapted-skill-guidance.md",
6
+ "docs/design/debugging-and-operations.md",
7
+ "docs/design/executable-workflows.md",
8
+ "docs/design/instruction-authoring.md",
9
+ "docs/design/process-taxonomy.md",
10
+ "docs/design/review-workbench.md",
11
+ "docs/engineering-practice.md",
12
+ "docs/evidence/evidence-standard.md",
13
+ "docs/evidence/research-map.md",
14
+ "docs/rationale.md",
15
+ "docs/recommended-skills.md",
16
+ "docs/references/pragmatic-programmer-page-index.md",
17
+ "docs/references/submitted-engineering-notes.md",
18
+ "docs/releasing-pi.md",
19
+ "docs/workflows/README.md",
20
+ "docs/workflows/corrective-debugging.md",
21
+ "docs/workflows/decision.md",
22
+ "docs/workflows/internal-improvement.md",
23
+ "docs/workflows/investigation.md",
24
+ "docs/workflows/operational-stabilization.md",
25
+ "docs/workflows/product-change.md"
26
+ ],
27
+ "references": [
28
+ {
29
+ "id": "constitution",
30
+ "path": "CONSTITUTION.md",
31
+ "title": "AHEAD Constitution",
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.",
33
+ "phases": [
34
+ "*"
35
+ ],
36
+ "workflows": [
37
+ "*"
38
+ ]
39
+ },
40
+ {
41
+ "id": "acceptable-ai-use",
42
+ "path": "docs/acceptable-ai-use.md",
43
+ "title": "Acceptable AI Use in AHEAD",
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",
45
+ "phases": [
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
+ "*"
60
+ ]
61
+ },
62
+ {
63
+ "id": "design:debugging-and-operations",
64
+ "path": "docs/design/debugging-and-operations.md",
65
+ "title": "Debugging and Operational Investigation",
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",
67
+ "phases": [],
68
+ "workflows": [
69
+ "*"
70
+ ]
71
+ },
72
+ {
73
+ "id": "design:executable-workflows",
74
+ "path": "docs/design/executable-workflows.md",
75
+ "title": "Executable AHEAD Workflows",
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.",
77
+ "phases": [
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
+ "*"
92
+ ]
93
+ },
94
+ {
95
+ "id": "design:process-taxonomy",
96
+ "path": "docs/design/process-taxonomy.md",
97
+ "title": "AHEAD Process Taxonomy",
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.",
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
+ ]
118
+ },
119
+ {
120
+ "id": "engineering-practice",
121
+ "path": "docs/engineering-practice.md",
122
+ "title": "AHEAD Engineering Practice",
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.",
124
+ "phases": [
125
+ "*"
126
+ ],
127
+ "workflows": [
128
+ "*"
129
+ ]
130
+ },
131
+ {
132
+ "id": "evidence:evidence-standard",
133
+ "path": "docs/evidence/evidence-standard.md",
134
+ "title": "AHEAD Evidence Standard",
135
+ "summary": "AHEAD should be supported by the best available evidence without claiming more certainty than software-engineering research can provide. A credible methodology must distinguish evidence for a descriptive claim from evidence that a particula",
136
+ "phases": [
137
+ "research",
138
+ "questions",
139
+ "decision",
140
+ "plan",
141
+ "ai-review",
142
+ "human-review",
143
+ "verify",
144
+ "ai-audit",
145
+ "outcome"
146
+ ],
147
+ "workflows": [
148
+ "*"
149
+ ]
150
+ },
151
+ {
152
+ "id": "evidence:research-map",
153
+ "path": "docs/evidence/research-map.md",
154
+ "title": "AHEAD Research Map",
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.",
156
+ "phases": [],
157
+ "workflows": [
158
+ "*"
159
+ ]
160
+ },
161
+ {
162
+ "id": "rationale",
163
+ "path": "docs/rationale.md",
164
+ "title": "Why AHEAD",
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.",
166
+ "phases": [
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
+ "*"
181
+ ]
182
+ },
183
+ {
184
+ "id": "references:pragmatic-programmer-page-index",
185
+ "path": "docs/references/pragmatic-programmer-page-index.md",
186
+ "title": "*The Pragmatic Programmer* Page Index",
187
+ "summary": "This index preserves the page-level provenance from the original AHEAD engineering-practice notes for:",
188
+ "phases": [],
189
+ "workflows": [
190
+ "*"
191
+ ]
192
+ },
193
+ {
194
+ "id": "references:submitted-engineering-notes",
195
+ "path": "docs/references/submitted-engineering-notes.md",
196
+ "title": "Submitted Engineering Notes",
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",
198
+ "phases": [],
199
+ "workflows": [
200
+ "*"
201
+ ]
202
+ },
203
+ {
204
+ "id": "releasing-pi",
205
+ "path": "docs/releasing-pi.md",
206
+ "title": "Releasing the Pi Extension",
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",
208
+ "phases": [],
209
+ "workflows": [
210
+ "*"
211
+ ]
212
+ },
213
+ {
214
+ "id": "workflows:readme",
215
+ "path": "docs/workflows/README.md",
216
+ "title": "AHEAD Pilot Workflows",
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
+ ]
224
+ },
225
+ {
226
+ "id": "workflows:corrective-debugging",
227
+ "path": "docs/workflows/corrective-debugging.md",
228
+ "title": "Corrective Debugging Workflow",
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.",
230
+ "phases": [
231
+ "*"
232
+ ],
233
+ "workflows": [
234
+ "corrective-debugging"
235
+ ]
236
+ },
237
+ {
238
+ "id": "workflows:decision",
239
+ "path": "docs/workflows/decision.md",
240
+ "title": "Decision Workflow",
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.",
242
+ "phases": [
243
+ "*"
244
+ ],
245
+ "workflows": [
246
+ "decision"
247
+ ]
248
+ },
249
+ {
250
+ "id": "workflows:internal-improvement",
251
+ "path": "docs/workflows/internal-improvement.md",
252
+ "title": "Internal Improvement Workflow",
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.",
254
+ "phases": [
255
+ "*"
256
+ ],
257
+ "workflows": [
258
+ "internal-improvement"
259
+ ]
260
+ },
261
+ {
262
+ "id": "workflows:investigation",
263
+ "path": "docs/workflows/investigation.md",
264
+ "title": "Investigation Workflow",
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.",
266
+ "phases": [
267
+ "*"
268
+ ],
269
+ "workflows": [
270
+ "investigation"
271
+ ]
272
+ },
273
+ {
274
+ "id": "workflows:operational-stabilization",
275
+ "path": "docs/workflows/operational-stabilization.md",
276
+ "title": "Operational Stabilization Workflow",
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 ",
278
+ "phases": [
279
+ "*"
280
+ ],
281
+ "workflows": [
282
+ "operational-stabilization"
283
+ ]
284
+ },
285
+ {
286
+ "id": "workflows:product-change",
287
+ "path": "docs/workflows/product-change.md",
288
+ "title": "Product Change Workflow",
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.",
290
+ "phases": [
291
+ "*"
292
+ ],
293
+ "workflows": [
294
+ "product-change"
295
+ ]
296
+ }
297
+ ]
298
+ }
package/package.json CHANGED
@@ -1,60 +1,71 @@
1
1
  {
2
2
  "name": "ahead-pi",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "AHEAD workflow enforcement and context for Pi",
5
+ "keywords": [
6
+ "ahead",
7
+ "human-in-the-loop",
8
+ "pi-package"
9
+ ],
10
+ "homepage": "https://github.com/Kade-Powell/ahead/tree/main/integrations/pi#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/Kade-Powell/ahead/issues"
13
+ },
5
14
  "license": "MIT",
6
- "type": "module",
7
15
  "repository": {
8
16
  "type": "git",
9
17
  "url": "git+https://github.com/Kade-Powell/ahead.git",
10
18
  "directory": "integrations/pi"
11
19
  },
12
- "homepage": "https://github.com/Kade-Powell/ahead/tree/main/integrations/pi#readme",
13
- "bugs": {
14
- "url": "https://github.com/Kade-Powell/ahead/issues"
15
- },
16
- "engines": {
17
- "node": ">=22.19.0"
18
- },
19
20
  "files": [
20
21
  "dist/ahead_wasm.wasm",
21
22
  "generated/",
22
23
  "src/"
23
24
  ],
25
+ "type": "module",
24
26
  "publishConfig": {
25
27
  "access": "public",
26
28
  "provenance": true,
27
29
  "registry": "https://registry.npmjs.org/"
28
30
  },
29
- "keywords": [
30
- "pi-package",
31
- "ahead",
32
- "human-in-the-loop"
33
- ],
34
- "pi": {
35
- "extensions": [
36
- "./src/index.ts"
37
- ]
38
- },
39
31
  "scripts": {
40
32
  "build": "npm run build:instructions && npm run build:wasm && npm run typecheck",
41
33
  "build:instructions": "node ../../scripts/build-instructions.mjs",
42
34
  "build:wasm": "node ./scripts/build-wasm.mjs",
35
+ "format": "cd ../.. && integrations/pi/node_modules/.bin/oxfmt -c ./.oxfmtrc.json .oxfmtrc.json .oxlintrc.json scripts integrations/pi/scripts integrations/pi/src integrations/pi/test integrations/pi/package.json integrations/pi/tsconfig.json",
36
+ "format:check": "npm run format -- --check",
37
+ "lint": "npm run lint:source && npm run lint:types",
38
+ "lint:source": "cd ../.. && integrations/pi/node_modules/.bin/oxlint -c ./.oxlintrc.json --report-unused-disable-directives-severity=off scripts integrations/pi/scripts integrations/pi/src integrations/pi/test",
39
+ "lint:types": "cd ../.. && integrations/pi/node_modules/.bin/oxlint -c ./.oxlintrc.json --type-aware --tsconfig integrations/pi/tsconfig.json integrations/pi/src",
43
40
  "prepack": "npm run build",
44
41
  "prepublishOnly": "npm run verify",
45
42
  "pack:verify": "node ./scripts/verify-package.mjs",
43
+ "quality": "npm run format:check && npm run lint && npm run typecheck",
46
44
  "typecheck": "tsc --noEmit",
47
- "verify": "npm run build && node --test ./test/*.test.mjs",
45
+ "verify": "npm run build && npm run format:check && npm run lint && node --test ./test/*.test.mjs",
48
46
  "test": "npm run verify && npm run pack:verify"
49
47
  },
50
- "peerDependencies": {
51
- "@earendil-works/pi-coding-agent": "*",
52
- "typebox": "*"
53
- },
54
48
  "devDependencies": {
55
- "@earendil-works/pi-coding-agent": "0.80.6",
49
+ "@earendil-works/pi-coding-agent": "^0.84.1",
50
+ "@earendil-works/pi-tui": "^0.84.1",
56
51
  "@types/node": "24.12.4",
52
+ "oxfmt": "^0.63.0",
53
+ "oxlint": "^1.78.0",
54
+ "oxlint-tsgolint": "^7.0.2001",
57
55
  "typebox": "1.1.38",
58
56
  "typescript": "5.9.3"
57
+ },
58
+ "peerDependencies": {
59
+ "@earendil-works/pi-coding-agent": "*",
60
+ "@earendil-works/pi-tui": "*",
61
+ "typebox": "*"
62
+ },
63
+ "engines": {
64
+ "node": ">=22.19.0"
65
+ },
66
+ "pi": {
67
+ "extensions": [
68
+ "./src/index.ts"
69
+ ]
59
70
  }
60
71
  }