@zhixuan92/multi-model-agent 4.5.4 → 4.7.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.
- package/README.md +8 -6
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +39 -1
- package/dist/cli/serve.js.map +1 -1
- package/dist/http/async-dispatch.d.ts.map +1 -1
- package/dist/http/async-dispatch.js +22 -17
- package/dist/http/async-dispatch.js.map +1 -1
- package/dist/http/execution-context.d.ts.map +1 -1
- package/dist/http/execution-context.js +40 -10
- package/dist/http/execution-context.js.map +1 -1
- package/dist/http/handler-deps.d.ts +0 -6
- package/dist/http/handler-deps.d.ts.map +1 -1
- package/dist/http/handlers/control/batch.d.ts.map +1 -1
- package/dist/http/handlers/control/batch.js +50 -0
- package/dist/http/handlers/control/batch.js.map +1 -1
- package/dist/http/handlers/control/context-blocks.d.ts +0 -2
- package/dist/http/handlers/control/context-blocks.d.ts.map +1 -1
- package/dist/http/handlers/control/context-blocks.js +3 -1
- package/dist/http/handlers/control/context-blocks.js.map +1 -1
- package/dist/http/handlers/control/retry.js.map +1 -1
- package/dist/http/handlers/tools/audit.d.ts.map +1 -1
- package/dist/http/handlers/tools/audit.js +1 -11
- package/dist/http/handlers/tools/audit.js.map +1 -1
- package/dist/http/handlers/tools/debug.d.ts.map +1 -1
- package/dist/http/handlers/tools/debug.js +1 -11
- package/dist/http/handlers/tools/debug.js.map +1 -1
- package/dist/http/handlers/tools/delegate.d.ts.map +1 -1
- package/dist/http/handlers/tools/delegate.js +1 -11
- package/dist/http/handlers/tools/delegate.js.map +1 -1
- package/dist/http/handlers/tools/execute-plan.d.ts.map +1 -1
- package/dist/http/handlers/tools/execute-plan.js +1 -11
- package/dist/http/handlers/tools/execute-plan.js.map +1 -1
- package/dist/http/handlers/tools/investigate.d.ts.map +1 -1
- package/dist/http/handlers/tools/investigate.js +1 -11
- package/dist/http/handlers/tools/investigate.js.map +1 -1
- package/dist/http/handlers/tools/research.d.ts.map +1 -1
- package/dist/http/handlers/tools/research.js +1 -11
- package/dist/http/handlers/tools/research.js.map +1 -1
- package/dist/http/handlers/tools/retry.d.ts.map +1 -1
- package/dist/http/handlers/tools/retry.js +6 -16
- package/dist/http/handlers/tools/retry.js.map +1 -1
- package/dist/http/handlers/tools/review.d.ts.map +1 -1
- package/dist/http/handlers/tools/review.js +1 -11
- package/dist/http/handlers/tools/review.js.map +1 -1
- package/dist/http/request-observability.d.ts.map +1 -1
- package/dist/http/request-observability.js +6 -8
- package/dist/http/request-observability.js.map +1 -1
- package/dist/http/request-pipeline.d.ts +2 -0
- package/dist/http/request-pipeline.d.ts.map +1 -1
- package/dist/http/request-pipeline.js +15 -0
- package/dist/http/request-pipeline.js.map +1 -1
- package/dist/http/server.d.ts.map +1 -1
- package/dist/http/server.js +19 -43
- package/dist/http/server.js.map +1 -1
- package/dist/skills/mma-audit/SKILL.md +38 -27
- package/dist/skills/mma-context-blocks/SKILL.md +22 -1
- package/dist/skills/mma-debug/SKILL.md +38 -27
- package/dist/skills/mma-delegate/SKILL.md +102 -13
- package/dist/skills/mma-execute-plan/SKILL.md +100 -4
- package/dist/skills/mma-explore/SKILL.md +21 -5
- package/dist/skills/mma-investigate/SKILL.md +63 -39
- package/dist/skills/mma-research/SKILL.md +52 -3
- package/dist/skills/mma-retry/SKILL.md +102 -3
- package/dist/skills/mma-review/SKILL.md +38 -27
- package/dist/skills/multi-model-agent/SKILL.md +2 -2
- package/package.json +2 -2
- package/dist/http/middleware/body-size.d.ts +0 -7
- package/dist/http/middleware/body-size.d.ts.map +0 -1
- package/dist/http/middleware/body-size.js +0 -7
- package/dist/http/middleware/body-size.js.map +0 -1
- package/dist/skills/_shared/budget-defaults.md +0 -13
package/dist/http/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/http/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,W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AI,KAAK,IAAI,CAAC,CAAC,CAAE,IAA6B,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAExH,OAAO;QACL,IAAI;QACJ,aAAa;QACb,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QACzE,aAAa;QACb,eAAe;QACf,eAAe;KAChB,CAAC;AACJ,CAAC;AAED,4EAA4E;AAC5E,4EAA4E;AAC5E,+BAA+B;AAC/B,MAAM,YAAY,GAAG;IACnB,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,yBAAyB;CAClD,CAAC"}
|
|
@@ -12,7 +12,7 @@ when_to_use: >-
|
|
|
12
12
|
(superpowers:dispatching-parallel-agents, /security-review) points at one AND
|
|
13
13
|
mmagent is running. Audit on PROSE/SPEC docs — use mma-review for source code.
|
|
14
14
|
Audit a CODE-EXECUTION PLAN against the codebase — use subtype=plan.
|
|
15
|
-
version: 4.
|
|
15
|
+
version: 4.7.0
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
# mma-audit
|
|
@@ -147,43 +147,54 @@ BATCH=$(curl -f --show-error -s -X POST \
|
|
|
147
147
|
|
|
148
148
|
@include _shared/response-shape.md
|
|
149
149
|
|
|
150
|
-
## Reading the findings
|
|
150
|
+
## Reading the findings
|
|
151
151
|
|
|
152
|
-
The
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
The main agent reads `completed` + `message` + `findings` — the findings are the answer. For
|
|
153
|
+
read-only routes, `filesChanged` is always `[]` and `commitSha` is always `null`.
|
|
154
|
+
|
|
155
|
+
```json
|
|
156
|
+
{
|
|
157
|
+
"completed": true,
|
|
158
|
+
"message": "Plan audit complete; 2 findings.",
|
|
159
|
+
"findings": [
|
|
160
|
+
{ "id": "F1", "severity": "high", "category": "path-existence",
|
|
161
|
+
"claim": "Step 3 names `src/utils/foo.ts` which does not exist.",
|
|
162
|
+
"evidence": "Worker grepped for the file under cwd — no match found.",
|
|
163
|
+
"suggestion": "Use `src/utils/bar.ts` instead.",
|
|
164
|
+
"source": "implementer" }
|
|
165
|
+
],
|
|
166
|
+
"filesChanged": [],
|
|
167
|
+
"commitSha": null,
|
|
168
|
+
"summary": "...",
|
|
169
|
+
"telemetry": { ... }
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Finding shape
|
|
174
|
+
|
|
175
|
+
Every finding has this shape:
|
|
155
176
|
|
|
156
177
|
| Field | Type | Notes |
|
|
157
178
|
|---|---|---|
|
|
158
|
-
| `id` | string |
|
|
179
|
+
| `id` | string | Worker-assigned, e.g. `F1`, `F2`. Stable across chain. |
|
|
159
180
|
| `severity` | `'critical' \| 'high' \| 'medium' \| 'low'` | 4-tier. |
|
|
181
|
+
| `category` | string | Topical bucket, e.g. `path-existence`, `prose-coherence`. |
|
|
160
182
|
| `claim` | string | One-sentence summary. |
|
|
161
|
-
| `evidence` | string ≥20 chars |
|
|
183
|
+
| `evidence` | string ≥20 chars | Verbatim from source when grounded. |
|
|
162
184
|
| `suggestion?` | string | Optional fix recommendation. |
|
|
163
|
-
| `
|
|
164
|
-
| `evidenceGrounded` | boolean | True when `evidence` is a verbatim substring of worker output. |
|
|
165
|
-
|
|
166
|
-
### Verdict states (`qualityReviewVerdict`)
|
|
185
|
+
| `source` | `'implementer' \| 'reviewer'` | Who produced the finding. |
|
|
167
186
|
|
|
168
|
-
|
|
169
|
-
numeric `annotatorConfidence`) or deterministic-fallback (with
|
|
170
|
-
`annotatorConfidence: null`). The route ALWAYS reaches `'annotated'` unless
|
|
171
|
-
the reviewer call itself fails transport.
|
|
172
|
-
- `'error'` — only when the reviewer call fails transport (network / 5xx).
|
|
187
|
+
`annotatorConfidence` and `evidenceGrounded` are retired — they were v4 fields with no producers.
|
|
173
188
|
|
|
174
189
|
### Recommended rendering by the main agent
|
|
175
190
|
|
|
176
|
-
1. Show ALL findings — never silently drop.
|
|
177
|
-
|
|
178
|
-
2. Default sort: severity (critical → low) then `
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
color, or `(low confidence)` annotation). User decides what to do.
|
|
184
|
-
5. Severity-tier counts feed the dashboard via V3 `findingsBySeverity`.
|
|
185
|
-
|
|
186
|
-
@include _shared/budget-defaults.md
|
|
191
|
+
1. Show ALL findings — never silently drop. Severity and grounding are soft
|
|
192
|
+
signals, not gates.
|
|
193
|
+
2. Default sort: severity (critical → low), then `id` ascending.
|
|
194
|
+
3. `severity` is the authoritative value — use it directly.
|
|
195
|
+
4. Mark findings with `evidence` shorter than 30 chars as "low-evidence"
|
|
196
|
+
(lighter color or `(low evidence)` annotation). User decides what to do.
|
|
197
|
+
5. Severity-tier counts feed the dashboard.
|
|
187
198
|
|
|
188
199
|
## Best practices
|
|
189
200
|
|
|
@@ -12,7 +12,7 @@ when_to_use: >-
|
|
|
12
12
|
Register once here, then pass the ID via `contextBlockIds` on mma-delegate /
|
|
13
13
|
mma-execute-plan / mma-audit / mma-review / mma-debug / mma-investigate.
|
|
14
14
|
Cheaper and faster than inlining the same content N times.
|
|
15
|
-
version: 4.
|
|
15
|
+
version: 4.7.0
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
# mma-context-blocks
|
|
@@ -97,6 +97,27 @@ curl -f --show-error -s -X POST \
|
|
|
97
97
|
"http://localhost:$PORT/delegate?cwd=/project"
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
+
## v5 wire shape (register-context-block route)
|
|
101
|
+
|
|
102
|
+
Every task result is a `ComposePayload`. For the `register-context-block` route, the envelope has one additional field beyond the standard seven:
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"completed": true,
|
|
107
|
+
"message": "Context block cb_abc123 registered (12345 bytes)",
|
|
108
|
+
"findings": [],
|
|
109
|
+
"summary": "",
|
|
110
|
+
"filesChanged": [],
|
|
111
|
+
"commitSha": null,
|
|
112
|
+
"blockId": "cb_abc123",
|
|
113
|
+
"telemetry": { ... }
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
`blockId` is **non-null only for the `register-context-block` route**. For every other route (`delegate`, `execute-plan`, `investigate`, etc.), `blockId` is `null`. This is the only signal that distinguishes a register-context-block result from any other route — no route-keyed discriminated union, just one extra nullable field on the shared shape.
|
|
118
|
+
|
|
119
|
+
The terminal context block (per-task, auto-registered) uses a different ID format and is separate from the `blockId` in the wire envelope.
|
|
120
|
+
|
|
100
121
|
## Best practices
|
|
101
122
|
|
|
102
123
|
This skill is the cross-cutting state mechanism described in `multi-model-agent` → "Best practices". Recipes that use context blocks:
|
|
@@ -10,7 +10,7 @@ when_to_use: >-
|
|
|
10
10
|
read files, reproduce, trace — OR a methodology skill
|
|
11
11
|
(superpowers:systematic-debugging) points at the investigation step. Delegate
|
|
12
12
|
the read/reproduce/trace; the main agent stays on the hypothesis and the fix.
|
|
13
|
-
version: 4.
|
|
13
|
+
version: 4.7.0
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# mma-debug
|
|
@@ -84,43 +84,54 @@ BATCH_ID=$(echo "$BATCH" | jq -r '.batchId')
|
|
|
84
84
|
|
|
85
85
|
@include _shared/response-shape.md
|
|
86
86
|
|
|
87
|
-
## Reading the findings
|
|
87
|
+
## Reading the findings
|
|
88
88
|
|
|
89
|
-
The
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
The main agent reads `completed` + `message` + `findings` — the findings are the answer. For
|
|
90
|
+
read-only routes, `filesChanged` is always `[]` and `commitSha` is always `null`.
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"completed": true,
|
|
95
|
+
"message": "Investigation complete; 1 finding.",
|
|
96
|
+
"findings": [
|
|
97
|
+
{ "id": "F1", "severity": "high", "category": "root-cause",
|
|
98
|
+
"claim": "bcrypt binding fails on non-ASCII input in the Docker image.",
|
|
99
|
+
"evidence": "Worker reproduced the failure with `pass='café'`; strace shows EINVAL on encode call.",
|
|
100
|
+
"suggestion": "Normalize input to NFC form before calling bcrypt.",
|
|
101
|
+
"source": "implementer" }
|
|
102
|
+
],
|
|
103
|
+
"filesChanged": [],
|
|
104
|
+
"commitSha": null,
|
|
105
|
+
"summary": "...",
|
|
106
|
+
"telemetry": { ... }
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Finding shape
|
|
111
|
+
|
|
112
|
+
Every finding has this shape:
|
|
92
113
|
|
|
93
114
|
| Field | Type | Notes |
|
|
94
115
|
|---|---|---|
|
|
95
|
-
| `id` | string |
|
|
116
|
+
| `id` | string | Worker-assigned, e.g. `F1`, `F2`. Stable across chain. |
|
|
96
117
|
| `severity` | `'critical' \| 'high' \| 'medium' \| 'low'` | 4-tier. |
|
|
118
|
+
| `category` | string | Topical bucket, e.g. `root-cause`, `reproduction`. |
|
|
97
119
|
| `claim` | string | One-sentence summary. |
|
|
98
|
-
| `evidence` | string ≥20 chars |
|
|
120
|
+
| `evidence` | string ≥20 chars | Verbatim from source when grounded. |
|
|
99
121
|
| `suggestion?` | string | Optional fix recommendation. |
|
|
100
|
-
| `
|
|
101
|
-
| `evidenceGrounded` | boolean | True when `evidence` is a verbatim substring of worker output. |
|
|
102
|
-
|
|
103
|
-
### Verdict states (`qualityReviewVerdict`)
|
|
122
|
+
| `source` | `'implementer' \| 'reviewer'` | Who produced the finding. |
|
|
104
123
|
|
|
105
|
-
|
|
106
|
-
numeric `annotatorConfidence`) or deterministic-fallback (with
|
|
107
|
-
`annotatorConfidence: null`). The route ALWAYS reaches `'annotated'` unless
|
|
108
|
-
the reviewer call itself fails transport.
|
|
109
|
-
- `'error'` — only when the reviewer call fails transport (network / 5xx).
|
|
124
|
+
`annotatorConfidence` and `evidenceGrounded` are retired — they were v4 fields with no producers.
|
|
110
125
|
|
|
111
126
|
### Recommended rendering by the main agent
|
|
112
127
|
|
|
113
|
-
1. Show ALL findings — never silently drop.
|
|
114
|
-
|
|
115
|
-
2. Default sort: severity (critical → low) then `
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
color, or `(low confidence)` annotation). User decides what to do.
|
|
121
|
-
5. Severity-tier counts feed the dashboard via V3 `findingsBySeverity`.
|
|
122
|
-
|
|
123
|
-
@include _shared/budget-defaults.md
|
|
128
|
+
1. Show ALL findings — never silently drop. Severity and grounding are soft
|
|
129
|
+
signals, not gates.
|
|
130
|
+
2. Default sort: severity (critical → low), then `id` ascending.
|
|
131
|
+
3. `severity` is the authoritative value — use it directly.
|
|
132
|
+
4. Mark findings with `evidence` shorter than 30 chars as "low-evidence"
|
|
133
|
+
(lighter color or `(low evidence)` annotation). User decides what to do.
|
|
134
|
+
5. Severity-tier counts feed the dashboard.
|
|
124
135
|
|
|
125
136
|
## Best practices
|
|
126
137
|
|
|
@@ -11,7 +11,7 @@ when_to_use: >-
|
|
|
11
11
|
and keep main context free. If a plan file exists → use mma-execute-plan. If
|
|
12
12
|
the task is audit / review / verify / debug / investigate → use the matching
|
|
13
13
|
specialized skill.
|
|
14
|
-
version: 4.
|
|
14
|
+
version: 4.7.0
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# mma-delegate
|
|
@@ -65,7 +65,6 @@ Dispatch one or more ad-hoc tasks to workers concurrently. Each task is an indep
|
|
|
65
65
|
| `tasks[].filePaths` | string[] | no | Files the worker focuses on |
|
|
66
66
|
| `tasks[].done` | string | no | Acceptance criteria |
|
|
67
67
|
| `tasks[].contextBlockIds` | string[] | no | IDs from `mma-context-blocks` |
|
|
68
|
-
| `tasks[].maxCostUSD` | number | no | Per-task cost cap in USD (positive finite). Default 10 when omitted. |
|
|
69
68
|
| `tasks[].verifyCommand` | string[] | no | See verify-and-review snippet below |
|
|
70
69
|
| `tasks[].reviewPolicy` | `"full"` / `"quality_only"` / `"diff_only"` / `"none"` | no | See verify-and-review snippet below. Default `"full"` |
|
|
71
70
|
|
|
@@ -86,9 +85,107 @@ BATCH_ID=$(echo "$BATCH" | jq -r '.batchId')
|
|
|
86
85
|
|
|
87
86
|
@include _shared/polling.md
|
|
88
87
|
|
|
89
|
-
|
|
88
|
+
## Response shapes
|
|
90
89
|
|
|
91
|
-
|
|
90
|
+
### POST /delegate?cwd=<abs> — dispatch response (202)
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{ "batchId": "<uuid>", "statusUrl": "/batch/<uuid>" }
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Use `batchId` to poll. `statusUrl` is a convenience pointer.
|
|
97
|
+
|
|
98
|
+
### GET /batch/:id — polling response
|
|
99
|
+
|
|
100
|
+
The HTTP status is the state discriminator:
|
|
101
|
+
|
|
102
|
+
| Status | Meaning |
|
|
103
|
+
|---|---|
|
|
104
|
+
| `202 text/plain` | Still pending — body is the running headline string |
|
|
105
|
+
| `200 application/json` | Terminal — body is the batch envelope below |
|
|
106
|
+
| `404` / `401` / `5xx` | Error — see Error response below; stop polling |
|
|
107
|
+
|
|
108
|
+
### GET /batch/:id?taskIndex=N — single task slice
|
|
109
|
+
|
|
110
|
+
Same envelope. `results` contains exactly the task at index `N`. Returns `404 unknown_task_index` if `N` is out of range.
|
|
111
|
+
|
|
112
|
+
### Reading the task result
|
|
113
|
+
|
|
114
|
+
Each task result is the per-task wire object (`ComposePayload`):
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"completed": true,
|
|
119
|
+
"message": "Task completed; tests passed; one file changed.",
|
|
120
|
+
"findings": [
|
|
121
|
+
{
|
|
122
|
+
"id": "F1",
|
|
123
|
+
"severity": "high",
|
|
124
|
+
"category": "correctness",
|
|
125
|
+
"claim": "The function does not handle empty input",
|
|
126
|
+
"evidence": "function foo() { ... } // no null check",
|
|
127
|
+
"suggestion": "Add an explicit null guard at the top",
|
|
128
|
+
"source": "reviewer"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"summary": "Refactored utils.ts — removed 3 dead branches, added JSDoc",
|
|
132
|
+
"filesChanged": ["/project/src/utils.ts"],
|
|
133
|
+
"commitSha": "abc123def",
|
|
134
|
+
"blockId": null,
|
|
135
|
+
"telemetry": {
|
|
136
|
+
"totalDurationMs": 12400,
|
|
137
|
+
"totalCostUSD": 0.08,
|
|
138
|
+
"workerSelfAssessment": "done",
|
|
139
|
+
"reviewVerdict": "approved",
|
|
140
|
+
"commitOutcome": "committed",
|
|
141
|
+
"stopReason": "normal",
|
|
142
|
+
"haltedStage": null,
|
|
143
|
+
"stages": [
|
|
144
|
+
{ "name": "prepare", "outcome": "advance", "durationMs": 2, "costUSD": 0 },
|
|
145
|
+
{ "name": "register-block", "outcome": "skip", "comment": "register-block does not apply to route=delegate", "durationMs": 0, "costUSD": 0 },
|
|
146
|
+
{ "name": "implement", "outcome": "advance", "durationMs": 8900, "costUSD": 0.05 },
|
|
147
|
+
{ "name": "review", "outcome": "advance", "durationMs": 2100, "costUSD": 0.02 },
|
|
148
|
+
{ "name": "rework", "outcome": "skip", "comment": "rework skipped because review approved", "durationMs": 0, "costUSD": 0 },
|
|
149
|
+
{ "name": "commit", "outcome": "advance", "durationMs": 340, "costUSD": 0 },
|
|
150
|
+
{ "name": "annotate", "outcome": "advance", "durationMs": 890, "costUSD": 0.01 },
|
|
151
|
+
{ "name": "compose", "outcome": "advance", "durationMs": 68, "costUSD": 0 },
|
|
152
|
+
{ "name": "terminal", "outcome": "advance", "durationMs": 100, "costUSD": 0 }
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Top-level fields to read for the main-agent verdict:**
|
|
159
|
+
|
|
160
|
+
| Field | When `true` / populated |
|
|
161
|
+
|---|---|
|
|
162
|
+
| `completed: true` | Task succeeded. `message` is the summary; `findings` are post-review issues (if any). |
|
|
163
|
+
| `completed: false` | Task did not complete. `message` names the blocking gate or finding; `findings` carry any discovered issues. |
|
|
164
|
+
| `findings` | Issues surfaced by the worker or reviewer. `severity` = `critical` \| `high` \| `medium` \| `low`. `source` = `implementer` \| `reviewer`. |
|
|
165
|
+
| `filesChanged` | File paths modified (empty for read-only routes). |
|
|
166
|
+
| `commitSha` | Git SHA of the committed diff; `null` for read-only routes or when commit was skipped. |
|
|
167
|
+
|
|
168
|
+
`blockId` is not used for the delegate route — it is always `null`. To chain results, use the `terminalBlockId` from the batch's `contextBlockIds` field instead.
|
|
169
|
+
|
|
170
|
+
**The stages array** (always 9 rows) is the canonical telemetry log. `outcome` is one of:
|
|
171
|
+
- `advance` — stage ran and produced its payload
|
|
172
|
+
- `skip` — stage did not run; `comment` explains why
|
|
173
|
+
- `halt` — stage stopped the chain; `comment` is the failure message
|
|
174
|
+
- `not_run` — stage was not reached because a prior stage halted
|
|
175
|
+
|
|
176
|
+
Use `telemetry.haltedStage` to find the first halt; `telemetry.stopReason` to find why.
|
|
177
|
+
|
|
178
|
+
### Error response (4xx / 5xx)
|
|
179
|
+
|
|
180
|
+
```json
|
|
181
|
+
{
|
|
182
|
+
"error": "<code>",
|
|
183
|
+
"message": "<human-readable>",
|
|
184
|
+
"details": { /* optional structured context, e.g. fieldErrors for 400 */ }
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
`details` is optional and present only when the server has structured additional context.
|
|
92
189
|
|
|
93
190
|
## Best practices
|
|
94
191
|
|
|
@@ -106,15 +203,7 @@ Anti-pattern alert: **`inline-labor-leakage`** (AP2). If you're reading 3+ files
|
|
|
106
203
|
|
|
107
204
|
Workers run concurrently and race on the file. **Fix:** dispatch sequentially, or merge into one prompt.
|
|
108
205
|
|
|
109
|
-
❌ **
|
|
110
|
-
> "improve the auth module"
|
|
111
|
-
|
|
112
|
-
Worker has no completion signal — likely returns `done_with_concerns`. **Fix:** specific verb + acceptance: `"Add input validation to login.ts so all string fields reject empty/whitespace; tests pass"`.
|
|
113
|
-
|
|
114
|
-
❌ **Defaulting to `agentType: "complex"` for everything**
|
|
115
|
-
Standard tier is 5–10× cheaper and finishes most edits. Escalate only when standard returns `filesWritten: 0` or `incompleteReason: "turn_cap"`.
|
|
116
|
-
|
|
117
|
-
❌ **Inlining a 50KB doc into every prompt**
|
|
206
|
+
❌ **Two tasks writing the same file in one batch**
|
|
118
207
|
N tasks × 50KB = N transmissions. **Fix:** register the doc once via `mma-context-blocks`, pass the `contextBlockIds` to each task.
|
|
119
208
|
|
|
120
209
|
❌ **Reading the worker's diff inline before review**
|
|
@@ -10,7 +10,7 @@ when_to_use: >-
|
|
|
10
10
|
superpowers:subagent-driven-development / superpowers:executing-plans —
|
|
11
11
|
workers are cheaper and don't pollute main context. Task descriptors must
|
|
12
12
|
match plan headings verbatim.
|
|
13
|
-
version: 4.
|
|
13
|
+
version: 4.7.0
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# mma-execute-plan
|
|
@@ -59,7 +59,6 @@ Dispatch named tasks from a plan file to workers. Each `taskDescriptors` string
|
|
|
59
59
|
| `taskDescriptors` | string[] | yes | At least one; must be unique; each string matches a plan heading verbatim |
|
|
60
60
|
| `filePaths` | string[] | yes | EXACTLY one entry: the plan markdown file. Source files belong in `contextBlockIds` (registered via `mma-context-blocks`) so workers can grep them on demand without re-inlining into every worker prompt |
|
|
61
61
|
| `contextBlockIds` | string[] | no | IDs from `mma-context-blocks` — the right place for source files referenced by the plan |
|
|
62
|
-
| `maxCostUSD` | number | no | Per-task cost cap in USD (positive finite). Default 10 when omitted |
|
|
63
62
|
| `verifyCommand` | string[] | no | See verify-and-review snippet below |
|
|
64
63
|
| `perTaskReviewPolicy` | `Record<string, 'full'\|'quality_only'\|'diff_only'\|'none'>` | no | Per-task-index review policy override. Key = task index as string (`"0"`, `"1"`, ...). Default per task: `"full"` |
|
|
65
64
|
| `cwd` | string | no | Override the `?cwd=` query param value at the body level (rare; usually pass via query) |
|
|
@@ -83,9 +82,106 @@ BATCH_ID=$(echo "$BATCH" | jq -r '.batchId')
|
|
|
83
82
|
|
|
84
83
|
@include _shared/polling.md
|
|
85
84
|
|
|
86
|
-
|
|
85
|
+
## Response shapes
|
|
87
86
|
|
|
88
|
-
|
|
87
|
+
### POST /execute-plan?cwd=<abs> — dispatch response (202)
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{ "batchId": "<uuid>", "statusUrl": "/batch/<uuid>" }
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Use `batchId` to poll. `statusUrl` is a convenience pointer.
|
|
94
|
+
|
|
95
|
+
### GET /batch/:id — polling response
|
|
96
|
+
|
|
97
|
+
The HTTP status is the state discriminator:
|
|
98
|
+
|
|
99
|
+
| Status | Meaning |
|
|
100
|
+
|---|---|
|
|
101
|
+
| `202 text/plain` | Still pending — body is the running headline string |
|
|
102
|
+
| `200 application/json` | Terminal — body is the batch envelope below |
|
|
103
|
+
| `404` / `401` / `5xx` | Error — see Error response below; stop polling |
|
|
104
|
+
|
|
105
|
+
### GET /batch/:id?taskIndex=N — single task slice
|
|
106
|
+
|
|
107
|
+
Same envelope. `results` contains exactly the task at index `N`. Returns `404 unknown_task_index` if `N` is out of range.
|
|
108
|
+
|
|
109
|
+
### Reading the task result
|
|
110
|
+
|
|
111
|
+
Each task result is the per-task wire object (`ComposePayload`):
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"completed": true,
|
|
116
|
+
"message": "Task completed; tests passed; one file changed.",
|
|
117
|
+
"findings": [
|
|
118
|
+
{
|
|
119
|
+
"id": "F1",
|
|
120
|
+
"severity": "high",
|
|
121
|
+
"category": "correctness",
|
|
122
|
+
"claim": "The function does not handle empty input",
|
|
123
|
+
"evidence": "function foo() { ... } // no null check",
|
|
124
|
+
"suggestion": "Add an explicit null guard at the top",
|
|
125
|
+
"source": "reviewer"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"summary": "Refactored utils.ts — removed 3 dead branches, added JSDoc",
|
|
129
|
+
"filesChanged": ["/project/src/utils.ts"],
|
|
130
|
+
"commitSha": "abc123def",
|
|
131
|
+
"blockId": null,
|
|
132
|
+
"telemetry": {
|
|
133
|
+
"totalDurationMs": 12400,
|
|
134
|
+
"totalCostUSD": 0.08,
|
|
135
|
+
"workerSelfAssessment": "done",
|
|
136
|
+
"reviewVerdict": "approved",
|
|
137
|
+
"commitOutcome": "committed",
|
|
138
|
+
"stopReason": "normal",
|
|
139
|
+
"haltedStage": null,
|
|
140
|
+
"stages": [
|
|
141
|
+
{ "name": "prepare", "outcome": "advance", "durationMs": 2, "costUSD": 0 },
|
|
142
|
+
{ "name": "register-block", "outcome": "skip", "comment": "register-block does not apply to route=execute-plan", "durationMs": 0, "costUSD": 0 },
|
|
143
|
+
{ "name": "implement", "outcome": "advance", "durationMs": 8900, "costUSD": 0.05 },
|
|
144
|
+
{ "name": "review", "outcome": "advance", "durationMs": 2100, "costUSD": 0.02 },
|
|
145
|
+
{ "name": "rework", "outcome": "skip", "comment": "rework skipped because review approved", "durationMs": 0, "costUSD": 0 },
|
|
146
|
+
{ "name": "commit", "outcome": "advance", "durationMs": 340, "costUSD": 0 },
|
|
147
|
+
{ "name": "annotate", "outcome": "advance", "durationMs": 890, "costUSD": 0.01 },
|
|
148
|
+
{ "name": "compose", "outcome": "advance", "durationMs": 68, "costUSD": 0 },
|
|
149
|
+
{ "name": "terminal", "outcome": "advance", "durationMs": 100, "costUSD": 0 }
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Top-level fields to read for the main-agent verdict:**
|
|
156
|
+
|
|
157
|
+
| Field | When `true` / populated |
|
|
158
|
+
|---|---|
|
|
159
|
+
| `completed: true` | Task succeeded. `message` is the summary; `findings` are post-review issues (if any). |
|
|
160
|
+
| `completed: false` | Task did not complete. `message` names the blocking gate or finding; `findings` carry any discovered issues. |
|
|
161
|
+
| `findings` | Issues surfaced by the worker or reviewer. `severity` = `critical` \| `high` \| `medium` \| `low`. `source` = `implementer` \| `reviewer`. |
|
|
162
|
+
| `filesChanged` | File paths modified (empty for read-only routes). |
|
|
163
|
+
| `commitSha` | Git SHA of the committed diff; `null` for read-only routes or when commit was skipped. |
|
|
164
|
+
| `blockId` | `terminalBlockId` — pass to `contextBlockIds` in a follow-up task to chain results without re-inlining. |
|
|
165
|
+
|
|
166
|
+
**The stages array** (always 9 rows) is the canonical telemetry log. `outcome` is one of:
|
|
167
|
+
- `advance` — stage ran and produced its payload
|
|
168
|
+
- `skip` — stage did not run; `comment` explains why
|
|
169
|
+
- `halt` — stage stopped the chain; `comment` is the failure message
|
|
170
|
+
- `not_run` — stage was not reached because a prior stage halted
|
|
171
|
+
|
|
172
|
+
Use `telemetry.haltedStage` to find the first halt; `telemetry.stopReason` to find why.
|
|
173
|
+
|
|
174
|
+
### Error response (4xx / 5xx)
|
|
175
|
+
|
|
176
|
+
```json
|
|
177
|
+
{
|
|
178
|
+
"error": "<code>",
|
|
179
|
+
"message": "<human-readable>",
|
|
180
|
+
"details": { /* optional structured context, e.g. fieldErrors for 400 */ }
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
`details` is optional and present only when the server has structured additional context.
|
|
89
185
|
|
|
90
186
|
## Best practices
|
|
91
187
|
|
|
@@ -12,7 +12,7 @@ when_to_use: >-
|
|
|
12
12
|
out mma-investigate (internal) + mma-research (external) in parallel and
|
|
13
13
|
synthesise the results yourself. DO NOT use for convergent single-answer
|
|
14
14
|
questions — those are mma-investigate.
|
|
15
|
-
version: 4.
|
|
15
|
+
version: 4.7.0
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
# mma-explore
|
|
@@ -88,6 +88,21 @@ The main agent (you) issues a single message with two parallel tool calls:
|
|
|
88
88
|
mma-research { researchQuestion: "State-of-the-art streaming JSON parsers with backpressure?", background: "We use a single-pass push parser." }
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
+
## Reading the leg results
|
|
92
|
+
|
|
93
|
+
Both `mma-investigate` and `mma-research` return the v5 wire envelope (see `mma-investigate/SKILL.md` → "v5 wire shape"). Each sub-task result is a `ComposePayload` with the standard seven fields. The authoritative citation source is **`results[0].findings`** — an array of `{ id, severity, category, claim, evidence, suggestion, source }`.
|
|
94
|
+
|
|
95
|
+
Explore top-level orchestration aggregates sub-task results into a valid `ImplementPayload` (read-route shape) before the final `annotate` stage runs. Each sub-task follows the same v5 wire shape; the top-level result is a composition of those sub-tasks.
|
|
96
|
+
|
|
97
|
+
| Check | How |
|
|
98
|
+
|---|---|
|
|
99
|
+
| Did the leg succeed? | `results[0].completed === true` — findings may be zero on a read route; finding nothing wrong is a valid completion |
|
|
100
|
+
| Internal citation source | `results[0].findings[i].claim` plus a `file:LINE` token from `results[0].findings[i].evidence` (workers style them as `` `path:LINE` `` markdown-linked refs) |
|
|
101
|
+
| External citation source | `results[0].findings[i].claim` plus a source name / URL from `results[0].findings[i].evidence` |
|
|
102
|
+
| Divergence axis | `results[0].findings[i].category` groups findings by criterion — pick across categories so threads don't collapse onto one axis |
|
|
103
|
+
|
|
104
|
+
Apply a sentinel only when `findings` is empty AND `results[0].message` contains no finding-level content — i.e., the worker genuinely returned nothing. Do NOT apply a sentinel just because `results[0].message` reads tersely or `results[0].telemetry.workerSelfAssessment === 'failed'` — a worker can say `'failed'` with usable partial findings.
|
|
105
|
+
|
|
91
106
|
## Per-task report shape
|
|
92
107
|
|
|
93
108
|
Synthesis output (REQUIRED — your reply MUST contain these):
|
|
@@ -96,11 +111,11 @@ Produce **3–5 threads**. Each thread MUST have:
|
|
|
96
111
|
|
|
97
112
|
- A **title** and **one-paragraph summary**.
|
|
98
113
|
- One **internal citation** (from investigate) — `file/path.ts:LINE — claim`.
|
|
99
|
-
-
|
|
100
|
-
|
|
114
|
+
- Pick from `results[0].findings`: take `claim` as the citation claim and pull a `file:LINE` token out of `evidence`.
|
|
115
|
+
- Use the sentinel `(no internal anchor — fully greenfield)` ONLY when investigate was skipped, or `results[0].findings` is empty AND `results[0].message` contains no finding-level content. The top-level `message` alone is not evidence — see "Reading the leg results" above.
|
|
101
116
|
- One **external citation** (from research) — `<source> — claim`.
|
|
102
|
-
-
|
|
103
|
-
|
|
117
|
+
- Pick from `results[0].findings`: take `claim` as the citation claim and pull a source name / URL out of `evidence`.
|
|
118
|
+
- Use the sentinel `(no external source found)` only when `results[0].findings` is empty for the research leg.
|
|
104
119
|
- A **one-line divergence reason** — what makes this thread different from
|
|
105
120
|
the others. No two threads may share the same divergence axis.
|
|
106
121
|
|
|
@@ -142,6 +157,7 @@ directions in the data.
|
|
|
142
157
|
| Both failed | Report both errors to the user. Do NOT fabricate threads. |
|
|
143
158
|
| Investigate returned `needsCallerClarification: true` | Pause — surface the clarification need to the user. Do NOT synthesise over an unfinished investigation. |
|
|
144
159
|
| Research returned 0 usable sources | Sentinel on external lines. Add a one-line note in synthesis preamble: *"External research returned no usable sources — threads anchor on internal findings only."* |
|
|
160
|
+
| Investigate headline reads "0 citations" / "confidence unparseable" but `results[0].findings.length > 0` | Known stage-sync noise — IGNORE the headline. The leg succeeded; read `results[0].findings` directly. |
|
|
145
161
|
|
|
146
162
|
See `superpowers:brainstorming` as the natural follow-up — convergent narrowing
|
|
147
163
|
on a chosen thread.
|