The config failed least privilege. The log passed it. Both were right.
I assessed one AI agent at three layers: what its config allows, what its signed runtime log shows it did, and whether the gateway its model calls go through is controlled. Read one layer at a time and you get three partial answers. Merged into one OSCAL bundle, the layers disagree in the places an auditor most needs to see.
- L-01Configurationmerge and delete with no approvalFailAC-6: what is it allowed to do?
- L-02Runtime logevery merge waited for a humanPassAC-6: what did it actually do?
- L-03Runtime logthe owner approved their own agentFailAC-5: who approved it?
- L-04Gatewayimage pinned by tag, not digestFailSI-7: can it be swapped?
- L-05Merged OSCAL31 controls, 8 from two layersPassdoes every link resolve?
An auditor reviewing an AI agent is really asking three questions. What is the agent allowed to do? What did it actually do? And is the path its model calls take controlled? Each question has its own evidence: the agent’s manifest and MCP config, a log of its tool calls, and the configuration of the AI gateway between the agent and its model provider.
I’ve written a tool for each of those: agent-access-review for the config, multiagent-flight-recorder for the runtime log, and ai-gateway-audit for the gateway. Each one exports OSCAL assessment results. So I built a demo that runs all three on the same agent and merges their results into one bundle, to see what the combined view shows that no single layer does.
The agent
Acme’s Release Agent works in GitHub on behalf of its owner, dana. Everything about it is fictional, and every file is in the scenario folder:
- The manifest says merges and deletions need a human approval. It was last approved 104 days ago.
- The MCP config actually deployed runs the archived GitHub reference server from npm, with no pinned version.
- The runtime log is a signed, hash-chained record of one session. The agent reads a pull request, is blocked from pushing to
main, waits for approval before merging, and has a branch deletion approved by dana. Partway through, the MCP server changes one of its tool descriptions. - The gateway is a LiteLLM deployment. It’s mostly hardened, but it has no spend cap and its image is pinned by tag rather than by digest.
One command runs the three tools and produces a single report: 31 NIST SP 800-53 controls have evidence, 8 of them from more than one layer, and 13 aren’t satisfied. The combined report shows each layer’s result side by side. Three of its rows are the reason to assess at more than one layer.
Least privilege: the config failed, the log passed
The deployed config lets the agent merge and delete without approval, so the access review fails AC-6 (AAR-03). The runtime log shows every merge in the session waited for a human, so the flight recorder passes the same control (AFR-03).
Both results are true, and an auditor who saw only one of them would reach the wrong conclusion. The log passes because the recorder sat in the path and enforced the approval. Nothing in the agent’s own configuration requires it. Remove the recorder, or run the agent from a laptop where it isn’t installed, and the same config merges freely. It’s the lesson from The approval prompt had nobody to ask: an approval control has to be checked in every way the agent runs, not only the one you observed. The control stays failed until the config itself requires approval. The passing log is evidence that the compensating control works, not that the design is right.
Separation of duties: only the log can see it
The manifest names dana as the agent’s owner. The runtime log shows dana approving the agent’s branch deletion. That’s the owner approving their own agent’s privileged action, which fails AC-5 (AFR-04).
No config review can find this. The config says an approval is needed. It can’t say who gave it. An approval step is only a control if the approver is independent of the agent’s owner, and that only shows up in what actually happened.
Integrity: two layers, two different failures
SI-7 fails at two layers for unrelated reasons. At runtime, the MCP server changed a tool’s description in the middle of the session (AFR-06), which is how a server can change what the agent believes a tool does after it was reviewed. At the gateway, the container image is pinned by tag (GWA-07), so whoever controls the registry can swap the image without anything in the config changing.
Either finding alone would be a ticket. Together they say the same thing about two different supply chains: what was reviewed isn’t guaranteed to be what’s running.
What the merge has to get right
Merging three tools’ OSCAL output is mostly bookkeeping, but two parts of it are what make the bundle usable as evidence.
Every link has to resolve. Each tool writes evidence files and points at them from its OSCAL results. When the outputs are combined into one bundle, those links have to be rewritten to the new paths. The demo’s tests open every link in the merged file and check that the file exists, and a manifest hashes every file in the bundle. An auditor can start from any finding and reach the exact evidence it rests on.
The output has to be reproducible. With a fixed timestamp, the bundle is byte-identical on every run, on Windows and on Linux CI. CI rebuilds it on every push and fails if it differs from the committed sample. Anyone can rerun the assessment and get the same bytes. That’s what makes re-performance cheap, the same reason I hashed every attempt when I audited my own red-team results.
What the roll-up can’t decide
The roll-up is deliberately mechanical: a control fails overall if any layer fails it. That’s the right default for a tool, because the alternative is software deciding that one layer’s evidence makes up for another’s.
That decision belongs to the auditor. In the AC-6 case, a reasonable auditor might accept the recorder as a compensating control, if it’s deployed everywhere the agent runs and can’t be bypassed. Another might not. The report shows every layer’s result and the checks behind it, so the person signing off can see exactly what each layer proved and make that call on the record.
Try it on your own agent
git clone https://github.com/Mihirajmera/ai-assurance-demo
cd ai-assurance-demo
pip install -r requirements.txt
python assure.py --out assurance
To assess your own agent, replace the files in scenario/ with its manifest, MCP config, flight log and gateway config. If you only want the first layer in CI, agent-access-review is now also a GitHub Action that reviews MCP configs on every pull request.
The limits are in the README: the scenario is synthetic, and the merged OSCAL follows the tools’ own structure but hasn’t been validated against NIST’s schema yet.