arXiv:2609.35557cs.CRSep 2026

Manuscript Offprint

arXiv:2609.35557

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

Shobhan Roy

Shobhan Roy

Abstract—The compiler must read modules a physics-based solver cannot build without; the coding agent must not read that intellectual property. The harness does not ship that rule. We classified fifteen read routes against a container, permission rules and a sandbox. None of the three can tell which program is reading.

Index Terms—Coding agents, research software, access control, purpose-based access control, sandboxing, proprietary scientific software.

I. THE FILES THE BUILD NEEDS AND THE AGENT MUST NOT HAVE

We run a coding agent on a physics-based numerical code, a flow solver for the partial differential equations of fluid motion. Solvers of this kind are commonly built on an open-source base, the discretization and the parallel machinery, completed by a group's own material and reaction models. Those models are the constitutive and kinetic closures that make the governing equations solvable. They can hold a group's intellectual property ahead of publication, and some are licensed to the group under terms that allow generating publishable data but not passing on the algorithms themselves. A read by the agent puts their bytes into a transcript that leaves the machine. The solver does not build without them. Consequently the compiler has to open those files. The rule we wanted is simple to state: the compiler may read those files but the agent may not. Four mechanisms stand between the agent and the files: a) the container the agent runs in dictates the runtime user and the paths mounted for the agent; b) the agent's permission rules match on the text of a command and on a path; c) the harness's sandbox matches on a path; d) the plain-language instruction file that the agent reads at the start of every session is a soft contract that can state the rule in full but does not enforce it. Out of the box, none of the four can state the criterion the rule turns on, which is which program is reading.

At the file itself the two reads look the same to all four. The agent and the build run as one user account, and the compiler is a child of the agent's own shell, inside the agent's container. They differ only in why the file is opened and where the bytes go. The compiler's read ends in object code on the same machine, which the agent executes. The agent's read ends in its context window, which is tokenized and leaves the machine.

We use two terms in a specific sense. The harness is the program that runs the language model and executes its tool calls. By the agent we mean everything the harness drives: the model's context, the agent's own file-reading tools, the shell it starts and every process descended from that shell, the hook scripts the harness runs on the agent's behalf, and any policy server it is configured to call. All of them can put text in front of the model. By may not read we mean that the bytes of a protected file must not reach the model's context or the transcript through any of them. We allow one channel only, for the sake of operating the solver. A compiler diagnostic may quote the line it rejects, and we accept that. We do not accept the compiler's other output modes, which can print a file in its entirety. Written out, the rule is that the compiler may open the protected files, that its object code and its diagnostics may reach the agent, and that the files themselves may not, by any path. Both permitted outputs still carry content derived from the file, the diagnostic in the line it quotes and the object code in the models' constants. The rule is therefore a bounded disclosure and not noninterference.

We take the position of an ordinary user of the agent. Such a user cannot change the harness, cannot load a kernel security policy, which lives in the host kernel that every container shares, and cannot replace the language runtime. Accordingly every negative result below is relative to that position. The negative results do not bind an administrator with root on the host machine, who can install a kernel-level enforcer. What this article examines is what these mechanisms can express and cover and what they cannot. It does not examine how they hold against a designated adversary. The sidebar gives the threat model and the parts we trust.

The article makes four observations. The first is what each of the four mechanisms can and cannot say about a read. The second is a table of fifteen ways the agent can reach a protected file, classified against the configuration we run, in which the permission rules and the sandbox

S. Roy is with the University of Iowa, Iowa City, IA 52242 USA (e-mail: shobhan-roy@uiowa.edu).

Submitted to IEEE Security & Privacy. © 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.