analyzeAgentRunFailure

Recognizes an exception thrown while running the tracked agent (the runAgent path). The returned classification drives the retry policy's transient-vs-terminal decision.