ahead-pi 0.5.0 → 0.6.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 (56) hide show
  1. package/README.md +37 -1
  2. package/dist/ahead_wasm.wasm +0 -0
  3. package/generated/decision/compare.md +2 -2
  4. package/generated/decision/criteria.md +2 -2
  5. package/generated/decision/decide.md +2 -2
  6. package/generated/decision/frame.md +2 -2
  7. package/generated/decision/manifest.json +2 -2
  8. package/generated/decision/options.md +2 -2
  9. package/generated/decision/publish.md +5 -5
  10. package/generated/decision/research.md +2 -2
  11. package/generated/internal-improvement/ai-audit.md +3 -3
  12. package/generated/internal-improvement/ai-review.md +4 -3
  13. package/generated/internal-improvement/baseline.md +2 -2
  14. package/generated/internal-improvement/decision.md +2 -2
  15. package/generated/internal-improvement/deploy.md +2 -2
  16. package/generated/internal-improvement/human-review.md +3 -3
  17. package/generated/internal-improvement/implement.md +5 -4
  18. package/generated/internal-improvement/invariants.md +2 -2
  19. package/generated/internal-improvement/manifest.json +2 -2
  20. package/generated/internal-improvement/options.md +2 -2
  21. package/generated/internal-improvement/outcome.md +3 -3
  22. package/generated/internal-improvement/plan.md +5 -4
  23. package/generated/internal-improvement/target.md +2 -2
  24. package/generated/internal-improvement/verify.md +2 -2
  25. package/generated/operational-stabilization/assess.md +2 -2
  26. package/generated/operational-stabilization/execute-observe.md +2 -2
  27. package/generated/operational-stabilization/manifest.json +2 -2
  28. package/generated/operational-stabilization/monitor.md +2 -2
  29. package/generated/operational-stabilization/outcome.md +5 -4
  30. package/generated/operational-stabilization/respond.md +2 -2
  31. package/generated/operational-stabilization/verify-recovery.md +2 -2
  32. package/generated/product-change/ai-audit.md +3 -3
  33. package/generated/product-change/ai-review.md +4 -3
  34. package/generated/product-change/decision.md +2 -2
  35. package/generated/product-change/define.md +2 -2
  36. package/generated/product-change/deploy.md +2 -2
  37. package/generated/product-change/human-review.md +3 -3
  38. package/generated/product-change/implement.md +5 -4
  39. package/generated/product-change/manifest.json +2 -2
  40. package/generated/product-change/options.md +2 -2
  41. package/generated/product-change/outcome.md +3 -3
  42. package/generated/product-change/plan.md +5 -4
  43. package/generated/product-change/questions.md +2 -2
  44. package/generated/product-change/research.md +2 -2
  45. package/generated/product-change/verify.md +2 -2
  46. package/generated/reference/docs/evidence/research-map.md +2 -1
  47. package/generated/reference/docs/guide/README.md +7 -2
  48. package/generated/reference/docs/guide/acceptable-ai-use.md +5 -2
  49. package/generated/reference/docs/guide/durable-reference.md +262 -0
  50. package/generated/reference/docs/guide/workflows/decision.md +1 -1
  51. package/generated/reference/docs/guide/workflows/internal-improvement.md +4 -4
  52. package/generated/reference/docs/guide/workflows/operational-stabilization.md +1 -0
  53. package/generated/reference/docs/guide/workflows/product-change.md +6 -4
  54. package/generated/reference/index.json +14 -0
  55. package/package.json +6 -1
  56. package/src/guidance.ts +13 -3
@@ -177,6 +177,7 @@ During incident or emergency mode, maintain at minimum:
177
177
  - A live intervention requires an accountable human unless existing automation was previously authorized for that action.
178
178
  - 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.
179
179
  - Kubernetes readiness, controller status, or a successful command is not automatically user-visible recovery.
180
+ - The outcome records the durable references (runbooks, design docs, decision records) this stabilization creates or updates, or explicit none; emergency policy may defer the reference-update record to a linked postmortem, but the deferral itself is recorded. See [Durable references](../durable-reference.md).
180
181
  - The conclusion may include mechanism, trigger, enabling conditions, and detection or containment gaps rather than one root cause.
181
182
  - Closure does not require every follow-up to remain inside the operational run.
182
183
 
@@ -151,10 +151,10 @@ An important unknown is disposed only when it is answered or an accountable huma
151
151
  | 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 |
152
152
  | Options | At least one initial approach and evaluation criteria | Expand, compare, challenge, add alternatives | Options and tradeoffs | Viable options are understood |
153
153
  | Decide | Selection and consequences | Check rationale and surface risks | Decision, rationale, tradeoffs, reversibility | Accountable human approves the decision |
154
- | Plan | First-pass implementation plan | Identify gaps, dependencies, tests, risks, and rollback needs | Sequenced plan and deviations policy | Human approves the final plan |
155
- | Implement | Code and engineering changes | Bounded generation, explanation, tests, debugging, and refactoring assistance | Linked changeset and plan deviations | Work is ready for independent review and checks pass |
156
- | AI review | Validate and disposition every material AI finding | Review the exact snapshot for behavior, security, tests, architecture, and plan alignment without modifying it | Snapshot-bound AI findings; separate human disposition | Every material finding is fixed, invalid, accepted risk, or follow-up with rationale |
157
- | Human review | Independent final engineering judgment by someone other than the implementer | Answer targeted questions and retrieve evidence | Current independent human review | Independent human reviewer accepts the current change |
154
+ | Plan | First-pass implementation plan and the set of durable references it will touch | Identify gaps, dependencies, tests, risks, rollback needs, and propose reference updates | Sequenced plan, deviations policy, and planned reference updates (decision records, design docs, runbooks, or explicit none) | Human approves the final plan |
155
+ | Implement | Code, engineering changes, and the durable-reference edits that record the change | Bounded generation, explanation, tests, debugging, refactoring assistance, and proposed reference-update drafts | Linked changeset, plan deviations, and actual reference updates | Work is ready for independent review and checks pass |
156
+ | AI review | Validate and disposition every material AI finding | Review against the full open run — decision, plan, plan-deviations, reference-updates, changeset, tests, and evidence — without modifying the change | Review inputs enumeration, snapshot-bound AI findings, and separate human disposition | Every material finding is fixed, invalid, accepted risk, or follow-up with rationale |
157
+ | Human review | Independent final engineering judgment by someone other than the implementer, with the full open run available | Answer targeted questions and retrieve evidence from the live run | Current independent human review | Independent human reviewer accepts the current change |
158
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
159
  | Verify and observe | Evaluation against intended behavior | Suggest checks and analyze authorized observations | Test, deployment, and user-visible evidence | Intended outcome is demonstrated or failure is recorded |
160
160
  | AI audit | Disposition of findings and any required response | Compare the result with the problem, decision, plan, reviews, and observed behavior; identify divergence, weak evidence, and missed learning | AI audit findings; separate human disposition | The human disposer accepts the audit gate or reopens work |
@@ -207,6 +207,8 @@ HUMAN OUTCOME / LEARNING
207
207
  - A human defines or affirms the problem and outcome.
208
208
  - A human contributes an option before AI expands the option set.
209
209
  - A human authors the first-pass plan.
210
+ - The plan and implementation each record the durable references touched (decision records, design docs, runbooks) or explicit none. See [Durable references](../durable-reference.md).
211
+ - The run stays open from framing through outcome. AI review and independent human review both read the full open run.
210
212
  - AI review and implementer self-review do not satisfy independent human review.
211
213
  - Implementation completion is not deployment or outcome verification.
212
214
 
@@ -10,6 +10,7 @@
10
10
  "docs/evidence/sources/tigerstyle.md",
11
11
  "docs/guide/README.md",
12
12
  "docs/guide/acceptable-ai-use.md",
13
+ "docs/guide/durable-reference.md",
13
14
  "docs/guide/engineering-practice.md",
14
15
  "docs/guide/rationale.md",
15
16
  "docs/guide/recommended-skills.md",
@@ -156,6 +157,19 @@
156
157
  "*"
157
158
  ]
158
159
  },
160
+ {
161
+ "id": "durable-reference",
162
+ "path": "docs/guide/durable-reference.md",
163
+ "title": "Durable References",
164
+ "summary": "AHEAD's workflows produce two kinds of records. **Run artifacts** are scoped to a single run and describe what happened: framing, research, decisions, plans, changesets, review findings, outcomes. **Durable references** outlive a run and de",
165
+ "audience": "practitioner",
166
+ "authority": "guidance",
167
+ "distribution": "agent-and-human",
168
+ "phases": [],
169
+ "workflows": [
170
+ "*"
171
+ ]
172
+ },
159
173
  {
160
174
  "id": "engineering-practice",
161
175
  "path": "docs/guide/engineering-practice.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ahead-pi",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "AHEAD workflow enforcement and context for Pi",
5
5
  "keywords": [
6
6
  "ahead",
@@ -63,6 +63,11 @@
63
63
  "engines": {
64
64
  "node": ">=22.19.0"
65
65
  },
66
+ "omp": {
67
+ "extensions": [
68
+ "./src/index.ts"
69
+ ]
70
+ },
66
71
  "pi": {
67
72
  "extensions": [
68
73
  "./src/index.ts"
package/src/guidance.ts CHANGED
@@ -35,6 +35,7 @@ const guides: Record<string, PhaseGuide> = {
35
35
  "What sources, code, behavior, history, or measurements were examined?",
36
36
  "What findings are supported, contradicted, or still uncertain?",
37
37
  "How directly does each finding apply to this work?",
38
+ "Does novelty or unfamiliarity require primary documentation, direct inspection, or an experiment?",
38
39
  "What important evidence is still missing?",
39
40
  ],
40
41
  },
@@ -109,7 +110,7 @@ const guides: Record<string, PhaseGuide> = {
109
110
  ],
110
111
  plan: [
111
112
  "What is the final ordered implementation sequence?",
112
- "What tests and observable evidence are required?",
113
+ "What human-defined behavior, invariants, test oracles, and observable evidence must the checks evaluate?",
113
114
  "How will rollout and recovery work?",
114
115
  "Which deviations require returning to decision or plan?",
115
116
  ],
@@ -305,11 +306,20 @@ const artifactPromptCatalog: Record<string, string[]> = {
305
306
  "How does each option perform against the recorded criteria?",
306
307
  "What tradeoffs, risks, sensitivity, confidence, and disagreement remain?",
307
308
  ],
308
- "published-decision": [
309
- "Where is the durable decision and rationale recorded?",
309
+ "decision-record": [
310
+ "Where is the durable decision record written, and does it follow the project's ADR convention?",
310
311
  "Who is affected, what downstream work is linked, and how will it be communicated?",
311
312
  "What event or date should trigger review?",
312
313
  ],
314
+ "reference-updates": [
315
+ "Which decision records, design docs, or runbooks does this run create or update?",
316
+ "For each, what section changes and who accepts the change?",
317
+ "If none, is the run genuinely not altering any durable behavior or documented contract?",
318
+ ],
319
+ "review-inputs": [
320
+ "Which run inputs did the review read: decision, plan, plan-deviations, reference-updates, changeset, tests, and evidence?",
321
+ "Which inputs were unavailable or intentionally excluded?",
322
+ ],
313
323
  question: [
314
324
  "What exact question is being investigated, and why does it matter?",
315
325
  "Who owns it, how will findings be used, and what would count as an answer?",