@punks/cli 4.0.2 → 4.0.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 (164) hide show
  1. package/dist/BASELINE_CHANGELOG.md +29 -0
  2. package/dist/CHANGELOG.md +25 -0
  3. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  4. package/dist/baseline/scaffold-baseline/data/catalog/lint-assets.json +10 -4
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +0 -1
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +0 -8
  7. package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +602 -101
  8. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.d.ts +11 -0
  9. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +103 -0
  10. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +144 -0
  11. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  12. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  13. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  14. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  15. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/contract.ts +24 -33
  16. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.mjs +4 -0
  17. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.test.ts +61 -0
  18. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/lint-feedback.test.ts +123 -0
  19. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  20. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  21. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  22. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  23. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents-validator.test.ts +59 -0
  24. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.d.mts +1 -0
  25. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +27 -14
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +18 -0
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  50. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +105 -150
  51. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +111 -181
  52. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  53. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +49 -35
  54. package/dist/baseline/scaffold-baseline/skills/agnostic/security/security-best-practices/references/javascript-typescript-vue-web-frontend-security.md +1 -1
  55. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +2 -6
  56. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/expo-skill-eval/SKILL.md +6 -7
  57. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +1 -3
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +2 -14
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +7 -1
  60. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +4 -0
  61. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/references/best-practices.md +7 -1
  62. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +4 -0
  63. package/dist/baseline/scaffold-baseline/skills/languages/typescript/quality-types/SKILL.md +1 -3
  64. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +29 -16
  65. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +1 -1
  66. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +10 -8
  67. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +26 -17
  68. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  69. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +22 -25
  70. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  71. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +40 -0
  72. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +11 -18
  73. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +13 -21
  74. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +21 -35
  75. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +13 -18
  76. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +14 -25
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +22 -56
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  79. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +12 -20
  80. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  81. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +27 -49
  82. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +40 -359
  83. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +29 -62
  84. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +49 -13
  85. package/dist/baseline/scaffold-baseline.json +5 -5
  86. package/dist/baseline/scaffold-baseline.tgz +0 -0
  87. package/dist/data/hooks/format-edited-file.d.mts +21 -0
  88. package/dist/data/hooks/format-edited-file.mjs +588 -98
  89. package/dist/data/scripts/commit-gate-runner.mjs +103 -0
  90. package/dist/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  91. package/dist/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  92. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  93. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  94. package/dist/data/scripts/harness-projection/core.mjs +4 -0
  95. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  96. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  97. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  98. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  99. package/dist/data/scripts/sync-subagents.d.mts +1 -0
  100. package/dist/data/scripts/sync-subagents.mjs +30 -13
  101. package/dist/data/shared-agents.md +2 -60
  102. package/dist/index.js +73 -64
  103. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  104. package/dist/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  105. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  106. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  107. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  108. package/dist/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  109. package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  110. package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +18 -0
  111. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  112. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  113. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  114. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  115. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  116. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  117. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  118. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  119. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  120. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  121. package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  122. package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  123. package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  124. package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  125. package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  126. package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  127. package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +97 -142
  128. package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +106 -176
  129. package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  130. package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +55 -31
  131. package/dist/skills/phases/business-finder/SKILL.md +29 -16
  132. package/dist/skills/phases/delivery-phase/SKILL.md +1 -1
  133. package/dist/skills/phases/delivery-phase/phases/router.md +10 -8
  134. package/dist/skills/phases/design-phase/phases/backlog.md +26 -17
  135. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  136. package/dist/skills/phases/finder-phase/SKILL.md +22 -25
  137. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  138. package/dist/skills/phases/finder-phase/phases/grilling.md +40 -0
  139. package/dist/skills/phases/finder-phase/phases/handback.md +11 -18
  140. package/dist/skills/phases/finder-phase/phases/prototype.md +13 -21
  141. package/dist/skills/phases/finder-phase/phases/reconcile.md +21 -35
  142. package/dist/skills/phases/finder-phase/phases/research.md +13 -18
  143. package/dist/skills/phases/finder-phase/phases/return-target.md +14 -25
  144. package/dist/skills/phases/finder-phase/phases/router.md +22 -56
  145. package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  146. package/dist/skills/phases/finder-phase/references/root-routing.md +12 -20
  147. package/dist/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  148. package/dist/skills/phases/finder-phase/references/state-graph.md +27 -49
  149. package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +44 -357
  150. package/dist/skills/phases/functional-finder/SKILL.md +29 -62
  151. package/dist/skills/phases/requirements-phase/SKILL.md +49 -13
  152. package/package.json +7 -5
  153. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  154. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  155. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  156. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  157. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +0 -74
  158. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +0 -2
  159. package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  160. package/dist/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  161. package/dist/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  162. package/dist/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  163. package/dist/skills/phases/technical-finder/SKILL.md +0 -74
  164. package/dist/skills/phases/technical-finder/agents/openai.yaml +0 -2
@@ -3,29 +3,27 @@
3
3
  ## Public Seam
4
4
 
5
5
  `write-backlog` accepts one semantic operation and returns its exact provider
6
- result. Callers do not select provider primitives or perform writes.
6
+ result. Callers neither select provider primitives nor perform writes.
7
7
 
8
8
  Required input:
9
9
 
10
- - operation: initialize/reconstruct, Fog or pre-resolution grilling-child
11
- ensure, Research/Prototype support-child ensure, Business projection,
12
- Functional projection, Technical projection, Normalization, delivery status,
13
- or issue reconciliation
10
+ - operation: initialize/reconstruct, Fog/Grilling/support intake, Business
11
+ projection, Functional projection, delivery projection, Normalization,
12
+ delivery status, or issue reconciliation
14
13
  - durable wiki identity for every intended object and stable provider identity
15
14
  for every known object
16
- - immutable accepted evidence that authorizes a projection, Normalization, or
17
- delivery-status operation; Fog, grilling-shell, and support-child intake use
18
- exact parent identity, kind, durable wiki identity, and cardinality instead
19
- - proposed semantic delta, source wording, source links, and expected current
15
+ - immutable accepted evidence authorizing projection, Normalization, or a
16
+ delivery-state operation; intake instead carries exact parent, kind, durable
17
+ identity, and bounded unknown
18
+ - proposed semantic delta, source wording, immutable source links, and expected
20
19
  provider state
21
- - exact `V*` milestone for each Story and any explicit Fog target iteration
22
- - structural approval record when the delta crosses an approval boundary
20
+ - exact `V*` milestone for every Story and derived Task
21
+ - structural approval record whenever the delta crosses an approval boundary
23
22
 
24
- Missing operation-specific authority or conflicting authority returns every gap
25
- with zero provider mutations. Intake requires no accepted evidence: it creates
26
- or resumes the unresolved shell that will later carry that evidence.
23
+ Missing, mutable, ambiguous, or conflicting authority returns every gap with
24
+ zero provider mutations.
27
25
 
28
- ## Topology
26
+ ## Semantic Topology
29
27
 
30
28
  ```text
31
29
  Product/Backlog Root
@@ -33,58 +31,48 @@ Product/Backlog Root
33
31
  └── Initiative
34
32
  └── Epic
35
33
  └── Story [exactly one contextual V*]
36
- └── Task 1..n [same V* + blocker relations]
34
+ └── Task [same V* + blocker relations when derived]
37
35
 
38
36
  Fog ──lateral provenance/enrichment──> Product Area | Initiative | Epic | Story | Task
39
37
  ```
40
38
 
41
- Product Areas are durable product responsibilities. Initiatives are business
42
- goals. Epics are long-lived business slices and may span iterations. Stories
43
- are shippable product outcomes. Tasks are required atomic, independently
44
- ownable delivery units.
39
+ Product Areas are stable product responsibilities. Initiatives are business
40
+ goals. Epics are long-lived business slices. Stories are shippable product
41
+ outcomes. Derived Tasks are atomic, independently ownable delivery units.
45
42
 
46
- Business projection creates or enriches Product Area, Initiative, and Epic.
47
- Functional projection creates Stories. Technical projection creates mandatory
48
- Tasks only after one authoritative agent-ready `SPEC.md` exists for the Story.
49
- Fog remains lateral provenance throughout all three stages.
50
-
51
- Every Story belongs to exactly one contextual `V*` milestone iteration, and
52
- every Task belongs to the same iteration as its Story. A Fog may target one
53
- fitting iteration. Product Areas, Initiatives, and Epics span iterations.
43
+ Business projection stops at Product Area and Initiative. Functional projection
44
+ may project that structure plus Epics. Neither Finder projection creates Stories
45
+ or Tasks. Delivery projection starts from an immutable agent-ready `SPEC.md`,
46
+ treats `OUT-###` only as traceability, and derives or reuses the accepted Product
47
+ Area → Initiative → Epic → Story → Task placement. Outcome count imposes no
48
+ provider-item cardinality.
54
49
 
55
50
  ## Validation Envelope
56
51
 
57
52
  Before the first provider write:
58
53
 
59
- 1. Resolve destination, Product/Backlog Root, repository, wiki, and provider
60
- workspace identity.
54
+ 1. Prove Product/Backlog Root, repository, wiki, and actual provider workspace.
61
55
  2. Read every target and relation from the provider.
62
- 3. Apply the exact create/enrich/stop decision table from
63
- [issue reconciliation](references/issue-reconciliation.md). A title is
64
- discovery evidence only.
65
- 4. Reuse the exact existing structure and fitting `V*` milestone. Propose a new
66
- structure only when no exact or fitting one exists.
67
- 5. Validate hierarchy, metadata representation, provider membership, source
68
- links, accepted evidence, and approval state.
69
- 6. For Technical projection, validate every parent Story and the complete
70
- reachable Task graph. Reject a missing parent Story, Task/Story milestone
71
- mismatch, missing blocker target, self-edge, future-iteration dependency, or
72
- cycle. Real blockers may cross Stories and Epics.
73
- 7. Preview material topology changes with `$show-me`; wait for explicit approval
74
- where required.
56
+ 3. Apply the exact create/reuse/enrich/stop decision table from
57
+ [issue reconciliation](references/issue-reconciliation.md). A title is only
58
+ discovery evidence.
59
+ 4. Reuse exact structure and fitting `V*` milestones. Require preview and
60
+ explicit approval for material topology changes.
61
+ 5. Validate hierarchy, adapter representation, memberships, immutable source
62
+ links, accepted evidence, approval state, and historical-ticket exclusion.
63
+ 6. Validate every parent Story and the complete reachable Task graph. Reject a
64
+ missing parent or blocker, milestone mismatch, future-iteration edge,
65
+ self-edge, duplicate edge, or cycle.
66
+ 7. Validate a small mutation envelope: ordered operations, stable identities,
67
+ preconditions, and the exact readback comparison expected after each write.
75
68
 
76
69
  ## Result Envelope
77
70
 
78
- Return:
79
-
80
- - provider and Product/Backlog Root identities
81
- - operation and immutable evidence identity
82
- - each durable wiki identity and stable provider ID/URL
83
- - created, enriched, repaired, or unchanged classification
84
- - exact parents, relations, `V*` membership, fields, views, source links, and
85
- statuses read back from the provider
86
- - applied approval record and unresolved delta
87
- - partial writes and recovery point when a provider request fails
71
+ Return provider, workspace, and Product/Backlog Root identities; operation and
72
+ immutable evidence identity; stable provider IDs and durable wiki identities;
73
+ created, enriched, repaired, or unchanged classification; exact parents,
74
+ relations, `V*` membership, semantic fields, views, source links, and statuses;
75
+ the approval record; observed writes; recovery point; and residual delta.
88
76
 
89
- Only exact readback proves success. A successful request without matching
90
- readback is an unresolved reconciliation, not completion.
77
+ Only exact readback proves success. A successful provider request with a
78
+ mismatched readback remains unresolved reconciliation.
@@ -6,63 +6,65 @@ description: Reconcile or materialize a coherent Linear or GitHub product backlo
6
6
  # Write Backlog
7
7
 
8
8
  `write-backlog` is the sole physical provider mutation authority. Callers supply
9
- semantic intent and evidence; this skill owns reconciliation, provider writes,
10
- and readback. It preserves the user's ticket wording, canonical project terms,
11
- source links, and durable traceability while structuring the ticket correctly.
9
+ semantic intent and evidence; this skill owns reconciliation, preview, provider
10
+ writes, exact readback, and residual delta. Provider adapters translate
11
+ representation and never redefine product hierarchy policy.
12
12
 
13
13
  Before naming or rewriting domain concepts, read the canonical glossary in the
14
- routed `requirements-grill` status artifact. Preserve its canonical terms;
15
- route proposed terminology changes through `requirements-grill` instead of
14
+ routed `requirements-grill` status artifact. Preserve its canonical terms.
15
+ Route proposed terminology changes through `requirements-grill` instead of
16
16
  silently renaming them.
17
17
 
18
18
  ## Mutation Pipeline
19
19
 
20
- 1. Read [project context](references/project-context.md). Resolve
21
- `.devpunks/settings.json`, the Product/Backlog Root, project wiki,
22
- repository identity, and current provider workspace. Missing or legacy
23
- destination settings stop with exact `hi ensure` guidance; never discover or
24
- guess another destination.
25
- 2. Read project context, repository identity, and fresh provider state. Read
26
- every intended target, parent, relation, milestone, field, and view before
27
- deciding whether the operation creates, enriches, or repairs anything.
20
+ 1. Read [project context](references/project-context.md). Resolve settings,
21
+ Product/Backlog Root, wiki, repository, and actual provider workspace. A
22
+ missing or legacy destination returns exact `hi ensure` guidance and zero
23
+ writes. Completion means every destination identity is proven.
24
+ 2. Read fresh provider state for every intended object, parent, relation,
25
+ milestone, field, and view. Completion means the current topology is known
26
+ by stable provider identity, not inferred from names.
28
27
  3. Read [the mutation envelope](REFERENCE.md) and
29
28
  [identity reconciliation](references/issue-reconciliation.md). After a
30
29
  complete provider search, create on zero stable matches, enrich one stable
31
- match carrying the same durable wiki identity, and stop on any ambiguity,
32
- conflict, or incomplete search.
30
+ match carrying the same durable wiki identity, and stop on ambiguity,
31
+ conflict, or an incomplete search. Completion means every object has one
32
+ fail-closed create, reuse, enrich, or unchanged decision.
33
33
  4. Load exactly one semantic branch:
34
34
  - [initialize or reconstruct a backlog](references/backlog-initialization.md)
35
- - [ensure Fog, pre-resolution grilling child shell, or Research/Prototype support child](references/fog-intake.md)
36
- - [project accepted Business grilling](references/business-projection.md)
37
- - [project accepted Functional grilling](references/functional-projection.md)
38
- - [project accepted Technical grilling from a verified stable blob URL](references/technical-projection.md)
39
- - [normalize existing backlog state](references/normalization.md)
40
- - [record directly observed delivery state](references/delivery-status.md)
41
- 5. Construct the complete intended mutation in memory. Validate authority,
42
- stable identity, hierarchy, provider representation, source links,
35
+ - [ensure Fog, Grilling, or Research/Prototype intake](references/fog-intake.md)
36
+ - [project Business evidence to the Initiative ceiling](references/business-projection.md)
37
+ - [project Functional evidence to the Epic ceiling](references/functional-projection.md)
38
+ - [derive delivery structure from an immutable specification](references/technical-projection.md)
39
+ - [normalize current backlog state](references/normalization.md)
40
+ - [record observed delivery state](references/delivery-status.md)
41
+ 5. Construct the complete intended delta in memory. Validate authority, stable
42
+ identity, provider-neutral hierarchy, adapter representation, source links,
43
43
  contextual `V*` membership, and the full reachable Task blocker graph.
44
+ Completion means validation accepts the whole delta before the first write.
44
45
  6. Use `$show-me` to preview the authority-derived topology. Boundary, goal,
45
46
  parent, roadmap, milestone movement, duplicate closure, merge, split,
46
- reparenting, or reorganization changes require explicit approval. The visual
47
- explains the proposal; it is not approval. Unambiguous additive links and
48
- stale-state repairs may continue after preflight.
47
+ reparenting, or reorganization changes require explicit approval.
48
+ Divergent-topology repair uses the same gate. The visual explains the
49
+ proposal; it is not approval. Completion means every material structural
50
+ decision has an approval record.
49
51
  7. Apply `$wait-what` when proposed ticket wording or project terms do not land.
50
- Re-pitch in the project's language; preserve accepted meaning and user
51
- wording instead of silently renaming it.
52
+ Re-pitch in canonical language while preserving accepted meaning.
52
53
  8. Select exactly one adapter from `backlogProvider`:
53
54
  - `Linear`: read [the Linear provider branch](references/providers/linear.md).
54
55
  - `GitHub`: read [the GitHub provider branch](references/providers/github.md).
55
- If exact hierarchy, metadata, milestone, relation, or readback representation
56
- is unavailable, stop with zero provider mutations and setup guidance.
57
- 9. Write only the approved, validated delta. Then perform exact readback of
58
- every intended identity, parent, relation, source link, field, view,
59
- milestone, status, and provider object. A partial provider failure returns
60
- the observed writes and unresolved delta; it never claims atomic success.
61
- 10. Return the stable provider IDs and URLs, durable wiki identities, branch,
62
- created/enriched/unchanged classification, approved structural decisions,
63
- exact readback, and any remaining blocker to the caller.
56
+ A missing hierarchy, metadata, milestone, relation, or readback capability
57
+ returns setup guidance and zero provider mutations.
58
+ 9. Write only the validated, approved delta. Read back every intended identity,
59
+ parent, relation, source link, field, view, milestone, status, and provider
60
+ object. On partial failure, stop further writes and return observed writes
61
+ plus the exact residual delta.
62
+ 10. Return stable provider IDs and URLs, durable wiki identities, operation,
63
+ created/enriched/repaired/unchanged classification, approvals, exact
64
+ readback, and residual delta. Completion requires the return envelope to
65
+ reconcile byte-for-byte with the intended provider state.
64
66
 
65
- ## Invariants
67
+ ## Provider-Neutral Invariants
66
68
 
67
69
  ```text
68
70
  Product/Backlog Root
@@ -70,35 +72,38 @@ Product/Backlog Root
70
72
  └── Initiative
71
73
  └── Epic
72
74
  └── Story [one contextual V*]
73
- └── Task 1..n [required, same V* + blockers]
75
+ └── Task [same V* + blockers when derived]
74
76
 
75
- Fog ──provenance/enrichment──> Area | Initiative | Epic | Story | Task
77
+ Fog ──provenance/enrichment──> Product Area | Initiative | Epic | Story | Task
76
78
  ```
77
79
 
78
- - Business projection creates or enriches Product Area, Initiative, and Epic.
79
- - Functional projection creates one Story per accepted Functional child.
80
- - Technical projection requires an authoritative agent-ready `SPEC.md`, then
81
- creates one or more mandatory, atomic, owner-ready Tasks per Story.
82
- - Every Story belongs to exactly one contextual `V*` milestone iteration. Each
83
- Task inherits the same iteration. Product Areas, Initiatives, and Epics span
84
- iterations. A Fog may target a fitting iteration.
85
- - Reuse a fitting existing structure or milestone before proposing a new one.
86
- - Blockers, not milestone order, define precedence. Reject missing targets,
87
- future-iteration edges, self-edges, and cycles across the complete reachable
88
- Task graph before any provider mutation.
89
- - Fog is lateral provenance, not a delivery parent. Its accepted stage children
90
- and every enriched or produced provider object remain linked to it.
91
- - Project views are Product Map, Roadmap, Fogs, and Current Delivery. This skill
92
- does not design CI/CD pipelines, sprints, provider Cycles, or scheduling.
80
+ - Business Finder projection stops at Product Area and Initiative.
81
+ - Functional Finder projection may project that Business structure plus Epics.
82
+ Neither Finder branch creates Stories or Tasks.
83
+ - Delivery projection consumes an agent-ready `SPEC.md` through its
84
+ verified stable blob URL. Neutral `OUT-###` outcomes remain traceability
85
+ while Write Backlog derives or reuses the Product Area, Initiative, Epic,
86
+ Story, and Task identities
87
+ supported by the requirements. Outcome count prescribes no item count.
88
+ - Every Story has exactly one contextual `V*` milestone. Every derived Task has
89
+ its Story's milestone. Product Areas, Initiatives, and Epics may span
90
+ iterations.
91
+ - Blockers, rather than list or milestone order, define precedence. Validate
92
+ the complete reachable graph before mutation.
93
+ - Fog is lateral provenance, never a hierarchy parent. Historical staged
94
+ tickets remain unchanged unless a separately authorized operation targets an
95
+ exact ticket.
93
96
 
94
97
  ## Body Contract
95
98
 
96
- Every written ticket stays independently understandable and retains its source
97
- authority. Add a compact `$show-me` visual when the relationships are harder to
98
- understand than the prose. The visual does not replace product outcome,
99
- `US-###`/`AC-###` traceability, immutable evidence, or provider-native
100
- relations. Concrete files, commands, workers, and
101
- execution notes stay in planning and delivery artifacts.
99
+ Every written ticket remains understandable from its immutable specification
100
+ authority. Preserve applicable `OUT-###`/`AC-###` traceability, source links,
101
+ accepted wording, non-goals, dependencies, and provider-native relations.
102
+ Add a compact `$show-me` visual when the relationships are harder to understand than the prose.
103
+ The visual does not replace traceability, immutable evidence, or
104
+ provider-native relations.
105
+ Concrete files, commands, workers, and execution notes stay in planning and
106
+ delivery artifacts.
102
107
 
103
- See [examples](EXAMPLES.md) for representative initialization and staged
104
- projection results. Provider mechanics remain behind this mutation seam; Finder and delivery callers never perform provider writes themselves.
108
+ See [examples](EXAMPLES.md) for representative results. Finder, Requirements,
109
+ planning, and delivery callers never perform provider writes themselves.
@@ -8,7 +8,7 @@ Product/Backlog Root
8
8
  └── Initiative
9
9
  └── Epic
10
10
  └── Story [exactly one contextual V*]
11
- └── Task 1..n [same V* + blocker relations]
11
+ └── Task [same V* + blocker relations when derived]
12
12
 
13
13
  Fog ──lateral provenance/enrichment──> Product Area | Initiative | Epic | Story | Task
14
14
  ```
@@ -16,45 +16,42 @@ Fog ──lateral provenance/enrichment──> Product Area | Initiative | Epic
16
16
  - Product Area: stable product responsibility.
17
17
  - Initiative: business goal within one Product Area.
18
18
  - Epic: long-lived business slice within one Initiative.
19
- - Story: one shippable product outcome within one Epic.
20
- - Task: required atomic, owner-ready Story work.
21
- - Fog: external intake, evidence, decision history, and delivery provenance.
19
+ - Story: shippable product outcome within one Epic.
20
+ - Task: derived atomic, owner-ready Story work.
21
+ - Fog: intake, evidence, decision history, and delivery provenance.
22
22
 
23
- ## Staged Projection
23
+ ## Projection Boundaries
24
24
 
25
- - Business grilling may reuse, enrich, or create the resolved Product Area,
26
- Initiative, and Epic path.
27
- - Functional grilling creates exactly one Story per accepted Functional child.
28
- - Technical grilling requires an authoritative agent-ready Story `SPEC.md`, then
29
- creates one or more mandatory Tasks and native blocker relations.
25
+ - Business Finder may reuse, enrich, or create Product Areas and Initiatives;
26
+ Initiative is its ceiling.
27
+ - Functional Finder may project that Business structure plus Epics; Epic is its
28
+ ceiling. Neither Finder branch creates Stories or Tasks.
29
+ - Requirements Phase supplies an immutable agent-ready `SPEC.md` with neutral
30
+ `OUT-###` outcomes. Write Backlog derives or reuses Product Area → Initiative
31
+ → Epic → Story → Task placement and native blocker relations. Outcome identity
32
+ remains traceability and imposes no Story or Task cardinality.
30
33
 
31
- Every stage preserves its immutable resolution pointer and the exact provider
32
- objects it enriched or produced. Fog is lateral provenance; it is not another
33
- ownership level and does not replace native parent relations.
34
+ Every projection preserves immutable evidence and exact provider identities.
35
+ Fog is lateral provenance and does not replace native parent relations.
34
36
 
35
- ## Iterations And Blockers
37
+ ## Iterations and Blockers
36
38
 
37
- Every Story belongs to exactly one contextual `V*` milestone iteration. Every Task belongs to the same iteration as its Story. A Fog may target a fitting
38
- iteration. Product Areas, Initiatives, and Epics span iterations.
39
-
40
- Reuse a fitting existing milestone before proposing another. Moving work to a
41
- different iteration requires explicit approval. Milestones do not encode Task
42
- precedence.
39
+ Every Story belongs to exactly one contextual `V*` milestone. Every derived
40
+ Task belongs to its Story's milestone. Product Areas, Initiatives, and Epics may
41
+ span iterations.
43
42
 
44
43
  Validate the complete reachable Task graph before mutation:
45
44
 
46
- 1. Resolve every blocker target by stable identity.
47
- 2. Reject missing targets and self-edges.
48
- 3. Reject a dependency on a future `V*` milestone iteration.
45
+ 1. Resolve every parent Story and blocker target by stable identity.
46
+ 2. Reject missing identities, duplicate edges, and self-edges.
47
+ 3. Reject a dependency on a future `V*` milestone.
49
48
  4. Reject cycles across all reachable Tasks.
50
49
  5. Preserve real blockers across Stories and Epics.
51
50
 
52
51
  ## Mutation Boundary
53
52
 
54
53
  Construct and validate the full intended provider delta before the first write.
55
- An identity, hierarchy, milestone, relation, representation, or approval
56
- failure produces zero provider mutations. After writing, exact provider
57
- readback must prove every intended object and relation.
58
-
59
- Provider writes may fail between requests. Return all observed provider IDs and
60
- the unresolved delta; never claim transactional atomicity.
54
+ An authority, identity, hierarchy, milestone, representation, or approval
55
+ failure produces zero provider mutations. After writing, exact readback must
56
+ prove every intended object and relation. A partial failure returns observed
57
+ provider IDs and the residual delta without claiming atomic success.
@@ -16,14 +16,14 @@ milestone, blocker, provenance, source, and approval records remain authority.
16
16
  - uncertainty or request
17
17
  - why it is still Fog
18
18
  - accepted and open decisions
19
- - Business, Functional, and Technical child identities
19
+ - generic Grilling child identities and immutable intake lens
20
20
  - supporting Research or Prototype evidence
21
21
  - affected or produced backlog objects
22
22
  - target and completion iteration when known
23
23
 
24
24
  ## Grilling Body
25
25
 
26
- - Stage: Business, Functional, or Technical
26
+ - bounded unknown closed by this generic Grilling child
27
27
  - question and accepted decision
28
28
  - evidence, observations, and open decisions
29
29
  - immutable resolution pointer
@@ -48,9 +48,9 @@ decisions, and immutable resolution pointer.
48
48
 
49
49
  [One shippable product result]
50
50
 
51
- ## Source stories
51
+ ## Source outcomes
52
52
 
53
- - `US-###`
53
+ - `OUT-###`
54
54
 
55
55
  ## Acceptance criteria
56
56
 
@@ -111,7 +111,7 @@ decisions, and immutable resolution pointer.
111
111
 
112
112
  - Parent Story: ...
113
113
  - Immutable spec: ...
114
- - Technical resolution and Fog: ...
114
+ - Compiled outcome and Fog provenance: ...
115
115
  - Milestone iteration: same `V*` as Story
116
116
  ```
117
117
 
@@ -113,7 +113,7 @@ Epic body ownership:
113
113
  Story body ownership:
114
114
 
115
115
  - outcome
116
- - source `US-###`
116
+ - source outcome `OUT-###`
117
117
  - covered `AC-###`
118
118
  - demonstration
119
119
  - non-goals and dependencies
@@ -235,14 +235,14 @@ mutation CreateStory(
235
235
  Story body ownership:
236
236
 
237
237
  - outcome
238
- - source `US-###`
238
+ - source outcome `OUT-###`
239
239
  - covered `AC-###`
240
240
  - demonstration
241
241
  - non-goals
242
242
  - immutable spec link
243
243
  - accepted artifact links
244
244
 
245
- Minimum body headings: `Outcome`, `Source stories`, `Acceptance criteria`, `Demonstration`, `Non-goals`, and `Links`.
245
+ Minimum body headings: `Outcome`, `Source outcomes`, `Acceptance criteria`, `Demonstration`, `Non-goals`, and `Links`.
246
246
 
247
247
  After creation, set Project fields:
248
248
 
@@ -123,7 +123,7 @@ Epic body ownership:
123
123
  Story body ownership:
124
124
 
125
125
  - outcome
126
- - source `US-###`
126
+ - source outcome `OUT-###`
127
127
  - covered `AC-###`
128
128
  - demonstration
129
129
  - non-goals and dependencies
@@ -183,7 +183,7 @@ Tool:
183
183
  "boardId": 123456789,
184
184
  "parentItemId": 987654321,
185
185
  "name": "Lead reassigns ownership to another reviewer",
186
- "columnValues": "{\"long_text\":\"Outcome: ...\\n\\nSource stories: US-001\\n\\nAcceptance criteria: AC-001\\n\\nDemonstration: ...\\n\\nAccepted artifacts: ...\",\"kind\":{\"label\":\"story\"}}"
186
+ "columnValues": "{\"long_text\":\"Outcome: ...\\n\\nSource outcomes: OUT-001\\n\\nAcceptance criteria: AC-001\\n\\nDemonstration: ...\\n\\nAccepted artifacts: ...\",\"kind\":{\"label\":\"story\"}}"
187
187
  }
188
188
  }
189
189
  ```
@@ -191,7 +191,7 @@ Tool:
191
191
  Story body ownership:
192
192
 
193
193
  - outcome
194
- - source `US-###`
194
+ - source outcome `OUT-###`
195
195
  - covered `AC-###`
196
196
  - demonstration
197
197
  - non-goals
@@ -1,31 +1,26 @@
1
1
  # Business Projection
2
2
 
3
- Require one immutable accepted Business grilling resolution, its Fog identity,
4
- and fresh reads of relevant Product Areas, Initiatives, Epics, and `V*`
5
- milestones.
3
+ Require immutable accepted Business evidence, its Fog identity when Finder
4
+ supplied one, and fresh reads of relevant Product Areas and Initiatives.
6
5
 
7
- ## Resolve The Path
6
+ Business projection has a strict Product Area → Initiative ceiling. It creates
7
+ or enriches neither Epic, Story, nor Task delivery depth.
8
8
 
9
- 1. Identify the requested business outcome and affected product responsibility.
10
- 2. Complete the provider search using durable wiki identity and any known stable
11
- provider identity.
12
- 3. Reuse or enrich the exact Product Area → Initiative → Epic path when one
13
- stable match carries the same durable wiki identity.
14
- 4. Enrich the exact existing structure when the accepted meaning adds durable
15
- context without changing its boundary.
16
- 5. Exact-create only the missing level when the complete search has zero stable
17
- matches and the accepted resolution authorizes it.
9
+ ## Resolve the Path
18
10
 
19
- One Fog normally targets one Product Area and one Initiative. A request that
20
- crosses either boundary is scope expansion: use `$show-me` to expose the split,
21
- warn about the larger product scope, and require explicit approval to split or
22
- proceed. New Product Areas, Initiatives, and material Epic boundaries use the
23
- same approval gate. Never duplicate an Initiative or Product Area.
11
+ 1. Identify the business outcome and affected product responsibility.
12
+ 2. Complete the provider search by durable wiki identity and known stable
13
+ provider identity.
14
+ 3. Reuse or enrich the exact Product Area → Initiative path when one stable
15
+ match carries the same durable wiki identity.
16
+ 4. Exact-create only a missing Product Area or Initiative when a complete
17
+ search finds zero matches and accepted evidence authorizes it.
18
+ 5. Treat a cross-Area or cross-Initiative request as scope expansion. Preview
19
+ the split with `$show-me` and require explicit approval.
24
20
 
25
- ## Write And Read Back
21
+ ## Write and Read Back
26
22
 
27
- Preserve the Business resolution's user wording, product goal, outcomes,
28
- boundaries, constraints, non-goals, source links, and Fog backlink. Write only
29
- the validated created or enriched delta. Read back the complete resolved path,
30
- all provenance links, and any selected fitting milestone relation. Return those
31
- identities to Finder without creating lower-stage delivery work.
23
+ Preserve accepted wording, goal, outcomes, boundaries, constraints, non-goals,
24
+ source links, and Fog provenance. Write only the validated delta. Read back the
25
+ resolved Product Area and Initiative identities and provenance. Return them to
26
+ Finder without creating an Epic, Story, Task, or milestone-bound structure.
@@ -15,6 +15,7 @@ of these facts, each with its evidence source and observation time:
15
15
 
16
16
  - work started or changed to in-progress
17
17
  - blocked, including the blocker reason and evidence
18
+ - review evidence and observed result
18
19
  - pull request URL and observed state
19
20
  - merge evidence
20
21
  - staging deployment evidence
@@ -23,22 +24,24 @@ of these facts, each with its evidence source and observation time:
23
24
 
24
25
  For each newly observed fact, immediately record the exact linked Story or Task
25
26
  delta through the provider adapter, then read back that fact before continuing.
26
- Do not delay a start, blocker, or pull request update until a later delivery
27
- event.
27
+ Do not delay a start, blocker, review, or pull request update until a later
28
+ delivery event.
28
29
 
29
30
  ## Evidence Boundaries
30
31
 
31
- Record directly observed merge evidence as a merge fact only. Merge is never
32
- staging deployment or production deployment. Staging is never production.
32
+ Each fact remains distinct; one observed fact cannot infer another. Record
33
+ directly observed merge evidence as a merge fact only. Merge is never staging
34
+ deployment or production deployment. Staging is never production.
33
35
  Recording merge leaves staging evidence, production evidence, and Fog
34
36
  completion unchanged; the Fog remains open.
35
37
 
36
38
  ## Fog Completion
37
39
 
38
- Before considering completion, read the Fog's exact accepted resulting scope
39
- from immutable grilling resolutions and provenance: every Epic enriched and
40
- every Story and Task produced. Read the current production evidence linked to
41
- each exact stable identity.
40
+ Before considering completion, read the Fog's accepted resulting scope from
41
+ immutable Grilling resolutions and provenance. This scope is the exact set of
42
+ Story and Task identities produced, plus provenance links to every Epic
43
+ enriched. Read the current production evidence linked to each exact stable
44
+ identity.
42
45
 
43
46
  Complete the Fog only when exact production evidence covers every accepted
44
47
  resulting Story and Task and therefore proves the Fog's accepted Epic
@@ -46,11 +49,12 @@ contribution reached production. A shared Epic may remain open for work outside
46
49
  this Fog. Child creation, Task creation, merge, and staging deployment cannot
47
50
  complete a Fog.
48
51
 
49
- List every identity missing production evidence; while any remain, the Fog
50
- remains open. On complete coverage, record the final contextual `V*` milestone
51
- iteration in which the last required scope reached production, then read back
52
- the Fog status, completion iteration, scope links, and production evidence.
53
- Cancelled and Superseded Fogs receive no completion credit.
52
+ Cancelled and Superseded Fogs receive no completion credit, regardless of
53
+ coverage. Otherwise, list every identity missing production evidence; while any
54
+ remain, the Fog remains open. On complete coverage, record the final contextual
55
+ `V*` milestone iteration in which the last required scope reached production,
56
+ then read back the Fog status, completion iteration, scope links, and production
57
+ evidence.
54
58
 
55
59
  ## Result
56
60