pub fn decide_retry_transition(
input: &RetryDecisionInput,
) -> Result<RetryDecision, RetryDecisionError>Expand description
Computes retry transition intent from attempt outcome and counters.
ยงInvariants
max_attemptsmust be at least 1.attempt_numbermust be at least 1.attempt_numbermust not exceedmax_attempts(except for Suspended outcomes, which bypass cap validation and always returnSuspend).- Retryable outcomes only produce
Retrywhenattempt_number < max_attempts.