@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
@@ -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.
@@ -9,6 +9,10 @@ Official sources:
9
9
  - Project fields: [docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields)
10
10
  - Issue dependencies: [docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-issue-dependencies](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-issue-dependencies)
11
11
 
12
+ ## Preflight before creation
13
+
14
+ 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 GitHub. A failed preflight writes nothing.
15
+
12
16
  ## Intent
13
17
 
14
18
  Use GitHub Projects V2 and GitHub Issues together.
@@ -23,6 +27,10 @@ Canonical mapping:
23
27
 
24
28
  Do not use an issues-only path for GitHub backlog sync when Projects V2 is available.
25
29
 
30
+ ## Update existing decision tickets
31
+
32
+ Use the GraphQL `updateIssue` mutation or REST issue update for claim, release, and resolve after reading the current assignees/state and rejecting a conflicting claim. Use only configured Project fields. Resolution closes the issue and records the immutable resolution pointer in the body or a durable comment. Return the updated issue id and URL to Finder.
33
+
26
34
  ## Required bootstrap
27
35
 
28
36
  Resolve these IDs before creating backlog items:
@@ -49,17 +57,21 @@ mutation CreateBacklogProject($ownerId: ID!, $repositoryId: ID!, $title: String!
49
57
  }
50
58
  ```
51
59
 
52
- Expected Project fields:
60
+ Configured Project fields may include:
53
61
 
54
62
  - `Kind`: Project custom single-select field named `Kind` with values `fog`, `grilling`, `research`, `prototype`, `epic`, `story`
55
63
  - `Capability module`: Project custom single-select field with one option per durable product capability
56
64
  - `Epic`: text, storing the epic issue number/title for story rows
57
65
 
58
- Create missing fields with `createProjectV2Field`; set values with `updateProjectV2ItemFieldValue`.
66
+ Use `updateProjectV2ItemFieldValue` only for fields named by the project configuration. A missing configured field is a setup blocker; do not bootstrap classification fields implicitly.
67
+
68
+ ## Provider classification
69
+
70
+ Classification examples assume explicit configuration.
59
71
 
60
- ## Kind storage
72
+ Inspect configured provider metadata before choosing a representation. An adapter-specific Project custom single-select field named `Kind` may represent the direct backlog concepts.
61
73
 
62
- Canonical `kind` storage is the Project custom single-select field named `Kind`.
74
+ Only when explicitly configured to use that field, resolve it and its matching option. If it is absent, record a setup blocker; do not create classification fields or options by default.
63
75
 
64
76
  Allowed values:
65
77
 
@@ -70,7 +82,15 @@ Allowed values:
70
82
  - `epic`
71
83
  - `story`
72
84
 
73
- Avoid GitHub Issue Type as the default kind storage. Issue types are organization-level and better for broad org taxonomy. Labels may mirror kind for compatibility, but `Kind` is canonical when the Project field exists.
85
+ Prefer the configured Project field when it exists. Issue types are organization-level and may instead be the workspace's chosen adapter representation. No particular field is required across providers.
86
+
87
+ Fallback order:
88
+
89
+ 1. configured Project field
90
+ 2. existing GitHub Issue Type or label that exactly preserves the direct concept
91
+ 3. stable title prefix such as `[story]`
92
+
93
+ If repository policy permits none of these, fail preflight. Do not create classification fields, types, or labels implicitly.
74
94
 
75
95
  ## Capability grouping
76
96
 
@@ -82,13 +102,11 @@ Fog leaves `Capability module` empty until sharpening selects a module. Every se
82
102
 
83
103
  Use repository milestones named `M1`, `M2`, and so on only for dependency-derived execution waves. Do not create one repository milestone per capability module.
84
104
 
85
- 1. Create selected concrete non-fog issues without a milestone.
86
- 2. Add every native blocker with `addBlockedBy`.
87
- 3. Stop on a missing blocker target or dependency cycle.
88
- 4. Assign blocker-free issues to `M1`.
89
- 5. Assign every other issue to `M(1 + max(milestone number of each blocker))`.
90
- 6. Create or reuse the derived repository milestones and assign exactly one to each selected milestone-eligible issue.
91
- 7. Verify every blocker belongs to a strictly earlier milestone.
105
+ 1. In memory, resolve the complete selected graph and reject missing targets, self-edges, or cycles.
106
+ 2. Derive blocker-free issues as `M1`; derive every other issue as `M(1 + max(milestone number of each blocker))`.
107
+ 3. Verify every blocker belongs to a strictly earlier milestone and that GitHub can represent the complete hierarchy and graph.
108
+ 4. Only after preflight passes, create issues, map planned keys to provider ids, add every native blocker with `addBlockedBy`, and create or reuse milestones.
109
+ 5. Assign exactly one verified milestone to each selected milestone-eligible issue.
92
110
 
93
111
  Issues from different capability modules can share one milestone, and one capability module can span multiple milestones. Recompute milestone assignment whenever native dependencies change.
94
112
 
@@ -142,7 +160,7 @@ After creation, set Project fields:
142
160
  - `Kind = grilling`, `Kind = research`, or `Kind = prototype`
143
161
  - `Capability module = <module title>`
144
162
 
145
- Closure notes for these issues must name the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
163
+ Closure notes for these issues record the answer or verdict, evidence, observations, open decisions, and resolution pointer for Wayfinder. They do not authorize delivery.
146
164
 
147
165
  ## Create an epic issue
148
166
 
@@ -177,7 +195,10 @@ Epic body ownership:
177
195
  - scope
178
196
  - cross-story constraints
179
197
  - child story list
180
- - links to source grill/status artifacts when relevant
198
+ - immutable spec link
199
+ - accepted artifact links when relevant
200
+
201
+ Minimum body headings: `Outcome`, `Scope`, `Constraints`, `Immutable spec`, and `Stories`.
181
202
 
182
203
  After creation, set Project fields:
183
204
 
@@ -219,9 +240,14 @@ mutation CreateStory(
219
240
  Story body ownership:
220
241
 
221
242
  - outcome
222
- - acceptance signals
243
+ - source `US-###`
244
+ - covered `AC-###`
245
+ - demonstration
223
246
  - non-goals
224
- - links
247
+ - immutable spec link
248
+ - accepted artifact links
249
+
250
+ Minimum body headings: `Outcome`, `Source stories`, `Acceptance criteria`, `Demonstration`, `Non-goals`, and `Links`.
225
251
 
226
252
  After creation, set Project fields:
227
253
 
@@ -262,16 +288,12 @@ mutation AddBlockedBy($issueId: ID!, $blockingIssueId: ID!) {
262
288
 
263
289
  ## Minimal creation order
264
290
 
265
- 1. Resolve repository/owner IDs.
266
- 2. Resolve Project V2 by title; create it if absent.
267
- 3. Resolve or create the `Kind`, `Capability module`, and `Epic` Project fields.
268
- 4. Resolve capability-module options.
269
- 5. Create root fog issues when the route remains root-level.
270
- 6. Create selected concrete non-fog issues with `projectV2Ids` and no execution milestone.
271
- 7. Create story child issues with `parentIssueId` and `projectV2Ids`.
272
- 8. Set Project field values for kind/capability/epic grouping.
273
- 9. Add native issue dependencies for every real blocker.
274
- 10. Derive, create or reuse, and assign chronological repository milestones from the complete dependency graph.
291
+ 1. Resolve repository/owner IDs, Project V2, configured fields, and capability-module options.
292
+ 2. Complete the in-memory hierarchy, graph, milestone, and representability preflight.
293
+ 3. Only after preflight passes, create root fog or selected delivery issues and story children.
294
+ 4. Set only explicitly configured Project field values.
295
+ 5. Map planned keys to provider ids and add native dependencies.
296
+ 6. Create or reuse the already-derived chronological repository milestones and assign them.
275
297
 
276
298
  ## Notes
277
299
 
@@ -12,6 +12,10 @@ Official sources:
12
12
  - `Content-Type: application/json`
13
13
  - `Authorization: Bearer <ACCESS_TOKEN>`
14
14
 
15
+ ## Preflight before creation
16
+
17
+ 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 Linear. A failed preflight writes nothing.
18
+
15
19
  ## Minimum documented mutation
16
20
 
17
21
  ```graphql
@@ -28,6 +32,10 @@ mutation IssueCreate($input: IssueCreateInput!) {
28
32
  }
29
33
  ```
30
34
 
35
+ ## Update existing decision tickets
36
+
37
+ Use Linear `issueUpdate(id: ..., input: ...)` for claim, release, and resolve after reading the issue's current assignee/state and rejecting a conflicting claim. Use only configured assignee/state/label fields. Resolution updates the terminal state and appends the immutable resolution pointer to the issue body or closure comment. Return the updated identifier and URL to Finder.
38
+
31
39
  ```json
32
40
  {
33
41
  "query": "mutation IssueCreate($input: IssueCreateInput!) { issueCreate(input: $input) { success issue { id identifier title url } } }",
@@ -47,6 +55,8 @@ mutation IssueCreate($input: IssueCreateInput!) {
47
55
  }
48
56
  ```
49
57
 
58
+ The example `labelIds` value assumes an explicitly configured classification label group. Without it, use the fallback below and change the example title accordingly.
59
+
50
60
  ## Required fields
51
61
 
52
62
  - `teamId`
@@ -62,11 +72,13 @@ mutation IssueCreate($input: IssueCreateInput!) {
62
72
  - `stateId`
63
73
  - `dueDate`
64
74
 
65
- ## Kind storage
75
+ ## Provider classification
76
+
77
+ Classification examples assume explicit configuration.
66
78
 
67
- Canonical `kind` storage is a single-select Linear label group.
79
+ Inspect configured provider metadata before choosing a representation. An adapter-specific single-select Linear label group may represent the direct backlog concepts.
68
80
 
69
- Use one label from the `Kind` group:
81
+ Only when explicitly configured to use a `Kind` label group, use one matching label:
70
82
 
71
83
  - `Kind/fog`
72
84
  - `Kind/grilling`
@@ -75,7 +87,15 @@ Use one label from the `Kind` group:
75
87
  - `Kind/epic`
76
88
  - `Kind/story`
77
89
 
78
- Linear label groups allow only one label from the group per issue. Do not use workflow state as kind. Other labels may mirror domain or capability-module metadata, but the `Kind/...` label is canonical.
90
+ Linear label groups allow only one label from the group per issue. Do not use workflow state as classification. Do not create a label group by default.
91
+
92
+ Fallback order:
93
+
94
+ 1. configured label group
95
+ 2. existing native issue label or category that exactly preserves the direct concept
96
+ 3. stable title prefix such as `[story]`
97
+
98
+ If workspace policy permits none of these, fail preflight. Do not create labels implicitly.
79
99
 
80
100
  ## Repo mapping
81
101
 
@@ -88,7 +108,29 @@ Linear label groups allow only one label from the group per issue. Do not use wo
88
108
  - epic -> top-level issue with `Kind/epic`
89
109
  - story -> child issue created with `parentId` and `Kind/story`
90
110
 
91
- `grilling`, `research`, and `prototype` closure notes must name the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
111
+ `grilling`, `research`, and `prototype` closure notes record the answer or verdict, evidence, observations, open decisions, and resolution pointer for Wayfinder. They do not authorize delivery.
112
+
113
+ ## Delivery body contracts
114
+
115
+ Epic body ownership:
116
+
117
+ - outcome
118
+ - scope and cross-story constraints
119
+ - child story list
120
+ - immutable spec link
121
+ - accepted artifact links when relevant
122
+
123
+ Story body ownership:
124
+
125
+ - outcome
126
+ - source `US-###`
127
+ - covered `AC-###`
128
+ - demonstration
129
+ - non-goals and dependencies
130
+ - immutable spec link
131
+ - accepted artifact links
132
+
133
+ Use these headings in `description`; do not substitute a mutable local spec path.
92
134
 
93
135
  ## Chronological execution milestones
94
136
 
@@ -96,12 +138,11 @@ Linear project milestones answer first/next/later. Name them chronologically, su
96
138
 
97
139
  Only selected non-fog `grilling`, `research`, `prototype`, `epic`, and `story` issues are milestone-eligible. Fog has no execution milestone until sharpened into concrete work. Capability-module metadata remains grouping and is not an execution issue.
98
140
 
99
- 1. Create the milestone-eligible issues and native blocker relations first across the full selected scope.
100
- 2. Stop materialization on a missing blocker target or cycle.
101
- 3. Assign selected milestone-eligible issues with no blockers to `M1`.
102
- 4. Assign every other selected milestone-eligible issue to `M(1 + max(milestone number of each blocker))`.
103
- 5. Create or reuse the derived chronological project milestones and assign exactly one to each selected milestone-eligible issue.
104
- 6. Verify every blocker is in a strictly earlier milestone than the issue it blocks.
141
+ 1. In memory, resolve the complete selected graph and reject missing targets, self-edges, or cycles.
142
+ 2. Derive blocker-free issues as `M1`; derive every other issue as `M(1 + max(milestone number of each blocker))`.
143
+ 3. Verify every blocker is in a strictly earlier milestone and that the configured Linear representation supports the full graph.
144
+ 4. Only after preflight passes, create issues, map planned keys to provider ids, create native blocker relations, and create or reuse the derived milestones.
145
+ 5. Assign exactly one verified milestone to each selected milestone-eligible issue.
105
146
 
106
147
  Issues in the same derived wave share a milestone and can proceed in parallel, even when they belong to different capability modules. A capability module can span multiple milestones. Capability grouping, parent/child hierarchy, and existing milestone assignment never determine chronology. Native blocker relations remain authoritative; recompute milestone assignment and numbering whenever they change.
107
148
 
@@ -109,6 +150,6 @@ Issues in the same derived wave share a milestone and can proceed in parallel, e
109
150
 
110
151
  - Linear issues belong to a single team.
111
152
  - If `stateId` is omitted, Linear assigns the team’s default backlog or triage state.
112
- - If the `Kind` label group is absent, create or request it before backlog sync.
153
+ - If an explicitly configured label group is absent, record a provider setup blocker. Do not create classification labels or groups without explicit configuration.
113
154
  - Linear’s GraphQL schema is introspectable. If you need a workspace-specific or newly-added create field, inspect `IssueCreateInput` before hardcoding it.
114
155
  - Project milestone assignment is part of project-backed issue creation in Linear. Treat the current schema or SDK types as the source of truth for the exact milestone input field name in your workspace version.