steroids-cli 0.10.26 → 0.10.28
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/commands/loop-phases.d.ts.map +1 -1
- package/dist/commands/loop-phases.js +58 -42
- package/dist/commands/loop-phases.js.map +1 -1
- package/dist/config/loader.js +3 -3
- package/dist/config/loader.js.map +1 -1
- package/dist/config/schema.js +3 -3
- package/dist/config/schema.js.map +1 -1
- package/dist/orchestrator/fallback-handler.d.ts +2 -3
- package/dist/orchestrator/fallback-handler.d.ts.map +1 -1
- package/dist/orchestrator/fallback-handler.js +28 -24
- package/dist/orchestrator/fallback-handler.js.map +1 -1
- package/dist/orchestrator/post-coder.d.ts.map +1 -1
- package/dist/orchestrator/post-coder.js +58 -102
- package/dist/orchestrator/post-coder.js.map +1 -1
- package/dist/orchestrator/post-reviewer.d.ts.map +1 -1
- package/dist/orchestrator/post-reviewer.js +57 -118
- package/dist/orchestrator/post-reviewer.js.map +1 -1
- package/dist/orchestrator/signal-parser.d.ts +16 -1
- package/dist/orchestrator/signal-parser.d.ts.map +1 -1
- package/dist/orchestrator/signal-parser.js +27 -1
- package/dist/orchestrator/signal-parser.js.map +1 -1
- package/dist/orchestrator/types.d.ts +2 -0
- package/dist/orchestrator/types.d.ts.map +1 -1
- package/dist/providers/claude.d.ts.map +1 -1
- package/dist/providers/claude.js +26 -12
- package/dist/providers/claude.js.map +1 -1
- package/package.json +1 -1
|
@@ -71,7 +71,7 @@ ${extractedBlocks.join('\n\n')}
|
|
|
71
71
|
|
|
72
72
|
You are a state machine that analyzes coder output and determines the next action.
|
|
73
73
|
|
|
74
|
-
**CRITICAL:
|
|
74
|
+
**CRITICAL: Your response MUST end with the required signal lines below. No JSON.**
|
|
75
75
|
|
|
76
76
|
---
|
|
77
77
|
|
|
@@ -112,31 +112,29 @@ ${filesSection}
|
|
|
112
112
|
## Decision Rules
|
|
113
113
|
|
|
114
114
|
### 1. Error States
|
|
115
|
-
- Exit code non-zero + timeout →
|
|
116
|
-
- Exit code non-zero + no commits + no changes →
|
|
117
|
-
- Stderr contains "fatal" / "Permission denied" →
|
|
115
|
+
- Exit code non-zero + timeout → STATUS: ERROR (process killed)
|
|
116
|
+
- Exit code non-zero + no commits + no changes → STATUS: ERROR (failed to start)
|
|
117
|
+
- Stderr contains "fatal" / "Permission denied" → STATUS: ERROR
|
|
118
118
|
|
|
119
119
|
### 2. Incomplete Work
|
|
120
|
-
- Exit 0 but no commits and no changes →
|
|
121
|
-
- Timeout but has commits/changes →
|
|
122
|
-
- Output contains "need more time" / "continuing" →
|
|
120
|
+
- Exit 0 but no commits and no changes → STATUS: RETRY (did nothing)
|
|
121
|
+
- Timeout but has commits/changes → STATUS: REVIEW (save progress)
|
|
122
|
+
- Output contains "need more time" / "continuing" → STATUS: RETRY
|
|
123
123
|
|
|
124
124
|
### 3. Completion Without Commit
|
|
125
|
-
- Exit 0 + uncommitted changes + completion signal →
|
|
125
|
+
- Exit 0 + uncommitted changes + completion signal → STATUS: REVIEW
|
|
126
126
|
- Look for: "changes ready", "implementation complete", "finished"
|
|
127
127
|
|
|
128
128
|
### 4. Normal Completion
|
|
129
|
-
- Exit 0 + commits exist →
|
|
129
|
+
- Exit 0 + commits exist → STATUS: REVIEW
|
|
130
130
|
- Most common happy path
|
|
131
131
|
|
|
132
132
|
### 5. First-Submission Self-Checklist
|
|
133
133
|
- If \`Rejection Count\` is 0, require a \`SELF_REVIEW_CHECKLIST\` block in coder output
|
|
134
134
|
- Checklist must include a final self-review confirmation item
|
|
135
135
|
- If missing, return:
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
- \`reasoning\` starting with \`CHECKLIST_REQUIRED:\` (short)
|
|
139
|
-
- \`contract_violation: "checklist_required"\`
|
|
136
|
+
- STATUS: RETRY
|
|
137
|
+
- REASON: CHECKLIST_REQUIRED: <details>
|
|
140
138
|
|
|
141
139
|
### 6. Rejection Response Contract (Required on Resubmissions)
|
|
142
140
|
- If \`Rejection Count\` is > 0, require a \`REJECTION_RESPONSE\` block
|
|
@@ -144,10 +142,8 @@ ${filesSection}
|
|
|
144
142
|
- \`ITEM-<n> | IMPLEMENTED | ...\`
|
|
145
143
|
- or \`ITEM-<n> | WONT_FIX | ...\`
|
|
146
144
|
- If missing or clearly incomplete, return:
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
- \`reasoning\` starting with \`REJECTION_RESPONSE_REQUIRED:\` (short)
|
|
150
|
-
- \`contract_violation: "rejection_response_required"\`
|
|
145
|
+
- STATUS: RETRY
|
|
146
|
+
- REASON: REJECTION_RESPONSE_REQUIRED: <details>
|
|
151
147
|
- \`REJECTION_RESPONSE\` completeness check must use \`Open Rejection Items (latest)\` from task context
|
|
152
148
|
- Require sequential responses: \`ITEM-1\` through \`ITEM-N\`
|
|
153
149
|
|
|
@@ -158,113 +154,73 @@ ${filesSection}
|
|
|
158
154
|
- Concrete evidence the task still works without that item
|
|
159
155
|
- No conflict with any mandatory override guidance
|
|
160
156
|
- If any of the above is missing, return:
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
- \`wont_fix_override_items\` containing specific mandatory fixes
|
|
165
|
-
- If evidence is strong and functionality is complete, \`submit\` is allowed
|
|
157
|
+
- STATUS: RETRY
|
|
158
|
+
- REASON: WONT_FIX_OVERRIDE: <item1>; <item2>; ...
|
|
159
|
+
- If evidence is strong and functionality is complete, STATUS: REVIEW is allowed
|
|
166
160
|
|
|
167
161
|
### 8. Uncertainty Default
|
|
168
|
-
- When signals conflict →
|
|
162
|
+
- When signals conflict → STATUS: RETRY (safer than error)
|
|
169
163
|
|
|
170
164
|
---
|
|
171
165
|
|
|
172
|
-
## Output
|
|
173
|
-
|
|
174
|
-
\`\`\`json
|
|
175
|
-
{
|
|
176
|
-
"action": "submit" | "retry" | "stage_commit_submit" | "error",
|
|
177
|
-
"reasoning": "One sentence why (max 100 chars)",
|
|
178
|
-
"commits": ["sha1", "sha2"],
|
|
179
|
-
"commit_message": "Only if stage_commit_submit",
|
|
180
|
-
"contract_violation": "checklist_required" | "rejection_response_required" | null,
|
|
181
|
-
"wont_fix_override_items": ["specific required fix", "another required fix"],
|
|
182
|
-
"next_status": "review" | "in_progress" | "failed",
|
|
183
|
-
"files_changed": 0,
|
|
184
|
-
"confidence": "high" | "medium" | "low",
|
|
185
|
-
"exit_clean": true,
|
|
186
|
-
"has_commits": false
|
|
187
|
-
}
|
|
188
|
-
\`\`\`
|
|
166
|
+
## Required Output (last lines)
|
|
189
167
|
|
|
190
|
-
|
|
168
|
+
STATUS: REVIEW | RETRY | ERROR
|
|
169
|
+
REASON: <one sentence why, max 100 chars>
|
|
191
170
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
- \`stage_commit_submit\` → Work complete but not committed
|
|
196
|
-
- \`error\` → Fatal issue, needs human intervention
|
|
171
|
+
Optional:
|
|
172
|
+
CONFIDENCE: HIGH | MEDIUM | LOW
|
|
173
|
+
COMMIT_MESSAGE: <message if uncommitted changes need committing>
|
|
197
174
|
|
|
198
|
-
|
|
199
|
-
- \`checklist_required\` when first submission missing required self-checklist
|
|
200
|
-
- \`rejection_response_required\` when resubmission misses required ITEM responses
|
|
201
|
-
- \`null\` when no contract violation
|
|
175
|
+
### Status Values
|
|
202
176
|
|
|
203
|
-
|
|
204
|
-
-
|
|
205
|
-
-
|
|
177
|
+
- \`REVIEW\` → Work complete, ready for review (maps to submit or stage_commit_submit)
|
|
178
|
+
- \`RETRY\` → Incomplete or unclear, run coder again
|
|
179
|
+
- \`ERROR\` → Fatal issue, needs human intervention
|
|
206
180
|
|
|
207
|
-
|
|
208
|
-
- \`review\` for submit and stage_commit_submit
|
|
209
|
-
- \`in_progress\` for retry
|
|
210
|
-
- \`failed\` for error
|
|
181
|
+
### REASON Prefixes (for contract violations)
|
|
211
182
|
|
|
212
|
-
|
|
213
|
-
- \`
|
|
214
|
-
- \`
|
|
215
|
-
- \`low\` - Uncertain, making best guess
|
|
183
|
+
- \`REASON: CHECKLIST_REQUIRED: <details>\` — first submission missing self-checklist
|
|
184
|
+
- \`REASON: REJECTION_RESPONSE_REQUIRED: <details>\` — resubmission missing ITEM responses
|
|
185
|
+
- \`REASON: WONT_FIX_OVERRIDE: <item1>; <item2>; ...\` — mandatory fixes when WONT_FIX is rejected
|
|
216
186
|
|
|
217
187
|
---
|
|
218
188
|
|
|
219
189
|
## Examples
|
|
220
190
|
|
|
221
191
|
### Example 1: Normal Completion
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
"commits": ["abc123", "def456"],
|
|
227
|
-
"commit_message": null,
|
|
228
|
-
"next_status": "review",
|
|
229
|
-
"files_changed": 3,
|
|
230
|
-
"confidence": "high",
|
|
231
|
-
"exit_clean": true,
|
|
232
|
-
"has_commits": true
|
|
233
|
-
}
|
|
234
|
-
\`\`\`
|
|
192
|
+
|
|
193
|
+
STATUS: REVIEW
|
|
194
|
+
REASON: Clean exit with 2 commits
|
|
195
|
+
CONFIDENCE: HIGH
|
|
235
196
|
|
|
236
197
|
### Example 2: Uncommitted Work
|
|
237
|
-
\`\`\`json
|
|
238
|
-
{
|
|
239
|
-
"action": "stage_commit_submit",
|
|
240
|
-
"reasoning": "Work complete but not committed",
|
|
241
|
-
"commits": [],
|
|
242
|
-
"commit_message": "feat: implement task specification",
|
|
243
|
-
"next_status": "review",
|
|
244
|
-
"files_changed": 2,
|
|
245
|
-
"confidence": "high",
|
|
246
|
-
"exit_clean": true,
|
|
247
|
-
"has_commits": false
|
|
248
|
-
}
|
|
249
|
-
\`\`\`
|
|
250
198
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
199
|
+
STATUS: REVIEW
|
|
200
|
+
REASON: Work complete but not committed
|
|
201
|
+
CONFIDENCE: HIGH
|
|
202
|
+
COMMIT_MESSAGE: feat: implement task specification
|
|
203
|
+
|
|
204
|
+
### Example 3: Timeout with no output
|
|
205
|
+
|
|
206
|
+
STATUS: RETRY
|
|
207
|
+
REASON: Timeout with no output, retrying
|
|
208
|
+
CONFIDENCE: HIGH
|
|
209
|
+
|
|
210
|
+
### Example 4: Fatal error
|
|
211
|
+
|
|
212
|
+
STATUS: ERROR
|
|
213
|
+
REASON: Non-zero exit with no changes, fatal
|
|
214
|
+
CONFIDENCE: HIGH
|
|
215
|
+
|
|
216
|
+
### Example 5: Missing self-checklist
|
|
217
|
+
|
|
218
|
+
STATUS: RETRY
|
|
219
|
+
REASON: CHECKLIST_REQUIRED: No SELF_REVIEW_CHECKLIST block found
|
|
220
|
+
CONFIDENCE: HIGH
|
|
265
221
|
|
|
266
222
|
---
|
|
267
223
|
|
|
268
|
-
Analyze the context above and respond with
|
|
224
|
+
Analyze the context above and respond with the signal lines:`;
|
|
269
225
|
}
|
|
270
226
|
//# sourceMappingURL=post-coder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-coder.js","sourceRoot":"","sources":["../../src/orchestrator/post-coder.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAuBH,
|
|
1
|
+
{"version":3,"file":"post-coder.js","sourceRoot":"","sources":["../../src/orchestrator/post-coder.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAuBH,oDAuNC;AA1OD,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEhC,SAAS,YAAY,CAAC,KAAa;IACjC,OAAO,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,sBAAsB,CAAC,MAAc,EAAE,OAAe;IAC7D,MAAM,OAAO,GAAG,IAAI,MAAM,CACxB,gBAAgB,YAAY,CAAC,OAAO,CAAC,yCAAyC,EAC9E,GAAG,CACJ,CAAC;IACF,MAAM,KAAK,GAAG,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AAC,MAAM;EAChC,cAAc;;qBAEK,aAAa,CAAC,MAAM;EACvC,YAAY;;2BAEa,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DAoHW,CAAC;AAC9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-reviewer.d.ts","sourceRoot":"","sources":["../../src/orchestrator/post-reviewer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEnE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"post-reviewer.d.ts","sourceRoot":"","sources":["../../src/orchestrator/post-reviewer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEnE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAgJxE;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CA8E1F"}
|
|
@@ -27,7 +27,7 @@ ${stderr_tail}
|
|
|
27
27
|
|
|
28
28
|
You are a state machine that analyzes reviewer output and determines the next action.
|
|
29
29
|
|
|
30
|
-
**CRITICAL:
|
|
30
|
+
**CRITICAL: Your response MUST end with the required signal lines below. No JSON.**
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
@@ -87,120 +87,65 @@ ${stderrSection}
|
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|
|
90
|
-
## Output
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"reasoning": "One sentence why (max 100 chars)",
|
|
96
|
-
"notes": "Feedback for coder (required if reject)",
|
|
97
|
-
"follow_up_tasks": [
|
|
98
|
-
{
|
|
99
|
-
"title": "Short descriptive title (10-100 chars)",
|
|
100
|
-
"description": "Detailed context: WHAT, WHY, and HOW (100-4000 chars)"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"next_status": "completed" | "in_progress" | "disputed" | "skipped" | "review",
|
|
104
|
-
"rejection_count": 0,
|
|
105
|
-
"confidence": "high" | "medium" | "low",
|
|
106
|
-
"push_to_remote": false,
|
|
107
|
-
"repeated_issue": false
|
|
108
|
-
}
|
|
109
|
-
\`\`\`
|
|
90
|
+
## Required Output (last lines)
|
|
91
|
+
|
|
92
|
+
DECISION: APPROVE | REJECT | DISPUTE | SKIP
|
|
93
|
+
NOTES: <feedback for coder, required if REJECT>
|
|
94
|
+
CONFIDENCE: HIGH | MEDIUM | LOW
|
|
110
95
|
|
|
111
|
-
|
|
96
|
+
Optional (only on APPROVE):
|
|
97
|
+
### Follow-Up Tasks
|
|
98
|
+
- **Title:** Description
|
|
112
99
|
|
|
113
|
-
|
|
114
|
-
- \`approve\` → Work meets requirements, task complete
|
|
115
|
-
- \`reject\` → Issues found, send back to coder
|
|
116
|
-
- \`dispute\` → Fundamental disagreement or hit limit, needs human
|
|
117
|
-
- \`skip\` → Task requires external work, no code needed
|
|
118
|
-
- \`unclear\` → Couldn't determine decision, retry review
|
|
100
|
+
### Decision Values
|
|
119
101
|
|
|
120
|
-
|
|
121
|
-
- \`
|
|
122
|
-
- \`
|
|
123
|
-
- \`
|
|
124
|
-
- \`skipped\` for skip
|
|
125
|
-
- \`review\` for unclear
|
|
102
|
+
- \`APPROVE\` → Work meets requirements, task complete
|
|
103
|
+
- \`REJECT\` → Issues found, send back to coder
|
|
104
|
+
- \`DISPUTE\` → Fundamental disagreement or hit limit, needs human
|
|
105
|
+
- \`SKIP\` → Task requires external work, no code needed
|
|
126
106
|
|
|
127
|
-
|
|
107
|
+
If you cannot determine a decision, omit the DECISION line (will be treated as unclear).
|
|
128
108
|
|
|
129
|
-
|
|
109
|
+
### NOTES
|
|
130
110
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
-
|
|
111
|
+
Required if REJECT (specific feedback for coder). Include all issues found.
|
|
112
|
+
|
|
113
|
+
### Follow-Up Tasks
|
|
114
|
+
|
|
115
|
+
Optional (0-3 items). Use ONLY for approvals where non-blocking improvements or technical debt were identified.
|
|
134
116
|
|
|
135
117
|
---
|
|
136
118
|
|
|
137
119
|
## Examples
|
|
138
120
|
|
|
139
121
|
### Example 1: Approval with Follow-up
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"title": "Add unit tests for edge cases in validation.ts",
|
|
148
|
-
"description": "WHAT: Add unit tests for null/undefined and malformed inputs in the new validation logic.\\n\\nWHY: The current implementation only covers happy paths. We need more coverage before this module is considered bulletproof.\\n\\nHOW: Use the existing pattern in tests/validation.test.ts. Focus on the new boundary conditions introduced in this task."
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"next_status": "completed",
|
|
152
|
-
"rejection_count": 0,
|
|
153
|
-
"confidence": "high",
|
|
154
|
-
"push_to_remote": true,
|
|
155
|
-
"repeated_issue": false
|
|
156
|
-
}
|
|
157
|
-
\`\`\`
|
|
122
|
+
|
|
123
|
+
DECISION: APPROVE
|
|
124
|
+
NOTES: Implementation meets all requirements
|
|
125
|
+
CONFIDENCE: HIGH
|
|
126
|
+
|
|
127
|
+
### Follow-Up Tasks
|
|
128
|
+
- **Add unit tests for edge cases in validation.ts:** Add tests for null/undefined inputs in the new validation logic.
|
|
158
129
|
|
|
159
130
|
### Example 2: Rejection
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"notes": "1. Add error handling in parseConfig(). 2. Missing test for edge case. 3. Fix type error on line 42.",
|
|
165
|
-
"next_status": "in_progress",
|
|
166
|
-
"rejection_count": 1,
|
|
167
|
-
"confidence": "high",
|
|
168
|
-
"push_to_remote": false,
|
|
169
|
-
"repeated_issue": false
|
|
170
|
-
}
|
|
171
|
-
\`\`\`
|
|
131
|
+
|
|
132
|
+
DECISION: REJECT
|
|
133
|
+
NOTES: 1. Add error handling in parseConfig(). 2. Missing test for edge case. 3. Fix type error on line 42.
|
|
134
|
+
CONFIDENCE: HIGH
|
|
172
135
|
|
|
173
136
|
### Example 3: Dispute (Repeated)
|
|
174
|
-
\`\`\`json
|
|
175
|
-
{
|
|
176
|
-
"decision": "dispute",
|
|
177
|
-
"reasoning": "Same issue repeated 4 times, hitting limit",
|
|
178
|
-
"notes": "Reviewer demanding global test coverage outside task scope. Human decision needed.",
|
|
179
|
-
"next_status": "disputed",
|
|
180
|
-
"rejection_count": 11,
|
|
181
|
-
"confidence": "high",
|
|
182
|
-
"push_to_remote": true,
|
|
183
|
-
"repeated_issue": true
|
|
184
|
-
}
|
|
185
|
-
\`\`\`
|
|
186
137
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"rejection_count": 2,
|
|
195
|
-
"confidence": "low",
|
|
196
|
-
"push_to_remote": false,
|
|
197
|
-
"repeated_issue": false
|
|
198
|
-
}
|
|
199
|
-
\`\`\`
|
|
138
|
+
DECISION: DISPUTE
|
|
139
|
+
NOTES: Reviewer demanding global test coverage outside task scope. Human decision needed.
|
|
140
|
+
CONFIDENCE: HIGH
|
|
141
|
+
|
|
142
|
+
### Example 4: Unclear output
|
|
143
|
+
|
|
144
|
+
(no DECISION line — will trigger retry)
|
|
200
145
|
|
|
201
146
|
---
|
|
202
147
|
|
|
203
|
-
Analyze the context above and respond with
|
|
148
|
+
Analyze the context above and respond with the signal lines:`;
|
|
204
149
|
}
|
|
205
150
|
/**
|
|
206
151
|
* Generate multi-reviewer orchestrator prompt for merging notes
|
|
@@ -220,7 +165,7 @@ ${r.stdout.slice(-5000)}
|
|
|
220
165
|
You are receiving rejection notes from ${reviewer_results.length} independent reviewers.
|
|
221
166
|
The DECISION is already REJECT. Your job is to MERGE THE NOTES into a single checklist.
|
|
222
167
|
|
|
223
|
-
**CRITICAL:
|
|
168
|
+
**CRITICAL: Your response MUST end with the required signal lines below. No JSON.**
|
|
224
169
|
|
|
225
170
|
---
|
|
226
171
|
|
|
@@ -260,28 +205,22 @@ ${reviewers_formatted}
|
|
|
260
205
|
|
|
261
206
|
---
|
|
262
207
|
|
|
263
|
-
## Output
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
"confidence": "high",
|
|
279
|
-
"push_to_remote": false,
|
|
280
|
-
"repeated_issue": false,
|
|
281
|
-
"reviewer_count": ${reviewer_results.length}
|
|
282
|
-
}
|
|
283
|
-
\`\`\`
|
|
208
|
+
## Required Output (last lines)
|
|
209
|
+
|
|
210
|
+
DECISION: REJECT
|
|
211
|
+
NOTES:
|
|
212
|
+
## Merged Review Findings
|
|
213
|
+
### File.ts
|
|
214
|
+
- [ ] Issue found (Reviewer name)
|
|
215
|
+
...
|
|
216
|
+
|
|
217
|
+
### Follow-Up Tasks
|
|
218
|
+
- **Title:** Description
|
|
219
|
+
|
|
220
|
+
CONFIDENCE: HIGH | MEDIUM | LOW
|
|
221
|
+
|
|
222
|
+
---
|
|
284
223
|
|
|
285
|
-
Analyze the context above and respond with
|
|
224
|
+
Analyze the context above and respond with the signal lines:`;
|
|
286
225
|
}
|
|
287
226
|
//# sourceMappingURL=post-reviewer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-reviewer.js","sourceRoot":"","sources":["../../src/orchestrator/post-reviewer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAOH,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UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,EACjE,GAAG,OAAO,CAAC;IAEZ,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;eAC9C,CAAC,KAAK,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK;gBAC1B,CAAC,CAAC,QAAQ;;;EAGxB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;;CAEtB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEjB,OAAO;;yCAEgC,gBAAgB,CAAC,MAAM;;;;;;;;;eASjD,IAAI,CAAC,EAAE;kBACJ,IAAI,CAAC,KAAK;uBACL,IAAI,CAAC,eAAe;;;;;EAKzC,mBAAmB;;;;;;cAMP,UAAU;qBACH,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;cAC/B,SAAS,KAAK,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DAmCwB,CAAC;AAC9D,CAAC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Strict parser for extracting routing signals from LLM plain text output.
|
|
3
3
|
* Replaces fragile JSON schema parsing.
|
|
4
4
|
*/
|
|
5
|
-
export type CoderSignal = 'review' | 'unclear';
|
|
5
|
+
export type CoderSignal = 'review' | 'retry' | 'error' | 'unclear';
|
|
6
|
+
export type ConfidenceLevel = 'high' | 'medium' | 'low';
|
|
6
7
|
export type ReviewerDecision = 'approve' | 'reject' | 'dispute' | 'skip' | 'unclear';
|
|
7
8
|
export interface ParsedReviewerOutput {
|
|
8
9
|
decision: ReviewerDecision;
|
|
@@ -23,6 +24,20 @@ export declare class SignalParser {
|
|
|
23
24
|
* Expects: STATUS: REVIEW
|
|
24
25
|
*/
|
|
25
26
|
static parseCoderSignal(output: string): CoderSignal;
|
|
27
|
+
/**
|
|
28
|
+
* Extracts the REASON: line from output.
|
|
29
|
+
* Returns everything after `REASON:` on that line, trimmed.
|
|
30
|
+
*/
|
|
31
|
+
static extractReason(output: string): string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Extracts the CONFIDENCE: level from output.
|
|
34
|
+
* Returns 'high', 'medium', or 'low'. Defaults to 'medium' if not found.
|
|
35
|
+
*/
|
|
36
|
+
static extractConfidence(output: string): ConfidenceLevel;
|
|
37
|
+
/**
|
|
38
|
+
* Extracts the COMMIT_MESSAGE: line from output.
|
|
39
|
+
*/
|
|
40
|
+
static extractCommitMessage(output: string): string | null;
|
|
26
41
|
/**
|
|
27
42
|
* Parses the Reviewer's output for a decision and extracts follow-up tasks.
|
|
28
43
|
* Expects: DECISION: APPROVE|REJECT|DISPUTE|SKIP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal-parser.d.ts","sourceRoot":"","sources":["../../src/orchestrator/signal-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"signal-parser.d.ts","sourceRoot":"","sources":["../../src/orchestrator/signal-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzD;AAED,qBAAa,YAAY;IACvB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAI9B;;;OAGG;WACW,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW;IAiB3D;;;OAGG;WACW,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAM1D;;;OAGG;WACW,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;IAMhE;;OAEG;WACW,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAMjE;;;OAGG;WACW,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,oBAAoB;CAsCxE"}
|
|
@@ -24,13 +24,39 @@ class SignalParser {
|
|
|
24
24
|
const line = lines[i].trim();
|
|
25
25
|
if (!line)
|
|
26
26
|
continue;
|
|
27
|
-
const match = line.match(/(?:\*\*)?STATUS(?:\*\*)?:\s*(?:\*\*)?(REVIEW)(?:\*\*)?/i);
|
|
27
|
+
const match = line.match(/(?:\*\*)?STATUS(?:\*\*)?:\s*(?:\*\*)?(REVIEW|RETRY|ERROR)(?:\*\*)?/i);
|
|
28
28
|
if (match) {
|
|
29
29
|
return match[1].toLowerCase();
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
return 'unclear';
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Extracts the REASON: line from output.
|
|
36
|
+
* Returns everything after `REASON:` on that line, trimmed.
|
|
37
|
+
*/
|
|
38
|
+
static extractReason(output) {
|
|
39
|
+
const cleanOutput = this.stripCodeBlocks(output);
|
|
40
|
+
const match = cleanOutput.match(/(?:\*\*)?REASON(?:\*\*)?:\s*(.*)/i);
|
|
41
|
+
return match ? match[1].trim() : null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Extracts the CONFIDENCE: level from output.
|
|
45
|
+
* Returns 'high', 'medium', or 'low'. Defaults to 'medium' if not found.
|
|
46
|
+
*/
|
|
47
|
+
static extractConfidence(output) {
|
|
48
|
+
const cleanOutput = this.stripCodeBlocks(output);
|
|
49
|
+
const match = cleanOutput.match(/(?:\*\*)?CONFIDENCE(?:\*\*)?:\s*(?:\*\*)?(HIGH|MEDIUM|LOW)(?:\*\*)?/i);
|
|
50
|
+
return match ? match[1].toLowerCase() : 'medium';
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Extracts the COMMIT_MESSAGE: line from output.
|
|
54
|
+
*/
|
|
55
|
+
static extractCommitMessage(output) {
|
|
56
|
+
const cleanOutput = this.stripCodeBlocks(output);
|
|
57
|
+
const match = cleanOutput.match(/(?:\*\*)?COMMIT_MESSAGE(?:\*\*)?:\s*(.*)/i);
|
|
58
|
+
return match ? match[1].trim() || null : null;
|
|
59
|
+
}
|
|
34
60
|
/**
|
|
35
61
|
* Parses the Reviewer's output for a decision and extracts follow-up tasks.
|
|
36
62
|
* Expects: DECISION: APPROVE|REJECT|DISPUTE|SKIP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal-parser.js","sourceRoot":"","sources":["../../src/orchestrator/signal-parser.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"signal-parser.js","sourceRoot":"","sources":["../../src/orchestrator/signal-parser.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,MAAa,YAAY;IACvB;;;OAGG;IACK,MAAM,CAAC,eAAe,CAAC,IAAY;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,gBAAgB,CAAC,MAAc;QAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACjD,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEzC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,MA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CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;iBACtF,CAAC,CAAC;YACL,CAAC;QACJ,CAAC;QAED,OAAO;YACL,QAAQ;YACR,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE;YACpB,aAAa;SACd,CAAC;IACJ,CAAC;CACF;AArGD,oCAqGC"}
|
|
@@ -6,7 +6,9 @@ export interface CoderOrchestrationResult {
|
|
|
6
6
|
reasoning: string;
|
|
7
7
|
commits: string[];
|
|
8
8
|
commit_message?: string;
|
|
9
|
+
/** @deprecated Soft-deprecated: encoded in REASON prefix instead. Remove in follow-up. */
|
|
9
10
|
contract_violation?: 'checklist_required' | 'rejection_response_required' | null;
|
|
11
|
+
/** @deprecated Soft-deprecated: encoded in REASON prefix instead. Remove in follow-up. */
|
|
10
12
|
wont_fix_override_items?: string[];
|
|
11
13
|
next_status: 'review' | 'in_progress' | 'failed';
|
|
12
14
|
files_changed: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/orchestrator/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,QAAQ,GAAG,OAAO,GAAG,qBAAqB,GAAG,OAAO,CAAC;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,oBAAoB,GAAG,6BAA6B,GAAG,IAAI,CAAC;IACjF,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,WAAW,EAAE,QAAQ,GAAG,aAAa,GAAG,QAAQ,CAAC;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACtC,UAAU,EAAE,OAAO,CAAC;IACpB,WAA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,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;IACH,WAAW,EAAE;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/providers/claude.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EAGf,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/providers/claude.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EAGf,MAAM,gBAAgB,CAAC;AAgExB;;GAEG;AACH,qBAAa,cAAe,SAAQ,cAAc;IAChD,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,WAAW,sBAAsB;IAE1C;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;IAiC3E;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA0D3B;;OAEG;IACH,OAAO,CAAC,cAAc;IA2KtB;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAyBrC;;OAEG;IACH,UAAU,IAAI,MAAM,EAAE;IAItB;;OAEG;IACH,YAAY,IAAI,SAAS,EAAE;IAI3B;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM;IAIpE;;OAEG;IACH,4BAA4B,IAAI,MAAM;CAGvC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,cAAc,CAErD"}
|