pub struct ResolvedRetryParameters {
pub base_delay_ms: u64,
pub max_delay_ms: u64,
pub max_attempts: u32,
}Expand description
The parameters one retry decision is made with (R0.10 wave 3): the resolution of the active policy’s retry parameters for one error class against the task’s declared attempt budget.
Produced by resolve_retry_parameters; consumed by
classify_retry_with_policy. Carrying the resolution as a value —
rather than re-reading the policy at the decision point — is what makes
the decision’s inputs journaled evidence: the features record the
numbers decided with, not a pointer to state that may have moved.
Fields§
§base_delay_ms: u64Base of the backoff schedule, in milliseconds.
max_delay_ms: u64Cap of the backoff schedule, in milliseconds.
max_attempts: u32Effective attempt budget (the task’s declared budget, narrowed by a learned budget when one is in force).
Implementations§
Source§impl ResolvedRetryParameters
impl ResolvedRetryParameters
Sourcepub fn floor(max_attempts: u32) -> Self
pub fn floor(max_attempts: u32) -> Self
The floor’s resolution: the module constants and the task’s own
budget, untouched. This is exactly what classify_retry decided
with before the policy plane existed.