From d2d1d8e2c6c3a8f7b2807ddbde20a2eb897ed292 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Fri, 27 Feb 2026 21:58:11 -0700 Subject: [PATCH] fix(core): resolve contradictions in edge case hunter task spec - Show array wrapper [{}] in output-format example to match JSON array contract, and document empty array [] as valid output - Consolidate empty-content handling: step 1 now defers to halt-conditions instead of defining separate "ask and abort" behavior - Zero-findings halt no longer contradicts JSON contract: re-analyze once, then return [] instead of ambiguous "HALT or re-analyze" - Soften "Execute ALL steps" to acknowledge halt-conditions can interrupt --- src/core/tasks/review-edge-case-hunter.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/tasks/review-edge-case-hunter.xml b/src/core/tasks/review-edge-case-hunter.xml index f312e1b2e..0aa82287e 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