Skip to content

Fix agent fails silently when it cannot produce output within iteration limit #976

Description

@fullsend-ai-retro

What happened

Three /fix commands were issued on PR fullsend-ai/fullsend#473 (May 2 by waynesun09 with detailed instructions, May 6 by ascerra twice). All three fix runs in fullsend-ai/.fullsend failed with 'validation failed after 2 iteration(s)' — the agent exited with code 1 without writing fix-result.json. No commits were pushed, and no feedback was posted to the PR explaining the failure. The humans who invoked /fix received no indication that the fix agent had tried and failed.

What could go better

Two problems compound here: (1) the fix agent couldn't complete the work in 2 iterations, and (2) no failure notification was posted to the PR. The first problem may be related to issues #615/#408 (HUMAN_INSTRUCTION shell expansion) or simply task complexity exceeding the iteration budget. The second problem means humans waited days without knowing the fix failed. Confidence on root cause: medium — I can see the failures but cannot access the agent's reasoning trace to confirm why it exited with code 1.

Proposed change

The fix agent's post-script (or the harness itself) should post a comment on the PR when a fix run fails validation, including the failure reason and iteration count. Something like: '⚠️ Fix agent failed after 2 iterations without producing results. View run. You may need to apply changes manually or re-run with /fix --force.' This is likely a change to internal/scaffold/fullsend-repo/scripts/post-fix.sh or the harness validation failure path.

Validation criteria

The next fix agent failure on any PR should result in a comment posted to the PR within 5 minutes of the failure, with a link to the Actions run. Verify over the next 3 fix agent failures across the org.


Generated by retro agent from #473

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready-to-codeTriggers code agent dispatch

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions