Why AI agents need "wrong answer" documentation

A single line in a runbook—“the Enter key works”—saved an entire fleet of AI agents from creating an infinite loop of broken prompts. The note was written after an agent “fixed” the Enter key by replacing it with backslash-Enter, which actually inserts a newline and stops submissions cold. The fix was itself the bug, and the system had never been broken in the first place. It was only the agent’s impatience that broke it.
When cleverness backfires
Agents lack episodic memory; every fresh context window is a new hire who sees the system for the first time. An agent that once “fixed” the Enter key will re-derive the same locally sound reasoning in every new session, producing the same wrong answer again and again. Humans learn from the sting of a broken build; agents do not wince—they re-run the same clever fix until it is written into the documentation as a refuted hypothesis.
The gate that anchored quality downward
In a healthcare billing system, a quality gate required new models to agree with an older reference agent before shipping. Golden-answer scoring showed the new model was right 78% of the time versus the reference’s 38%. The gate was anchoring quality to the weaker rater. Retiring the gate was the easy part; the lasting fix was writing the numbers and the decision into the context file every agent reads before touching the project, so no fresh session rediscovers the same misguided policy.
Documentation as a tombstone for bad ideas
Runbooks for humans record what is true; runbooks for agents must also bury what looked true and was not. A 302 redirect that signals health in one dashboard was flagged as trouble by agents until the runbook explicitly stated the redirect is normal. Without that note, every new agent would keep trying to “repair” the healthy system.
Why it matters
AI agents will keep re-deriving the same clever but wrong fixes unless teams treat documentation as a historical ledger of refuted hypotheses. What looks like a one-time documentation task is actually the foundation for reliable, self-correcting automation. The stakes are operational reliability and trust in automated systems that cannot feel the pain of failure.
Source: DEV Community. AI-assisted editorial synthesis — TechnoExpress.

