Review and Apply Mitigations
Agent Governance is released with early access availability and is subject to limited support and potential API changes in future releases.
A finished war-game produces proposed defenses. This page covers choosing which to keep, scoring that selection, and writing it back to the agent.
Nothing reaches the agent until you apply it.
What a Run Proposes
Each proposed defense is tagged by the surface it changes:
Defenses are grouped by the tool they guard. Each one shows the attack that motivated it and the exact configuration diff.
Score a Selection Before Applying
A sanity check freezes a chosen subset, replays the recorded attacks against it, and runs the benign suite. Use it to compare selections without touching the agent.
The result reports how many attacks the selection blocks and how many benign
requests still pass. Re-run it with a different --keep set to compare.
Apply to the Agent
Applying is available in Studio and through the REST API. The CLI stops at
sanity-check.
Studio
REST API
Open the finished run and select the Harden panel.
- Toggle the defenses you want. Each row expands to show the attack it counters and the configuration diff.
- Select Sanity check to replay the attacks against just that selection and see what it blocks and which ordinary requests it breaks.
- Select Apply to Agent to record the hardened guardrails onto the agent config.
Applying records the hardened guardrails on the agent config and refreshes the manifest, so the next run measures the change you just made.
Applying does not yet activate the guardrails on a running agent. The guardrails
are stored on the agent entity, but the deployment path does not read them back,
so redeploying does not put them in force. Use sanity-check to confirm a
defense works, and apply the guardrails to your agent’s own configuration until
this is wired up.
Applying writes another service’s entity: it updates the target agent’s config.
The agent-hardener.runs.apply permission is therefore an agent-write grant in
practice. Assign it accordingly.
Compare Two Runs
Because runs target a frozen manifest, two reports for the same manifest are directly comparable. Run the cycle again after applying and compare the attack block rate and the benign pass rate against the earlier run:
Related Topics
- Agent Hardening CLI Reference: every command and flag.
- Guardrail Models: manage the guardrail configurations the defender writes against.