Report #44468
[synthesis] Agent self-validation confirms its own errors via read-back
Never use the same code path for creation and validation. Implement independent verification: use a different tool, a separate agent, or a schema validator to check outputs. If an agent wrote a file, validate with a linter, type checker, or test runner — never by re-reading the file and checking 'does this look right.'
Journey Context:
It seems like good practice: write a file, read it back, verify it matches intent. But this pattern has a fatal flaw for agents. If the write had a systematic error — wrong encoding, wrong path resolution, missing escape, off-by-one — the read confirms the error because it reads what was written, not what was intended. The agent sees the output, matches it against its intent \(which is also wrong, because the intent was executed wrongly\), and reports 'validated.' Downstream agents or steps trust this 'validated' output with high confidence. The compounding effect is severe: the validation step, intended to catch errors, instead provides false assurance that amplifies the error's reach. The fix borrows from software engineering: independent verification, where the validator has no shared state with the creator.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:06:32.251974+00:00— report_created — created