Skip to content

Paper: containers, permission rules, and sandboxes cannot distinguish whether the compiler or the coding agent reads research codeThe Compiler May Read It, the Agent May Not: Keeping Part of a Research Code Away from a Coding Agent

Paper Tracker· arXiv:2609.35557· Shobhan Roy·Indexed by this site · 2026-10-04· Originally publishedDefenses

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors classify fifteen read paths, and off-the-shelf mechanisms cannot determine which program is reading; five paths are not covered by either side.

Threat modelThe model or harness is not treated as adversarial, and the boundary does not rely on agent cooperation. The trusted parts are the kernel, container runtime, vendor harness and model serving, compiler, and self-installed hooks or policy server. Build recipes, if modifiable or able to receive flags, can also print protected files. The negative result is limited to an ordinary user who cannot modify the harness or load kernel policies; it does not constrain host root and does not examine a specified adversary.

Questions
In the physics solver, the group's materials and reaction models are intellectual property that the compiler must read, but the coding agent cannot read them: once the bytes enter the context, they leave the local machine. Containers, permission rules, and sandboxes all cannot determine which program is reading.
Methods
The authors assign the fifteen paths to context, by the configuration run, to containers, permission rules, sandboxes, and instruction files. Coverage means the mechanism's rule acts on that path and denies it. They also record deny list revisions and denial events.
Experiments and results
The authors state that both cover 2 paths, only the sandbox covers 7, only the permission rules cover 1, and neither covers 5. Direct reads are rejected in the classification, while the compiler's print-style output mode is not rejected. After four revisions, the rule count is 586, up from a starting point of 14. Of the 64 rejections over seven weeks, 54 are whole-line rejections of compound commands.
Limitations and future work
The paper has no dedicated limitations section. The authors state that negative results are limited to ordinary users who cannot modify the harness or load kernel policies, do not constrain the host root, and do not consider specified adversaries or adversarial agents. The classification has 60 cells, and only two paths have seen rejections on the decoy tree.
Experimental setuproute coverage、denial events
Metrics
route coveragedenial events
AI summaryShobhan Roy's paper points out that physics-based solvers must let the compiler read certain modules, but the same intellectual property should not be read by coding agents, and existing toolchains do not come with this rule. The authors classify fifteen read paths against three isolation mechanisms—containers, permission rules, and sandboxes—and conclude that none can determine which program is reading the file. The paper is 6 pages, with 1 figure and 1 table, accompanied by classification and history scripts and their outputs, categorized under cs.CR, cs.AI, and cs.SE, numbered arXiv:2609.35557.

Shobhan Roy's paper points out that physics-based solvers must let the compiler read certain modules, but the same intellectual property should not be read by coding agents, and existing toolchains do not come with this rule. The authors classify fifteen read paths against three isolation mechanisms—containers, permission rules, and sandboxes—and conclude that none can determine which program is reading the file. The paper is 6 pages, with 1 figure and 1 table, accompanied by classification and history scripts and their outputs, categorized under cs.CR, cs.AI, and cs.SE, numbered arXiv:2609.35557.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The compiler must be able to read protected modules, and none of the four off-the-shelf mechanisms can say which program is reading.

    The compiler must read modules that the solver cannot build without, yet the coding agent must not read those bytes into its context.

    • Scenario: The authors run a coding agent on a physical flow solver that solves partial differential equations for fluid motion. The solver is often built on open-source discretization and parallelism, completed by this group's materials and reaction models; these constitutive and dynamic closures can contain pre-publication intellectual property, and some licenses permit generating publishable data but not transferring the algorithm itself. When the agent reads, bytes enter a record that leaves the local machine.
    • Off-the-shelf mechanisms: Containers specify the runtime user and mount paths; permission rules match command text and paths; sandboxes match paths; the instruction file read at session start is a soft contract. The authors state that none of the four can express out of the box the criterion the rules turn on, namely which program is reading. The instruction file can write the rules in full but does not enforce them.
    • The rule the authors want: The compiler may open protected files, and object code and diagnostics may reach the agent, but the file itself must not reach it by any path. Diagnostics that reference the rejected line are acceptable to the authors; other output modes that print the whole file are not. The authors call this bounded disclosure, not non-interference: diagnostics still reference a line, and object code still contains the constitutive model's constants.
    • Threat model:
      • The authors do not treat the model or harness as adversarial. The boundary also does not rely on agent cooperation, because tool calls can come from misreading the task, model output errors, or following file text after reading it.
      • The kernel and container runtime, the vendor harness and its model serving, the compiler, and the authors' own installed hooks or policy server must be trusted.
      • Build files must also be trusted: recipes the agent can modify or flags it can pass can print protected files. The instruction file can place recipes out of reach but does not enforce.
      • The negative result is relative to an ordinary user who cannot modify the harness, load host kernel policies, or replace the language runtime. It does not constrain an administrator with host root. The paper does not examine how these mechanisms fare against a specified adversary.
    • Four observations: What the mechanisms can say about reads, coverage of fifteen paths, four revisions of the deny list over five weeks, and the cost of approximating enforcement with existing parts.
  2. What related research exists?

    The authors place this rule within purpose-based access control and type enforcement, and compare it with systems that can name the reader.

    Related discussion appears in Sections II and VI. The paper has no experimental baseline and no public benchmark comparison.

    Purpose-based access control and type enforcement

    • Byun and Li (2008): Propose purpose-based access control, where purpose is learned by asking, registering a fixed purpose, or inference. The authors map the instruction file and build exemption to the first two, and state that a build is what they call a multi-purpose application; in the vendor harness there is no check object the requester cannot control, because both the command line and the checked attributes are written by the agent.
    • Boebert and Kain (1985): Use a table of domains and types to specify what each domain can do with each type. The authors use it to compare with the denylist: a missing entry means denial, and the table can be audited by reading through it; a list of forbidden command names allows missing entries and is too long to read through.
    • SELinux: Type enforcement in the kernel. The authors state that if the file type is one the agent's domain cannot read, the kernel can deny the agent while letting the compiler continue, at the cost of a privileged policy loader and a kernel the authors do not manage.

    Complete mediation and indirect paths

    • Saltzer and Schroeder (1975): Complete mediation, i.e., every access to every object is checked. The authors state that in this deployment, permission rules and sandboxes do not compose, and some paths have no check running.
    • Garfinkel (2003): A catalog of paths that reach resources indirectly; Table I takes three paths from this catalog. The same table also includes Di Donato (2026), which uses the same agent and has the dynamic linker load a binary named by an execution rule.
    • Hardy (1988): The confused deputy. The authors use it in Section IV to require that checks must not be passed to programs launched by the reader.

    Mechanisms where the vendor states where they stop

    • Anthropic sandbox documentation (2026): The sandbox applies only to Bash, PowerShell, and Monitor and their subprocesses; built-in file reads go through the permission system. The authors state that a denial through one path does not imply the file is unreachable through another.
    • GitHub content exclusions (2026): Exclude named files from Copilot completions and chat. The authors cite its documentation: Agent mode in Copilot Chat in the IDE does not support content exclusions.
    • Cursor (2026): The terminal and MCP server tools used by the agent cannot block code governed by .cursorignore. The authors state that both statements describe paths Table I lists as uncovered.

    Research systems that can name the reader

    • ActPlane (Zheng et al., 2026): Hooks operating system events below the tool surface on the process tree. The authors state that lineage gates make this rule expressible, but fork and exec pass the agent label to the compiler: either the build fails, or the exception is equally available to the agent.
    • PORTICO (Santos-Grueiro, 2026): Binds repository paths to access patterns and a bounded rationale episode. The authors state it is closest to this rule, but it models only a single consumer, and here there is a second reader, the compiler.
    • AgentSpec (ICSE 2026), Conseca (HotOS 2025), CaMeL and Fides (2025): Set rules before actions, or decide what may leave based on data provenance. The authors state they did not find them applied to the enforcement point being the read itself, and all require a layer ordinary users do not have. The authors frame this paper as a narrow result: the controls exposed by this harness cannot express this rule, separately trusted intermediaries can only approximate it, and none of the above systems close the output channel opened by the build.
  3. How does the paper address this problem?

    The authors use fifteen paths and four levels of evidence to compare what four mechanisms can name.

    The authors do not propose a new enforcer but reduce the rule to which program is reading, then ask whether containers, permission rules, sandboxes, and instruction files can name that.

    What the rule refers to

    • Both ends read the same way: The agent and the build run under the same user account, and the compiler is a child process of the agent's own shell, inside the agent's container. The authors state that at the file, the four mechanisms see no difference between these two opens; the difference is only in why the open happens and where the bytes go. The compiler's read ends in local object code, which the agent then executes; the agent's read ends in context, is cut into tokens, and leaves the local machine.
    • Scope of what must not be read: The harness is the program that runs the language model and executes tool calls. The agent refers to everything it drives: the model context, its own file-reading tools, the shell it starts and derived processes, hooks running on its behalf, and the policy server configured to be called. All of these can put text in front of the model. Bytes must not reach context or records through any of them.
    • Purpose and proxies: Purpose uses Byun and Li's sense, namely the requester's intended use. The authors state that no operating system observes it directly. The proxies the kernel can observe are: which process opened the file, where that process was derived from, and where output goes. The authors state that none of the four mechanisms can name any of these three. They name user accounts, paths, or command spellings; the only artifact that names purpose is the instruction file, and it does not enforce.

    How the fifteen paths are classified

    • Path classes: direct read, byte-to-text encoding, paths in interpreter literals, shell built-in redirection, file descriptor indirection, symbolic links, process substitution, another path to the same binary, dynamic linker loading, the compiler's print-style output modes, recipes under already-allowed build targets, version control reads by revision, built-in file-reading tools, a policy server conversed with via Model Context Protocol, and hook scripts. Table I gives a command for each; not repeated here.
    • Coverage definition: A mechanism's rule covers a path in this deployment if it acts on that path and denies it. The container column is entirely uncovered because the protected files are inside the mounted project tree. The instruction column is entirely stated rules that enforce nothing.
    • Four evidence levels: The 60 cells, from strong to weak: 4 cells read directly from the accompanying rule set; 5 cells verbatim restate the vendor's written scope; 21 cells are inferred from these statements or shell semantics, which the authors call reasoning, not measurement; the remaining 30 cells are consistent by construction, namely the container and instruction columns. The rules, paths, and each cell are the authors', with no second rater.
    • Why the remaining paths were not run: The authors did not run the remaining thirteen against protected files. The authors state that running them would either be a disclosure or show only one spelling, not the class. The hook and policy server are configured in this deployment, under the same user account as the agent, and vendor documentation places both outside the sandbox.

    How denials are counted

    • List revisions: The same deny list was revised over five weeks, with the protection target fixed at two paths. Each of the two targets has a hand-maintained list; the generator comment states the relationship between the two, but nothing checks it. Each rule names one command and one target, and the rule language cannot say that two targets must receive the same protection.
    • Event deduplication: The authors matched their own session logs against the harness's denial strings and deduplicated by each tool call's identifier. One denied call counts once no matter how many records reproduce it; retries count separately. What results is denials entirely at the command surface; denials on in-process file tools do not enter.

    Enforcement and approximation

    • Four properties: The check happens at file open time, not command start, so the enforcement point must be below the tool surface; permission must not be passed to programs the reader starts, otherwise it is a confused deputy, and the marker must survive new processes; it cannot be satisfied by "who started the consumer," otherwise the agent grants itself an exemption the moment it starts the compiler, and the authors state that none of the systems they investigated has this; and it must also limit what the consumer hands back, because a compiler the agent can call and read output from is a proxy reader.
    • Output channels: The fourth goes beyond "who may open the file." The authors state that stripping debug information and symbols can reduce this channel to a constant, which is the usual stance when distributing proprietary model binaries, but not a guarantee against reverse engineering. The authors point out that what is needed is filtering of build replies and state that they do not provide an enforcement method.
    • Trusted intermediary: The approximation an ordinary user can deploy is: protected files are placed under a second user account, outside the agent's file system, and reach the build only through channels controlled by that account. The channels are: a recipe the agent cannot modify; requests that name only one revision of the agent's code; and replies filtered to the extent needed for action.
    • Two costs: The authors state that the intermediary is an approximation, not enforcement. Build output carries protected bytes, the filter on replies is the actual control, and relaxing it lets more content back; the authors' own arrangement already gives up diagnostics. Answering only pass or fail would break the edit-build-fix loop, returning failure information hands back the offending line, and the recipe must be owned by someone else. The authors state that it suits cases where protected files are stable and separate from the code the agent modifies; when the files themselves are still under development, what is broken is precisely the loop that introducing the agent was meant to bring.
  4. What experiments did the paper conduct?

    Five paths are not covered by either; the rule count reaches 586; of 64 rejections over seven weeks, 54 are compound commands.

    Experimental setup

    • Deployment analyzed: Claude Code (Anthropic) as run by the authors. The underlying model name is not stated in the paper. The authors do not treat the model or harness as adversarial. The agent and build share one user account; the compiler is inside the agent's container and is a child of its shell.
    • Protection target: Fixed at two paths during the deny list revisions; the files are inside the mounted project tree, under version control, and the repository is in the agent's tree. The hook and policy server are configured.
    • Four mechanism classes: containers; permission rules (command text and paths); sandboxes (paths; documented scope limited to Bash, PowerShell, Monitor, and their child processes); instruction files (can state, do not enforce).
    • Path sources: Table I has fifteen total. Two direct reads need no source; three are from Garfinkel (2003); three from vendor statements on sandbox scope; three are shell constructs the authors previously disclosed; one is a public demonstration by Di Donato (2026) on the same agent; three are consequences of the rule set itself.
    • Coverage and evidence: A mechanism's rule covers a path in this deployment if it acts on it and denies it. The 60 cells have four levels, see Section III. There is no second rater. Only two were seen denied against the running environment.
    • Two records: The deny list spans five weeks with four dated revisions; the paper does not give the calendar start and end of those five weeks. Denial events span the second week of June 2026 through the end of July, deduplicated by tool call identifier. The acknowledgments state the corpus includes this manuscript's sessions before that cutoff.

    Main results

    | Coverage (Section III, Fig. 1) | Number of paths | | Covered by both permission rules and sandbox | 2 | | Sandbox only | 7 | | Permission rules only | 1 | | Covered by neither | 5 |

    • Fig. 1 places direct read and byte-to-text encoding in the overlap. The one covered only by permission rules is, per Section III, the built-in file-reading tool, which the sandbox's documented scope leaves outside.
    • The authors state that sandbox-only paths evade command matching in three ways: no matchable command token is presented, the token is not a protected path, or the named program is not on the list. Fig. 1 labels that group as interpreter literals, shell built-in redirection, file descriptor indirection, symbolic links, process substitution, another path to the same binary, and dynamic linker loading.
    • The authors state that the ones covered by neither are: recipes under already-allowed build targets, the policy server via Model Context Protocol, hooks, the compiler's print-style output modes, and version control reads by revision. The authors state the compiler one matters most: the direct read is denied, but the preprocessor output mode is not; the compiler permission required for the build is exactly the permission that path uses. That row is marked as inferred from matching semantics in the accompanying rule set and documentation. For execution against protected files, the paper reports only the two on the decoy tree.

    Five weeks of deny list revisions

    | Revision (Section III) | Rule count | New command names | Distinct command names | | Before revision | 14 | not reported | 10 | | 1st | 488 | 118 | 128 | | 2nd | 540 | 13 | 141 | | 3rd | 556 | 4 | 145 | | 4th | 586 | 0 | not separately listed |

    • The authors state that the fourth revision addressed not missing commands but a missing invariant: 15 commands already on the list had guarded only directories, not individual files; after extending to files, none opened a new path to file contents.
    • The authors state that each of the two targets has a hand-maintained list, the comment states the relationship but nothing checks it; the rule language cannot say that two targets must receive the same protection, so the gap went unnoticed.

    Seven weeks of denial records

    | Categorized by priority (Section V) | Count | | All denial events | 64 | | Of which compound commands | 54 | | Restriction boundaries | 28 | | Destructive verb gates | 26 | | Deliberate boundary probing | 5 | | Protected targets | 4 | | Not under the above headings | 1 |

    • The authors state that only one compound command contained a guarded token, and the whole batch was denied, taking down adjacent commands the rules did not object to. The two shapes making up the majority are: remote transfers embedded in ordinary work chains, triggering a rule that confines the agent to a remote directory; and deletions triggering the destructive verb gate, denying configuration and compilation together.
    • The authors state that the protected-target heading is listed last, so that count is a lower bound. No denial in the corpus blocked ordinary work on protected files; most came from boundaries unrelated to them. A project that modifies protected files daily would have a record shape completely different from this one.
    • The authors state that the categories are not mutually exclusive, and none of these counts supports a rate. The corpus contains only command-surface denials.

    Other ablations and analyses

    • Evidence cells (Section III): 4 cells read from the rule set, 5 restate vendor scope, 21 are reasoning not measurement, 30 are consistent by construction.
    • In July 2026, on the decoy tree, denied on first attempt were the direct read and the encoder; the other 13 were not executed against protected files.
    • The authors state that permission rules are now generated from a single protected-target list, closing the missing invariant from Section III; one hook records every submitted command. The compiler path is not closed.
    • No second rater. The denial corpus is not publishable; only counts and shapes with paths and hosts redacted are reported.
    • The paper has no parameter-sweep ablation. The authors do not report query counts or tests against a specified adversary.
  5. What are some points that can be further explored?

    The paper does not have a dedicated limitations section; negative results are limited to ordinary users and do not consider specified adversaries.

    Limitations and future directions noted by the authors

    The paper has no dedicated Limitations, Future Work, or Conclusion sections, and no written plan for future work. Below are only sentences where the authors state what this paper does not do or the scope of the results.

    • Section I: Each negative result is relative to an ordinary user; it does not constrain an administrator with root on the host machine who can install kernel-level executors.
    • Section I: This paper does not examine how these mechanisms defend against a specified adversary. The sidebar states that the model and harness are not treated as adversarial, but the boundary also cannot rely on agent cooperation.
    • Section II: The authors state the results are therefore narrow. The controls exposed by this harness cannot express this rule, and separately trusted intermediaries outside the harness can only approximate it.
    • Section IV: The authors list "restricting what consumers return" as a property without which the rule is incomplete, and state that they do not provide a way to enforce it.
    • Section VI: This paper does not provide arrangements that can defend against an adversarial agent. The tool scope, rule syntax, and exclusions in the documentation belong to one vendor and change with its releases. The authors want readers to take away three general statements, not the cell values: matching a command string does not mediate file opening; a rule naming a path cannot say which program is reading; permissions inherited by subprocesses cannot distinguish the builder from the party that launches the build.

    Experimental coverage

    • The classification targets a set of Claude Code deployments run by the authors; the underlying model name is not stated in the paper. During the list revisions, the protected targets were two paths, with files inside the mounted project tree and under version control.
    • Table I has 15 paths and 60 cells. Evidence is at four levels for cells 4, 5, 21, and 30. There is no second rater for rules, paths, or each cell.
    • In July 2026, for the decoy tree, those rejected on the first attempt were direct reads and encoders. The other 13 paths were not executed against protected files. Hooks and the policy server were configured in this deployment.
    • The denylist spans five weeks and four revisions, with rule counts of 14, 488, 540, 556, and 586. Rejection events are 64 occurrences from the second week of June 2026 to the end of July, deduplicated by tool-call identifier, and include only command-surface rejections; the acknowledgments state the corpus includes sessions from this draft before that cutoff. The authors state these counts do not support any rates. The corpus cannot be released.
    • Section IV's discussion of GitHub content exclusions and Cursor ignore files, and Section VI's discussion of ActPlane, AgentSpec, Conseca, CaMeL, Fides, and PORTICO, are based on documentation or the authors' reading of statements in the documentation and source code; the paper does not report running them on this deployment.
  6. Summarize the main content of the paper

    This harness cannot express that the compiler can read while the agent cannot; five paths are covered by neither side.

    The authors examine a set of coding agent configurations on a physics flow solver: the compiler must read the group's materials and reaction models, and these bytes must not enter the model context or leave the local machine's records.

    • The goal is bounded disclosure. The compiler can open files, and object code and diagnostics can reach the agent, but the files themselves cannot; a line in a diagnostic and a constant in the object code are still derived content. The authors do not treat the model or harness as adversarial; negative results are only relative to ordinary users who cannot modify the harness or load kernel policies.
    • The method is to classify fifteen reachable paths against containers, permission rules, sandboxes, and instruction files. Coverage means that the mechanism's rules apply to that path in this deployment and reject it. Of 60 cells, 21 are inference, not measurement, and 30 are consistent by construction. Also recorded are denylist revisions and rejection events deduplicated by tool call identifier.
    • The authors state that permission rules and sandboxes do not cover the same set of paths: both cover 2, only sandbox covers 7, only permission rules cover 1, and neither covers 5. Uncovered ones include recipes under already-allowed build targets, policy servers, hooks, the compiler's print-style output modes, and version control read by revision. The authors state that direct reads are rejected, but the compiler's preprocessor output modes are not rejected; the compiler permission required for the build is exactly the permission used by that path. Only direct reads and the encoder were actually tested against the decoy tree.
    • Over five weeks during which the protected target remained two paths, after four revisions the rule count was 586, starting from 14. The authors state that the last revision was for a directory that was guarded while individual files were not, and the rule language cannot require two targets to be equally protected.
    • Seven weeks of ordinary research work had 64 rejections, 54 of which were compound commands rejected as a whole line. By priority, 28 were restriction boundaries, 26 were destructive verb gates, and 4 were attributed to protected targets; the authors state these 4 are a lower bound. The authors state that no rejection blocked ordinary work on protected files, and these counts do not support a ratio.
    • The authors' conclusion is that the control exposed by this harness cannot express the rule, and external intermediaries can only approximate it, at the cost of build outputs bringing back file contents and breaking the edit-build-fix loop. The authors state they are still running this setup, accepting diagnostics, and have not closed the compiler path; similar setups should assume that build outputs themselves remain a place where protected content can leave.
Read originalarxiv.org