@punks/cli 3.1.3 → 3.1.4

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 (177) hide show
  1. package/dist/BASELINE_CHANGELOG.md +21 -0
  2. package/dist/CHANGELOG.md +40 -0
  3. package/dist/baseline/scaffold-baseline/baseline.json +4 -4
  4. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +23 -3
  5. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +26 -2
  6. package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +3 -1
  7. package/dist/baseline/scaffold-baseline/data/subagents/manifest.test.ts +20 -0
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +27 -15
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +51 -105
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +14 -2
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LICENSE +21 -0
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LOGIC.md +57 -21
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/SKILL.md +17 -15
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UI.md +12 -5
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
  50. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/SKILL.md +5 -12
  51. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
  52. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
  53. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/TESTING.md +2 -72
  54. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
  55. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
  56. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
  57. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
  60. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/LICENSE +21 -0
  61. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +7 -0
  62. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/UPSTREAM.md +9 -0
  63. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +4 -3
  64. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +31 -0
  65. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +5 -4
  66. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +6 -4
  67. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +16 -14
  68. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +9 -5
  69. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +9 -2
  70. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +4 -4
  71. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/prototype.md +1 -1
  72. package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
  73. package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
  74. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +24 -24
  75. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
  76. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +39 -0
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +3 -2
  79. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/SKILL.md +34 -0
  80. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
  81. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/agents/openai.yaml +2 -0
  82. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +14 -57
  83. package/dist/baseline/scaffold-baseline.json +4 -4
  84. package/dist/baseline/scaffold-baseline.tgz +0 -0
  85. package/dist/data/subagents/manifest.mjs +3 -1
  86. package/dist/index.js +148 -185
  87. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
  88. package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
  89. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
  90. package/dist/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
  91. package/dist/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
  92. package/dist/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
  93. package/dist/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
  94. package/dist/skills/agnostic/planning/create-plan/SKILL.md +27 -15
  95. package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
  96. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
  97. package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
  98. package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
  99. package/dist/skills/agnostic/planning/create-spec/SKILL.md +51 -105
  100. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
  101. package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
  102. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
  103. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
  104. package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
  105. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
  106. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
  107. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
  108. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
  109. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
  110. package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
  111. package/dist/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
  112. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
  113. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
  114. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
  115. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
  116. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
  117. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
  118. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
  119. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
  120. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
  121. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
  122. package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
  123. package/dist/skills/agnostic/research/parallel-research/SKILL.md +14 -2
  124. package/dist/skills/agnostic/research/prototype/LICENSE +21 -0
  125. package/dist/skills/agnostic/research/prototype/LOGIC.md +57 -21
  126. package/dist/skills/agnostic/research/prototype/SKILL.md +17 -15
  127. package/dist/skills/agnostic/research/prototype/UI.md +12 -5
  128. package/dist/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
  129. package/dist/skills/frameworks/effect/effect/SKILL.md +5 -12
  130. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
  131. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
  132. package/dist/skills/frameworks/effect/effect/references/TESTING.md +2 -72
  133. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
  134. package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
  135. package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
  136. package/dist/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
  137. package/dist/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
  138. package/dist/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
  139. package/dist/skills/misc/wait-what/LICENSE +21 -0
  140. package/dist/skills/misc/wait-what/SKILL.md +7 -0
  141. package/dist/skills/misc/wait-what/UPSTREAM.md +9 -0
  142. package/dist/skills/phases/delivery-phase/SKILL.md +4 -3
  143. package/dist/skills/phases/delivery-phase/phases/backlog.md +31 -0
  144. package/dist/skills/phases/delivery-phase/phases/implement.md +5 -4
  145. package/dist/skills/phases/delivery-phase/phases/plan.md +6 -4
  146. package/dist/skills/phases/delivery-phase/phases/router.md +16 -14
  147. package/dist/skills/phases/delivery-phase/phases/spec.md +9 -5
  148. package/dist/skills/phases/delivery-phase/references/artifact-state.md +9 -2
  149. package/dist/skills/phases/design-phase/phases/backlog.md +4 -4
  150. package/dist/skills/phases/design-phase/phases/prototype.md +1 -1
  151. package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
  152. package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
  153. package/dist/skills/phases/finder-phase/SKILL.md +24 -24
  154. package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
  155. package/dist/skills/phases/finder-phase/references/convergence.md +39 -0
  156. package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
  157. package/dist/skills/phases/finder-phase/references/root-routing.md +3 -2
  158. package/dist/skills/phases/prototype-phase/SKILL.md +34 -0
  159. package/dist/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
  160. package/dist/skills/phases/prototype-phase/agents/openai.yaml +2 -0
  161. package/dist/skills/phases/requirements-phase/SKILL.md +14 -57
  162. package/dist/tsconfig.tsbuildinfo +1 -1
  163. package/package.json +1 -1
  164. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
  165. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
  166. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
  167. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
  168. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
  169. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
  170. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
  171. package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
  172. package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
  173. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
  174. package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
  175. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
  176. package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
  177. package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
@@ -0,0 +1,31 @@
1
+ # Backlog Phase
2
+
3
+ Use this phase after an agent-ready spec exists and before concrete planning.
4
+
5
+ ## Delegate
6
+
7
+ Activate `write-backlog` only when the verified post-spec projection is missing
8
+ or stale.
9
+
10
+ ## Checks Before Delegating
11
+
12
+ - Require the authoritative `SPEC.md` at a verified stable blob URL.
13
+ - Inspect recorded projection evidence: immutable spec URL, provider destination,
14
+ epic/story ids and URLs, and observed provider state.
15
+ - If that evidence and provider state are current for the same spec, perform zero
16
+ provider mutations and record a verified no-op.
17
+ - If missing or stale, activate `write-backlog` and preserve its readiness and
18
+ zero-mutation-on-failure contract.
19
+
20
+ ## Completion State
21
+
22
+ Record backlog projection evidence:
23
+
24
+ - immutable spec URL
25
+ - provider destination
26
+ - projected epic/story ids and URLs
27
+ - verification result and observed state
28
+ - mutation or no-op outcome
29
+
30
+ Then re-enter `delivery-phase`; planning is next when projection evidence is
31
+ current.
@@ -9,10 +9,11 @@ Load `implement-spec` only after this phase is selected.
9
9
 
10
10
  ## Rules
11
11
 
12
- - Preserve the plan's `parallel: true` or `parallel: false` mode.
13
- - If no mode exists, choose the smallest safe mode:
14
- - `parallel: false` for coupled or small changes.
15
- - `parallel: true` only for independent waves with disjoint write scopes.
12
+ - Preserve the plan's dependencies, owned paths, validation gates, and wave boundaries.
13
+ - Launch every currently unblocked task whose write scope is disjoint as the
14
+ active worker wave.
15
+ - Use a one-worker wave only when dependencies or ownership leave one task
16
+ unblocked.
16
17
  - Keep changes inside the active delivery scope.
17
18
  - Parent orchestration owns shared notes and final validation evidence.
18
19
  - For UI work, require `implement-spec` to carry durable before/after links through `UI Evidence Links`; use `repo-asset-management` only through that evidence contract.
@@ -11,17 +11,19 @@ Load `create-plan` only after this phase is selected.
11
11
 
12
12
  - Verify the spec still matches the requested goal.
13
13
  - Preserve tracker hierarchy and every child-story or sub-issue requirement.
14
- - Require owned paths, dependencies, execution order, validation gates, and review mode.
15
- - Choose sequential or parallel implementation mode from the plan shape.
14
+ - Require dependencies, owned paths, validation gates, review routing, and explicit wave boundaries.
15
+ - Group independent tasks with disjoint write scopes into the same wave.
16
+ - Put every currently unblocked task with a disjoint write scope in the same
17
+ wave. Use a one-task wave only when dependencies or ownership leave one task
18
+ unblocked.
16
19
 
17
20
  ## Completion State
18
21
 
19
22
  Write or verify:
20
23
 
21
24
  - execution-ready `PLAN.md`
22
- - phase/wave boundaries
25
+ - dependencies, owned paths, and wave boundaries
23
26
  - validation commands or manual scenarios
24
- - mode choice: `parallel: true` or `parallel: false`
25
27
  - planned review and docs-ingest expectations
26
28
 
27
29
  Then stop or re-enter `delivery-phase` for routing.
@@ -5,30 +5,32 @@ until this router selects one.
5
5
 
6
6
  ## Inputs To Inspect
7
7
 
8
- - User request and explicit mode: full delivery, resume, HITL checkpoint, or closeout.
8
+ - User request and entry intent: full delivery, resume, HITL checkpoint, or closeout.
9
9
  - Tracker item, issue, PR, branch, or spec folder named by the user.
10
- - Existing `SPEC.md`, `PLAN.md`, implementation notes, review output, debug evidence, docs ingest notes, stack state, and validation evidence.
10
+ - Existing `SPEC.md`, backlog projection evidence, `PLAN.md`, implementation notes, review output, debug evidence, docs ingest notes, stack state, and validation evidence.
11
11
  - Relevant repo guidance only when needed to identify ownership or validation surface.
12
12
 
13
13
  ## Routing Order
14
14
 
15
15
  1. If goal bounds are unclear, stop and ask one concrete question.
16
- 2. If no reviewed matching spec exists, load [spec.md](spec.md).
16
+ 2. If no matching agent-ready `SPEC.md` exists, load [spec.md](spec.md).
17
17
  3. If the spec exists but is stale, contradictory, or missing required child-story scope, load [spec.md](spec.md).
18
- 4. If no execution-ready matching plan exists, load [plan.md](plan.md).
19
- 5. If the plan exists but lacks dependencies, validation gates, owned paths, or mode choice, load [plan.md](plan.md).
20
- 6. If accepted plan work is incomplete, load [implement.md](implement.md).
21
- 7. If implementation exists but mandatory review is missing or stale, load [review.md](review.md).
22
- 8. If review found in-scope non-runtime blockers, route back to [implement.md](implement.md).
23
- 9. If validation or review produced runtime evidence, load [debug.md](debug.md).
24
- 10. If docs-affecting changes exist and ingest is missing, load [docs-ingest.md](docs-ingest.md).
25
- 11. Otherwise load [closeout.md](closeout.md).
18
+ 4. If the verified post-spec backlog projection is missing or stale, load [backlog.md](backlog.md).
19
+ 5. If no execution-ready matching plan exists, load [plan.md](plan.md).
20
+ 6. If the plan exists but lacks dependencies, owned paths, validation gates, or wave boundaries, load [plan.md](plan.md).
21
+ 7. If accepted plan work is incomplete, load [implement.md](implement.md).
22
+ 8. If implementation exists but mandatory review is missing or stale, load [review.md](review.md).
23
+ 9. If review found in-scope non-runtime blockers, route back to [implement.md](implement.md).
24
+ 10. If validation or review produced runtime evidence, load [debug.md](debug.md).
25
+ 11. If docs-affecting changes exist and ingest is missing, load [docs-ingest.md](docs-ingest.md).
26
+ 12. Otherwise load [closeout.md](closeout.md).
26
27
 
27
28
  ## HITL Behavior
28
29
 
29
- When the user asks for manual control, route only the requested phase and stop
30
- after writing its phase handoff. Do not continue to the next phase in the same
31
- turn unless the user explicitly asks.
30
+ A HITL checkpoint is explicit user control, never an inferred spec approval
31
+ gate. When requested, route only the requested phase and stop after writing its
32
+ phase handoff. On resume, an agent-ready `SPEC.md` proceeds directly to the next
33
+ applicable phase; no reviewed or approved status is required.
32
34
 
33
35
  ## Resume Behavior
34
36
 
@@ -1,7 +1,7 @@
1
1
  # Spec Phase
2
2
 
3
- Use this phase when no reviewed matching `SPEC.md` exists, or the current spec is
4
- stale, contradictory, or missing required scope.
3
+ Use this phase when no matching agent-ready `SPEC.md` exists, or the current
4
+ spec is stale, contradictory, or missing required scope.
5
5
 
6
6
  ## Delegate
7
7
 
@@ -12,15 +12,19 @@ Load `create-spec` only after this phase is selected.
12
12
  - Confirm the bounded goal, issue, tracker item, or requested capability.
13
13
  - Reuse existing spec artifacts when they match the requested scope.
14
14
  - Treat child stories, sub-issues, acceptance criteria, constraints, and non-goals as required input, not loose references.
15
- - If requirements are still unsettled, stop and route to requirements work instead of inventing scope.
15
+ - If requirements are unsettled, return the compiler's `spec-not-ready` result
16
+ and route each named gap upstream instead of interviewing here.
16
17
 
17
18
  ## Completion State
18
19
 
19
20
  Write or verify:
20
21
 
21
22
  - matching `SPEC.md`
22
- - review status or explicit human approval state
23
- - unresolved questions, if any
23
+ - `readiness: agent-ready`
24
+ - `spec-written`
24
25
  - source issue/tracker/spec folder
25
26
 
26
27
  Then stop or re-enter `delivery-phase` for routing.
28
+
29
+ This completion state satisfies the downstream spec gate. Do not add a spec
30
+ review or approval stop unless the user explicitly requested a HITL checkpoint.
@@ -12,8 +12,15 @@ Use this reference when deciding whether a phase is complete enough to skip.
12
12
  ## Plan Complete
13
13
 
14
14
  - `PLAN.md` exists and matches the spec.
15
- - Tasks have order, dependencies, owned paths, and validation gates.
16
- - Mode is explicit or derivable: `parallel: true` or `parallel: false`.
15
+ - Tasks have dependencies, owned paths, validation gates, and wave boundaries.
16
+ - Each wave contains every currently unblocked task with a disjoint write scope;
17
+ one-task waves are justified by dependencies or ownership.
18
+
19
+ ## Backlog Projection Complete
20
+
21
+ - Projection evidence names the immutable spec URL, provider destination,
22
+ epic/story ids and URLs, and verified observed state.
23
+ - Evidence matches the current spec; otherwise the projection is stale.
17
24
 
18
25
  ## Implementation Complete
19
26
 
@@ -4,15 +4,15 @@ Convert approved design artifacts into backlog work.
4
4
 
5
5
  ## Prerequisite
6
6
 
7
- At least one fresh approved artifact set with an artifact contract.
7
+ An authoritative agent-ready `SPEC.md` at a verified stable blob URL that includes or links at least one fresh approved artifact set with its artifact contract.
8
8
 
9
9
  ## Steps
10
10
 
11
- 1. Verify approved artifact links, durable asset links, scope, constraints, and acceptance checks.
11
+ 1. Verify the spec is authoritative and agent-ready, then verify approved artifact links, durable asset links, scope, constraints, and acceptance checks.
12
12
  2. Use `repo-asset-management` for backlog attachments first and repo-provider fallback when backlog attachments are unavailable or unsuitable.
13
13
  3. Activate `write-backlog` from this phase only.
14
- 4. Include approved artifact context in backlog bodies: scope, intent, links, constraints, implementation notes, acceptance checks, and fallback blockers.
15
- 5. Record created or updated backlog ids.
14
+ 4. Include only accepted product and design constraints, acceptance context, and artifact links in backlog bodies.
15
+ 5. Record created or updated backlog ids and preserve the `spec -> backlog -> delivery` handoff.
16
16
 
17
17
  ## Rules
18
18
 
@@ -4,7 +4,7 @@ Produce the user-requested artifact type.
4
4
 
5
5
  ## Delegation
6
6
 
7
- Activate `$prototype` for prototype artifacts from this phase only.
7
+ For prototype artifacts inside an active design workflow, activate the lean `prototype` primitive directly. Standalone `prototype-phase` remains a Finder route for claim, verdict, retention, and frontier reconciliation.
8
8
 
9
9
  ## Steps
10
10
 
@@ -8,7 +8,7 @@ route/navigation metadata, durable learning, and writer artifact placement.
8
8
  Read only the references that match the selected work:
9
9
 
10
10
  - Spec or implementation-note ingest: [../references/wiki-ingest.md](../references/wiki-ingest.md)
11
- - Durable bug or knowledge learning: [../references/learning-artifacts.md](../references/learning-artifacts.md)
11
+ - Durable bug, knowledge, or research-report learning: [../references/learning-artifacts.md](../references/learning-artifacts.md)
12
12
  - Routed wiki pages or navigation metadata: [../references/fumadocs-routing.md](../references/fumadocs-routing.md)
13
13
  - Root `docs/` maintenance: [../references/repo-docs.md](../references/repo-docs.md)
14
14
 
@@ -19,6 +19,8 @@ Read only the references that match the selected work:
19
19
  - single-repo: `wiki`
20
20
  2. Read `<wiki-root>/AGENTS.md` before touching wiki content.
21
21
  3. Classify every target as private/internal or public by audience.
22
+ - A durable research report identified by immutable commit SHA and path is
23
+ primary learning evidence; preserve that source pointer during projection.
22
24
  4. For private/internal ingest, run the required reference workflows in this order:
23
25
  - scoped learning-artifact scan and refresh
24
26
  - routed flow-writing phase
@@ -1,6 +1,8 @@
1
1
  # Learning Artifacts
2
2
 
3
- Use this reference when `docs-ingest-phase` receives a spec, implementation, bugfix, debugging result, review result, or operator workflow change that produced durable learning.
3
+ Use this reference when `docs-ingest-phase` receives a spec, implementation,
4
+ bugfix, debugging result, review result, durable research report, or operator
5
+ workflow change that produced durable learning.
4
6
 
5
7
  ## Purpose
6
8
 
@@ -15,6 +17,7 @@ Run a scoped scan around the current ingest's:
15
17
  - component
16
18
  - referenced files
17
19
  - source spec or implementation notes
20
+ - research report identified by immutable commit SHA and path
18
21
 
19
22
  Do not run broad repository archaeology by default.
20
23
 
@@ -62,6 +65,10 @@ Before writing a new learning artifact, check existing routed learning pages in
62
65
 
63
66
  Record the outcome in the ingest report.
64
67
 
68
+ For a research report, keep the report as primary evidence and project only
69
+ reusable knowledge. Use the normal `keep`, `update`, `consolidate`, `replace`,
70
+ or `mark_stale` outcomes; do not convert unresolved product choices into facts.
71
+
65
72
  ## Future-Use Hooks
66
73
 
67
74
  Every learning artifact must expose at least one hook that makes future reuse likely:
@@ -1,53 +1,53 @@
1
1
  ---
2
2
  name: finder-phase
3
3
  description: Route loose oversized foggy work before requirements or delivery. Use when an idea is too large for one agent session, wrapped in fog, or needs backlog-native frontier shaping before requirements-phase.
4
- disable-model-invocation: true
5
4
  ---
6
5
 
7
6
  # Finder Phase
8
7
 
9
8
  Harness phase wrapper for backlog-native frontier routing.
10
9
 
11
- Use this before `requirements-phase` when the work is too big and too foggy to grill directly. Compose the lean `wayfinder` primitive, then delegate backlog materialization to `write-backlog`.
10
+ Use this before `requirements-phase` when the work is too big or foggy to grill
11
+ directly. Compose the lean `wayfinder` primitive and preserve a resumable map.
12
12
 
13
13
  ## Core Loop
14
14
 
15
- 1. Establish the frontier.
16
- - Name the loose idea, known evidence, backlog root, and any current fog or learning tickets.
17
- - If the living backlog is unavailable, say so and use docs only as temporary evidence.
18
-
19
- 2. Run route selection.
20
- - Use `wayfinder` to classify the next kind: `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
21
- - Keep provider payload rules out of this phase.
22
-
23
- 3. Place the route.
24
- - Keep `fog` at the backlog root.
25
- - For concrete non-fog work, choose or propose a module/milestone before backlog writing.
26
- - Preserve epic/story delivery semantics.
27
-
28
- 4. Materialize only when asked or already in scope.
29
- - Use `write-backlog` for backlog taxonomy and provider payloads.
30
- - Do not create provider tickets when the user asked only for routing.
31
-
32
- 5. Close the frontier pass.
33
- - Produce the updated frontier, selected route, evidence, open questions, and concise handoff.
15
+ 1. Choose a destination and mode. In **chart mode**, repair the map and sharpen
16
+ fog. In **work mode**, claim and execute exactly one frontier ticket.
17
+ 2. Read the backlog root plus any resumable ticket and immutable evidence links.
18
+ If provider state is unavailable, use docs as temporary evidence and say so.
19
+ 3. Use `wayfinder` to compute the frontier and select one route.
20
+ 4. In chart mode, use `write-backlog` only when provider mutation is in scope.
21
+ In work mode, produce a claim and use `write-backlog` for its physical
22
+ provider mutation before dispatching one bounded child flow.
23
+ 5. Reconcile the child result semantically, repair invalidated scope, recompute
24
+ the frontier, and return the next route or completion state.
34
25
 
35
26
  ## Always-Needed Rules
36
27
 
37
- - The backlog root is the living map; wiki and grill artifacts are evidence.
28
+ - The backlog root is the living map; do not create a separate map issue.
38
29
  - `fog` is not delivery-eligible and is not a `SPEC.md` anchor.
39
- - `grilling`, `research`, and `prototype` must close into accepted decisions before they create or update implementation epics or stories.
30
+ - A `fog` item records a frontier or uncertainty description. Once Finder can
31
+ derive a precise question, graduate it into `grilling`, `research`, or
32
+ `prototype`; the question belongs to that concrete item, not the fog intake.
33
+ - Frontier tickets are open, unblocked, and unclaimed. Dependencies and claims
34
+ use provider-native relations and assignment/state.
35
+ - Child flows return immutable resolution pointers. Finder produces semantic
36
+ claim/resolution outputs; `write-backlog` owns their provider writes. The phase does not infer a
37
+ product decision from research or impersonate the human in grilling or
38
+ prototyping.
40
39
  - `finder-phase` owns frontier lifecycle and root routing; `write-backlog` owns provider materialization.
41
40
 
42
41
  ## References
43
42
 
44
43
  - Frontier lifecycle: [references/frontier-lifecycle.md](references/frontier-lifecycle.md)
44
+ - Convergence and resumption: [references/convergence.md](references/convergence.md)
45
45
  - Root routing: [references/root-routing.md](references/root-routing.md)
46
46
  - Backlog taxonomy and provider materialization: use the `write-backlog` skill.
47
47
 
48
48
  ## Completion Criteria
49
49
 
50
50
  - The frontier is represented as backlog-root state or as a temporary evidence-backed handoff when provider state is unavailable.
51
- - The next route is selected and placed.
51
+ - The destination, current mode, frontier, claims, and next route are explicit.
52
52
  - Any backlog writes were delegated to `write-backlog`.
53
53
  - The final handoff names the next skill or phase and any unresolved blocker.
@@ -1,2 +1,2 @@
1
1
  policy:
2
- allow_implicit_invocation: false
2
+ allow_implicit_invocation: true
@@ -0,0 +1,39 @@
1
+ # Convergence
2
+
3
+ ## Resume Input
4
+
5
+ Resume from the backlog root, destination, current mode, claimed ticket, native
6
+ dependencies, and immutable child-flow resolution pointers. Re-read provider
7
+ state; a prose handoff is evidence, not authoritative map state.
8
+
9
+ ## Child Dispatch
10
+
11
+ - `grilling` -> `requirements-grill`; only the human closes product decisions.
12
+ - `research` -> `parallel-research` in durable-report mode; require the retained
13
+ report's immutable commit SHA and path. Facts may close, product direction may
14
+ not.
15
+ - `prototype` -> `prototype-phase`; wait for a human verdict.
16
+ - closed or explicitly parked frontier -> `create-spec`.
17
+
18
+ Dispatch one bounded child flow per work session.
19
+
20
+ ## Provider Mutation Boundary
21
+
22
+ A claim is a semantic output of Finder: ticket, claimant, and intended native
23
+ assignment/state change. When provider mutation is in scope, delegate that
24
+ physical write to `write-backlog` and confirm it before child dispatch.
25
+
26
+ A resolution is a semantic output of Finder: ticket, result, immutable evidence
27
+ pointer, and intended native state change. Delegate the physical resolution
28
+ write to `write-backlog` and confirm it before recomputing the frontier.
29
+
30
+ ## Reconciliation
31
+
32
+ 1. Verify the child result and immutable evidence pointer.
33
+ 2. Produce the semantic resolution and route its provider-native write through
34
+ `write-backlog`.
35
+ 3. Repair claims, dependencies, or scope invalidated by the result.
36
+ 4. Move newly discovered out-of-scope work to the appropriate backlog root or
37
+ explicitly park it; never smuggle it into the active destination.
38
+ 5. Graduate newly precise fog and recompute open, unblocked, unclaimed tickets.
39
+ 6. Return the next ticket, a chart-mode repair, or a closed frontier.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Purpose
4
4
 
5
- The frontier is the visible set of unresolved uncertainty that must be routed before delivery scope is accepted.
5
+ The frontier is the set of open, unblocked, and unclaimed decision tickets.
6
6
 
7
7
  The backlog root is the living map. Docs, specs, grill logs, and notes are evidence for updating that map.
8
8
 
@@ -11,35 +11,37 @@ The backlog root is the living map. Docs, specs, grill logs, and notes are evide
11
11
  ### Fog
12
12
 
13
13
  - Root-level only.
14
- - Tracks a real but not-yet-sharp area of uncertainty.
15
- - Anticipates future modules, tickets, epics, and stories.
14
+ - Tracks a real but not-yet-sharp area through a frontier or uncertainty description.
15
+ - Graduates when Finder can derive a precise question for `grilling`, `research`,
16
+ or `prototype`; the fog item itself does not require that question.
16
17
  - Is not delivery-eligible.
17
18
  - Is not a `SPEC.md` anchor.
18
19
  - Does not own child tickets by default.
19
20
 
20
21
  ### Grilling
21
22
 
22
- - Module/milestone-scoped.
23
+ - Capability-module-scoped.
23
24
  - Used when a human decision must close ambiguity.
24
25
  - Closes with an accepted decision note before implementation scope changes.
25
26
 
26
27
  ### Research
27
28
 
28
- - Module/milestone-scoped.
29
+ - Capability-module-scoped.
29
30
  - Used when readonly investigation can answer the unknown.
30
- - Closes with answer, evidence, accepted direction, and created or updated implementation items when applicable.
31
+ - Closes with answer and immutable evidence. Wayfinder, not research, selects
32
+ any product direction.
31
33
 
32
34
  ### Prototype
33
35
 
34
- - Module/milestone-scoped.
36
+ - Capability-module-scoped.
35
37
  - Used when learning needs an artifact, experiment, or throwaway proof.
36
- - Closes with produced artifacts, accepted direction, and created or updated implementation items when applicable.
38
+ - Closes with a human verdict and immutable artifact/verdict evidence.
37
39
 
38
40
  ### Epic
39
41
 
40
- - Module/milestone-scoped.
42
+ - Capability-module-scoped.
41
43
  - Accepted implementation capability.
42
- - Anchors one future `SPEC.md`.
44
+ - Is a post-spec delivery projection.
43
45
 
44
46
  ### Story
45
47
 
@@ -49,13 +51,17 @@ The backlog root is the living map. Docs, specs, grill logs, and notes are evide
49
51
 
50
52
  ## Transition Rules
51
53
 
52
- - Sharpening `fog` first chooses or creates a module/milestone, then creates concrete non-fog items there.
54
+ - Sharpening `fog` derives a precise question, chooses or creates a
55
+ capability module, then creates a concrete `grilling`, `research`, or
56
+ `prototype` item there.
57
+ - Execution milestones are separately blocker-derived chronology; they do not
58
+ determine capability placement.
53
59
  - `grilling`, `research`, and `prototype` do not become implementation scope silently.
54
- - Closure notes for `grilling`, `research`, and `prototype` must include:
60
+ - Resolution records for `grilling`, `research`, and `prototype` include:
55
61
  - answer
56
- - accepted direction
57
- - artifacts or evidence
58
- - created or updated epics/stories
62
+ - artifacts or evidence by immutable commit SHA and path
63
+ - Use provider-native blocker relations. Claim a ticket through native
64
+ assignment/state before working it.
59
65
  - Epic/story semantics stay strict even beside learning and uncertainty items.
60
66
 
61
67
  ## Handoff Shape
@@ -63,7 +69,7 @@ The backlog root is the living map. Docs, specs, grill logs, and notes are evide
63
69
  Return:
64
70
 
65
71
  - current frontier
66
- - selected next kind
72
+ - selected next concept
67
73
  - chosen or proposed placement
68
74
  - evidence used
69
75
  - open blockers
@@ -4,7 +4,8 @@
4
4
 
5
5
  Route to `finder-phase` before `requirements-phase` when a loose idea is too large for one agent session and still wrapped in fog.
6
6
 
7
- Use this route when the first question is not "which requirement is unclear?" but "what kind of work is this frontier?"
7
+ Use this route when the first question is not "which requirement is unclear?"
8
+ but "which concept and child flow can close this frontier?"
8
9
 
9
10
  ## Placement In Root Guidance
10
11
 
@@ -23,7 +24,7 @@ Keep root prompt guidance short:
23
24
 
24
25
  - `requirements-phase` for human decision closure inside a known topic.
25
26
  - `parallel-research` for split-friendly readonly investigation.
26
- - `prototype` for artifact-driven learning.
27
+ - `prototype-phase` for human-evaluated artifact-driven learning.
27
28
  - `create-spec`, `create-plan`, or `delivery-phase` after implementation scope is accepted.
28
29
 
29
30
  It chooses the route and updates the frontier handoff.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: prototype-phase
3
+ description: Run a standalone human-evaluated prototype when Wayfinder routes an uncertain product or technical claim to experimentation.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Prototype Phase
8
+
9
+ Own one claim from construction through a human verdict, then return evidence
10
+ to Wayfinder. Use the `prototype` skill to build the throwaway artifact.
11
+
12
+ ## Steps
13
+
14
+ 1. Claim one precise question. Record the expected learning and source ticket.
15
+ 2. Use the `prototype` skill on `prototype/<slug>`. Do not merge prototype code
16
+ into production.
17
+ 3. Give the user the run command and wait for a natural-language verdict:
18
+ accept, iterate, or reject.
19
+ 4. On iterate, update `PROTOTYPE-VERDICT.md` with the observed evidence,
20
+ rejected alternatives, risks, and requested change; commit it, keep this
21
+ phase active, and rebuild only what the feedback tests.
22
+ 5. On accept or reject, finalize `PROTOTYPE-VERDICT.md` beside the artifact using
23
+ [VERDICT-TEMPLATE.md](VERDICT-TEMPLATE.md), commit it, and establish remote retention by pushing the throwaway branch or using an explicit durable retention mechanism. Verify the remote ref contains the evidence commit before returning the immutable commit SHA and path to `finder-phase`.
24
+ 6. On reject, record the rejection rationale and leave the original question
25
+ unresolved for `finder-phase`; rejection closes this artifact, not the
26
+ decision frontier.
27
+
28
+ ## Completion
29
+
30
+ - Accept and reject return to `finder-phase`; iterate updates the verdict and
31
+ remains here.
32
+ - Wayfinder recomputes the frontier. It may route next to grilling, research,
33
+ another prototype, or `create-spec`; no route is mandatory.
34
+ - The verdict is evidence, not production authorization.
@@ -0,0 +1,16 @@
1
+ # Prototype Verdict
2
+
3
+ - Question:
4
+ - Source ticket:
5
+ - Verdict: accept | iterate | reject
6
+ - Run command:
7
+ - Inspection instructions:
8
+ - Evidence observed:
9
+ - Rejected alternatives:
10
+ - Rejection rationale:
11
+ - Unresolved risks:
12
+ - Implications:
13
+ - Open decisions:
14
+ - Decision-rich snippet (optional):
15
+ - Artifact commit:
16
+ - Artifact path:
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -1,69 +1,26 @@
1
1
  ---
2
2
  name: requirements-phase
3
- description: Orchestrates the human-centric requirements phase from ambiguity through requirements-grill artifacts into backlog shape. Use when the user asks to run a requirements phase, move from discovery to backlog, close requirement branches, decide whether backlog writing is ready, or coordinate requirements-grill with write-backlog.
3
+ description: Close bounded product decisions through requirements-grill, then compile confirmed outcomes into an agent-ready spec.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Requirements Phase
8
8
 
9
- Human-centric discovery wrapper for `requirements-grill -> write-backlog`.
10
-
11
- Normally do not create or update a formal agent goal. This phase is an interview and decision-closure loop, not execution delivery.
12
-
13
- ## Use when
14
-
15
- - The user asks for a requirements phase, requirements discovery, or backlog readiness.
16
- - Ambiguity needs to become grill branches, glossary, axioms, parked scope, and closure decisions.
17
- - Existing `*-grill-status.md` / `*-grill-log.md` artifacts need to drive backlog/module/epic/story shape.
18
- - The user wants to know whether to keep grilling, park scope, or write/sync backlog.
19
-
20
- ## Do not use when
21
-
22
- - The user asks to write `SPEC.md`, `PLAN.md`, implementation notes, code, tests, PRs, or delivery execution.
23
- - The next step is already an approved spec/plan/implementation task. Use delivery-phase or the specific delivery skill instead.
24
- - The user wants only a tactical backlog formatting pass from already-closed requirements. Use `write-backlog` directly.
9
+ Human-centric decision closure: `requirements-grill -> create-spec`.
25
10
 
26
11
  ## Workflow
27
12
 
28
- 1. Establish phase state.
29
- - Identify the topic, source artifacts, current backlog target/provider, and any explicit scope boundary.
30
- - Scan relevant routed learning artifacts when known behavior, prior bugs, project conventions, or domain facts could affect requirements.
31
- - If grill artifacts exist, read status first, then log.
32
- - If subagents are available and existing artifacts are long, use `requirements-synthesizer` to compress status/log evidence into accepted, rejected, superseded, parked, and unresolved decisions.
33
- - State assumptions and known unresolved branches tersely.
34
-
35
- 2. Route to `requirements-grill` while decisions are open.
36
- - Let `requirements-grill` own HITL interviewing.
37
- - Turn ambiguity into named branches, branch percentages, accepted decisions, rejected/superseded decisions, glossary entries, axioms, and parked scope.
38
-
39
- 3. Decide backlog readiness.
40
- - After `$requirements-grill` completes, backlog-ready means active requirements are shaped enough for module/epic/story work and any non-blocking or follow-up scope is recorded.
41
- - If not ready, report the exact backlog-shaping blockers.
42
- - If ready, hand off to `write-backlog`.
43
-
44
- 4. Run `write-backlog` only after readiness.
45
- - Derive modules first, then epics/capabilities, then stories.
46
- - If subagents are available, use `backlog-shaper` for draft module/epic/story shape before parent review.
47
- - Use accepted decisions and locked direction only.
48
- - Preserve parked scope and unresolved items as deferred notes, not silent backlog content.
49
- - Sync or draft provider payloads only when the user requested backlog write/sync.
50
-
51
- 5. Stop at the requirements boundary.
52
- - Do not create specs, plans, implementation tasks, or code changes from this phase.
53
- - Recommend delivery-phase only after backlog state is clear.
54
-
55
- ## Output contract
56
-
57
- End with one of these states:
58
-
59
- - `backlog-ready`: branches closed or parked enough; backlog can be written next.
60
- - `backlog-written`: backlog hierarchy/payloads were produced or synced.
61
- - `parked`: requirements are intentionally unresolved; parked scope and resume trigger are explicit.
62
- - `blocked`: named branches still need human decisions before backlog writing.
13
+ 1. Read existing grill status before its log. Summarize accepted, rejected,
14
+ superseded, parked, and unresolved branches.
15
+ 2. While material decisions remain open, use `requirements-grill` for the HITL
16
+ interview. Research and recommendations are evidence, not decisions.
17
+ 3. When the user confirms shared understanding and remaining branches are
18
+ closed or explicitly parked, invoke `create-spec` immediately.
19
+ 4. Require `create-spec` to push or explicitly retain the spec commit, verify the retained ref contains the spec commit, and construct and verify a stable blob URL before `write-backlog` can run. A local SHA plus path is insufficient; otherwise return the compiler's atomic `spec-not-ready` result.
63
20
 
64
- Include:
21
+ ## Boundary
65
22
 
66
- - active, closed, parked, and unresolved branches
67
- - glossary and axiom changes, if any
68
- - backlog module/epic/story implications, if known
69
- - next recommended action: continue grill, write/sync backlog, park, or move to delivery-phase
23
+ This phase does not create delivery backlog or implementation plans. After
24
+ `spec-written`, its verified stable blob URL must exist before `write-backlog`
25
+ may project the provider-neutral spec, followed by `delivery-phase` /
26
+ `create-plan`.