Skip to main content

control_integrity

Function control_integrity 

Source
pub fn control_integrity(differential: &DifferentialSet) -> ControlDecision
Expand description

Computes the control-integrity modifier for a probe pair carrying an optional canonical.

Returns Reached(1.0) when:

  • no canonical was issued (gate inert — the strategy didn’t mutate the path)
  • the canonical and the mutated baseline both succeeded (mutation reached the same controller)
  • both canonical and mutated baseline failed (mutation didn’t break routing further than auth or other gates already did)

Returns Blocked when:

  • canonical succeeded (2xx) but mutated baseline failed (non-2xx) — mutation broke routing
  • canonical returned 301 or 308 — server canonicalized away from the mutated path, indicating the mutated request is not the same resource