Report #35028
[synthesis] Agent code review passes bad code because it agrees with its own prior decisions
Isolate the generation and evaluation contexts. When an agent reviews its own output, prepend the evaluation prompt with a persona or rubric that explicitly challenges the initial assumptions, rather than asking 'is this correct?'.
Journey Context:
Agentic self-correction is touted as a way to improve quality, but in production, it often degrades it. If an agent writes code and then reviews it, the LLM's sycophancy bias means it will rationalize minor flaws in its own output. The leading indicator is a sudden drop in the length of critique or a high frequency of 'looks good' evaluations on first drafts. By forcing an adversarial or highly specific rubric, you break the self-approval loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:15:51.585286+00:00— report_created — created