@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
@@ -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.
@@ -5,7 +5,7 @@ description: Requirements grilling with durable branch artifacts, glossary/axiom
5
5
 
6
6
  # Requirements Grill
7
7
 
8
- Use this skill to turn uncertain product, architecture, or implementation ideas into pinned requirements, canonical glossary, and domain axioms that can feed backlog/user-story creation.
8
+ Use this skill to turn uncertain product, architecture, or implementation ideas into pinned requirements, canonical glossary, and domain axioms that `create-spec` can compile after closure.
9
9
 
10
10
  This skill blends the shared `$grilling` primitive with durable artifacts. Use `$grilling` for live interview behavior; use `requirements-grill` when the result must survive as routed grill log/status/wiki knowledge.
11
11
 
@@ -25,7 +25,7 @@ Both workflows can happen in one long session, but keep the responsibilities dis
25
25
 
26
26
  - `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` and `<topic>-grill-status.md` are the detailed requirements and glossary record
27
27
  - other routed `<wiki-root>/content/docs/project/` pages are the synthesized project knowledge surface
28
- - backlog/user-story creation is the next phase after the grill gate, outside this skill's scope
28
+ - closed shared understanding routes to `create-spec`; backlog projection is later and outside this skill's scope
29
29
 
30
30
  ## Core Behavior
31
31
 
@@ -41,4 +41,4 @@ Both workflows can happen in one long session, but keep the responsibilities dis
41
41
 
42
42
  At the end, report branch percentages, parked branches, remaining non-design validation work, and the recommended next planning direction.
43
43
 
44
- After `$grilling` completes, say the requirements grill is done and give the likely next direction, usually backlog/user-story creation.
44
+ After `$grilling` completes with shared understanding and all branches closed or explicitly parked, hand the durable grill artifacts to `create-spec`. If the frontier remains open, return to Wayfinder instead of implying backlog readiness.
@@ -1,89 +1,41 @@
1
1
  # Write Backlog Examples
2
2
 
3
- ## From wayfinder route to backlog
4
-
5
- Input route:
6
-
7
- > Loose idea: partner onboarding is important, but the module boundary and first implementation capability are still foggy.
8
-
9
- Output shape:
10
-
11
- - Root item: `fog` — `Clarify partner onboarding frontier`
12
- - Later module / milestone: `Partner onboarding`
13
- - Learning items:
14
- - `grilling` — `Choose partner invitation authority model`
15
- - `research` — `Inspect existing auth and access control seams`
16
- - `prototype` — `Validate invitation review screen shape`
17
- - Accepted implementation item:
18
- - `epic` — `Partner invitation lifecycle`
19
- - `story` — `Operator invites a partner contact`
20
-
21
- Closure rule:
22
-
23
- - Close `grilling`, `research`, and `prototype` with answer, accepted direction, artifacts or evidence, and created or updated epics/stories before delivery starts.
24
-
25
- ## From discussion to backlog
3
+ ## Agent-ready spec projection
26
4
 
27
5
  Input:
28
6
 
29
- > We need a workflow module for intake and review. Coordinators should capture submissions, reviewers should assess and route them, reassignment should preserve context, and archived records must remain visible for auditing.
30
-
31
- Output shape:
32
-
33
- - Module / milestone: `Intake and review`
34
- - Epic: `Submission lifecycle management`
35
- - Stories:
36
- - Coordinator creates a new submission from external intake
37
- - Reviewer updates notes and attached evidence
38
- - Reviewer views the full submission timeline
39
- - Lead reassigns ownership to another reviewer
40
- - Lead manages unassigned submissions
41
- - Lead imports historical submissions
42
- - System marks submissions unassigned when a reviewer is deactivated
43
-
44
- Native order:
45
-
46
- - `Lead manages unassigned submissions` is blocked by:
47
- - `Lead reassigns ownership to another reviewer`
48
- - `Lead imports historical submissions`
49
- - `System marks submissions unassigned when a reviewer is deactivated`
50
-
51
- ## From `requirements-grill` artifacts to backlog
52
-
53
- Input artifacts:
54
-
55
- - `docs/submission-lifecycle-grill-status.md`
56
- - `docs/submission-lifecycle-grill-log.md`
7
+ ```yaml
8
+ readiness: agent-ready
9
+ ```
57
10
 
58
- Read status first:
11
+ - immutable spec link: `<repository-url>/blob/<commit>/SPEC.md`
12
+ - `US-001`: Team lead restores ownership of an unassigned submission.
13
+ - `AC-001` — `Covers: US-001`: Reassignment preserves notes and evidence.
14
+ - `AC-002` — `Covers: US-001`: The new owner sees the submission in their queue.
59
15
 
60
- - branch `ownership-transfer` = `100%`
61
- - branch `unassigned-queue` = `100%`
62
- - branch `historical-import` = `100%`
63
- - branch `deactivation-handling` = `100%`
64
- - recommended next direction = backlog/user-story creation
16
+ Output:
65
17
 
66
- Read log second:
18
+ - capability module: `Intake and review`
19
+ - epic: `Submission lifecycle management`, linked to the immutable spec
20
+ - story: `Lead restores ownership of an unassigned submission`
21
+ - source: `US-001`
22
+ - covers: `AC-001`, `AC-002`
23
+ - demonstration: reassign one unassigned submission and observe preserved evidence plus the new owner's queue
67
24
 
68
- - accepted decisions define ownership visibility, unassigned handling, and import behavior
69
- - superseded decisions are ignored in favor of the latest locked answer
25
+ This is a vertical tracer bullet: one agent can deliver and demonstrate the product outcome without splitting database, API, UI, and tests into separate backlog stories.
70
26
 
71
- Output shape:
27
+ ## Blocker graph
72
28
 
73
- - Module / milestone: `Intake and review`
74
- - Epic: `Submission lifecycle management`
75
- - Stories:
76
- - Lead reassigns ownership to another reviewer
77
- - Lead manages unassigned submissions
78
- - Lead imports historical submissions
79
- - System marks submissions unassigned when a reviewer is deactivated
29
+ - `US-002 / Lead manages the unassigned queue` is blocked by `US-001 / Lead restores ownership`.
30
+ - Both targets exist and the graph is acyclic.
31
+ - `US-001` is assigned `M1`; `US-002` is assigned `M2`.
80
32
 
81
- ## Story-shape reminder
33
+ If a blocker target is missing or the graph cycles, write nothing.
82
34
 
83
- Good story:
35
+ ## Pre-spec intake resolution
84
36
 
85
- `As a team lead, I want to view and manage unassigned submissions so I can restore ownership quickly without losing context`
37
+ An earlier `prototype` item established the review-screen direction. Resolve that intake item with its verdict plus the immutable spec link. Create a separate epic projection. Do not relabel or silently promote the prototype item into the epic.
86
38
 
87
- Bad story:
39
+ ## Invalid input
88
40
 
89
- `Add queue table and reassignment mutation`
41
+ If readiness is absent, `AC-001` lacks `Covers: US-###`, a story is not demonstrable, or provider hierarchy cannot represent the required projection, return every gap before any mutation.