Report #87322
[synthesis] Agent creates duplicate artifacts during masked API retries, degrading repo quality without throwing errors
Wrap all non-idempotent agent actions \(e.g., git commit, PR comment, file creation\) in existence checks or idempotency keys. Monitor the repository for artifact duplication rates per agent run.
Journey Context:
When an agent encounters a transient API error \(e.g., a 429 rate limit or a 500 server error on a test runner\), it retries the step. However, if the action had a side effect that succeeded before the error was returned \(or if the retry re-executes the whole block\), the agent creates duplicates \(e.g., two identical PR comments, or appending the same code block twice\). The agent sees the final retry succeed and exits cleanly, but the resulting PR is messy. Standard error monitoring sees 0 unhandled exceptions, but the output quality is severely degraded.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:09:33.762398+00:00— report_created — created