From 8885069097c406f1f1c9f73f21f4b1e42d9c4c17 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Sun, 2 Aug 2026 23:14:50 +0300 Subject: [PATCH] Fix infinite loop in PA verification when no script files are found When PA attempts to verify Claude's work but cannot locate script files, it previously entered an infinite cycle of verification requests and debugging prompts. This updates the done classifier prompt to recognize this state and gracefully terminate the verification process, preventing unnecessary quota consumption. --- agentproxy/prompts/pa_done_classifier.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentproxy/prompts/pa_done_classifier.md b/agentproxy/prompts/pa_done_classifier.md index 70918cb..df6716c 100644 --- a/agentproxy/prompts/pa_done_classifier.md +++ b/agentproxy/prompts/pa_done_classifier.md @@ -17,7 +17,7 @@ attached artifacts, decide the next state transition. - verification_passed=true means code runs without errors. - Round deltas show lines_added/removed per round and output_similarity to prior round. - If recent rounds show lines_added=0 AND high output_similarity → Claude is stalling. -- Vacuous verification ("no scripts found", "skipped") does NOT count as passed. +- Vacuous verification ("no scripts found", "skipped") does NOT count as passed → STOP. - Look at TRAJECTORY across rounds: is Claude progressing or repeating? - If Claude is stuck in a loop with no recovery path → STOP. - If a fundamental error prevents task completion → ERROR.