@punks/cli 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/BASELINE_CHANGELOG.md +24 -0
  2. package/dist/CHANGELOG.md +17 -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/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +12 -0
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +105 -150
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +111 -181
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  50. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +49 -35
  51. package/dist/baseline/scaffold-baseline/skills/agnostic/security/security-best-practices/references/javascript-typescript-vue-web-frontend-security.md +1 -1
  52. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +2 -6
  53. package/dist/baseline/scaffold-baseline/skills/frameworks/expo/expo-skill-eval/SKILL.md +6 -7
  54. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +1 -3
  55. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +2 -14
  56. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +7 -1
  57. package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +4 -0
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/references/best-practices.md +7 -1
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +4 -0
  60. package/dist/baseline/scaffold-baseline/skills/languages/typescript/quality-types/SKILL.md +1 -3
  61. package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +29 -16
  62. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +10 -8
  63. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +26 -17
  64. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  65. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +22 -25
  66. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  67. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +40 -0
  68. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +11 -18
  69. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +13 -21
  70. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +21 -35
  71. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +13 -18
  72. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +14 -25
  73. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +22 -56
  74. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  75. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +12 -20
  76. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +27 -49
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +40 -359
  79. package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +29 -62
  80. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +49 -13
  81. package/dist/baseline/scaffold-baseline.json +5 -5
  82. package/dist/baseline/scaffold-baseline.tgz +0 -0
  83. package/dist/data/hooks/format-edited-file.d.mts +21 -0
  84. package/dist/data/hooks/format-edited-file.mjs +588 -98
  85. package/dist/data/scripts/commit-gate-runner.mjs +103 -0
  86. package/dist/data/scripts/harness-projection/adapters/claude.mjs +1 -0
  87. package/dist/data/scripts/harness-projection/adapters/codex.mjs +1 -0
  88. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
  89. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
  90. package/dist/data/scripts/harness-projection/core.mjs +4 -0
  91. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
  92. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
  93. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
  94. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
  95. package/dist/index.js +73 -58
  96. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
  97. package/dist/skills/agnostic/planning/create-spec/SKILL.md +32 -32
  98. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
  99. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
  100. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
  101. package/dist/skills/agnostic/quality/autoreview/SKILL.md +2 -2
  102. package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
  103. package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +12 -0
  104. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
  105. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
  106. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
  107. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
  108. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
  109. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
  110. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
  111. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
  112. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
  113. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
  114. package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
  115. package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
  116. package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
  117. package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
  118. package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
  119. package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
  120. package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +97 -142
  121. package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +106 -176
  122. package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
  123. package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +55 -31
  124. package/dist/skills/phases/business-finder/SKILL.md +29 -16
  125. package/dist/skills/phases/delivery-phase/phases/router.md +10 -8
  126. package/dist/skills/phases/design-phase/phases/backlog.md +26 -17
  127. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
  128. package/dist/skills/phases/finder-phase/SKILL.md +22 -25
  129. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
  130. package/dist/skills/phases/finder-phase/phases/grilling.md +40 -0
  131. package/dist/skills/phases/finder-phase/phases/handback.md +11 -18
  132. package/dist/skills/phases/finder-phase/phases/prototype.md +13 -21
  133. package/dist/skills/phases/finder-phase/phases/reconcile.md +21 -35
  134. package/dist/skills/phases/finder-phase/phases/research.md +13 -18
  135. package/dist/skills/phases/finder-phase/phases/return-target.md +14 -25
  136. package/dist/skills/phases/finder-phase/phases/router.md +22 -56
  137. package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
  138. package/dist/skills/phases/finder-phase/references/root-routing.md +12 -20
  139. package/dist/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
  140. package/dist/skills/phases/finder-phase/references/state-graph.md +27 -49
  141. package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +44 -357
  142. package/dist/skills/phases/functional-finder/SKILL.md +29 -62
  143. package/dist/skills/phases/requirements-phase/SKILL.md +49 -13
  144. package/package.json +7 -5
  145. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  146. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  147. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  148. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  149. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +0 -74
  150. package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +0 -2
  151. package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
  152. package/dist/skills/phases/finder-phase/phases/business-grilling.md +0 -68
  153. package/dist/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
  154. package/dist/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
  155. package/dist/skills/phases/technical-finder/SKILL.md +0 -74
  156. package/dist/skills/phases/technical-finder/agents/openai.yaml +0 -2
@@ -52,13 +52,12 @@ Present it as a **multi-select**. When "Build from an uploaded screenshot" is pi
52
52
 
53
53
  **Always confirm what to verify** unless the request makes it unambiguous. Present these options and let the user pick one or more (defaults in bold based on the skill's `references/runtime-matrix.md` entry):
54
54
 
55
- | Option | What it does | When to suggest as default |
56
- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
- | **Runtime + screenshots** | Full pipeline: fixture → executor → static gate → run the app on iOS/Android and screenshot it. The runner (Expo Go or dev build) is a separate question — don't name it here. | **Default** for any skill that renders an app screen (the `expo-go`/`dev-build` rows in `references/runtime-matrix.md`). Requires a booted simulator/emulator. |
58
- | **Trigger accuracy** | Run realistic prompts via `claude -p`, check whether the skill is read. Measures recall (should-trigger queries only). | Always useful as a standalone check. |
59
- | **Code checks (no device)** | `tsc --noEmit` + diff-aware lint + `expo export`, plus the grader checks the generated code against any custom expectations you provide. No device. | **Default** for `static-only` and `n/a` skills, and whenever you want to verify code patterns (correct import path, a `Host` wrapper, …) without running the app. |
60
-
61
- **Present these as ONE multi-select question — _"What do you want to verify?"_** These are _grading dimensions_ (how to judge what gets built) — distinct from the **Prompts** phase (what to build). The user may pick any combination. When a prompt is an **uploaded screenshot** (see **Prompts**), include **"Runtime + screenshots"** so the harness captures the generated app and the grader can score it against the target.
55
+ | Option | What it does | When to suggest as default |
56
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
+ | **Runtime + screenshots** | Full pipeline: fixture → executor → static gate → run the app on iOS/Android and screenshot it. The runner (Expo Go or dev build) is a separate question — don't name it here. | **Default** for any skill that renders an app screen (the `expo-go`/`dev-build` rows in `references/runtime-matrix.md`). Requires a booted simulator/emulator. |
58
+ | **Trigger accuracy** | Run realistic prompts via `claude -p`, check whether the skill is read. Measures recall (should-trigger queries only). | Always useful as a standalone check. |
59
+ | **Code checks (no device)** | `tsc --noEmit` + diff-aware lint + `expo export`, plus the grader checks the generated code against any custom expectations you provide. No device. | **Default** for `static-only` and `n/a` skills, and whenever you want to verify code patterns (correct import path, a `Host` wrapper, …) without running the app. |
60
+ | **Present these as ONE multi-select question — _"What do you want to verify?"_** These are _grading dimensions_ (how to judge what gets built) — distinct from the **Prompts** phase (what to build). The user may pick any combination. When a prompt is an **uploaded screenshot** (see **Prompts**), include **"Runtime + screenshots"** so the harness captures the generated app and the grader can score it against the target. |
62
61
 
63
62
  Read `references/runtime-matrix.md` to find the skill's default mode before suggesting. If the request already specifies a mode (e.g. "just check if it triggers", "run it on device"), skip the question and proceed.
64
63
 
@@ -139,9 +139,7 @@ const bucketPolicy = new aws.s3.BucketPolicy("app-bucket-policy", {
139
139
  policy: policyDoc,
140
140
  });
141
141
  const originAccessIdentity = new aws.cloudfront.OriginAccessIdentity("app-oai");
142
- const distribution = new aws.cloudfront.Distribution("app-cdn", {
143
- /* ... */
144
- });
142
+ const distribution = new aws.cloudfront.Distribution("app-cdn", {/* ... */});
145
143
  ```
146
144
 
147
145
  **Right**:
@@ -359,20 +359,8 @@ class Database extends pulumi.ComponentResource {
359
359
  constructor(name: string, args: DatabaseArgs, opts?: pulumi.ComponentResourceOptions) {
360
360
  super("myorg:index:Database", name, {}, opts);
361
361
 
362
- const sg = new aws.ec2.SecurityGroup(
363
- `${name}-sg`,
364
- {
365
- /* ... */
366
- },
367
- { parent: this },
368
- );
369
- const cluster = new aws.rds.Cluster(
370
- `${name}-cluster`,
371
- {
372
- /* ... */
373
- },
374
- { parent: this },
375
- );
362
+ const sg = new aws.ec2.SecurityGroup(`${name}-sg`, {/* ... */}, { parent: this });
363
+ const cluster = new aws.rds.Cluster(`${name}-cluster`, {/* ... */}, { parent: this });
376
364
 
377
365
  this.endpoint = cluster.endpoint;
378
366
  this.port = cluster.port;
@@ -61,7 +61,13 @@ function GoodUserProfile({ userId }) {
61
61
 
62
62
  ```tsx
63
63
  // Global
64
- ["todos"][("todos", { status: "done" })][("todos", 123)]; // All todos // Filtered todos // Single todo
64
+ [
65
+ "todos",
66
+ ] // All todos
67
+ [
68
+ ("todos", { status: "done" })
69
+ ] // Filtered todos
70
+ [("todos", 123)]; // Single todo
65
71
 
66
72
  // Invalidation hierarchy
67
73
  queryClient.invalidateQueries({ queryKey: ["todos"] }); // Invalidates ALL todos
@@ -32,10 +32,13 @@ createRoot(document.getElementById("root")!).render(
32
32
  <ReactQueryDevtools
33
33
  // Start collapsed (default: false)
34
34
  initialIsOpen={false}
35
+
35
36
  // Button position on screen
36
37
  buttonPosition="bottom-right" // "top-left" | "top-right" | "bottom-left" | "bottom-right"
38
+
37
39
  // Panel position when open
38
40
  position="bottom" // "top" | "bottom" | "left" | "right"
41
+
39
42
  // Custom styles for toggle button
40
43
  toggleButtonProps={{
41
44
  style: {
@@ -43,6 +46,7 @@ createRoot(document.getElementById("root")!).render(
43
46
  marginRight: "1rem",
44
47
  },
45
48
  }}
49
+
46
50
  // Custom styles for panel
47
51
  panelProps={{
48
52
  style: {
@@ -61,7 +61,13 @@ function GoodUserProfile({ userId }) {
61
61
 
62
62
  ```tsx
63
63
  // Global
64
- ["todos"][("todos", { status: "done" })][("todos", 123)]; // All todos // Filtered todos // Single todo
64
+ [
65
+ "todos",
66
+ ] // All todos
67
+ [
68
+ ("todos", { status: "done" })
69
+ ] // Filtered todos
70
+ [("todos", 123)]; // Single todo
65
71
 
66
72
  // Invalidation hierarchy
67
73
  queryClient.invalidateQueries({ queryKey: ["todos"] }); // Invalidates ALL todos
@@ -32,10 +32,13 @@ createRoot(document.getElementById("root")!).render(
32
32
  <ReactQueryDevtools
33
33
  // Start collapsed (default: false)
34
34
  initialIsOpen={false}
35
+
35
36
  // Button position on screen
36
37
  buttonPosition="bottom-right" // "top-left" | "top-right" | "bottom-left" | "bottom-right"
38
+
37
39
  // Panel position when open
38
40
  position="bottom" // "top" | "bottom" | "left" | "right"
41
+
39
42
  // Custom styles for toggle button
40
43
  toggleButtonProps={{
41
44
  style: {
@@ -43,6 +46,7 @@ createRoot(document.getElementById("root")!).render(
43
46
  marginRight: "1rem",
44
47
  },
45
48
  }}
49
+
46
50
  // Custom styles for panel
47
51
  panelProps={{
48
52
  style: {
@@ -38,9 +38,7 @@ type State = { loading: boolean; user?: User; error?: string };
38
38
 
39
39
  // Do — only valid states exist
40
40
  type State =
41
- | { status: "loading" }
42
- | { status: "success"; user: User }
43
- | { status: "error"; error: string };
41
+ { status: "loading" } | { status: "success"; user: User } | { status: "error"; error: string };
44
42
  ```
45
43
 
46
44
  ## Let the types flow end-to-end
@@ -1,30 +1,43 @@
1
1
  ---
2
2
  name: business-finder
3
- description: Structure one product request through Business grilling and stop at its business backlog depth.
3
+ description: Capture uncertain product intent in business language and optionally project structure through Initiative.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Business Finder
8
8
 
9
- Human entrypoint for a nontechnical product owner. Use plain business language
10
- and the project's accepted terms. Preserve the user's words when they already
11
- land; explain unfamiliar backlog terms before using them.
9
+ Explicit human entrypoint for a colleague without technical capability. Use
10
+ familiar business language and explain backlog terms before using them.
11
+ Unknown values remain explicit.
12
12
 
13
- ## Inputs
13
+ ## Intake profile
14
14
 
15
- - one product request
16
- - optional stable provider or durable wiki Fog identity
17
- - product context the human supplied
15
+ Capture the actor or affected party, problem or opportunity, desired outcome
16
+ and value, evidence, constraints, non-goals, urgency, and open questions.
17
+ Preserve the human's wording when it already lands. This profile asks no
18
+ implementation or architecture questions.
19
+
20
+ Use `$wait-what` when a request or project term does not land: pause, repitch it
21
+ in familiar language, and ask again. Use `$show-me` before each structure
22
+ decision to present all relevant existing Product Areas and Initiatives with
23
+ the proposed impact. Presentation informs the human and grants no mutation
24
+ authority.
18
25
 
19
26
  ## Composition
20
27
 
21
- Directly compose [the Finder engine](../finder-phase/SKILL.md) with target
22
- depth: `Business`. Its [Business grilling gate](../finder-phase/phases/business-grilling.md)
23
- owns the atomic grill, visual decisions, support cycles, and accepted evidence.
24
- This adapter supplies only the audience presentation profile.
28
+ Compose [the shared Finder engine](../finder-phase/SKILL.md) with immutable
29
+ intake lens `Business`, this presentation profile, and projection ceiling
30
+ `Initiative`. The engine alone owns the Fog lifecycle, generic support work,
31
+ resume routing, and durable handoff.
32
+
33
+ Optional structure may reuse, enrich, or create Product Areas and Initiatives
34
+ through `$write-backlog`. The ceiling is Initiative: Business Finder never
35
+ projects an Epic, Story, or Task. Skipping projection, or returning an
36
+ unresolved projection, never blocks a valid Fog result.
25
37
 
26
- ## Return
38
+ ## Bounded return
27
39
 
28
- Return the exact Fog identity, accepted Business resolution, resolved Product
29
- Area -> Initiative -> Epic path, exact created-or-enriched readback identities,
30
- and unresolved decisions. Stop at the engine's `target_depth_reached` outcome.
40
+ Return the exact Fog identity, immutable Business intake lens, generic support
41
+ work and evidence, optional exact Product Area and Initiative readback,
42
+ unresolved decisions, and durable Finder handoff. Return control without
43
+ asserting that the Fog is resolved or complete.
@@ -46,11 +46,13 @@ state take precedence over inferred artifact order.
46
46
  otherwise [closeout.md](closeout.md).
47
47
  12. For durable `docs_ingest`, load [docs-ingest.md](docs-ingest.md).
48
48
  13. For durable `closeout`, load [closeout.md](closeout.md).
49
- 14. If no matching agent-ready `SPEC.md` exists, it is stale, contradictory, or
50
- incomplete, or its remote retention or stable blob URL is missing or
51
- unverified, load [spec.md](spec.md).
52
- 15. If the verified post-spec backlog projection is missing or stale, load
53
- [backlog.md](backlog.md).
49
+ 14. If no matching agent-ready `SPEC.md` exists for bounded requirements, or the
50
+ specification is stale, contradictory, incomplete, or lacks verified remote
51
+ retention, route them to Requirements Phase. Requirements Phase owns the
52
+ Requirements Grill, Create Spec, and Write Backlog sequence.
53
+ 15. If a verified specification lacks its current Write Backlog result, route
54
+ the retained specification authority to Requirements Phase for
55
+ delivery-depth projection and exact readback.
54
56
  16. If no execution-ready matching plan exists, or it lacks dependencies, owned
55
57
  paths, validation gates, or wave boundaries, load [plan.md](plan.md).
56
58
  17. If accepted plan work is incomplete, load [implement.md](implement.md).
@@ -63,9 +65,9 @@ state take precedence over inferred artifact order.
63
65
  19. Route remaining docs-affecting work to [docs-ingest.md](docs-ingest.md),
64
66
  otherwise [closeout.md](closeout.md).
65
67
 
66
- When staged Finder authority is missing, report the exact Business, Functional,
67
- or Technical Finder invocation the human must make. Every Finder surface is
68
- human-only; this router never invokes one implicitly.
68
+ Finder context is optional. Route direct bounded input to Requirements Phase
69
+ without creating a Finder artifact. When the caller supplies Finder context,
70
+ pass only its exact handle for Requirements Phase to resolve.
69
71
 
70
72
  When a linked provider Task has a newly observed work start, blocker, pull
71
73
  request, merge, staging deployment, or production deployment without exact
@@ -1,6 +1,6 @@
1
1
  # Backlog Phase
2
2
 
3
- Convert approved design artifacts into backlog work.
3
+ Route approved design evidence into the accepted delivery scope.
4
4
 
5
5
  Before naming or rewriting domain concepts, read the canonical glossary in the
6
6
  routed `requirements-grill` status artifact. Preserve its canonical terms;
@@ -9,28 +9,37 @@ silently renaming them.
9
9
 
10
10
  ## Prerequisite
11
11
 
12
- An authoritative agent-ready `SPEC.md` at a verified stable blob URL that includes or links at least one fresh approved artifact set with its artifact contract.
12
+ An authoritative agent-ready `SPEC.md` with a verified stable blob URL links at
13
+ least one fresh approved artifact set and its artifact contract.
13
14
 
14
15
  ## Steps
15
16
 
16
- 1. Verify the spec is authoritative and agent-ready, then verify approved artifact links, durable asset links, scope, constraints, and acceptance checks.
17
- 2. Use `repo-asset-management` for backlog attachments first and repo-provider fallback when backlog attachments are unavailable or unsuitable.
18
- 3. Require the exact existing Story and accepted Technical resolution. Activate
19
- only `write-backlog`'s technical-projection branch to enrich that Story and
20
- project its provider Tasks. Missing staged Finder authority returns the
21
- explicit human Finder invocation needed; this phase never starts Finder.
22
- 4. Include only accepted product and design constraints, acceptance context, and artifact links in backlog bodies.
23
- 5. Record created or updated backlog ids and preserve the `spec -> backlog -> delivery` handoff.
17
+ 1. Verify the specification authority, approved artifact links, durable asset
18
+ links, accepted scope, constraints, and acceptance checks.
19
+ 2. Decide whether the approved evidence fits the retained specification and
20
+ its already accepted delivery items.
21
+ 3. When the evidence requires new Stories or Tasks, retain the accepted design
22
+ evidence and return it to Requirements Phase. Requirements Phase closes the
23
+ changed scope and alone authorizes a new delivery-depth projection.
24
+ 4. When the evidence fits the accepted scope, use `repo-asset-management` for
25
+ backlog attachments, with its repo-provider fallback when direct
26
+ attachments are unavailable or unsuitable. Preserve the existing backlog
27
+ identities.
28
+ 5. Record the linked backlog identities and preserve the
29
+ `spec -> backlog -> delivery` handoff.
24
30
 
25
31
  ## Rules
26
32
 
27
- - Do not copy provider upload commands here; `repo-asset-management` owns them.
28
- - Do not drop visual evidence when attachments fail. Record the fallback path or blocker.
29
- - Backlog conversion is blocked for unapproved scope units.
33
+ - `repo-asset-management` owns provider upload commands and attachment
34
+ fallbacks.
35
+ - Record a durable fallback path or blocker when visual evidence cannot be
36
+ attached.
37
+ - Unapproved scope returns to Requirements Phase before backlog mutation.
30
38
 
31
39
  ## Output
32
40
 
33
- - Backlog ids and URLs.
34
- - Approved artifact links attached or linked.
35
- - Attachment fallback or blockers.
36
- - Phase handoff with next route: delivery-handoff.
41
+ - Retained design evidence and approved artifact links.
42
+ - Existing backlog identities and URLs when scope is unchanged.
43
+ - Requirements Phase return when scope needs new Stories or Tasks.
44
+ - Attachment fallback blockers.
45
+ - Phase handoff next route: delivery-handoff.