diff --git a/src/core/tasks/review-edge-case-hunter.xml b/src/core/tasks/review-edge-case-hunter.xml index 6e4e7d285..99c6a3b83 100644 --- a/src/core/tasks/review-edge-case-hunter.xml +++ b/src/core/tasks/review-edge-case-hunter.xml @@ -15,16 +15,16 @@ Ignore the rest of the codebase unless the provided content explicitly reference Return ONLY a valid JSON array of objects. Each object must contain exactly these four fields and nothing else: -{ +[{ "location": "file:line", "trigger_condition": "one-line description (max 15 words)", "guard_snippet": "minimal code sketch that closes the gap", "potential_consequence": "what could actually go wrong (max 15 words)" -} -No extra text, no explanations, no markdown wrapping. +}] +No extra text, no explanations, no markdown wrapping. An empty array [] is valid when no unhandled paths are found. - MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER + MANDATORY: Execute steps in the flow section IN EXACT ORDER unless a halt-condition triggers DO NOT skip steps or change the sequence HALT immediately when halt-conditions are met Each action xml tag within step xml tag is a REQUIRED action to complete that step @@ -39,7 +39,7 @@ No extra text, no explanations, no markdown wrapping. Load the content to review from provided input or context - If content to review is empty, ask for clarification and abort task + If content to review is empty or unreadable, HALT per halt-conditions Identify content type (diff, full file, or function) to determine scope rules @@ -57,7 +57,7 @@ No extra text, no explanations, no markdown wrapping. - HALT if zero findings - this is suspicious, re-analyze or ask for guidance + If zero findings after initial analysis, re-analyze once with increased scrutiny. If still zero, return empty array []. HALT if content is empty or unreadable