@punks/cli 2.6.0 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +45 -23
  3. package/dist/BASELINE_CHANGELOG.md +66 -0
  4. package/dist/CHANGELOG.md +102 -0
  5. package/dist/data/scripts/harness-projection/adapters/claude.d.mts +3 -0
  6. package/dist/data/scripts/harness-projection/adapters/claude.mjs +124 -0
  7. package/dist/data/scripts/harness-projection/adapters/codex.d.mts +3 -0
  8. package/dist/data/scripts/harness-projection/adapters/codex.mjs +137 -0
  9. package/dist/data/scripts/harness-projection/adapters/cursor.d.mts +5 -0
  10. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +106 -0
  11. package/dist/data/scripts/harness-projection/adapters/opencode.d.mts +5 -0
  12. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +100 -0
  13. package/dist/data/scripts/harness-projection/apply.d.mts +12 -0
  14. package/dist/data/scripts/harness-projection/apply.mjs +96 -0
  15. package/dist/data/scripts/harness-projection/core.d.mts +8 -0
  16. package/dist/data/scripts/harness-projection/core.mjs +239 -0
  17. package/dist/data/scripts/harness-projection/test-fixtures/application-context-plan.json +27 -0
  18. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +109 -0
  19. package/dist/data/scripts/harness-projection/test-fixtures/claude/context-plan.json +150 -0
  20. package/dist/data/scripts/harness-projection/test-fixtures/claude/matrix.json +23 -0
  21. package/dist/data/scripts/harness-projection/test-fixtures/claude/traces.json +15 -0
  22. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +124 -0
  23. package/dist/data/scripts/harness-projection/test-fixtures/codex/context-plan.json +150 -0
  24. package/dist/data/scripts/harness-projection/test-fixtures/codex/matrix.json +23 -0
  25. package/dist/data/scripts/harness-projection/test-fixtures/codex/traces.json +15 -0
  26. package/dist/data/scripts/harness-projection/test-fixtures/cursor/compiler-input.json +93 -0
  27. package/dist/data/scripts/harness-projection/test-fixtures/cursor/context-plan.json +108 -0
  28. package/dist/data/scripts/harness-projection/test-fixtures/cursor/matrix.json +19 -0
  29. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +54 -0
  30. package/dist/data/scripts/harness-projection/test-fixtures/mixed-context-plan.json +35 -0
  31. package/dist/data/scripts/harness-projection/test-fixtures/opencode/compiler-input.json +93 -0
  32. package/dist/data/scripts/harness-projection/test-fixtures/opencode/context-plan.json +108 -0
  33. package/dist/data/scripts/harness-projection/test-fixtures/opencode/matrix.json +19 -0
  34. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +51 -0
  35. package/dist/data/scripts/sync-subagents.mjs +1113 -33
  36. package/dist/data/subagents/manifest.mjs +5 -6
  37. package/dist/index.js +1375 -62557
  38. package/dist/skills/agnostic/cli/hi-cli/SKILL.md +22 -15
  39. package/dist/skills/agnostic/cli/hi-cli/references/commands.md +21 -5
  40. package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +87 -55
  41. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +1 -1
  42. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +2 -2
  43. package/dist/skills/agnostic/planning/create-plan/SKILL.md +12 -11
  44. package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +10 -31
  45. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +20 -2
  46. package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -5
  47. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +1 -0
  48. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +2 -2
  49. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +4 -9
  50. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +1 -0
  51. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +3 -1
  52. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +6 -0
  53. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +12 -1
  54. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +5 -0
  55. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +7 -0
  56. package/dist/skills/agnostic/planning/implement-spec/references/runtime-product-validation.md +50 -0
  57. package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +7 -5
  58. package/dist/skills/agnostic/requirements/grilling/LICENSE +21 -0
  59. package/dist/skills/agnostic/requirements/grilling/SKILL.md +6 -30
  60. package/dist/skills/agnostic/requirements/grilling/UPSTREAM.md +16 -0
  61. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -5
  62. package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +40 -16
  63. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +3 -16
  64. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +21 -15
  65. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +14 -14
  66. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +28 -9
  67. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +45 -5
  68. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -28
  69. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +22 -6
  70. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +47 -22
  71. package/dist/skills/frameworks/effect/effect/LICENSE +21 -0
  72. package/dist/skills/frameworks/effect/effect/SKILL.md +100 -0
  73. package/dist/skills/frameworks/effect/effect/UPSTREAM.md +11 -0
  74. package/dist/skills/frameworks/effect/effect/references/CACHING.md +76 -0
  75. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +67 -0
  76. package/dist/skills/frameworks/effect/effect/references/HTTP_CLIENTS.md +101 -0
  77. package/dist/skills/frameworks/effect/{effect-authoring/references/otel-patterns.md → effect/references/OBSERVABILITY.md} +4 -29
  78. package/dist/skills/frameworks/effect/effect/references/SCHEDULING.md +135 -0
  79. package/dist/skills/frameworks/effect/effect/references/SCHEMA.md +130 -0
  80. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +168 -0
  81. package/dist/skills/frameworks/effect/effect/references/STREAMS.md +135 -0
  82. package/dist/skills/frameworks/effect/effect/references/TESTING.md +118 -0
  83. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +7 -8
  84. package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +1 -1
  85. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  86. package/dist/skills/misc/secrets-cli/SKILL.md +54 -0
  87. package/dist/skills/misc/secrets-cli/references/command-reference.md +107 -0
  88. package/dist/skills/misc/secrets-cli/references/safety-and-errors.md +54 -0
  89. package/dist/skills/misc/secrets-cli/references/workflows.md +106 -0
  90. package/dist/skills/phases/design-phase/phases/grill.md +1 -1
  91. package/dist/skills/phases/requirements-phase/SKILL.md +2 -4
  92. package/dist/skills/phases/review-phase/REFERENCE.md +13 -5
  93. package/dist/skills/phases/review-phase/SKILL.md +3 -2
  94. package/package.json +1 -1
  95. package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
  96. package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
  97. package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
  98. package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
  99. package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
  100. package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
  101. package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
  102. package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
  103. package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
  104. package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
  105. package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
  106. package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
  107. package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
  108. package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
  109. package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
  110. package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
  111. /package/dist/skills/frameworks/effect/{effect-authoring/references/effect-atom-patterns.md → effect/references/EFFECT_ATOM.md} +0 -0
@@ -28,6 +28,12 @@
28
28
  |---------|----------|--------|-------|-------|
29
29
  | | | | | |
30
30
 
31
+ ## Runtime Validation Evidence
32
+
33
+ | Task | Scenario and target | Public action | Correlation or provenance | Expected result | Observed result and durable evidence | Cleanup | Status or exact blocker |
34
+ |------|---------------------|---------------|---------------------------|-----------------|--------------------------------------|---------|-------------------------|
35
+ | | | | | | | | |
36
+
31
37
  ## Visual Evidence Acceptance Map
32
38
 
33
39
  | Source | Backlog attachment or fallback | PR-ready before/after evidence |
@@ -58,6 +58,7 @@ Use [../assets/IMPLEMENTATION-NOTES-TEMPLATE.md](../assets/IMPLEMENTATION-NOTES-
58
58
  - Append or refine when it already exists.
59
59
  - Keep it current during the run, not only at the end.
60
60
  - For UI implementation changes, load [ui-screenshot-evidence.md](ui-screenshot-evidence.md) and keep `## UI Evidence Links` current.
61
+ - For tasks with `runtime_validation: required`, load [runtime-product-validation.md](runtime-product-validation.md) and keep `## Runtime Validation Evidence` current.
61
62
 
62
63
  ## 5. Prepare the tech-debt ledger
63
64
 
@@ -86,7 +87,7 @@ For every ledger entry, record:
86
87
  - decision needed or external blocker
87
88
  - owner or next action
88
89
 
89
- If the debt is inside the active goal, fix it before advancing. If the debt is outside the active goal but affects the implementation decision, stop and run a tiny `$requirements-phase` clarification with one narrow question and a recommended answer. Continue only after the branch is closed, parked explicitly, or converted into an accepted scope change.
90
+ If the debt is inside the active goal, fix it before advancing. If the debt is outside the active goal but affects the implementation decision, stop and run a tiny `$requirements-phase` clarification. Resume execution from its recorded outcome, applying any accepted scope change before continuing.
90
91
 
91
92
  Do not create the file when nothing durable must survive the run.
92
93
 
@@ -104,6 +105,9 @@ Do not create the file when nothing durable must survive the run.
104
105
  - Accept missing RED/GREEN evidence only when the task has an explicit `reason_not_testable` or `tdd_status: not_applicable`.
105
106
  - Do not accept `reason_not_testable` for forgotten RED. If code came first, recover by writing the public-result RED test, recording failure, patching to pass, and marking `tdd_status: recovered`.
106
107
  - Treat every `review_mode` as required validation routing, never optional metadata.
108
+ - Treat `runtime_validation`, `runtime_target`, `runtime_evidence`, and `runtime_cleanup` as a task completion contract orthogonal to `review_mode`.
109
+ - When `runtime_validation: required`, do not mark the task complete until the supported runtime has conclusive public-entrypoint-first evidence recorded under `## Runtime Validation Evidence`.
110
+ - An exact runtime blocker is an honest blocked result, not completion. Record it and keep the affected task and acceptance criterion blocked.
107
111
  - Keep an operator-visible execution board in the conversation so progress is obvious.
108
112
  - Keep scope discipline. Out-of-scope findings that do not affect the current implementation go to `IMPLEMENTATION-NOTES.md`, not silent scope creep.
109
113
  - Never leave sloppy debt, TODO placeholders, temporary compromises, or "later" implementation notes for in-goal work.
@@ -123,6 +127,7 @@ After each completed task or wave:
123
127
  - fill or reconcile `codebase_design_notes` when module shape, seam placement, adapters, or test surface changed
124
128
  - update `IMPLEMENTATION-NOTES.md` with non-obvious decisions, surprises, or deviations
125
129
  - for UI implementation changes, record durable before/after screenshot asset links in `IMPLEMENTATION-NOTES.md`
130
+ - for required runtime validation, record the scenario, public action, correlation or provenance ids, observed result, durable evidence, cleanup, and status or exact blocker in `IMPLEMENTATION-NOTES.md`
126
131
  - resolve any in-goal debt before advancing
127
132
  - update the spec-linked tech-debt file only for blocked or explicitly parked debt with exact owner/next action
128
133
  - if backlog sync is in scope, prefer native metadata changes or concise comments over body rewrites
@@ -151,6 +156,8 @@ If running inside a worktree and `portless` is available, prefer it for server-b
151
156
 
152
157
  For UI implementation changes, runtime validation must also follow [ui-screenshot-evidence.md](ui-screenshot-evidence.md).
153
158
 
159
+ For every task with `runtime_validation: required`, follow [runtime-product-validation.md](runtime-product-validation.md). Automated checks alone do not satisfy this gate.
160
+
154
161
  ## 10. Verify acceptance criteria
155
162
 
156
163
  Re-read `SPEC.md` acceptance criteria and mark each one:
@@ -161,6 +168,8 @@ Re-read `SPEC.md` acceptance criteria and mark each one:
161
168
 
162
169
  Record a reason for every unmet or blocked item in `IMPLEMENTATION-NOTES.md`.
163
170
 
171
+ Acceptance that depends on required runtime validation is `met` only when its recorded evidence is conclusive. An exact blocker makes it `blocked`.
172
+
164
173
  ## 11. Write the manual review checklist
165
174
 
166
175
  Before finalization, `IMPLEMENTATION-NOTES.md` must contain `## Manual Review Checklist`.
@@ -188,6 +197,7 @@ Before reporting back:
188
197
  - ensure **Execution mode** reflects the mode actually used
189
198
  - ensure **Sanity checks** lists only commands actually run
190
199
  - ensure **UI Evidence Links** has durable before/after asset links for UI implementation changes, or an explicit reason no pair was possible
200
+ - ensure **Runtime Validation Evidence** contains conclusive proof for every required task, or an exact blocker with the task and acceptance criterion still marked blocked
191
201
  - ensure **Manual Review Checklist** has at least one concrete row, or one explicit non-applicability row
192
202
  - ensure **Remaining work** matches any unmet or blocked criteria
193
203
  - ensure no in-goal debt remains as TODO, follow-up cleanup, or vague later-work text
@@ -204,6 +214,7 @@ Summarize:
204
214
  - validation results
205
215
  - key deviations or surprises
206
216
  - acceptance-criteria status
217
+ - runtime-validation evidence and exact blockers
207
218
  - manual review checklist
208
219
  - blocked tasks needing input
209
220
  - whether the spec-linked tech-debt file was created or updated
@@ -29,6 +29,10 @@ For each task, extract:
29
29
  - validation
30
30
  - `tdd_target`
31
31
  - `review_mode`
32
+ - `runtime_validation`
33
+ - `runtime_target`
34
+ - `runtime_evidence`
35
+ - `runtime_cleanup`
32
36
  - backlog metadata when present
33
37
  - related tasks or plan-level constraints when they materially shape execution
34
38
 
@@ -89,6 +93,7 @@ A task is complete only when all of the following are true:
89
93
  - acceptance criteria are satisfied, not only partially implemented
90
94
  - RED -> GREEN evidence exists for testable tasks, or an explicit `reason_not_testable` plus exact alternative verification exists
91
95
  - validation evidence matches the task contract
96
+ - required runtime validation has conclusive evidence recorded, or the task remains blocked with an exact blocker
92
97
  - `PLAN.md` reflects the completed status and execution log
93
98
  - touched files are recorded
94
99
  - any non-obvious deviations are reflected in `IMPLEMENTATION-NOTES.md`
@@ -23,8 +23,13 @@ Every worker brief should include:
23
23
  - `green_command`
24
24
  - `reason_not_testable`
25
25
  - `review_mode`
26
+ - `runtime_validation`
27
+ - `runtime_target`
28
+ - `runtime_evidence`
29
+ - `runtime_cleanup`
26
30
  - relevant risks or constraints from the plan
27
31
  - UI screenshot evidence requirements from [ui-screenshot-evidence.md](ui-screenshot-evidence.md) when the task changes UI
32
+ - supported-runtime evidence requirements from [runtime-product-validation.md](runtime-product-validation.md) when `runtime_validation: required`
28
33
 
29
34
  ## Required instructions
30
35
 
@@ -46,6 +51,7 @@ Each worker brief should require:
46
51
  14. stopping for parent clarification when a debt item requires a product/scope decision outside the assigned task
47
52
  15. capturing and linking durable before/after screenshot evidence when the task changes UI
48
53
  16. updating the plan entry with status, log, touched files, and gotchas before handoff closes
54
+ 17. refusing completion for required runtime validation without conclusive recorded evidence; returning an exact blocker leaves the task blocked
49
55
 
50
56
  ## Worker output contract
51
57
 
@@ -57,6 +63,7 @@ Require the worker to return:
57
63
  - verification evidence: RED -> GREEN for testable tasks, or the exact non-testable alternative that was run
58
64
  - validation evidence performed
59
65
  - durable UI before/after screenshot links when UI changed
66
+ - required runtime-validation scenario, observed evidence, cleanup result, or exact blocker
60
67
  - validation intentionally deferred
61
68
  - anything blocked or risky, with exact reason and required decision
62
69
 
@@ -0,0 +1,50 @@
1
+ # Runtime Product Validation
2
+
3
+ Use this reference only for tasks with `runtime_validation: required`. The plan fields define what must be proved; this reference defines how to obtain and report the proof.
4
+
5
+ ## Discover and recover the supported runtime
6
+
7
+ Read scoped repository guidance, runbooks, manifests, and scripts to identify:
8
+
9
+ - the supported startup command and required services
10
+ - health or readiness gates
11
+ - public product actions
12
+ - privileged setup or diagnostic adapters
13
+ - durable evidence sources
14
+ - cleanup rules
15
+
16
+ Start the supported runtime and dependencies. Treat a missing or broken runtime as a diagnosis and recovery task before declaring a blocker. Record an exact blocker only after relevant recovery attempts fail or required authority or infrastructure is unavailable.
17
+
18
+ ## Run an isolated scenario
19
+
20
+ 1. Create fixtures with a unique correlation or provenance id for this validation run.
21
+ 2. Exercise the public product entrypoint a real client uses: API, command, browser flow, mobile action, or equivalent supported surface.
22
+ 3. Verify the public result and the durable evidence named by `runtime_evidence`, such as persisted state, operation reports, queue or worker completion, emitted resources, provider results, correlated logs, traces, or spans.
23
+ 4. Confirm automated checks also pass; they complement runtime proof but do not replace it.
24
+ 5. Clean up only resources conclusively owned by the validation run through its correlation, provenance, or returned resource ids.
25
+
26
+ ## Privileged adapter boundary
27
+
28
+ A privileged local adapter or hidden controller is allowed only for:
29
+
30
+ - fixture setup the public product cannot perform
31
+ - agent-only or otherwise unreachable actions required by the scenario
32
+ - diagnostics needed to reach a conclusive result
33
+
34
+ Do not use it as the default action path, a second product API, or a substitute for exercising a reachable public entrypoint. Record why each privileged use was necessary.
35
+
36
+ ## Evidence and reporting
37
+
38
+ Keep evidence durable enough for another reviewer to inspect or replay. Under `## Runtime Validation Evidence` in `IMPLEMENTATION-NOTES.md`, record exactly:
39
+
40
+ - task, scenario, and `runtime_target`
41
+ - public action performed
42
+ - correlation or provenance ids
43
+ - expected result
44
+ - observed public result and durable evidence
45
+ - cleanup performed and owned resources removed or retained
46
+ - status, or the exact blocker
47
+
48
+ An exact blocker names the command or action attempted, observed failure, recovery attempted, missing dependency or authority, and next action needed. Also keep the task and affected acceptance criterion marked blocked.
49
+
50
+ Runtime validation is conclusive only when the supported public action produces the expected public result and the required durable evidence is correlated to the same isolated run. Missing correlation, mock-only proof, direct database mutation as the primary action, a success response without the required side effect, or unverified cleanup cannot satisfy completion.
@@ -15,11 +15,12 @@ Hard gate: sequential implementation never runs in the parent main thread. If th
15
15
  1. Load the shared lifecycle from `lifecycle.md`.
16
16
  2. Record `sequential` under **Execution mode** in `IMPLEMENTATION-NOTES.md`.
17
17
  3. Read `.agents/subagents/manifest.mjs` when present and choose the best specialist for the whole sequential implementation.
18
- 4. Spawn one worker with the full spec folder, plan, lifecycle rules, required skills, task order, and update obligations.
18
+ 4. Spawn one worker with the full spec folder, plan, lifecycle rules, required skills, task order, update obligations, and each task's `runtime_validation`, `runtime_target`, `runtime_evidence`, and `runtime_cleanup` fields.
19
19
  5. If any assigned task changes UI, include the screenshot evidence contract from [ui-screenshot-evidence.md](ui-screenshot-evidence.md) in the worker brief.
20
- 6. Require the worker to execute one task at a time in dependency order.
21
- 7. After worker handoff, review the diff, plan updates, notes, and validation evidence before finalization.
22
- 8. Run any parent-level acceptance or smoke checks needed to trust the worker output.
20
+ 6. If any assigned task requires runtime validation, include [runtime-product-validation.md](runtime-product-validation.md) in the worker brief.
21
+ 7. Require the worker to execute one task at a time in dependency order.
22
+ 8. After worker handoff, review the diff, plan updates, notes, and validation evidence before finalization.
23
+ 9. Run any parent-level acceptance or smoke checks needed to trust the worker output.
23
24
 
24
25
  ## Task loop
25
26
 
@@ -33,7 +34,8 @@ The worker owns this loop for every task:
33
34
  6. run `green_command`, record `green_evidence`, and only then mark the task done
34
35
  7. for non-testable or non-applicable tasks, record `reason_not_testable` plus the exact alternative verification
35
36
  8. for UI implementation changes, capture and link durable before/after screenshot evidence
36
- 9. update the execution board before advancing
37
+ 9. for `runtime_validation: required`, follow the disclosed runtime validation reference and record conclusive evidence before completion; an exact blocker leaves the task blocked
38
+ 10. update the execution board before advancing
37
39
 
38
40
  The parent owns:
39
41
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Pocock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,38 +1,14 @@
1
1
  ---
2
2
  name: grilling
3
- description: Grill a plan, requirement, design, or unclear decision through one-question-at-a-time pressure testing. Use when the user asks to grill, stress-test, interrogate, or sharpen an idea before building, or when another skill needs a grilling primitive.
3
+ description: Grill a plan, requirement, design, or unclear decision by interviewing every currently unblocked decision in dependency-ordered rounds. Use when the user asks to grill, stress-test, interrogate, or sharpen an idea before building, or when another skill needs the shared grilling primitive.
4
4
  ---
5
5
 
6
- # Grilling
6
+ Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it.
7
7
 
8
- Interview the user relentlessly until the plan, requirement, or design is clear enough to proceed.
8
+ Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled — the questions you can ask *now* without guessing at answers you haven't heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Each numbered question must state one decision, the explicit question, a concise recommendation, and why it is preferred; when interpretations differ, require a precise choice. Then wait for the user's answers before the next round.
9
9
 
10
- ## Core Behavior
10
+ Each round the user answers reshapes the tree — settled decisions push the frontier outward and unblock questions that depended on them. Treat a branch as settled only when answered, parked, or explicitly deferred. Recompute the frontier. Before asking the next round, restate the locked decisions, assumptions, parked or deferred items, and the next frontier. A question whose answer depends on another question still open in this round belongs to a *later* round, not this one.
11
11
 
12
- - Ask one question at a time.
13
- - Provide your recommended answer with each question.
14
- - Explain why the recommendation is preferred.
15
- - Walk the design tree branch by branch, resolving dependent decisions in order.
16
- - If a question can be answered from code, docs, artifacts, or logs, inspect those sources instead of asking.
17
- - When multiple interpretations exist, force a precise choice.
18
- - Stop only when the active branch is closed, parked, or explicitly deferred.
12
+ Finding *facts* is your job, never the user's. When a frontier question needs a fact from the environment (filesystem, tools, etc.), dispatch a sub-agent to find it — don't ask the user for anything you could look up yourself. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report — ask the rest of the frontier now. The *decisions* are the user's — put each to them and wait.
19
13
 
20
- ## Question Contract
21
-
22
- Each question should make the decision obvious:
23
-
24
- - the decision being made
25
- - your recommended answer
26
- - the question the user must answer
27
- - why the answer matters
28
-
29
- Do not bundle unrelated decisions into one question.
30
-
31
- ## Closure
32
-
33
- Before leaving a branch, restate:
34
-
35
- - locked decisions
36
- - assumptions made
37
- - deferred or parked questions
38
- - next branch or next workflow
14
+ The session is done when the frontier is empty: every branch of the design tree visited, nothing left silently assumed. Do not act on it until the user confirms you have reached a shared understanding.
@@ -0,0 +1,16 @@
1
+ # Upstream provenance
2
+
3
+ Imported from [`mattpocock/skills`](https://github.com/mattpocock/skills/tree/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/skills/in-progress/batch-grill-me) at commit:
4
+
5
+ ```text
6
+ 9603c1cc8118d08bc1b3bf34cf714f62178dea3b
7
+ ```
8
+
9
+ The adjacent `LICENSE` is the upstream MIT license retained with this skill.
10
+
11
+ Devpunks preserves the upstream body and structure with these local adaptations:
12
+
13
+ - `name` changes from `batch-grill-me` to the stable local id `grilling` used by composing skills.
14
+ - `description` becomes a model-invocation trigger for local grilling requests and skill composition.
15
+ - `disable-model-invocation: true` is removed so `$grilling` remains model-invocable.
16
+ - The body adds a minimal question-and-transition contract: one explicit decision and question with a concise recommendation and rationale, precise interpretation choices, explicit branch settlement, and a state restatement before each new frontier.
@@ -29,18 +29,16 @@ Both workflows can happen in one long session, but keep the responsibilities dis
29
29
 
30
30
  ## Core Behavior
31
31
 
32
- - Ask one question at a time by default.
33
- - For every question, provide a recommended answer and the reason for it.
34
- - Inspect code/docs first when the answer can be found locally.
35
32
  - Inspect relevant routed learning artifacts before grilling requirements that depend on known behavior, prior bugs, project conventions, or domain facts.
36
33
  - Challenge conflicting glossary, vague terms, and hidden tradeoffs immediately.
37
34
  - Pin canonical terms, rejected aliases, relationships, and domain axioms as decisions crystallize.
38
35
  - Prefer conservative defaults once enough context exists.
39
- - If the user authorizes auto-pinning defaults, close obvious remaining decisions without needless extra questions.
36
+ - If the user authorizes auto-pinning defaults, record obvious remaining defaults without needless extra questions.
40
37
  - Treat parked branches as preserved knowledge, not deleted scope.
38
+ - Apply the round persistence contract in `artifact-output` alongside `$grilling`.
41
39
 
42
40
  ## Handoff
43
41
 
44
42
  At the end, report branch percentages, parked branches, remaining non-design validation work, and the recommended next planning direction.
45
43
 
46
- If all active branches are `100%`, say the requirements grill is done and the likely next direction is backlog/user-story creation.
44
+ After `$grilling` completes, say the requirements grill is done and give the likely next direction, usually backlog/user-story creation.
@@ -21,7 +21,7 @@ Before writing, read `<wiki-root>/AGENTS.md`. The grilling artifacts live in the
21
21
  If a legacy `docs/<topic>-grill-log.md` or `docs/<topic>-grill-status.md` exists, treat it as input to move or merge into the routed grilling section. Do not keep updating both locations.
22
22
 
23
23
  The log is the durable decision record.
24
- The status file is the current branch dashboard plus the current glossary snapshot.
24
+ The status file is the current branch dashboard, round/frontier state, and current glossary snapshot.
25
25
 
26
26
  ## Routed Wiki Contract
27
27
 
@@ -48,11 +48,16 @@ After adding or renaming a grill artifact:
48
48
 
49
49
  The log is structured, not a raw transcript.
50
50
 
51
+ Keep each question's `Q<N>` id stable across rounds, partial responses, and superseding decisions. Never reuse or renumber an id.
52
+
51
53
  Record accepted decisions as:
52
54
 
53
55
  ```md
54
56
  ### Q<N>
55
57
 
58
+ Prerequisites:
59
+ - <Q ids or `none`>
60
+
56
61
  Question:
57
62
  <question asked>
58
63
 
@@ -81,6 +86,33 @@ Accepted answer:
81
86
 
82
87
  Omit unused fields. If a later answer changes the glossary, add a superseding entry instead of rewriting history.
83
88
 
89
+ ## Round Persistence Contract
90
+
91
+ Before yielding each round, persist a `Current Round` section in the status file:
92
+
93
+ ```md
94
+ ## Current Round
95
+
96
+ - Round: R<N>
97
+ - Current frontier: Q<N>, Q<N+1> | empty
98
+ - Shared-understanding confirmation: not-ready | pending | confirmed
99
+
100
+ | Question id | Prerequisites | Question | State |
101
+ | --- | --- | --- | --- |
102
+ | Q<N> | none | <decision question> | unanswered |
103
+ | Q<N+1> | Q<N-2> | <decision question> | unanswered |
104
+ ```
105
+
106
+ The table is the stable mapping between the live round and durable question ids. `State` is `unanswered`, `answered`, `parked`, or `deferred`.
107
+
108
+ After each response set:
109
+
110
+ 1. Process every supplied answer separately against its stable question id.
111
+ 2. Add answered decisions to the log and mark those ids `answered` in status.
112
+ 3. Leave omitted questions `unanswered`; do not infer an answer or drop them from status.
113
+ 4. Persist the updated status, including the frontier and branch dashboard, before continuing.
114
+ 5. When the frontier is empty, set confirmation to `pending`; set it to `confirmed` only after the user explicitly confirms shared understanding.
115
+
84
116
  ## Status File Contract
85
117
 
86
118
  Maintain a compact branch dashboard with:
@@ -99,9 +131,11 @@ Completion percentages are working signals:
99
131
  - `0-50%`: branch discovered but unsettled
100
132
  - `50-85%`: major direction set, important questions remain
101
133
  - `85-99%`: mostly closed, only constants/schema/naming remain
102
- - `100%`: design closed; remaining work is implementation/tuning
134
+ - `100%`: no unanswered items remain, the frontier is empty, and shared understanding is explicitly confirmed; remaining work is implementation/tuning
103
135
  - `parked`: preserved for later, out of current scope
104
136
 
137
+ Keep a branch below `100%` while it has unanswered items or while shared-understanding confirmation is pending.
138
+
105
139
  ## Glossary Snapshot Contract
106
140
 
107
141
  Keep the status file glossary compact and current:
@@ -141,17 +175,7 @@ Rules:
141
175
  When a branch closes:
142
176
 
143
177
  1. Update the grill log with final accepted decisions.
144
- 2. Update the status file percentage, open items, glossary snapshot, axioms, and ambiguities.
145
- 3. If the branch changes durable domain/product knowledge, run the wiki-output workflow.
146
- 4. Say exactly what changed, which routed artifacts were updated, and whether `meta.json` or wiki log bookkeeping changed.
147
-
148
- ## Final Handoff
149
-
150
- At the end, report:
151
-
152
- - branch percentages
153
- - parked branches
154
- - remaining non-design validation work
155
- - recommended next planning direction
156
-
157
- If all active branches are `100%`, say the requirements grill is done and the likely next direction is backlog/user-story creation.
178
+ 2. Update the status file percentage, open items, round/frontier state, glossary snapshot, axioms, and ambiguities.
179
+ 3. Confirm no unanswered item or pending shared-understanding confirmation is represented as `100%`.
180
+ 4. If the branch changes durable domain/product knowledge, run the wiki-output workflow.
181
+ 5. Say exactly what changed, which routed artifacts were updated, and whether `meta.json` or wiki log bookkeeping changed.
@@ -6,24 +6,11 @@ This workflow is always paired with [artifact-output.md](artifact-output.md) dur
6
6
 
7
7
  ## Session Behavior
8
8
 
9
- Use the shared `$grilling` primitive for the interview loop, then apply the requirements-specific pressure tests below.
9
+ Use the shared `$grilling` primitive as the sole scheduling and traversal contract, then apply the requirements-specific pressure tests below. When the user authorizes auto-pinning, record obvious defaults without needless extra questions.
10
10
 
11
- Interview the user relentlessly about every aspect of the plan until shared understanding exists.
11
+ ## Round Artifact Integration
12
12
 
13
- Walk the design tree branch by branch until each branch is:
14
-
15
- - closed
16
- - parked
17
- - explicitly deferred
18
-
19
- ## Questioning Rules
20
-
21
- - Ask one question at a time by default.
22
- - Always include a recommended answer.
23
- - Explain why the recommendation is preferred.
24
- - If multiple interpretations exist, force a precise choice.
25
- - When the answer can be found in code/docs, inspect first instead of asking.
26
- - When the user authorizes auto-pinning, close obvious defaults without needless extra questions.
13
+ At each `$grilling` round boundary, apply the [round persistence contract](artifact-output.md#round-persistence-contract). A partial response set resolves only the supplied stable question ids; omitted ids stay unanswered. Persist `$grilling` completion in the artifact's shared-understanding confirmation field before any downstream transition.
27
14
 
28
15
  ## Pressure Tests
29
16
 
@@ -21,7 +21,8 @@ Downstream contract:
21
21
 
22
22
  - every supported `kind` is visible, assignable, searchable, linkable, and closeable in the target provider
23
23
  - `fog` is root-level only
24
- - concrete `grilling`, `research`, `prototype`, `epic`, and `story` items live under a module/milestone
24
+ - concrete `grilling`, `research`, `prototype`, `epic`, and `story` items live under a capability module
25
+ - chronological execution milestones are derived separately from native blockers
25
26
  - one epic maps to one future `SPEC.md`
26
27
  - child stories remain the product-facing slices beneath that epic
27
28
  - `PLAN.md` later decomposes execution without replacing the backlog model
@@ -42,8 +43,8 @@ When grill artifacts exist, treat them as the highest-signal structured source f
42
43
 
43
44
  Expected inputs:
44
45
 
45
- - `docs/<topic>-grill-status.md`
46
- - `docs/<topic>-grill-log.md`
46
+ - `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
47
+ - `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
47
48
 
48
49
  Read order:
49
50
 
@@ -90,28 +91,33 @@ Use this model:
90
91
  ```text
91
92
  Backlog root
92
93
  fog
93
- module/milestone
94
+ capability module
94
95
  grilling
95
96
  research
96
97
  prototype
97
98
  epic
98
99
  story
100
+
101
+ Execution milestones
102
+ M1 -> M2 -> M3 ...
99
103
  ```
100
104
 
101
105
  Provider mapping:
102
106
 
103
107
  - kind -> provider-native single-value kind storage where available
104
108
  - fog -> root-level issue/work item/item
105
- - module -> milestone or provider-equivalent grouping
106
- - grilling/research/prototype -> module/milestone-scoped issue/work item/item
107
- - epic -> module/milestone-scoped parent issue/work item/capability record
109
+ - capability module -> durable provider grouping independent from chronology
110
+ - execution milestone -> dependency-derived chronological wave
111
+ - grilling/research/prototype -> capability-module-scoped issue/work item/item
112
+ - epic -> capability-module-scoped parent issue/work item/capability record
108
113
  - story -> child issue/sub-issue/work item under an epic
109
114
 
110
115
  monday.com mapping:
111
116
 
112
117
  - fog -> root/backlog group item or root planning group item
113
- - module/milestone -> board group
114
- - grilling/research/prototype -> parent item in a module group
118
+ - capability module -> board group
119
+ - execution milestone -> separate Status or Dropdown column derived from dependencies
120
+ - grilling/research/prototype -> parent item in a capability group
115
121
  - epic/capability -> parent item
116
122
  - story -> subitem
117
123
  - story ordering -> dependency column when present
@@ -119,9 +125,9 @@ monday.com mapping:
119
125
  Rules:
120
126
 
121
127
  - every supported kind must be a first-class backlog item
122
- - `kind` is separate from workflow state, module grouping, and parent/child hierarchy
128
+ - `kind` is separate from workflow state, capability grouping, execution milestone, and parent/child hierarchy
123
129
  - `fog` must not have child tickets by default
124
- - concrete non-fog items must first choose or create a module/milestone
130
+ - concrete non-fog items must first choose or create a capability module
125
131
  - `grilling`, `research`, and `prototype` must close into accepted decisions before they create or update implementation epics/stories
126
132
  - every story must be independently understandable and product-facing
127
133
  - one epic may contain multiple stories
@@ -187,7 +193,7 @@ Do not put these in backlog bodies:
187
193
 
188
194
  ## Ordering rules
189
195
 
190
- Implementation order belongs in the backlog only through native dependency primitives when supported.
196
+ Implementation order belongs in the backlog only through native dependency primitives when supported. Capability grouping never determines chronology. Derive `M1`, `M2`, and later execution milestones with the DAG algorithm in [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md), then store them in the provider mechanism documented by the matching payload asset.
191
197
 
192
198
  Preferred order signal:
193
199
 
@@ -203,7 +209,7 @@ Avoid:
203
209
 
204
210
  ### 1. Decide whether the frontier is still fog
205
211
 
206
- Use `fog` when the work is real but not yet sharp enough to choose a module/milestone or concrete learning/implementation ticket.
212
+ Use `fog` when the work is real but not yet sharp enough to choose a capability module or concrete learning/implementation ticket.
207
213
 
208
214
  Do not use `fog` as:
209
215
 
@@ -216,7 +222,7 @@ Do not use `fog` as:
216
222
 
217
223
  For concrete non-fog work, split the discussion into durable capability groups that would still make sense if implementation order changed.
218
224
 
219
- Good module/milestone:
225
+ Good capability module:
220
226
 
221
227
  - intake and review
222
228
  - account lifecycle
@@ -235,7 +241,7 @@ Use these before implementation scope is accepted:
235
241
  - `research`: readonly investigation can answer it.
236
242
  - `prototype`: artifact-driven learning is needed.
237
243
 
238
- Each item must live under a module/milestone and close with an accepted decision note before changing epics/stories.
244
+ Each item must live under a capability module and close with an accepted decision note before changing epics/stories.
239
245
 
240
246
  ### 4. Derive epics
241
247
 
@@ -10,14 +10,14 @@ description: Materialize canonical backlog kinds into provider-native items. Use
10
10
  1. Before any provider materialization, read `.devpunks/settings.json` and resolve the destination from `backlogProvider` plus `backlogProjectUrl`.
11
11
  2. If either setting is missing, or `backlogProjectUrl` is not an absolute HTTP(S) URL, stop and ask the operator to run `hi ensure`. Do not discover or guess a backlog destination.
12
12
  3. Read [REFERENCE.md](REFERENCE.md) and [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md).
13
- 4. If `requirements-grill` artifacts exist, read `*-grill-status.md` first and `*-grill-log.md` second.
13
+ 4. If `requirements-grill` artifacts exist, read `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md` first and `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` second.
14
14
  5. If subagents are available and the source material is large, use `requirements-synthesizer` to compress accepted, rejected, superseded, parked, and unresolved decisions.
15
15
  6. If subagents are available, use `backlog-shaper` for a draft module/epic/story hierarchy; keep final backlog judgment in the parent thread.
16
16
  7. Derive the item kind first: `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
17
- 8. Place `fog` at the backlog root; place concrete `grilling`, `research`, `prototype`, `epic`, and `story` items under a module/milestone.
17
+ 8. Place `fog` at the backlog root; place concrete `grilling`, `research`, `prototype`, `epic`, and `story` items in a capability module. Keep capability grouping separate from execution milestones.
18
18
  9. Preserve delivery semantics: epics anchor future `SPEC.md`; stories remain product-facing children of epics.
19
19
  10. Apply the item-count rule before finalizing implementation epics/stories.
20
- 11. Make story ordering explicit with native dependency primitives when the provider supports them.
20
+ 11. Make story ordering explicit with native dependency primitives when the provider supports them. Derive chronological execution milestones from those dependencies using the order contract in the backlog model.
21
21
  12. Keep all item bodies product-facing and appropriate to their kind.
22
22
  13. When approved design/prototype artifacts are source material, preserve approved artifact context and durable links in the relevant backlog items.
23
23
  14. For visual assets, use `repo-asset-management`: prefer backlog attachments first, then repo-provider fallback links when attachments are unavailable or unsuitable.
@@ -26,17 +26,17 @@ description: Materialize canonical backlog kinds into provider-native items. Use
26
26
 
27
27
  ## Item-count rule
28
28
 
29
- Within durable modules, produce the fewest epics and stories that preserve all accepted requirements. Split only when merging would lose a distinct product outcome, acceptance signal, dependency, provider boundary, or future `SPEC.md` boundary; otherwise fold requirements into the existing item body as scope, constraints, or acceptance signals.
29
+ Within durable capability modules, produce the fewest epics and stories that preserve all accepted requirements. Split only when merging would lose a distinct product outcome, acceptance signal, dependency, provider boundary, or future `SPEC.md` boundary; otherwise fold requirements into the existing item body as scope, constraints, or acceptance signals.
30
30
 
31
31
  ## Kind taxonomy
32
32
 
33
33
  Every supported kind is a first-class provider backlog item that is visible, assignable, searchable, linkable, and closeable.
34
34
 
35
35
  - `fog`: root-level uncertainty; not delivery-eligible, not a `SPEC.md` anchor, and not an execution container.
36
- - `grilling`: module/milestone-scoped human decision work.
37
- - `research`: module/milestone-scoped readonly fact-finding.
38
- - `prototype`: module/milestone-scoped artifact or experiment learning.
39
- - `epic`: module/milestone-scoped accepted implementation capability; anchors one future `SPEC.md`.
36
+ - `grilling`: capability-module-scoped human decision work.
37
+ - `research`: capability-module-scoped readonly fact-finding.
38
+ - `prototype`: capability-module-scoped artifact or experiment learning.
39
+ - `epic`: capability-module-scoped accepted implementation capability; anchors one future `SPEC.md`.
40
40
  - `story`: product-facing accepted implementation slice under one epic.
41
41
 
42
42
  `grilling`, `research`, and `prototype` close with an accepted decision note naming the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
@@ -45,17 +45,17 @@ Every supported kind is a first-class provider backlog item that is visible, ass
45
45
 
46
46
  ### From a large requirements discussion
47
47
 
48
- 1. Normalize the input into durable modules.
49
- 2. Turn each module into a milestone or provider-equivalent container.
48
+ 1. Normalize the input into durable capability modules.
49
+ 2. Store capability grouping separately from chronological execution milestones.
50
50
  3. Create learning or uncertainty items when scope is not yet accepted.
51
51
  4. Create epic/capability items only when implementation scope is accepted enough to map to one future `SPEC.md`.
52
52
  5. Break each epic into independently observable child stories.
53
- 6. Add native blockers between stories when order matters.
53
+ 6. Add native blockers between stories when order matters, then derive chronological milestones from the blocker DAG.
54
54
 
55
55
  ### From `requirements-grill` artifacts
56
56
 
57
- 1. Read `docs/<topic>-grill-status.md` first.
58
- 2. Read `docs/<topic>-grill-log.md` second.
57
+ 1. Read `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md` first.
58
+ 2. Read `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` second.
59
59
  3. Use the status file to identify:
60
60
  - active branches
61
61
  - branch completion
@@ -74,7 +74,7 @@ Every supported kind is a first-class provider backlog item that is visible, ass
74
74
 
75
75
  1. Read the current hierarchy and item bodies first.
76
76
  2. Collapse technical chores back into product-facing stories when possible.
77
- 3. Rebuild root fog plus module/milestone -> concrete item structure.
77
+ 3. Rebuild root fog plus capability module -> concrete item structure, then recompute chronological milestones from native blockers.
78
78
  4. Keep execution detail out of backlog bodies.
79
79
 
80
80
  ### Provider payload selection