Documentation describes the solution that shipped. The three approaches that were tried first, and why each one failed, live in a chat that nobody will open again. A person might remember. An agent will not.
Why dead ends cost twice
An agent that is asked to fix a problem will often try the obvious approach first. If the obvious approach failed last week, you pay for it again: tokens, time, and a review of a change that should never have been proposed.
What a useful record contains
- What was tried, specific enough to recognise: the approach, not the whole story.
- Why it failed: the error, the constraint, the measurement.
- Where it applies: the files or the module involved.
- Who found it and when, so it can be revisited if the code changed.
Show it at the right moment
A list of failed attempts nobody reads is no better than a chat log. The record has to reach the agent before it edits the files in question. In Contextingo, failed attempts that cite a file are shown first when an agent is about to change that file, and each one is saved with the reason.
Keep them honest
A failed attempt can become wrong: the library was fixed, the constraint was lifted. Give records a status and let a person or a checked commit confirm or retire them, so old dead ends do not block new work.
More on the mechanism: how to record failed attempts for coding agents.