@gobing-ai/spur 0.3.42 → 0.3.44
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/config/templates/AGENTS.md +5 -0
- package/config/workflows/idea-pipeline.yaml +205 -33
- package/config/workflows/task-pipeline.yaml +11 -1
- package/package.json +9 -9
- package/plugins/sp/commands/dev-run.md +3 -3
- package/plugins/sp/commands/dev-runall.md +9 -4
- package/plugins/sp/commands/dev-wrap.md +21 -3
- package/plugins/sp/commands/dev-wrapall.md +21 -3
- package/plugins/sp/plugin.json +1 -1
- package/plugins/sp/skills/code-implementation/SKILL.md +27 -0
- package/plugins/sp/skills/issue-finding/SKILL.md +21 -3
- package/plugins/sp/skills/issue-finding/references/session-formats.md +30 -0
- package/plugins/sp/skills/next-router/references/routing-table.md +2 -2
- package/plugins/sp/skills/parallel-execution/references/dispatch-surface.md +9 -0
- package/plugins/sp/skills/spur-cli/SKILL.md +3 -0
- package/plugins/sp/skills/spur-cli/references/features/hierarchy-mece.md +8 -3
- package/plugins/sp/skills/spur-cli/references/tasks.md +25 -1
- package/plugins/sp/skills/spur-dev/SKILL.md +12 -4
- package/plugins/sp/skills/spur-dev/references/cross-cutting.md +22 -6
- package/plugins/sp/skills/spur-dev/references/dev-operations.md +13 -13
- package/plugins/sp/skills/spur-dev/references/execution-batch.md +76 -4
- package/plugins/sp/skills/spur-dev/references/execution-workflow.md +4 -2
- package/plugins/sp/skills/spur-dev/references/flag-glossary.md +2 -2
- package/plugins/sp/skills/spur-dev/references/inline-pipeline-driver.md +43 -11
- package/plugins/sp/skills/spur-dev/references/planning-workflow.md +53 -0
- package/spur.js +529 -290
- package/web/_astro/{BoardApp.8sc6Rb1t.js → BoardApp.BnhkWEOG.js} +99 -99
- package/web/_astro/BoardApp.CxOS4HSo.js +1 -0
- package/web/_astro/{TaskDetail.DOKJP-Kp.js → TaskDetail.B6yiT-U7.js} +1 -1
- package/web/_astro/{arc.CTqmqspU.js → arc.PbmgYm3_.js} +1 -1
- package/web/_astro/{architectureDiagram-3BPJPVTR.B0iBdehs.js → architectureDiagram-3BPJPVTR.BkOMSdmD.js} +1 -1
- package/web/_astro/{blockDiagram-GPEHLZMM.BHE5UFj5.js → blockDiagram-GPEHLZMM.BtomoUdy.js} +1 -1
- package/web/_astro/{c4Diagram-AAUBKEIU.DQApkgGM.js → c4Diagram-AAUBKEIU.UzrYwJnF.js} +1 -1
- package/web/_astro/channel.DRRsElzO.js +1 -0
- package/web/_astro/{chunk-2J33WTMH.fPrKLM8v.js → chunk-2J33WTMH.nNChLHkw.js} +1 -1
- package/web/_astro/{chunk-4BX2VUAB.DExvwBhn.js → chunk-4BX2VUAB.DLYAecPo.js} +1 -1
- package/web/_astro/{chunk-55IACEB6.EjNkjuD6.js → chunk-55IACEB6.t5bzuj1J.js} +1 -1
- package/web/_astro/{chunk-727SXJPM.Dl8xy5rT.js → chunk-727SXJPM.DBV62bIy.js} +1 -1
- package/web/_astro/{chunk-AQP2D5EJ.BSzMBgBs.js → chunk-AQP2D5EJ.BdaPhTPs.js} +1 -1
- package/web/_astro/{chunk-FMBD7UC4.CAeOHpbb.js → chunk-FMBD7UC4.eoZ88KMf.js} +1 -1
- package/web/_astro/{chunk-ND2GUHAM.Bbeu_ZOH.js → chunk-ND2GUHAM.QdNDyeSh.js} +1 -1
- package/web/_astro/{chunk-QZHKN3VN.Da_GaIAZ.js → chunk-QZHKN3VN.DPaToLfx.js} +1 -1
- package/web/_astro/{classDiagram-4FO5ZUOK.sMfFYSQp.js → classDiagram-4FO5ZUOK.By9BMe7b.js} +1 -1
- package/web/_astro/{classDiagram-v2-Q7XG4LA2.sMfFYSQp.js → classDiagram-v2-Q7XG4LA2.By9BMe7b.js} +1 -1
- package/web/_astro/{cose-bilkent-S5V4N54A.PS3IwOH4.js → cose-bilkent-S5V4N54A.DMypl6q_.js} +1 -1
- package/web/_astro/{dagre-BM42HDAG.EQCx8a6D.js → dagre-BM42HDAG.p26m9grg.js} +1 -1
- package/web/_astro/{diagram-2AECGRRQ.aEFQl8v8.js → diagram-2AECGRRQ.C6m3oTIu.js} +1 -1
- package/web/_astro/{diagram-5GNKFQAL.jyN4tqFX.js → diagram-5GNKFQAL.JCxivn2z.js} +1 -1
- package/web/_astro/{diagram-KO2AKTUF.DaTVHnme.js → diagram-KO2AKTUF.DifbEd3P.js} +1 -1
- package/web/_astro/{diagram-LMA3HP47.DWsGRLAN.js → diagram-LMA3HP47.Bffga-cf.js} +1 -1
- package/web/_astro/{diagram-OG6HWLK6.DYxmOViu.js → diagram-OG6HWLK6.CUKx5_Cx.js} +1 -1
- package/web/_astro/{erDiagram-TEJ5UH35.BKM75coa.js → erDiagram-TEJ5UH35.DaJ9KZR0.js} +1 -1
- package/web/_astro/{flowDiagram-I6XJVG4X.B7qpqDW5.js → flowDiagram-I6XJVG4X.Do6l5pzg.js} +1 -1
- package/web/_astro/{ganttDiagram-6RSMTGT7.CYBL-hwy.js → ganttDiagram-6RSMTGT7.DqBKgB-3.js} +1 -1
- package/web/_astro/{gitGraphDiagram-PVQCEYII.Cz4ly3Kq.js → gitGraphDiagram-PVQCEYII.B3VLSQ22.js} +1 -1
- package/web/_astro/{index.yAse9IaO.css → index.QfZ9SC3X.css} +1 -1
- package/web/_astro/{infoDiagram-5YYISTIA.CIS7cXrJ.js → infoDiagram-5YYISTIA.hK8ZC1oa.js} +1 -1
- package/web/_astro/{ishikawaDiagram-YF4QCWOH.DQ-pmaOG.js → ishikawaDiagram-YF4QCWOH.C8DXwh9Z.js} +1 -1
- package/web/_astro/{journeyDiagram-JHISSGLW.DVS6F7UM.js → journeyDiagram-JHISSGLW.mj5aHQDb.js} +1 -1
- package/web/_astro/{kanban-definition-UN3LZRKU.D8t-G-U6.js → kanban-definition-UN3LZRKU.Dwlhi49r.js} +1 -1
- package/web/_astro/{linear.IO8rTd_n.js → linear.7zBHdlwl.js} +1 -1
- package/web/_astro/{mermaid.core.CjVnvFNf.js → mermaid.core.AYdA0EJr.js} +4 -4
- package/web/_astro/{mindmap-definition-RKZ34NQL.DZoEMTnU.js → mindmap-definition-RKZ34NQL.BSnniHEq.js} +1 -1
- package/web/_astro/{pieDiagram-4H26LBE5.86r1QWnX.js → pieDiagram-4H26LBE5.B7EVpA3J.js} +1 -1
- package/web/_astro/{quadrantDiagram-W4KKPZXB.DzFA9uPk.js → quadrantDiagram-W4KKPZXB.rg4i8YOY.js} +1 -1
- package/web/_astro/{requirementDiagram-4Y6WPE33.dQvdvfMr.js → requirementDiagram-4Y6WPE33.C4pr792x.js} +1 -1
- package/web/_astro/{sankeyDiagram-5OEKKPKP.BvC-VNI8.js → sankeyDiagram-5OEKKPKP.DTXU996O.js} +1 -1
- package/web/_astro/{sequenceDiagram-3UESZ5HK.DDQNwHs8.js → sequenceDiagram-3UESZ5HK.D73DOjzi.js} +1 -1
- package/web/_astro/{stateDiagram-AJRCARHV.BKwYy-tQ.js → stateDiagram-AJRCARHV.CVkeSaEH.js} +1 -1
- package/web/_astro/{stateDiagram-v2-BHNVJYJU.KxCiRYYf.js → stateDiagram-v2-BHNVJYJU.DkBGwoN5.js} +1 -1
- package/web/_astro/{timeline-definition-PNZ67QCA.Bh9NDjOx.js → timeline-definition-PNZ67QCA.DnJ9Yh7G.js} +1 -1
- package/web/_astro/{vennDiagram-CIIHVFJN.DIM-n6us.js → vennDiagram-CIIHVFJN.DN1tvR4Y.js} +1 -1
- package/web/_astro/{wardley-L42UT6IY.DW15qOFQ.js → wardley-L42UT6IY.D54jJ-7-.js} +1 -1
- package/web/_astro/{wardleyDiagram-YWT4CUSO.UTIvjsG9.js → wardleyDiagram-YWT4CUSO.C2grUBbE.js} +1 -1
- package/web/_astro/{xychartDiagram-2RQKCTM6.CQYhkVDS.js → xychartDiagram-2RQKCTM6.D05okBnV.js} +1 -1
- package/web/index.html +2 -2
- package/web/_astro/BoardApp.ChKnY1JD.js +0 -1
- package/web/_astro/channel.B0q9WGrH.js +0 -1
|
@@ -69,6 +69,11 @@ All product development work goes through the harness by default.
|
|
|
69
69
|
auto`, a name, parallel/headless execution, direct `spur agent run`, and engine-driven workflow
|
|
70
70
|
`agent.run` remain subprocess surfaces.
|
|
71
71
|
|
|
72
|
+
**Task lookup fast path:** Given a WBS, do not search `docs/tasks*` or guess `--folder`. Use
|
|
73
|
+
`spur task show <wbs> --json` for task metadata and content; its response also includes `filePath`.
|
|
74
|
+
Use `spur task path <wbs> --json` only when a filesystem consumer needs the absolute path. Both
|
|
75
|
+
commands resolve across configured task folders. Reuse the first `show` response within the run.
|
|
76
|
+
|
|
72
77
|
**Platform fallback:** Platforms without slash commands and/or subagents still use the harness.
|
|
73
78
|
Install the plugin through Superskill for the target platform, then use skills `sp:spur-dev`,
|
|
74
79
|
`sp:spur-cli`, `sp:code-verification` (and related) plus the `spur` CLI. Do not invent a parallel
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# Shape: start -> discovery -> idea-eval -> feature-create -> ac-generate -> feature-check
|
|
11
11
|
# -> system-design (conditional: needs_design signal)
|
|
12
12
|
# -> design-approval (taste HITL gate; not auto-clicked by --auto)
|
|
13
|
-
# -> decompose -> batch-create -> handoff
|
|
13
|
+
# -> decompose -> batch-create -> handoff-finalize -> handoff
|
|
14
14
|
# (idea-eval rejection -> cancelled)
|
|
15
15
|
# (feature-check failure routes back to ac-generate; batch-create failure to decompose).
|
|
16
16
|
#
|
|
@@ -128,20 +128,36 @@ states:
|
|
|
128
128
|
- id: feature-create
|
|
129
129
|
description: >
|
|
130
130
|
Create a feature via spur feature create, or select an existing feature id.
|
|
131
|
-
The agent writes the feature id to .spur/run/${vars.__runId}-idea-feature-id.txt
|
|
132
|
-
|
|
131
|
+
The agent writes the feature id to .spur/run/${vars.__runId}-idea-feature-id.txt and body-only
|
|
132
|
+
intent artifacts .spur/run/${vars.__runId}-idea-goal.md / -idea-scope.md. Goal carries
|
|
133
|
+
concise intent only; Scope carries explicit in/out boundaries — task breakdowns and
|
|
134
|
+
checklists never enter Goal. Shell actions then persist both sections through
|
|
135
|
+
`spur feature update --section Goal|Scope --from-file ...`; a missing/empty artifact
|
|
136
|
+
stops the state. Prefer the enhanced idea from .spur/run/${vars.__runId}-idea-eval-report.md as
|
|
133
137
|
context; do not overwrite vars.idea.
|
|
134
138
|
onEnter:
|
|
135
139
|
- kind: agent.run
|
|
136
140
|
options:
|
|
137
141
|
agent: ${vars.agent}
|
|
138
|
-
input: "Create a feature for the idea: ${vars.idea}. Read .spur/run/${vars.__runId}-idea-eval-report.md if present for the enhanced idea and scores. Use 'spur feature create \"<name>\" --json' to create it. Write the feature id to .spur/run/${vars.__runId}-idea-feature-id.txt. If an existing feature is appropriate, use its id instead."
|
|
142
|
+
input: "Create a feature for the idea: ${vars.idea}. Read .spur/run/${vars.__runId}-idea-eval-report.md if present for the enhanced idea and scores. Use 'spur feature create \"<name>\" --json' to create it. Write the feature id to .spur/run/${vars.__runId}-idea-feature-id.txt. If an existing feature is appropriate, use its id instead. Also write two body-only intent artifacts: .spur/run/${vars.__runId}-idea-goal.md with concise Goal intent only (a short statement of what the feature achieves; never task breakdowns, checklists, or how-to steps), and .spur/run/${vars.__runId}-idea-scope.md with explicit in-scope and out-of-scope boundary bullets."
|
|
139
143
|
expectFile: .spur/run/${vars.__runId}-idea-feature-id.txt
|
|
140
144
|
timeoutMs: ${vars.stepTimeoutMs}
|
|
141
145
|
- kind: file.read.into-var
|
|
142
146
|
options:
|
|
143
147
|
path: .spur/run/${vars.__runId}-idea-feature-id.txt
|
|
144
148
|
var: featureId
|
|
149
|
+
- kind: shell
|
|
150
|
+
options:
|
|
151
|
+
command: >-
|
|
152
|
+
mkdir -p .spur/run &&
|
|
153
|
+
test -s .spur/run/$__runId-idea-goal.md &&
|
|
154
|
+
$spurBin feature update "$featureId" --section Goal --from-file .spur/run/$__runId-idea-goal.md
|
|
155
|
+
- kind: shell
|
|
156
|
+
options:
|
|
157
|
+
command: >-
|
|
158
|
+
mkdir -p .spur/run &&
|
|
159
|
+
test -s .spur/run/$__runId-idea-scope.md &&
|
|
160
|
+
$spurBin feature update "$featureId" --section Scope --from-file .spur/run/$__runId-idea-scope.md
|
|
145
161
|
|
|
146
162
|
- id: ac-generate
|
|
147
163
|
description: >
|
|
@@ -177,7 +193,7 @@ states:
|
|
|
177
193
|
options:
|
|
178
194
|
command: >-
|
|
179
195
|
if test -s .spur/run/$__runId-idea-ac-content.md; then
|
|
180
|
-
$spurBin feature update $featureId --section "Acceptance Criteria" --from-file .spur/run/$__runId-idea-ac-content.md && date -u +%Y-%m-%dT%H:%M:%SZ > .spur/run/$__runId-idea-ac-done.txt;
|
|
196
|
+
$spurBin feature update "$featureId" --section "Acceptance Criteria" --from-file .spur/run/$__runId-idea-ac-content.md && date -u +%Y-%m-%dT%H:%M:%SZ > .spur/run/$__runId-idea-ac-done.txt;
|
|
181
197
|
else
|
|
182
198
|
exit 0;
|
|
183
199
|
fi
|
|
@@ -206,13 +222,33 @@ states:
|
|
|
206
222
|
Dispatch sp:sys-architecture to produce the system design. This state runs
|
|
207
223
|
only when needs_design=true (design=auto signal path). The agent creates ADR
|
|
208
224
|
entries, architecture updates, and design satellites through constitution rules.
|
|
209
|
-
|
|
225
|
+
A run-scoped design-review artifact (.spur/run/${vars.__runId}-idea-design-review.md)
|
|
226
|
+
with fixed headings `## Proposed design`, `## Operator feedback`, and `## Reconciliation`
|
|
227
|
+
carries operator rejection feedback back into this state: on the first pass the agent
|
|
228
|
+
fills `## Proposed design`; on retry (operator feedback present) it revises the design,
|
|
229
|
+
records the reconciliation, and updates invalidated Acceptance Criteria through
|
|
230
|
+
`spur feature update` before design can exit. The design-approval state follows (taste gate).
|
|
210
231
|
onEnter:
|
|
232
|
+
- kind: shell
|
|
233
|
+
options:
|
|
234
|
+
command: >-
|
|
235
|
+
mkdir -p .spur/run &&
|
|
236
|
+
REVIEW=".spur/run/$__runId-idea-design-review.md" &&
|
|
237
|
+
test -f "$REVIEW" || printf '## Proposed design\n\n## Operator feedback\n\n## Reconciliation\n' > "$REVIEW"
|
|
211
238
|
- kind: agent.run
|
|
212
239
|
options:
|
|
213
240
|
agent: ${vars.agent}
|
|
214
|
-
input: "Run sp:sys-architecture for feature ${vars.featureId}. Read the brainstorm artifact
|
|
241
|
+
input: "Run sp:sys-architecture for feature ${vars.featureId}. Read the brainstorm artifact, feature AC, and .spur/run/${vars.__runId}-idea-design-review.md. Produce ADR entries, architecture updates, and design satellites (docs/design/<slug>.md) following the constitution edit rules. Do not write task or feature corpus files directly. Design-review contract (.spur/run/${vars.__runId}-idea-design-review.md, fixed headings `## Proposed design`, `## Operator feedback`, `## Reconciliation`): on the first pass write the proposed design summary under `## Proposed design` and leave `## Operator feedback` empty; on retry with operator feedback present, revise the design/ADR artifacts, document the changes under `## Reconciliation`, and when the feedback invalidates an Acceptance Criteria scenario write the revised AC section body to a file and persist it via `$spurBin feature update \"$featureId\" --section \"Acceptance Criteria\" --from-file <file>` — never edit feature corpus files directly."
|
|
242
|
+
expectFile: .spur/run/${vars.__runId}-idea-design-review.md
|
|
215
243
|
timeoutMs: ${vars.stepTimeoutMs}
|
|
244
|
+
# expectFile proves existence only, and the onEnter skeleton pre-creates the file — so an
|
|
245
|
+
# agent no-op would still pass it (0515 P3-2). Fail closed: the `## Proposed design` section
|
|
246
|
+
# must carry non-whitespace content before design can exit to approval/decompose.
|
|
247
|
+
- kind: shell
|
|
248
|
+
options:
|
|
249
|
+
command: >-
|
|
250
|
+
REVIEW=".spur/run/$__runId-idea-design-review.md" &&
|
|
251
|
+
awk '/^## Proposed design/{f=1; next} /^## Operator feedback/{f=0} f' "$REVIEW" | grep -q '[^[:space:]]'
|
|
216
252
|
|
|
217
253
|
- id: design-approval
|
|
218
254
|
description: >
|
|
@@ -226,6 +262,11 @@ states:
|
|
|
226
262
|
agent passes. The onEnter shell increments a reject counter; the `no`
|
|
227
263
|
edge to system-design is capped at 1 revise, after which the run
|
|
228
264
|
terminates as `failed` naming this gate.
|
|
265
|
+
|
|
266
|
+
Rejection must carry operator feedback: before answering `no`, the operator
|
|
267
|
+
records the concrete issue(s) in the run-scoped design-review artifact
|
|
268
|
+
(.spur/run/${vars.__runId}-idea-design-review.md) under `## Operator feedback` —
|
|
269
|
+
the revision pass reads it to reconcile invalidated AC before re-approval.
|
|
229
270
|
pause: true
|
|
230
271
|
onEnter:
|
|
231
272
|
- kind: shell
|
|
@@ -233,23 +274,45 @@ states:
|
|
|
233
274
|
command: 'mkdir -p .spur/run && count=$(cat .spur/run/$__runId-idea-design-reject-count 2>/dev/null || echo 0); echo $((count + 1)) > .spur/run/$__runId-idea-design-reject-count'
|
|
234
275
|
- kind: hitl.confirm
|
|
235
276
|
options:
|
|
236
|
-
prompt: "Review the system design for feature ${vars.featureId}. Approve to proceed to decomposition?"
|
|
277
|
+
prompt: "Review the system design for feature ${vars.featureId}. Approve to proceed to decomposition? To reject, first record your feedback in .spur/run/${vars.__runId}-idea-design-review.md under the `## Operator feedback` heading, then answer no."
|
|
237
278
|
|
|
238
279
|
- id: decompose
|
|
239
280
|
description: >
|
|
240
281
|
Dispatch sp:spec-decomposition with the brainstorm artifact, feature AC, and
|
|
241
282
|
design doc as input. The agent produces a task-batch JSON file at
|
|
242
|
-
.spur/run/${vars.__runId}-idea-task-batch.json, validated against task-batch.schema.json
|
|
283
|
+
.spur/run/${vars.__runId}-idea-task-batch.json, validated against task-batch.schema.json,
|
|
284
|
+
plus the private task-order sidecar .spur/run/${vars.__runId}-idea-task-order.json
|
|
285
|
+
(a JSON array of { name, depends_on_names[] }; `[]` when no ordering exists).
|
|
286
|
+
A post-agent shell action validates the sidecar shape before decomposition
|
|
287
|
+
can exit — missing or ambiguous title-to-WBS resolution fails before handoff.
|
|
243
288
|
onEnter:
|
|
244
289
|
- kind: shell
|
|
245
290
|
options:
|
|
246
|
-
command: 'mkdir -p .spur/run && count=$(cat .spur/run/$__runId-idea-decompose-retry-count 2>/dev/null || echo 0); echo $((count + 1)) > .spur/run/$__runId-idea-decompose-retry-count; rm -f .spur/run/$__runId-idea-task-batch.json .spur/run/$__runId-idea-batch-create.done .spur/run/$__runId-idea-batch-create.failed'
|
|
291
|
+
command: 'mkdir -p .spur/run && count=$(cat .spur/run/$__runId-idea-decompose-retry-count 2>/dev/null || echo 0); echo $((count + 1)) > .spur/run/$__runId-idea-decompose-retry-count; rm -f .spur/run/$__runId-idea-task-batch.json .spur/run/$__runId-idea-task-order.json .spur/run/$__runId-idea-batch-create.done .spur/run/$__runId-idea-batch-create.failed .spur/run/$__runId-idea-batch-create-result.json .spur/run/$__runId-idea-handoff.md'
|
|
247
292
|
- kind: agent.run
|
|
248
293
|
options:
|
|
249
294
|
agent: ${vars.agent}
|
|
250
|
-
input: "Run sp:spec-decomposition for feature ${vars.featureId}. Read the brainstorm artifact, feature AC, and design doc. SIZING FIRST, before any JSON: apply the skill's `Default to NOT decomposing` rubric to the whole unit of work — if it scores 0-2 the correct output is a ONE-entry batch, not many. Scenario count is not task count: merge scenarios that one task delivers (same file surface, same subsystem, or unreadable apart in review), and list every scenario a task covers in its background. Merging never costs AC coverage — one task may carry several scenarios. Do not emit one entry per scenario or per requirement by reflex. Then produce a task-batch JSON array at .spur/run/${vars.__runId}-idea-task-batch.json, validated against apps/cli/schemas/task-batch.schema.json. Schema-permitted fields per entry: `name`, `background`, `requirements`, `feature_id`, `parent_wbs`, `priority`, `tags`, `template` — schema validation rejects anything else. Acceptance Criteria, Design, and Plan sections are filled in by the per-task refine step after batch-create, NOT at decompose time. Validate locally against the schema before emitting."
|
|
295
|
+
input: "Run sp:spec-decomposition for feature ${vars.featureId}. Read the brainstorm artifact, feature AC, and design doc. SIZING FIRST, before any JSON: apply the skill's `Default to NOT decomposing` rubric to the whole unit of work — if it scores 0-2 the correct output is a ONE-entry batch, not many. Scenario count is not task count: merge scenarios that one task delivers (same file surface, same subsystem, or unreadable apart in review), and list every scenario a task covers in its background. Merging never costs AC coverage — one task may carry several scenarios. Do not emit one entry per scenario or per requirement by reflex. Then produce a task-batch JSON array at .spur/run/${vars.__runId}-idea-task-batch.json, validated against apps/cli/schemas/task-batch.schema.json. Schema-permitted fields per entry: `name`, `background`, `requirements`, `feature_id`, `parent_wbs`, `priority`, `tags`, `template` — schema validation rejects anything else. Acceptance Criteria, Design, and Plan sections are filled in by the per-task refine step after batch-create, NOT at decompose time. Validate locally against the schema before emitting. Also emit the private task-order sidecar at .spur/run/${vars.__runId}-idea-task-order.json: a JSON array (one entry per batch item) of `{ name: <exact batch item name>, depends_on_names: [<batch item names>] }` declaring ordering/dependencies between the batch items; use `[]` when no ordering exists. Every `name` and every dependency must match exactly one batch item `name` — it is private workflow data, not part of task-batch.schema.json."
|
|
251
296
|
expectFile: .spur/run/${vars.__runId}-idea-task-batch.json
|
|
252
297
|
timeoutMs: ${vars.stepTimeoutMs}
|
|
298
|
+
# R1 (0518): the task-order sidecar is the ordering contract for handoff-finalize.
|
|
299
|
+
# Validate it fails closed: sidecar must be an array, batch names unique, sidecar names
|
|
300
|
+
# unique, every sidecar name/dependency must refer to exactly one batch name, and — the
|
|
301
|
+
# converse (F2, 0518 verify) — every batch name must appear in the sidecar, so a partial
|
|
302
|
+
# sidecar can never silently skip `task deps` for an unlisted item (`[]` is valid).
|
|
303
|
+
- kind: shell
|
|
304
|
+
options:
|
|
305
|
+
command: >-
|
|
306
|
+
BATCH=".spur/run/$__runId-idea-task-batch.json" &&
|
|
307
|
+
ORDER=".spur/run/$__runId-idea-task-order.json" &&
|
|
308
|
+
jq -e --slurpfile b "$BATCH" '
|
|
309
|
+
(type == "array") and
|
|
310
|
+
(($b[0] | map(.name) | length) == ($b[0] | map(.name) | unique | length)) and
|
|
311
|
+
((map(.name) | length) == (map(.name) | unique | length)) and
|
|
312
|
+
((map(.name) - ($b[0] | map(.name))) | length == 0) and
|
|
313
|
+
((($b[0] | map(.name)) - map(.name)) | length == 0) and
|
|
314
|
+
(((map(.depends_on_names // []) | flatten | unique) - ($b[0] | map(.name))) | length == 0)
|
|
315
|
+
' "$ORDER" >/dev/null
|
|
253
316
|
|
|
254
317
|
- id: batch-create
|
|
255
318
|
description: >
|
|
@@ -269,21 +332,116 @@ states:
|
|
|
269
332
|
description: >
|
|
270
333
|
Executes task batch creation exactly once per decomposition attempt. The
|
|
271
334
|
side effect lives in onEnter and records a sentinel; transition guards only
|
|
272
|
-
inspect sentinel/retry state.
|
|
335
|
+
inspect sentinel/retry state. The `--json` result is captured atomically in
|
|
336
|
+
.spur/run/${vars.__runId}-idea-batch-create-result.json (temp file + mv); the done
|
|
337
|
+
sentinel is written only after the JSON parses and `created == (.wbs | length)`,
|
|
338
|
+
so handoff-finalize can zip batch names to the returned WBS list. Any failure
|
|
339
|
+
(CLI error or malformed result) writes the failed sentinel, preserving the
|
|
340
|
+
existing retry behavior.
|
|
273
341
|
onEnter:
|
|
274
342
|
- kind: shell
|
|
275
343
|
options:
|
|
276
|
-
command:
|
|
344
|
+
command: >-
|
|
345
|
+
if test -f .spur/run/$__runId-idea-batch-create.done; then exit 0; fi;
|
|
346
|
+
rm -f .spur/run/$__runId-idea-batch-create.failed .spur/run/$__runId-idea-batch-create-result.json .spur/run/$__runId-idea-batch-create-result.json.tmp;
|
|
347
|
+
if $spurBin task batch-create --file .spur/run/$__runId-idea-task-batch.json --json > .spur/run/$__runId-idea-batch-create-result.json.tmp && jq -e ".created == (.wbs | length)" .spur/run/$__runId-idea-batch-create-result.json.tmp >/dev/null 2>&1; then
|
|
348
|
+
mv .spur/run/$__runId-idea-batch-create-result.json.tmp .spur/run/$__runId-idea-batch-create-result.json &&
|
|
349
|
+
date -u +%Y-%m-%dT%H:%M:%SZ > .spur/run/$__runId-idea-batch-create.done;
|
|
350
|
+
else
|
|
351
|
+
rm -f .spur/run/$__runId-idea-batch-create-result.json.tmp;
|
|
352
|
+
date -u +%Y-%m-%dT%H:%M:%SZ > .spur/run/$__runId-idea-batch-create.failed;
|
|
353
|
+
fi
|
|
354
|
+
|
|
355
|
+
- id: handoff-finalize
|
|
356
|
+
description: >
|
|
357
|
+
Post-create finalization (0518): zip batch item names to the created WBS
|
|
358
|
+
values from the captured batch-create result (equal-length/unique-name
|
|
359
|
+
checks), apply every non-empty depends_on_names list through
|
|
360
|
+
`spur task deps`, refresh the feature roster, check every created task, and
|
|
361
|
+
write the run-scoped handoff report
|
|
362
|
+
(.spur/run/${vars.__runId}-idea-handoff.md) with exactly one next command.
|
|
363
|
+
A mapping or CLI error fails the run before terminal handoff; an unready
|
|
364
|
+
task is a successful planning outcome recorded as a refineall recommendation.
|
|
365
|
+
onEnter:
|
|
366
|
+
# F1 (0518 verify): the per-task check loop fails closed. A stderr-only (non-JSON)
|
|
367
|
+
# `task check --json` exception would otherwise drop that task from the JSONL results
|
|
368
|
+
# without failing the run (the loop's exit status is its last body command), silently
|
|
369
|
+
# flipping the recommendation to runall — violating R3's any-fail=>refineall invariant.
|
|
370
|
+
# Each `jq -c … >> "$CHECKS"` appends under `|| exit 1`, and a row-count assertion
|
|
371
|
+
# (CHECKS lines == WBS count) gates the recommendation computation.
|
|
372
|
+
- kind: shell
|
|
373
|
+
options:
|
|
374
|
+
command: >-
|
|
375
|
+
BATCH=".spur/run/$__runId-idea-task-batch.json" &&
|
|
376
|
+
RESULT=".spur/run/$__runId-idea-batch-create-result.json" &&
|
|
377
|
+
ORDER=".spur/run/$__runId-idea-task-order.json" &&
|
|
378
|
+
REPORT=".spur/run/$__runId-idea-handoff.md" &&
|
|
379
|
+
DEPMAP=".spur/run/$__runId-idea-dep-map.tsv" &&
|
|
380
|
+
CHECKS=".spur/run/$__runId-idea-check-results.jsonl" &&
|
|
381
|
+
rm -f "$DEPMAP" "$CHECKS" &&
|
|
382
|
+
jq -e --slurpfile b "$BATCH" '(.wbs | length) == ($b[0] | length) and (($b[0] | map(.name) | unique | length) == ($b[0] | length))' "$RESULT" >/dev/null &&
|
|
383
|
+
jq -r --slurpfile b "$BATCH" --slurpfile r "$RESULT" --slurpfile o "$ORDER" '
|
|
384
|
+
($b[0] | map(.name)) as $names | ($r[0].wbs) as $wbs |
|
|
385
|
+
$o[0] | .[] |
|
|
386
|
+
(.name as $n | $names | index($n)) as $i |
|
|
387
|
+
(if $i == null or $wbs[$i] == null then "MISSING" else $wbs[$i] end) as $own |
|
|
388
|
+
((.depends_on_names // []) | map(. as $dep | $names | index($dep) as $d | if $d == null then "MISSING" else $wbs[$d] end) | join(" ")) as $deps |
|
|
389
|
+
[.name, $own, $deps] | @tsv
|
|
390
|
+
' "$ORDER" > "$DEPMAP" &&
|
|
391
|
+
while IFS="$(printf '\t')" read -r name own deps; do
|
|
392
|
+
test "$own" != MISSING || exit 1;
|
|
393
|
+
if test -n "$deps"; then
|
|
394
|
+
for d in $deps; do test "$d" != MISSING || exit 1; done;
|
|
395
|
+
$spurBin task deps "$own" set $deps --json >/dev/null || exit 1;
|
|
396
|
+
fi;
|
|
397
|
+
done < "$DEPMAP" &&
|
|
398
|
+
$spurBin feature refresh --feature "$featureId" --json >/dev/null &&
|
|
399
|
+
WBS_LIST=$(jq -r '.wbs | join(" ")' "$RESULT") &&
|
|
400
|
+
for wbs in $WBS_LIST; do
|
|
401
|
+
TMP=".spur/run/$__runId-idea-check-$wbs.tmp";
|
|
402
|
+
if $spurBin task check "$wbs" --json > "$TMP" 2>&1; then P=true; else P=false; fi;
|
|
403
|
+
jq -c --arg w "$wbs" --argjson p "$P" 'if (type == "array" and length > 0) then {wbs: $w, pass: $p, status: (.[0].status // "unknown")} else {wbs: $w, pass: $p, status: "missing"} end' "$TMP" >> "$CHECKS" || exit 1;
|
|
404
|
+
rm -f "$TMP";
|
|
405
|
+
done &&
|
|
406
|
+
CHECK_ROWS=$(wc -l < "$CHECKS" | tr -d ' ') &&
|
|
407
|
+
WBS_COUNT=$(printf '%s\n' $WBS_LIST | wc -l | tr -d ' ') &&
|
|
408
|
+
test "$CHECK_ROWS" = "$WBS_COUNT" &&
|
|
409
|
+
NEXT=$(jq -r --arg feature "$featureId" --slurpfile c "$CHECKS" 'if ($c | any(.[]; .pass == false)) then "/sp:dev-refineall --feature \($feature) --auto --depth ready" else "/sp:dev-runall --feature \($feature) --auto" end' "$RESULT") &&
|
|
410
|
+
{
|
|
411
|
+
echo "# Idea pipeline handoff report";
|
|
412
|
+
echo;
|
|
413
|
+
echo "Feature: $featureId";
|
|
414
|
+
echo "Run ID: $__runId";
|
|
415
|
+
echo;
|
|
416
|
+
echo "## Created tasks";
|
|
417
|
+
printf '%s\n' $WBS_LIST | sed 's/^/ - /';
|
|
418
|
+
echo;
|
|
419
|
+
echo "## Per-task readiness (spur task check)";
|
|
420
|
+
echo;
|
|
421
|
+
echo "| WBS | Outcome |";
|
|
422
|
+
echo "|-----|---------|";
|
|
423
|
+
while IFS= read -r line; do
|
|
424
|
+
w=$(printf '%s' "$line" | jq -r '.wbs');
|
|
425
|
+
o=$(printf '%s' "$line" | jq -r 'if .pass then "PASS" else "FAIL" end');
|
|
426
|
+
printf '| %s | %s |\n' "$w" "$o";
|
|
427
|
+
done < "$CHECKS";
|
|
428
|
+
echo;
|
|
429
|
+
echo "## Next command";
|
|
430
|
+
echo;
|
|
431
|
+
echo "$NEXT";
|
|
432
|
+
} > "$REPORT"
|
|
277
433
|
|
|
278
434
|
- id: handoff
|
|
279
435
|
description: >
|
|
280
|
-
Terminal — idea pipeline complete.
|
|
281
|
-
the
|
|
282
|
-
|
|
436
|
+
Terminal — idea pipeline complete. Ordering applied, roster refreshed, and
|
|
437
|
+
the handoff report written at .spur/run/${vars.__runId}-idea-handoff.md:
|
|
438
|
+
feature id, task WBS list, per-task readiness, and exactly one recommended
|
|
439
|
+
next command (ready-depth refineall when any task is unready, else auto
|
|
440
|
+
runall). No task execution — the pipeline stops here.
|
|
283
441
|
onEnter:
|
|
284
442
|
- kind: note
|
|
285
443
|
options:
|
|
286
|
-
message: "Idea pipeline handoff. Feature: ${vars.featureId}.
|
|
444
|
+
message: "Idea pipeline handoff. Feature: ${vars.featureId}. See .spur/run/${vars.__runId}-idea-handoff.md for the created task list and recommended next command."
|
|
287
445
|
# Checkpoint write: record session state for resume (Phase 4, task 0171 R3)
|
|
288
446
|
- kind: shell
|
|
289
447
|
options:
|
|
@@ -374,7 +532,7 @@ transitions:
|
|
|
374
532
|
guard:
|
|
375
533
|
kind: shell
|
|
376
534
|
options:
|
|
377
|
-
command: 'test "$profile" = auto && $spurBin feature check $featureId && test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" != false'
|
|
535
|
+
command: 'test "$profile" = auto && $spurBin feature check "$featureId" && test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" != false'
|
|
378
536
|
# Auto-skip 2: pass + skip-design route → decompose
|
|
379
537
|
- from: ac-generate
|
|
380
538
|
to: decompose
|
|
@@ -382,7 +540,7 @@ transitions:
|
|
|
382
540
|
guard:
|
|
383
541
|
kind: shell
|
|
384
542
|
options:
|
|
385
|
-
command: 'test "$profile" = auto && $spurBin feature check $featureId && (test "$design" = skip || (test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" = false))'
|
|
543
|
+
command: 'test "$profile" = auto && $spurBin feature check "$featureId" && (test "$design" = skip || (test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" = false))'
|
|
386
544
|
# Auto-skip 3: check failed, retry < 3 → loop back to ac-generate (self-loop)
|
|
387
545
|
- from: ac-generate
|
|
388
546
|
to: ac-generate
|
|
@@ -390,7 +548,7 @@ transitions:
|
|
|
390
548
|
guard:
|
|
391
549
|
kind: shell
|
|
392
550
|
options:
|
|
393
|
-
command: 'test "$profile" = auto && ! $spurBin feature check $featureId && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -lt 3'
|
|
551
|
+
command: 'test "$profile" = auto && ! $spurBin feature check "$featureId" && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -lt 3'
|
|
394
552
|
# Auto-skip 4: check failed, retry cap reached → escalate to failed
|
|
395
553
|
- from: ac-generate
|
|
396
554
|
to: failed
|
|
@@ -398,7 +556,7 @@ transitions:
|
|
|
398
556
|
guard:
|
|
399
557
|
kind: shell
|
|
400
558
|
options:
|
|
401
|
-
command: 'test "$profile" = auto && ! $spurBin feature check $featureId && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -ge 3'
|
|
559
|
+
command: 'test "$profile" = auto && ! $spurBin feature check "$featureId" && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -ge 3'
|
|
402
560
|
# Interactive fallback: enter feature-check HITL gate
|
|
403
561
|
- from: ac-generate
|
|
404
562
|
to: feature-check
|
|
@@ -414,28 +572,28 @@ transitions:
|
|
|
414
572
|
guard:
|
|
415
573
|
kind: shell
|
|
416
574
|
options:
|
|
417
|
-
command: 'test "$__hitlAnswer" = yes && $spurBin feature check $featureId && test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" != false'
|
|
575
|
+
command: 'test "$__hitlAnswer" = yes && $spurBin feature check "$featureId" && test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" != false'
|
|
418
576
|
- from: feature-check
|
|
419
577
|
to: decompose
|
|
420
578
|
description: Feature check passed, skip-design route — go directly to decompose.
|
|
421
579
|
guard:
|
|
422
580
|
kind: shell
|
|
423
581
|
options:
|
|
424
|
-
command: 'test "$__hitlAnswer" = yes && $spurBin feature check $featureId && (test "$design" = skip || (test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" = false))'
|
|
582
|
+
command: 'test "$__hitlAnswer" = yes && $spurBin feature check "$featureId" && (test "$design" = skip || (test "$design" = auto && test "$(jq -r .needs_design .spur/run/$__runId-idea-needs-design.json 2>/dev/null)" = false))'
|
|
425
583
|
- from: feature-check
|
|
426
584
|
to: ac-generate
|
|
427
585
|
description: "Feature check failed — revise AC (retry cap: 3)."
|
|
428
586
|
guard:
|
|
429
587
|
kind: shell
|
|
430
588
|
options:
|
|
431
|
-
command: '(test "$__hitlAnswer" = no || ! $spurBin feature check $featureId) && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -lt 3'
|
|
589
|
+
command: '(test "$__hitlAnswer" = no || ! $spurBin feature check "$featureId") && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -lt 3'
|
|
432
590
|
- from: feature-check
|
|
433
591
|
to: failed
|
|
434
592
|
description: Feature check failed after 3 retries — escalate to failed.
|
|
435
593
|
guard:
|
|
436
594
|
kind: shell
|
|
437
595
|
options:
|
|
438
|
-
command: '(test "$__hitlAnswer" = no || ! $spurBin feature check $featureId) && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -ge 3'
|
|
596
|
+
command: '(test "$__hitlAnswer" = no || ! $spurBin feature check "$featureId") && test "$(cat .spur/run/$__runId-idea-ac-retry-count 2>/dev/null || echo 0)" -ge 3'
|
|
439
597
|
- from: feature-check
|
|
440
598
|
to: cancelled
|
|
441
599
|
description: Operator cancelled the feature-check gate.
|
|
@@ -448,25 +606,32 @@ transitions:
|
|
|
448
606
|
# Declaration order: auto-skip guard tried FIRST (like task-pipeline's review->verify pattern).
|
|
449
607
|
- from: system-design
|
|
450
608
|
to: decompose
|
|
451
|
-
description: profile=auto AND design_approved=true — skip design approval gate.
|
|
609
|
+
description: profile=auto AND design_approved=true AND feature check passes — skip design approval gate.
|
|
452
610
|
guard:
|
|
453
611
|
kind: shell
|
|
454
612
|
options:
|
|
455
|
-
command: 'test "$profile" = auto && test "$design_approved" = true'
|
|
613
|
+
command: 'test "$profile" = auto && test "$design_approved" = true && $spurBin feature check "$featureId"'
|
|
456
614
|
- from: system-design
|
|
457
615
|
to: design-approval
|
|
458
616
|
description: System design done — gate on design approval.
|
|
459
617
|
guard:
|
|
460
618
|
kind: always
|
|
461
619
|
|
|
462
|
-
# ── design-approval -> decompose (after operator approval) ──
|
|
620
|
+
# ── design-approval -> decompose (after operator approval), AC-failure -> feature-check ──
|
|
463
621
|
- from: design-approval
|
|
464
622
|
to: decompose
|
|
465
|
-
description: Design approved — proceed to decomposition.
|
|
623
|
+
description: Design approved and feature check passes — proceed to decomposition.
|
|
466
624
|
guard:
|
|
467
625
|
kind: shell
|
|
468
626
|
options:
|
|
469
|
-
command: 'test "$__hitlAnswer" = yes'
|
|
627
|
+
command: 'test "$__hitlAnswer" = yes && $spurBin feature check "$featureId"'
|
|
628
|
+
- from: design-approval
|
|
629
|
+
to: feature-check
|
|
630
|
+
description: "Design approved but feature check fails — route back through the AC gate (revise AC, retry cap: 3)."
|
|
631
|
+
guard:
|
|
632
|
+
kind: shell
|
|
633
|
+
options:
|
|
634
|
+
command: 'test "$__hitlAnswer" = yes && ! $spurBin feature check "$featureId"'
|
|
470
635
|
- from: design-approval
|
|
471
636
|
to: system-design
|
|
472
637
|
description: "Design rejected - revise system design (cap: 1 revise)."
|
|
@@ -526,10 +691,10 @@ transitions:
|
|
|
526
691
|
options:
|
|
527
692
|
command: 'test "$__hitlAnswer" = cancel'
|
|
528
693
|
|
|
529
|
-
# ── batch-create-run: success -> handoff, failure -> decompose (retry cap: 3), failure+cap -> failed ──
|
|
694
|
+
# ── batch-create-run: success -> handoff-finalize, failure -> decompose (retry cap: 3), failure+cap -> failed ──
|
|
530
695
|
- from: batch-create-run
|
|
531
|
-
to: handoff
|
|
532
|
-
description: Batch created — handoff.
|
|
696
|
+
to: handoff-finalize
|
|
697
|
+
description: Batch created and result captured — apply ordering, refresh roster, write handoff report.
|
|
533
698
|
guard:
|
|
534
699
|
kind: shell
|
|
535
700
|
options:
|
|
@@ -548,3 +713,10 @@ transitions:
|
|
|
548
713
|
kind: shell
|
|
549
714
|
options:
|
|
550
715
|
command: 'test -f .spur/run/$__runId-idea-batch-create.failed && test "$(cat .spur/run/$__runId-idea-decompose-retry-count 2>/dev/null || echo 0)" -ge 3'
|
|
716
|
+
|
|
717
|
+
# ── handoff-finalize: -> handoff (terminal) ──
|
|
718
|
+
- from: handoff-finalize
|
|
719
|
+
to: handoff
|
|
720
|
+
description: Ordering applied, roster refreshed, handoff report written — terminal handoff.
|
|
721
|
+
guard:
|
|
722
|
+
kind: always
|
|
@@ -188,6 +188,11 @@ states:
|
|
|
188
188
|
# a tree already dirty with another task's implementation is how 0485's diff
|
|
189
189
|
# got swept into 0486's run. Corpus dirs are excluded: the pipeline writes
|
|
190
190
|
# those itself.
|
|
191
|
+
# R1 (0511): task-corpus dirt gets its own advisory NOTE — docs/tasks* is
|
|
192
|
+
# excluded from the non-corpus warning, so pre-existing task-corpus edits are
|
|
193
|
+
# invisible at launch yet can be accidentally staged with the current task
|
|
194
|
+
# later. Advisory only (never a block): the pipeline legitimately updates
|
|
195
|
+
# task files, so corpus dirt is launch-time visibility, not a lifecycle guard.
|
|
191
196
|
- kind: shell
|
|
192
197
|
options:
|
|
193
198
|
command: >-
|
|
@@ -196,6 +201,11 @@ states:
|
|
|
196
201
|
echo "precheck: WARNING - working tree has uncommitted non-corpus changes; commit or stash before starting a new task:";
|
|
197
202
|
echo "$DIRTY";
|
|
198
203
|
fi;
|
|
204
|
+
CORPUS_DIRTY=$(git status --porcelain -- ':(glob)docs/tasks*/**' 2>/dev/null);
|
|
205
|
+
if [ -n "$CORPUS_DIRTY" ]; then
|
|
206
|
+
echo "precheck: NOTE - task corpus has uncommitted changes; review before staging with this task:";
|
|
207
|
+
echo "$CORPUS_DIRTY";
|
|
208
|
+
fi;
|
|
199
209
|
exit 0
|
|
200
210
|
- kind: note
|
|
201
211
|
options:
|
|
@@ -441,7 +451,7 @@ states:
|
|
|
441
451
|
- kind: agent.run
|
|
442
452
|
options:
|
|
443
453
|
agent: ${vars.agent}
|
|
444
|
-
input: /sp:dev-verify ${vars.wbs} --auto --fix all
|
|
454
|
+
input: /sp:dev-verify ${vars.wbs} --auto --fix all --focus all
|
|
445
455
|
timeoutMs: ${vars.stepTimeoutMs}
|
|
446
456
|
answerFile: .spur/run/${vars.wbs}-verify-answer.txt
|
|
447
457
|
- kind: shell
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobing-ai/spur",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.44",
|
|
4
4
|
"description": "Spur CLI — local-first harness for mainstream coding agents: constraint checking, workflow orchestration, agent health, and history analytics. Bun-native; exposes the `spur` command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spur",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@commander-js/extra-typings": "^14.0.0",
|
|
56
|
-
"@gobing-ai/ts-db": "^0.4.
|
|
57
|
-
"@gobing-ai/ts-ai-runner": "^0.4.
|
|
58
|
-
"@gobing-ai/ts-dual-workflow-engine": "^0.4.
|
|
59
|
-
"@gobing-ai/ts-infra": "^0.4.
|
|
60
|
-
"@gobing-ai/ts-llm-jsonl-importer": "^0.4.
|
|
61
|
-
"@gobing-ai/ts-rule-engine": "^0.4.
|
|
62
|
-
"@gobing-ai/ts-runtime": "^0.4.
|
|
63
|
-
"@gobing-ai/ts-utils": "^0.4.
|
|
56
|
+
"@gobing-ai/ts-db": "^0.4.27",
|
|
57
|
+
"@gobing-ai/ts-ai-runner": "^0.4.27",
|
|
58
|
+
"@gobing-ai/ts-dual-workflow-engine": "^0.4.27",
|
|
59
|
+
"@gobing-ai/ts-infra": "^0.4.27",
|
|
60
|
+
"@gobing-ai/ts-llm-jsonl-importer": "^0.4.27",
|
|
61
|
+
"@gobing-ai/ts-rule-engine": "^0.4.27",
|
|
62
|
+
"@gobing-ai/ts-runtime": "^0.4.27",
|
|
63
|
+
"@gobing-ai/ts-utils": "^0.4.27",
|
|
64
64
|
"@types/bun": "1.3.14",
|
|
65
65
|
"@types/figlet": "^1.7.0",
|
|
66
66
|
"@types/node-notifier": "8.0.5",
|
|
@@ -14,10 +14,10 @@ Wraps the **sp:spur-dev** and **sp:code-implementation** skills.
|
|
|
14
14
|
| --- | --- | --- |
|
|
15
15
|
| `<wbs>` | Task WBS to run. | required |
|
|
16
16
|
| `--mode` `<full\|implement>` | Full pipeline or single implement step. | full |
|
|
17
|
-
| `--agent` `<inline\|auto\|name>` | Who runs the model-bearing stages. In an interactive session, omit/`inline`
|
|
17
|
+
| `--agent` `<inline\|auto\|name>` | Who runs the model-bearing stages. In an interactive session, omit/`inline` keeps the controller in the host session (non-subprocess); eligible full-mode `agent.run` stages may dispatch once to a native subagent, with host fallback (task 0508). `auto` or a name keeps subprocess dispatch. | inline |
|
|
18
18
|
| `--auto` | Skip objective HITL confirmations. | off |
|
|
19
19
|
| `--next` | Chain-to-completion via the next-router. | off |
|
|
20
|
-
| `--wrap` | Run the wrap hop after the main step. | off |
|
|
20
|
+
| `--wrap` | Run the wrap hop after the main step. The `--agent` selector is preserved into the `/sp:dev-wrap <wbs>` handoff when supplied; omission remains omission. The wrap hop is workflow-backed and reports its trigger-3 subprocess override. | off |
|
|
21
21
|
| `--continue` | Resume an interrupted task from its checkpoint. | off |
|
|
22
22
|
|
|
23
23
|
For shared semantics, see the [flag glossary](../skills/spur-dev/references/flag-glossary.md).
|
|
@@ -37,7 +37,7 @@ For shared semantics, see the [flag glossary](../skills/spur-dev/references/flag
|
|
|
37
37
|
|
|
38
38
|
**Flags:**
|
|
39
39
|
|
|
40
|
-
- `--auto` | `--agent <inline|auto|name>` — Skip objective HITL confirmations (taste/irreversible gates still pause). `--agent` names who does the model-bearing work. Interactive omit/`inline` keeps
|
|
40
|
+
- `--auto` | `--agent <inline|auto|name>` — Skip objective HITL confirmations (taste/irreversible gates still pause). `--agent` names who does the model-bearing work. Interactive omit/`inline` keeps the controller and implement-only stages in this session; full mode reads `task-pipeline.yaml` as the SSOT and interprets its actions/guards through the inline driver, where eligible `agent.run` stages may dispatch once to a native subagent and otherwise run in the host (task 0508). It records `stage <id> executed inline in session <session-id>` or `stage <id> executed via subagent <agent-id> (host session <session-id>)` in the run log. `auto` or a name is merged into `vars.agent` and `vars.implementAgent` and keeps the existing subprocess workflow. Headless `spur workflow run` / `spur agent run` is unchanged. See the [execution-surface contract](../skills/spur-dev/references/cross-cutting.md#inline-default-execution-surface).
|
|
41
41
|
|
|
42
42
|
**Mode split (load-bearing — bug-742)**
|
|
43
43
|
|
|
@@ -17,9 +17,9 @@ Wraps the **sp:spur-dev** skill.
|
|
|
17
17
|
| `--mode` `<sequential\|parallel>` | Batch execution order. | sequential |
|
|
18
18
|
| `--keep-going` | Continue past per-task failures. | off |
|
|
19
19
|
| `--auto` | Skip objective HITL gates. | off |
|
|
20
|
-
| `--agent` `<inline\|auto\|name>` | Who runs each task's pipeline stages. Interactive sequential omit/`inline` uses the host-session driver; `auto`, a name, parallel mode, and headless invocation use subprocesses. | inline |
|
|
20
|
+
| `--agent` `<inline\|auto\|name>` | Who runs each task's pipeline stages. Interactive sequential omit/`inline` uses the host-session driver — host-controlled, eligible `agent.run` stages may use a native subagent (task 0508); `auto`, a name, parallel mode, and headless invocation use subprocesses. | inline |
|
|
21
21
|
| `--json` | Emit structured JSON. | off |
|
|
22
|
-
| `--wrap` | Run the wrap hop per task. | off |
|
|
22
|
+
| `--wrap` | Run the wrap hop per task. The `--agent` selector is preserved into each `/sp:dev-wrap <wbs>` handoff when supplied; omission remains omission. | off |
|
|
23
23
|
| `--next` | Chain-to-completion via the next-router. | off |
|
|
24
24
|
| `--continue` | Resume an interrupted batch. | off |
|
|
25
25
|
| `--worktree` `[<name>]` | Run the batch in an isolated git worktree; FF-merge on success, retain on failure. Bare `--worktree` creates a fresh tree; `--worktree <name>` adopts an existing worktree by name/path/branch. | off |
|
|
@@ -33,7 +33,12 @@ For shared semantics, see the [flag glossary](../skills/spur-dev/references/flag
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Flags: `--tasks <selector>` (required — explicit WBS list, status pseudo-list, `feature:<id>`,
|
|
36
|
-
or `ready`), `--feature <id>` (sugar for `feature:<id
|
|
36
|
+
or `ready`), `--feature <id>` (sugar for `feature:<id>`; when the effective selector is
|
|
37
|
+
feature-derived, `dev-runall` runs `spur feature check <id> --strict --json` **once** before
|
|
38
|
+
resolving tasks — a non-zero strict check aborts the batch with verdict `aborted` and the
|
|
39
|
+
structured findings, before any task pipeline action, task 0510 R2; scoped: `L4.scenario-unverified`
|
|
40
|
+
(the expected pre-run state of any not-yet-run feature) is reported verbatim but does not abort —
|
|
41
|
+
any other strict error aborts), `--mode`
|
|
37
42
|
`<sequential|parallel>` (default `sequential`; `parallel` fans out a proven-independent subset —
|
|
38
43
|
see `execution-batch.md` § Parallel Execution), `--keep-going`
|
|
39
44
|
(batch failure policy — skip a failed task's in-batch dependents, continue independents; default
|
|
@@ -75,6 +80,6 @@ full distinction.
|
|
|
75
80
|
|
|
76
81
|
## Implementation
|
|
77
82
|
|
|
78
|
-
- Apply the [inline-default execution-surface contract](../skills/spur-dev/references/cross-cutting.md#inline-default-execution-surface). Interactive sequential omit/`inline` keeps the orchestrator
|
|
83
|
+
- Apply the [inline-default execution-surface contract](../skills/spur-dev/references/cross-cutting.md#inline-default-execution-surface). Interactive sequential omit/`inline` keeps the orchestrator in the host session through the [inline pipeline driver](../skills/spur-dev/references/inline-pipeline-driver.md); eligible `agent.run` stages may dispatch once to a native subagent with host fallback (task 0508). `--agent auto`, a name, or parallel mode retains the isolated per-task workflow boundary.
|
|
79
84
|
- Interactive sequential omit/inline: `Skill(skill="sp:spur-dev", args="runall-inline $ARGUMENTS")`.
|
|
80
85
|
- Explicit executor or parallel mode: `Skill(skill="sp:spur-dev", args="runall $ARGUMENTS")` → `sp:super-planner` agent.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Wrap up a single completed task — learnings, metrics, doc-sync, optional feature transition and branch cleanup
|
|
3
|
-
argument-hint: "<wbs> [--auto] [--merge] [--dry-run]"
|
|
3
|
+
argument-hint: "<wbs> [--agent <inline|auto|name>] [--auto] [--merge] [--dry-run]"
|
|
4
4
|
allowed-tools: ["Bash", "Read", "AskUserQuestion"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -13,6 +13,7 @@ Wraps the **wrapup-pipeline.yaml** workflow.
|
|
|
13
13
|
| Flag | Description | Default |
|
|
14
14
|
| --- | --- | --- |
|
|
15
15
|
| `<wbs>` | Task WBS to wrap. | required |
|
|
16
|
+
| `--agent` `<inline\|auto\|name>` | Who runs the wrap's model-bearing steps. Wrap is workflow-backed: omit/`inline` resolves to `agent.default` (objective trigger 3 — durable auditable run record required); `auto` tier-resolves an executor; a name pins that executor into `vars.agent`. | agent.default |
|
|
16
17
|
| `--auto` | Skip objective HITL gates. | off |
|
|
17
18
|
| `--merge` | Merge the wrap branch. | off |
|
|
18
19
|
| `--dry-run` | Render the wrap without writing. | off |
|
|
@@ -21,10 +22,27 @@ For shared semantics, see the [flag glossary](../skills/spur-dev/references/flag
|
|
|
21
22
|
|
|
22
23
|
## Usage
|
|
23
24
|
|
|
24
|
-
/sp:dev-wrap <wbs> [--auto] [--merge] [--dry-run]
|
|
25
|
+
/sp:dev-wrap <wbs> [--agent <inline|auto|name>] [--auto] [--merge] [--dry-run]
|
|
25
26
|
|
|
26
27
|
## Implementation
|
|
27
28
|
|
|
29
|
+
- Apply the [inline-default execution-surface contract](../skills/spur-dev/references/cross-cutting.md#inline-default-execution-surface).
|
|
30
|
+
- Wrap stays **workflow-backed** — `spur workflow run .spur/workflows/wrapup-pipeline.yaml` is the only implementation; there is no inline wrap driver.
|
|
31
|
+
- Resolve the executor **before** launching the workflow:
|
|
32
|
+
- `--agent <name>` → pass the name unchanged into `vars.agent`.
|
|
33
|
+
- `--agent auto` → tier-resolve a concrete executor first, then merge it into `vars.agent`.
|
|
34
|
+
- omit/`--agent inline` → resolve to `agent.default` (the documented headless resolution of `inline`).
|
|
35
|
+
- Emit a pre-dispatch notice naming the override before `spur workflow run`, exactly:
|
|
36
|
+
`execution surface: subprocess`, `reason: trigger 3 — durable auditable run record required`, `requested agent: inline|auto|<name>`, `executor: agent.default|<resolved-name>`.
|
|
37
|
+
- The wrap workflow still creates its durable run record (task_run_links / trace) — the notice reports the override, it does not change the workflow.
|
|
38
|
+
|
|
28
39
|
```bash
|
|
29
|
-
|
|
40
|
+
AGENT=… # resolved above: agent.default for inline/omitted, tier-resolved for auto, unchanged for <name>
|
|
41
|
+
echo "execution surface: subprocess; reason: trigger 3 — durable auditable run record required; requested agent: <inline|auto|name>; executor: $AGENT"
|
|
42
|
+
VARS=$(jq -nc --arg tasks "[\"$WBS\"]" --arg agent "$AGENT" --arg profile "$PROFILE" --arg merge "$MERGE" \
|
|
43
|
+
'{tasks:$tasks, agent:$agent, profile:$profile, merge:$merge}')
|
|
44
|
+
spur workflow run .spur/workflows/wrapup-pipeline.yaml --vars "$VARS" [--dry-run]
|
|
30
45
|
```
|
|
46
|
+
|
|
47
|
+
The executor resolution is described in the bullets above; the snippet's `AGENT` variable carries
|
|
48
|
+
the resolved name (`agent.default` for omit/`inline`).
|