Report #61969
[synthesis] Agent assumes git checkout revert succeeded and builds on a corrupted working tree
After any git reset/checkout operation, inject a mandatory git status --porcelain verification step into the agent's scratchpad before allowing it to proceed to the next logical step.
Journey Context:
When an agent makes a mistake, it often tries to git checkout . to revert. However, if there are untracked files, merge conflicts, or permission issues, the git command might fail or partially fail. The agent sees the command executed, assumes the state is clean, and attempts to rebuild. It is now building on a mutated, unclean state, leading to bizarre, untraceable errors. The agent is suffering from a sunk cost bias, assuming its action fixed the state without verifying. Explicit state verification breaks this loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:30:11.359710+00:00— report_created — created