ahead-pi 0.2.1 → 0.3.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 (101) hide show
  1. package/README.md +26 -41
  2. package/dist/ahead_wasm.wasm +0 -0
  3. package/generated/corrective-debugging/ai-audit.md +39 -0
  4. package/generated/corrective-debugging/ai-review.md +46 -0
  5. package/generated/corrective-debugging/characterize.md +53 -0
  6. package/generated/corrective-debugging/conclude.md +59 -0
  7. package/generated/corrective-debugging/correction.md +53 -0
  8. package/generated/corrective-debugging/deploy.md +38 -0
  9. package/generated/corrective-debugging/human-review.md +45 -0
  10. package/generated/corrective-debugging/implement.md +42 -0
  11. package/generated/corrective-debugging/investigate.md +59 -0
  12. package/generated/corrective-debugging/manifest.json +30 -0
  13. package/generated/corrective-debugging/model.md +53 -0
  14. package/generated/corrective-debugging/outcome.md +38 -0
  15. package/generated/corrective-debugging/plan.md +53 -0
  16. package/generated/corrective-debugging/verify.md +47 -0
  17. package/generated/decision/compare.md +45 -0
  18. package/generated/decision/criteria.md +45 -0
  19. package/generated/decision/decide.md +45 -0
  20. package/generated/decision/frame.md +45 -0
  21. package/generated/decision/manifest.json +21 -0
  22. package/generated/decision/options.md +47 -0
  23. package/generated/decision/publish.md +38 -0
  24. package/generated/decision/research.md +45 -0
  25. package/generated/internal-improvement/ai-audit.md +39 -0
  26. package/generated/internal-improvement/ai-review.md +46 -0
  27. package/generated/internal-improvement/baseline.md +46 -0
  28. package/generated/internal-improvement/decision.md +45 -0
  29. package/generated/internal-improvement/deploy.md +38 -0
  30. package/generated/internal-improvement/human-review.md +45 -0
  31. package/generated/internal-improvement/implement.md +42 -0
  32. package/generated/internal-improvement/invariants.md +38 -0
  33. package/generated/internal-improvement/manifest.json +29 -0
  34. package/generated/internal-improvement/options.md +47 -0
  35. package/generated/internal-improvement/outcome.md +38 -0
  36. package/generated/internal-improvement/plan.md +53 -0
  37. package/generated/internal-improvement/target.md +45 -0
  38. package/generated/internal-improvement/verify.md +45 -0
  39. package/generated/investigation/bound.md +45 -0
  40. package/generated/investigation/conclude.md +45 -0
  41. package/generated/investigation/explore.md +60 -0
  42. package/generated/investigation/frame.md +45 -0
  43. package/generated/investigation/gather.md +45 -0
  44. package/generated/investigation/manifest.json +21 -0
  45. package/generated/investigation/synthesize.md +51 -0
  46. package/generated/operational-stabilization/assess.md +46 -0
  47. package/generated/operational-stabilization/execute-observe.md +45 -0
  48. package/generated/operational-stabilization/manifest.json +19 -0
  49. package/generated/operational-stabilization/monitor.md +45 -0
  50. package/generated/operational-stabilization/outcome.md +38 -0
  51. package/generated/operational-stabilization/respond.md +40 -0
  52. package/generated/operational-stabilization/verify-recovery.md +45 -0
  53. package/generated/product-change/ai-audit.md +7 -4
  54. package/generated/product-change/ai-review.md +15 -5
  55. package/generated/product-change/decision.md +11 -2
  56. package/generated/product-change/define.md +4 -2
  57. package/generated/product-change/deploy.md +4 -2
  58. package/generated/product-change/human-review.md +11 -2
  59. package/generated/product-change/implement.md +4 -2
  60. package/generated/product-change/manifest.json +8 -3
  61. package/generated/product-change/options.md +11 -2
  62. package/generated/product-change/outcome.md +4 -2
  63. package/generated/product-change/plan.md +17 -2
  64. package/generated/product-change/questions.md +17 -2
  65. package/generated/product-change/research.md +11 -2
  66. package/generated/product-change/verify.md +4 -2
  67. package/generated/recommended-skills.json +24 -0
  68. package/generated/reference/CONSTITUTION.md +2 -0
  69. package/generated/reference/docs/evidence/README.md +17 -0
  70. package/generated/reference/docs/evidence/evidence-standard.md +2 -0
  71. package/generated/reference/docs/evidence/research-map.md +2 -0
  72. package/generated/reference/docs/{references → evidence/sources}/pragmatic-programmer-page-index.md +3 -1
  73. package/generated/reference/docs/{references → evidence/sources}/submitted-engineering-notes.md +3 -1
  74. package/generated/reference/docs/guide/README.md +28 -0
  75. package/generated/reference/docs/{acceptable-ai-use.md → guide/acceptable-ai-use.md} +4 -2
  76. package/generated/reference/docs/{engineering-practice.md → guide/engineering-practice.md} +5 -3
  77. package/generated/reference/docs/{rationale.md → guide/rationale.md} +3 -1
  78. package/generated/reference/docs/guide/recommended-skills.md +21 -0
  79. package/generated/reference/docs/{workflows → guide/workflows}/README.md +6 -4
  80. package/generated/reference/docs/{workflows → guide/workflows}/corrective-debugging.md +39 -19
  81. package/generated/reference/docs/{workflows → guide/workflows}/decision.md +4 -2
  82. package/generated/reference/docs/{workflows → guide/workflows}/internal-improvement.md +37 -23
  83. package/generated/reference/docs/{workflows → guide/workflows}/investigation.md +5 -1
  84. package/generated/reference/docs/{workflows → guide/workflows}/operational-stabilization.md +16 -12
  85. package/generated/reference/docs/{workflows → guide/workflows}/product-change.md +16 -3
  86. package/generated/reference/index.json +200 -87
  87. package/package.json +34 -25
  88. package/src/engine.ts +27 -8
  89. package/src/flow-guides.ts +168 -0
  90. package/src/guidance.ts +220 -78
  91. package/src/index.ts +852 -189
  92. package/src/reference-viewer.ts +20 -18
  93. package/src/reference.ts +76 -14
  94. package/src/review.ts +360 -0
  95. package/src/skills.ts +133 -0
  96. package/src/storage.ts +139 -15
  97. package/src/types.ts +1 -0
  98. package/generated/reference/docs/design/debugging-and-operations.md +0 -119
  99. package/generated/reference/docs/design/executable-workflows.md +0 -110
  100. package/generated/reference/docs/design/process-taxonomy.md +0 -144
  101. package/generated/reference/docs/releasing-pi.md +0 -89
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=deploy sha256=815387acc0802fdd44297a56e3a3cf2aa2b9257ea27821ff745c4df8f1e3aab1 -->
2
+ <!-- workflow=product-change@0.2.0 phase=deploy sha256=299a79a63024f2a0a012747b7f2ee7317a2a2eb3832f4f2d0f2210ef2825f3c2 -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,11 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  A human authorizes deployment or release. You may analyze readiness evidence, but do not execute deployment, accept production risk, or claim that a version is live. The human records the version, target, actor, time, authorization, and observed result.
23
23
 
24
+
25
+
24
26
  ## Enforced phase contract
25
27
 
26
- - Workflow: `product-change@0.1.0`
28
+ - Workflow: `product-change@0.2.0`
27
29
  - Current phase: `deploy`
28
30
  - Human gate: `deployment-confirmed` — Human confirms the intended version reached the target or deployment is not applicable
29
31
  - Normal next phase: `verify`
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=human-review sha256=26be7f18a0f0efb223c2d17a591ee5307a2848dae443442526f281fbfde2c6d0 -->
2
+ <!-- workflow=product-change@0.2.0 phase=human-review sha256=e94dd8e864afab324fadd3da464d5818df8df0bfb2671f3f609063b7b91b8bb7 -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,18 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  An independent human reviewer makes the final engineering judgment. You may retrieve evidence and answer targeted questions, but may not approve the change or record `human-review`. The reviewer must be someone other than the changeset implementer.
23
23
 
24
+ ## Applicable AHEAD methods
25
+
26
+ ### Changeset review
27
+
28
+ Bind the review to an exact changeset snapshot. Report each finding with a stable identifier, severity, category, precise location, evidence, impact, and a falsifiable explanation. Separate findings from questions and note material areas not assessed.
29
+
30
+ AI findings are hypotheses, not verdicts. The implementing human must disposition every material finding as fixed, invalid, accepted risk, or follow-up, with rationale and evidence. Any changed snapshot requires another AI review. An independent human then reviews the current snapshot and makes the final engineering judgment.
31
+
32
+
24
33
  ## Enforced phase contract
25
34
 
26
- - Workflow: `product-change@0.1.0`
35
+ - Workflow: `product-change@0.2.0`
27
36
  - Current phase: `human-review`
28
37
  - Human gate: `human-review-accepted` — Independent human reviewer accepts the current change; acceptance identity must match `human-review`
29
38
  - Normal next phase: `deploy`
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=implement sha256=4eb0d3f8bbcbd111f9feb42ae01ba97a8ff658400747f4d93315066fd15ba973 -->
2
+ <!-- workflow=product-change@0.2.0 phase=implement sha256=c45eb2a3e2b83d5df27ee2dc3c5bda856486c57cbda0eefe6c950b6f2cb6815d -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -25,9 +25,11 @@ If the human has not supplied a current model, attempted approach, or intended b
25
25
 
26
26
  Call out plan deviations; do not silently redefine behavior or policy. Passing checks is evidence, not final review.
27
27
 
28
+
29
+
28
30
  ## Enforced phase contract
29
31
 
30
- - Workflow: `product-change@0.1.0`
32
+ - Workflow: `product-change@0.2.0`
31
33
  - Current phase: `implement`
32
34
  - Human gate: `implementation-ready` — Human confirms work is ready for review and checks pass
33
35
  - Normal next phase: `ai-review`
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "workflow": "product-change",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "generated": [
5
5
  "define.md",
6
6
  "research.md",
@@ -17,8 +17,13 @@
17
17
  "outcome.md"
18
18
  ],
19
19
  "sources": [
20
- "spec/workflows/product-change-v0.1.json",
20
+ "spec/workflows/product-change-v0.2.json",
21
21
  "policy/common.md",
22
- "policy/product-change/<phase>.md"
22
+ "policy/product-change/<phase>.md or policy/shared/<phase>.md",
23
+ "policy/methods/index.json",
24
+ "policy/methods/guided-questioning.md",
25
+ "policy/methods/research-evidence.md",
26
+ "policy/methods/planning-decomposition.md",
27
+ "policy/methods/changeset-review.md"
23
28
  ]
24
29
  }
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=options sha256=7d35ca059b1bbed737deeb8381db12792eb98dc7ae62814d68da84f1eadbc9e9 -->
2
+ <!-- workflow=product-change@0.2.0 phase=options sha256=f0a9f8f3936ed59a89c809e1e31546ca5e9ac3c3ab76ac656676586a9b7c4645 -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,18 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  Do not expand the option set until the human records `human-option`. Then challenge that option, identify additional approaches, compare tradeoffs and risks, and make assumptions visible. The human evaluates and owns the final option set.
23
23
 
24
+ ## Applicable AHEAD methods
25
+
26
+ ### Guided questioning
27
+
28
+ Work from the dependency frontier: ask only questions whose answers unblock the next material judgment. Gather discoverable facts with tools; do not make the human answer questions the repository, runtime, or source evidence can answer.
29
+
30
+ Keep value choices, risk acceptance, product intent, and irreversible tradeoffs with the human. Use small, risk-scaled rounds. State why a question matters, make assumptions visible, and challenge contradictions without manufacturing false choices. Record the human's decision rather than inferring approval from silence.
31
+
32
+
24
33
  ## Enforced phase contract
25
34
 
26
- - Workflow: `product-change@0.1.0`
35
+ - Workflow: `product-change@0.2.0`
27
36
  - Current phase: `options`
28
37
  - Human gate: `options-understood` — Human confirms viable options and tradeoffs are understood
29
38
  - Normal next phase: `decision`
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=outcome sha256=e4d34ed3e2a76a869e0c98ed10b80165d1349df7889b6775c0264629169903e1 -->
2
+ <!-- workflow=product-change@0.2.0 phase=outcome sha256=d6e1a73bbc2be8b5374464a6cb2f198bd1cb395b85db6ac84201d6dae95e2518 -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,11 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  The human decides to accept, roll back, follow up, abandon, or reopen work and records uncertainty and learning. You may organize evidence or summarize learning, but cannot accept closure or choose the outcome.
23
23
 
24
+
25
+
24
26
  ## Enforced phase contract
25
27
 
26
- - Workflow: `product-change@0.1.0`
28
+ - Workflow: `product-change@0.2.0`
27
29
  - Current phase: `outcome`
28
30
  - Human gate: `outcome-accepted` — Human accepts closure
29
31
  - Normal next phase: `close run`
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=plan sha256=25063052796b7763988e68ae2d815c833787e77b77a217af4333e5e328e22ef2 -->
2
+ <!-- workflow=product-change@0.2.0 phase=plan sha256=c15a791eaff9639ce71c1fb08b865a1c8472ee68a25ecd529e1c40f75dd040c0 -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,24 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  Do not create the governing implementation plan before the human records `first-pass-plan`. Then challenge it for missing dependencies, tests, edge cases, rollout evidence, recovery, and deviations policy. The human authors and approves the final plan.
23
23
 
24
+ ## Applicable AHEAD methods
25
+
26
+ ### Guided questioning
27
+
28
+ Work from the dependency frontier: ask only questions whose answers unblock the next material judgment. Gather discoverable facts with tools; do not make the human answer questions the repository, runtime, or source evidence can answer.
29
+
30
+ Keep value choices, risk acceptance, product intent, and irreversible tradeoffs with the human. Use small, risk-scaled rounds. State why a question matters, make assumptions visible, and challenge contradictions without manufacturing false choices. Record the human's decision rather than inferring approval from silence.
31
+
32
+ ### Planning and decomposition
33
+
34
+ Decompose the human's approved direction into the smallest coherent vertical slices that produce observable value or evidence. State dependencies, acceptance criteria, tests, rollout, recovery, and the condition that makes each slice complete.
35
+
36
+ For broad migrations, use expand, migrate, verify, and contract stages so intermediate states remain valid. AI may challenge sequencing and omissions after the human first pass; the human resolves the critique and approves the final plan.
37
+
38
+
24
39
  ## Enforced phase contract
25
40
 
26
- - Workflow: `product-change@0.1.0`
41
+ - Workflow: `product-change@0.2.0`
27
42
  - Current phase: `plan`
28
43
  - Human gate: `plan-approved` — Human approves the final plan
29
44
  - Normal next phase: `implement`
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=questions sha256=1f1e076df2e242a8569d211f4ace16125047949f651cbd547aaceebe09157c72 -->
2
+ <!-- workflow=product-change@0.2.0 phase=questions sha256=c666b41866f716539f89e5518193e1fb26328ba0ba9b5c3ac0b31b29d499a13e -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,24 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  Help the human understand the research. Identify missed questions and investigate unanswered ones. An unknown is not disposed merely because it was listed or deferred; the human must record whether it was answered, accepted with consequences, blocked, or deliberately deferred.
23
23
 
24
+ ## Applicable AHEAD methods
25
+
26
+ ### Guided questioning
27
+
28
+ Work from the dependency frontier: ask only questions whose answers unblock the next material judgment. Gather discoverable facts with tools; do not make the human answer questions the repository, runtime, or source evidence can answer.
29
+
30
+ Keep value choices, risk acceptance, product intent, and irreversible tradeoffs with the human. Use small, risk-scaled rounds. State why a question matters, make assumptions visible, and challenge contradictions without manufacturing false choices. Record the human's decision rather than inferring approval from silence.
31
+
32
+ ### Research and evidence
33
+
34
+ Prefer primary sources and direct observations. For each material claim, retain the source or observation, its date when relevant, the applicable context, and whether the claim is observed, inferred, or uncertain. Surface contradictions and missing evidence instead of averaging them away.
35
+
36
+ Research should change a decision, hypothesis, plan, or confidence level. Put provenance in the phase's existing artifact; do not create a parallel research bureaucracy.
37
+
38
+
24
39
  ## Enforced phase contract
25
40
 
26
- - Workflow: `product-change@0.1.0`
41
+ - Workflow: `product-change@0.2.0`
27
42
  - Current phase: `questions`
28
43
  - Human gate: `unknowns-disposed` — Human confirms important unknowns are answered or explicitly accepted
29
44
  - Normal next phase: `options`
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=research sha256=52405c86277ac96803e1041e131e85b1ba212d431f22c53dd7ff084a2dab1993 -->
2
+ <!-- workflow=product-change@0.2.0 phase=research sha256=5d47cb0aa2a2e08600b0a8e3ed2efc062555cc525ec485b8e43f2b8657f0da48 -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,18 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  Gather evidence from authorized sources. Cite sources, distinguish retrieved facts from synthesis, expose contradictions, and state important gaps. The human reads and evaluates the result. Use `ahead_record_artifact` to preserve the research record when ready.
23
23
 
24
+ ## Applicable AHEAD methods
25
+
26
+ ### Research and evidence
27
+
28
+ Prefer primary sources and direct observations. For each material claim, retain the source or observation, its date when relevant, the applicable context, and whether the claim is observed, inferred, or uncertain. Surface contradictions and missing evidence instead of averaging them away.
29
+
30
+ Research should change a decision, hypothesis, plan, or confidence level. Put provenance in the phase's existing artifact; do not create a parallel research bureaucracy.
31
+
32
+
24
33
  ## Enforced phase contract
25
34
 
26
- - Workflow: `product-change@0.1.0`
35
+ - Workflow: `product-change@0.2.0`
27
36
  - Current phase: `research`
28
37
  - Human gate: `research-reviewed` — Human confirms material evidence is available
29
38
  - Normal next phase: `questions`
@@ -1,5 +1,5 @@
1
1
  <!-- GENERATED FILE. DO NOT EDIT. -->
2
- <!-- workflow=product-change@0.1.0 phase=verify sha256=472230088f1d01652087854269cd79f54462b7713870ffdb3541e602736e9d45 -->
2
+ <!-- workflow=product-change@0.2.0 phase=verify sha256=f16d886eef6a02cdfa0dc0fbf89b19c8dfcd67c584b2e37b2c0f6ba54097b273 -->
3
3
 
4
4
  # AHEAD agent profile
5
5
 
@@ -21,9 +21,11 @@ You are assisting inside an active AHEAD workflow. Humans lead; AI assists.
21
21
 
22
22
  Help suggest checks and analyze authorized observations against the recorded problem and success signals. Keep code landed, deployed version, and observed behavior separate. A human decides whether the intended outcome is demonstrated or failure is recorded.
23
23
 
24
+
25
+
24
26
  ## Enforced phase contract
25
27
 
26
- - Workflow: `product-change@0.1.0`
28
+ - Workflow: `product-change@0.2.0`
27
29
  - Current phase: `verify`
28
30
  - Human gate: `outcome-demonstrated` — Human confirms the intended outcome is demonstrated or failure is recorded
29
31
  - Normal next phase: `ai-audit`
@@ -0,0 +1,24 @@
1
+ {
2
+ "api_version": "ahead.recommended-skills/v0.1",
3
+ "reviewed_at": "2026-08-12",
4
+ "skills": [
5
+ {
6
+ "id": "ponytail",
7
+ "title": "Ponytail",
8
+ "summary": "A persistent problem-solving loop for difficult implementation, debugging, and investigation work.",
9
+ "source": "DietrichGebert/ponytail",
10
+ "skill": "skills/ponytail",
11
+ "reviewed_ref": "2ed6c52c9d7e5e56942508591085fd45dea277d3",
12
+ "reviewed_url": "https://github.com/DietrichGebert/ponytail/tree/2ed6c52c9d7e5e56942508591085fd45dea277d3/skills/ponytail",
13
+ "license": "MIT",
14
+ "install": "npx skills add https://github.com/DietrichGebert/ponytail/tree/2ed6c52c9d7e5e56942508591085fd45dea277d3/skills/ponytail --agent pi",
15
+ "workflows": ["corrective-debugging", "investigation", "product-change", "internal-improvement"],
16
+ "phases": ["investigate", "explore", "implement"],
17
+ "compatibility": [
18
+ "AHEAD remains authoritative for human ownership, required artifacts, and gates.",
19
+ "Persistence never permits skipping human understanding, decisions, plans, tests, or review.",
20
+ "Treat suggestions to ship a quick or lazy version as experiments unless the active AHEAD flow has approved production implementation."
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -1,5 +1,7 @@
1
1
  # AHEAD Constitution
2
2
 
3
+ Audience: AHEAD practitioners and framework maintainers
4
+
3
5
  This constitution records the durable principles of **Assisted Human Engineering and Development**. Workflows and tools may evolve. These principles define what makes them AHEAD.
4
6
 
5
7
  ## 1. Human ownership
@@ -0,0 +1,17 @@
1
+ # AHEAD Evidence and Provenance
2
+
3
+ Audience: AHEAD evidence readers and framework maintainers
4
+
5
+ This library records why AHEAD makes its process choices and how strong the support for those choices is. It is separate from the practitioner guide so source material and methodology governance do not become extra steps in ordinary engineering work.
6
+
7
+ ## Evidence governance
8
+
9
+ - [Evidence standard](evidence-standard.md) defines evidence classes, applicability, limitations, and revision expectations.
10
+ - [Research map](research-map.md) maps important AHEAD claims to current research, standards, established practice, and open hypotheses.
11
+
12
+ ## Preserved source notes
13
+
14
+ - [Pragmatic Programmer page index](sources/pragmatic-programmer-page-index.md) preserves edition-specific page locators.
15
+ - [Submitted engineering notes](sources/submitted-engineering-notes.md) preserves the original tips and checklists behind the distilled practitioner guidance.
16
+
17
+ Practitioners may consult this material when they need the basis or limitation of a rule. Framework maintainers use it when proposing, evaluating, or revising AHEAD policy.
@@ -1,5 +1,7 @@
1
1
  # AHEAD Evidence Standard
2
2
 
3
+ Audience: AHEAD evidence readers and framework maintainers
4
+
3
5
  Status: proposed
4
6
 
5
7
  ## Purpose
@@ -1,5 +1,7 @@
1
1
  # AHEAD Research Map
2
2
 
3
+ Audience: AHEAD evidence readers and framework maintainers
4
+
3
5
  Status: living evidence review
4
6
  Last reviewed: 2026-08-12
5
7
 
@@ -1,5 +1,7 @@
1
1
  # *The Pragmatic Programmer* Page Index
2
2
 
3
+ Audience: AHEAD evidence readers and framework maintainers
4
+
3
5
  Status: submitted source notes
4
6
 
5
7
  ## Edition and use
@@ -8,7 +10,7 @@ This index preserves the page-level provenance from the original AHEAD engineeri
8
10
 
9
11
  > David Thomas and Andrew Hunt, *The Pragmatic Programmer: Your Journey to Mastery*, 20th Anniversary Edition, ISBN 9780135957059.
10
12
 
11
- Page numbers are edition-specific and may not match an ebook or another printing. The titles and locators below are the submitter's reading notes, retained so AHEAD's distilled guidance remains traceable. They are not presented as scientific evidence; the [research map](../evidence/research-map.md) separately records empirical support.
13
+ Page numbers are edition-specific and may not match an ebook or another printing. The titles and locators below are the submitter's reading notes, retained so AHEAD's distilled guidance remains traceable. They are not presented as scientific evidence; the [research map](../research-map.md) separately records empirical support.
12
14
 
13
15
  Two submitted locators look like transcription errors but are intentionally preserved pending a check against the physical edition:
14
16
 
@@ -1,10 +1,12 @@
1
1
  # Submitted Engineering Notes
2
2
 
3
+ Audience: AHEAD evidence readers and framework maintainers
4
+
3
5
  Status: submitted source notes
4
6
 
5
7
  ## Purpose and provenance
6
8
 
7
- 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 experimentally validated rule.
9
+ This document preserves submitted engineering tips, checklists, and practices that are intentionally condensed in the [AHEAD Engineering Practice](../../guide/engineering-practice.md) guide. It is a source record, not a claim that every item is an experimentally validated rule.
8
10
 
9
11
  Tips 1–70 and their submitted page locators from *The Pragmatic Programmer* are retained in the [edition-specific page index](pragmatic-programmer-page-index.md). Their accompanying submitted meanings are retained below, followed by the additional tips and the full submitted checklist and practice content. The submitted language-learning list is intentionally omitted.
10
12
 
@@ -0,0 +1,28 @@
1
+ # AHEAD Practitioner Guide
2
+
3
+ Audience: AHEAD practitioners
4
+
5
+ This is the starting point for people applying AHEAD to engineering work. These documents explain what practitioners are expected to understand, decide, record, and review. They do not describe how the Rust engine, Pi adapter, instruction generator, or release process is implemented.
6
+
7
+ ## Start here
8
+
9
+ 1. [Why AHEAD](rationale.md) explains the philosophy and intended human–AI relationship.
10
+ 2. [AHEAD Constitution](../../CONSTITUTION.md) defines the durable, non-negotiable principles.
11
+ 3. [Acceptable AI use](acceptable-ai-use.md) defines binding authority boundaries.
12
+ 4. [Engineering practice](engineering-practice.md) describes the habits AHEAD asks engineers to cultivate.
13
+ 5. [Pilot workflows](workflows/README.md) explains how to choose and execute one of the six flows.
14
+ 6. [Recommended skills](recommended-skills.md) lists optional, reviewed third-party aids.
15
+
16
+ ## Authority
17
+
18
+ The Constitution, Acceptable AI Use policy, and active workflow contract are binding during an AHEAD pilot. The rationale explains why those rules exist. Engineering Practice is proposed guidance, and recommended skills are optional. Organization and repository rules may narrow AI authority but cannot broaden it beyond AHEAD policy.
19
+
20
+ ## When you need the basis for a rule
21
+
22
+ Use the [evidence library](../evidence/README.md) for research, limitations, and original source notes. Evidence documents support and challenge the framework; they are not additional workflow steps unless a workflow explicitly requires them.
23
+
24
+ ## Tooling
25
+
26
+ [AHEAD for Pi](https://github.com/Kade-Powell/ahead/tree/main/integrations/pi) explains installation, guided mode, commands, review handoff, identity, and current pilot limitations. Implementation architecture and release procedures belong in the repository's [development guide](https://github.com/Kade-Powell/ahead/blob/main/docs/development/README.md), which is intentionally not packaged as runtime guidance.
27
+
28
+ Stopping AHEAD does not imply completion. An integration should discard unfinished workflow records by default without touching engineering work, retain them only when the human explicitly chooses to save, and resume saved work at the same phase and gates.
@@ -1,10 +1,12 @@
1
1
  # Acceptable AI Use in AHEAD
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: binding pilot policy v0.1
4
6
 
5
7
  ## Authority
6
8
 
7
- 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 phase. A workflow phase, diagram, tool permission, or local convenience cannot broaden AI authority beyond this policy. Organization and repository policies may impose stricter controls.
9
+ 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 phase. A workflow phase, diagram, tool permission, or local convenience cannot broaden AI authority beyond this policy. Organization and repository policies may impose stricter controls.
8
10
 
9
11
  If two rules appear to conflict, apply the more protective rule and record the ambiguity for correction. No exception may transfer human authorship, judgment, approval, accountability, or unscoped consequential authority to AI.
10
12
 
@@ -214,4 +216,4 @@ For a disposable prototype, also answer:
214
216
  - [NIST DevSecOps reference model: Artificial Intelligence](https://pages.nist.gov/nccoe-devsecops/notational-reference-model.html#artificial-intelligence) — human validation and verifiable-process guidance for AI-augmented software development.
215
217
  - [OWASP Secure Coding with AI Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Coding_with_AI_Cheat_Sheet.html) — practitioner security guidance for sensitive context, agent permissions, generated tests, supply chains, and CI/CD.
216
218
 
217
- The [research map](evidence/research-map.md) classifies these sources and records their limitations. Exact boundaries such as “core business logic” and the human-first debugging checkpoint remain AHEAD policy choices that should be tested and refined.
219
+ The [research map](../evidence/research-map.md) classifies these sources and records their limitations. Exact boundaries such as “core business logic” and the human-first debugging checkpoint remain AHEAD policy choices that should be tested and refined.
@@ -1,5 +1,7 @@
1
1
  # AHEAD Engineering Practice
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  Status: proposed guidance
4
6
 
5
7
  ## Purpose
@@ -8,7 +10,7 @@ AHEAD is not only a sequence of AI gates. It is a way of practicing engineering.
8
10
 
9
11
  Many of these ideas come from practitioner literature rather than controlled experiments. The source type matters: a useful craft principle can guide work without being misrepresented as science.
10
12
 
11
- The submitted notes include page-level references to *The Pragmatic Programmer*. Those locators are preserved in the [edition-specific page index](references/pragmatic-programmer-page-index.md) and grouped below so the distillation remains traceable to its source. Additional submitted tips, complete checklists, and practices are retained in the [submitted engineering notes](references/submitted-engineering-notes.md); the practice guide condenses them without replacing that source record.
13
+ The submitted notes include page-level references to *The Pragmatic Programmer*. Those locators are preserved in the [edition-specific page index](../evidence/sources/pragmatic-programmer-page-index.md) and grouped below so the distillation remains traceable to its source. Additional submitted tips, complete checklists, and practices are retained in the [submitted engineering notes](../evidence/sources/submitted-engineering-notes.md); the practice guide condenses them without replacing that source record.
12
14
 
13
15
  ## 1. Care about the craft and own the result
14
16
 
@@ -142,7 +144,7 @@ Before merge or delivery:
142
144
  These are recommended practitioner sources, not scientific proof of AHEAD:
143
145
 
144
146
  - David Thomas and Andrew Hunt, [*The Pragmatic Programmer: Your Journey to Mastery*, 20th Anniversary Edition](https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/), ISBN 9780135957059.
145
- - AHEAD preserves the submitted print-page locators in its [Pragmatic Programmer page index](references/pragmatic-programmer-page-index.md).
147
+ - AHEAD preserves the submitted print-page locators in its [Pragmatic Programmer page index](../evidence/sources/pragmatic-programmer-page-index.md).
146
148
  - Luca Palmieri, [*Zero To Production In Rust*](https://www.zero2prod.com/), ISBN 9798847211437. This is a concrete production-backend learning path rather than a general philosophy source.
147
149
  - Richard Hamming, [*The Art of Doing Science and Engineering: Learning to Learn*](https://press.stripe.com/the-art-of-doing-science-and-engineering), ISBN 9781732265172.
148
150
  - Rich Hickey, [*Simple Made Easy*](https://www.youtube.com/watch?v=SxdOUGdseq4), Strange Loop 2011.
@@ -160,4 +162,4 @@ These are recommended practitioner sources, not scientific proof of AHEAD:
160
162
  - [Becker et al., *Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity*](https://arxiv.org/abs/2507.09089)
161
163
  - [Bjarnason, Lang, and Mjöberg, *An empirically based model of software prototyping*](https://doi.org/10.1007/s10664-023-10331-w)
162
164
 
163
- Detailed applicability and limitations belong in the [AHEAD research map](evidence/research-map.md).
165
+ Detailed applicability and limitations belong in the [AHEAD research map](../evidence/research-map.md).
@@ -1,5 +1,7 @@
1
1
  # Why AHEAD
2
2
 
3
+ Audience: AHEAD practitioners
4
+
3
5
  ## Human-led engineering, amplified by AI
4
6
 
5
7
  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.
@@ -207,4 +209,4 @@ AHEAD is evidence-informed; it is not yet an experimentally validated methodolog
207
209
 
208
210
  The existing evidence also resists simplistic claims about AI. A randomized field study across 4,867 developers found increased completed tasks with access to an AI coding assistant, while a smaller randomized study of experienced open-source developers working in familiar repositories found that the available AI tools increased completion time. The responsible conclusion is that AI's effect depends on the people, task, system, tool, and outcome being measured—not that AI is inherently productive or unproductive.
209
211
 
210
- AHEAD will maintain a [research map](evidence/research-map.md) that records the evidence and limitations behind each important process choice. Its [evidence standard](evidence/evidence-standard.md) defines how claims are classified and how the methodology should be revised when better evidence appears.
212
+ AHEAD will maintain a [research map](../evidence/research-map.md) that records the evidence and limitations behind each important process choice. Its [evidence standard](../evidence/evidence-standard.md) defines how claims are classified and how the methodology should be revised when better evidence appears.
@@ -0,0 +1,21 @@
1
+ # Recommended Skills
2
+
3
+ Audience: AHEAD practitioners
4
+
5
+ Status: reviewed catalog v0.1
6
+
7
+ 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 workflow, authority boundaries, and gates remain controlling.
8
+
9
+ The machine-readable catalog is `recommendations/skills-v0.1.json`. Every entry pins the exact revision AHEAD reviewed, supplies an inspectable source URL and install command, identifies applicable workflows and phases, and records compatibility constraints. Updating a recommendation requires reviewing the new revision before changing the pin.
10
+
11
+ ## Ponytail
12
+
13
+ [Ponytail](https://github.com/DietrichGebert/ponytail/tree/2ed6c52c9d7e5e56942508591085fd45dea277d3/skills/ponytail) is recommended as an optional persistence and problem-solving aid for difficult implementation, corrective debugging, and investigation work. AHEAD does not adopt Ponytail's authority model: the human still leads, its suggestions remain subject to the active phase, and a quick version is not production-ready merely because it works.
14
+
15
+ Inspect the pinned source, then opt in with:
16
+
17
+ ```sh
18
+ npx skills add https://github.com/DietrichGebert/ponytail/tree/2ed6c52c9d7e5e56942508591085fd45dea277d3/skills/ponytail --agent pi
19
+ ```
20
+
21
+ The Pi integration exposes this catalog but never runs the command itself. Future editor adapters should render the same canonical catalog through their native UI.
@@ -1,10 +1,12 @@
1
1
  # AHEAD Pilot Workflows
2
2
 
3
- Status: pilot v0.1
3
+ Audience: AHEAD practitioners
4
+
5
+ Status: executable dogfood v0.1
4
6
 
5
7
  ## Purpose
6
8
 
7
- These six minimal workflow profiles are meant to be used on real engineering work before AHEAD builds a workflow engine, editor extension, or CI enforcement. They are deliberately small. The pilot should reveal which phases, gates, and records improve reasoning and which create process burden.
9
+ 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 and show the human/AI rhythm. Dogfooding should reveal which phases, gates, and records improve reasoning and which create process burden.
8
10
 
9
11
  The profiles are:
10
12
 
@@ -21,7 +23,7 @@ Choose the flow by its dominant outcome, not by the issue label. Incident, emerg
21
23
 
22
24
  The pilot applies rules in this order:
23
25
 
24
- 1. [AHEAD Constitution](../../CONSTITUTION.md)
26
+ 1. [AHEAD Constitution](../../../CONSTITUTION.md)
25
27
  2. [Acceptable AI Use](../acceptable-ai-use.md)
26
28
  3. The selected workflow profile and applicable overlays
27
29
  4. Organization and repository guidance, which may narrow but not broaden AI authority
@@ -83,7 +85,7 @@ Diagram language is normative for the pilot:
83
85
 
84
86
  - `HUMAN` or `ENGINEER` means the person owns the reasoning, decision, action, or artifact.
85
87
  - `AI — ASSIST` means AI may research, organize, propose, explain, generate bounded material, or challenge; it does not own or approve the phase.
86
- - `AI REVIEW` is an additional review and never satisfies a human-review gate.
88
+ - `AI REVIEW` produces snapshot-bound hypotheses. The implementing human separately dispositions every material finding, and neither action satisfies the independent human-review gate.
87
89
  - Every decision, test selection, risk acceptance, consequential-action authorization, final review, and outcome gate is human.
88
90
  - All diagram permissions remain bounded by the rule hierarchy above. Humans lead and remain accountable; AI assists.
89
91