@punks/cli 3.3.6 → 4.0.1

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 (142) hide show
  1. package/AGENTS.md +1 -1
  2. package/dist/BASELINE_CHANGELOG.md +11 -2
  3. package/dist/CHANGELOG.md +20 -0
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +9 -3
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +32 -0
  7. package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +1 -0
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +20 -4
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +14 -9
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +61 -29
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +25 -6
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +10 -4
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +4 -0
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +20 -1
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +20 -3
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +13 -36
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +42 -26
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +80 -97
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +93 -96
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +43 -52
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +70 -136
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/backlog-initialization.md +88 -0
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +31 -0
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +66 -0
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +72 -0
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +27 -0
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/issue-reconciliation.md +76 -0
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +105 -0
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +43 -0
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +168 -0
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +190 -0
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +65 -0
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +137 -0
  40. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +30 -0
  41. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/agents/openai.yaml +2 -0
  42. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +10 -3
  43. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/closeout.md +12 -0
  44. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +21 -0
  45. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +8 -0
  46. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +18 -3
  47. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +9 -1
  48. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +276 -0
  49. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +43 -51
  50. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
  51. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +52 -0
  52. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +68 -0
  53. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +43 -0
  54. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +53 -0
  55. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +36 -0
  56. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +40 -0
  57. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +52 -0
  58. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +38 -0
  59. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +42 -0
  60. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +64 -0
  61. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +67 -0
  62. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +38 -0
  63. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +14 -27
  64. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +62 -0
  65. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +60 -0
  66. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +383 -0
  67. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +78 -0
  68. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/agents/openai.yaml +2 -0
  69. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +74 -0
  70. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +2 -0
  71. package/dist/baseline/scaffold-baseline.json +5 -5
  72. package/dist/baseline/scaffold-baseline.tgz +0 -0
  73. package/dist/data/subagents/manifest.mjs +1 -0
  74. package/dist/index.js +6 -6
  75. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +20 -4
  76. package/dist/skills/agnostic/planning/create-plan/SKILL.md +14 -9
  77. package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +61 -29
  78. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +25 -6
  79. package/dist/skills/agnostic/planning/create-spec/SKILL.md +10 -4
  80. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +4 -0
  81. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +20 -1
  82. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +20 -3
  83. package/dist/skills/agnostic/planning/wayfinder/SKILL.md +13 -36
  84. package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
  85. package/dist/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
  86. package/dist/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
  87. package/dist/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
  88. package/dist/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
  89. package/dist/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
  90. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +42 -26
  91. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +80 -97
  92. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +93 -96
  93. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +43 -52
  94. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +70 -136
  95. package/dist/skills/agnostic/requirements/write-backlog/references/backlog-initialization.md +88 -0
  96. package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +31 -0
  97. package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +66 -0
  98. package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +72 -0
  99. package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +27 -0
  100. package/dist/skills/agnostic/requirements/write-backlog/references/issue-reconciliation.md +76 -0
  101. package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +105 -0
  102. package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +43 -0
  103. package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +168 -0
  104. package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +190 -0
  105. package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +65 -0
  106. package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +135 -0
  107. package/dist/skills/phases/business-finder/SKILL.md +30 -0
  108. package/dist/skills/phases/business-finder/agents/openai.yaml +2 -0
  109. package/dist/skills/phases/delivery-phase/phases/backlog.md +10 -3
  110. package/dist/skills/phases/delivery-phase/phases/closeout.md +12 -0
  111. package/dist/skills/phases/delivery-phase/phases/implement.md +21 -0
  112. package/dist/skills/phases/delivery-phase/phases/router.md +8 -0
  113. package/dist/skills/phases/delivery-phase/references/artifact-state.md +18 -3
  114. package/dist/skills/phases/design-phase/phases/backlog.md +9 -1
  115. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +276 -0
  116. package/dist/skills/phases/finder-phase/SKILL.md +43 -51
  117. package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
  118. package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +52 -0
  119. package/dist/skills/phases/finder-phase/phases/business-grilling.md +68 -0
  120. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +43 -0
  121. package/dist/skills/phases/finder-phase/phases/functional-grilling.md +53 -0
  122. package/dist/skills/phases/finder-phase/phases/handback.md +36 -0
  123. package/dist/skills/phases/finder-phase/phases/prototype.md +40 -0
  124. package/dist/skills/phases/finder-phase/phases/reconcile.md +52 -0
  125. package/dist/skills/phases/finder-phase/phases/research.md +38 -0
  126. package/dist/skills/phases/finder-phase/phases/return-target.md +42 -0
  127. package/dist/skills/phases/finder-phase/phases/router.md +64 -0
  128. package/dist/skills/phases/finder-phase/phases/technical-grilling.md +67 -0
  129. package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +38 -0
  130. package/dist/skills/phases/finder-phase/references/root-routing.md +14 -27
  131. package/dist/skills/phases/finder-phase/references/runtime-handoff.md +62 -0
  132. package/dist/skills/phases/finder-phase/references/state-graph.md +60 -0
  133. package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +383 -0
  134. package/dist/skills/phases/functional-finder/SKILL.md +78 -0
  135. package/dist/skills/phases/functional-finder/agents/openai.yaml +2 -0
  136. package/dist/skills/phases/technical-finder/SKILL.md +74 -0
  137. package/dist/skills/phases/technical-finder/agents/openai.yaml +2 -0
  138. package/package.json +4 -2
  139. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +0 -39
  140. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +0 -76
  141. package/dist/skills/phases/finder-phase/references/convergence.md +0 -39
  142. package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +0 -76
@@ -0,0 +1,88 @@
1
+ # Backlog Initialization
2
+
3
+ Use this branch to initialize a greenfield backlog, reconstruct an inherited
4
+ backlog, or reconcile an existing backlog. It is backlog initialization, not a
5
+ separate Epic-creation flow.
6
+
7
+ ## Read Before Proposal
8
+
9
+ Read the complete wiki context, repository identity, Product/Backlog Root,
10
+ Product Areas, Initiatives, Epics, Stories, Tasks, Fogs, provider metadata,
11
+ milestones, and saved views. Classify each desired object as exact reuse,
12
+ enrichment, missing, ambiguous, or conflicting. Existing coherent structure is
13
+ the default; initialization never recreates it under a new title.
14
+
15
+ For an inherited provider object with a stable provider ID but no durable wiki
16
+ binding, run the inherited-object adoption path in
17
+ `issue-reconciliation.md` before classifying it as missing or creating a
18
+ replacement. Adoption is an explicit identity decision, not automatic reuse.
19
+
20
+ ## Root Metadata
21
+
22
+ Reconcile this complete product context:
23
+
24
+ - Product brief
25
+ - business objectives
26
+ - target users
27
+ - product boundaries
28
+ - existing Product Map
29
+ - durable constraints and non-goals
30
+ - operating rules
31
+ - owner
32
+ - repository link
33
+ - wiki link
34
+ - current and future `V*` milestone context
35
+
36
+ Project only provider-supported metadata. Preserve the full authoritative value
37
+ in the wiki and link it when the provider has no native field.
38
+
39
+ ## Structure
40
+
41
+ Create or reconcile one Product/Backlog Root and evidence-backed Product Areas
42
+ and Initiatives. Business grilling creates or enriches Epics later; backlog
43
+ initialization does not invent empty Epics, Stories, or Tasks.
44
+
45
+ Creating a root, Product Area, Initiative, semantic field, or saved view is a
46
+ material structural change. Use `$show-me` to preview existing versus intended
47
+ topology and obtain explicit approval before writing.
48
+
49
+ ## Milestone Context
50
+
51
+ Ensure one contextual current and one contextual future `V*` milestone are
52
+ identifiable. Reuse a fitting existing milestone before proposing another.
53
+ Preserve every valid existing `V*` milestone; propose a new one only when none fits
54
+ and an accepted version identity exists. Never invent a version number.
55
+
56
+ When the provider supports milestone metadata, write:
57
+
58
+ 1. Version name
59
+ 2. One-sentence product goal
60
+ 3. Included product outcomes or capability changes
61
+
62
+ When those metadata fields are unsupported, name only is sufficient. Moving
63
+ work between milestones changes roadmap commitment and requires explicit
64
+ approval.
65
+
66
+ ## Product-Owner Views
67
+
68
+ Create or preserve exactly these semantic views:
69
+
70
+ - **Product Map**: Product Area → Initiative → Epic, showing the existing
71
+ product shape without Story or Task noise.
72
+ - **Roadmap**: ordered `V*` milestone iterations, with Story and Task progress
73
+ rolled up to Epic and Initiative outcomes.
74
+ - **Fogs**: business status, affected Product Areas, Initiatives, and Epics,
75
+ target iteration, generated Stories and Tasks, completion iteration, and
76
+ production evidence.
77
+ - **Current Delivery**: active Stories and Tasks grouped by milestone iteration,
78
+ status, owner, and blocker readiness.
79
+
80
+ Reuse an equivalent configured view. Creating or materially changing a view
81
+ requires the structural preview and approval gate.
82
+
83
+ ## Completion
84
+
85
+ Write only the approved missing or stale delta. Read back the root metadata,
86
+ hierarchy, milestone context, semantic fields, and four views. Return exact
87
+ created, enriched, and unchanged identities. Initialization is incomplete when
88
+ any intended structure or representation cannot be read back.
@@ -0,0 +1,31 @@
1
+ # Business Projection
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.
6
+
7
+ ## Resolve The Path
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.
18
+
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.
24
+
25
+ ## Write And Read Back
26
+
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.
@@ -0,0 +1,66 @@
1
+ # Delivery Status
2
+
3
+ Use this branch when a delivery caller supplies a fact it directly observed for
4
+ an exact linked Story or Task. Preserve the existing provider identities;
5
+ delegate provider mapping, mutation, and readback to the selected adapter.
6
+
7
+ Require stable provider IDs for the exact linked Story or Task. They remain the
8
+ same identities across delivery updates. This branch creates no new Story,
9
+ Task, or provider object.
10
+
11
+ ## Observed Fact Handoff
12
+
13
+ The delivery caller reports only facts it directly observed. Accept one or more
14
+ of these facts, each with its evidence source and observation time:
15
+
16
+ - work started or changed to in-progress
17
+ - blocked, including the blocker reason and evidence
18
+ - pull request URL and observed state
19
+ - merge evidence
20
+ - staging deployment evidence
21
+ - production deployment evidence
22
+ - release branch, release name, and observed-at timestamp, when observed
23
+
24
+ For each newly observed fact, immediately record the exact linked Story or Task
25
+ 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.
28
+
29
+ ## Evidence Boundaries
30
+
31
+ Record directly observed merge evidence as a merge fact only. Merge is never
32
+ staging deployment or production deployment. Staging is never production.
33
+ Recording merge leaves staging evidence, production evidence, and Fog
34
+ completion unchanged; the Fog remains open.
35
+
36
+ ## Fog Completion
37
+
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.
42
+
43
+ Complete the Fog only when exact production evidence covers every accepted
44
+ resulting Story and Task and therefore proves the Fog's accepted Epic
45
+ contribution reached production. A shared Epic may remain open for work outside
46
+ this Fog. Child creation, Task creation, merge, and staging deployment cannot
47
+ complete a Fog.
48
+
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.
54
+
55
+ ## Result
56
+
57
+ The provider adapter owns status and evidence mapping, mutation, and exact
58
+ readback. Return the stable Story or Task identity, exact observed mutations,
59
+ exact readback, unchanged facts, and any unresolved delta.
60
+
61
+ On partial provider failure, stop and read back the exact observed writes and
62
+ unresolved delta. Resume from that readback and apply only the unresolved,
63
+ still-authorized fact; never replay the full update blindly.
64
+
65
+ This branch defines no CI/CD trigger, pipeline, or adapter design and performs
66
+ no automatic pipeline integration. It records evidence supplied by the caller.
@@ -0,0 +1,72 @@
1
+ # Fog Intake
2
+
3
+ Create or resume exactly one Fog. Allocate its durable wiki identity before a
4
+ provider write; attach the stable provider identity after exact readback.
5
+
6
+ Read the candidate Fog, direct children, relations, immutable evidence, and
7
+ linked provider objects first. Ambiguous identity or conflicting accepted
8
+ evidence produces zero writes.
9
+
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:
18
+
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.
22
+
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.
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.
32
+
33
+ ## Ensure Research or Prototype Support Child
34
+
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.
44
+
45
+ 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.
49
+
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.
53
+
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
58
+
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.
63
+
64
+ Create no duplicate Business child, no duplicate Functional child for one
65
+ Story intent, and no duplicate Technical child for one Story.
66
+
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
69
+ changes it. Moving the Fog requires a topology preview and approval.
70
+
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.
@@ -0,0 +1,27 @@
1
+ # Functional Projection
2
+
3
+ Require the exact Product Area → Initiative → Epic path, Fog identity, and one
4
+ immutable accepted Functional grilling resolution.
5
+
6
+ Create or enrich exactly one Story per Functional child. The Story preserves:
7
+
8
+ - actor and trigger
9
+ - observable workflow and result
10
+ - applicable business rules
11
+ - visible alternate and failure paths
12
+ - product-level edge cases
13
+ - acceptance signals and boundaries
14
+ - non-goals
15
+ - known product dependencies
16
+ - durable accepted-artifact links
17
+ - unresolved engineering handoff questions
18
+ - immutable Business and Functional evidence plus Fog provenance
19
+
20
+ The Story belongs to exactly one contextual `V*` milestone iteration. Reuse the
21
+ Functional resolution's fitting existing milestone. A missing exact iteration
22
+ or proposed movement stops before writing and requires a human decision.
23
+
24
+ Use stable identity reconciliation before create or enrich. Preserve user wording
25
+ and `US-###`/`AC-###` traceability when available. Read back the
26
+ Story parent, milestone, source links, and Fog relation. Return the stable Story
27
+ identity to Finder.
@@ -0,0 +1,76 @@
1
+ # Issue Reconciliation
2
+
3
+ ## Read Before Write
4
+
5
+ Require one durable wiki identity and any known stable provider identity. Search
6
+ the complete verified destination for the expected object type, durable identity,
7
+ source links, and provider identity. Then apply exactly one outcome:
8
+
9
+ - **Exact create**: zero stable matches plus one durable wiki identity after a
10
+ complete provider search and no unresolved adoption candidate authorizes exact
11
+ create when the semantic branch permits a new object.
12
+ - **Enrich**: exactly one stable provider match carrying the same durable wiki
13
+ identity authorizes enrich or unchanged classification after its current state
14
+ is read.
15
+ - **Stop**: ambiguous identity, conflicting identity, or an incomplete provider search
16
+ authorizes zero provider mutations.
17
+
18
+ For an enrich candidate, read the exact object, expected parent, relations,
19
+ milestone, fields, status, owner, source links, and provider revision. Compare
20
+ that fresh state with accepted intent.
21
+
22
+ Title-only matching is discovery evidence. Show all candidates and return the
23
+ missing identity or decision.
24
+
25
+ ## Inherited-Object Adoption
26
+
27
+ Use adoption when an inherited provider object has a stable provider ID and the
28
+ intended durable wiki identity, but the provider object does not yet carry that
29
+ wiki binding. Adoption runs before exact-create classification.
30
+
31
+ 1. Perform a full provider candidate read by stable provider ID: type, title,
32
+ body, parent, children, relations, milestone, source links, and current
33
+ provenance.
34
+ 2. Make an exact topology and provenance comparison against the durable wiki
35
+ object and intended Product/Backlog Root path.
36
+ 3. Use `$show-me` to present the candidate, comparison, and proposed binding.
37
+ 4. Require explicit human approval to bind the durable wiki identity.
38
+ 5. Bind the durable wiki identity to that existing provider object through the
39
+ supported provider representation, then perform exact readback of the binding,
40
+ stable provider ID, topology, and provenance.
41
+
42
+ Ambiguous identity or conflicting candidates produce zero writes. Never use
43
+ title-only similarity for automatic adoption. A topology or provenance mismatch
44
+ remains a structural decision; adoption cannot silently reparent, merge, rename,
45
+ or change scope. After successful binding, rerun the normal decision table to
46
+ classify any additional enrichment.
47
+
48
+ Classify the intended delta:
49
+
50
+ - unchanged: exact provider state already matches
51
+ - create: complete search proves no stable match and the branch authorizes one
52
+ exact object with the durable wiki identity
53
+ - additive: an unambiguous source or provenance link is missing
54
+ - stale repair: an exact object has an unambiguous stale operational field
55
+ - structural: boundary, goal, parent, roadmap commitment, duplicate closure,
56
+ merge, split, reparenting, milestone movement, or reorganization changes
57
+ - conflicting: durable semantic authorities disagree
58
+
59
+ Additive and stale repairs may proceed after complete preflight. Structural
60
+ changes require `$show-me` preview and explicit approval. Conflicting meaning
61
+ requires a new decision persisted in its durable source before another attempt.
62
+
63
+ ## Partial Failure Recovery
64
+
65
+ When a provider request fails after any write, stop. Read back every intended
66
+ object and relation, record the observed partial delta, and return stable IDs
67
+ plus the first unresolved operation. On resume, repeat read-before-write and
68
+ apply only the still-missing validated delta. Never replay the original batch
69
+ blindly or claim transactional atomicity.
70
+
71
+ ## Exact Readback
72
+
73
+ Success requires exact readback of identity, hierarchy, membership, milestone,
74
+ blockers, semantic fields, provenance, source links, views, and status for the
75
+ selected branch. A mismatch is unresolved reconciliation and returns control
76
+ without reporting completion.
@@ -0,0 +1,105 @@
1
+ # Normalization
2
+
3
+ Use this branch only for an explicit Normalization request. Invocation cadence
4
+ belongs to the caller.
5
+
6
+ ## Inventory
7
+
8
+ Read the project wiki, fresh provider state, and every durable wiki and stable
9
+ provider identity before classifying drift. Read the configured
10
+ Product/Backlog Root, full product topology, Fog children, semantic fields,
11
+ views, milestones, statuses, relations, provenance, and immutable evidence.
12
+ Complete the inventory only when every relevant object is classified as exact,
13
+ drifted, ambiguous, or conflicting.
14
+
15
+ Detect every accepted drift class:
16
+
17
+ - invalid Fog child placement
18
+ - missing or invalid `Grilling Stage`
19
+ - duplicate or ambiguous structures
20
+ - stale links or status
21
+ - hierarchy drift
22
+ - roadmap or milestone drift
23
+ - wiki/provider disagreement
24
+
25
+ Audit the Fog-child lifecycle against these exact semantics:
26
+
27
+ - Fog direct children are `grilling`, Research, or Prototype items.
28
+ - Every `grilling` child has exactly one `Grilling Stage`: Business,
29
+ Functional, or Technical. `Grilling Stage` is absent from every other kind.
30
+ - One Fog has one Business child, one or more Functional children, and one
31
+ Technical child per Story.
32
+ - Research and Prototype children link to the exact grilling child they support.
33
+
34
+ New and resumed work uses the Fog-child lifecycle immediately. There is no
35
+ compatibility writer for the former Fog-graduation model. Normalization may
36
+ describe a legacy-shape migration, but that migration is a structural proposal
37
+ subject to preview and explicit approval.
38
+
39
+ Provider state proves operational facts. The wiki proves durable product
40
+ meaning. Stable provider identity plus durable wiki identity proves an exact
41
+ object; title similarity remains discovery evidence.
42
+
43
+ ## Classify The Delta
44
+
45
+ For each finding, record the stable identities, owning authority, observed
46
+ state, intended state, drift class, dependent objects, and proposed action.
47
+ Ambiguous identities, incomplete searches, or conflicting authorities produce
48
+ zero writes. A wiki/provider disagreement about product meaning requires a new
49
+ human decision persisted in the wiki before another attempt.
50
+
51
+ Automatically repair only an unambiguous additive mapping or stale operational
52
+ field after complete preflight proves all of these conditions:
53
+
54
+ 1. Durable wiki identity and stable provider identity select one exact object.
55
+ 2. Fresh authority makes the intended value single-valued.
56
+ 3. The delta adds a missing provenance or source relation, or replaces one
57
+ stale status, link, owner, or other operational value with that exact value.
58
+ 4. The delta preserves hierarchy, product boundary, goal, roadmap commitment,
59
+ milestone membership, duplicate semantics, and every dependent relation.
60
+
61
+ Apply one safe repair at a time. Exact readback must prove the repaired field or
62
+ relation before the next write. For example, when one exact Story retains its
63
+ Fog relation but lacks the immutable reciprocal Fog source link required by the
64
+ accepted evidence, add that link and read back the exact Story body and Fog
65
+ relation. A similar title or inferred intent never qualifies.
66
+
67
+ ## Structural Approval
68
+
69
+ Treat duplicate closure, merge, split, boundary change, goal change,
70
+ reparenting, milestone movement, reorganization, and migration from the former
71
+ Fog-graduation shape as structural. Use `$show-me` to present the exact current
72
+ and proposed topology before asking for explicit approval:
73
+
74
+ ```text
75
+ Current (fresh provider read + durable wiki identity)
76
+ Root [stable ID]
77
+ └── Area A [stable ID]
78
+ └── Initiative A [stable ID]
79
+ └── Epic A [stable ID]
80
+
81
+ After (proposal only)
82
+ Root [same stable ID]
83
+ └── Area B [stable ID]
84
+ └── Initiative A [same stable ID, proposed new parent]
85
+ └── Epic A [same stable ID]
86
+
87
+ State: awaiting explicit approval
88
+ Provider mutations: zero
89
+ ```
90
+
91
+ Label every unchanged, added, removed, moved, merged, split, and superseded
92
+ object. Include affected Fogs, Stories, Tasks, `V*` memberships, blockers,
93
+ views, source links, and the durable authority for the intended shape. The
94
+ visual explains the decision; it cannot grant approval. Keep zero provider
95
+ mutations until the user explicitly approves that exact proposal. A revised
96
+ proposal requires a new preview and approval.
97
+
98
+ ## Apply And Return
99
+
100
+ Load provider-specific mechanics only from the selected Linear or GitHub
101
+ adapter. Apply the validated delta through that adapter, then use its exact
102
+ readback contract. Return each finding, classification, stable identity,
103
+ authority, approved decision, repair result, readback, and unresolved blocker.
104
+ Normalization is complete only when every finding is repaired, unchanged,
105
+ awaiting an explicit structural decision, or stopped with exact evidence.
@@ -0,0 +1,43 @@
1
+ # Project Context
2
+
3
+ Read this reference for every mutation.
4
+
5
+ ## Authority
6
+
7
+ 1. A new explicit human decision resolves a genuine semantic conflict after it
8
+ is persisted in the durable source that owns that meaning.
9
+ 2. The project wiki owns durable product meaning: Product brief, business
10
+ objectives, target users, product boundaries, existing Product Map,
11
+ constraints and non-goals, operating rules, owner, repository link, wiki
12
+ link, and current and future `V*` milestone context.
13
+ 3. `.devpunks/settings.json` selects the provider and Product/Backlog Root. It
14
+ does not define product meaning.
15
+ 4. Fresh provider reads prove current objects, identities, relations, metadata,
16
+ views, milestones, and statuses.
17
+ 5. Repository remotes and provider links prove repository identity. Immutable
18
+ accepted evidence uses stable commit/blob links, not mutable branch URLs.
19
+
20
+ Read `apps/wiki/` and its routed product docs before composing the intended
21
+ delta. Pin the verified repository link and wiki link on the Product/Backlog
22
+ Root when the provider supports them. Keep the richer context in the wiki when
23
+ the provider cannot represent a field.
24
+
25
+ ## Identity
26
+
27
+ Verify the actual provider workspace, root identity, repository identity, and
28
+ wiki identity. Connector or MCP aliases are routing hints, not workspace proof.
29
+ Several independent Product/Backlog Roots may exist in one workspace.
30
+
31
+ Durable wiki identity is required for every intended object; stable provider
32
+ identity is required after provider readback and on every later update. Apply
33
+ the create/enrich/stop decision table in `issue-reconciliation.md`. Titles,
34
+ similar descriptions, and nearby placement are discovery signals only.
35
+
36
+ ## Conflict Handling
37
+
38
+ - Provider state defeats stale cached state for operational facts.
39
+ - Wiki meaning defeats provider prose copied from an older decision.
40
+ - A real wiki/provider semantic conflict requires a new explicit decision and
41
+ durable source update before mutation.
42
+ - Preserve user ticket wording unless an accepted decision changes its meaning.
43
+ Use `$wait-what` to re-pitch unclear language in canonical project terms.