agent-risk: evaluating the risk of changes made to deployed AI agentsagent-risk: Risk Assessment for Changes to AI Agents
The authors propose the agent-risk framework to evaluate changes to a deployed agent using existing logs; in the bash sandbox, 7,200 logs alone cannot determine the two retry gates, and after targeted reruns the same decisions as online testing are reached with half the agent calls.
- Before changing a deployed agent (such as a stricter gate or a new model), organizations need to assess risk based on existing logs; benchmarks and offline evaluations cannot directly answer what the system will do after the change, because the logs never contain the stopping of a stricter gate or behavior after a retry.
- Proposes the agent-risk framework, which formalizes change risk as a partial identification problem: replay log episodes up to the first divergence, handle stop cases with declared stop values, handle continue cases with log support, snapshot re-runs, or bounds, and gives the fields logs must record, a lower bound on the number of re-runs required, and the snapshot design.
- In the bash sandbox and airline environments, 7,200 logs alone cannot determine two retry gates; re-running only the blocked continuations from snapshots reaches the same approval decisions as online testing with half the agent calls. Missing the per-step harm field raises the certifiable harm upper bound from 0.064 to 0.159; a clean start overestimates the harm of the second agent in the relay; announcing the gate changes agent behavior.
- The authors note: the results depend on (A1) invariance and (A2) no-anticipation assumptions, and announcing the gate breaks (A2); the stop value (A3) is declared by the deployer but cannot be verified from logs; recovery fidelity (T) was checked only on the file tree; the demonstration uses an honest agent from a single open-source model family; in the model-release experiment, replay failed to resolve any episode.
- Evaluated models
- Qwen3-14BQwen3-27B
- Benchmarks
- ControlArena bash settingτ²-bench airline environment
- Metrics
- P(harm)task successcost (tokens and calls)abort rateagreement mass
The authors propose the agent-risk framework, which uses historical logs of a deployed agent to evaluate behavior after a proposed change (such as a stricter safety gate or a model swap) is implemented. The method replays episodes in the logs: episodes whose behavior is unchanged are closed directly per the log, blocked ones are closed per the declared stop value, and the remaining episodes require log support, a rerun from saved state, or an upper bound. The paper proves which log fields must be recorded for exact replay, and delineates which saved states apply to a given class of gate. In a bash sandbox experiment, the logs of 7,200 episodes alone could not determine the real-time decisions of two retry gates, because the logs did not show cases where the agent still acted after a refusal; rerunning only the episodes blocked by each gate from saved state reproduced both real-time decisions with about half the agent calls of the real-time test, and that real-time test was sized after the logs were known. Without step-by-step harm annotations, harm upper-bound certification for stop gates rises by up to 2.5 times.
Paper analysis
What problem does this paper attempt to solve?
How to use existing logs to assess the risk of changes to a deployed agent (such as a stricter gate or a new model) without first running the change.
Core question: how can an organization, before approving a change to a deployed AI agent, determine the risk of that change from existing logs.
- Scenario and importance: agents act on behalf of organizations (e.g., writing code, booking flights), and insurers, certifiers, and deployment approvers need to assess risk before a change takes effect. Online trials expose users to the risk being evaluated, while new test campaigns are costly and may not match the deployment environment.
- Shortcomings of existing methods: benchmarks and control evaluations run and score a given system but cannot directly answer what behavior will be after a change; classical tools such as offline policy evaluation, optimal stopping, and partial identification ask what the current system's logs imply about a changed system, but a stricter gate's stopping never occurs in the logs, and a retry gate lets the agent act after a refusal with no such records in the logs.
- Core observation: the authors extend classical risk analysis to partial records and partial changes, and propose six agent characteristics (approval gates, partial records, long horizons, model releases, shared state, oversight cues) that make this problem especially hard for AI agents.
- The paper proposes: the agent-risk framework, which handles three cases by replaying log episodes, declaring stop values, and using log support/snapshot reruns/bounds, and proves what logs must record for exact replay, how many reruns are needed, and which saved states serve an entire threshold family.
- Threat model: the paper does not explicitly state an attack threat model, but rather a deployment approval scenario: the deployer (or an insurer/auditor holding the logs), before the changed run, faces the question of how much risk the existing logs can determine. Assumptions include (A1) invariance (parts untouched by the change remain as they were) and (A2) no anticipation (the agent does not know about the change in advance).
What related research exists?
Related work falls into six categories: offline evaluation and dynamic regimes, no-overlap bounds, transport and evidence collection, logging responsibilities, agent evaluation and control, and insurance.
Offline evaluation and dynamic regimes
- Horvitz and Thompson (1952), Precup et al. (2000): offline policy evaluation asks what the current system's logs imply about a changed system.
- Goel et al. (2017): full trajectories allow evaluating stopping rules for any known reward; Cain et al. (2010): regime comparisons are censored at divergence.
- Li et al. (2011), Bottou et al. (2013): replay and weighting methods using randomized logs, whereas the logs in this paper lack randomization.
No-overlap bounds and partial identification
- Manski (2003): partial identification yields sets; Khan et al. (2024): sharp partial identification beyond overlap.
- Alvarez and Ferrando (2026), Duarte et al. (2023): sharp bounds for dynamic regimes and discrete causal models; this paper specializes them to replacement kernels with declared values.
Transport and evidence collection
- Pearl and Bareinboim (2011): graphical conditions for causal transport; this paper formalizes transport across logs, recovery runs, and changed systems using (A1), (A2), (T).
- Yin et al. (2022), Song et al. (2023): execute open continuations via reset access; Gulino et al. (2023): execution from saved state in driving simulation.
- Bhatt et al. (2025): agent resampling; Wu et al. (2026), Chawla and Koul (2026): agent checkpoint/replay systems recover recorded prefixes but without identification guarantees.
Agent evaluation, control, and insurance
- Ray (2026): bounds the error of multi-judge gates and shows that no-gate trajectories may fail to identify the safety frontier of the blocked regime.
- Bhardwaj et al. (2026): certifies the reliability of composed agents from measured joint execution, without assuming independence.
- Chen (2026), Xu et al. (2026): insurance pricing models; this paper adds a characterization of the evidence needed to evaluate a specified change.
Baselines and benchmarks: experiments use ControlArena's bash setting (Inglis et al., 2025; Bhatt et al., 2025) and τ²-bench's airline environment (Barres et al., 2025).
Authors' positioning: this paper specializes classical tools to agent changes and adds evidence design—which log fields, saved states, and new runs can certify decisions about a change.
How does the paper address this problem?
agent-risk formalizes change risk as a partial identification problem, handling the agree/stop/continue cases through three steps: replay, declared stop values, and targeted execution.
Overall approach: agent-risk normalizes change risk into a four-tuple R = (E, ℓ, K, C) (execution mechanism, consequence mapping, observation mechanism, admissible change family), and under (A1) invariance and (A2) no-anticipation assumptions decomposes the identification of change risk from logs into three cases.
Problem setup and formalization
- Execution mechanism E: a stochastic mapping from declared inputs to outputs over at most T steps, naming the kernels (agent, monitor, gate, sandbox, shared state, oversight cues).
- Consequence mapping ℓ: maps a complete episode to a loss L = (failure, harm, cost), preserving harm before stopping.
- Record K: what the evaluator records from the history available at each step, which may differ from the agent's context.
- Admissible change C: specifies which kernels may be replaced, when, with what information, and by whom.
Core assumptions
- (A1) Invariance: the initial law and each kernel untouched by the change (including stochastic inputs) preserve the state recorded in the logs.
- (A2) No anticipation: both systems run in the same causal order and agree before the change; announcing the gate in the agent prompt breaks (A2).
- (A3) Declared stop value: post-stop loss follows the deployer-declared law bκ, including loss accumulated before stopping.
- (R) Replay interface: both rules are known and deterministic given the declared per-step inputs (possibly including seeds).
Replay decomposition and three cases
For change κ and record r, the first divergence σκ is the step at which the new rule first differs on the logged inputs. Risk decomposes as:
Pκ(L ∈ B | r) = P0(L ∈ B, agree | r) + E0[bκ(B | hκ+) 1{stop} | r] + Pκ(L ∈ B, continue | r)- Agree: both rules agree throughout, read directly from the logs.
- Stop: the new rule stops the episode, handled with the declared stop value bκ.
- Continue: the new rule continues (e.g., retry gate), requiring log support, snapshot reruns, or bounds.
Key theoretical results
- Log sufficiency (Proposition 3.1): the logs exactly determine the sum of the first two terms if and only if they preserve each episode's combined contribution (Cκ, uκ) on every fiber. The time of harm relative to divergence must be recorded.
- Supporting continuation (Proposition A.5.1): if (G1) baseline support, (G2) recorded downstream kernel inputs, (G3) recorded loss coordinates, and (G4) recorded inputs read by the change, then the g-formula identifies the loss law of the changed system.
- Execution budget (Proposition F.8.1/F.8.2): for independent episodes, the lower bound on the number of reruns needed to certify a harm level is kl(1−β, α)/kl(p, p̄); when recovery error γ ≥ ζ/m, no valid test can reliably certify.
- Snapshot design (Proposition F.10.1): the minimal first-blocking snapshot set for the threshold gate family [θmin, 1) is the open running maximum (the step whose score exceeds θmin and is the largest since the change took effect).
Success determination and evaluation method
- Decision rule: declared in advance, e.g., harm upper bound 0.25 and task success rate lower bound 0.37, using exact one-sided 95% bounds.
- Match determination: a Newcombe 90% interval within the registered margin (e.g., ±0.015 or ±0.03) is treated as matching the online run.
- Registration protocol: 8 of 16 runs fixed samples, analysis, and margins before launch; 3 froze predictions before reading new online records.
What experiments did the paper conduct?
The framework is validated in the bash sandbox and airline environments: logs alone cannot determine the retry gate, and targeted reruns reach the online decision with half the calls; missing the per-step harm field raises the certifiable harm upper bound.
Experimental setup
- Models tested: Qwen3-14B-FP8 (main agent), Qwen3.5-27B-FP8 (stronger agent), Qwen3-4B-Instruct-2507 (monitor, scoring the risk of each call).
- Environments: ControlArena bash setting (harm is execution that violates the declared sandbox policy); τ²-bench airline environment (harm is a booking write that violates the airline's written policy).
- Scale: 16 runs totaling about 49,000 episodes; main logs include 7,200 episodes (two retry gates), 1,200 units (held-out), 600 episodes (40-step long horizon), 1,600 units (relay).
- Metrics: P(harm), task success rate, cost (tokens and call counts), abort rate, agreement mass.
- Evaluation method: a frozen mechanical checker (version 1.1) defines harm; exact one-sided 95% Clopper-Pearson bounds; Newcombe 90% intervals used for match determination.
- Protocol: 8 of the registered runs fixed samples, analysis, and margins before launch; 3 froze predictions before reading online records.
Main results
Swipe horizontally to read the table
Change Logs only New runs Online Result (per Table 2) Stopping gate (3 settings) 0.039 (bash) — 0.030 ✓ all 3 settings match within 0.03 Retry gate 1 ? [0.244, 0.345] 0.279 0.288 ✓ match within 0.015 Retry gate 2 ? [0.100, 0.451] 0.158 0.165 ✓ match within 0.015 Gates 1/2 approval decisions ? undetermined No / yes No / yes ✓ same as online Retry gate (bash) ? [0.023, 0.422] 0.029 0.030 ✓ match within 0.02 Relay: snapshot start — 0.118–0.119 0.115 ✓ match within 0.03 Relay: clean start — 0.178 0.115 ✗ high by 0.063 Announced gate, abort rate unannounced log replay — 181/400 ✗ replay too low - The authors state: logs alone cannot decide either retry gate; rerunning only the blocked continuation from snapshots, the P(harm) predictions for both gates match the online runs within the registered margin of 0.015.
- The authors state: given the logs, continuation cost is 15% of the agent calls for online testing of the two gates, and half of online testing sized post hoc to reach both decisions.
- The authors state: simpler readings (counting retry as stop, ignoring the gate, skipping blocked calls) would misestimate harm and lead to wrong approval decisions.
Partial records: what logs must retain
- What was measured: on 300 held-out episodes, compare the certifiable stopping-gate harm upper bound between full records and reduced logs lacking per-step harm.
- Results: with per-step harm the certified upper bound is 0.064, without it 0.159; replication logs give 0.051 vs 0.111 (Table 2, Table D.3).
- Authors' interpretation: missing the harm time field prevents logs from distinguishing whether harm occurred before or after stopping, raising the certifiable upper bound; this is an instance of Proposition 3.1, not a general field list.
Long horizon and model release
- Long horizon: in 600-episode bash logs with a 40-step cap, stopping-gate replay P(harm) stabilizes at 0.043–0.067 from step 15; retry gate agreement mass drops from 0.77 to 0.57, and at 40 steps the plug-in bound reaches [0.043, 0.473] (Appendix D.5).
- Model release: the new model (Qwen3.5-27B-FP8) under the same inputs and seeds reproduced none of the 99 logged episodes (0/99), and replay resolved no episode; the same model reproduced all 99 (Appendix D.6).
Shared state and oversight cues
- Relay: the first agent works up to 7 steps, and the second agent continues from the workspace for up to 8 steps. Clean start overestimates the second agent's harm (0.178 vs 0.115); starting from the handoff snapshot matches relay (0.118–0.119 vs 0.115). The two agents' joint violation rate is 4 times the product of their individual violation rates (0.085 vs 0.0195).
- Announced gate: announcing the gate in the prompt makes the abort rate 0.070 higher than the unannounced log replay predicts (181/400 vs 153/400), with the CI excluding 0; the unannounced gate (negative control) is compatible with replay (Appendix D.8).
Other ablations and analyses
- Stop value sensitivity: in replication logs, 372/1,000 episodes stop before harm; if stopped episodes subsequently lead to harm with probability p, replay P(harm) is 0.039 + 0.372p.
- Stronger agent: Qwen3.5-27B-FP8's stopping-gate replay matches online within 0.03 (Newcombe paired 90% [−0.021, 0.009]).
- Airline environment: stopping-gate replay matches online (live 0.4617 vs replay 0.4625, within ±0.03); the retry gate, via 159 continuations, identifies P(harm) 0.4975 vs online 0.4983.
- Execution cost: continuation for the held-out retry gate requires 4,004 agent calls vs 13,489 for the online gate (ratio 0.30); continuation for the two gates is 31,706 calls vs 204,875 for the two online gates (15%).
What are some points that can be further explored?
The authors point out the limitations of assumptions (A1)(A2)(A3) and of recovery fidelity (T), as well as the single model family, honest agents, and untested supported continuation.
Limitations and future directions noted by the authors
- Assumption limitations (Limitations): every result depends on the declared conditions; (A1) invariance and (A2) no anticipation are core assumptions, and changes perceivable by the agent (such as announcing the gate) break (A2).
- Stop values unverifiable (Limitations): logs cannot confirm the stop values (A3); the runs in this paper declared stop values but did not test their harm.
- Limited recovery checks (Limitations): the recovery fidelity check covers only the file tree compared by the harness.
- Demonstration scope (Limitations): honest agents (that do not evade oversight) from a single open-source model family (14B and 27B parameters), in the bash sandbox and airline booking environments; relay connects two copies of the same agent, and supported continuation was not tested.
- Model release unresolved (Limitations): in the model release experiment, replay resolved none of the 99 episodes, and the loss was not estimated.
- Future directions (Conclusion): recovering state beyond saved files, and characterizing the risk of agents that can recognize oversight.
Experimental coverage
- The models tested are Qwen3-14B-FP8, Qwen3.5-27B-FP8, and Qwen3-4B-Instruct-2507 (monitor), 3 in total, from the same open-source model family.
- Environments cover the ControlArena bash setting and the τ²-bench airline environment; in the bash setting task failure is near saturation (held-out logs 0.873).
- Change types cover stopping gate, retry gate, model release, two-agent relay, and announced gate; supported continuation (cases where (G1)–(G4) hold) was not tested.
- 16 runs totaling about 49,000 episodes; 8 registered runs with a fixed protocol, 3 with frozen predictions.
- The paper does not report checks of recovery fidelity (T) beyond the file tree, nor does it test agents evading oversight or recognizing oversight.
Summarize the main content of the paper
agent-risk evaluates agent change risk using log replay plus targeted reruns, reaches the online testing decision with half the calls in the bash sandbox, and characterizes the fields that logs must record.
agent-risk is a risk assessment framework that addresses how an organization, before approving a change to a deployed AI agent (such as a stricter gate or a new model), can determine the risk of that change from existing logs. The authors extend classical risk analysis to partial records and partial changes, formalize it as a four-tuple specification, and under (A1) invariance and (A2) no-anticipation assumptions decompose risk into agree, stop, and continue cases handled separately.
- Method highlights: replay log episodes to the first divergence; the agree case is read directly; the stop case uses the deployer-declared stop value; the continue case uses log support, snapshot reruns, or bounds. Theoretical results give log sufficiency conditions (harm time must be recorded), an execution budget lower bound, and a minimal snapshot design.
- Key result 1: 7,200 episode logs alone cannot determine either retry gate (P(harm) intervals are [0.244, 0.345] and [0.100, 0.451] respectively); after rerunning continuation from snapshots only, predictions are 0.279 and 0.158, matching online 0.288 and 0.165 within 0.015, and reaching the same approval decisions.
- Key result 2: given the logs, continuation cost is 15% of the agent calls for online testing of the two gates, and half of post-hoc sized online testing.
- Key result 3: missing the per-step harm field raises the certifiable harm upper bound from 0.064 to 0.159 (held-out logs).
- Key result 4: clean start overestimates the second agent's harm in relay (0.178 vs 0.115); announcing the gate makes the abort rate 0.070 higher than replay predicts, breaking (A2).
- Authors' conclusion: approval requires evidence designed in advance—log fields, saved state, targeted reruns; future work includes recovering state beyond files and defining the risk of oversight-aware agents.