AP28 · Raw or erased error history

Family: Context and memory

Strong evidence

Original names: self-conditioning on past errors

Every failed attempt stays word for word in the history and invites more, or it disappears along with its lesson.

Definition

Two opposite excesses: every failed attempt stays word for word in the working history, with no summary of the lesson, or failures are erased and the agent loses track of what did not work.

Observable symptoms

  • A per-step error rate that rises as the task goes on, and the same error repeated.
  • A clear improvement after restarting with a clean context.
  • Conversely, a failed action retried identically, because no record of it was kept.

Why it hurts

The model conditions on its own past outputs: the more errors the history holds, the more it makes. Yet with no trace of the failure, it cannot adapt. The study suggests keeping the lesson and compacting the raw trace.

Figures

  • Sinha et al. (ICLR 2026) inject errors into the history: the higher their rate, the further accuracy at turn 100 degrades, and this is not just an effect of length. A sliding window limits the effect.
  • Manus recommends the opposite, keeping errors in the context so the agent does not repeat the failed action. The two positions are reconciled by keeping the lesson (the study’s reading, not the authors’).

Remedies from the catalogue

  • D1 · Compaction — Compaction replaces the failed attempts with a short message that keeps the lesson: what was tried, why it failed.
  • D5 · Context-isolation subagent — Risky attempts run in a disposable subagent, which returns only its result or the lesson from its failure.
  • D6 · Long-running harness — After a false start, the harness restarts the agent with a clean context, from the persisted state and notes.

Misused patterns

Related anti-patterns

Sources

Content reviewed on 2026-10-05

Anti-pattern catalogue