resolve Stage Failure
Returns the AnalyzedFailure for an exception caught inside a stage block.
Already-analyzed failures (AgentRunFailureException, PromptExecutionFailureException, ExecutionAbortException) are unwrapped via the value they carry; anything else is run through FailureAnalyzer.analyzeTrainingFailure.