@punks/cli 4.0.2 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/BASELINE_CHANGELOG.md +29 -0
  2. package/dist/CHANGELOG.md +25 -0
  3. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  4. package/dist/baseline/scaffold-baseline/data/catalog/lint-assets.json +10 -4
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +0 -1
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +0 -8
  7. package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +602 -101
  8. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.d.ts +11 -0
  9. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +103 -0
  10. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +144 -0
  11. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  12. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  13. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  14. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  15. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/contract.ts +24 -33
  16. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.mjs +4 -0
  17. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.test.ts +61 -0
  18. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/lint-feedback.test.ts +123 -0
  19. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  20. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  21. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  22. package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  23. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents-validator.test.ts +59 -0
  24. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.d.mts +1 -0
  25. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +27 -14
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +18 -0
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  50. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +105 -150
  51. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +111 -181
  52. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  53. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +49 -35
  54. package/dist/baseline/scaffold-baseline/skills/agnostic/security/security-best-practices/references/javascript-typescript-vue-web-frontend-security.md +1 -1
  55. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +2 -6
  56. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/expo-skill-eval/SKILL.md +6 -7
  57. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +1 -3
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +2 -14
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +7 -1
  60. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +4 -0
  61. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/references/best-practices.md +7 -1
  62. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +4 -0
  63. package/dist/baseline/scaffold-baseline/skills/languages/typescript/quality-types/SKILL.md +1 -3
  64. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +29 -16
  65. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +1 -1
  66. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +10 -8
  67. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +26 -17
  68. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  69. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +22 -25
  70. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  71. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +40 -0
  72. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +11 -18
  73. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +13 -21
  74. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +21 -35
  75. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +13 -18
  76. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +14 -25
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +22 -56
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  79. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +12 -20
  80. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  81. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +27 -49
  82. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +40 -359
  83. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +29 -62
  84. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +49 -13
  85. package/dist/baseline/scaffold-baseline.json +5 -5
  86. package/dist/baseline/scaffold-baseline.tgz +0 -0
  87. package/dist/data/hooks/format-edited-file.d.mts +21 -0
  88. package/dist/data/hooks/format-edited-file.mjs +588 -98
  89. package/dist/data/scripts/commit-gate-runner.mjs +103 -0
  90. package/dist/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  91. package/dist/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  92. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  93. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  94. package/dist/data/scripts/harness-projection/core.mjs +4 -0
  95. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  96. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  97. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  98. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  99. package/dist/data/scripts/sync-subagents.d.mts +1 -0
  100. package/dist/data/scripts/sync-subagents.mjs +30 -13
  101. package/dist/data/shared-agents.md +2 -60
  102. package/dist/index.js +73 -64
  103. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  104. package/dist/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  105. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  106. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  107. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  108. package/dist/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  109. package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  110. package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +18 -0
  111. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  112. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  113. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  114. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  115. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  116. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  117. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  118. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  119. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  120. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  121. package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  122. package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  123. package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  124. package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  125. package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  126. package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  127. package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +97 -142
  128. package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +106 -176
  129. package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  130. package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +55 -31
  131. package/dist/skills/phases/business-finder/SKILL.md +29 -16
  132. package/dist/skills/phases/delivery-phase/SKILL.md +1 -1
  133. package/dist/skills/phases/delivery-phase/phases/router.md +10 -8
  134. package/dist/skills/phases/design-phase/phases/backlog.md +26 -17
  135. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  136. package/dist/skills/phases/finder-phase/SKILL.md +22 -25
  137. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  138. package/dist/skills/phases/finder-phase/phases/grilling.md +40 -0
  139. package/dist/skills/phases/finder-phase/phases/handback.md +11 -18
  140. package/dist/skills/phases/finder-phase/phases/prototype.md +13 -21
  141. package/dist/skills/phases/finder-phase/phases/reconcile.md +21 -35
  142. package/dist/skills/phases/finder-phase/phases/research.md +13 -18
  143. package/dist/skills/phases/finder-phase/phases/return-target.md +14 -25
  144. package/dist/skills/phases/finder-phase/phases/router.md +22 -56
  145. package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  146. package/dist/skills/phases/finder-phase/references/root-routing.md +12 -20
  147. package/dist/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  148. package/dist/skills/phases/finder-phase/references/state-graph.md +27 -49
  149. package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +44 -357
  150. package/dist/skills/phases/functional-finder/SKILL.md +29 -62
  151. package/dist/skills/phases/requirements-phase/SKILL.md +49 -13
  152. package/package.json +7 -5
  153. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  154. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  155. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  156. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  157. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +0 -74
  158. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +0 -2
  159. package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  160. package/dist/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  161. package/dist/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  162. package/dist/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  163. package/dist/skills/phases/technical-finder/SKILL.md +0 -74
  164. package/dist/skills/phases/technical-finder/agents/openai.yaml +0 -2
@@ -1,26 +1,62 @@
1
1
  ---
2
2
  name: requirements-phase
3
- description: Close bounded product decisions through requirements-grill, then compile confirmed outcomes into an agent-ready spec.
3
+ description: Close bounded product decisions and project the accepted delivery backlog.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Requirements Phase
8
8
 
9
- Human-centric decision closure: `requirements-grill -> create-spec`.
9
+ Requirements Phase is independently invocable. It is the only orchestration
10
+ route for `requirements-grill -> create-spec -> write-backlog`.
11
+
12
+ ## Inputs
13
+
14
+ - Direct bounded requirements input. This route creates no Fog or Finder
15
+ artifact and no Grilling provider item implicitly.
16
+ - Optional Finder context, only when the caller supplies a Fog, Finder child,
17
+ Research child, Prototype child, or durable Finder handoff. Resolve the exact
18
+ identity and its owning Fog graph. Load only that graph. Requirements Phase
19
+ does not load or take ownership of sibling work.
20
+
21
+ The optional context loader is an input adapter to this phase, not a second
22
+ workflow or a Finder lifecycle owner.
10
23
 
11
24
  ## Workflow
12
25
 
13
- 1. Read existing grill status before its log. Summarize accepted, rejected,
14
- superseded, parked, and unresolved branches.
15
- 2. While material decisions remain open, use `requirements-grill` for the HITL
16
- interview. Research and recommendations are evidence, not decisions.
17
- 3. When the user confirms shared understanding and remaining branches are
18
- closed or explicitly parked, invoke `create-spec` immediately.
19
- 4. Require `create-spec` to push or explicitly retain the spec commit, verify the retained ref contains the spec commit, and construct and verify a stable blob URL before `write-backlog` can run. A local SHA plus path is insufficient; otherwise return the compiler's atomic `spec-not-ready` result.
26
+ 1. Select the applicable input contract above. Complete entry when the direct
27
+ scope is bounded or the supplied context graph resolves exactly.
28
+ 2. Read the matching `requirements-grill` status before its log. Summarize
29
+ accepted, rejected, superseded, parked, and unresolved branches. If no
30
+ matching status exists, start the bounded Requirements Grill directly.
31
+ 3. While material decisions remain open, use `requirements-grill` for the HITL
32
+ interview. Research recommendations are evidence, not decisions. Complete
33
+ this step when every material branch is accepted or explicitly parked.
34
+ 4. When the user confirms shared understanding and the remaining branches are
35
+ closed or explicitly parked, invoke `create-spec` immediately. Create Spec
36
+ compiles the accepted outcomes without choosing provider Story or Task
37
+ identities.
38
+ 5. Require `create-spec` to push or explicitly retain the spec commit, verify
39
+ the retained ref contains the spec commit, and construct and verify a stable
40
+ blob URL before `write-backlog` can run. A local SHA plus path is
41
+ insufficient; otherwise return the compiler's atomic `spec-not-ready`
42
+ result.
43
+ 6. After `spec-written`, pass the verified stable blob URL and current provider
44
+ evidence to `write-backlog`. Write Backlog derives the Stories, Tasks, and
45
+ blocker graph supported by the accepted result. With no prior Finder
46
+ projection, it may reuse, enrich, or create the accepted placement through
47
+ Product Area, Initiative, and Epic before placing those delivery items. Each
48
+ Story is a shippable product outcome. Each Task is atomic, independently
49
+ ownable, and understandable from its Story and stable specification.
50
+ 7. Return one stable Requirements result naming the retained specification and
51
+ its verified stable blob URL, plus the Write Backlog result and exact
52
+ residual delta. The result is ready for `delivery-phase` and `create-plan`.
20
53
 
21
54
  ## Boundary
22
55
 
23
- This phase does not create delivery backlog or implementation plans. After
24
- `spec-written`, its verified stable blob URL must exist before `write-backlog`
25
- may project the provider-neutral spec, followed by `delivery-phase` /
26
- `create-plan`.
56
+ Requirements Phase owns decision closure, compilation order, and authorization
57
+ of delivery-depth projection. `write-backlog` owns hierarchy derivation,
58
+ provider mechanics, mutation approval, and readback. Finder remains optional
59
+ context and owns no part of this workflow.
60
+
61
+ Grilling-child, specification, Story, and Task cardinality are outputs of the
62
+ accepted requirements and current evidence, never invocation prerequisites.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Harness Intelligence scaffolding CLI",
5
5
  "homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
6
6
  "bugs": {
@@ -41,7 +41,8 @@
41
41
  "test:parallel": "vitest run --config vitest.config.ts --fileParallelism --maxWorkers=2",
42
42
  "ui:catalog": "bun ./scripts/run-renderer-catalog.mjs",
43
43
  "lint": "oxlint src scripts",
44
- "check": "bun run lint && oxfmt --check src scripts package.json tsconfig.json vitest.config.ts"
44
+ "format": "oxfmt --check src scripts package.json tsconfig.json vitest.config.ts",
45
+ "check": "bun run lint && bun run format"
45
46
  },
46
47
  "dependencies": {
47
48
  "react-devtools-core": "^6.1.5"
@@ -49,7 +50,7 @@
49
50
  "devDependencies": {
50
51
  "@effect/eslint-plugin": "latest",
51
52
  "@effect/platform-bun": "catalog:",
52
- "@effect/tsgo": "0.36.5",
53
+ "@effect/tsgo": "0.39.0",
53
54
  "@effect/vitest": "catalog:",
54
55
  "@oxlint/plugins": "latest",
55
56
  "@punks/contract": "workspace:*",
@@ -57,10 +58,11 @@
57
58
  "@punks/scaffold": "workspace:*",
58
59
  "@types/node": "catalog:",
59
60
  "effect": "catalog:",
60
- "oxlint": "1.78.0",
61
+ "oxfmt": "0.66.0",
62
+ "oxlint": "1.80.0",
61
63
  "oxlint-tsgolint": "7.0.2001",
62
64
  "typescript": "catalog:",
63
- "ultracite": "latest",
65
+ "ultracite": "7.10.7",
64
66
  "vitest": "catalog:"
65
67
  },
66
68
  "packageManager": "bun@1.3.5"
@@ -1,52 +0,0 @@
1
- # Adopt Business Path Gate
2
-
3
- ## Entry guard
4
-
5
- Functional or Technical depth starts with no accepted Business child, exact
6
- provider readback for one Product Area -> Initiative -> Epic path, and the
7
- human's explicit `reuse-unchanged` decision.
8
-
9
- ## Inputs
10
-
11
- Exact Fog identity, exact hierarchy identities and readback, accepted
12
- no-scope-change decision, current direct Business children, and wrapper
13
- presentation profile.
14
-
15
- ## Bounded action
16
-
17
- 1. Read every direct Business child. Reuse one exact child or, when none
18
- exists, allocate one durable Business child wiki identity and send its shell
19
- ensure intent to `$write-backlog`. Require exact readback before adoption.
20
- 2. Use `$show-me` to confirm the exact existing hierarchy and unchanged
21
- business scope recorded by the human.
22
- 3. Persist an immutable accepted Business resolution that names the exact path
23
- identities and the `reuse-unchanged` decision. This gate runs no Business
24
- grill.
25
- 4. Emit the semantic Business projection intent for exact readback. The intent
26
- binds the Fog and Business child to the existing path; it creates no new
27
- Product Area, Initiative, or Epic.
28
-
29
- ## Invariants
30
-
31
- The exact path is evidence, not an implicit decision. This gate runs only after
32
- the human accepts unchanged scope. Ambiguous or duplicate Business children,
33
- hierarchy identities, or provider readbacks produce zero writes and route to
34
- human steering. The immutable resolution and projection readback remain
35
- mandatory before Functional progression.
36
-
37
- ## Completion evidence
38
-
39
- Exact Business child identity, immutable accepted resolution pointer, exact
40
- Product Area -> Initiative -> Epic identities, explicit `reuse-unchanged`
41
- decision, and semantic projection intent.
42
-
43
- ## Declared exits
44
-
45
- - `business_accepted` -> reconciliation.
46
- - `human_steering_required` -> handback.
47
- - `blocked` -> stop with missing evidence.
48
-
49
- ## Durable handoff
50
-
51
- Persist the Business child identity, immutable resolution pointer, exact path
52
- readback, unchanged-scope decision, projection intent, and exit.
@@ -1,68 +0,0 @@
1
- # Business Grilling Gate
2
-
3
- ## Entry guard
4
-
5
- One exact Fog exists and its Business grilling evidence is missing or invalid.
6
-
7
- ## Inputs
8
-
9
- Fog snapshot; project wiki; existing Product Areas, Initiatives, Epics, and
10
- milestones; accepted project language; wrapper presentation profile.
11
-
12
- ## Bounded action
13
-
14
- 1. Read all direct Business-stage children before ensuring one. Resume reuses
15
- the exact child and its durable wiki/provider identities.
16
- 2. When none exists, allocate and persist one durable Business grilling-child
17
- wiki identity. Authorize its child shell by the exact Fog identity, Stage
18
- `Business`, and singleton cardinality key. Send that child-shell ensure
19
- intent to `$write-backlog` and require exact readback before grilling. This
20
- ensure does not require accepted grilling evidence. Ambiguity or duplicate
21
- child identity produces zero writes and routes to human steering.
22
- 3. Read the relevant existing Product Areas, Initiatives, Epics, milestones,
23
- and their stable identities before proposing structure.
24
- 4. Use `$show-me` to visualize all relevant existing Product Areas, Initiatives,
25
- Epics, and milestones together with the proposed impact. If the request
26
- crosses a Product Area or Initiative boundary, show the split and stop at
27
- `scope-expansion-checkpoint` for an explicit split-or-proceed choice.
28
- 5. Activate atomic `$grilling` on the ensured Business child. Use `$wait-what`
29
- language whenever the request, project term, outcome, boundary, or proposed
30
- placement does not land: pause, repitch plainly in project language, and ask
31
- again.
32
- 6. Settle why the request matters, target user or stakeholder, intended product
33
- outcome, boundaries/non-goals, durable constraints, and the exact existing
34
- or proposed Product Area -> Initiative -> Epic path.
35
- 7. Prefer stable-identity reuse and enrichment. A new Product Area, Initiative,
36
- or Epic is a scope-expansion proposal, never a title-only default. Existing
37
- Product Areas and Initiatives may be changed after the required structural
38
- preview and approval. Never duplicate an Initiative.
39
- 8. Persist the immutable accepted resolution for that child. Only then emit one
40
- semantic Business projection intent for reconciliation.
41
-
42
- ## Invariants
43
-
44
- This gate uses `$grilling`, not `$requirements-grill`. It asks no implementation
45
- architecture questions. Fog stays lateral and records every object enriched or
46
- proposed. Creating the child shell does not require accepted grilling evidence.
47
- Resume reuses the exact child; ambiguity or duplicate identity produces zero
48
- writes and routes to human steering.
49
-
50
- ## Completion evidence
51
-
52
- Exactly one Business child, accepted immutable resolution pointer, stable
53
- resolved hierarchy identities or approved proposals, and one semantic
54
- projection intent.
55
-
56
- ## Declared exits
57
-
58
- - `business_accepted` -> reconciliation.
59
- - `support_required` -> Research or Prototype through router re-entry.
60
- - `scope-expansion-checkpoint` -> persist the exact decision and stop.
61
- - `human_steering_required` -> handback.
62
- - `blocked` -> stop with missing evidence.
63
-
64
- ## Durable handoff
65
-
66
- Persist durable child wiki/provider identities before the grill, then its
67
- accepted evidence pointer, support relations, hierarchy identities, decision
68
- checkpoints, projection intent, and exit.
@@ -1,53 +0,0 @@
1
- # Functional Grilling Gate
2
-
3
- ## Entry guard
4
-
5
- Target depth includes Functional and accepted Business projection readback
6
- exists, while one required Functional child is missing or invalid.
7
-
8
- ## Inputs
9
-
10
- Exact Fog and Business evidence, resolved hierarchy identities, selected Story
11
- intent, current Functional children, and wrapper presentation profile.
12
-
13
- ## Bounded action
14
-
15
- 1. Read every Functional-stage child matching the selected Story intent. Resume
16
- reuses the exact child and its durable wiki/provider identities.
17
- 2. When none exists, allocate and persist one durable Functional grilling-child
18
- wiki identity. Authorize its child shell by the exact Fog identity, Stage
19
- `Functional`, and stable Story-intent key. Send that child-shell ensure intent
20
- to `$write-backlog` and require exact readback before grilling. This ensure
21
- does not require accepted grilling evidence. Ambiguity or duplicate child
22
- identity for that Story intent produces zero writes and routes to human
23
- steering.
24
- 3. Activate atomic `$grilling` on the ensured Functional child using the
25
- wrapper's presentation profile.
26
- 4. Persist the immutable accepted resolution for that child. Only then emit one
27
- semantic Story projection intent for reconciliation.
28
-
29
- ## Invariants
30
-
31
- One Functional child maps to one Story intent. Accepted Business scope is
32
- reused. This gate neither requires implementation architecture nor writes a
33
- provider. Creating the child shell does not require accepted grilling evidence.
34
- Resume reuses the exact child; ambiguity or duplicate identity produces zero
35
- writes and routes to human steering.
36
-
37
- ## Completion evidence
38
-
39
- Stable Functional child identity, immutable accepted resolution pointer, and
40
- semantic Story projection intent.
41
-
42
- ## Declared exits
43
-
44
- - `functional_accepted` -> reconciliation.
45
- - `support_required` -> Research or Prototype through router re-entry.
46
- - `human_steering_required` -> handback.
47
- - `blocked` -> stop with missing evidence.
48
-
49
- ## Durable handoff
50
-
51
- Persist the stable Story-intent key and durable child wiki/provider identities
52
- before the grill, then the resolution pointer, support relations, projection
53
- intent, and exit.
@@ -1,67 +0,0 @@
1
- # Technical Grilling Gate
2
-
3
- ## Entry guard
4
-
5
- Target depth is Technical, Functional projection readback exists, and the
6
- selected Story lacks valid Technical evidence.
7
-
8
- ## Inputs
9
-
10
- Exact Fog, accepted Business and Functional evidence, one stable Story identity,
11
- current Technical children, and wrapper presentation profile.
12
-
13
- ## Bounded action
14
-
15
- 1. Read every Technical-stage child for the selected Story. Resume reuses the
16
- exact child and its durable wiki/provider identities.
17
- 2. When none exists, allocate and persist one durable Technical grilling-child
18
- wiki identity. Authorize its child shell by the exact Fog identity, Stage
19
- `Technical`, and stable Story identity. Send that child-shell ensure intent
20
- to `$write-backlog` and require exact readback before technical grilling.
21
- This ensure does not require accepted grilling evidence. Ambiguity or
22
- duplicate child identity for the Story produces zero writes and routes to
23
- human steering.
24
- 3. Activate one full `$requirements-grill` on the ensured Technical child for
25
- this Story. The requirements authority owns technical decision closure.
26
- 4. Persist the immutable accepted resolution for that Technical child.
27
- 5. Invoke `$create-spec` with the Story identity and accepted Business,
28
- Functional, and Technical evidence.
29
- 6. Require a returned SPEC with `readiness: agent-ready` and a verified stable
30
- blob URL before continuing.
31
- 7. Derive a nonempty Task intent containing at least one atomic Task and its
32
- blocker relationships from that authoritative SPEC.
33
- 8. Only then emit one semantic technical projection intent to `$write-backlog`
34
- for exact Task and relation readback. Require its successful
35
- `validate-task-blocker-graph` result over the full reachable graph, resolved
36
- milestone order, and resulting provider snapshot.
37
-
38
- ## Invariants
39
-
40
- This gate owns stage identity, ordering, and resume. The requirements authority
41
- owns technical decisions, `$create-spec` owns compilation, and `$write-backlog`
42
- owns provider mutation. `spec-not-ready` or missing verified stable blob returns
43
- zero projection and zero target-depth return, then routes to human steering.
44
- Empty Task intent does the same. Resume reuses the exact child; ambiguity or
45
- duplicate identity produces zero writes and routes to human steering.
46
-
47
- ## Completion evidence
48
-
49
- One exact Technical child for the Story, immutable accepted resolution pointer,
50
- agent-ready SPEC, verified stable blob URL, nonempty Task intent, semantic
51
- projection intent, exact Task/relation readback, and the successful
52
- full-reachable Task graph validator result bound to that provider snapshot.
53
-
54
- ## Declared exits
55
-
56
- - `technical_accepted` -> reconciliation.
57
- - `support_required` -> Research or Prototype through router re-entry.
58
- - `spec-not-ready` -> handback with zero projection.
59
- - `task_intent_empty` -> handback with zero projection.
60
- - `human_steering_required` -> handback.
61
- - `blocked` -> stop with missing evidence.
62
-
63
- ## Durable handoff
64
-
65
- Persist Story and durable Technical child wiki/provider identities before the
66
- grill, then the immutable resolution pointer, SPEC stable blob URL, readiness,
67
- Task intent, support relations, projection/readback state, and exit.
@@ -1,74 +0,0 @@
1
- ---
2
- name: technical-finder
3
- description: Resolve Story delivery through cumulative Business, Functional, and Technical grilling.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Technical Finder
8
-
9
- Human entrypoint for a technical user. Close technical requirements for
10
- accepted Stories without taking ownership of implementation or provider writes.
11
-
12
- ## Composition
13
-
14
- Directly compose [the Finder engine](../finder-phase/SKILL.md) with target
15
- depth: `Technical`. This is cumulative Business, Functional, and Technical
16
- depth over one Fog; this adapter supplies only its audience, presentation, and
17
- return profile. The engine's [Technical gate](../finder-phase/phases/technical-grilling.md)
18
- owns the executable per-Story sequence and durable state.
19
-
20
- ## Story-scoped presentation
21
-
22
- Let the engine validate and reuse fresh accepted Business and Functional
23
- stages. It resumes the first missing or invalidated stage and selects one Story
24
- at a time for Technical resolution.
25
-
26
- Present the selected gate's evidence in its authoritative order:
27
-
28
- 1. Reuse or allocate the durable Technical child identity for the exact Fog,
29
- Stage `Technical`, and stable Story identity; show the `$write-backlog`
30
- child-shell ensure and exact readback.
31
- 2. Open or resume exactly one durable full `$requirements-grill` once per Story.
32
- 3. Show the immutable accepted resolution persisted on that Technical child.
33
- 4. Show `$create-spec` returning `readiness: agent-ready` and a verified stable
34
- blob URL.
35
- 5. Show the nonempty Task intent derived from that specification.
36
- 6. Show the `$write-backlog` Technical projection and exact Task/relation
37
- readback.
38
- 7. Re-enter the Finder router so accepted pending projection reconciles before
39
- the next Story is selected.
40
-
41
- A Technical child shell exists before `$requirements-grill` and cannot
42
- authorize projection. Preserve the same child and requirements artifacts on
43
- resume. A duplicate or ambiguous child returns zero writes and human steering.
44
- `spec-not-ready`, a missing verified blob, or an empty Task intent returns zero
45
- Technical projection through the engine's declared handback route.
46
-
47
- This wrapper advances none of those steps itself. `$requirements-grill` owns
48
- decision closure, `$create-spec` owns specification compilation, and
49
- `$write-backlog` remains the sole physical provider mutation and readback
50
- authority.
51
-
52
- ## Task projection
53
-
54
- The semantic intent carries the exact Story and milestone, immutable Technical
55
- resolution and specification URL, a nonempty Task set, and the complete intended
56
- blocker graph. Each proposed responsibility must be atomic and independently
57
- owner-ready. `$write-backlog` validates the full reachable graph, same-`V*`
58
- membership, cross-Story or cross-Epic blockers, and provider representation
59
- before it writes anything.
60
-
61
- Use `$show-me` to present the Story boundary, accepted specification, proposed
62
- Task split, parallel work, and blocker topology. Preserve writer-owned approval
63
- gates and return its exact rejection, partial-write, or readback evidence to the
64
- Finder engine without implementing provider mechanics here.
65
-
66
- ## Return
67
-
68
- At `target_depth_reached`, return the exact Fog identity, all stage children and
69
- their immutable pointers, resolved product path and Stories, specification URLs,
70
- Task IDs and URLs, blocker edges, milestone membership, exact readback, support
71
- evidence, unresolved decisions, and durable Finder handoff.
72
-
73
- Reaching Technical depth does not complete the Fog. Return its remaining
74
- production-evidence obligations so delivery can prove completion later.
@@ -1,2 +0,0 @@
1
- policy:
2
- allow_implicit_invocation: false
@@ -1,52 +0,0 @@
1
- # Adopt Business Path Gate
2
-
3
- ## Entry guard
4
-
5
- Functional or Technical depth starts with no accepted Business child, exact
6
- provider readback for one Product Area -> Initiative -> Epic path, and the
7
- human's explicit `reuse-unchanged` decision.
8
-
9
- ## Inputs
10
-
11
- Exact Fog identity, exact hierarchy identities and readback, accepted
12
- no-scope-change decision, current direct Business children, and wrapper
13
- presentation profile.
14
-
15
- ## Bounded action
16
-
17
- 1. Read every direct Business child. Reuse one exact child or, when none
18
- exists, allocate one durable Business child wiki identity and send its shell
19
- ensure intent to `$write-backlog`. Require exact readback before adoption.
20
- 2. Use `$show-me` to confirm the exact existing hierarchy and unchanged
21
- business scope recorded by the human.
22
- 3. Persist an immutable accepted Business resolution that names the exact path
23
- identities and the `reuse-unchanged` decision. This gate runs no Business
24
- grill.
25
- 4. Emit the semantic Business projection intent for exact readback. The intent
26
- binds the Fog and Business child to the existing path; it creates no new
27
- Product Area, Initiative, or Epic.
28
-
29
- ## Invariants
30
-
31
- The exact path is evidence, not an implicit decision. This gate runs only after
32
- the human accepts unchanged scope. Ambiguous or duplicate Business children,
33
- hierarchy identities, or provider readbacks produce zero writes and route to
34
- human steering. The immutable resolution and projection readback remain
35
- mandatory before Functional progression.
36
-
37
- ## Completion evidence
38
-
39
- Exact Business child identity, immutable accepted resolution pointer, exact
40
- Product Area -> Initiative -> Epic identities, explicit `reuse-unchanged`
41
- decision, and semantic projection intent.
42
-
43
- ## Declared exits
44
-
45
- - `business_accepted` -> reconciliation.
46
- - `human_steering_required` -> handback.
47
- - `blocked` -> stop with missing evidence.
48
-
49
- ## Durable handoff
50
-
51
- Persist the Business child identity, immutable resolution pointer, exact path
52
- readback, unchanged-scope decision, projection intent, and exit.
@@ -1,68 +0,0 @@
1
- # Business Grilling Gate
2
-
3
- ## Entry guard
4
-
5
- One exact Fog exists and its Business grilling evidence is missing or invalid.
6
-
7
- ## Inputs
8
-
9
- Fog snapshot; project wiki; existing Product Areas, Initiatives, Epics, and
10
- milestones; accepted project language; wrapper presentation profile.
11
-
12
- ## Bounded action
13
-
14
- 1. Read all direct Business-stage children before ensuring one. Resume reuses
15
- the exact child and its durable wiki/provider identities.
16
- 2. When none exists, allocate and persist one durable Business grilling-child
17
- wiki identity. Authorize its child shell by the exact Fog identity, Stage
18
- `Business`, and singleton cardinality key. Send that child-shell ensure
19
- intent to `$write-backlog` and require exact readback before grilling. This
20
- ensure does not require accepted grilling evidence. Ambiguity or duplicate
21
- child identity produces zero writes and routes to human steering.
22
- 3. Read the relevant existing Product Areas, Initiatives, Epics, milestones,
23
- and their stable identities before proposing structure.
24
- 4. Use `$show-me` to visualize all relevant existing Product Areas, Initiatives,
25
- Epics, and milestones together with the proposed impact. If the request
26
- crosses a Product Area or Initiative boundary, show the split and stop at
27
- `scope-expansion-checkpoint` for an explicit split-or-proceed choice.
28
- 5. Activate atomic `$grilling` on the ensured Business child. Use `$wait-what`
29
- language whenever the request, project term, outcome, boundary, or proposed
30
- placement does not land: pause, repitch plainly in project language, and ask
31
- again.
32
- 6. Settle why the request matters, target user or stakeholder, intended product
33
- outcome, boundaries/non-goals, durable constraints, and the exact existing
34
- or proposed Product Area -> Initiative -> Epic path.
35
- 7. Prefer stable-identity reuse and enrichment. A new Product Area, Initiative,
36
- or Epic is a scope-expansion proposal, never a title-only default. Existing
37
- Product Areas and Initiatives may be changed after the required structural
38
- preview and approval. Never duplicate an Initiative.
39
- 8. Persist the immutable accepted resolution for that child. Only then emit one
40
- semantic Business projection intent for reconciliation.
41
-
42
- ## Invariants
43
-
44
- This gate uses `$grilling`, not `$requirements-grill`. It asks no implementation
45
- architecture questions. Fog stays lateral and records every object enriched or
46
- proposed. Creating the child shell does not require accepted grilling evidence.
47
- Resume reuses the exact child; ambiguity or duplicate identity produces zero
48
- writes and routes to human steering.
49
-
50
- ## Completion evidence
51
-
52
- Exactly one Business child, accepted immutable resolution pointer, stable
53
- resolved hierarchy identities or approved proposals, and one semantic
54
- projection intent.
55
-
56
- ## Declared exits
57
-
58
- - `business_accepted` -> reconciliation.
59
- - `support_required` -> Research or Prototype through router re-entry.
60
- - `scope-expansion-checkpoint` -> persist the exact decision and stop.
61
- - `human_steering_required` -> handback.
62
- - `blocked` -> stop with missing evidence.
63
-
64
- ## Durable handoff
65
-
66
- Persist durable child wiki/provider identities before the grill, then its
67
- accepted evidence pointer, support relations, hierarchy identities, decision
68
- checkpoints, projection intent, and exit.
@@ -1,53 +0,0 @@
1
- # Functional Grilling Gate
2
-
3
- ## Entry guard
4
-
5
- Target depth includes Functional and accepted Business projection readback
6
- exists, while one required Functional child is missing or invalid.
7
-
8
- ## Inputs
9
-
10
- Exact Fog and Business evidence, resolved hierarchy identities, selected Story
11
- intent, current Functional children, and wrapper presentation profile.
12
-
13
- ## Bounded action
14
-
15
- 1. Read every Functional-stage child matching the selected Story intent. Resume
16
- reuses the exact child and its durable wiki/provider identities.
17
- 2. When none exists, allocate and persist one durable Functional grilling-child
18
- wiki identity. Authorize its child shell by the exact Fog identity, Stage
19
- `Functional`, and stable Story-intent key. Send that child-shell ensure intent
20
- to `$write-backlog` and require exact readback before grilling. This ensure
21
- does not require accepted grilling evidence. Ambiguity or duplicate child
22
- identity for that Story intent produces zero writes and routes to human
23
- steering.
24
- 3. Activate atomic `$grilling` on the ensured Functional child using the
25
- wrapper's presentation profile.
26
- 4. Persist the immutable accepted resolution for that child. Only then emit one
27
- semantic Story projection intent for reconciliation.
28
-
29
- ## Invariants
30
-
31
- One Functional child maps to one Story intent. Accepted Business scope is
32
- reused. This gate neither requires implementation architecture nor writes a
33
- provider. Creating the child shell does not require accepted grilling evidence.
34
- Resume reuses the exact child; ambiguity or duplicate identity produces zero
35
- writes and routes to human steering.
36
-
37
- ## Completion evidence
38
-
39
- Stable Functional child identity, immutable accepted resolution pointer, and
40
- semantic Story projection intent.
41
-
42
- ## Declared exits
43
-
44
- - `functional_accepted` -> reconciliation.
45
- - `support_required` -> Research or Prototype through router re-entry.
46
- - `human_steering_required` -> handback.
47
- - `blocked` -> stop with missing evidence.
48
-
49
- ## Durable handoff
50
-
51
- Persist the stable Story-intent key and durable child wiki/provider identities
52
- before the grill, then the resolution pointer, support relations, projection
53
- intent, and exit.