The situation
The screen says something went wrong. The agent proposes a fix immediately, but the log contains a different failure several lines earlier. After two changes the original problem remains and there are now two new ones.
The idea in one paragraph
An error is a reported failure; a log is a time-ordered record of events around it. Neither is the cause by itself. Start with the first relevant failure, preserve its exact message, and reproduce it with the smallest known input. That turns a vague symptom into evidence a person or agent can test.
From symptom to evidence
| Evidence | Useful question | Next move |
|---|---|---|
| Visible symptom | What did the user observe? | Record the action and time |
| Error message | What operation failed? | Keep the exact wording |
| Nearby log lines | What happened just before it? | Follow one request or identifier |
| Reproduction | Can it happen on demand? | Remove unrelated steps |
How it actually works
Programs report failures at different layers. A button may show a generic message while the server records a rejected request and the database records the underlying rule violation. Time, request identifiers and repeated wording connect those layers. Read enough context to trace one event, not the entire log as an undifferentiated wall.
What this changes for you
- Copy the exact error before changing anything.
- Record the smallest sequence that reproduces it.
- Ask the agent to explain which evidence supports its suspected cause.
Where it breaks
Logs can be missing, misleading or unsafe to share because they may contain personal data or credentials. A failure that depends on timing may also disappear during a retry. Redact carefully, preserve the original evidence and do not confuse “cannot reproduce” with “fixed.”
Terms used on this page
- Error: a program's report that an operation did not complete as expected.
- Log: a recorded sequence of events produced while software runs.
- Reproduction: a repeatable set of steps that makes a failure happen.
Read next
Keeping it working moves from one failure to the habits that catch and recover from future ones.