Production AI agents need a separate diagnosis step
Production AI agents need more than planning, tool use, memory, and . When something fails, it is not enough to say that a tool call failed or that the model should try again. The agent needs to identify which assumption was wrong, which tool call or output created the bad state, and what state now remains.
It also needs to decide whether a retry is safe, whether a rollback or step is needed, and whether a human should review the next move. Observation means seeing what happened. Diagnosis means understanding why the system reached this state and what action is safe next.
This failure-handling ability matters directly for trust in real workflows.
Key points
- Production AI agents should explain failures in operational terms.
- They need to identify bad , bad , and the current remaining state.
- They should decide whether retry, rollback, , or is safest.
- Observation answers what happened; diagnosis answers why it happened and what is safe next.
- Without diagnosis, an agent may only produce a nicer error and repeat the bad action.