@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
@@ -1,81 +1,72 @@
1
1
  ---
2
2
  name: write-backlog
3
- description: Materialize canonical backlog kinds into provider-native items. Use when structuring fog, grilling, research, prototype, epic, or story items from discovery, wayfinder routes, requirements-grill artifacts, accepted decisions, or Linear, GitHub Projects V2, Azure DevOps, or monday.com payload needs.
3
+ description: Materialize provider-native backlog items. Use for Finder-selected pre-spec intake or an agent-ready post-spec delivery projection in Linear, GitHub Projects V2, Azure DevOps, or monday.com.
4
4
  ---
5
5
 
6
6
  # Write Backlog
7
7
 
8
8
  ## Quick start
9
9
 
10
- 1. Before any provider materialization, read `.devpunks/settings.json` and resolve the destination from `backlogProvider` plus `backlogProjectUrl`.
11
- 2. If either setting is missing, or `backlogProjectUrl` is not an absolute HTTP(S) URL, stop and ask the operator to run `hi ensure`. Do not discover or guess a backlog destination.
12
- 3. Read [REFERENCE.md](REFERENCE.md) and [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md).
13
- 4. If `requirements-grill` artifacts exist, read `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md` first and `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` second.
14
- 5. If subagents are available and the source material is large, use `requirements-synthesizer` to compress accepted, rejected, superseded, parked, and unresolved decisions.
15
- 6. If subagents are available, use `backlog-shaper` for a draft module/epic/story hierarchy; keep final backlog judgment in the parent thread.
16
- 7. Derive the item kind first: `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
10
+ 1. Choose one branch: pre-spec intake creation; update-existing branch to claim, release, or resolve a decision ticket; or delivery projection, which may create `epic` or `story` and requires an authoritative `SPEC.md` with `readiness: agent-ready` at a verified stable blob URL before any provider mutation.
11
+ 2. Read `.devpunks/settings.json` and resolve the destination from `backlogProvider` plus `backlogProjectUrl`.
12
+ 3. If either setting is missing, or `backlogProjectUrl` is not an absolute HTTP(S) URL, stop and ask the operator to run `hi ensure`. Do not discover or guess a backlog destination.
13
+ 4. Read [REFERENCE.md](REFERENCE.md) and [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md).
14
+ 5. For intake, validate the complete intake dependency graph for missing targets, self-edges, and cycles before mutation; then materialize only the Finder-supplied description or question, route, dependencies, and claim state.
15
+ 6. For delivery, use `backlog-shaper` only to draft the epic/story projection; keep final judgment in the parent thread.
16
+ 7. Classify each item directly as `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
17
17
  8. Place `fog` at the backlog root; place concrete `grilling`, `research`, `prototype`, `epic`, and `story` items in a capability module. Keep capability grouping separate from execution milestones.
18
- 9. Preserve delivery semantics: epics anchor future `SPEC.md`; stories remain product-facing children of epics.
19
- 10. Apply the item-count rule before finalizing implementation epics/stories.
20
- 11. Make story ordering explicit with native dependency primitives when the provider supports them. Derive chronological execution milestones from those dependencies using the order contract in the backlog model.
21
- 12. Keep all item bodies product-facing and appropriate to their kind.
22
- 13. When approved design/prototype artifacts are source material, preserve approved artifact context and durable links in the relevant backlog items.
23
- 14. For visual assets, use `repo-asset-management`: prefer backlog attachments first, then repo-provider fallback links when attachments are unavailable or unsuitable.
24
- 15. Read the matching provider payload asset before generating or syncing create payloads.
25
- 16. Stop after the backlog structure and create payload guidance are complete.
18
+ 9. Project one capability-boundary epic from the existing `SPEC.md`; derive product-facing stories from its `US-###` and `AC-###` records.
19
+ 10. Prove complete `US-###` / `AC-###` traceability and that each story is an agent-sized vertical tracer bullet.
20
+ 11. Resolve every blocker target. Reject missing targets, self-blockers, and cycles, then derive chronological milestones from the blocker DAG.
21
+ 12. Read the matching provider asset and validate the complete projection before the first provider write.
22
+ 13. If any readiness check fails, stop with zero provider mutations and name every failure.
23
+ 14. Once validation passes, write immediately without a separate approval stop.
24
+ 15. Resolve pre-spec intake items through the provider adapter with an immutable resolution pointer to the spec; never silently promote one into the delivery epic.
25
+ 16. Return created ids and URLs to `delivery-phase`; concrete planning remains downstream in `create-plan`.
26
26
 
27
27
  ## Item-count rule
28
28
 
29
- Within durable capability modules, produce the fewest epics and stories that preserve all accepted requirements. Split only when merging would lose a distinct product outcome, acceptance signal, dependency, provider boundary, or future `SPEC.md` boundary; otherwise fold requirements into the existing item body as scope, constraints, or acceptance signals.
29
+ Within durable capability modules, produce the fewest epics and stories that preserve all accepted requirements. Split only when merging would lose a distinct product outcome, acceptance signal, dependency, or provider boundary; otherwise fold requirements into the existing item body as scope, constraints, or acceptance signals.
30
30
 
31
- ## Kind taxonomy
31
+ ## Direct taxonomy
32
32
 
33
- Every supported kind is a first-class provider backlog item that is visible, assignable, searchable, linkable, and closeable.
33
+ Every supported concept is a first-class provider backlog item that is visible, assignable, searchable, linkable, and closeable.
34
34
 
35
35
  - `fog`: root-level uncertainty; not delivery-eligible, not a `SPEC.md` anchor, and not an execution container.
36
36
  - `grilling`: capability-module-scoped human decision work.
37
37
  - `research`: capability-module-scoped readonly fact-finding.
38
38
  - `prototype`: capability-module-scoped artifact or experiment learning.
39
- - `epic`: capability-module-scoped accepted implementation capability; anchors one future `SPEC.md`.
39
+ - `epic`: capability-module-scoped projection of one authoritative `SPEC.md`.
40
40
  - `story`: product-facing accepted implementation slice under one epic.
41
41
 
42
- `grilling`, `research`, and `prototype` close with an accepted decision note naming the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
42
+ `grilling`, `research`, and `prototype` close with the answer or verdict, artifacts or evidence, observations, open decisions, and resolution pointer. Evidence returns to Wayfinder for reconciliation; closure does not authorize delivery.
43
43
 
44
44
  ## Workflows
45
45
 
46
- ### From a large requirements discussion
47
-
48
- 1. Normalize the input into durable capability modules.
49
- 2. Store capability grouping separately from chronological execution milestones.
50
- 3. Create learning or uncertainty items when scope is not yet accepted.
51
- 4. Create epic/capability items only when implementation scope is accepted enough to map to one future `SPEC.md`.
52
- 5. Break each epic into independently observable child stories.
53
- 6. Add native blockers between stories when order matters, then derive chronological milestones from the blocker DAG.
54
-
55
- ### From `requirements-grill` artifacts
56
-
57
- 1. Read `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md` first.
58
- 2. Read `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` second.
59
- 3. Use the status file to identify:
60
- - active branches
61
- - branch completion
62
- - locked direction
63
- - still-open items
64
- - parked branches
65
- 4. Use the log to extract:
66
- - accepted decisions
67
- - superseded decisions
68
- - canonical terms
69
- - branch closure notes
70
- 5. Derive backlog only from locked direction and accepted decisions.
71
- 6. Treat parked branches and still-open items as explicit backlog notes or deferred follow-up, not silently resolved scope.
72
-
73
- ### From an existing messy backlog
74
-
75
- 1. Read the current hierarchy and item bodies first.
76
- 2. Collapse technical chores back into product-facing stories when possible.
77
- 3. Rebuild root fog plus capability module -> concrete item structure, then recompute chronological milestones from native blockers.
78
- 4. Keep execution detail out of backlog bodies.
46
+ ### Pre-spec intake
47
+
48
+ 1. Accept a Finder-selected direct classification: `fog`, `grilling`, `research`, or `prototype`.
49
+ 2. For `fog`, preserve the frontier or uncertainty description. For `grilling`,
50
+ `research`, or `prototype`, preserve the precise question. Also preserve the
51
+ capability module when known, dependencies, claim state, and map link.
52
+ 3. Validate the complete intake dependency graph for missing targets, self-edges, and cycles before the first provider write.
53
+ 4. Create exactly the requested intake item. Do not create an epic or story.
54
+ 5. Return the immutable provider id and URL to Finder.
55
+
56
+ ### Agent-ready delivery projection
57
+
58
+ 1. Read the authoritative spec, never raw grill artifacts as a substitute.
59
+ 2. Project one epic and the fewest traceable vertical stories.
60
+ 3. Validate the complete projection and blocker graph before mutation.
61
+ 4. Write immediately when valid, then resolve any named intake item with the immutable spec link.
62
+
63
+ ### Update-existing decision ticket
64
+
65
+ 1. Require the provider id or URL plus the expected current claim state.
66
+ 2. Read the existing item before mutation; fail on a conflicting claimant or stale state.
67
+ 3. Use the matching provider adapter to claim, release, or resolve it.
68
+ 4. Resolution requires an immutable resolution pointer and terminal outcome; claim/release changes only ownership state.
69
+ 5. Return the updated id, URL, and observed state to Finder for reconciliation.
79
70
 
80
71
  ### Provider payload selection
81
72
 
@@ -100,4 +91,4 @@ Every supported kind is a first-class provider backlog item that is visible, ass
100
91
  - Backlog model and body ownership: see [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md)
101
92
  - Epic/story body shape: see [assets/concepts/story-shape.md](assets/concepts/story-shape.md)
102
93
  - Provider create payloads: see [assets/providers/](assets/providers/)
103
- - `requirements-grill` artifact ingestion: see [REFERENCE.md](REFERENCE.md)
94
+ - Intake and post-spec delivery branches: see [REFERENCE.md](REFERENCE.md)
@@ -16,140 +16,54 @@ Execution milestones
16
16
  M1 -> M2 -> M3 ...
17
17
  ```
18
18
 
19
- Provider mapping:
19
+ The direct concepts are `fog`, `grilling`, `research`, `prototype`, `epic`, and `story`. Each is visible, assignable, searchable, linkable, and closeable. A provider adapter may represent them with native issue types, fields, labels, columns, or a stable title convention; no shared classification field is required. If no representation preserves the direct concept, preflight fails.
20
20
 
21
- - kind -> provider-native single-value kind storage where available
22
- - fog -> root-level first-class backlog item
23
- - capability module -> durable capability grouping, stored separately from execution milestones
24
- - milestone -> chronological execution wave derived from native blockers
25
- - grilling -> capability-module-scoped first-class decision item
26
- - research -> capability-module-scoped first-class investigation item
27
- - prototype -> capability-module-scoped first-class learning item
28
- - epic -> capability-module-scoped parent issue / capability item
29
- - story -> child issue / sub-issue / child work item under an epic
21
+ ## Placement
30
22
 
31
- Every supported kind must be visible, assignable, searchable, linkable, and closeable in the target provider.
23
+ - `fog`: root-level uncertainty, never delivery scope or a parent container
24
+ - `grilling`: capability-scoped human decision work
25
+ - `research`: capability-scoped readonly evidence work
26
+ - `prototype`: capability-scoped experiment work
27
+ - `epic`: one capability-boundary projection of an authoritative agent-ready spec
28
+ - `story`: product-facing child tracer bullet derived from spec stories and criteria
32
29
 
33
- ## Kind contract
30
+ Each capability module groups durable product ownership. It stays separate from every execution milestone and does not determine implementation order.
34
31
 
35
- `kind` values:
32
+ ## Traceability and story readiness
36
33
 
37
- - `fog`
38
- - `grilling`
39
- - `research`
40
- - `prototype`
41
- - `epic`
42
- - `story`
34
+ Every projected story names its source `US-###` records and covered `AC-###` records. Before mutation, prove:
43
35
 
44
- `kind` is separate from:
36
+ - every spec story is represented
37
+ - every criterion maps to an existing story
38
+ - every criterion is covered by at least one projected story
39
+ - every projected story has a demonstrable end-to-end outcome
40
+ - each story is small enough for one prepared agent session
45
41
 
46
- - workflow state
47
- - capability-module grouping
48
- - execution-milestone assignment
49
- - parent/child hierarchy
50
- - provider issue type, unless the provider requires that type for structure
42
+ Do not create layer stories such as database, API, frontend, tests, or wiring. Fold those concerns into a vertical story or leave them for concrete planning.
51
43
 
52
- Labels and tags may mirror `kind`, but they are not canonical when a provider-native field exists.
44
+ ## Blocker graph
53
45
 
54
- ## Fog contract
46
+ Use native `blockedBy` / `blocks` relations where available.
55
47
 
56
- One fog item:
48
+ Before mutation:
57
49
 
58
- - lives at the backlog root
59
- - tracks a real but not-yet-sharp area of uncertainty
60
- - anticipates future modules, tickets, epics, and stories
50
+ 1. Resolve every blocker identifier to a projected story.
51
+ 2. Reject missing targets and self-blockers.
52
+ 3. Detect and reject cycles across the complete selected graph.
53
+ 4. Assign dependency-free stories to `M1`.
54
+ 5. Assign every other story to `M(1 + max(milestone of each blocker))`.
55
+ 6. Verify every blocker is in a strictly earlier milestone.
61
56
 
62
- One fog item must not:
57
+ Items in the same wave may proceed in parallel across capability modules. Recompute milestones whenever blockers change.
63
58
 
64
- - be delivery-eligible
65
- - be a `SPEC.md` anchor
66
- - become an execution container
67
- - own child tickets by default
59
+ ## Mutation boundary
68
60
 
69
- Sharpening fog first chooses or creates a capability module, then creates concrete non-fog items there.
61
+ Validate the full agent-ready projection, graph, provider destination, hierarchy support, and dependency representation before the first provider write. A failed validation writes nothing. After validation, write immediately without an approval checkpoint.
70
62
 
71
- ## Learning item contract
63
+ Provider execution can still fail mid-sequence. Report every created identifier and the failure honestly; never describe a multi-request provider as transactionally atomic.
72
64
 
73
- `grilling`, `research`, and `prototype` items:
65
+ ## Intake and downstream handoff
74
66
 
75
- - live under a capability module
76
- - represent decision, investigation, or artifact-learning work
77
- - close before implementation scope changes
67
+ Resolve any pre-spec intake item with the immutable spec link and accepted outcome. Preserve it as history; do not silently promote it into the delivery epic.
78
68
 
79
- Closure notes include:
80
-
81
- - answer
82
- - accepted direction
83
- - artifacts or evidence
84
- - created or updated epics/stories
85
-
86
- ## Ownership boundaries
87
-
88
- - backlog owns product-facing coordination
89
- - `SPEC.md` owns the full problem-space contract for one epic
90
- - `PLAN.md` owns execution decomposition
91
-
92
- ## Epic contract
93
-
94
- One epic:
95
-
96
- - maps to one future `SPEC.md`
97
- - groups the stories that share one coherent capability boundary
98
- - can include cross-story scope and constraints
99
-
100
- One epic must not:
101
-
102
- - become an execution board
103
- - duplicate the whole future `PLAN.md`
104
- - be reduced to a pure label/container with no capability meaning
105
- - absorb unresolved grilling, research, or prototype work as if it were accepted scope
106
-
107
- ## Story contract
108
-
109
- One story:
110
-
111
- - is independently observable
112
- - describes one user-visible slice or system behavior slice
113
- - stays product-facing
114
- - can be ordered relative to other stories with native blockers
115
-
116
- One story must not:
117
-
118
- - become a plan task
119
- - carry TDD or file-level detail
120
- - be phrased as a technical chore
121
-
122
- ## Order contract
123
-
124
- Use native provider relations for ordering when available.
125
-
126
- Preferred primitives:
127
-
128
- - `blockedBy`
129
- - `blocks`
130
- - native parent/child
131
-
132
- Do not encode story order only in prose when the provider can store it natively.
133
-
134
- Capability modules and execution milestones are independent. Modules are durable capability groups. Milestones are chronological execution waves and must be recomputed from native blocker relations. Capability membership, parent/child hierarchy, and existing milestone assignment do not create dependency edges or determine milestone assignment.
135
-
136
- Milestone-eligible items are selected concrete non-fog work: `grilling`, `research`, `prototype`, `epic`, and `story`. Fog has no execution milestone until sharpening produces concrete items. Capability-module metadata is grouping, not an execution item.
137
-
138
- Before materialization:
139
-
140
- 1. Build one directed edge from each blocker to the item it blocks across the full selected milestone-eligible scope.
141
- 2. Stop materialization on a missing blocker target or cycle.
142
- 3. Assign every selected milestone-eligible item with no blockers to `M1`.
143
- 4. Assign every other selected milestone-eligible item to `M(1 + max(milestone number of each blocker))`.
144
- 5. Validate every blocker is in a strictly earlier milestone than the item it blocks.
145
-
146
- Items with the same derived number can proceed in parallel and share a milestone, including items from different capability modules. One capability module can span multiple milestones. Native `blockedBy` / `blocks` relations remain authoritative; recompute milestone assignment and numbering whenever those relations change.
147
-
148
- ## `create-spec` reading contract
149
-
150
- When `create-spec` reads backlog items:
151
-
152
- - the parent epic is the spec anchor
153
- - all child stories under that epic are source material
154
- - the resulting `SPEC.md` must include the combined scope of those stories
155
- - no child story requirement should remain only in the backlog and not appear in the spec
69
+ The delivery epic and stories link back to `SPEC.md`. Concrete files, commands, tests, worker assignments, and execution order belong later in `delivery-phase` / `create-plan`.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Shared rules
4
4
 
5
- Keep every backlog item body product-facing and kind-appropriate.
5
+ Keep every backlog item body product-facing and appropriate to its direct classification.
6
6
 
7
7
  All bodies may include durable source links, accepted evidence, and closure notes. Do not include execution plans, file-level implementation notes, or validation commands.
8
8
 
@@ -27,7 +27,7 @@ Recommended sections:
27
27
 
28
28
  ## Next Route
29
29
 
30
- - `grilling` | `research` | `prototype` | `epic`
30
+ - `grilling` | `research` | `prototype` | Finder reconciliation
31
31
  ```
32
32
 
33
33
  Fog bodies must not define child tickets or delivery scope.
@@ -52,9 +52,10 @@ Recommended sections:
52
52
  ## Closure
53
53
 
54
54
  Answer:
55
- Accepted direction:
56
55
  Artifacts:
57
- Created or updated implementation items:
56
+ Observations:
57
+ Open decisions:
58
+ Resolution pointer:
58
59
  ```
59
60
 
60
61
  ## Research body
@@ -78,8 +79,9 @@ Recommended sections:
78
79
 
79
80
  Answer:
80
81
  Evidence:
81
- Accepted direction:
82
- Created or updated implementation items:
82
+ Observations:
83
+ Open decisions:
84
+ Resolution pointer:
83
85
  ```
84
86
 
85
87
  ## Prototype body
@@ -102,8 +104,9 @@ Recommended sections:
102
104
  ## Closure
103
105
 
104
106
  Artifacts:
105
- Accepted direction:
106
- Created or updated implementation items:
107
+ Observations:
108
+ Open decisions:
109
+ Resolution pointer:
107
110
  ```
108
111
 
109
112
  ## Epic body
@@ -125,9 +128,9 @@ Recommended sections:
125
128
 
126
129
  - ...
127
130
 
128
- ## Links
131
+ ## Authority
129
132
 
130
- - `SPEC.md` once it exists
133
+ - Immutable spec: ...
131
134
  ```
132
135
 
133
136
  Epic bodies may summarize the capability boundary, but should not re-copy every child story verbatim once the child stories exist.
@@ -143,10 +146,17 @@ Recommended sections:
143
146
 
144
147
  [What this story enables]
145
148
 
146
- ## Acceptance signals
149
+ ## Source stories
150
+
151
+ - `US-###`
152
+
153
+ ## Acceptance criteria
154
+
155
+ - `AC-###`
156
+
157
+ ## Demonstration
147
158
 
148
- - [ ] ...
149
- - [ ] ...
159
+ [One end-to-end observable result]
150
160
 
151
161
  ## Non-goals
152
162
 
@@ -155,7 +165,7 @@ Recommended sections:
155
165
  ## Links
156
166
 
157
167
  - Parent epic
158
- - `SPEC.md` once it exists and matters
168
+ - Immutable spec
159
169
  ```
160
170
 
161
171
  ## Body anti-patterns
@@ -13,10 +13,20 @@ Official source:
13
13
  - `Content-Type: application/json-patch+json`
14
14
  - `Authorization: Bearer <TOKEN>`
15
15
 
16
+ ## Preflight before creation
17
+
18
+ Before creating any item, build the complete in-memory projection. Resolve every dependency target, reject missing targets, self-edges, and cycles, derive and verify every milestone, and prove the configured hierarchy, classification, and dependency representation is representable in Azure DevOps. A failed preflight writes nothing.
19
+
16
20
  ## Raw request body
17
21
 
18
22
  Azure DevOps creates work items with a JSON Patch document.
19
23
 
24
+ ## Update existing decision tickets
25
+
26
+ Use a JSON Patch update against the existing work-item URL for claim, release, and resolve after reading its revision, assignee, and state and rejecting a conflicting claim. Include a revision `test` operation when supported. Resolution sets the configured terminal state and records the immutable resolution pointer in history or description. Return the updated work-item id and URL to Finder.
27
+
28
+ The example includes `Custom.DevpunksKind` only to show an explicitly configured adapter field. Omit that operation when the project configuration does not name such a field.
29
+
20
30
  ```json
21
31
  [
22
32
  {
@@ -63,9 +73,13 @@ Azure DevOps creates work items with a JSON Patch document.
63
73
  - `/fields/System.IterationPath`
64
74
  - `/fields/Custom.DevpunksKind`
65
75
 
66
- ## Kind storage
76
+ ## Provider classification
77
+
78
+ Classification examples assume explicit configuration.
67
79
 
68
- Canonical `kind` storage is a custom picklist field such as `Custom.DevpunksKind`.
80
+ Inspect configured provider metadata before choosing a representation. An adapter-specific custom picklist field such as `Custom.DevpunksKind` may represent the direct backlog concepts.
81
+
82
+ Only when explicitly configured to use that field, include it in JSON Patch payloads. If it is absent, record a setup blocker; do not create custom fields by default.
69
83
 
70
84
  Allowed values:
71
85
 
@@ -76,7 +90,37 @@ Allowed values:
76
90
  - `epic`
77
91
  - `story`
78
92
 
79
- Use Work Item Type for provider structure, not canonical Harness kind. Tags may mirror kind for search compatibility, but `Custom.DevpunksKind` is the source when it exists.
93
+ Use Work Item Type for provider structure. A configured custom field or tags may represent classification for this adapter; neither is required by the shared model.
94
+
95
+ Fallback order:
96
+
97
+ 1. configured custom field
98
+ 2. existing Work Item Type or tag that exactly preserves the direct concept
99
+ 3. stable title prefix such as `[story]`
100
+
101
+ If process policy permits none of these, fail preflight. Do not create custom fields or tags implicitly.
102
+
103
+ ## Delivery body contracts
104
+
105
+ Epic body ownership:
106
+
107
+ - outcome
108
+ - scope and cross-story constraints
109
+ - child story list
110
+ - immutable spec link
111
+ - accepted artifact links when relevant
112
+
113
+ Story body ownership:
114
+
115
+ - outcome
116
+ - source `US-###`
117
+ - covered `AC-###`
118
+ - demonstration
119
+ - non-goals and dependencies
120
+ - immutable spec link
121
+ - accepted artifact links
122
+
123
+ Render these sections in `System.Description`; do not substitute a mutable local spec path.
80
124
 
81
125
  ## Repo mapping
82
126
 
@@ -99,13 +143,11 @@ Do not encode execution waves in Area Path. One area can span multiple iteration
99
143
 
100
144
  Use `/fields/System.IterationPath` for chronological `M1`, `M2`, and later execution waves only when the project has matching iteration nodes. Derive assignments from native Predecessor links:
101
145
 
102
- 1. Create selected concrete non-fog work items and parent/child hierarchy without an execution iteration.
103
- 2. Add each blocker as a Predecessor relation on the blocked item using `System.LinkTypes.Dependency-Reverse`.
104
- 3. Stop on a missing blocker target or dependency cycle.
105
- 4. Assign blocker-free work items to `M1`.
106
- 5. Assign every other work item to `M(1 + max(iteration number of each predecessor))`.
107
- 6. Create or resolve the matching iteration nodes and patch `/fields/System.IterationPath` on every selected milestone-eligible work item.
108
- 7. Verify every predecessor is in a strictly earlier iteration.
146
+ 1. In memory, resolve the complete selected graph and reject missing targets, self-edges, or cycles.
147
+ 2. Derive blocker-free work items as `M1`; derive every other item as `M(1 + max(iteration number of each predecessor))`.
148
+ 3. Verify every predecessor is in a strictly earlier iteration and that Azure DevOps can represent the complete hierarchy and graph.
149
+ 4. Only after preflight passes, create work items, map planned keys to provider ids, and add each blocker with `System.LinkTypes.Dependency-Reverse`.
150
+ 5. Create or resolve the verified iteration nodes and patch `/fields/System.IterationPath` on every selected milestone-eligible item.
109
151
 
110
152
  Capability Area Path, parent/child hierarchy, and current Iteration Path never create dependency edges. Recompute iteration assignment whenever Predecessor relations change.
111
153
 
@@ -125,5 +167,5 @@ Apply the derived iteration with a follow-up JSON Patch operation:
125
167
 
126
168
  - Azure DevOps create requests are process-dependent. The exact work item type names available in `{type}` depend on the project template and process.
127
169
  - This asset documents the raw create payload shape, not a universal field catalog for every process.
128
- - If `Custom.DevpunksKind` does not exist, create a project/process custom picklist field before backlog sync or record the provider setup blocker.
170
+ - If an explicitly configured custom field does not exist, record the provider setup blocker. Do not create it by default.
129
171
  - Parent/child and dependency relations require relation operations or follow-up requests. Keep those separate from the minimal create-only body, then derive Iteration Path only after the dependency graph is complete.