@punks/cli 4.0.1 → 4.0.3

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 (172) hide show
  1. package/dist/BASELINE_CHANGELOG.md +34 -0
  2. package/dist/CHANGELOG.md +24 -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 +2 -3
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -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/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +12 -0
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +105 -150
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +111 -181
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  50. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +49 -35
  51. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  52. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  53. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  54. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  55. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  56. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  57. package/dist/baseline/scaffold-baseline/skills/agnostic/security/security-best-practices/references/javascript-typescript-vue-web-frontend-security.md +1 -1
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +2 -6
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/expo-skill-eval/SKILL.md +6 -7
  60. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  61. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +19 -53
  62. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +36 -88
  63. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +7 -1
  64. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +4 -0
  65. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/references/best-practices.md +7 -1
  66. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +4 -0
  67. package/dist/baseline/scaffold-baseline/skills/languages/typescript/quality-types/SKILL.md +1 -3
  68. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +29 -16
  69. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +10 -8
  70. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +26 -17
  71. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  72. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +22 -25
  73. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  74. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +40 -0
  75. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +11 -18
  76. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +13 -21
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +21 -35
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +13 -18
  79. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +14 -25
  80. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +22 -56
  81. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  82. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +12 -20
  83. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  84. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +27 -49
  85. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +40 -359
  86. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +29 -62
  87. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +49 -13
  88. package/dist/baseline/scaffold-baseline.json +5 -5
  89. package/dist/baseline/scaffold-baseline.tgz +0 -0
  90. package/dist/data/hooks/format-edited-file.d.mts +21 -0
  91. package/dist/data/hooks/format-edited-file.mjs +588 -98
  92. package/dist/data/scripts/commit-gate-runner.mjs +103 -0
  93. package/dist/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  94. package/dist/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  95. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  96. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  97. package/dist/data/scripts/harness-projection/core.mjs +4 -0
  98. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  99. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  100. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  101. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  102. package/dist/index.js +73 -58
  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 +12 -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/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  132. package/dist/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  133. package/dist/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  134. package/dist/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  135. package/dist/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  136. package/dist/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  137. package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  138. package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +10 -42
  139. package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +18 -58
  140. package/dist/skills/phases/business-finder/SKILL.md +29 -16
  141. package/dist/skills/phases/delivery-phase/phases/router.md +10 -8
  142. package/dist/skills/phases/design-phase/phases/backlog.md +26 -17
  143. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  144. package/dist/skills/phases/finder-phase/SKILL.md +22 -25
  145. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  146. package/dist/skills/phases/finder-phase/phases/grilling.md +40 -0
  147. package/dist/skills/phases/finder-phase/phases/handback.md +11 -18
  148. package/dist/skills/phases/finder-phase/phases/prototype.md +13 -21
  149. package/dist/skills/phases/finder-phase/phases/reconcile.md +21 -35
  150. package/dist/skills/phases/finder-phase/phases/research.md +13 -18
  151. package/dist/skills/phases/finder-phase/phases/return-target.md +14 -25
  152. package/dist/skills/phases/finder-phase/phases/router.md +22 -56
  153. package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  154. package/dist/skills/phases/finder-phase/references/root-routing.md +12 -20
  155. package/dist/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  156. package/dist/skills/phases/finder-phase/references/state-graph.md +27 -49
  157. package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +44 -357
  158. package/dist/skills/phases/functional-finder/SKILL.md +29 -62
  159. package/dist/skills/phases/requirements-phase/SKILL.md +49 -13
  160. package/package.json +7 -5
  161. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  162. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  163. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  164. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  165. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +0 -74
  166. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +0 -2
  167. package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  168. package/dist/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  169. package/dist/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  170. package/dist/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  171. package/dist/skills/phases/technical-finder/SKILL.md +0 -74
  172. package/dist/skills/phases/technical-finder/agents/openai.yaml +0 -2
@@ -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
@@ -240,14 +240,14 @@ mutation CreateStory(
240
240
  Story body ownership:
241
241
 
242
242
  - outcome
243
- - source `US-###`
243
+ - source outcome `OUT-###`
244
244
  - covered `AC-###`
245
245
  - demonstration
246
246
  - non-goals
247
247
  - immutable spec link
248
248
  - accepted artifact links
249
249
 
250
- Minimum body headings: `Outcome`, `Source stories`, `Acceptance criteria`, `Demonstration`, `Non-goals`, and `Links`.
250
+ Minimum body headings: `Outcome`, `Source outcomes`, `Acceptance criteria`, `Demonstration`, `Non-goals`, and `Links`.
251
251
 
252
252
  After creation, set Project fields:
253
253
 
@@ -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
 
@@ -3,70 +3,67 @@
3
3
  Create or resume exactly one Fog. Allocate its durable wiki identity before a
4
4
  provider write; attach the stable provider identity after exact readback.
5
5
 
6
+ At creation, record the Fog's immutable original intake lens as `Business` or
7
+ `Functional`. The lens selects the interaction profile that captured the
8
+ uncertainty; it is never a maturity state, Stage, or ordered prerequisite.
9
+ Resume preserves the original lens even when later work adds another kind of
10
+ evidence.
11
+
6
12
  Read the candidate Fog, direct children, relations, immutable evidence, and
7
13
  linked provider objects first. Ambiguous identity or conflicting accepted
8
14
  evidence produces zero writes.
9
15
 
10
- ## Ensure Pre-Resolution Grilling Child
11
-
12
- An exact Fog identity, exact Stage, durable child wiki identity, and stage
13
- cardinality key authorize ensuring one child shell before accepted evidence exists.
14
- Read all existing direct children before any create or update, then compare
15
- Stage, durable identity, and cardinality key together.
16
-
17
- Cardinality keys are:
16
+ ## Ensure Grilling Child
18
17
 
19
- - **Business**: the Fog-scoped Business singleton key.
20
- - **Functional**: one durable Functional Story-intent key per intended Story.
21
- - **Technical**: one Technical Story key using the exact stable Story identity.
18
+ An exact Fog identity, durable child wiki identity, and bounded unknown
19
+ authorize ensuring a generic `grilling` child shell before accepted evidence
20
+ exists. Read every direct child and relation before any create or update.
22
21
 
23
- Reuse the exact match and return its stable provider identity. When the complete
24
- child read proves zero matches, create one unresolved `grilling` child shell with
25
- its Fog relation, Stage, durable child wiki identity, and cardinality key, then
26
- read it back exactly. A duplicate, ambiguous identity, or conflict authorizes zero writes.
22
+ Reuse an obviously relevant child. Create another child only when the current
23
+ evidence supports separate useful Grilling work and the complete read proves no
24
+ match. Several generic Grilling children are valid; wrapper choice never limits
25
+ their count or requires the same identity across wrappers. Genuine ambiguity
26
+ returns human steering with zero writes.
27
27
 
28
- The child shell carries no accepted decision or immutable resolution pointer. It
29
- can host the interview and support relations, but cannot authorize backlog
30
- projection. Business, Functional, and Technical projection still require the
31
- immutable accepted grilling resolution persisted on that exact child.
28
+ After creation, read back the stable provider identity and exact Fog relation.
29
+ The unresolved shell carries its bounded unknown but no accepted decision or
30
+ immutable resolution pointer. It can host the interview and support relations;
31
+ only an immutable accepted Grilling resolution can return accepted evidence to
32
+ Finder reconciliation.
32
33
 
33
34
  ## Ensure Research or Prototype Support Child
34
35
 
35
- An exact Fog identity, exact unresolved grilling-child identity, support kind
36
- (`Research` or `Prototype`), durable support-child wiki identity, and one
37
- support identity key authorize ensuring the direct Fog support child before its
38
- answer or verdict exists. Read every direct Fog child and every relation first.
39
- Reuse one exact kind, identity-key, grilling-child relation match. Create one
40
- unresolved support child only when the complete read proves zero matches, then
41
- read back its stable provider identity and exact relation. A duplicate,
42
- ambiguous identity, wrong parent, or conflicting support relation authorizes
43
- zero writes.
36
+ An exact Fog identity, support kind (`Research` or `Prototype`), durable child
37
+ wiki identity, and the exact unknown or Grilling work supported authorize
38
+ ensuring a direct Fog support child. Read every direct child and relation first.
39
+ Reuse one exact kind, identity, and support-relation match. Create one unresolved
40
+ support child only when the complete read proves zero matches, then read back
41
+ its stable provider identity and exact relation. A duplicate, ambiguous
42
+ identity, wrong parent, or conflicting support relation produces zero writes.
44
43
 
45
44
  The unresolved support child carries no accepted answer, verdict, or immutable
46
- resolution pointer. Research or Prototype owns producing that evidence; this
47
- intake operation only establishes the stable child and relation needed to host
48
- the support cycle.
45
+ resolution pointer. Research and Prototype own producing durable evidence;
46
+ intake establishes only the stable child and support relation. Closure records
47
+ the answer or verdict, artifacts or evidence, observations, open decisions, and
48
+ immutable resolution pointer. Research and Prototype cannot authorize backlog
49
+ projection independently.
49
50
 
50
- Fog is lateral provenance. Preserve the user's uncertainty, accepted decisions,
51
- evidence links, and every Product Area, Initiative, Epic, Story, or Task the Fog
52
- enriched or produced. Fog never becomes a parent in the product hierarchy.
51
+ ## Provenance
53
52
 
54
- Its direct children use these provider-neutral semantics:
55
-
56
- - kind: `grilling`; required Stage: Business, Functional, or Technical
57
- - kind: Research or Prototype; linked to the exact grilling child supported
53
+ Fog is lateral provenance. Preserve the user's uncertainty, immutable original
54
+ intake lens, accepted decisions, evidence links, and every Product Area,
55
+ Initiative, Epic, Story, or Task the Fog enriched or produced. Fog never becomes
56
+ a parent in the product hierarchy.
58
57
 
59
- Research and Prototype closure records the answer or verdict, artifacts or
60
- evidence, observations, open decisions, and immutable resolution pointer. That
61
- evidence returns to Finder reconciliation. Support work cannot authorize backlog
62
- projection by itself.
58
+ Its direct children use these provider-neutral semantics:
63
59
 
64
- Create no duplicate Business child, no duplicate Functional child for one
65
- Story intent, and no duplicate Technical child for one Story.
60
+ - kind: `grilling`; linked to the bounded unknown it closes
61
+ - kind: `Research` or `Prototype`; linked to the exact unknown or Grilling work
62
+ it supports
66
63
 
67
- A Fog may target a fitting existing `V*` milestone iteration when Business
68
- intake selects it. Reuse that target downstream unless a later explicit decision
64
+ A Fog may target a fitting existing `V*` milestone iteration when intake
65
+ selects it. Reuse that target downstream unless a later explicit decision
69
66
  changes it. Moving the Fog requires a topology preview and approval.
70
67
 
71
- Returning from a Finder target depth leaves the Fog open. This branch records
72
- intake and provenance; it never infers production or completes the Fog.
68
+ Returning from a Finder's bounded result leaves the Fog open. This branch
69
+ records intake and provenance; it never infers production or completes the Fog.