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 2^53 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.
翻译:暂无翻译