strikethroo 3.21.2 → 3.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-web/assets/{arc-Dnj8t_Cg.js → arc-8Mxnwqfp.js} +1 -1
- package/dist-web/assets/{architectureDiagram-3BPJPVTR-7x3i_pmi.js → architectureDiagram-3BPJPVTR-CjR6ApxR.js} +1 -1
- package/dist-web/assets/{blockDiagram-GPEHLZMM-Cg2a93ny.js → blockDiagram-GPEHLZMM-DhGYH8V9.js} +1 -1
- package/dist-web/assets/{c4Diagram-AAUBKEIU-DMmHyu1B.js → c4Diagram-AAUBKEIU-BpUJqbui.js} +1 -1
- package/dist-web/assets/channel-BJWsQ6W2.js +1 -0
- package/dist-web/assets/{chunk-2J33WTMH-BarACI5V.js → chunk-2J33WTMH-BX8NM2bi.js} +1 -1
- package/dist-web/assets/{chunk-4BX2VUAB-D1jdtJjC.js → chunk-4BX2VUAB-ChNDzlNh.js} +1 -1
- package/dist-web/assets/{chunk-55IACEB6-D3ecVMrb.js → chunk-55IACEB6-62ChSXXQ.js} +1 -1
- package/dist-web/assets/{chunk-727SXJPM-DXNd005W.js → chunk-727SXJPM-DM_m3yWL.js} +1 -1
- package/dist-web/assets/{chunk-AQP2D5EJ-C0VOl8ox.js → chunk-AQP2D5EJ-DZcEQaCW.js} +1 -1
- package/dist-web/assets/{chunk-FMBD7UC4-DcTxd98r.js → chunk-FMBD7UC4-jITTRsf2.js} +1 -1
- package/dist-web/assets/{chunk-ND2GUHAM-CAMtgZHg.js → chunk-ND2GUHAM-D73huh8-.js} +1 -1
- package/dist-web/assets/{chunk-QZHKN3VN-DWfV0bq5.js → chunk-QZHKN3VN-DqdeIFoN.js} +1 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-yCIjCNKh.js +1 -0
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-yCIjCNKh.js +1 -0
- package/dist-web/assets/{cose-bilkent-S5V4N54A-Csc9VNPk.js → cose-bilkent-S5V4N54A-B6y8LQMc.js} +1 -1
- package/dist-web/assets/{dagre-BM42HDAG-BnwRiOXb.js → dagre-BM42HDAG-CEudzPZe.js} +1 -1
- package/dist-web/assets/{diagram-2AECGRRQ-wPIOyrHK.js → diagram-2AECGRRQ-ADCpFrWI.js} +1 -1
- package/dist-web/assets/{diagram-5GNKFQAL-TccsDwtZ.js → diagram-5GNKFQAL-BQcNfKgC.js} +1 -1
- package/dist-web/assets/{diagram-KO2AKTUF-DtAJCwJt.js → diagram-KO2AKTUF-2Y25ZUgl.js} +1 -1
- package/dist-web/assets/{diagram-LMA3HP47-BvMQVWoO.js → diagram-LMA3HP47-qiLQPz0R.js} +1 -1
- package/dist-web/assets/{diagram-OG6HWLK6-BPxOm_5c.js → diagram-OG6HWLK6-5tV6wHg0.js} +1 -1
- package/dist-web/assets/{erDiagram-TEJ5UH35-CRPnIDwq.js → erDiagram-TEJ5UH35-C9KwzSBJ.js} +1 -1
- package/dist-web/assets/{flowDiagram-I6XJVG4X-DBLbHpW_.js → flowDiagram-I6XJVG4X-DWFT6yjl.js} +1 -1
- package/dist-web/assets/{ganttDiagram-6RSMTGT7-gZhN1gnI.js → ganttDiagram-6RSMTGT7-CwOaaOj-.js} +1 -1
- package/dist-web/assets/{gitGraphDiagram-PVQCEYII-Dssi43fY.js → gitGraphDiagram-PVQCEYII-D9GwiRiE.js} +1 -1
- package/dist-web/assets/{index-CEGCvBkm.js → index-CJtNiGoR.js} +1 -1
- package/dist-web/assets/{index-BdDnJAsd.js → index-CXzu9Ojw.js} +1 -1
- package/dist-web/assets/{index-Nz3QPmKb.js → index-R-j45X6T.js} +4 -4
- package/dist-web/assets/{infoDiagram-5YYISTIA-sXzUxho2.js → infoDiagram-5YYISTIA-8s7z_vpg.js} +1 -1
- package/dist-web/assets/{ishikawaDiagram-YF4QCWOH-BPHTll-A.js → ishikawaDiagram-YF4QCWOH-mkZLBAJy.js} +1 -1
- package/dist-web/assets/{journeyDiagram-JHISSGLW-h2TzQwJC.js → journeyDiagram-JHISSGLW-CrSmLI8k.js} +1 -1
- package/dist-web/assets/{kanban-definition-UN3LZRKU-1xkUO8WZ.js → kanban-definition-UN3LZRKU-jB_Pkb2G.js} +1 -1
- package/dist-web/assets/{linear-D_7aXIXs.js → linear-BmZe-JSe.js} +1 -1
- package/dist-web/assets/{mermaid.core-Bwdbg8D0.js → mermaid.core-kJp9v7BU.js} +4 -4
- package/dist-web/assets/{mindmap-definition-RKZ34NQL-eAYjLKqV.js → mindmap-definition-RKZ34NQL-BygLhP5m.js} +1 -1
- package/dist-web/assets/{pieDiagram-4H26LBE5-CWfU-OAg.js → pieDiagram-4H26LBE5-CERgWyaB.js} +1 -1
- package/dist-web/assets/{quadrantDiagram-W4KKPZXB-CgKKzr9p.js → quadrantDiagram-W4KKPZXB-BA_bITko.js} +1 -1
- package/dist-web/assets/{requirementDiagram-4Y6WPE33-Dx-cDqCB.js → requirementDiagram-4Y6WPE33-BkZUv4kJ.js} +1 -1
- package/dist-web/assets/{sankeyDiagram-5OEKKPKP-B_yYv0Dy.js → sankeyDiagram-5OEKKPKP-DpAA7Nm0.js} +1 -1
- package/dist-web/assets/{sequenceDiagram-3UESZ5HK--QLtZ1Rs.js → sequenceDiagram-3UESZ5HK-D1A1wk57.js} +1 -1
- package/dist-web/assets/{stateDiagram-AJRCARHV-DVmFu5R7.js → stateDiagram-AJRCARHV-GNvrUmkz.js} +1 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-DkJ7czmr.js +1 -0
- package/dist-web/assets/{timeline-definition-PNZ67QCA-BUtZCLUr.js → timeline-definition-PNZ67QCA-GEOSAbn6.js} +1 -1
- package/dist-web/assets/{vennDiagram-CIIHVFJN-CiAEMMvF.js → vennDiagram-CIIHVFJN-D_IwvMPq.js} +1 -1
- package/dist-web/assets/{wardley-L42UT6IY-CzeU7tOS.js → wardley-L42UT6IY-CpNQq-PK.js} +1 -1
- package/dist-web/assets/{wardleyDiagram-YWT4CUSO-vvP_uZTz.js → wardleyDiagram-YWT4CUSO-DjyTS7lS.js} +1 -1
- package/dist-web/assets/{xychartDiagram-2RQKCTM6-vSFbOWXi.js → xychartDiagram-2RQKCTM6-Bi0kYEuJ.js} +1 -1
- package/dist-web/index.html +1 -1
- package/package.json +1 -1
- package/templates/harness/skills/st-code-review/SKILL.md +3 -7
- package/templates/harness/skills/st-create-plan/SKILL.md +22 -44
- package/templates/harness/skills/st-execute-blueprint/SKILL.md +26 -63
- package/templates/harness/skills/st-execute-task/SKILL.md +24 -83
- package/templates/harness/skills/st-full-workflow/SKILL.md +125 -273
- package/templates/harness/skills/st-generate-tasks/SKILL.md +82 -157
- package/templates/harness/skills/st-refine-plan/SKILL.md +54 -111
- package/dist-web/assets/channel-Bb0_vDD8.js +0 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-R25Yhm3n.js +0 -1
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-R25Yhm3n.js +0 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-DBs8K0hr.js +0 -1
- package/templates/harness/skills/st-full-workflow/references/task-frontmatter.md +0 -23
- package/templates/harness/skills/st-full-workflow/references/test-philosophy.md +0 -17
- package/templates/harness/skills/st-generate-tasks/references/task-frontmatter.md +0 -23
- package/templates/harness/skills/st-generate-tasks/references/test-philosophy.md +0 -17
|
@@ -5,15 +5,6 @@ description: Use when the user asks to run, execute, implement, or carry out a S
|
|
|
5
5
|
|
|
6
6
|
# st-execute-blueprint
|
|
7
7
|
|
|
8
|
-
Drive the end-to-end execution of an existing Strikethroo plan blueprint.
|
|
9
|
-
|
|
10
|
-
## Critical Rules
|
|
11
|
-
|
|
12
|
-
1. **Never skip validation gates** — a phase is not complete until `POST_PHASE.md` succeeds.
|
|
13
|
-
2. **Preserve dependency order** — never execute a task before all of its dependencies are completed.
|
|
14
|
-
3. **Maximize parallelism within each phase** — run all tasks whose dependencies are satisfied simultaneously.
|
|
15
|
-
4. **Fail safely and document everything** — halt on unrecoverable errors, and record all decisions, issues, and outcomes under "Noteworthy Events" in the execution summary.
|
|
16
|
-
|
|
17
8
|
## Inputs
|
|
18
9
|
|
|
19
10
|
The user supplies the numeric plan ID conversationally.
|
|
@@ -22,20 +13,15 @@ The user supplies the numeric plan ID conversationally.
|
|
|
22
13
|
|
|
23
14
|
### 1. Locate the strikethroo root
|
|
24
15
|
|
|
25
|
-
Run `scripts/find-strikethroo-root.cjs` from the user's working directory.
|
|
16
|
+
Run `scripts/find-strikethroo-root.cjs` from the user's working directory. If
|
|
17
|
+
it exits non-zero, stop and ask the user to run `npx strikethroo init`.
|
|
26
18
|
|
|
27
|
-
|
|
28
|
-
initialized strikethroo workspace. Stop and ask the user to run the project
|
|
29
|
-
initializer (e.g. `npx strikethroo init`) before continuing. Do
|
|
30
|
-
not attempt to execute a plan outside of a valid root.
|
|
31
|
-
|
|
32
|
-
For every subsequent step, treat the path printed by this script as `<root>`.
|
|
19
|
+
Treat the path it prints as `<root>` for every subsequent step.
|
|
33
20
|
|
|
34
21
|
### 2. Resolve the plan
|
|
35
22
|
|
|
36
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile`
|
|
37
|
-
absolute path
|
|
38
|
-
field alone.
|
|
23
|
+
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile` for the plan
|
|
24
|
+
file's absolute path. Another field name prints that field instead.
|
|
39
25
|
|
|
40
26
|
If the script exits non-zero, stop and ask the user to confirm the plan ID.
|
|
41
27
|
Do not guess a different ID.
|
|
@@ -52,26 +38,26 @@ Run `scripts/validate-plan-blueprint.cjs <plan-id> taskCount` and
|
|
|
52
38
|
|
|
53
39
|
If `taskCount` is 0 or `blueprintExists` is `no`:
|
|
54
40
|
|
|
55
|
-
|
|
41
|
+
Notify the user: "Tasks or execution blueprint not found. Generating tasks automatically..."
|
|
42
|
+
|
|
56
43
|
- Follow the `st-generate-tasks` skill for this plan ID. Execute its operating procedure in full, including running `POST_TASK_GENERATION_ALL.md` to write the Execution Blueprint.
|
|
57
|
-
-
|
|
44
|
+
- Re-run the `planFile`, `planDir`, `taskCount`, and `blueprintExists` queries to refresh the resolved paths and counts.
|
|
58
45
|
|
|
59
|
-
If
|
|
46
|
+
If the plan still has no tasks or no blueprint, stop and report failure.
|
|
60
47
|
|
|
61
48
|
### 5. Optionally create a feature branch
|
|
62
49
|
|
|
63
|
-
Run `scripts/create-feature-branch.cjs <plan-id>` once before phase execution.
|
|
50
|
+
Run `scripts/create-feature-branch.cjs <plan-id>` once before phase execution. A skip is not a failure. Continue on the current branch, and never create the branch by hand. Uncommitted or untracked changes are permitted only inside the repository-root `.ai/strikethroo` subtree. An error result halts execution; report it.
|
|
64
51
|
|
|
65
|
-
|
|
52
|
+
Then run `scripts/capture-base-commit.cjs <plan-id>` once to record the commit the review gate diffs against. A `skipped` result continues execution and means the review gate will skip. Only an `error` result halts.
|
|
66
53
|
|
|
67
54
|
### 6. Load project context and execution blueprint
|
|
68
55
|
|
|
69
56
|
Read these files, in order:
|
|
70
57
|
|
|
71
|
-
- `<root>/config/STRIKETHROO.md`
|
|
72
|
-
- The plan document at the path
|
|
73
|
-
-
|
|
74
|
-
- `<root>/config/shared/verification-gate.md` and `<root>/config/shared/anti-rationalization.md` — apply in the phase loop below.
|
|
58
|
+
- `<root>/config/STRIKETHROO.md`
|
|
59
|
+
- The plan document at the path from step 2, including its Execution Blueprint section, which defines the phase groupings and task dispatch order.
|
|
60
|
+
- `<root>/config/shared/verification-gate.md` and `<root>/config/shared/anti-rationalization.md`, both applied in the phase loop below.
|
|
75
61
|
|
|
76
62
|
### 7. Execute phases in order
|
|
77
63
|
|
|
@@ -93,17 +79,13 @@ scripts/dispatch-task-execution.cjs resolve <task-file> <current-harness> <works
|
|
|
93
79
|
```
|
|
94
80
|
|
|
95
81
|
Resolvers never launch external processes. After interpreting all route results, issue
|
|
96
|
-
every external execution and every
|
|
82
|
+
every external execution and every sub-agent **together in one parallel
|
|
97
83
|
tool operation**. External execution uses:
|
|
98
84
|
|
|
99
85
|
```text
|
|
100
86
|
scripts/dispatch-task-execution.cjs execute <handoff> <task-file> <current-harness> <workspace> <plan-id> <task-id>
|
|
101
87
|
```
|
|
102
88
|
|
|
103
|
-
This two-step protocol is mandatory: do not execute external tasks during route
|
|
104
|
-
resolution, do not serialize external commands, and do not wait for external completion
|
|
105
|
-
before launching ready native agents.
|
|
106
|
-
|
|
107
89
|
`<current-harness>` is the exact supported harness identifier running this
|
|
108
90
|
skill; `<workspace>` is the project working directory.
|
|
109
91
|
|
|
@@ -114,29 +96,20 @@ Interpret the one-line JSON result and act on its `kind` exactly once:
|
|
|
114
96
|
| `native-default` | Dispatch natively with no execution-setting prose. |
|
|
115
97
|
| `native-override` | Dispatch natively, explicitly requiring the exact returned `model`. Require the returned `reasoningEffort` only when that property is present. |
|
|
116
98
|
| `external-override` | Run the `execute` command with the returned `handoff`, then read its result against this same table. |
|
|
117
|
-
| `fallback` | Nothing launched. Record the returned `reason` and `detail` visibly, then dispatch natively with no execution-setting prose.
|
|
99
|
+
| `fallback` | Nothing launched. Record the returned `reason` and `detail` visibly, then dispatch natively with no execution-setting prose. |
|
|
118
100
|
| `launched-success` | The external process exited zero. Do not dispatch natively; review status and evidence as you would for a native agent. |
|
|
119
101
|
| `launched-failure` | A failed task. Set its status to `failed` and run `<root>/config/hooks/POST_ERROR_DETECTION.md`. Never retry it natively. |
|
|
120
|
-
| `infrastructure-failure` |
|
|
102
|
+
| `infrastructure-failure` | Handle exactly as the preceding row. |
|
|
121
103
|
|
|
122
|
-
Handoff
|
|
104
|
+
Handoff rules:
|
|
123
105
|
|
|
124
106
|
- Pass the exact opaque `handoff` string the resolver returned for that task. Never reconstruct one.
|
|
125
107
|
- Never reuse a handoff for another task, and never rerun resolution after launches begin.
|
|
126
|
-
- `execute` validates the handoff and does not reread routing configuration.
|
|
127
|
-
- The command emits exactly one JSON line. Exit code `2` is an infrastructure failure; exit code `1` is a launched task failure.
|
|
128
108
|
|
|
129
|
-
Deploy all remaining native agents simultaneously
|
|
130
|
-
|
|
131
|
-
1. Read and execute `<root>/config/hooks/PRE_TASK_EXECUTION.md` before starting any implementation work.
|
|
132
|
-
2. Execute the task according to its requirements.
|
|
133
|
-
3. Monitor execution progress and capture outputs and artifacts.
|
|
134
|
-
4. Update task status in real-time.
|
|
109
|
+
Deploy all remaining native sub-agents simultaneously. Each sub-agent must read and execute `<root>/config/hooks/PRE_TASK_EXECUTION.md` before any implementation work, then execute the task and update its status.
|
|
135
110
|
|
|
136
111
|
#### 7c. Phase completion verification
|
|
137
|
-
Ensure every task in the phase has status `completed
|
|
138
|
-
|
|
139
|
-
Do not accept a subagent's report of success as proof. Apply the evidence gate in `<root>/config/shared/verification-gate.md` before marking the phase complete. Do not mark a phase complete on an unverified claim.
|
|
112
|
+
Ensure every task in the phase has status `completed` and collect its outputs. Do not accept a subagent's report of success as proof. Apply the evidence gate in `<root>/config/shared/verification-gate.md` before marking the phase complete.
|
|
140
113
|
|
|
141
114
|
#### 7d. Phase post-execution
|
|
142
115
|
Read `<root>/config/hooks/POST_PHASE.md` and execute its instructions. Do not proceed to the next phase until this hook succeeds.
|
|
@@ -167,17 +140,15 @@ After `POST_EXECUTION.md` reports green, follow the `st-code-review` skill and r
|
|
|
167
140
|
code-review.cjs <plan-id> <current-harness>
|
|
168
141
|
```
|
|
169
142
|
|
|
170
|
-
Resolve `code-review.cjs` from the `st-code-review` skill's sibling `scripts` directory
|
|
171
|
-
|
|
172
|
-
If the `st-code-review` skill is not installed, record that outcome in the execution summary and continue to summary and archival.
|
|
143
|
+
Resolve `code-review.cjs` from the `st-code-review` skill's sibling `scripts` directory and pass the exact supported harness identifier running this skill. If the `st-code-review` skill is not installed, record that outcome in the execution summary and continue to summary and archival.
|
|
173
144
|
|
|
174
|
-
Handle the JSON line in this order:
|
|
145
|
+
Handle the one JSON line it prints on stdout, in this order:
|
|
175
146
|
|
|
176
147
|
1. Copy it verbatim into the execution summary's review outcome. Do not reformat it or omit fields.
|
|
177
|
-
2. Follow its top-level `action`. If it is `halt`, stop and report the top-level `detail
|
|
148
|
+
2. Follow its top-level `action`. If it is `halt`, stop and report the top-level `detail`. If it is `continue`, proceed to the execution summary and archival.
|
|
178
149
|
3. Only when `verdict.kind` is `review-recorded`, read `<plan-dir>/review/review.xml` and `<plan-dir>/review/findings.json`, then decide which findings to act on. `severity` and `confidence` are advisory labels, not instructions.
|
|
179
150
|
|
|
180
|
-
|
|
151
|
+
Never report an uncertified review as clean.
|
|
181
152
|
|
|
182
153
|
Hard rules:
|
|
183
154
|
|
|
@@ -187,19 +158,11 @@ Hard rules:
|
|
|
187
158
|
|
|
188
159
|
### 9. Append execution summary
|
|
189
160
|
|
|
190
|
-
Append an execution summary section to the plan document
|
|
191
|
-
|
|
192
|
-
- **Status**: Completed Successfully
|
|
193
|
-
- **Completed Date**: current date
|
|
194
|
-
- **Results**: brief summary of deliverables
|
|
195
|
-
- **Noteworthy Events**: all decisions, issues, and outcomes encountered during execution. Always record the review gate's outcome here: the gate's JSON line verbatim, then which findings you acted on versus ignored and why. If nothing else occurred, state "No significant issues encountered." after the review outcome.
|
|
196
|
-
- **Necessary follow-ups**: any follow-up actions or optimizations
|
|
161
|
+
Append an execution summary section to the plan document, filling every field of `<root>/config/templates/EXECUTION_SUMMARY_TEMPLATE.md`. Under Noteworthy Events, always record the review gate's JSON line verbatim, then which findings you acted on versus ignored and why.
|
|
197
162
|
|
|
198
163
|
### 10. Archive the plan
|
|
199
164
|
|
|
200
|
-
Move the completed plan directory from `<root>/plans/<plan-folder>` to `<root>/archive/<plan-folder
|
|
201
|
-
|
|
202
|
-
Preserve the entire folder structure, including all tasks and subdirectories. If the move fails, log the error but do not fail the overall execution.
|
|
165
|
+
Move the completed plan directory from `<root>/plans/<plan-folder>` to `<root>/archive/<plan-folder>`, preserving the entire folder structure. If the move fails, log the error but do not fail the overall execution.
|
|
203
166
|
|
|
204
167
|
## Failure Modes
|
|
205
168
|
|
|
@@ -5,46 +5,28 @@ description: Use when the user asks to run, execute, or implement one specific t
|
|
|
5
5
|
|
|
6
6
|
# st-execute-task
|
|
7
7
|
|
|
8
|
-
Drive the execution of a single task within an existing Strikethroo plan.
|
|
9
|
-
|
|
10
8
|
## Critical Rules
|
|
11
9
|
|
|
12
|
-
1. **
|
|
13
|
-
2. **
|
|
14
|
-
3. **Maintain status integrity** — update task status throughout the execution lifecycle.
|
|
15
|
-
4. **Document execution** — record all outcomes and issues encountered.
|
|
16
|
-
5. **Provide structured output** — always emit the structured result block for orchestrator parsing.
|
|
10
|
+
1. **Maintain status integrity** — update task status throughout the execution lifecycle.
|
|
11
|
+
2. **Document execution** — record all outcomes and issues encountered.
|
|
17
12
|
|
|
18
13
|
## Inputs
|
|
19
14
|
|
|
20
15
|
The user supplies the numeric plan ID and task ID conversationally.
|
|
21
16
|
|
|
22
|
-
## Failure Modes
|
|
23
|
-
|
|
24
|
-
- **Execution or hook failure.** If `PRE_TASK_EXECUTION.md`,
|
|
25
|
-
`PRE_TASK_ASSIGNMENT.md`, or `POST_ERROR_DETECTION.md` fails, or the
|
|
26
|
-
implementing agent encounters an unrecoverable error, set the task status
|
|
27
|
-
to `failed`, document the error in Noteworthy Events, and emit the
|
|
28
|
-
structured result with `Exit Code: 1`.
|
|
29
|
-
|
|
30
17
|
## Operating Procedure
|
|
31
18
|
|
|
32
19
|
### 1. Locate the strikethroo root
|
|
33
20
|
|
|
34
|
-
Run `scripts/find-strikethroo-root.cjs` from the user's working directory.
|
|
35
|
-
|
|
36
|
-
If the script exits non-zero, the working directory is not inside an
|
|
37
|
-
initialized strikethroo workspace. Stop and ask the user to run the project
|
|
38
|
-
initializer (e.g. `npx strikethroo init`) before continuing. Do
|
|
39
|
-
not attempt to execute a task outside of a valid root.
|
|
21
|
+
Run `scripts/find-strikethroo-root.cjs` from the user's working directory. If
|
|
22
|
+
it exits non-zero, stop and ask the user to run `npx strikethroo init`.
|
|
40
23
|
|
|
41
|
-
|
|
24
|
+
Treat the path it prints as `<root>` for every subsequent step.
|
|
42
25
|
|
|
43
26
|
### 2. Resolve the plan
|
|
44
27
|
|
|
45
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile`
|
|
46
|
-
absolute path
|
|
47
|
-
field alone.
|
|
28
|
+
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile` for the plan
|
|
29
|
+
file's absolute path. Another field name prints that field instead.
|
|
48
30
|
|
|
49
31
|
If the script exits non-zero, stop and ask the user to confirm the plan ID.
|
|
50
32
|
Do not guess a different ID.
|
|
@@ -54,40 +36,25 @@ printed path as `<plan-dir>`.
|
|
|
54
36
|
|
|
55
37
|
### 3. Validate the task file
|
|
56
38
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- First, look for `<plan-dir>/tasks/<task-id>--*.md`
|
|
61
|
-
- If not found, look for `<plan-dir>/tasks/0<task-id>--*.md`
|
|
62
|
-
|
|
63
|
-
If no file matches, stop and report that the task ID was not found in the
|
|
64
|
-
plan. List the available task files in `<plan-dir>/tasks/` to help the user
|
|
65
|
-
identify the correct ID.
|
|
66
|
-
|
|
67
|
-
Treat the resolved file path as `<task-file>`.
|
|
39
|
+
Look for `<plan-dir>/tasks/<task-id>--*.md`, then for the zero-padded
|
|
40
|
+
`<plan-dir>/tasks/0<task-id>--*.md`. If neither matches, list the files in
|
|
41
|
+
`<plan-dir>/tasks/` and stop. Treat the match as `<task-file>`.
|
|
68
42
|
|
|
69
43
|
### 4. Check task status
|
|
70
44
|
|
|
71
|
-
Read
|
|
72
|
-
|
|
73
|
-
- Block execution if the status is `completed`, `in-progress`, or
|
|
74
|
-
`needs-clarification`.
|
|
75
|
-
- Allow execution if the status is `pending` or `failed`.
|
|
76
|
-
- If the status is missing or unrecognized, proceed with caution and note
|
|
77
|
-
the ambiguity.
|
|
45
|
+
Read `status` from the `<task-file>` frontmatter.
|
|
78
46
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
47
|
+
- `completed`, `in-progress`, or `needs-clarification`: stop, and name the way
|
|
48
|
+
out (re-execute a completed task through execute-blueprint, answer the open
|
|
49
|
+
clarification questions first).
|
|
50
|
+
- `pending` or `failed`: execute.
|
|
51
|
+
- Missing or unrecognized: proceed with caution and note the ambiguity.
|
|
82
52
|
|
|
83
53
|
### 5. Validate dependencies
|
|
84
54
|
|
|
85
|
-
Run `scripts/check-task-dependencies.cjs <plan-id> <task-id>`.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
If the script exits 1, stop and report that the task is blocked by unresolved
|
|
90
|
-
dependencies. Do not proceed until dependencies are satisfied.
|
|
55
|
+
Run `scripts/check-task-dependencies.cjs <plan-id> <task-id>`. If it exits 1,
|
|
56
|
+
stop and report that unresolved dependencies block the task. Do not proceed
|
|
57
|
+
until they are satisfied.
|
|
91
58
|
|
|
92
59
|
### 6. Agent selection
|
|
93
60
|
|
|
@@ -124,33 +91,21 @@ Interpret the one-line JSON result and act on its `kind` exactly once:
|
|
|
124
91
|
| `native-default` | Dispatch natively with no execution-setting prose. |
|
|
125
92
|
| `native-override` | Dispatch natively, explicitly requiring the exact returned `model`. Require the returned `reasoningEffort` only when that property is present. |
|
|
126
93
|
| `external-override` | Run the `execute` command with the returned `handoff`, then read its result against this same table. |
|
|
127
|
-
| `fallback` | Nothing launched. Record the returned `reason` and `detail` visibly, then dispatch natively with no execution-setting prose.
|
|
94
|
+
| `fallback` | Nothing launched. Record the returned `reason` and `detail` visibly, then dispatch natively with no execution-setting prose. |
|
|
128
95
|
| `launched-success` | The external process exited zero. Do not dispatch natively; review status and evidence as you would for a native agent. |
|
|
129
96
|
| `launched-failure` | A failed task. Set its status to `failed` and run `<root>/config/hooks/POST_ERROR_DETECTION.md`. Never retry it natively. |
|
|
130
|
-
| `infrastructure-failure` |
|
|
97
|
+
| `infrastructure-failure` | Handle exactly as the preceding row. |
|
|
131
98
|
|
|
132
|
-
Handoff
|
|
99
|
+
Handoff rules:
|
|
133
100
|
|
|
134
101
|
- Pass the exact opaque `handoff` string the resolver returned for that task. Never reconstruct one.
|
|
135
102
|
- Never reuse a handoff for another task, and never rerun resolution after launches begin.
|
|
136
|
-
- `execute` validates the handoff and does not reread routing configuration.
|
|
137
|
-
- The command emits exactly one JSON line. Exit code `2` is an infrastructure failure; exit code `1` is a launched task failure.
|
|
138
103
|
|
|
139
104
|
Steps 9–11 are this skill's failed-status and error-hook path.
|
|
140
105
|
|
|
141
106
|
For a native dispatch, deploy an agent using your internal Task tool. The agent
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
1. **Pre-flight validation**: Read and execute
|
|
145
|
-
`<root>/config/hooks/PRE_TASK_EXECUTION.md` before starting any
|
|
146
|
-
implementation work.
|
|
147
|
-
2. **Execute the task**: Read the complete `<task-file>` and implement
|
|
148
|
-
according to its requirements, including:
|
|
149
|
-
- Objective and acceptance criteria
|
|
150
|
-
- Technical requirements and implementation notes
|
|
151
|
-
- Input dependencies and expected output artifacts
|
|
152
|
-
3. **Monitor progress**: Capture outputs, artifacts, and any issues
|
|
153
|
-
encountered during implementation.
|
|
107
|
+
must read and execute `<root>/config/hooks/PRE_TASK_EXECUTION.md` before any
|
|
108
|
+
implementation work, then read the complete `<task-file>` and implement it.
|
|
154
109
|
|
|
155
110
|
### 9. Update status to completed or failed
|
|
156
111
|
|
|
@@ -175,23 +130,9 @@ append a "Noteworthy Events" section to the end of `<task-file>`:
|
|
|
175
130
|
- [YYYY-MM-DD] [Event description with sufficient context for the orchestrator]
|
|
176
131
|
```
|
|
177
132
|
|
|
178
|
-
If no noteworthy events occurred, do not add the section.
|
|
179
|
-
|
|
180
133
|
### 11. Error handling
|
|
181
134
|
|
|
182
135
|
If any error occurred during execution, read
|
|
183
136
|
`<root>/config/hooks/POST_ERROR_DETECTION.md` and execute its instructions.
|
|
184
137
|
Document the error in Noteworthy Events and ensure the task status is set to
|
|
185
138
|
`failed` if it is not already.
|
|
186
|
-
|
|
187
|
-
### 12. Emit structured output
|
|
188
|
-
|
|
189
|
-
End the session with exactly this block as the final output:
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
---
|
|
193
|
-
Task Execution Result:
|
|
194
|
-
- Plan ID: [numeric-id]
|
|
195
|
-
- Task ID: [numeric-id]
|
|
196
|
-
- Exit Code: [0 for success, 1 for failure]
|
|
197
|
-
```
|