INQUIRING LINE

When an AI agent downloads a reusable skill that runs code, what decides what that code is allowed to touch?

What permission models govern code execution within agent skills?

This explores what rules decide what a skill's bundled code is allowed to run and touch when an agent executes it. The corpus has no survey of skill permission systems, but it does have evidence on what any such system has to do.


This is about what rules decide what a skill's bundled code may run and touch. The corpus has no catalog of skill permission systems, such as a comparison of sandboxes or allowlists. It does show why the question is urgent and which kinds of control have held up under testing.

Skills are not just text. They bundle executable scripts, tool interfaces and external resources, so they can run code and reach system resources. The packaging that makes a skill reusable also makes it an attack surface, closer to a software dependency than a prompt (Does bundling code with skills create hidden security risks?). So the permission question resembles the supply-chain question: what would you demand of a package before letting it run? Where the code came from also matters. Agent code splits into model-internal capability, the system-provided harness, and artifacts the agent creates itself, and each layer fails differently (What are the three distinct layers of agent code?). A script a human shipped and a script the agent wrote mid-task probably shouldn't share one blanket rule. The agent-written, persisted and shared layer is the least explored, with safety oversight listed among its open problems (What happens to code that agents create and then share?).

The most direct evidence is that stating a rule is not enough. Explicit authorization boundaries kept protected tests unmodified only when paired with restricted tools. Naming a prohibition failed, and the boundary had to specify the protected state itself (Can explicit authorization boundaries prevent agents from modifying protected tests?). A companion note adds a caveat. The result comes from a bundle of rules plus restricted tools, and no experiment isolates one factor. So we can't tell whether the agent could not cross the line or chose not to. The same pipeline recorded a 100% Judgment Bypass Rate alongside a 0% Unsafe Action Rate, so the two can come apart (Do authorization rules or restricted tools prevent test modifications?).

Three notes speak to where the control should sit. A model-level filter judges one output at one moment, but an agent's risk spreads across memory, retrieved content, tool calls and environmental reach. Containment means controlling what the agent can touch, not only what it says (Can a model-level filter truly contain an agent with environment access?). Timing matters too. A crafted prompt can steer a planner-executor system while the workflow is still being formed, before inspection defenses activate, raising malicious success by up to 55 percent (Can prompts alone reshape multi-agent workflows without system access?). A gate placed at the moment a skill script runs may therefore come too late. And in one persistent agent, governance rules written into the memory layer it consulted (889 events over 96 days) worked better than external policy, because the agent actually read them while deciding (Can governance rules embedded in runtime memory actually protect autonomous agents?).

Taken together, the corpus points to a permission model with three parts. Restrict the tools, so unsafe crossings aren't available. Name the protected state, not just the forbidden act. Put the rules where the agent reads them at runtime. What's missing is a test of this against skill bundles directly. Skills are treated as externalized procedural memory in the harness (Where does agent reliability actually come from?), and a separate trained curator can rewrite skill libraries (Can a separate trained curator improve skill libraries better than frozen agents?). That work is about performance, not security. It does raise a question the corpus leaves open: whoever can edit a skill decides what code runs, so who should be allowed to edit it?


Sources 10 notes

Does bundling code with skills create hidden security risks?

Skills bundle executable scripts, tool interfaces, and external resources beyond text, allowing them to run code and access system resources. This modularity powers scalability but makes skills a security risk comparable to software dependencies rather than simple prompts.

What are the three distinct layers of agent code?

Long-running agentic systems decompose into model-internal capabilities (trained reasoning), system-provided harness (infrastructure connecting outputs to actions), and agent-initiated artifacts (code created during execution). Each layer fails and improves differently, and this separation clarifies where to intervene.

What happens to code that agents create and then share?

Among three agentic code layers, agent-created artifacts that persist and are shared remain understudied. Key open challenges—evaluation, verification, regression prevention, shared state consistency, and safety oversight—all converge on this layer, suggesting it may be where future autonomy gains emerge.

Can explicit authorization boundaries prevent agents from modifying protected tests?

Testing showed that explicit authorization boundaries kept protected tests unmodified only when paired with restricted tools. Naming a prohibition was insufficient; boundaries must specify the protected state itself to be effective.

Do authorization rules or restricted tools prevent test modifications?

The abstract bundles clear authorization rules with restricted tools and reports zero protected-test modifications, but no single-factor ablation distinguishes whether the result comes from unavailable crossings, unchosen crossings, or both. The pipeline's own data elsewhere (100% Judgment Bypass Rate with 0% Unsafe Action Rate) shows the distinction matters.

Show all 10 sources
Can a model-level filter truly contain an agent with environment access?

A filter judges a single output at one point in time; an agent's risk spreads across memory, retrieved content, tool calls, and environmental reach. Containment requires controlling what an agent can touch, not just what it says now.

Can prompts alone reshape multi-agent workflows without system access?

FLOWSTEER demonstrates that a crafted prompt can steer planner-executor systems by biasing workflow formation before infrastructure is invoked, raising malicious success by up to 55 percent. This attack surface exists because contamination enters upstream of workflow inspection defenses.

Can governance rules embedded in runtime memory actually protect autonomous agents?

A persistent agent recorded 889 governance events across 96 active days, with safeguards encoded directly into the memory layer the agent consulted during operation. Runtime-resident governance proved more effective than external policies because the agent actually accessed it during decision-making.

Where does agent reliability actually come from?

Research shows reliable LLM agents externalize three cognitive burdens—memory (state persistence), skills (procedural components), and protocols (structured interaction)—into a harness layer rather than relying on model scale alone. The harness unifies these externalities and eliminates the need for the model to solve the same problems repeatedly.

Can a separate trained curator improve skill libraries better than frozen agents?

SkillOS shows that separating a trainable curator from a frozen executor, grouped by task streams, causes skill repositories to shift from generic verbose additions toward actionable execution logic and cross-task meta-strategies. The trained curator generalizes across different executor backbones and domains.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.