Implementation
Implementation Notes for Instrumenting Denial Latency
Denials are a performance path too, and measuring how fast the system says no reveals whether policy checks will hold up under production load.
A slow denial is almost as harmful as a wrong one. Callers time out, retry, and pile pressure on exactly the path that is supposed to be the safety mechanism.
What to instrument
- Denial latency percentiles separated from approval latency.
- Queue depth on the policy evaluation path under load.
- Whether denial latency degrades before or after grant latency.
Use the benchmarks, AuthGuardian, and audit schema to confirm the denial path stays fast when it matters.