Skip to main content

aggregate_with_policy

Function aggregate_with_policy 

Source
pub fn aggregate_with_policy(
    results: &[GateResult],
    fail_closed_ids: &HashSet<&str>,
) -> Verdict
Expand description

Aggregate per-gate verdicts into the attempt’s overall verdict, honoring each gate’s abstain policy (§7.2): Fail if any gate fails or a fail_closed gate abstains; otherwise Pass. An empty gate set passes. fail_closed_ids is the set of gate ids whose abstains block serving (from Gate::abstain_fails_closed); a fail-open gate’s abstain never blocks (the historical behavior).