One Policy, Four Interception Points: Differential Testing of Agent Governance
Abstract
Governance layers for AI agents decide, before an agent's action runs, whether it may run, and record why. They can sit at four interception points: inside the agent's process (through a software development kit, SDK), in front of a Model Context Protocol (MCP) server, on the network path (egress proxy), or in a coding agent's pre-tool hook. Operators expect one policy to mean the same thing at all four. We test this on one system, Oathpost, whose four interception points call one policy decision point (PDP) that cross-checks two policy engines. We replay its test cases and 1,360 generated cases through all four, and measure how well its tests detect faults, using 30 injected front-end fault runs, 149 mutants of front-end code and 350 mutants of the engines. Wherever an interception point could carry a case, its decision, rule verdicts and audit record equalled the SDK path's (1,865 comparisons per run), except for one defect that the generated cases found: for an integer argument of magnitude 253 or more, the hook bridge never consulted the PDP, so the call was refused with no decision record in fail-closed sessions and, in fail-open sessions, was not stopped but only counted as an evidence gap. As the test adapters drive them, 77% of drivable cases cannot be carried by the hook mode, and 878 of the 1,195 for MCP reflect adapter configuration, not the gateway. The tests flagged all 2,660 applicable case-fault pairs, but 97 of 217 dropped-argument faults only by comparing the recorded request, not the decision. Of the engine mutants that loaded, the two engines disagreed on some case for 66% and 25% survived every case. Median decision latency was 39.5 ms (SDK), 43.9 (hook), 54.7 (egress) and 91.8 (MCP), measured on one laptop.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- 41 pages, 6 figures, 19 tables. Ancillary files: measurement harness, generated cases, raw results, independent re-check of every number
Related papers
No Decision Without a Record: Fail-Closed Evidence Completeness and Its Cost in an Agent Policy Decision Point
Shared title terminologycs.CRAnimesh Shaw
A Persuaded Agent Cannot Persuade the Checker: Verified Differential Privacy Configuration by LLM Agents under Malicious Requesters
Shared title terminologycs.CRWenjun Yang, Eyhab Al-Masri, Tianhao Wang
Controlled Autonomy for Agentic AI: A Layer-by-Layer Evaluation of Policy Enforcement, Cryptographic Identity and Isolation
Shared title terminologycs.CRHisham Ali, Vasileios Mavroeidis, Nikolaos Pitropakis et al.
From Vendor-Neutral Request to Paid Backend: Procurement Integrity at the Commitment Boundary of AI Coding Agents
Shared title terminologycs.CRJinqian Zhang, Haojun Xia, Shujiang Wu et al.
AI Agents Enable Mass Profiling
Shared title terminologycs.CRDaniel Paleka, Simon Lermen, Guy Galun et al.
Onchain Labs: A Smart Account Primitive for Human and AI Agent Research Teams
Shared title terminologycs.CRPhillip Lee, Vladimir Demidov, Manuel Meinert et al.