← Lab /AI/ML

Read-route checks cannot identify which program accesses protected code

None of the three examined mechanisms can determine which program is reading the protected module

AI/ML arXiv 28 Sep 2026 Measurement Prototype evidence

Published as “The Compiler May Read It, the Agent May Not: Keeping Part of a Research Code Away from a Coding Agent”

Why it matters

Ordinary users cannot rely on the built-in container, permission rules, or sandbox to prevent a coding agent from leaking proprietary solver code; a separate trusted mediator or kernel-level enforcement is required.

Summary

The paper finds that none of the four mechanisms (container, permission rules, sandbox, instruction file) can express the rule that the compiler may read protected files while the coding agent may not, leaving five of fifteen possible read routes uncovered. It demonstrates this by classifying fifteen read routes, showing limited coverage, and reporting a denial corpus of 64 events over seven weeks. The evidence is based on a single real-world deployment and no comparative baselines are provided.

What they found 4

  1. None of the four mechanisms can state which program is performing a read.

    “Out of the box, none of the four can state the criterion the rule turns on, which is which program is reading.”

  2. Permission rules and sandbox do not overlap in coverage.

    “Neither the permission rules nor the sandbox covers what the other covers.”

  3. Five read routes are uncovered by both mechanisms.

    “the five that neither covers are a) a recipe under a build target the agent is allowed to run; b) a read performed by a policy server the agent talks to over the Model Context Protocol; c) a read performed by a hook, which is a script the harness runs on the agent’s behalf at fixed points; d) the compiler itself, asked to preprocess a protected file rather than to compile it; and e) the version-control tool, asked for the file at a revision rather than at its path.”

  4. The arrangement accepts compiler diagnostics, allowing protected content to leak.

    “We accept the diagnostics and have not closed the compiler route, so anyone running an arrangement like this one should assume that the build’s own output, the diagnostics and the compiled artifacts alike, is where protected content can still leave.”

Caveats 3

  • The system deliberately allows the compiler to output diagnostics that include protected lines, which contradicts the goal of preventing any protected bytes from reaching the agent.
  • It does not offer an arrangement that holds against a hostile agent.
  • The analysis is limited to a single vendor’s harness and a specific user-level configuration; results may not generalize to other agents or environments.

What’s new here 4

  • Systematic classification of fifteen ways a coding agent can reach protected files.
  • Empirical measurement of rule coverage showing five routes uncovered.
  • Analysis of a seven-week denial corpus (64 events) from an actual research code deployment.
  • Identification that existing permission rules and sandbox cannot distinguish the consumer of a read.