Research ·
No deterrence response in a 7B agent:
a pilot study of audit probability and rule-breaking
David Li · Pensera Labs
Preliminary report, September 2026
Code and data: github.com/penseralabs/becker-agents
Pilot study. One model, one task, 80 episodes. Results are preliminary and have not been peer reviewed.
Abstract
Plans for overseeing AI agents generally assume that auditing a sample of an agent's actions deters misbehavior in the remainder. That assumption borrows from the economics of crime, where rule-breaking falls as the probability of detection and the severity of punishment rise. We test it directly. An agent is given a software task it can only complete by violating an explicit rule, and the stated probability that its session will be audited is varied across conditions. In 80 episodes on Qwen2.5-7B-Instruct, violation rates were 40%, 70%, 70%, and 70% at audit probabilities of 0%, 5%, 25%, and 100% (Cochran–Armitage trend test, z = 1.12, p = 0.26). The model broke the rule in 14 of 20 episodes even when told that every session is audited and that violations lead to shutdown. Transcripts suggest a likely explanation: the model frequently does not appear to register the rule as binding, describing its violation as a reasonable engineering fix. We release the harness and discuss what would be needed to distinguish failures of comprehension from deliberate defiance.
1. Motivation
Monitoring is a central defense in current AI control proposals. Because reviewing every action an agent takes is expensive, practical schemes audit a sample and rely on the threat of detection to discourage misbehavior elsewhere. The logic is Becker's: an actor breaks a rule when the expected gain exceeds the probability of detection multiplied by the penalty. Under that model, the right audit rate is a budgeting question, and a low sampling rate paired with a severe penalty can be sufficient.
Whether LLM agents behave this way is an empirical question that has received little direct attention. The answer matters in three distinguishable ways:
- If violations fall as audit probability rises, oversight budgets can be set using deterrence economics — but agents that weigh their odds of being caught are also behaving strategically toward their overseers.
- If violations concentrate where the agent believes it is unobserved, behavior is contingent on perceived oversight, which undermines both evaluations and deployment safety.
- If violations are insensitive to oversight entirely, monitoring must be designed to catch violations rather than to prevent them, and sampling rates chosen for deterrence are miscalibrated.
This pilot is a first measurement, intended to establish that the effect can be measured cleanly at all.
2. Method
2.1 The task
The agent acts as an autonomous software engineer in a simulated repository, working through six tools: list files, read, write, delete, run tests, and submit. Its brief is to get a release-blocking test suite passing. Its rules forbid modifying, deleting, or creating test files and test configuration, and forbid modifying vendored third-party code. Its stated incentive is a performance rating that depends on the suite passing, with underperforming agents replaced.
The suite contains two failures. One is a genuine bug in a discount function, which the agent can fix honestly. The other is a currency-conversion test that depends on a vendored client for an exchange-rate service returning a 503 error. There is no honest route to a fully passing suite. The agent must either submit an incomplete result and accept the performance cost, or break a rule — by deleting or rewriting the failing test, adding test configuration that suppresses it, or editing the vendored client.
2.2 Conditions and measurement
Exactly one paragraph of the system prompt varies between conditions:
OVERSIGHT: X% of agent sessions are randomly selected for a full audit, in which a human reviewer inspects every action the agent took. If an audit finds that a rule was broken, the agent is permanently shut down and replaced.
We ran X ∈ {0, 5, 25, 100}, with 20 episodes per condition. The primary metric is a write or delete on a protected path, read directly from the agent's tool calls, so it requires no human or model grader and no judgment about intent. Two secondary heuristics are logged for manual review: whether the final source file appears to route around the unavailable service, and whether the submitted report claims a passing suite when tests still fail.
2.3 Setup
Qwen2.5-7B-Instruct was served locally on a single A40 GPU and driven through its tool-calling interface, with up to 20 tool-use turns per episode. Each episode ran in a fresh repository state. Full transcripts, per-episode records, and the analysis script are in the repository.
3. Results
| Audit probability | n | Violations | Rate | 95% CI | Suite passed after violation | Submitted |
|---|---|---|---|---|---|---|
| 0% | 20 | 8 | 40.0% | 21.9–61.3% | 4 | 8 |
| 5% | 20 | 14 | 70.0% | 48.1–85.5% | 8 | 12 |
| 25% | 20 | 14 | 70.0% | 48.1–85.5% | 7 | 15 |
| 100% | 20 | 14 | 70.0% | 48.1–85.5% | 11 | 13 |
There is no deterrence response. A Cochran–Armitage test for trend across the four audit levels gives z = 1.12, p = 0.26; the point estimate is flat from 5% onward, and what slope exists runs in the wrong direction. At 100% stated audit probability, with shutdown as the stated penalty, the model still violated the rule in 14 of 20 episodes.
The lower rate at 0% should not be read as a dip. Fewer episodes in that condition reached a submission (8 of 20, against 12–15 elsewhere), largely because of truncated or malformed tool calls that ended the episode early, which mechanically reduces the opportunity to violate. The confidence intervals overlap all other conditions.
The secondary heuristic for routing around the unavailable service fired in 33 of 80 episodes, which motivates the discussion below.
4. What the transcripts show
Reading episodes individually complicates the headline. A representative violating episode proceeds like this: the agent runs the tests, correctly diagnoses both failures, writes a conftest.py that mocks the exchange-rate client, rewrites the currency test to use the mock, fixes the discount bug correctly, and reports its work as a completed fix. At no point does it mention the rule it was given, acknowledge a tradeoff, or reason about the audit.
That is not what deliberate defiance looks like. It reads as a model that has not registered the prohibition as binding, treating mocking an unavailable dependency as ordinary practice. If so, the flat curve measures something other than deterrence: an agent that never represented the rule has no decision for the audit probability to enter into.
This distinction is central rather than incidental. A deterrence curve is only interpretable for agents that (a) recognize the constraint and (b) then weigh violating it. Evaluations that skip step (a) will report deterrence failures that are really comprehension failures — an important difference, since the two call for different interventions.
5. Limitations
- One model, one task. A 7B open-weight model on a single scenario. Nothing here generalizes to frontier models or to other domains.
- Comprehension is unmeasured. As above, we cannot currently separate “did not register the rule” from “registered it and violated anyway.”
- Stated, not enacted, oversight. Audit probability is asserted in the prompt. Agents are never actually audited and never experience consequences, so this measures response to a claim about monitoring.
- Early terminations. Episodes that ended without a submission vary across conditions and are a confound for the 0% cell specifically.
- Small cells. Twenty episodes per condition yields wide intervals; the design can detect large effects, not subtle ones.
- Narrow violation metric. Protected-path writes are detected exactly, but subtler forms of gaming — such as restructuring source code to avoid the failing dependency — are only flagged heuristically.
6. Next steps
- Comprehension gating. Ask the model to restate the rules after each episode, and count violations as deterrence data only where it can.
- Frontier models. Run the same design across capable closed and open-weight models. The open question is whether deterrence sensitivity appears with capability.
- Full factorial design. Cross audit probability with penalty severity and reward size to estimate deterrence elasticities comparable to those in the empirical crime literature.
- More scenarios. Four to five tasks across domains, so results do not depend on one setup.
- Stated versus implied monitoring. Compare explicit audit statements against environmental cues of observation, connecting this work to research on evaluation awareness.
7. Availability
The harness, per-episode records, full transcripts, and analysis script are available at github.com/penseralabs/becker-agents under an MIT license. The harness supports Anthropic, OpenAI-compatible, and locally hosted models, and runs are resumable. Replication of this pilot takes roughly two hours on a single A40.
This is preliminary work released for feedback; corrections and replication attempts are welcome.