@punks/cli 3.1.2 → 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 (182) hide show
  1. package/dist/BASELINE_CHANGELOG.md +21 -0
  2. package/dist/CHANGELOG.md +46 -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/hooks/format-edited-file.mjs +13 -0
  7. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +862 -49
  8. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.test.ts +1295 -38
  9. package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +3 -1
  10. package/dist/baseline/scaffold-baseline/data/subagents/manifest.test.ts +20 -0
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +27 -15
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +51 -105
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +14 -2
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LICENSE +21 -0
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LOGIC.md +57 -21
  50. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/SKILL.md +17 -15
  51. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UI.md +12 -5
  52. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
  53. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/SKILL.md +5 -12
  54. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
  55. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
  56. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/TESTING.md +2 -72
  57. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
  60. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
  61. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
  62. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
  63. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/LICENSE +21 -0
  64. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +7 -0
  65. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/UPSTREAM.md +9 -0
  66. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +4 -3
  67. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +31 -0
  68. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +5 -4
  69. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +6 -4
  70. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +16 -14
  71. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +9 -5
  72. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +9 -2
  73. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +4 -4
  74. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/prototype.md +1 -1
  75. package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
  76. package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +24 -24
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
  79. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +39 -0
  80. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
  81. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +3 -2
  82. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/SKILL.md +34 -0
  83. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
  84. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/agents/openai.yaml +2 -0
  85. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +14 -57
  86. package/dist/baseline/scaffold-baseline.json +4 -4
  87. package/dist/baseline/scaffold-baseline.tgz +0 -0
  88. package/dist/data/hooks/format-edited-file.mjs +13 -0
  89. package/dist/data/scripts/sync-subagents.mjs +862 -49
  90. package/dist/data/subagents/manifest.mjs +3 -1
  91. package/dist/index.js +667 -194
  92. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
  93. package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
  94. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
  95. package/dist/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
  96. package/dist/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
  97. package/dist/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
  98. package/dist/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
  99. package/dist/skills/agnostic/planning/create-plan/SKILL.md +27 -15
  100. package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
  101. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
  102. package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
  103. package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
  104. package/dist/skills/agnostic/planning/create-spec/SKILL.md +51 -105
  105. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
  106. package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
  107. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
  108. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
  109. package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
  110. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
  111. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
  112. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
  113. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
  114. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
  115. package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
  116. package/dist/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
  117. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
  118. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
  119. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
  120. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
  121. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
  122. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
  123. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
  124. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
  125. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
  126. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
  127. package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
  128. package/dist/skills/agnostic/research/parallel-research/SKILL.md +14 -2
  129. package/dist/skills/agnostic/research/prototype/LICENSE +21 -0
  130. package/dist/skills/agnostic/research/prototype/LOGIC.md +57 -21
  131. package/dist/skills/agnostic/research/prototype/SKILL.md +17 -15
  132. package/dist/skills/agnostic/research/prototype/UI.md +12 -5
  133. package/dist/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
  134. package/dist/skills/frameworks/effect/effect/SKILL.md +5 -12
  135. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
  136. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
  137. package/dist/skills/frameworks/effect/effect/references/TESTING.md +2 -72
  138. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
  139. package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
  140. package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
  141. package/dist/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
  142. package/dist/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
  143. package/dist/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
  144. package/dist/skills/misc/wait-what/LICENSE +21 -0
  145. package/dist/skills/misc/wait-what/SKILL.md +7 -0
  146. package/dist/skills/misc/wait-what/UPSTREAM.md +9 -0
  147. package/dist/skills/phases/delivery-phase/SKILL.md +4 -3
  148. package/dist/skills/phases/delivery-phase/phases/backlog.md +31 -0
  149. package/dist/skills/phases/delivery-phase/phases/implement.md +5 -4
  150. package/dist/skills/phases/delivery-phase/phases/plan.md +6 -4
  151. package/dist/skills/phases/delivery-phase/phases/router.md +16 -14
  152. package/dist/skills/phases/delivery-phase/phases/spec.md +9 -5
  153. package/dist/skills/phases/delivery-phase/references/artifact-state.md +9 -2
  154. package/dist/skills/phases/design-phase/phases/backlog.md +4 -4
  155. package/dist/skills/phases/design-phase/phases/prototype.md +1 -1
  156. package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
  157. package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
  158. package/dist/skills/phases/finder-phase/SKILL.md +24 -24
  159. package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
  160. package/dist/skills/phases/finder-phase/references/convergence.md +39 -0
  161. package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
  162. package/dist/skills/phases/finder-phase/references/root-routing.md +3 -2
  163. package/dist/skills/phases/prototype-phase/SKILL.md +34 -0
  164. package/dist/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
  165. package/dist/skills/phases/prototype-phase/agents/openai.yaml +2 -0
  166. package/dist/skills/phases/requirements-phase/SKILL.md +14 -57
  167. package/dist/tsconfig.tsbuildinfo +1 -1
  168. package/package.json +1 -1
  169. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
  170. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
  171. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
  172. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
  173. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
  174. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
  175. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
  176. package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
  177. package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
  178. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
  179. package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
  180. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
  181. package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
  182. package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
@@ -2,91 +2,60 @@
2
2
  title: "[Title]"
3
3
  domain:
4
4
  type: spec
5
- status: draft
5
+ status: compiled
6
+ readiness: agent-ready
6
7
  links: []
7
8
  created: YYYY-MM-DD
8
9
  updated: YYYY-MM-DD
9
- id: # optional — ticket ID, remove if not applicable
10
10
  ---
11
11
 
12
12
  # Spec: [Title]
13
13
 
14
- <!--
15
- INSTRUCTIONS FOR THE AGENT (remove this block before saving the final spec):
16
-
17
- - Each spec covers one epic/capability boundary.
18
- - If the epic contains multiple child stories, the spec must cover all of them.
19
- - Preserve individual story requirements while unifying them into one coherent problem-space contract.
20
- - The audience is engineers. Keep it tight. A spec that takes 10 minutes to read won't get reviewed. Aim for 2–3 minutes.
21
- - This template is a starting point, not a rulebook:
22
- - Remove sections that don't apply — don't leave them blank or write "N/A"
23
- - Add sections if something important doesn't fit (e.g. "Data model", "API contract")
24
- - Adjust depth to complexity — a simple task may only need Context + Acceptance Criteria
25
- -->
26
-
27
- ---
28
-
29
- ## User input
30
-
31
- _Verbatim copy of everything the user said that is relevant to this spec — across one or more messages if needed. Do not paraphrase or summarize. Preserve the original wording as closely as possible._
32
-
33
- ---
34
-
35
14
  ## Context
36
15
 
37
- _What is this, why does it need to exist, and who is it for? Cover the problem and the purpose in a few sentences. Name the actual roles affected (admin, customer, developer — not just "user")._
38
-
39
- ---
40
-
41
16
  ## Non-Goals
42
17
 
43
- _Explicitly list what is out of scope for this spec. This prevents scope creep and misunderstandings._
18
+ ## User Stories
44
19
 
45
- -
46
- -
47
-
48
- ---
20
+ ### US-001: [Observable user outcome]
49
21
 
50
22
  ## Acceptance Criteria
51
23
 
52
- _The observable, binary conditions that define "done". Each one should be independently testable — you should be able to read it and immediately know what test would prove it true or false. When the epic has multiple child stories, consolidate their requirements into one coherent epic-level contract and ensure every story contributes explicit criteria._
53
-
54
- -
55
- -
56
- -
57
-
58
- ---
24
+ - AC-001: [Binary observable criterion]
25
+ - Covers: US-001
59
26
 
60
27
  ## Constraints
61
28
 
62
- _Technical, legal, organizational, or timeline constraints that shape the solution space — including quality requirements like performance, security, or accessibility if they're genuinely relevant._
29
+ ## Dependency Readiness
63
30
 
64
- -
31
+ _Write `No Stack Required` when no dependency exists. Otherwise write `Ready`
32
+ and list each dependency with immutable landing or branch/base evidence._
65
33
 
66
- ---
34
+ ## Branch/Base Intent
67
35
 
68
- ## Technical Notes
36
+ _When accepted intent exists, record the intended parent and base, child branch
37
+ constraint, and supporting evidence. Otherwise write `Not applicable`._
69
38
 
70
- _Optional. Technical discoveries, known system constraints, or early implementation observations that surfaced before or during spec writing_
39
+ ## Accepted Technical Decisions
71
40
 
72
- -
41
+ ## Accepted Testing Decisions
73
42
 
74
- ---
43
+ ## Verification Seams
75
44
 
76
- ## Open Questions
45
+ _Name the public interface, event, state transition, command, or observable
46
+ boundary used to verify the behavior. If none applies, record the accepted
47
+ not-applicable rationale._
77
48
 
78
- _Unresolved questions that could affect implementation. Before saving, route meaningful spec-affecting unknowns through the requirements-grill phase. Only keep questions here when the user explicitly defers them, the answer requires external validation, or the issue is non-blocking for spec review._
49
+ ## Prototype Verdicts
79
50
 
80
- | # | Question | Affects | Owner | Status |
81
- |---|----------|---------|-------|--------|
82
- | 1 | | | | Open |
51
+ _For each applicable verdict: outcome, immutable commit SHA, artifact path, and
52
+ accepted implications. Remove this section when no prototype exists._
83
53
 
84
- ---
54
+ ## Parked Decisions
85
55
 
86
- ## Decision Log
56
+ _Each item needs an owner and resume trigger. Remove when empty._
87
57
 
88
- _Decisions made during spec refinement, with rationale._
58
+ ## Decision Log
89
59
 
90
- | Decision | Rationale |
91
- |----------|-----------|
92
- | | |
60
+ | Decision | Evidence | Rationale |
61
+ | --- | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # Folder Naming
2
2
 
3
- Use this reference after questioning and before writing the file.
3
+ Use this reference after input readiness passes and before writing the file.
4
4
 
5
5
  ## Domain resolution
6
6
 
@@ -28,6 +28,9 @@ Each spec folder must be unique within its domain.
28
28
 
29
29
  If the folder already exists:
30
30
 
31
- - ask whether to update the existing spec or create a new one
31
+ - update it only when its identity and capability boundary match the confirmed
32
+ inputs
33
+ - otherwise return `spec-not-ready` with the collision and required upstream
34
+ naming decision
32
35
 
33
- Do not ask the user to confirm the folder name unless the correct name is genuinely ambiguous.
36
+ Do not interview from this compiler.
@@ -0,0 +1,41 @@
1
+ # Readiness
2
+
3
+ Compile only when the decision frontier is closed or every remaining item is
4
+ explicitly parked with owner and resume trigger.
5
+
6
+ Required inputs:
7
+
8
+ - actor, outcome, capability boundary, non-goals, and constraints
9
+ - accepted functional behavior and observable success
10
+ - accepted implementation and testing decisions, when any were made upstream
11
+ - every applicable prototype verdict by immutable commit SHA and path
12
+ - a verification-seam decision, or an explicit not-applicable rationale
13
+ - dependency readiness for every declared dependency: proven landed, or an
14
+ accepted branch/base intent with concrete evidence; blocked or unevidenced
15
+ dependencies fail compilation
16
+
17
+ ## Dependency output contract
18
+
19
+ Serialize both sections in every compiled spec:
20
+
21
+ - `Dependency Readiness`: write `No Stack Required` when no dependency exists.
22
+ Otherwise write `Ready` and list every dependency with immutable landing or
23
+ branch/base evidence.
24
+ - `Branch/Base Intent`: when accepted intent exists, record the intended parent
25
+ or base, child branch constraint, and supporting evidence. Otherwise write
26
+ `Not applicable` explicitly.
27
+
28
+ Never emit `Blocked` with `readiness: agent-ready`; blocked or unevidenced
29
+ dependencies produce `spec-not-ready` instead.
30
+
31
+ Validate the compiled traceability graph before writing:
32
+
33
+ - every `US-###` has at least one `AC-###` whose `Covers` list names it
34
+ - every `Covers` reference resolves to an existing `US-###`; a reference to a
35
+ nonexistent `US-###` fails compilation
36
+ - identifiers are unique and coverage is one-way from acceptance criterion to
37
+ user story
38
+
39
+ On failure, return one `spec-not-ready` result listing every missing decision or
40
+ evidence item and its upstream route: `finder-phase`, `parallel-research`,
41
+ `prototype-phase`, or `requirements-grill`. Write no partial spec.
@@ -6,8 +6,11 @@ Use this reference while filling the template and before saving.
6
6
 
7
7
  The spec lives in the problem space.
8
8
 
9
- - include what, who, why, acceptance criteria, non-goals, constraints, open questions
10
- - exclude architecture, implementation steps, code structure, or solution design
9
+ - include what, who, why, user stories, acceptance criteria, non-goals,
10
+ constraints, accepted technical/testing decisions, prototype verdicts, and
11
+ verification seams, `Dependency Readiness`, and `Branch/Base Intent`
12
+ - exclude unaccepted solution design and plan-owned files, commands, workers,
13
+ task graph, or execution order
11
14
  - when the epic has child stories, include the concrete requirements of each child story instead of summarizing only the parent issue
12
15
 
13
16
  ## Acceptance-criteria bar
@@ -17,6 +20,7 @@ Every acceptance criterion should be:
17
20
  - binary
18
21
  - observable
19
22
  - testable
23
+ - identified as `AC-###` with one or more one-way `Covers: US-###` links
20
24
 
21
25
  Avoid:
22
26
 
@@ -24,23 +28,28 @@ Avoid:
24
28
  - hidden implementation requirements disguised as product behavior
25
29
  - mixed criteria that bundle several independent outcomes into one line
26
30
 
27
- ## Epic completeness bar
31
+ ## Capability completeness bar
28
32
 
29
- When writing a spec from an epic with child stories:
33
+ When compiling confirmed capability and story decisions:
30
34
 
31
- - the spec must cover the full scope of the epic
35
+ - the spec is the provider-neutral authority for the capability boundary
32
36
  - each child story must contribute concrete requirements, constraints, or acceptance criteria
33
37
  - cross-story interactions must be resolved in the spec rather than left implicit in backlog items
34
38
 
35
39
  Avoid:
36
40
 
37
- - a spec that summarizes the epic but omits concrete requirements from one or more child stories
41
+ - a spec that omits confirmed requirements from one or more user stories
38
42
  - a spec that treats child stories as links only, without incorporating their product details
39
43
  - a spec that copies child stories separately without unifying overlaps and shared constraints
40
44
 
41
45
  ## Self-review before saving
42
46
 
43
47
  - ensure frontmatter has a non-empty string `title`, especially for specs saved directly in routed Fumadocs trees
48
+ - ensure frontmatter contains `readiness: agent-ready`
49
+ - ensure `Dependency Readiness` records `No Stack Required` or `Ready` with
50
+ evidence
51
+ - ensure `Branch/Base Intent` records accepted parent/base constraints or
52
+ `Not applicable`
44
53
  - remove all template scaffolding
45
54
  - remove empty or irrelevant sections
46
55
  - ensure the document reads cleanly with no ghost instructions
@@ -21,7 +21,7 @@ When using `apps/wiki/specs`:
21
21
  1. Add a row to the **Specs** table in `apps/wiki/index.md`:
22
22
 
23
23
  ```md
24
- | <domain> | [[specs/<domain>/<folder-name>/SPEC]] | Draft |
24
+ | <domain> | [[specs/<domain>/<folder-name>/SPEC]] | Compiled |
25
25
  ```
26
26
 
27
27
  2. Create or update `apps/wiki/specs/<domain>/<domain>-specs.md` with:
@@ -33,7 +33,7 @@ When using `apps/wiki/specs`:
33
33
  ## [YYYY-MM-DD] spec | <spec title>
34
34
  - Created spec: [[specs/<domain>/<folder-name>/SPEC]]
35
35
  - Domain: <domain>
36
- - Status: Draft
36
+ - Status: Compiled
37
37
  ```
38
38
 
39
39
  ### Docs fallback
@@ -43,7 +43,7 @@ When using `docs/specs`:
43
43
  1. Create or update `docs/specs/index.md` with:
44
44
  - the domain
45
45
  - the spec path
46
- - status `Draft`
46
+ - status `Compiled`
47
47
  2. Create or update `docs/specs/<domain>/<domain>-specs.md` with:
48
48
  - the spec name
49
49
  - a one-line summary
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: implement-spec
3
- description: Implement an approved spec folder while keeping `IMPLEMENTATION-NOTES.md`, `PLAN.md`, and spec-linked tech debt in sync. Use when a reviewed spec already has a `PLAN.md` and execution should proceed through the default single-worker sequential path or explicit parallel worker waves.
3
+ description: Implement an agent-ready spec folder through plan-derived worker waves while keeping `IMPLEMENTATION-NOTES.md`, `PLAN.md`, and spec-linked tech debt in sync. Use when an agent-ready spec already has an execution-ready `PLAN.md`.
4
4
  ---
5
5
 
6
6
  # Implement Spec
@@ -9,10 +9,10 @@ description: Implement an approved spec folder while keeping `IMPLEMENTATION-NOT
9
9
 
10
10
  - **Role:** higher-order execution orchestrator
11
11
  - **Entrypoint type:** public entrypoint
12
- - **Upstream:** reviewed spec folder with `SPEC.md` and `PLAN.md`
13
- - **Delegates to:** `$tdd`, `$codebase-design`, `$simplify`, tiny `$requirements-phase` sessions for debt ambiguity, and internal worker orchestration in sequential and parallel modes
12
+ - **Upstream:** agent-ready spec folder with `SPEC.md` and `PLAN.md`
13
+ - **Delegates to:** `$tdd`, `$codebase-design`, `$simplify`, tiny `$requirements-phase` sessions for debt ambiguity, and internal worker-wave orchestration
14
14
  - **Downstream:** `docs-ingest-phase` when the resulting spec folder should be ingested into domain knowledge
15
- - **Entry conditions:** existing reviewed spec folder; stop and use `create-plan` if `PLAN.md` is missing
15
+ - **Entry conditions:** existing agent-ready spec folder; stop and use `create-plan` if `PLAN.md` is missing
16
16
  - **Stop conditions:** shared acceptance audit complete, final manual review checklist written, spec folder finalized, blocked work reported honestly
17
17
 
18
18
  ## Required Inner Skills
@@ -22,42 +22,27 @@ description: Implement an approved spec folder while keeping `IMPLEMENTATION-NOT
22
22
  - MUST use `$simplify`
23
23
  Use `$agent-browser` when any task `review_mode` is `browser` or `mixed`.
24
24
 
25
- ## Sequential responsibilities
25
+ ## Worker-wave responsibilities
26
26
 
27
- When `implement-spec` runs in `sequential` mode, it must follow [references/sequential.md](references/sequential.md).
27
+ Follow [references/parallel.md](references/parallel.md) as the execution contract.
28
28
 
29
- That means `implement-spec` itself owns orchestration and validation, while exactly one implementation worker owns the sequential coding loop. This is a hard gate: do not implement in the parent main thread when worker execution is unavailable. Stop, repair worker routing, or report the blocker.
30
-
31
- ## Parallel responsibilities
32
-
33
- When `implement-spec` runs in `parallel` mode, it must follow [references/parallel.md](references/parallel.md) as the full orchestration contract.
34
-
35
- That means `implement-spec` itself owns all of the following in parallel mode:
36
-
37
- - parsing `PLAN.md`
38
- - finding the currently unblocked tasks from `depends_on`
39
- - launching workers in waves
40
- - reviewing worker outputs
41
- - validating each wave before advancing
42
- - ensuring `PLAN.md` and `IMPLEMENTATION-NOTES.md` are updated after each completed wave
29
+ The parent owns wave orchestration and shared artifacts. Scoped workers own
30
+ implementation tasks.
43
31
 
44
32
  ## Quick start
45
33
 
46
34
  1. Resolve the target spec folder by checking, in order: `apps/wiki/content/docs/project/specs/<domain>/<spec>/`, legacy `apps/wiki/specs/<domain>/<spec>/`, then `docs/specs/<domain>/<spec>/`.
47
35
  2. Read `references/lifecycle.md` and follow the shared execution contract exactly.
48
- 3. Choose the execution mode explicitly:
49
- - Read `references/sequential.md` for default single-worker sequential execution.
50
- - Read `references/parallel.md` for wave-based worker execution.
51
- 4. Record the chosen mode under **Execution mode** in `IMPLEMENTATION-NOTES.md` before coding.
52
- 5. Execute only the chosen mode. Do not mix modes inside one run.
53
- 6. After each completed task or wave, update `PLAN.md`, `IMPLEMENTATION-NOTES.md`, and spec-linked tech debt before advancing.
54
- 7. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
55
- 8. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
56
- 9. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
57
- 10. If backlog sync is in scope, keep epic/story bodies product-facing and use native metadata or comments instead of execution handoff rewrites.
58
- 11. For UI implementation changes, follow [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md) and use `repo-asset-management` for durable before/after asset links.
59
- 12. For tasks with `runtime_validation: required`, follow [references/runtime-product-validation.md](references/runtime-product-validation.md) and do not mark them complete without conclusive runtime evidence; an exact blocker keeps the task blocked.
60
- 13. Finish with the shared acceptance audit, manual review checklist, and spec finalization contract.
36
+ 3. Read `references/parallel.md`, parse the plan graph, and build the first unblocked wave.
37
+ 4. Launch scoped workers for the current wave using `references/parallel-worker-brief.md`.
38
+ 5. After each validated wave, update `PLAN.md`, `IMPLEMENTATION-NOTES.md`, and spec-linked tech debt before advancing.
39
+ 6. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
40
+ 7. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
41
+ 8. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
42
+ 9. If backlog sync is in scope, keep epic/story bodies product-facing and use native metadata or comments instead of execution handoff rewrites.
43
+ 10. For UI implementation changes, follow [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md) and use `repo-asset-management` for durable before/after asset links.
44
+ 11. For tasks with `runtime_validation: required`, follow [references/runtime-product-validation.md](references/runtime-product-validation.md) and do not mark them complete without conclusive runtime evidence; an exact blocker keeps the task blocked.
45
+ 12. Finish with the shared acceptance audit, manual review checklist, and spec finalization contract.
61
46
 
62
47
  ## Stack-aware branch gate
63
48
 
@@ -77,29 +62,11 @@ Before coding, inspect `PLAN.md` for `Branch/Base Intent`.
77
62
  stack-dependent workflow. Missing `stack` does not block independent
78
63
  trunk-based work.
79
64
 
80
- ## Mode selection
81
-
82
- Choose `sequential` when:
83
-
84
- - the user wants single-threaded execution
85
- - tasks are tightly coupled
86
- - parallel worker handoff cost would outweigh parallelism
87
- - the user did not choose a mode
88
-
89
- Choose `parallel` when:
90
-
91
- - the user wants explicit parallel execution
92
- - the plan contains independent waves
93
- - disjoint write scopes make worker fan-out safe
94
-
95
- If the user already chose a mode, honor it. If not, choose `sequential` and state that it spawns exactly one implementation worker plus parent validation.
96
-
97
65
  ## Advanced features
98
66
 
99
67
  - Shared lifecycle, notes contract, tech-debt rules, acceptance audit, finalization: see [references/lifecycle.md](references/lifecycle.md)
100
68
  - UI before/after screenshot evidence and PR handoff links: see [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md)
101
69
  - Supported-runtime proof and cleanup contract: see [references/runtime-product-validation.md](references/runtime-product-validation.md)
102
- - Sequential execution specifics: see [references/sequential.md](references/sequential.md)
103
- - Parallel execution specifics: see [references/parallel.md](references/parallel.md)
104
- - Parallel plan parsing and wave construction: see [references/parallel-orchestration.md](references/parallel-orchestration.md)
105
- - Parallel worker brief contract: see [references/parallel-worker-brief.md](references/parallel-worker-brief.md)
70
+ - Worker-wave execution: see [references/parallel.md](references/parallel.md)
71
+ - Plan parsing and wave construction: see [references/parallel-orchestration.md](references/parallel-orchestration.md)
72
+ - Worker brief contract: see [references/parallel-worker-brief.md](references/parallel-worker-brief.md)
@@ -4,10 +4,6 @@
4
4
 
5
5
  -
6
6
 
7
- ## Execution Mode
8
-
9
- -
10
-
11
7
  ## Deviations From the Plan
12
8
 
13
9
  -
@@ -4,14 +4,10 @@
4
4
 
5
5
  `implement-spec` is the only public execution entrypoint.
6
6
 
7
- It routes to one of two approaches:
7
+ Execution follows plan-derived worker waves. Read [parallel.md](parallel.md) for
8
+ the wave loop and keep shared lifecycle rules here.
8
9
 
9
- - `sequential` — one implementation worker, parent orchestration, parent validation
10
- - `parallel` — wave-based execution with explicit worker orchestration
11
-
12
- Do not recreate wrapper skills for these modes. Keep the routing here and load only the needed mode reference.
13
-
14
- ## 1. Require an existing reviewed spec folder
10
+ ## 1. Require an existing agent-ready spec folder
15
11
 
16
12
  Execution must stay grounded in the first matching spec folder:
17
13
 
@@ -26,6 +22,9 @@ Required files:
26
22
 
27
23
  If `SPEC.md` is missing, stop and report the resolved path error.
28
24
 
25
+ Require `readiness: agent-ready`; no separate spec review or approval state is
26
+ needed.
27
+
29
28
  If `PLAN.md` is missing, stop and use `create-plan`. Do not auto-generate plans from this skill.
30
29
 
31
30
  ## 2. Resolve the target folder
@@ -93,11 +92,11 @@ Do not create the file when nothing durable must survive the run.
93
92
 
94
93
  ## 6. Shared execution invariants
95
94
 
96
- - Mode is manual. The chosen approach decides the execution path.
97
- - Do not switch modes mid-run unless the user explicitly redirects.
98
- - Default to `sequential` when the user does not choose a mode.
99
- - In `sequential`, keep implementation work inside exactly one worker; the parent coordinates, reviews, validates, and finalizes.
100
- - If worker execution is unavailable, stop and repair worker routing or report the blocker. Do not implement in the parent main thread.
95
+ - Require every planned task to declare dependencies, owned paths, validation gates, and a wave boundary.
96
+ - Build each wave from tasks whose dependencies are complete and whose write scopes are disjoint.
97
+ - Workers own implementation changes. The parent coordinates, reviews, validates, updates shared artifacts, and finalizes.
98
+ - A wave may contain one worker when dependencies or owned paths leave one task unblocked.
99
+ - Worker routing must be available before implementation begins; otherwise repair it or report the blocker.
101
100
  - Treat every `tdd_target` as required RED-first behavior, never optional guidance.
102
101
  - Treat `tdd_status`, `red_command`, `expected_red_failure`, `green_command`, `reason_not_testable`, `red_evidence`, and `green_evidence` as the task completion contract.
103
102
  - Treat `codebase_design_notes` as required design context for code-structure changes. Verify the implemented interface, seam, adapter strategy, and test surface match it, or update the notes with the real decision.
@@ -116,9 +115,9 @@ Do not create the file when nothing durable must survive the run.
116
115
  - Execution-time backlog sync may use comments, links, native status, and native relations.
117
116
  - Never rewrite epic or story bodies with task ids, TDD targets, validation commands, or file lists.
118
117
 
119
- ## 7. Shared upkeep after each completed unit
118
+ ## 7. Shared upkeep after each completed wave
120
119
 
121
- After each completed task or wave:
120
+ After each completed wave:
122
121
 
123
122
  - update `PLAN.md` status
124
123
  - append a concise execution log in `PLAN.md`
@@ -194,7 +193,6 @@ Rules:
194
193
  Before reporting back:
195
194
 
196
195
  - remove empty sections from `IMPLEMENTATION-NOTES.md`
197
- - ensure **Execution mode** reflects the mode actually used
198
196
  - ensure **Sanity checks** lists only commands actually run
199
197
  - ensure **UI Evidence Links** has durable before/after asset links for UI implementation changes, or an explicit reason no pair was possible
200
198
  - ensure **Runtime Validation Evidence** contains conclusive proof for every required task, or an exact blocker with the task and acceptance criterion still marked blocked
@@ -1,4 +1,4 @@
1
- # Parallel Orchestration
1
+ # Worker-Wave Orchestration
2
2
 
3
3
  Use this reference to run the full parallel orchestration loop inside `implement-spec`.
4
4
 
@@ -22,6 +22,8 @@ For each task, extract:
22
22
 
23
23
  - task id and task name
24
24
  - `depends_on`
25
+ - owned paths
26
+ - wave boundary
25
27
  - full content needed for execution:
26
28
  - location
27
29
  - description
@@ -47,11 +49,12 @@ If a task subset was requested:
47
49
 
48
50
  A task is unblocked only when all ids in its `depends_on` list are complete.
49
51
 
50
- For the current wave:
52
+ For the current recorded wave boundary:
51
53
 
52
54
  - collect every unblocked task
53
55
  - exclude already-complete tasks
54
56
  - exclude tasks blocked by failed prerequisites
57
+ - verify worker write scopes are disjoint
55
58
 
56
59
  Launch all unblocked tasks in parallel.
57
60
 
@@ -61,8 +64,8 @@ For each unblocked task:
61
64
 
62
65
  - choose the worker template from `.agents/subagents/manifest.mjs`
63
66
  - use the worker-brief contract from [parallel-worker-brief.md](parallel-worker-brief.md)
64
- - keep the task scope narrow
65
- - ensure the worker owns only the assigned task and its required validation
67
+ - assign the task's owned paths
68
+ - assign its validation gates
66
69
 
67
70
  ## Step 5: Review and validate the wave
68
71
 
@@ -1,4 +1,4 @@
1
- # Parallel Worker Brief
1
+ # Wave Worker Brief
2
2
 
3
3
  Use this reference when spawning a worker for one task in a parallel wave.
4
4
 
@@ -10,11 +10,13 @@ Every worker brief should include:
10
10
  - relevant goals or overview from the plan
11
11
  - task id and task name
12
12
  - task dependencies
13
+ - wave boundary
14
+ - owned paths
13
15
  - related tasks when they matter
14
16
  - file locations
15
17
  - full description
16
18
  - acceptance criteria
17
- - validation contract
19
+ - validation gates
18
20
  - `tdd_target`
19
21
  - `tdd_status`
20
22
  - `codebase_design_notes`
@@ -1,45 +1,19 @@
1
- # Parallel Execution
1
+ # Worker-Wave Execution
2
2
 
3
- Use this approach only when execution should fan out across independent tasks or waves.
3
+ Every `implement-spec` run executes through plan-derived worker waves.
4
4
 
5
- When `implement-spec` chooses `parallel` mode, this reference is the full contract for parallel execution.
5
+ ## Contract
6
6
 
7
- ## Parallel contract
8
-
9
- - **Mode:** `parallel`
10
- - **Worker policy:** spawn multiple workers only for currently unblocked independent work
7
+ - **Worker policy:** spawn multiple workers only for currently unblocked independent work with disjoint write scopes
11
8
  - **Execution board:** completed, in progress, unblocked next, blocked, current wave
9
+ - **Parent policy:** parse, dispatch, review, validate, update shared artifacts, and advance the graph
12
10
 
13
- ## Adoption rule
14
-
15
- In `parallel` mode, `implement-spec` must do all of the orchestration work itself.
16
-
17
- That includes:
18
-
19
- 1. parsing `PLAN.md`
20
- 2. extracting task ids, names, `depends_on`, locations, descriptions, acceptance criteria, validations, and related metadata
21
- 3. building the current wave from the unblocked tasks
22
- 4. spawning workers for that wave
23
- 5. reviewing worker results for correctness and completeness
24
- 6. updating plan logs and execution notes
25
- 7. repeating until all reachable tasks are complete or a real blocker remains
26
-
27
- Do not treat worker spawning as the whole job. Parallel mode adds multi-worker wave orchestration on top of the default parent validation responsibilities.
28
-
29
- ## Quick start
30
-
31
- 1. Load the shared lifecycle from `lifecycle.md`.
32
- 2. Record `parallel` under **Execution mode** in `IMPLEMENTATION-NOTES.md`.
33
- 3. Read `.agents/subagents/manifest.mjs` before the first spawn and choose explicit worker templates per task.
34
- 4. Read [parallel-orchestration.md](parallel-orchestration.md) and parse `PLAN.md` into a task graph.
35
- 5. Build the current wave from the unblocked tasks only.
36
- 6. Read [parallel-worker-brief.md](parallel-worker-brief.md) and use that contract when spawning workers.
37
- 7. Validate each wave before moving on. Fix failures before the next wave.
38
- 8. Update the plan, notes, and tech debt after every wave.
11
+ A wave may contain one worker when dependencies or owned paths leave one task
12
+ unblocked. Keep the wave boundary and parent validation.
39
13
 
40
14
  ## Required evidence
41
15
 
42
- - plan-derived wave selection
16
+ - plan-derived wave selection from dependencies, owned paths, validation gates, and wave boundaries
43
17
  - explicit worker briefs per task
44
18
  - post-wave review of worker outputs
45
19
  - acceptance-criteria coverage plus RED -> GREEN evidence, or explicit non-testable verification
@@ -53,4 +27,4 @@ Keep iterating wave by wave until:
53
27
  - all reachable tasks are complete, validated, and logged
54
28
  - or a real blocker remains and is reported honestly
55
29
 
56
- Do not quietly skip failed work. Retry or escalate instead.
30
+ Retry failed work or report the exact blocker before advancing.
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: wayfinder
3
- description: Route a foggy frontier into the next planning kind. Use when work is too unclear for requirements, too broad for one delivery session, or needs classification as fog, grilling, research, prototype, epic, or story before backlog writing.
3
+ description: Route a foggy decision frontier. Use when work is too unclear for requirements, too broad for one delivery session, or needs classification as fog, grilling, research, prototype, epic, or story.
4
4
  ---
5
5
 
6
6
  # Wayfinder
7
7
 
8
8
  Lean route-selection primitive for unclear work.
9
9
 
10
- `wayfinder` decides the next work kind. It does not write provider payloads, create specs, plan implementation, or own backlog schema. Use `write-backlog` when the route must become provider items.
10
+ `wayfinder` selects the next concept and route. It does not write provider
11
+ payloads, create specs, plan implementation, or own backlog schema.
11
12
 
12
13
  ## Route Selection
13
14
 
@@ -18,25 +19,27 @@ Lean route-selection primitive for unclear work.
18
19
  - Prefer provider backlog state when available.
19
20
  - Treat docs, specs, grill logs, and notes as evidence, not the living map.
20
21
 
21
- 3. Classify the next item kind.
22
- - `fog`: root-level uncertainty; no module or execution shape is clear yet.
22
+ 3. Classify the next item.
23
+ - `fog`: root-level uncertainty; no capability module or execution shape is clear yet.
23
24
  - `grilling`: a human decision must close ambiguity.
24
25
  - `research`: readonly investigation can answer the unknown.
25
26
  - `prototype`: learning requires an artifact or experiment.
26
- - `epic`: accepted implementation capability can anchor one future `SPEC.md`.
27
+ - `epic`: post-spec capability projection.
27
28
  - `story`: accepted product-facing slice belongs under an epic.
28
29
 
29
30
  4. Choose placement.
30
31
  - Keep `fog` at the backlog root.
31
- - For every non-fog kind, choose or propose a module/milestone first.
32
+ - For every non-fog item, choose or propose a capability module first.
32
33
  - Keep stories under epics.
34
+ - Execution milestones are separately blocker-derived chronology; they do
35
+ not determine capability placement.
33
36
 
34
37
  5. Return a route.
35
- - State the selected kind, placement, evidence, unresolved questions, and recommended next skill.
38
+ - State the selected concept, placement, evidence, unresolved questions, and recommended next skill.
36
39
 
37
40
  ## Completion Criteria
38
41
 
39
42
  - One route is selected.
40
- - The selected kind is one of `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
43
+ - The selected concept is one of `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
41
44
  - Provider materialization is explicitly delegated to `write-backlog` when backlog writes are needed.
42
45
  - The handoff says whether the next move is requirements, research, prototype, backlog writing, spec creation, or delivery.