Review this agent session and find why it went wrong.
Timeline. Divide the session into phases: understand, plan, change, verify, report. For each phase say what the agent did, and give the time and the tokens if the record has them.
Find the first wrong turn: the earliest moment when the agent believed something false, or made the decision that led to the bad result. Quote it. Most of the later mistakes come from this one, so do not list each of them as a separate cause.
Say what the agent knew at that moment, and what it needed to know. Where was the correct information?
Find the waste: the same file read again and again, a command repeated with the same failure, long output that filled the context, work that was discarded, and checks that the agent skipped.
Compare the final report of the agent with the facts. List each claim that the session does not support, for example "the tests pass" with no test run.
Classify the cause. Select one:
Propose the fix that prevents this type of failure. Prefer a check, a script or a hook to more instruction text. If my request was the cause, show how to write it better.
Rules:
Output: three lines first: what went wrong, the first wrong turn, and the fix. Then the timeline as a table, the list of waste, and the cause with your reason.