You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/review/review.prompts.ts
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,8 +88,12 @@ If the server fails to start, skip the browser step and note it in your summary
88
88
89
89
if(ctx.parseRetry){
90
90
parts.push(
91
-
`IMPORTANT: Your previous response did not contain a valid \`\`\`json block and could not be parsed. `+
92
-
`This time you MUST start your response with the JSON block above — do not write any preamble or narrative before it.`,
91
+
`IMPORTANT — RETRY: your previous response could not be parsed against the required schema, so this review is being re-run. The verdict was discarded; none of that prior analysis was recorded. Conform EXACTLY this time:\n`+
92
+
`- Start the response with a single \`\`\`json fenced block — no preamble, narrative, or prose before it.\n`+
93
+
`- \`verdict\` MUST be the string "PASS" or "FAIL" (uppercase) — NOT a boolean (\`true\`/\`false\`), number, or any other word.\n`+
94
+
`- \`confidence\` MUST be present, as an integer 0–100.\n`+
95
+
`- \`dimensions\` MUST contain all four boolean keys: \`correctness\`, \`tests\`, \`planCoverage\`, \`security\`.\n`+
96
+
`- Put every finding inside the \`issues\` array using the exact \`{severity,title,detail,file?}\` shape — do NOT invent other keys (e.g. \`rationale\`, \`findings\`) for them. Free-form reasoning, if any, goes AFTER the closing \`\`\`.`,
0 commit comments