@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
@@ -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.
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: make-tsuite
3
+ description: Audit an automated software test portfolio for signal, overlap, ownership, and placement, or implement test-only suite cleanup and coverage. Use for suite evaluation, redundant-test removal, test reorganization, or adding automated tests without changing production behavior; use tdd for production behavior changes.
4
+ ---
5
+
6
+ # Make TSuite
7
+
8
+ Build a risk-driven automated software test portfolio. `TSuite` means test suite, not TypeScript; apply this skill across languages, frameworks, toolchains, and repository layouts.
9
+
10
+ ## Boundary
11
+
12
+ Production-reachable content is immutable. Writable scope is limited to automated tests and test-scoped fixtures, harnesses, seeds, artifacts, configuration, and dependencies. Inline tests or shared manifests are writable only where changed regions are mechanically isolated to test compilation or execution. Ambiguous isolation is a blocker requiring handback.
13
+
14
+ Before editing, classify every allowed path or hunk as test-scoped. After editing, inspect the complete source-control diff; completion requires every changed region and dependency to remain unreachable from production behavior, artifacts, and deployable wiring.
15
+
16
+ Keep a product defect visible as a failing test with observed failure evidence, then hand back a separate production requirement. A test-only task reaches GREEN only through test-scoped changes.
17
+
18
+ ## Modes
19
+
20
+ - **Audit:** inspect and report; make no changes. Match the output to the request: a cleanup audit returns removable groups, while a portfolio evaluation includes all dispositions.
21
+ - **Implement:** create, strengthen, move, merge, or remove tests only when the user authorized changes.
22
+
23
+ Mode selection is complete when one mode is named and writable scope is explicit.
24
+
25
+ ## Establish authority
26
+
27
+ Read repository and scoped instructions, then inspect relevant tests, fixtures, owned public seams, and their execution mechanism. Where present, inspect discovery or selection configuration and required delivery gates. Consult history or design records only when current files do not explain an important convention.
28
+
29
+ Authority discovery is complete when every test package in scope has an identified behavior owner, public or owned seam, execution and selection path, applicable repository rule, and required delivery gate when one exists.
30
+
31
+ ## Semantic lock
32
+
33
+ Before changing an existing test, record its semantic fingerprint:
34
+
35
+ - capability and current behavior;
36
+ - public or owned seam;
37
+ - actor, authority, and isolation boundary;
38
+ - material setup, input, and fixture state;
39
+ - observable result or typed failure;
40
+ - side effect, absence of side effect, or recovery invariant.
41
+
42
+ A test transformation is equivalent only when the same behavior still passes and the same regression still fails. A changed actor, authority, input class, seam, outcome, or side effect is a new test decision.
43
+
44
+ Semantic lock is complete when every changed case maps its before-and-after fingerprint with no unexplained material difference.
45
+
46
+ ## Route by work
47
+
48
+ - For inventory, signal classification, overlap, or removal, read [audit-portfolio.md](references/audit-portfolio.md).
49
+ - For authorized test changes, read [implement-suite.md](references/implement-suite.md).
50
+ - For routes, APIs, messages, commands, or protocol scenarios, also read [route-api-design.md](references/route-api-design.md).
51
+ - For browser, mobile, desktop, or other user journeys, also read [user-journey-design.md](references/user-journey-design.md).
52
+
53
+ ## Report
54
+
55
+ Separate observed facts from recommendations. Report execution failures as blockers, never passes.
56
+
57
+ An audit report is complete when each requested finding names the cohesive test group, disposition, protected or absent invariant, and evidence. An implementation report is complete when it includes changed and retained proof, semantic-lock results, execution invocation when available and observed results, unresolved product defects, and production-immutability proof for every changed region.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Make TSuite"
3
+ short_description: "Audit or improve test portfolios"
4
+ default_prompt: "Use $make-tsuite to audit this test portfolio or implement authorized test-only suite changes while preserving behavior semantics."
@@ -0,0 +1,47 @@
1
+ # Audit the portfolio
2
+
3
+ ## Inventory test packages
4
+
5
+ A **test package** is the smallest cohesive cluster of cases that provides one body of evidence for a protected capability or invariant. It may be one case, one file, or several files. Group by cohesive evidence rather than directory names; record its seam, fixtures, selection path, and delivery gate where each exists.
6
+
7
+ For every package in scope, map:
8
+
9
+ - member cases and claimed behavior or invariant;
10
+ - public or owned seam;
11
+ - execution tier and boundary crossed;
12
+ - purpose or technique where material, such as example-based, property/fuzz, performance, security, resilience, visual, mutation, or hardware-in-loop;
13
+ - behavior owner and current location;
14
+ - execution mechanism, discovery or selection path, focused invocation when available, and required delivery gate when present;
15
+ - overlapping proof at the same or stricter tier;
16
+ - runtime cost, nondeterministic dependencies, and fixture ownership.
17
+
18
+ Read assertions and fixtures. Use listing or discovery output when static inspection cannot establish selection. Skipped cases, setup success, and importability are not executable product proof.
19
+
20
+ Inventory is complete when every package names its members and at least one claimed invariant, and every material invariant in scope has its strongest existing proof path identified.
21
+
22
+ ## Judge signal
23
+
24
+ Give each package one disposition: `retain`, `strengthen`, `move`, `merge`, or `remove`.
25
+
26
+ Judge:
27
+
28
+ 1. **Sensitivity:** a plausible regression fails for the intended reason.
29
+ 2. **Observability:** assertions reach a durable result, failure, authority boundary, side effect, or compatibility contract.
30
+ 3. **Uniqueness:** the required gate lacks cheaper equivalent proof.
31
+ 4. **Fidelity:** owned behavior remains real across the seam under test.
32
+ 5. **Durability:** implementation details can change without invalidating the protected behavior.
33
+ 6. **Cost:** runtime and maintenance are proportionate to unique risk covered.
34
+
35
+ Static or indirect tests remain useful when they own an architecture boundary, source parity rule, migration invariant, or public compatibility contract. Name that ownership directly.
36
+
37
+ Classification is complete when every package has one disposition supported by observed evidence across all six criteria.
38
+
39
+ Valid sensitivity evidence leaves production unchanged: an observed historical or pre-fix failure; a mutation in a disposable copy; or a controlled perturbation of external input, fixture, or test double that preserves owned behavior as real. Label static sensitivity reasoning `unverified`.
40
+
41
+ ## Removal proof
42
+
43
+ Choose `remove` only when the package has no observable invariant, or retained proof covers every material element in its semantic fingerprint. A failing test that exposes a product regression is repair or production-fix evidence.
44
+
45
+ For an authorized deletion, map each removed fingerprint element to retained proof selected by the same or stricter required gate when gates exist. A higher tier replaces lower-tier proof only when actor, authority, capability, outcome, side effect, and isolation remain covered.
46
+
47
+ Removal proof is complete when every deleted invariant maps to retained proof, or is explicitly classified `no observable invariant`, and the relevant execution mechanism selects the retained proof.
@@ -0,0 +1,40 @@
1
+ # Implement the suite
2
+
3
+ Read [the TDD skill](../../tdd/SKILL.md) and its high-signal test guidance before changing tests. Apply its public-seam, vertical-slice, and honest-evidence rules. This skill's immutable-production boundary replaces TDD's production GREEN step.
4
+
5
+ ## Place proof
6
+
7
+ Choose the lowest execution tier that observes the invariant without simulating its boundary:
8
+
9
+ - **Unit:** deterministic behavior owned by one module or component.
10
+ - **Integration:** collaboration across real adapters, persistence, filesystem, transport, configuration, or lifecycle seams.
11
+ - **Static/contract:** compatibility at an exported, generated, schema, or compile boundary; label whether proof is runtime or static.
12
+ - **Support:** test infrastructure behavior whose owner is the harness or fixture system.
13
+ - **System end-to-end:** distinct public intent crossing real applications, processes, devices, command interfaces, or network boundaries.
14
+
15
+ Purpose and technique are separate from tier. Apply property/fuzz, performance, security, resilience, visual, mutation, or hardware-in-loop testing at the honest tier when the protected risk requires it. Use repository-owned placement and naming conventions. Fixture setup may establish prerequisites; it must preserve the behavior under test as real.
16
+
17
+ Placement is complete when every changed test names its owner, invariant, tier, and why a lower tier cannot observe the boundary honestly.
18
+
19
+ ## Execute one vertical slice
20
+
21
+ For each accepted invariant:
22
+
23
+ 1. Confirm the target is selected by the intended execution mechanism and required delivery gate when one exists.
24
+ 2. Capture the semantic fingerprint of every existing case affected.
25
+ 3. Add or transform one slice through the owned public seam.
26
+ 4. Choose the honest evidence state:
27
+ - already-correct behavior: capture a passing characterization and demonstrate sensitivity through an observed historical or pre-fix failure, a mutation in a disposable copy, or controlled perturbation of external input, fixture, or test double that keeps owned behavior real; label static reasoning `unverified`;
28
+ - established regression: capture genuine RED for the expected product reason and hand back production work;
29
+ - broken test infrastructure: reach GREEN using only test-scoped changes.
30
+ 5. Run the focused test through its execution mechanism when available, then broader owning gates proportional to the boundary changed.
31
+
32
+ A product RED preserves an existing failure. A newly captured RED selected by a required delivery gate remains blocked and cannot be landed as completed work. Landing it requires explicit authorization plus an established non-required quarantine or disabled-test convention; otherwise hand back the production requirement.
33
+
34
+ A slice is complete when selection, observed result, sensitivity evidence, semantic equivalence, product-RED disposition, and production-boundary status are recorded before the next slice begins.
35
+
36
+ ## Finish
37
+
38
+ Inspect the complete diff. Validate that every changed region and dependency is mechanically isolated to test compilation or execution and every changed case preserves or explicitly replaces its fingerprint. Record the execution invocation or mechanism, exact command when available, and observed result; distinguish absent gates, unrun gates, and environmental blockers.
39
+
40
+ Implementation is complete when all authorized dispositions are applied, affected required gates have observed outcomes when present, every changed case passes semantic lock, product RED has a valid disposition, and the diff contains no production-reachable changes.
@@ -0,0 +1,21 @@
1
+ # Route and API test design
2
+
3
+ Use this reference only when the suite exercises routes, APIs, messages, commands, protocols, or comparable public transport boundaries.
4
+
5
+ ## Discover the seam
6
+
7
+ Inspect the public entrypoint, routing or dispatch composition, authentication and authorization, input/output contracts, owned services, persistence, execution configuration, fixtures, and existing harness.
8
+
9
+ Discovery is complete when every distinct response, authority branch, and durable side effect in scope has an owner and an executable public seam.
10
+
11
+ ## Select scenarios
12
+
13
+ Select behavior by distinct risk: success, ownership or isolation, invalid input, missing resource, conflict, external-boundary failure, partial failure, and recovery. Include only branches that carry different public meaning. Use representative actors and minimal fixtures that prove both inclusion and exclusion.
14
+
15
+ Scenario selection is complete when each selected case names a unique public outcome, authority boundary, or side-effect invariant; equivalent permutations are mapped to one representative case.
16
+
17
+ ## Assert meaning
18
+
19
+ Exercise the established transport harness and real owned behavior. Replace only external systems outside the product boundary. Assert the protocol result plus its strongest stable meaning: returned value, typed failure, durable effect, no-op on failure, isolation, or absence of sensitive data.
20
+
21
+ Validation is complete when each changed scenario records the public operation, setup actor, expected protocol result, meaningful outcome or side effect, semantic-lock result, execution invocation or mechanism, and observed result.