@punks/cli 3.3.6 → 4.0.0

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 (127) hide show
  1. package/dist/BASELINE_CHANGELOG.md +10 -2
  2. package/dist/CHANGELOG.md +14 -0
  3. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  4. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +3 -0
  5. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +24 -0
  6. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +20 -4
  7. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +14 -9
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +61 -29
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +25 -6
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +10 -4
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +4 -0
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +20 -1
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +20 -3
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +13 -36
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +42 -26
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +80 -97
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +93 -96
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +43 -52
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +70 -136
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/backlog-initialization.md +88 -0
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +31 -0
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +66 -0
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +72 -0
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +27 -0
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/issue-reconciliation.md +76 -0
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +105 -0
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +43 -0
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +168 -0
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +190 -0
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +65 -0
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +137 -0
  32. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +30 -0
  33. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/agents/openai.yaml +2 -0
  34. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +10 -3
  35. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/closeout.md +12 -0
  36. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +21 -0
  37. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +8 -0
  38. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +18 -3
  39. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +9 -1
  40. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +276 -0
  41. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +43 -51
  42. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
  43. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +52 -0
  44. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +68 -0
  45. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +43 -0
  46. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +53 -0
  47. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +36 -0
  48. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +40 -0
  49. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +52 -0
  50. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +38 -0
  51. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +42 -0
  52. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +64 -0
  53. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +67 -0
  54. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +38 -0
  55. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +14 -27
  56. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +62 -0
  57. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +60 -0
  58. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +383 -0
  59. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +78 -0
  60. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/agents/openai.yaml +2 -0
  61. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +74 -0
  62. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +2 -0
  63. package/dist/baseline/scaffold-baseline.json +5 -5
  64. package/dist/baseline/scaffold-baseline.tgz +0 -0
  65. package/dist/index.js +6 -6
  66. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +20 -4
  67. package/dist/skills/agnostic/planning/create-plan/SKILL.md +14 -9
  68. package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +61 -29
  69. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +25 -6
  70. package/dist/skills/agnostic/planning/create-spec/SKILL.md +10 -4
  71. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +4 -0
  72. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +20 -1
  73. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +20 -3
  74. package/dist/skills/agnostic/planning/wayfinder/SKILL.md +13 -36
  75. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +42 -26
  76. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +80 -97
  77. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +93 -96
  78. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +43 -52
  79. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +70 -136
  80. package/dist/skills/agnostic/requirements/write-backlog/references/backlog-initialization.md +88 -0
  81. package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +31 -0
  82. package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +66 -0
  83. package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +72 -0
  84. package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +27 -0
  85. package/dist/skills/agnostic/requirements/write-backlog/references/issue-reconciliation.md +76 -0
  86. package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +105 -0
  87. package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +43 -0
  88. package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +168 -0
  89. package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +190 -0
  90. package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +65 -0
  91. package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +135 -0
  92. package/dist/skills/phases/business-finder/SKILL.md +30 -0
  93. package/dist/skills/phases/business-finder/agents/openai.yaml +2 -0
  94. package/dist/skills/phases/delivery-phase/phases/backlog.md +10 -3
  95. package/dist/skills/phases/delivery-phase/phases/closeout.md +12 -0
  96. package/dist/skills/phases/delivery-phase/phases/implement.md +21 -0
  97. package/dist/skills/phases/delivery-phase/phases/router.md +8 -0
  98. package/dist/skills/phases/delivery-phase/references/artifact-state.md +18 -3
  99. package/dist/skills/phases/design-phase/phases/backlog.md +9 -1
  100. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +276 -0
  101. package/dist/skills/phases/finder-phase/SKILL.md +43 -51
  102. package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
  103. package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +52 -0
  104. package/dist/skills/phases/finder-phase/phases/business-grilling.md +68 -0
  105. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +43 -0
  106. package/dist/skills/phases/finder-phase/phases/functional-grilling.md +53 -0
  107. package/dist/skills/phases/finder-phase/phases/handback.md +36 -0
  108. package/dist/skills/phases/finder-phase/phases/prototype.md +40 -0
  109. package/dist/skills/phases/finder-phase/phases/reconcile.md +52 -0
  110. package/dist/skills/phases/finder-phase/phases/research.md +38 -0
  111. package/dist/skills/phases/finder-phase/phases/return-target.md +42 -0
  112. package/dist/skills/phases/finder-phase/phases/router.md +64 -0
  113. package/dist/skills/phases/finder-phase/phases/technical-grilling.md +67 -0
  114. package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +38 -0
  115. package/dist/skills/phases/finder-phase/references/root-routing.md +14 -27
  116. package/dist/skills/phases/finder-phase/references/runtime-handoff.md +62 -0
  117. package/dist/skills/phases/finder-phase/references/state-graph.md +60 -0
  118. package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +383 -0
  119. package/dist/skills/phases/functional-finder/SKILL.md +78 -0
  120. package/dist/skills/phases/functional-finder/agents/openai.yaml +2 -0
  121. package/dist/skills/phases/technical-finder/SKILL.md +74 -0
  122. package/dist/skills/phases/technical-finder/agents/openai.yaml +2 -0
  123. package/package.json +4 -2
  124. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +0 -39
  125. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +0 -76
  126. package/dist/skills/phases/finder-phase/references/convergence.md +0 -39
  127. package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +0 -76
@@ -9,6 +9,11 @@ Use this skill to turn an existing repository into initial Harness wiki context
9
9
 
10
10
  ## Workflow
11
11
 
12
+ Before naming or rewriting domain concepts, read the canonical glossary in the
13
+ routed `requirements-grill` status artifact. Preserve its canonical terms;
14
+ route proposed terminology changes through `requirements-grill` instead of
15
+ silently renaming them.
16
+
12
17
  1. Read repo guidance and the scaffolded wiki guidance.
13
18
  2. Read `<wiki-root>/backlog-provider.md` and `<wiki-root>/wiki-framework.md`.
14
19
  3. Discover backlog context:
@@ -17,9 +22,20 @@ Use this skill to turn an existing repository into initial Harness wiki context
17
22
  - Treat remote backlog evidence and local clues as equally important and mandatory when available.
18
23
  - If either lane is missing or inaccessible, ask the developer for the backlog location or access path before assuming no backlog exists.
19
24
  4. Build and persist the Project Map before asking developer questions.
20
- 5. Run a targeted `requirements-grill` against the Project Map.
21
- 6. Compile confirmed grill decisions with `create-spec`. It writes agent-ready specs only when its readiness contract passes; preserve `spec-not-ready` gaps upstream.
22
- 7. Only after each spec is written and exposed at a verified stable blob URL, activate `write-backlog` to project it into provider-native delivery items.
25
+ 5. Run a targeted `requirements-grill` against the Project Map for project-wide
26
+ reconstruction decisions.
27
+ 6. Activate `write-backlog`'s backlog-initialization branch to reconcile the
28
+ Product/Backlog Root, Product Areas, Initiatives, `V*` context, and saved
29
+ views from accepted wiki and provider evidence.
30
+ 7. For every candidate existing flow accepted by the onboarding grill, invoke
31
+ `create-spec` and record its readiness result. Project an agent-ready spec
32
+ with `write-backlog` only when the reconstructed evidence already supplies
33
+ the exact existing Epic/Story and accepted projection authority required by
34
+ that branch. Otherwise record the missing authority and exact human Finder
35
+ invocation; retain the compiled spec without provider mutation.
36
+ 8. Leave new feature work to explicit human invocation of Business,
37
+ Functional, or Technical Finder. Onboarding never invokes a Finder
38
+ implicitly.
23
39
 
24
40
  For the required Project Map sections, onboarding artifacts, evidence labels, and spec reconstruction rules, read [references/artifact-contract.md](references/artifact-contract.md).
25
41
 
@@ -44,4 +60,4 @@ Persist the Project Map and grill status before developer questions. On resume,
44
60
  - Code can prove observed behavior, not original intent.
45
61
  - Reconstructed spec history must be evidence-backed.
46
62
  - Do not invent implementation notes, rationale, or tech-debt history without supporting artifacts.
47
- - Never mutate backlog before a spec is written and agent-ready.
63
+ - Use only `write-backlog` for physical provider mutation.
@@ -56,9 +56,10 @@ silently renaming them.
56
56
  work, derive and validate the architecture contract accepted in `SPEC.md`; route missing or contradictory target design back to `requirements-grill`.
57
57
  12. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
58
58
  13. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
59
- 14. Read `references/backlog-sync.md`. Sync backlog at epic/story level only when
60
- backlog sync is eligible and in scope; otherwise record an explicit skip
61
- reason and continue plan completion.
59
+ 14. Read `references/backlog-sync.md`. For eligible projected work, preserve the
60
+ provider Task identities and native blocker graph returned by
61
+ `write-backlog`; otherwise record an explicit skip reason and continue plan
62
+ completion.
62
63
  15. Invoke `$show-me` to present the task graph, dependencies, waves, and
63
64
  validation gates from the complete plan state before `$wait-what`. The
64
65
  presentation is a derived view; `PLAN.md` fields remain the execution authority.
@@ -81,12 +82,15 @@ silently renaming them.
81
82
  8. Assign each task the deduplicated union of skills whose exact triggers match
82
83
  in every touched scope, merging all touched scopes for
83
84
  cross-directory tasks.
84
- 9. Build plan-derived worker waves: place every currently unblocked task with
85
- a disjoint write scope in the same wave. Use a one-task wave only when
86
- dependencies or ownership leave one task unblocked.
85
+ 9. Build worker waves from the selected task-identity mode. Projected work uses
86
+ provider Tasks and native blocker edges. Planning-only work uses the explicit
87
+ unprojected `Tn` graph. Place every currently unblocked Task with a disjoint
88
+ write scope in the same wave. Use a one-Task wave only when blockers or
89
+ ownership leave one Task unblocked.
87
90
  10. Normalize every task with stable ids, `depends_on`, `location`,
88
91
  `owned_paths`, `wave_boundary`, `description`, `validation`, `status`, `log`,
89
- `files edited/created`, owning-story backlog references, `assigned_skills`,
92
+ `files edited/created`, task-identity mode and its required identity fields,
93
+ `assigned_skills`,
90
94
  `implementation_skill_guidance`,
91
95
  `tdd_status`, `tdd_target`, RED/GREEN commands, evidence fields,
92
96
  `codebase_design_notes`, `review_mode`, `runtime_validation`,
@@ -106,8 +110,9 @@ sections into `PLAN.md` and validate that they are internally consistent.
106
110
 
107
111
  - Preserve `No Stack Required` or `Ready` plus its dependency evidence.
108
112
  - Do not decide stack topology in `create-plan`.
109
- - Do not convert task-level `depends_on` into stacked PRs. Intra-epic task
110
- dependencies stay inside one PR and only control implementation order.
113
+ - `depends_on` preserves provider-native Task blocker edges. Those delivery
114
+ blockers do not imply stacked PRs; accepted branch/base intent owns PR
115
+ topology separately.
111
116
  - `Blocked` is invalid agent-ready input. Stop planning and report the stale or
112
117
  contradictory spec instead of producing an execution-ready plan.
113
118
  - If `Branch/Base Intent` is not `Not applicable`, make implementation tasks
@@ -1,31 +1,63 @@
1
1
  # Backlog Sync
2
2
 
3
- Use this reference only when an authoritative agent-ready `SPEC.md` exists at a verified stable blob URL and `write-backlog` has projected or must project it into provider-native delivery items. Concrete planning is downstream from both the spec and backlog projection.
4
-
5
- Backlog sync is eligible and in scope only when the planning input retains that
6
- agent-ready spec and its provider projection relation, and the requested work
7
- includes maintaining that relation. A planning-only request with no retained
8
- spec/projection relation has no backlog mutation requirement: record an explicit
9
- skip reason in `PLAN.md` and continue plan completion.
10
-
11
- ## Sync rules
12
-
13
- Use the backlog model owned by `write-backlog` at [backlog-model.md](https://github.com/wearedevpunks/skills/blob/main/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md). Do not restate its readiness, taxonomy, traceability, or mutation contracts here.
14
-
15
- Sync at epic/story level, never at plan-task level:
16
-
17
- - epic = capability-boundary projection of one existing spec
18
- - story = product-facing tracer bullet derived from `US-###` / `AC-###`
19
- - task = internal `PLAN.md` execution unit
20
-
21
- Plan tasks reference their owning story through `backlog_item_id` and `backlog_item_url`. Multiple tasks may reference one story. Never create another backlog item merely because delivery needs several execution tasks.
22
-
23
- Create or update backlog items only through `write-backlog`, and only when:
24
-
25
- - a required epic or story projection is missing
26
- - native story blockers need correction
27
- - immutable spec or plan links need refresh
28
-
29
- Keep bodies product-facing. Store files, commands, test cases, worker assignments, and implementation sequencing in `PLAN.md`.
30
-
31
- Record referenced or created epic/story ids and URLs in the plan. Use the selected provider's native CLI or tool when available.
3
+ Use this reference only when an authoritative agent-ready `SPEC.md` exists at a
4
+ verified stable blob URL and `write-backlog` has projected it into
5
+ provider-native delivery items. Concrete planning follows exact provider
6
+ readback.
7
+
8
+ Backlog sync is eligible and in scope when the planning input retains that spec, its
9
+ projection relation, and a request to maintain the relation. A planning-only
10
+ request without retained projection records an explicit skip reason in
11
+ `PLAN.md` and uses `task_identity_mode: planning-only` for every `Tn`. Mixing
12
+ identity modes in one plan is invalid.
13
+
14
+ ## Task identity handoff
15
+
16
+ Use the backlog model owned by `write-backlog` at
17
+ [backlog-model.md](https://github.com/wearedevpunks/skills/blob/main/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md).
18
+ Read its [technical projection
19
+ branch](../../write-backlog/references/technical-projection.md)
20
+ when the handoff includes implementation Tasks. Those references own taxonomy,
21
+ readiness, Task splitting, milestone rules, provider mutation, and readback.
22
+
23
+ Provider Tasks are the one execution graph. Before task synthesis, require the
24
+ exact `write-backlog` readback for every reachable Task:
25
+
26
+ - stable provider Task ID and URL
27
+ - stable parent Story identity and the same contextual `V*`
28
+ - native blocker edges resolved by stable provider Task ID
29
+ - immutable spec and Fog provenance links
30
+
31
+ `Tn` is a short plan alias for exactly one provider Task. Copy its ID into
32
+ `backlog_item_id`, its URL into `backlog_item_url`, and translate each native
33
+ blocker edge into `depends_on` through that one-to-one alias map. Preserve the
34
+ Task's same `V*` membership in the plan context. Worker waves derive from these
35
+ provider Tasks and native blockers, with disjoint `owned_paths` deciding which
36
+ unblocked Tasks may run in parallel.
37
+
38
+ Planning cannot create a second Task identity or private execution graph. When
39
+ a required provider Task, milestone membership, parent, source link, or blocker
40
+ edge is missing or stale, route the delta through `write-backlog` and resume
41
+ only from its exact readback. Planning performs no provider mutation.
42
+
43
+ ## Planning-only identity handoff
44
+
45
+ When provider projection is not retained, `Tn` is the only execution identity.
46
+ Set `task_identity_mode: planning-only`, `backlog_item_id: not_applicable`,
47
+ `backlog_item_url: not_applicable`, and `relation_mode: unprojected`. Record one
48
+ nonempty `backlog_sync_skip_reason` on every task. In this mode, `depends_on`
49
+ names other `Tn` identities in the same plan, and each task still carries exact
50
+ ownership, validation, and evidence fields. Provider parent, milestone,
51
+ provenance, blocker, mutation, and readback claims are absent because no
52
+ provider projection exists.
53
+
54
+ ## Completion criterion
55
+
56
+ Backlog sync is complete when the plan uses exactly one identity mode. In
57
+ `provider-task` mode, every `Tn` resolves one stable provider Task ID and URL,
58
+ every `depends_on` mirrors one native blocker edge, every Task retains its
59
+ Story's `V*`, and provider readback proves the graph. In `planning-only` mode,
60
+ every `Tn` carries the required `not_applicable` provider fields, `unprojected`
61
+ relation mode, and a nonempty skip reason. Keep files, commands, tests, workers,
62
+ and validation evidence in `PLAN.md`; keep projected provider bodies
63
+ owner-ready and product-facing through `write-backlog`.
@@ -49,9 +49,11 @@ Every task must include:
49
49
  - `status`
50
50
  - `log`
51
51
  - `files edited/created`
52
+ - `task_identity_mode`
52
53
  - `backlog_item_id`
53
54
  - `backlog_item_url`
54
55
  - `relation_mode`
56
+ - `backlog_sync_skip_reason`
55
57
  - `assigned_skills`
56
58
  - `implementation_skill_guidance`
57
59
  - `tdd_status`
@@ -88,7 +90,23 @@ parallelism id. `responsibility_acceptance_criteria` lists the stable criterion
88
90
  Every listed id must exist in the plan-level Responsibility Acceptance Criteria view, whose entry declares its
89
91
  `due_architecture_wave`. Each criterion maps to at least one task and exactly one due architecture wave.
90
92
 
91
- `backlog_item_id` and `backlog_item_url` reference the owning product-facing story, not a task-owned backlog record.
93
+ `task_identity_mode` is uniform across the plan:
94
+
95
+ - `provider-task`: `backlog_item_id` records the stable provider Task identity,
96
+ `backlog_item_url` records that exact Task's provider URL, `relation_mode` is
97
+ `native` or `body-links`, and `backlog_sync_skip_reason` is blank. Each `Tn`
98
+ is a plan alias for one provider Task, never a second execution identity.
99
+ Preserve the Task's exact parent Story, same `V*`, source links, and provider
100
+ readback in the plan context.
101
+ - `planning-only`: `Tn` is the execution identity. Set `backlog_item_id` and
102
+ `backlog_item_url` to `not_applicable`, `relation_mode` to `unprojected`, and
103
+ record a nonempty `backlog_sync_skip_reason`. Provider parent, milestone,
104
+ provenance, blocker, and readback claims are absent.
105
+
106
+ In `provider-task` mode, `depends_on` preserves or mirrors native provider Task
107
+ blocker edges through the `Tn` alias map. In `planning-only` mode, it names
108
+ other `Tn` identities in the same plan. Worker waves derive from the applicable
109
+ graph and disjoint ownership.
92
110
 
93
111
  `owned_paths` lists the exact write scope assigned to the task. Tasks in the
94
112
  same wave must have disjoint `owned_paths`.
@@ -96,9 +114,8 @@ same wave must have disjoint `owned_paths`.
96
114
  `wave_boundary` names the explicit execution wave derived from completed
97
115
  dependencies and disjoint ownership, for example `W1`.
98
116
 
99
- Multiple tasks may point to the same story when one story needs several execution steps.
100
-
101
- Do not create a new backlog item only because a task boundary exists in the plan.
117
+ Multiple provider Tasks may share one parent Story. Planning preserves those
118
+ separate provider identities and cannot create another Task identity for them.
102
119
 
103
120
  `assigned_skills` must list the skills used to shape the task during planning, not only skills expected during implementation. Skill guidance should be reflected in the task's boundary, validation, `tdd_target`, `codebase_design_notes`, and `review_mode`.
104
121
 
@@ -145,9 +162,11 @@ Use `not_applicable` for the other runtime fields when `runtime_validation: not_
145
162
  - **status**: Planned
146
163
  - **log**:
147
164
  - **files edited/created**:
165
+ - **task_identity_mode**: provider-task | planning-only
148
166
  - **backlog_item_id**: CP-128
149
- - **backlog_item_url**: https://linear.app/workspace/issue/CP-128/example-story
150
- - **relation_mode**: native | body-links
167
+ - **backlog_item_url**: https://linear.app/workspace/issue/CP-128/example-task
168
+ - **relation_mode**: native | body-links | unprojected
169
+ - **backlog_sync_skip_reason**:
151
170
  - **assigned_skills**: [`effect`, `tdd`]
152
171
  - **implementation_skill_guidance**:
153
172
  - **skill**: `effect`
@@ -14,7 +14,8 @@ no questions, runs no local grill, and performs no backlog mutation.
14
14
  Accept confirmed user decisions and their evidence: grill status/logs, research
15
15
  reports, prototype verdicts, ADRs, glossary, axioms, constraints, system facts,
16
16
  accepted implementation or testing decisions, dependency evidence, and accepted
17
- parent/base constraints.
17
+ parent/base constraints. A Technical Finder invocation also supplies the exact
18
+ selected Story context required by the readiness contract.
18
19
 
19
20
  ## Steps
20
21
 
@@ -48,9 +49,14 @@ silently renaming them.
48
49
 
49
50
  ## Boundaries
50
51
 
51
- - `SPEC.md` is provider-neutral authority. `write-backlog` projects epics and
52
- stories afterward; `create-plan` owns concrete files, commands, workers, and
53
- execution order.
52
+ - `SPEC.md` is provider-neutral authority for resolved requirements. During a
53
+ Technical Finder invocation, Business and Functional Finder establish the
54
+ Area, Initiative, Epic, and exact Story before the Technical stage compiles
55
+ the Story-scoped spec. Non-Finder compilation requires no provider Story.
56
+ In that Finder path, stable retention lets `write-backlog`'s Technical
57
+ projection enrich the exact Story and create its provider Task graph.
58
+ `create-plan` preserves those Task identities and owns files, commands,
59
+ workers, and validation detail.
54
60
  - A mutable path or local-only commit is not a backlog handoff. `write-backlog`
55
61
  receives only the verified stable blob URL.
56
62
  - Accepted technical and testing decisions belong in the spec. Detailed task
@@ -14,6 +14,10 @@ Required inputs:
14
14
  accepted branch/base intent with concrete evidence; blocked or unevidenced
15
15
  dependencies fail compilation
16
16
 
17
+ Technical Finder adds one conditional input: the exact selected Story context
18
+ established by its accepted Functional child. Non-Finder compilation has no
19
+ provider Story precondition.
20
+
17
21
  ## Dependency output contract
18
22
 
19
23
  Serialize both sections in every compiled spec:
@@ -37,6 +37,23 @@ Follow [references/parallel.md](references/parallel.md) as the execution contrac
37
37
  The parent owns wave orchestration and shared artifacts. Scoped workers own
38
38
  implementation tasks.
39
39
 
40
+ ## Task identity state
41
+
42
+ Read the plan's uniform `task_identity_mode` before execution.
43
+
44
+ - `provider-task`: each `Tn` aliases one stable provider Task. Immediately
45
+ activate `write-backlog` through its
46
+ [delivery-status.md](../write-backlog/references/delivery-status.md) branch for
47
+ a directly observed work start, blocker, pull request, merge, staging
48
+ deployment, or production deployment. Require exact readback before
49
+ advancing that Task and preserve its identity unchanged.
50
+ - `planning-only`: each `Tn` is the execution identity. Keep
51
+ `backlog_item_id` and `backlog_item_url` as `not_applicable`, preserve
52
+ `relation_mode: unprojected` and the skip reason, and advance from plan
53
+ dependencies and validation. Emit no provider Task status or readback claim.
54
+
55
+ Provider mechanics remain inside `write-backlog`.
56
+
40
57
  ## Quick start
41
58
 
42
59
  1. Resolve the target spec folder by checking, in order: `apps/wiki/content/docs/project/specs/<domain>/<spec>/`, legacy `apps/wiki/specs/<domain>/<spec>/`, then `docs/specs/<domain>/<spec>/`.
@@ -53,7 +70,9 @@ implementation tasks.
53
70
  6. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
54
71
  7. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
55
72
  8. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
56
- 9. If backlog sync is in scope, keep epic/story bodies product-facing and use native metadata or comments instead of execution handoff rewrites.
73
+ 9. Keep provider Task bodies owner-ready. Route lifecycle facts through
74
+ `write-backlog` instead of rewriting Epic, Story, or Task bodies with
75
+ execution handoff detail.
57
76
  10. For UI implementation changes, follow [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md) and use `repo-asset-management` for durable before/after asset links.
58
77
  11. For tasks with `runtime_validation: required`, follow [references/runtime-product-validation.md](references/runtime-product-validation.md) and do not mark them complete without conclusive runtime evidence; an exact blocker keeps the task blocked.
59
78
  12. After task and runtime checks, run `$verify-behavior` in `verify` mode for
@@ -105,6 +105,11 @@ Do not create the file when nothing durable must survive the run.
105
105
  ## 6. Shared execution invariants
106
106
 
107
107
  - Require every planned task to declare dependencies, owned paths, validation gates, and a wave boundary.
108
+ - Read the plan's uniform `task_identity_mode`. In `provider-task` mode, require
109
+ every `Tn` to resolve one stable provider Task ID and URL and preserve that
110
+ identity, its same `V*`, and native blocker edges. In `planning-only` mode,
111
+ keep `Tn` as the execution identity, provider fields `not_applicable`,
112
+ `relation_mode: unprojected`, and the nonempty backlog-sync skip reason.
108
113
  - Build each wave from tasks whose dependencies are complete and whose write scopes are disjoint.
109
114
  - Workers own implementation changes. The parent coordinates, reviews, validates, updates shared artifacts, and finalizes.
110
115
  - A wave may contain one worker when dependencies or owned paths leave one task unblocked.
@@ -126,9 +131,19 @@ Do not create the file when nothing durable must survive the run.
126
131
  - Keep scope discipline. Out-of-scope findings that do not affect the current implementation go to `IMPLEMENTATION-NOTES.md`, not silent scope creep.
127
132
  - Never leave sloppy debt, TODO placeholders, temporary compromises, or "later" implementation notes for in-goal work.
128
133
  - When unclear debt affects the current implementation and the answer is not already in the spec/plan/backlog, pause for a tiny `$requirements-phase` clarification instead of guessing.
129
- - If backlog sync is part of the run, keep epic and story bodies product-facing.
130
- - Execution-time backlog sync may use comments, links, native status, and native relations.
131
- - Never rewrite epic or story bodies with task ids, TDD targets, validation commands, or file lists.
134
+ - In `provider-task` mode, load `write-backlog`'s
135
+ [delivery-status.md](../../write-backlog/references/delivery-status.md) branch
136
+ for lifecycle facts. When work starts, becomes blocked, gains a pull request,
137
+ merges, or receives staging or production evidence, immediately call
138
+ `write-backlog` with only the directly observed fact and require exact
139
+ readback before advancing the Task. Planning-only tasks emit no provider
140
+ lifecycle mutation or readback claim.
141
+ - Merge, staging, and production are distinct observations. Merge is never
142
+ deployment evidence. Fog completion remains production-only and requires
143
+ production evidence for every accepted resulting Story and Task.
144
+ - Never rewrite Epic, Story, or Task bodies with Task ids, TDD targets,
145
+ validation commands, or file lists. Provider mapping and mutations remain in
146
+ `write-backlog`.
132
147
 
133
148
  ## 7. Shared upkeep after each completed wave
134
149
 
@@ -156,6 +171,8 @@ After each completed wave:
156
171
  - resolve any in-goal debt before advancing
157
172
  - update the spec-linked tech-debt file only for blocked or explicitly parked debt with exact owner/next action
158
173
  - if backlog sync is in scope, prefer native metadata changes or concise comments over body rewrites
174
+ - in `provider-task` mode, verify every observed provider Task fact has exact
175
+ `write-backlog` readback; a missing readback keeps that Task blocked
159
176
 
160
177
  ## 8. Handle blockers honestly
161
178
 
@@ -1,45 +1,22 @@
1
1
  ---
2
2
  name: wayfinder
3
- description: Route a foggy decision frontier. Use when work is too unclear for requirements, too broad for one delivery session, or needs classification as fog, grilling, research, prototype, epic, or story.
3
+ description: Recommend grilling, readonly research, or a prototype for one precise unknown already owned by an active workflow.
4
4
  ---
5
5
 
6
6
  # Wayfinder
7
7
 
8
- Lean route-selection primitive for unclear work.
8
+ Nonmutating decision-support primitive for one precise unknown already owned by
9
+ a Finder grilling child or another active workflow.
9
10
 
10
- `wayfinder` selects the next concept and route. It does not write provider
11
- payloads, create specs, plan implementation, or own backlog schema.
11
+ ## Selection
12
12
 
13
- ## Route Selection
13
+ 1. Read the precise unknown, owning item, current evidence, and decision owner.
14
+ 2. Recommend exactly one route:
15
+ - `grilling` when a human choice closes the unknown;
16
+ - `research` when readonly evidence can answer it;
17
+ - `prototype` when learning requires an artifact and human verdict.
18
+ 3. Return one recommendation, the evidence that selected it, the owning item,
19
+ and the result required before the active workflow can resume.
14
20
 
15
- 1. Name the frontier.
16
- - Capture the loose idea, current evidence, and why it is too foggy or broad for immediate delivery.
17
-
18
- 2. Inspect the current operating surface.
19
- - Prefer provider backlog state when available.
20
- - Treat docs, specs, grill logs, and notes as evidence, not the living map.
21
-
22
- 3. Classify the next item.
23
- - `fog`: root-level uncertainty; no capability module or execution shape is clear yet.
24
- - `grilling`: a human decision must close ambiguity.
25
- - `research`: readonly investigation can answer the unknown.
26
- - `prototype`: learning requires an artifact or experiment.
27
- - `epic`: post-spec capability projection.
28
- - `story`: accepted product-facing slice belongs under an epic.
29
-
30
- 4. Choose placement.
31
- - Keep `fog` at the backlog root.
32
- - For every non-fog item, choose or propose a capability module first.
33
- - Keep stories under epics.
34
- - Execution milestones are separately blocker-derived chronology; they do
35
- not determine capability placement.
36
-
37
- 5. Return a route.
38
- - State the selected concept, placement, evidence, unresolved questions, and recommended next skill.
39
-
40
- ## Completion Criteria
41
-
42
- - One route is selected.
43
- - The selected concept is one of `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
44
- - Provider materialization is explicitly delegated to `write-backlog` when backlog writes are needed.
45
- - The handoff says whether the next move is requirements, research, prototype, backlog writing, spec creation, or delivery.
21
+ The active workflow owns state, placement, lifecycle, and mutation. Wayfinder
22
+ creates no item, changes no provider, and authorizes no projection or delivery.
@@ -1,41 +1,57 @@
1
1
  # Write Backlog Examples
2
2
 
3
- ## Agent-ready spec projection
3
+ ## Reconstruct An Existing Product
4
4
 
5
- Input:
5
+ The wiki identifies the product goal, owner, repository, two Product Areas, and
6
+ three Initiatives. Fresh provider reads find the same Product/Backlog Root and
7
+ one current and one future `V*` milestone under stable identities.
6
8
 
7
- ```yaml
8
- readiness: agent-ready
9
- ```
9
+ Existing structure is reused. The proposal enriches missing root metadata,
10
+ links the wiki and repository, and adds the missing Fogs view. `$show-me`
11
+ presents that structural delta. After explicit approval, exact readback proves
12
+ the metadata, links, milestone context, and Product Map, Roadmap, Fogs, and
13
+ Current Delivery views.
10
14
 
11
- - immutable spec link: `<repository-url>/blob/<commit>/SPEC.md`
12
- - `US-001`: Team lead restores ownership of an unassigned submission.
13
- - `AC-001` — `Covers: US-001`: Reassignment preserves notes and evidence.
14
- - `AC-002` — `Covers: US-001`: The new owner sees the submission in their queue.
15
+ ## Cumulative Finder Projection
15
16
 
16
- Output:
17
+ One Fog records a product owner's request.
17
18
 
18
- - capability module: `Intake and review`
19
- - epic: `Submission lifecycle management`, linked to the immutable spec
20
- - story: `Lead restores ownership of an unassigned submission`
21
- - source: `US-001`
22
- - covers: `AC-001`, `AC-002`
23
- - demonstration: reassign one unassigned submission and observe preserved evidence plus the new owner's queue
19
+ 1. **Business**: accepted Business grilling reuses Product Area `Knowledge` and
20
+ Initiative `Reliable answers`, then enriches Epic `Source quality`. The Fog
21
+ links to all three; no duplicate structure is created.
22
+ 2. **Functional**: one accepted Functional child creates Story `Reader sees why
23
+ an answer is trustworthy` in `V4.0`. Its body preserves the product outcome,
24
+ `US-001`, `AC-001`, demonstration, evidence, and Fog provenance.
25
+ 3. **Technical**: an authoritative agent-ready `SPEC.md` at a stable blob URL
26
+ enriches the existing Epic and Story with immutable spec authority, then
27
+ creates required Task `Expose source confidence` and Task `Render confidence
28
+ explanation`. Both inherit `V4.0`; the second is blocked by the first.
24
29
 
25
- This is a vertical tracer bullet: one agent can deliver and demonstrate the product outcome without splitting database, API, UI, and tests into separate backlog stories.
30
+ The Task graph has stable provider identities, no missing target, no
31
+ future-iteration dependency, no self-edge, and no cycle. Exact readback proves
32
+ the Story parent and milestone, both Task parents and milestones, the native
33
+ blocker, source links, and Fog relations.
26
34
 
27
- ## Blocker graph
35
+ ## Existing Milestone Wins
28
36
 
29
- - `US-002 / Lead manages the unassigned queue` is blocked by `US-001 / Lead restores ownership`.
30
- - Both targets exist and the graph is acyclic.
31
- - Both stories share their containing epic's milestone when the provider supports membership; the native blocker relation carries their ordering.
37
+ The accepted Functional resolution targets the current product increment. A
38
+ fresh provider read finds a fitting `V4.0` milestone with the same goal and
39
+ outcomes. Reuse it. Do not propose another milestone because its display title
40
+ differs from the draft wording.
32
41
 
33
- If a blocker target is missing or the graph cycles, write nothing.
42
+ If milestone metadata is supported, preserve Version name, One-sentence product
43
+ goal, and Included product outcomes or capability changes. Otherwise preserve
44
+ the version name alone.
34
45
 
35
- ## Pre-spec intake resolution
46
+ ## Ambiguous Identity
36
47
 
37
- An earlier `prototype` item established the review-screen direction. Resolve that intake item with its verdict plus the immutable spec link. Create a separate epic projection. Do not relabel or silently promote the prototype item into the epic.
48
+ Two Epics share a similar title, and neither carries the Fog's durable wiki
49
+ identity. Show both candidates and return the identity gap with zero writes.
50
+ Title similarity cannot select an upsert target.
38
51
 
39
- ## Invalid input
52
+ ## Partial Provider Failure
40
53
 
41
- If readiness is absent, `AC-001` lacks `Covers: US-###`, a story is not demonstrable, or provider hierarchy cannot represent the required projection, return every gap before any mutation.
54
+ The Story write succeeds and the second Task relation fails. Stop, read back the
55
+ Story, Tasks, milestone memberships, and blockers, then return observed IDs plus
56
+ the missing relation. A retry reconciles fresh state and writes only that
57
+ validated relation.