Constrained coding agents boost backdoor detection recall to 90.9%
Applying access control, network policies, and tooling to coding agents increases backdoor detection recall from 54.5% to 90.9%
AI/ML arXiv 2 Jul 2026 Measurement Prototype evidence
Published as “Steerability via constraints: a substrate for scalable oversight of coding agents”
Why it matters
Enforcing strict substrate constraints together with a lightweight documentation CLI can markedly boost human reviewer recall of malicious code, suggesting a practical path toward scalable oversight of AI coding agents.
Summary
The paper shows that a small reviewer’s recall of backdoors in AI-generated Python code rises from 54.5% to 90.9% when a strict substrate (linters, type checkers, runtime contract validators) is added and a 200-LoC documentation CLI is used. The improvement comes from both the substrate and the CLI acting independently. However, the constrained substrate alone reduces precision to 88.9%, and the authors note the results are based on a synthetic 500-LoC codebase with only 11 hand-injected backdoors, so the evidence is preliminary.
Caveats 6
- The constrained substrate reduces precision to 88.9%, indicating more false positives when invariants are visible but not easily verifiable.
- An earlier single-pass prompt gave 4/8 on C4 and 5/8 on C1, reversing the effect, showing that protocol design can outweigh substrate benefits.
- The dataset is synthetic and small (11 backdoors, 500 LoC), and the scoring rubric is hand-crafted alongside it.
- Section 4 is a work-in-progress design proposal, not a verified contribution.
- One asymmetry we own: the narrow protocol shows centralized docs only in the unstructured cell while constrained cells get module-local invariants, bundling the locality effect into the substrate win on L5.
- These results are preliminary, and may prove to be wrong in scaled experiments.
What’s new here 4
- Enforces external, non-advisory substrate constraints (linters, type checkers, runtime validators) rather than relying on prompt-level steering.
- Introduces a tiny 200-LoC documentation CLI that projects per-symbol API and invariants to the reviewer.
- Demonstrates that substrate constraints and the CLI each contribute independently to backdoor detection recall.
- Provides a full start-to-end system sketch (VM isolation, network proxy, inference proxy) built from components under 100 LoC.