SkillEffect: Checked Lowering for Memory-Bounded Agent Tools

arXiv cs.AI Papers

Summary

SkillEffect introduces a checked-lowering runtime for AI agent tools that enforces memory bounds through audited implementations, significantly reducing peak memory usage and improving completion rates under memory constraints.

arXiv:2608.17007v1 Announce Type: new Abstract: Agent Skills can specify procedural and resource obligations for tool use, and language models instantiate them as concrete programs. However, when models turn this guidance into code for existing tool interfaces, even a semantically correct program may load an entire input and exceed the memory available to one tool call. We present SkillEffect, a checked-lowering runtime for computations with a recoverable source relation, an audited bounded implementation, and a registered output postcondition. Before granting execution authority, an independent checker rebuilds each proposed lowering from the submitted program and immutable input. Every relation plugin supplies a source recognizer, input-fact extractor, bounded-IR constructor, arena-bound function, and postcondition; one common runtime provides checked selection, bounded-VM execution, atomic capacity leasing, and staged publication. Generality in SkillEffect is architectural rather than automatic: each supported computation requires an audited relation plugin, while the dispatch, resource-control, execution, and publication mechanisms are shared across plugins. Across six operator families, bounded access substantially reduces peak memory and improves completion under externally fixed caps. Six plugins instantiate the same contract across five execution patterns, from streaming reduction to bounded-heap Top-k. The XLSX onboarding study and Top-k extension show that a new relation and a new retained-state pattern reuse the same trust boundary, while the checker accepts all evaluated legal configurations and rejects all adversarial proposals. Together, these results show that one checked-lowering architecture can enforce heterogeneous registered memory relations at Agent tool dispatch.
Original Article
View Cached Full Text

Cached at: 08/19/26, 09:49 AM

# SkillEffect: Checked Lowering for Memory-Bounded Agent Tools
Source: [https://arxiv.org/html/2608.17007](https://arxiv.org/html/2608.17007)
###### Abstract

Agent Skills can specify procedural and resource obligations for tool use, and language models instantiate them as concrete programs\. However, when models turn this guidance into code for existing tool interfaces, even a semantically correct program may load an entire input and exceed the memory available to one tool call\. We presentSkillEffect, a checked\-lowering runtime for computations with a recoverable source relation, an audited bounded implementation, and a registered output postcondition\. Before granting execution authority, an independent checker rebuilds each proposed lowering from the submitted program and immutable input\. Every relation plugin supplies a source recognizer, input\-fact extractor, bounded\-IR constructor, arena\-bound function, and postcondition; one common runtime provides checked selection, bounded\-VM execution, atomic capacity leasing, and staged publication\. Generality inSkillEffectis architectural rather than automatic: each supported computation requires an audited relation plugin, while the dispatch, resource\-control, execution, and publication mechanisms are shared across plugins\. Across six operator families, bounded access substantially reduces peak memory and improves completion under externally fixed caps\. Six plugins instantiate the same contract across five execution patterns, from streaming reduction to bounded\-heap Top\-kk\. The XLSX onboarding study and Top\-kkextension show that a new relation and a new retained\-state pattern reuse the same trust boundary, while the checker accepts all evaluated legal configurations and rejects all adversarial proposals\. Together, these results show that one checked\-lowering architecture can enforce heterogeneous registered memory relations at Agent tool dispatch\.

## 1 Introduction

Reusable Agent Skills increasingly supply procedural knowledge to language models: which tool to call, which fields matter, how large inputs should be processed, and how results should be checked\[[5](https://arxiv.org/html/2608.17007#bib.bib1),[21](https://arxiv.org/html/2608.17007#bib.bib2),[28](https://arxiv.org/html/2608.17007#bib.bib3)\]\. The same procedure can compile into radically different physical executions\. A plan that callsread\_csvmaterializes a table; a lazy scan can project, filter, and aggregate it in bounded space\. Loading an entire scientific matrix is different from opening only its metadata, even when both answer the same query\. Under a server\-sized budget this difference is a performance issue\. Under a 100 MiB tool\-stage cap, it can determine whether the tool call completes\. A Skill recommendation alone is insufficient: in our external smolagents harness, all 16 otherwise valid tool calls choose the eager access mode when no resource feedback is provided\.

This choice has a direct serving consequence\. Agent platforms execute many tool calls in isolated sandboxes, and the per\-invocation memory reservation sets both failure isolation and the number of sessions a host can sustain\. Tight allocations are already ordinary infrastructure settings rather than a paper\-specific thought experiment: Modal Functions and Sandboxes request 128 MiB by default and can be given an explicit hard limit; E2B offers sandbox memory configurations beginning at 512 MiB, and paid plans permit CPU/RAM customization; Cloudflare Workers limit each isolate to 128 MB; and AWS Lambda’s default and minimum setting is 128 MB\[[19](https://arxiv.org/html/2608.17007#bib.bib30),[10](https://arxiv.org/html/2608.17007#bib.bib31),[6](https://arxiv.org/html/2608.17007#bib.bib32),[1](https://arxiv.org/html/2608.17007#bib.bib33)\]\. Daytona’s fleet model uses one sandbox per user, task, or agent; resources are reserved per sandbox and the running fleet draws from an organization\-level compute pool\[[8](https://arxiv.org/html/2608.17007#bib.bib34)\]\. Together, these offerings establish 128–512 MB\-class allocations and limits as an ordinary sandbox/serverless capacity region\. Reserving for an eager worst case wastes that pool; admitting an optimistic plan risks killing a trajectory after the model has already spent tokens and latency\. The useful control point is therefore the pending dispatch: after the model has made its plan concrete, but before the tool process consumes the tenant’s allocation\.

Figure 1:TheSkillEffecttrust boundary, illustrated with the two\-million\-row Polars S2 relation\. The 338\.6/69\.5 MiB peaks are paired generous\-cap operator measurements; 96 MiB is the same\-input development cap, not an external\-sweep tier\. The builder’s lowering is untrusted\. An independent checker identifies the unique matching relation, rebuilds source semantics and input facts, and validates the target configuration and live set; a bounded VM executes only the accepted IR under a capacity lease and publishes staged output only after its registered postcondition passes\.Existing layers leave a concrete systems gap\. Skill compression can preserve procedural contracts or measure whether control obligations survive compression, but does not generally assign a physical live\-set effect to the program selected by the model\[[28](https://arxiv.org/html/2608.17007#bib.bib3),[14](https://arxiv.org/html/2608.17007#bib.bib4)\]\. Cost\-aware planners use profiles to prefer cheaper tools\[[30](https://arxiv.org/html/2608.17007#bib.bib5)\], but a profile does not construct a relation\-preserving bounded program\. A plan gate or cgroup can reject or stop an unsafe process\[[33](https://arxiv.org/html/2608.17007#bib.bib6),[34](https://arxiv.org/html/2608.17007#bib.bib7)\], but cannot recover the intended result\. Conversely, replacingpandaswith a database or streaming operator is not correct merely because it uses less memory: filters, output keys, reduction semantics, and edge cases must still match the declared task\[[2](https://arxiv.org/html/2608.17007#bib.bib16),[22](https://arxiv.org/html/2608.17007#bib.bib17),[16](https://arxiv.org/html/2608.17007#bib.bib22)\]\.

Skills are heterogeneous by construction: a short API wrapper, a tabular analysis procedure, and a scientific\-file workflow need not share the same resource bottleneck\. We target the important class for which the Skill states a resource\-sensitive access obligation, the generated plan exposes a recoverable declarative computation, a bounded implementation exists, and the declared result admits a registered postcondition\. CSV aggregation, sequence reduction, scientific metadata, chunked arrays, workbook streaming, and risk\-ranked audit\-log selection instantiate different members of this class\.

Across these members, the reusable unit is a checked relationr=⟨Sr,Ir,Lr,Ar,Gr⟩r=\\langle S\_\{r\},I\_\{r\},L\_\{r\},A\_\{r\},G\_\{r\}\\rangle\. HereSrS\_\{r\}recognizes the source computation,IrI\_\{r\}inspects immutable input facts,LrL\_\{r\}constructs canonical bounded IR,ArA\_\{r\}derives its arena, andGrG\_\{r\}checks the result before publication\. Skill routing establishes the task and tool context, after which the independent checker reconstructs and validates a concrete relation instance before dispatch\. A new computation therefore extendsSkillEffectby implementing these five relation\-specific obligations while reusing the common dispatch trust boundary\.

This paper asks the following question: can an agent runtime turn an over\-budget model\-generated tool plan into a checked bounded implementation before dispatch, without changing the declared task result? The evaluation has two complementary roles\. Operator characterization measures the physical opportunity across six families: a concrete access choice can change the live set without changing the declared answer\. TheSkillEffectexperiments then instantiate one relation contract across six plugins and exercise the complete proposal–check–execute boundary, from independent reconstruction through bounded\-VM execution, capacity leasing, and staged publication\. The extension studies use XLSX to measure onboarding cost and Top\-kkselection to test a new bounded\-state pattern under the same contract\.

The contributions are:

- •a physical characterization of a concrete agent\-systems failure mode across six tool families: eager and bounded access paths can preserve the same declared result while producing different live sets and hard\-cap completion outcomes, including correct model\-generated plans that fail when executed eagerly;
- •a proposal–check–execute trust boundary built around a common five\-obligation relation contract in which semantics and resource arithmetic are relation\-specific, while binding, unique selection, admission, bounded execution, leasing, and publication are shared; and
- •an evaluation of six plugins across five bounded\-execution patterns, including \(i\) held\-out XLSX onboarding to measure extension cost for an existing pattern and \(ii\) Top\-kkselection to test a qualitatively new retained\-state pattern without changing the generic core\.

Figure[1](https://arxiv.org/html/2608.17007#S1.F1)instantiates the proposal–check–execute boundary for a concrete Polars program generated for a routed Skill; Section[3](https://arxiv.org/html/2608.17007#S3)generalizes the same relation interface across the registry\.

## 2 System Model and Guarantees

### 2\.1 Resource and Admission Model

SkillEffectimplements a guarded optimization boundary for memory\-isolated tool serving\. An accepted dispatch carries both a task\-preserving implementation and a capacity commitment\. When neither the original plan nor an audited lowering can establish those conditions, control returns before tool allocation so the scheduler can choose another tool, budget, or execution site\.

The selected Skill describes the intended tool procedure and its resource requirements\. At dispatch,SkillEffectmatches the submitted program against the audited relations in its registry\. A matching relation binds the recognized source computation and immutable input facts to a bounded target, a memory bound, and a publication check\. The LLM and its GPU memory are outside this tool\-stage capacity domain\. Letppbe the generated but uncommitted tool program,xxits immutable input, andπ\\pithe platform manifest\. We model the peak physical memory of a captured plan as

We​\(x\)\\displaystyle W\_\{e\}\(x\)=\{ne​\(x\),eager,min⁡\(ne​\(x\),ℓe\),bounded,\\displaystyle=\\begin\{cases\}n\_\{e\}\(x\),&\\text\{eager\},\\\\\[\-2\.0pt\] \\min\\\!\\left\(n\_\{e\}\(x\),\\ell\_\{e\}\\right\),&\\text\{bounded\},\\end\{cases\}\(1\)Uπ​\(p,x\)\\displaystyle U\_\{\\pi\}\(p,x\)=Fπ\+Mπ\+max⁡∑e∈𝒜p​\(t\)t⁡\[απ,e​We​\(x\)\+Re​\(x\)\]\.\\displaystyle=F\_\{\\pi\}\+M\_\{\\pi\}\+\\max\_\{t\}\\sum\_\{e\\in\\mathcal\{A\}\_\{p\}\(t\)\}\\bigl\[\\alpha\_\{\\pi,e\}W\_\{e\}\(x\)\+R\_\{e\}\(x\)\\bigr\]\.
𝒜p​\(t\)\\mathcal\{A\}\_\{p\}\(t\)is the set of effects simultaneously live at timett;ne​\(x\)n\_\{e\}\(x\)is the input\-sized state of effectee, andℓe\\ell\_\{e\}is its bounded window\. ThusWe​\(x\)W\_\{e\}\(x\)retains the full state for an eager effect and at mostℓe\\ell\_\{e\}for a bounded one\.FπF\_\{\\pi\}is fixed runtime state,MπM\_\{\\pi\}a frozen platform reserve,απ,e\\alpha\_\{\\pi,e\}maps logical live state to physical occupancy, andReR\_\{e\}covers scratch and output state\. The maximum overttcomposes overlapping effects while allowing sequential phases to reuse capacity\. Operator characterization instantiates these terms from calibrated fresh\-cgroup envelopes\. Across the six registered plugins, the checker instead derives the variable arena and staged\-output terms directly and adds hash\-bound runtime and I/O reserves from the platform manifest\. The assurance boundary combines a source\-derived variable arena with empirical constants for interpreter, allocator, and kernel state\.

#### Checked relations and rule selection\.

Letℛ\\mathcal\{R\}be the six\-relation registry,BBthe tool\-stage capacity budget,GrG\_\{r\}the online postcondition registered with relationrr, andVqV\_\{q\}the exact verifier for taskqqused in evaluation\. For each applicabler∈ℛr\\in\\mathcal\{R\}, an untrusted builder may propose a checked recordzrz\_\{r\}containing a bounded configuration and target IR\. The independent checker evaluatesCr​\(zr,p,x,π\)C\_\{r\}\(z\_\{r\};p,x,\\pi\)by reconstructing the complete allowed source AST, its source\-derived semantic parameters, immutable input facts, and the rule’s arithmetic and dialect obligations\. It also validates the proposal’s bounded window and staged\-output capacities and rebuilds the canonical target IR and live\-set bound for that configuration\. This closed source\-to\-target relation establishes source\-to\-target admissibility;GrG\_\{r\}checks the online result, whileVqV\_\{q\}scores the exact task result in the evaluation\.

The online postcondition is part of the registered relation\. Rule selection and semantic parameters are reconstructed from the submitted source and input; window and staged\-output capacities remain checked proposal parameters\. None depends on the evaluation oracle’s expected values\. Define the accepted set

𝒞B,π​\(p,x\)=\{\(r,zr\)\|r∈ℛ,Cr\(zr;p,x,π\)=pass,zr\.U≤B\}\.\\mathcal\{C\}\_\{B,\\pi\}\(p,x\)=\\left\\\{\(r,z\_\{r\}\)\\ \\middle\|\\ \\begin\{array\}\[\]\{l\}r\\in\\mathcal\{R\},\\ C\_\{r\}\(z\_\{r\};p,x,\\pi\)=\\mathrm\{pass\},\\\\ z\_\{r\}\.U\\leq B\\end\{array\}\\right\\\}\.\(2\)The registry implements

\(r⋆,z⋆\)=\{c,𝒞B,π​\(p,x\)=\{c\},⊥,otherwise\.\(r^\{\\star\},z^\{\\star\}\)=\\begin\{cases\}c,&\\mathcal\{C\}\_\{B,\\pi\}\(p,x\)=\\\{c\\\},\\\\ \\bot,&\\text\{otherwise\}\.\\end\{cases\}\(3\)
When selection succeeds,z⋆\.Tz^\{\\star\}\.Tis the bounded IR supplied to the VM\. Zero accepted rules cause abstention, while multiple accepted rules cause an ambiguity rejection\. The certifier receives neither a task nor a family label\. The operator\-characterization frontend has a separate recognized\-identity case and ordered typed or guarded lowerings; it provides breadth evidence but not the independent checked relation of Equations[2](https://arxiv.org/html/2608.17007#S2.E2)and[3](https://arxiv.org/html/2608.17007#S2.E3)\.

#### Admission policy\.

Admission and abstention have asymmetric consequences under a hard cap\. Dispatching an unjustified plan may terminate tool execution and discard the trajectory, whereas abstention occurs before bounded\-VM execution or publication and returns control to the caller\. Unknown effects and ambiguous rule matches return control before capacity is consumed\. Admission certifies feasibility under the current registry and cap, while abstention leaves alternative tools, budgets, or execution sites available\.

#### Capacity and publication\.

For an admitted requestii, letrir\_\{i\}andzi⋆z\_\{i\}^\{\\star\}be its selected relation and record,yiy\_\{i\}its staged result, andUi=zi⋆\.UU\_\{i\}=z\_\{i\}^\{\\star\}\.Uits checked peak\. LetHHbe the configured cgroupmemory\.max,PiP\_\{i\}the measured peak of an exclusive request cgroup, andAtA\_\{t\}the active leases at publication timett\. Let𝐄limit,i\\mathbf\{E\}\_\{\\mathrm\{limit\},i\}be the applicable cgroup’smax/oom/oom\_kill/oom\_group\_killevent vector, and letσi\\sigma\_\{i\}be its observed swap bytes \(for the request’s exclusive cgroup or the common shared cgroup\)\. Write𝗉𝗎𝖻𝗅𝗂𝗌𝗁i\\mathsf\{publish\}\_\{i\}for the event thatyiy\_\{i\}becomes externally visible\. Before acquiring a lease, the runtime requires

Ui≤H≤B\.U\_\{i\}\\leq H\\leq B\.\(4\)
The SQLite ledger atomically admits a lease only when the sum of bytes inreserved,running, andverifiedstates remains at mostBB\. In the shared\-capacity experiments, ledger capacity and cgroup limit are configured to the same value,B=HB=H\. Output publication satisfies

𝗉𝗎𝖻𝗅𝗂𝗌𝗁i⟹\\displaystyle\\mathsf\{publish\}\_\{i\}\\Longrightarrow\{\}Gri​\(yi\)=pass\\displaystyle G\_\{r\_\{i\}\}\(y\_\{i\}\)=\\mathrm\{pass\}\(5\)∧𝐄limit,i=𝟎∧σi=0\\displaystyle\\land\\ \\mathbf\{E\}\_\{\\mathrm\{limit\},i\}=\\mathbf\{0\}\\ \\land\\ \\sigma\_\{i\}=0∧\{Pi≤Ui,exclusive,∑j∈AtUj≤B,shared\.\\displaystyle\\land\\ \\begin\{cases\}P\_\{i\}\\leq U\_\{i\},&\\text\{exclusive\},\\\\ \\sum\_\{j\\in A\_\{t\}\}U\_\{j\}\\leq B,&\\text\{shared\}\.\\end\{cases\}
The exclusive path compares a fresh request cgroup’s peak with that request’s checked bound\. The shared path uses the atomic sum of active leases as its admission invariant, while the common cgroup and zero limit events guard the capacity domain\. Formal physical runs begin with zero event counters\. The VM result and serialized staged file must both satisfy the registered online postcondition before no\-overwrite atomic publication\. In the oracle\-isolation experiments,VqV\_\{q\}is applied by the host only after the committed container exits and therefore supplies evaluation rather than execution authority\.

### 2\.2 Threat Model

Our threat model distrusts Skill text, generated Python, the proposed target IR, semantic and resource witnesses, and all proposal hashes, whether they are malformed accidentally or crafted maliciously\. A malicious proposer may recompute those hashes after changing a proposal\. Separately, a worker may crash at any lifecycle boundary\. The trusted base comprises the checker, bounded VM, lease/commit runtime, hash\-bound platform manifest, immutable input, registered online postcondition, container image, and kernel cgroup mechanism; the proposer cannot modify them\. The present system covers deterministic, local, read\-only tools\. Irreversible remote effects such as payment or email require an effect transaction protocol\.

The CPython parser and each rule\-specific input inspector are part of the TCB\. The current checker accepts a closed source grammar, but it does not yet place an independently enforced byte, AST\-node, depth, or certification\-time limit around malicious source\. Production deployment must isolate preflight and bound these quantities before parsing; our adversarial mutations test semantic and binding confusion, not parser denial of service\.

We charge the entire tool cgroup: interpreter, anonymous memory, file\-backed pages and page cache visible to its cgroup, libraries, and result buffers\. The cap applies to local tool\-stage physical memory; model GPU memory is outside this domain\. The six\-family operator characterization uses calibrated, platform\-specific envelopes to measure physical leverage\. InSkillEffect, the checker derives the variable live set while the platform manifest supplies empirical interpreter, allocator, I/O, and kernel reserves\.

Input\-fact reconstruction happens during preflight in a separate fresh cgroup with the same hard cap and swap disabled; the online oracle\-isolation protocol charges that scan, including its page cache, as its own capped transaction\. The resulting facts and input hash are then immutable certificate inputs to the execution transaction and are frozen before lease admission\. Fact extraction is format dependent: CSV/FASTA/FCS inspections are streaming or header bounded, whereas the current Zarr checker scans the raw input to derive an exact reduction\. We report certification and execution as separate capped phases, with fact\-extraction cost charged to certification\.

### 2\.3 Trust Contract and Capacity Invariant

#### Semantic TCB contract\.

For each registered relation, the checker and bounded VM are trusted to implement the audited source observation and bounded target\. Acceptance selects that implementation and validates its proposal parameters;GrG\_\{r\}checks the online output contract, whileVqV\_\{q\}supplies exact experimental evaluation\. The mutation study in Section[4\.4](https://arxiv.org/html/2608.17007#S4.SS4)tests this implementation boundary rather than treating it as a machine\-checked proof\.

#### Lease accounting invariant\.

LetAtA\_\{t\}be the active leases after any ledger transition\. InitiallyA0=∅A\_\{0\}=\\emptyset; acquire commits only when∑j∈AtUj\+Ui≤B\\sum\_\{j\\in A\_\{t\}\}U\_\{j\}\+U\_\{i\}\\leq B, lifecycle transitions preserve a lease’s charge, and release removes it\. Induction over serialized transitions gives∑j∈AtUj≤B\\sum\_\{j\\in A\_\{t\}\}U\_\{j\}\\leq Bat every reachable state, including intermediate lifecycle states\. If every admittedUiU\_\{i\}bounds the physical live set charged to its cgroup with swap disabled, physical occupancy for admitted execution transactions is at mostBBas a corollary; the cgroup independently enforces the cap\. The ledger invariant covers execution transactions\. A multi\-tenant deployment extends the same host\-level ledger to concurrent preflight transactions\.

## 3 Design

SkillEffectfollows a three\-stage proposal–check–execute trust boundary\. First, the trusted path reparses the complete source and recovers its concrete resource effect\. Second, a builder proposes a bounded target, while an independent checker reconstructs the admitted relation, target IR, and live\-set bound\. Third, the runtime acquires capacity, executes only checker\-rebuilt IR in the bounded VM, and gates publication on the registered postcondition\. A builder may be an LLM, a heuristic frontend, or a conventional optimizer; its target, witnesses, and bindings remain proposals, so unsupported or incorrect constructions become abstentions\. The six\-family operator characterization uses closed lowering schemas and calibrated envelopes to establish the available physical leverage; the registered runtime supplies the independent checker, bounded VM, platform manifest, capacity lease, online postconditions, and cgroup enforcement\.

### 3\.1 Program Analysis and Relation Recovery

The frontend parses the complete model\-generated Python AST and records resource\-relevant calls and keyword arguments:read\_only,usecols,only\_text,backed, array slicing, lazy scans, streaming collect, and iterator materialization\. All semantics\-bearing parameters must be literal or reconstructed from input facts by the trusted checker\. Dynamic calls, unresolved names, and ambiguous parameters remain unknown\. This prevents a common failure of prompt\-only guards: preserving the sentence “use streaming for large files” does not establish that the generated program streams\.

For each relevant operator, the core IR recordse=⟨f,o,m,ℓ,b⟩e=\\langle f,o,m,\\ell,b\\rangle, whereffis the tool family,oothe operator,mmthe access mode,ℓ\\ellthe live\-set description, andbbthe bound kind\. Source lines, evidence, and artifact hashes are retained as provenance, while admission depends on the reconstructed checked relation\. Access modes include full materialization, projected materialization, metadata\-only or backed access, chunked reduction, streaming collection, and single\-record iteration\. Unknown calls remain*unproven*\.

The IR separates an operator’s semantic live window from its physical bound\. For example, “one Zarr chunk plus a fixed histogram” follows from the operator, while the physical number also includes the interpreter, allocator, libraries, and page cache\. In operator characterization, Equation[1](https://arxiv.org/html/2608.17007#S2.E1)is instantiated from the concrete input and a hash\-bound platform manifest;FπF\_\{\\pi\},απ,e\\alpha\_\{\\pi,e\}, andMπM\_\{\\pi\}are calibrated from fresh\-cgroup runs\. In the registered runtime, the independent checker derives the live window from the accepted source grammar and adds a platform reserve for fixed interpreter and kernel state\. Only a checker\-accepted bounded mode can authorize small\-cap dispatch; eager estimates remain diagnostic\.

### 3\.2 Independent Lowering Check

A registered relation is an executable implementation of the common contractr=⟨Sr,Ir,Lr,Ar,Gr⟩r=\\langle S\_\{r\},I\_\{r\},L\_\{r\},A\_\{r\},G\_\{r\}\\rangle\. A proposed recordzzcarries a bounded configurationρ=z\.ρ=\(w,s\)∈Dr\\rho=z\.\\rho=\(w,s\)\\in D\_\{r\}, consisting of an input window and staged\-output capacity\. Relationrrrecomputes

θr\\displaystyle\\theta\_\{r\}=Sr​\(AST⁡\(p\)\),\\displaystyle=S\_\{r\}\(\\operatorname\{AST\}\(p\)\),fr\\displaystyle f\_\{r\}=Ir​\(x\),\\displaystyle=I\_\{r\}\(x\),T^r\\displaystyle\\widehat\{T\}\_\{r\}=Lr​\(θr,fr,ρ\),\\displaystyle=L\_\{r\}\(\\theta\_\{r\},f\_\{r\};\\rho\),U^r\\displaystyle\\widehat\{U\}\_\{r\}=Rπrun\+Rπio\+Ar​\(T^r,fr\)\+s\.\\displaystyle=R^\{\\mathrm\{run\}\}\_\{\\pi\}\+R^\{\\mathrm\{io\}\}\_\{\\pi\}\+A\_\{r\}\(\\widehat\{T\}\_\{r\},f\_\{r\}\)\+s\.HereDrD\_\{r\}is the relation’s admissible configuration domain,θr\\theta\_\{r\}the recovered source semantics,frf\_\{r\}the immutable input facts,T^r\\widehat\{T\}\_\{r\}the checker\-rebuilt target IR, andU^r\\widehat\{U\}\_\{r\}its checked peak\.SrS\_\{r\}reparses the complete source under a closed grammar,IrI\_\{r\}inspects the immutable input,LrL\_\{r\}constructs canonical bounded\-VM IR,ArA\_\{r\}computes the relation\-specific arena, andGrG\_\{r\}checks the result before publication\. The hash\-bound reservesRπrunR^\{\\mathrm\{run\}\}\_\{\\pi\}andRπioR^\{\\mathrm\{io\}\}\_\{\\pi\}instantiate the fixed platform component of Equation[1](https://arxiv.org/html/2608.17007#S2.E1)\. ThusU^r\\widehat\{U\}\_\{r\}is the relation\-specific instance ofUπ\(z\.T,x\)U\_\{\\pi\}\(z\.T,x\); after unique selection, it becomes the request boundUiU\_\{i\}\. The implemented acceptance predicate is

Cr​\(z,p,x,π\)=pass⟺\\displaystyle C\_\{r\}\(z;p,x,\\pi\)=\\mathrm\{pass\}\\ \\Longleftrightarrowθr≠⊥∧ρ∈Dr\\displaystyle\\theta\_\{r\}\\neq\\bot\\ \\land\\ \\rho\\in D\_\{r\}∧z\.θ=θr∧z\.f=fr\\displaystyle\}\{\\displaystyle\\land\\ z\.\\theta=\\theta\_\{r\}\\ \\land\\ z\.f=f\_\{r\}∧z\.T=T^r∧z\.U=U^r\\displaystyle\}\{\\displaystyle\\land\\ z\.T=\\widehat\{T\}\_\{r\}\\ \\land\\ z\.U=\\widehat\{U\}\_\{r\}∧Bindπ⁡\(z,p,x\)\.\\displaystyle\}\{\\displaystyle\\land\\ \\operatorname\{Bind\}\_\{\\pi\}\(z,p,x\)\.Bindπ\\operatorname\{Bind\}\_\{\\pi\}checks the source, input, platform manifest, and trusted\-code hashes\. Equality is structural over the canonical JSON records; the checker derives every right\-hand\-side value independently of the builder\. Concretely, each relation implements five obligations: recognize the complete source program withSrS\_\{r\}, reconstruct immutable input facts withIrI\_\{r\}, construct the bounded operator sequence withLrL\_\{r\}, derive its arena withArA\_\{r\}, and check the publication predicate withGrG\_\{r\}\. The runtime supplies the common binding, unique selection, capacity lease, bounded\-VM execution, and staged\-publication path\.

This contract deliberately does not synthesize arbitrary program equivalences\. Relation authors audit the source language accepted bySrS\_\{r\}, the semantic facts recovered byIrI\_\{r\}, the target semantics constructed byLrL\_\{r\}, the arena arithmetic inArA\_\{r\}, and the publication predicateGrG\_\{r\}\.SkillEffect’s reusable contribution is to make such audited relations composable with one common dispatch and resource\-control path\.

When a submitted AST matches a supported source schema and its checked effect exceedsBB, the builder extracts the literals required by a registered rule and proposesρ\\rhoand a target record\. Dynamic calls, unresolved names, nonliteral predicates, ambiguous output shapes, unsupported expressions, or missing output keys makeSrS\_\{r\}return⊥\\bot\. Table[1](https://arxiv.org/html/2608.17007#S3.T1)shows how the six executable relations instantiate the same five obligations\. The first five cover four bounded\-execution patterns: streaming relational pipelines \(CSV\), iterator/row\-window reductions \(FASTA and XLSX\), metadata projection \(FCS\), and chunked reduction \(Zarr\)\. Top\-kkadds an explicit bounded\-state pattern whose retained state grows withkk, not with input cardinality\. These patterns demonstrate diversity in bounded\-state structure and access behavior; they are not intended to cover arbitrary Python programs or tool APIs\. Appendix[B](https://arxiv.org/html/2608.17007#A2)separately characterizes eager and bounded access modes across six operator families\.

Table 1:Six executable plugins for one checked\-relation contract, spanning five bounded\-execution patterns\. Each row suppliesSrS\_\{r\},IrI\_\{r\},LrL\_\{r\},ArA\_\{r\}, andGrG\_\{r\}; the common checker additionally validates source, input, platform, target\-IR, and bound bindings\. “Retained state” describes the relation\-specific variable state rather than the fixed platform reserve\. The table separates relation\-specific obligations from the common runtime mechanisms, which are not reimplemented per plugin\.Registry selection therefore dispatches a concrete checker implementation\. The bounded VM receives onlyT^r\\widehat\{T\}\_\{r\}, and publication occurs only afterGrG\_\{r\}accepts its result\. Operator characterization uses a task verifier after execution; the registered runtime performs the source, target, resource, and publication checks shown above\. The builder that proposes a target may change without entering this trusted path; authority is granted only to the concrete record accepted by the relation checker\.

### 3\.3 Capacity\-Safe Execution and Publication

The runtime applies the following decision procedure:

1. 1\.reconstruct the complete source plan, concrete input facts, and every supported identity or lowering candidate;
2. 2\.admit an operator\-characterization identity or a unique checker\-accepted target only when its bound fitsBB, then acquire capacity and execute the bounded handler or target IR into staged output under the cgroup cap; and
3. 3\.publish only when the registered online postcondition and the physical resource invariant pass; otherwise discard staged output and fail closed\.

The cgroup enforcesBBand recordsmemory\.max,memory\.peak,memory\.events, swap, process exit, and the container’s hard\-limit state\. The analytical bound governs admission, while these counters provide independent post\-execution physical evidence\.

## 4 Evaluation

We organize the evaluation around three questions:

1. 1\.When do resource\-sensitive access modes change completion under externally fixed memory caps?
2. 2\.Can one checked\-relation contract recover bounded executions from semantically correct model\-generated plans, onboard a relation withheld from the initial registry without changing the core trust boundary, and support a different bounded\-state pattern?
3. 3\.Can the trust boundary reject invalid proposals, safely publish accepted executions, and operate through Agent harnesses under concurrency and failures?

The studies follow the same three layers as the contributions\. Physical characterization uses operator scaling, external caps, natural plans, latency, and construction baselines to establish the resource effect and connect it to generated programs\. Checked\-runtime studies combine legal and mutated configurations, relation onboarding, the Top\-kkbounded\-state extension, unique rule selection, and oracle isolation to exercise independent reconstruction, bounded execution, and publication\. Capacity and Agent studies cover harness dispatch, lease competition, and lifecycle failures\. The six\-family study measures physical breadth; six plugins instantiate the common contract and exercise checker/runtime reuse\. Five workloads occur in both sets, with AnnData unique to operator characterization and audit\-log Top\-kkunique to the checked registry\. Detailed operator scaling, development\-cap prompting and repair, frontend coverage, latency, and per\-relation physical accounting appear in the appendix\.

### 4\.1 Experimental Methodology

#### Workloads\.

We use six tool families and four parameterizations per family, forming 24 task–Skill pairs\. Each task has a deterministic generator and verifier\. Inputs scale across three sizes for the operator study; the largest contains 100K spreadsheet rows, 2M cytometry events, a150​K×512150\\mathrm\{K\}\\times 512AnnData matrix, a65,536×1,02465\{,\}536\\times 1\{,\}024Zarr array, 2M CSV rows, or 500K FASTA records\. Together they form a controlled benchmark of six distinct resource\-sensitive operator families\.

#### Capacity protocols\.

We use two capacity protocols\. The mechanism matrix uses one development cap per family, placed between the measured bounded and eager peaks to exercise construction and enforcement\. A separate externally fixed cap sweep fixes 64, 128, 256, 512, 1024, and 2048 MiB before any sweep outcome\. The sweep reports completion over all tasks, semantic qualification at the largest tier, and the shared\-qualified subset separately; a baseline’s invalid program is reported as a semantic failure rather than a memory\-system loss\. The natural\-plan mechanism study reuses the development caps unchanged\. We run every physical cell three times in balanced order\. A run succeeds only when the process exits normally, the verifier passes, the cgroup measurement is valid, swap remains zero, and no OOM or OOM\-kill event occurs\. We record nonfatalmemory\.events\.maxpressure rather than misclassifying a successful reclaim\-bound execution as a failure\. This rule applies to operator\-characterization and baseline cells\.SkillEffectpublication applies the stricter Equation[5](https://arxiv.org/html/2608.17007#S2.E5)gate and requires all four limit\-event counters to remain zero\. Repetitions establish stability and are not counted as independent tasks\.

#### Testbed\.

Physical tool executions use the pinnedskilleffect\-tools:v1image under Docker Engine via Colima on an Apple M5 MacBook Air \(10 CPU cores, 16 GiB RAM\)\. The Linux 6\.8/aarch64 VM exposes four vCPUs and cgroup v2; each formal container receives two vCPUs, a 256\-process limit, its statedmemory\.max, and no swap allowance\.SkillEffectuses CPython 3\.11\.15 and hash\-binds its runtime, checker, VM, and platform manifest\. Model generation runs separately with Qwen2\.5\-14B\-Instruct\-AWQ or Mistral\-7B served on one A800\-80GB PCIe GPU; GPU memory is outside the tool cgroup cap\. The uncapped throughput control runs on that server with 112 exposed vCPUs and approximately 979\.5 GiB available host RAM; it contributes no physical\-memory result\.

#### Baselines\.

We compare three kinds of control\.*Constructive*baselines are an always\-pinned resource\-clause prompt, ordinary retry with resource feedback, and the*implemented composition*, which chooses the first statically bounded plan from always\-pin, retry, full\-Skill, and compressed\-Skill generations\.*Reject\-only*controls are a profile gate and a concrete plan gate plus cgroup; they measure safe abstention and are not presented as program constructors\. Direct eager execution is the unmodified reference\. Every executable arm is enforced under the same cap and uses no task\-verifier oracle during construction\. Appendix[A](https://arxiv.org/html/2608.17007#A1)specifies the cap\-feedback, natural\-plan, agent, bounded\-only, oracle\-isolation, and matched\-latency protocols\. Each uses frozen inputs and attempt budgets; repeated executions measure stability rather than adding independent tasks\.

### 4\.2 Hard\-Cap Completion

The operator study in Appendix[B](https://arxiv.org/html/2608.17007#A2)establishes the underlying physical leverage: across all six families, bounded and eager implementations produce the same verified results while their largest\-input peaks differ by3\.753\.75–24\.25×24\.25\\times\(median8\.45×8\.45\\times\)\. We now evaluate whether that leverage changes completion under caps fixed independently of those peaks\. In this study, “bounded lowering” names the operator\-characterization reference; theSkillEffecttrust\-boundary experiments are reported separately\.

The preregistered sweep contains 1,296 task–cap–repeat–arm cells: 1,116 physical executions and 180 composition abstentions fixed by the absence of a candidate plan\. All cells are present; every physical measurement is valid, swap is zero, and there is no monotonicity violation\. Among 750 successful physical executions, 195 record nonzeromemory\.events\.maxpressure but none records an OOM event; these are valid boundary completions, not zero\-pressure runs\. Figure[2](https://arxiv.org/html/2608.17007#S4.F2)reports the result without choosing caps from observed peaks\.

Across all 24 tasks, direct execution completes 0, 0, 4, 20, 20, and 24 tasks at 64–2048 MiB\. The bounded\-lowering arm completes 12 tasks at 64 MiB and all 24 from 128 MiB onward\. Its normalized log\-cap AUC is 0\.950, versus 0\.467 for direct execution; its stable C50/C90 are≤64\\leq 64/128 MiB, versus 512/2048 MiB\. Every one of the six families lowers its median stable threshold by at least one complete binary tier\. The 12 failures at 64 MiB are all physical\-cap failures rather than abstentions: the sweep deliberately executes each frozen candidate at every tier, and all 36 repeats for the four AnnData, four Polars, and four Zarr tasks are OOM\-killed, with zero verifier mismatch\. At 128 MiB every lowered task succeeds\.

We define normalized log\-cap AUC as the trapezoidal area under completion as a function oflog2⁡B\\log\_\{2\}B, divided by the tested log\-cap width\. A stable Cxxis the smallest tested tier whose task\-completion rate is at leastxxand remains at leastxxat every larger tier; each task–tier success additionally requires all three repeats to pass\. Because 64 MiB is the smallest tested tier, the bounded\-lowering arm’s C50 is left\-censored and should be read as≤64​M​i​B\\leq 64\\,MiB\.

The largest gains occur below 512 MiB\. Relative to direct execution, lowering adds 12, 24, and 20 completed tasks at 64, 128, and 256 MiB\. At 512 and 1024 MiB the remaining four\-task gain comes entirely from Zarr; at 2048 MiB both paths complete all 24 tasks\. The sweep therefore locates both the tight\-cap operating region and the point at which additional lowering capacity ceases to change completion\.

The implemented composition is semantically valid at 2 GiB for only 9/24 tasks, so its all\-task AUC of 0\.358 combines coverage and memory feasibility\. We therefore make the stronger comparison on exactly those nine tasks\. Both the composition and bounded\-lowering arm complete 5/9 at 64 MiB and 9/9 at every larger tier, giving identical shared\-subset AUCs of 0\.956\. Bounded lowering therefore matches the composition whenever it already supplies a correct bounded plan\. Its additional benefit comes from constructing verifier\-valid bounded plans for the other fifteen tasks\.

The development\-cap construction study reaches the same qualitative boundary: always\-pin and feedback\-based retry construct verifier\-valid bounded programs for 9/24 and 4/24 tasks, respectively\. Appendix[C](https://arxiv.org/html/2608.17007#A3)reports the full construction and failure breakdown\.

Figure 2:Verifier\-passing task completion under six externally frozen binary caps across all 24 tasks\. Markers are the measured quota tiers; connecting segments aid comparison and do not denote intermediate\-cap observations\. The composition series includes its semantic coverage limit\. On the same nine tasks for which the composition is valid, it and the bounded\-lowering arm have identical completion at every cap, as quantified in the preceding paragraph\.
### 4\.3 Recovering Bounded Execution from Model Plans

We next connect operator characterization to model\-generated code\. The frozen generation pool contains 72 plans\. Twenty\-five attempts pass the verifier, covering 10 of 24 tasks\. The connection experiment therefore contains those 10 tasks; the model did not produce a correct plan for the other 14 within the frozen attempt budget\. Of the selected plans, five are already bounded: one AnnData task and four Biopython tasks\. Five are correct but unsafe: one FlowIO plan materializes event data and four Polars plans eagerly load the CSV\.

The bounded lowerer leaves all five bounded plans unchanged\. For each unsafe plan, it recovers its fields or predicates, constructs a bounded target, and re\-verifies the result\. Under the same frozen family caps, unchanged natural plans complete only the five already\-safe tasks \(15/30 repeated runs\) and incur 15 cap failures\. The bounded lowerer completes all 10 tasks and 30/30 runs with no cap failure\. Among the five unsafe tasks, the comparison is 0/5 versus 5/5\.

Median successful peaks for the lowered FlowIO plan and four Polars plans are 41\.66, 81\.22, 78\.72, 78\.73, and 80\.48 MiB, respectively\. Across the five safe no\-op tasks, the median peaks of the direct and bounded\-lowering arms differ by at most 0\.21 MiB, confirming that an available lowerer does not itself trigger rewriting\.

The Mistral\-7B replication yields only four verifier\-valid attempts across two tasks, versus 25 attempts across 10 tasks for Qwen2\.5\-14B\. This exposes a semantic capability floor before memory control becomes relevant\.

### 4\.4 Validating Relation Proposals

We first evaluate checker discrimination on a frozen five\-relation configuration shared by the main admission study; the later Top\-kkextension is evaluated under its own separately frozen legal/adversarial schedule in Section[4\.5](https://arxiv.org/html/2608.17007#S4.SS5)\. From one accepted record per relation, we construct a two\-sided suite\. The positive side varies legal VM chunk and staged\-output capacities, producing 60 valid configurations\. The mutation side changes target or source semantics, resource arithmetic, immutable\-input facts, the output gate, platform bindings, or source–target consistency, producing 500 distinct proposals\. Every mutation includes recomputed outer and nested hashes, so the decision depends on the reconstructed relation rather than a stale checksum\.

The checker independently reconstructs source semantics, input facts, the canonical target IR, and its live\-set bound\. It accepts all 60 legal configurations and rejects all 500 mutations\. Table[2](https://arxiv.org/html/2608.17007#S4.T2)decomposes these decisions by the property changed\.

Table 2:Checker decisions in the frozen five\-relation validation matrix; Top\-kkextension checks are reported separately in Section[4\.5](https://arxiv.org/html/2608.17007#S4.SS5)\. Legal configurations vary VM resources; mutations alter semantics, resources, or bindings after recomputing all affected hashes\.
### 4\.5 Extending the Relation Interface

The onboarding question is whether a relation withheld from the initial checked registry can enter through the documented interface without changing the core trust boundary\. The two extension studies examine complementary dimensions of interface reuse\. XLSX measures the code and integration needed to instantiate an existing bounded\-execution pattern\. Audit\-log Top\-kktests a new bounded\-state pattern after the generic relation core is frozen\. Together, these studies distinguish extension along two axes: adding a new library and source grammar for an existing execution pattern, and adding a new retained\-state pattern to the same relation contract\.

#### Existing execution pattern\.

After freezing the initial four\-relation code closure and its hashes, we selected XLSX from a preregistered 12\-family onboarding pool\. XLSX already belonged to the six\-family operator study but had not yet entered the checked registry\. Onboarding added an independently implemented 216\-nonblank\-line family checker, a 63\-line bounded\-VM operator, and a 197\-nonblank\-line untrusted builder\. Common trusted infrastructure gained 12 nonblank wiring lines: eight in checker routing, two in VM dispatch, and two in registry/import plumbing\. The capacity lease, runtime, unique\-selection algorithm, and staged\-publication logic were unchanged\. The substantive XLSX semantics and resource arithmetic reside in its checker, VM operator, and builder behind the common relation API\.Almostall onboarding code is relation\-specific; the common resource\-control and publication machinery is reused\.

The XLSX checker accepts all 12 legal window/output configurations, rejects all 64 rehashed semantic, resource, input\-binding, and contract mutations, and is the unique rule selected by automatic registry search\. On the frozen 100,000\-row workbook, three fresh 128 MiB cgroups all commit the same result: physical peaks are 72\.32–72\.43 MiB, below the independently recomputed 80\.21 MiB bound, with zero swap or memory\-limit events\. The added relation then passes through the existing checker, bounded VM, capacity lease, and staged\-publication path\. Appendix[F](https://arxiv.org/html/2608.17007#A6)records the separate protocol and accounting for these onboarding\-time canaries\.

Table 3:Relation\-interface extension accounting\. Code\-size counts are nonblank lines; shared changes connect each plugin to the common runtime\.
#### New bounded\-state pattern\.

We next froze the generic relation API and runtime before implementing an audit\-log Top\-kkplugin\. The submitted program materializes 750,000 strict JSONL events, globally sorts them by risk score with event\-ID tie breaking, and returns the first 64\. The canonical target scans once while retaining a size\-64 heap\. Seven generic\-core files remain byte\-identical\. Top\-kksemantics reside in the relation plugin; shared edits are limited to registration, source routing, bounded\-VM dispatch, and code\-freeze plumbing\.

The checker accepts 20/20 legal configurations and rejects every row in a 100\-instance adversarial schedule, which contains 76 distinct certificate hashes\. In three fresh 128 MiB cgroups, checked execution commits 3/3 exact results at 16\.21–16\.31 MiB, below an 80\.21 MiB reconstructed bound\. The eager global sort is OOM\-killed in all three 128 MiB runs, while the same source completes 3/3 times with exact output at 2 GiB and peaks at 772\.33–772\.38 MiB\. This relation adds an explicitO⁡\(k\)O\(k\)retained\-state obligation to the four patterns represented by the first five plugins\. Appendix[F](https://arxiv.org/html/2608.17007#A6)gives the frozen protocol and result identities\.

### 4\.6 Enforcing Admission and Publication

We rerun one fixed source/input bundle for each relation in the frozen five\-relation admission configuration, using three fresh 128 MiB cgroups per bundle\. Each online container mounts only frozen runtime code, generated source, immutable input, and its staged\-output directory; the expected\-output artifact remains host\-side\. All 15 executions pass their registered online postcondition and resource gate, then commit; all record zero swap, OOM, and memory\-limit events and satisfyPphys≤U≤BP\_\{\\mathrm\{phys\}\}\\leq U\\leq B\. Only after each committed container exits does the host open the exact evaluation oracle, obtaining 15/15 matches\. Median physical peaks are 14\.71, 14\.77, 14\.67, 14\.71, and 71\.84 MiB for CSV, FASTA, FCS, Zarr, and XLSX, respectively; the corresponding three\-repeat range widths are 0\.07, 0\.16, 0\.13, 0\.08, and 0\.04 MiB\. Checked bounds are 80\.14–80\.27 MiB\. The shared deployment manifest allocates a 64 MiB runtime reserve and a 16 MiB I/O reserve to every relation; these fixed reserves dominate the bounds of the first four relations\. The present manifest prioritizes safe admission; relation\-specific reserve profiles would produce tighter host reservations\. Median fresh\-cgroup certification and execution phase wall times are 0\.40–0\.46 and 0\.41–0\.43 s, respectively, for CSV, FASTA, FCS, and Zarr; the corresponding XLSX times are 41\.70 and 41\.59 s because both phases scan the workbook\. Certification is memory\-bounded but is not always cheaper than execution\. For XLSX, exact input\-fact reconstruction currently requires a second full workbook scan, so certification approximately doubles scan work\. This is a relation\-specific cost rather than a requirement of the shared runtime\.

Appendix[E](https://arxiv.org/html/2608.17007#A5)gives the per\-relation checked bounds and measured peak ranges for this same 15\-transaction matrix\. The certifier evaluates every relation registered in that frozen configuration and dispatches only a unique accepted match\.

### 4\.7 Capacity Safety and Failure Recovery

Capacity leasing is relation\-independent, so lease competition uses synthetic 24 MiB allocations while lifecycle faults exercise the registered CSV relation\. At 4, 8, and 16 contenders in fresh 256 MiB cgroups, across nine runs and 84 admission attempts, 36 acquire one of four 24 MiB leases and 48 are rejected before allocation\. Crashes are injected at six lifecycle boundaries in each run, yielding 54 fault cases\. Every pre\-publication crash exposes no output and releases the dead process’s lease after process\-identity validation using the Linux boot ID and/proc/<pid\>/statstart time, preventing PID reuse from reclaiming a live lease; all nine post\-publication outputs remain verifier\-valid\. No run records swap or a memory\-limit event\. This protocol isolates the lease and commit invariants from operator\-specific variation\.

Separately, we run the six\-family operator\-characterization lowerings in family\-balanced batches at 4, 8, and 16 concurrent jobs under one 2 GiB cgroup cap\. Figure[3](https://arxiv.org/html/2608.17007#S4.F3)reports completion and measured cgroup peak\. At concurrency 16, direct execution reaches the cap, completes 36/48 submissions, and yields 0\.258 verified results/s\. Bounded lowering uses a 629\.53 MiB median peak, completes 48/48, and yields 0\.462 verified results/s:1\.79×1\.79\\timesaggregate goodput\. Across the three repeats, bounded\-lowering goodput is 0\.446–0\.473 verified results/s and peak is 620\.87–647\.01 MiB; direct goodput is 0\.206–0\.290/s and all three runs reach 2048 MiB with OOM kills\. The implemented composition has a small peak but rejects or produces incorrect results\. Its smaller measured peak comes from executing only the 37\.5% of submissions for which it has a valid candidate, not superior verified capacity\. Its observed rate at concurrency 8 is likewise inflated by the shortened, mostly rejected batch\.

Figure 3:Completion and measured cgroup peak under one 2 GiB cgroup\. Panel \(a\) shows verifier\-passing completion; panel \(b\) shows the corresponding physical peak, with the dashed horizontal line marking the cap\. The hollow, hatched composition bars reach only 37\.5% completion at concurrency 8 and 16; its lower peak reflects less completed work rather than greater capacity\. The bounded\-lowering arm completes every submission while remaining below the cap\.An auxiliary uncapped semantic\-throughput run on a 112\-vCPU server separates memory failure from operator cost\. At concurrency 16, both direct and bounded lowering complete 48/48; bounded execution increases aggregate verified goodput from 0\.461 to 0\.543/s \(17\.9%\)\. The main benefit is capacity safety, accompanied by higher goodput in this control\. The matched latency study reports the same direction over all 24 tasks\.

### 4\.8 Integrating with Agent Runtimes

The harness workload contains 16 tasks spanning CSV, FASTA, FCS, and Zarr under a 24 MiB configuration, and separates its tool boundary from the agent’s final response\. The native Qwen harness produces 16/16 schema\-valid actions matching the frozen tasks\. All request bounded execution, all 48 capped repeats verify and commit, and all 16 final answers pass the declared key\-and\-type result schema\. This arm validates identity and dispatch integration; the external harness below exercises eager\-plan lowering\.

The external smolagents harness produces an actual framework tool call for all 16 tasks\. With no resource feedback, every call requests the eager access mode\. The registry lowers all 16 before dispatch; all 48 capped repeats verify and commit, and replayed framework actions match their checked actions for 16/16 tasks\. Fifteen tasks issue exactly one call\. Strict final JSON verification is 13/16: two responses contain the expected values but violate the required JSON format, and one repeats a checked Polars call three times before returning an incorrect answer\. The result shows that verified bounded tool execution composes with an external agent loop\. Tool\-execution validity and final\-response policy are measured separately: the three strict\-final failures arise after tool execution from formatting or repeated\-call behavior\.

The Mistral native replication generates matching bounded actions for all 16 tasks\. All 48 fresh\-cgroup transactions verify, commit, and reproduce the same tool result across repeats; 15/16 final answers match that result exactly\. The remaining Polars response changes a value while restating an already verified committed result\. Together with the Qwen native arm, this separates cross\-model integration at the checked tool boundary from each model’s subsequent answer fidelity\.

A deployment\-owned bounded tool surface provides the strongest architectural baseline\. Qwen emits matching typed actions for 16/16 native tasks and 15/16 smolagents tasks; Mistral emits matching actions for 15/16 native tasks\. Every admitted action then completes all three fresh 24 MiB runs: 48/48, 45/45, and 45/45, respectively\. The two planning failures are retained \(one Biopython call under Qwen/smolagents and one Zarr call under Mistral\)\. Across these four harness families, a deployment that owns the entire tool surface can obtain the same bounded physical execution with a simpler typed API\.SkillEffectserves code\-generating agents and legacy or heterogeneous interfaces that expose both eager and bounded implementations; in the unrestricted Qwen/smolagents path, all 16 eager requests match a registered source relation and are lowered before dispatch\.

## 5 Related Work

SkillEffectsits at the intersection of three lines of work: compiling Skills and agent traces into executable artifacts, transforming programs under resource constraints, and enforcing budgets at Agent\-runtime boundaries\. These lines determine what can run, how an implementation can be improved, and where its resource use is controlled\. We focus on the trust link between transformation and dispatch, where a concrete model\-generated program and immutable input meet the physical capacity of one tool invocation\.

#### Skill compilation and executable artifacts\.

SkillZip preserves procedural structure through section\-graph compression, dependency\-closed hydration, verifier reachability, and reversible expansion\[[28](https://arxiv.org/html/2608.17007#bib.bib3)\]; Control Under Compression studies the executable reliability of compressed tool\-control contexts\[[14](https://arxiv.org/html/2608.17007#bib.bib4)\]\. Skill compilers then make this structure operational in different ways\. SkVM decomposes Skill requirements into capabilities, profiles model–harness support, and solidifies or recompiles implementations for portable execution\[[5](https://arxiv.org/html/2608.17007#bib.bib1)\]\. SkCC introduces a typed Skill IR with compile\-time analysis\[[21](https://arxiv.org/html/2608.17007#bib.bib2)\]; SkillSmith emits minimal executable interfaces, policies, validation evidence, and fallback paths\[[31](https://arxiv.org/html/2608.17007#bib.bib8)\]; and SkillOpt uses trajectories and task verifiers to compile script\-oriented Skill artifacts\[[24](https://arxiv.org/html/2608.17007#bib.bib9)\]\. Related workflow compilers operate on plans and traces: EvoC2F applies dependency\- and effect\-aware orchestration and fault\-tolerance transformations\[[29](https://arxiv.org/html/2608.17007#bib.bib10)\]; TraceCompiler recovers argument provenance and abstains when recovered effects are underdetermined\[[11](https://arxiv.org/html/2608.17007#bib.bib11)\]; Auto extracts guarded executable artifacts from recorded behavior\[[15](https://arxiv.org/html/2608.17007#bib.bib19)\]; and Profile–Then–Reason combines explicit workflows, deterministic operators, trace verification, and bounded repair\[[12](https://arxiv.org/html/2608.17007#bib.bib20)\]\.

#### Checked transformation and resource reasoning\.

Dias dynamically applies precondition\-checked rewrites to concrete Pandas programs\[[2](https://arxiv.org/html/2608.17007#bib.bib16)\]; RuleScript provides a portable, verifiable language for query\-plan rewrites\[[22](https://arxiv.org/html/2608.17007#bib.bib17)\]; and RuleFlow turns LLM\-discovered Pandas optimizations into reusable compiler rules\[[27](https://arxiv.org/html/2608.17007#bib.bib12)\]\. Profile\-guided systems discover and repair resource problems at larger scope: MOA mines memory anti\-patterns and produces static checkers and codebase\-scale patches\[[17](https://arxiv.org/html/2608.17007#bib.bib13)\], PerfAgent iterates repository patches using profiler and verifier feedback\[[9](https://arxiv.org/html/2608.17007#bib.bib14)\], and SWE\-Pro benchmarks coding agents on repository\-level performance optimization, including parameterized peak\-memory tests\[[26](https://arxiv.org/html/2608.17007#bib.bib15)\]\. Classical work supplies complementary foundations: resource\-guided synthesis targets functional and symbolic resource specifications\[[16](https://arxiv.org/html/2608.17007#bib.bib22)\]; program logics and automatic analyses certify heap or whole\-program bounds\[[3](https://arxiv.org/html/2608.17007#bib.bib23),[4](https://arxiv.org/html/2608.17007#bib.bib24)\]; and Ngo et al\. study verification and synthesis of constant\-resource implementations for side\-channel security\[[20](https://arxiv.org/html/2608.17007#bib.bib25)\]\. JRes further shows that runtime resource control can expose feedback for execution\-plan adaptation\[[7](https://arxiv.org/html/2608.17007#bib.bib18)\]\.

#### Budgeted Agent execution\.

CATP\-LLM profiles tool costs and learns performance–cost\-aware plans\[[30](https://arxiv.org/html/2608.17007#bib.bib5)\]\. Agent Contracts formalizes task interfaces, multidimensional budgets, success criteria, and budget\-conserving delegation\[[32](https://arxiv.org/html/2608.17007#bib.bib21)\]\. Agent libOS integrates Agent processes, loaded Skills, capabilities, budget preflight, and subprocess enforcement\[[33](https://arxiv.org/html/2608.17007#bib.bib6)\], while AgentCgroup characterizes tool\-driven memory spikes and controls tool\-call cgroups with Agent intent and kernel mechanisms\[[34](https://arxiv.org/html/2608.17007#bib.bib7)\]\. Linux cgroup v2 provides the underlying memory accounting and enforcement substrate\[[13](https://arxiv.org/html/2608.17007#bib.bib29)\]\. Beyond memory, PORTICO mediates revocable resource and effect capabilities before side effects\[[25](https://arxiv.org/html/2608.17007#bib.bib26)\], whereas AgentDoS documents resource\-lifecycle vulnerabilities in widely used agents\[[18](https://arxiv.org/html/2608.17007#bib.bib27)\]\.

Together, prior work provides executable Skill representations, resource\-aware transformations, and runtime actuators\.SkillEffectconnects them at dispatch: it derives a candidate relation from the submitted program and immutable input, independently rebuilds and checks the bounded target and its live\-set bound, then couples execution to an atomic capacity lease and postcondition\-gated publication\.

## 6 Limitations and Future Work

The current implementation uses six relation plugins spanning five bounded\-execution patterns for deterministic, local, read\-only tool programs whose results can be checked before publication\.

#### Postconditions\.

Each registered relation requires a publication check for its declared result\. The current implementation uses declarative or input\-derived checks for deterministic outputs\. Richer Agent tasks will require postconditions based on schemas, invariants, relational constraints, or delayed validation\.

#### Relation and source\-form coverage\.

SkillEffectdoes not automatically verify arbitrary Python programs\. Each supported computation requires an audited relation over a closed source grammar\. The current implementation includes six relations spanning five bounded\-execution patterns\. Section[4\.5](https://arxiv.org/html/2608.17007#S4.SS5)shows that new relations can reuse the common checker/runtime path, but relation\-specific semantic auditing remains required\. Broader Skill corpora and coding\-Agent traces are needed to measure coverage beyond these registered relations\.

#### Platform calibration\.

Memory bounds are tied to a platform manifest covering the runtime, allocator, page size, and fixed reserves\. Porting to another software or hardware stack therefore requires fresh calibration and capped validation\. More granular reserve profiles could reduce the conservatism of the unified manifest\.

#### Stateful and remote effects\.

The current commit protocol stages local outputs\. Email, payment, and mutable service calls require idempotency, authorization, and a transaction or compensation protocol that couples the external effect to result publication\.

#### Evaluation breadth\.

The executable baselines in this study share a common harness\. End\-to\-end integration with released optimization systems, additional model families, and larger multistep workloads will test interoperability and comparative performance beyond the present evaluation\.

## 7 Conclusion

Resource\-sensitive Agent Skills package procedural knowledge for tool use\. Their physical consequences take shape when a model instantiates that guidance as a concrete program over a concrete input\. Our study identifies tool dispatch as the boundary where semantically valid plans can diverge sharply in memory demand and hard\-cap feasibility across heterogeneous data\-processing Skills\.

SkillEffectplaces a checked trust boundary at that point\. For a program generated from a routed Skill, a registered instance of the common five\-obligation relation contract identifies the admitted source computation, reconstructs its semantic parameters and immutable input facts, validates a bounded target configuration, and executes the checker\-rebuilt target in a bounded VM under capacity control\. Staged publication connects this physical decision to the declared task result, while the planner contributes proposals rather than execution authority\. The system’s generality therefore comes from reusing one trusted dispatch architecture across audited relation plugins, rather than from accepting arbitrary generated programs\.

Operator characterization across six families shows that bounded access modes preserve verified outputs and expand completion under external memory caps\. The registered plugins instantiate the same five\-obligation contract across streaming and row\-window reductions, metadata projection, chunked reduction, and bounded\-state Top\-kk\. Across these instances, the checker and bounded VM reject semantic and resource violations and complete isolated capped transactions\. The XLSX onboarding study exercises the same core mechanisms while measuring relation\-specific implementation cost\. System integration studies exercise Agent harnesses, lease competition, and failure recovery\. More broadly,SkillEffectturns registered resource\-sensitive relations for programs generated from routed Skills into enforceable physical contracts at tool dispatch—a systems foundation for memory\-bounded Agent execution\.

## References

- \[1\]Amazon Web Services\(2026\)Configure AWS Lambda function memory\.Note:AWS Lambda Developer Guide,[https://docs\.aws\.amazon\.com/lambda/latest/dg/configuration\-memory\.html](https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html)Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p2.1)\.
- \[2\]S\. Baziotis, D\. Kang, and C\. Mendis\(2024\)Dias: dynamic rewriting of pandas code\.Proceedings of the ACM on Management of Data2\(1\),pp\. 1–27\.External Links:[Document](https://dx.doi.org/10.1145/3639313)Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[3\]L\. Beringer, M\. Hofmann, A\. Momigliano, and O\. Shkaravska\(2005\)Automatic certification of heap consumption\.InLogic for Programming, Artificial Intelligence, and Reasoning,Lecture Notes in Computer Science, Vol\.3452,pp\. 347–362\.External Links:[Document](https://dx.doi.org/10.1007/978-3-540-32275-7%5F23)Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[4\]Q\. Carbonneaux, J\. Hoffmann, and Z\. Shao\(2015\)Compositional certified resource bounds\.InProceedings of the 36th ACM SIGPLAN Conference on Programming Language Design and Implementation,pp\. 467–478\.External Links:[Document](https://dx.doi.org/10.1145/2737924.2737955)Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[5\]L\. Chen, E\. Feng, Y\. Xia, and H\. Chen\(2026\)SkVM: revisiting language VM for skills across heterogenous LLMs and harnesses\.arXiv preprint arXiv:2604\.03088v3\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p1.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[6\]Cloudflare\(2026\)Workers platform limits\.Note:Cloudflare Developers Documentation,[https://developers\.cloudflare\.com/workers/platform/limits/](https://developers.cloudflare.com/workers/platform/limits/)Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p2.1)\.
- \[7\]G\. Czajkowski, T\. Mayr, P\. Seshadri, and T\. von Eicken\(1999\)Resource control for java database extensions\.In5th Conference on Object\-Oriented Technologies and Systems,San Diego, CA,pp\. 85–98\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[8\]Daytona\(2026\)Scaling agent sandboxes\.Note:Daytona Documentation,[https://www\.daytona\.io/docs/en/scale/](https://www.daytona.io/docs/en/scale/)Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p2.1)\.
- \[9\]R\. Deng, Y\. Liu, B\. Lipka, Y\. Ma, X\. Chen, T\. Kaler, and J\. Ganhotra\(2026\)PerfAgent: profiler\-guided iterative refinement for repository\-level code optimization\.arXiv preprint arXiv:2607\.19653\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[10\]E2B\(2026\)Pricing\.Note:E2B,[https://e2b\.dev/pricing](https://e2b.dev/pricing)Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p2.1)\.
- \[11\]S\. El Yadouni and G\. Li\(2026\)TraceCompiler: skill\-guided mining and compilation of LLM agent traces into mostly deterministic workflows\.arXiv preprint arXiv:2608\.02680\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[12\]P\. A\. F\. Enabe\(2026\)Profile–then–reason: bounded semantic complexity for tool\-augmented language agents\.arXiv preprint arXiv:2604\.04131\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[13\]T\. Heo\(2015\)Control group v2\.Note:[https://docs\.kernel\.org/admin\-guide/cgroup\-v2\.html](https://docs.kernel.org/admin-guide/cgroup-v2.html)Linux Kernel DocumentationCited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px3.p1.1)\.
- \[14\]Y\. Hou and Z\. Yang\(2026\)Control under compression: reliability frontiers for tool\-using agents\.arXiv preprint arXiv:2608\.01056\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[15\]J\. Jaber and O\. Jaber\(2026\)Auto: the AGI compiler\.arXiv preprint arXiv:2607\.04542\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[16\]T\. Knoth, D\. Wang, N\. Polikarpova, and J\. Hoffmann\(2019\)Resource\-guided program synthesis\.InProceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation,pp\. 253–268\.External Links:[Document](https://dx.doi.org/10.1145/3314221.3314602)Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[17\]J\. Liang, Y\. Shi, Z\. Yang, and C\. Qian\(2026\)MOA: a profiling\-guided LLM framework for memory\-optimization automation at codebase scale\.arXiv preprint arXiv:2606\.31368\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[18\]J\. Luo, J\. Dai, F\. Liu, S\. Peng, Y\. Shi, T\. Bu, G\. Hong, X\. Pan, and Y\. Zhang\(2026\)Autonomy comes with costs: detecting denial\-of\-service vulnerabilities caused by resource abusing in LLM\-based agents\.In35th USENIX Security Symposium,External Links:[Link](https://www.usenix.org/conference/usenixsecurity26/presentation/luo)Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px3.p1.1)\.
- \[19\]Modal Labs\(2026\)Configuring CPU, memory, and disk\.Note:Modal Documentation,[https://modal\.com/docs/guide/resources](https://modal.com/docs/guide/resources)Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p2.1)\.
- \[20\]V\. C\. Ngo, M\. Dehesa\-Azuara, M\. Fredrikson, and J\. Hoffmann\(2017\)Verifying and synthesizing constant\-resource implementations with types\.In2017 IEEE Symposium on Security and Privacy,pp\. 710–728\.External Links:[Document](https://dx.doi.org/10.1109/SP.2017.53)Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[21\]Y\. Ouyang, Y\. Xiao, Y\. Gu, and X\. Zhang\(2026\)SkCC: portable and secure skill compilation for cross\-framework LLM agents\.arXiv preprint arXiv:2605\.03353\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p1.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[22\]S\. Pan, S\. Wang, W\. Zheng, Z\. Zeng, V\. Sharma, and A\. Cheung\(2026\)An extensible and verifiable language for query rewrite rules\.arXiv preprint arXiv:2605\.05536\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[23\]Qwen A\. Yanget al\.\(2024\)Qwen2\.5 technical report\.arXiv preprint arXiv:2412\.15115\.Cited by:[Appendix A](https://arxiv.org/html/2608.17007#A1.SS0.SSS0.Px2.p1.1)\.
- \[24\]R\. Rao and V\. Kalluru\(2026\)SkillOpt: trajectory\-derived, verifier\-grounded compilation of LLM\-agent skills\.InWorkshop on Agent Skills at the ACM Conference on AI and Agentic Systems,External Links:[Link](https://openreview.net/forum?id=2ONrrPIFYi)Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[25\]I\. Santos\-Grueiro\(2026\)Lingering authority: revocable resource\-and\-effect capabilities for coding agents\.arXiv preprint arXiv:2606\.22504\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px3.p1.1)\.
- \[26\]E\. Sarıkayak, W\. Gu, H\. Ghonim, and C\. Chen\(2026\)Evaluating LLMs on real\-world software performance optimization\.arXiv preprint arXiv:2606\.25530\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[27\]A\. Singh, D\. Bharadwaj, S\. Baziotis, K\. Varadharajan, and C\. Mendis\(2026\)RuleFlow: generating reusable program optimizations with LLMs\.arXiv preprint arXiv:2602\.09051\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px2.p1.1)\.
- \[28\]X\. Tan, X\. Wang, Q\. Liu, X\. Xu, X\. Yuan, L\. Zhu, and W\. Zhang\(2026\)SkillZip: contract\-preserving graph compression for scalable agent skill libraries\.arXiv preprint arXiv:2608\.05604\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p1.1),[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[29\]L\. Wei, Q\. Liu, R\. Huang, X\. Peng, S\. Xie, L\. Lin, C\. Jiang, Y\. Xu, T\. Yang, J\. Liu, L\. Cai, Z\. Kang, and B\. Wang\(2026\)EvoC2F: compiling tool orchestration for efficient and evolvable LLM agents\.InProceedings of the 43rd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.306\.External Links:[Link](https://openreview.net/forum?id=ZSGB91kMOG)Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[30\]D\. Wu, J\. Wang, Y\. Meng, Y\. Zhang, L\. Sun, and Z\. Wang\(2025\)CATP\-LLM: empowering large language models for cost\-aware tool planning\.InProceedings of the IEEE/CVF International Conference on Computer Vision,pp\. 8699–8709\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px3.p1.1)\.
- \[31\]D\. Xu, Z\. Chen, Z\. Pan, J\. Guan, D\. Dong, J\. Li, and B\. Pu\(2026\)SkillSmith: compiling agent skills into boundary\-guided runtime interfaces\.arXiv preprint arXiv:2605\.15215\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px1.p1.1)\.
- \[32\]Q\. Ye and J\. Tan\(2026\)Agent contracts: a formal framework for resource\-bounded autonomous AI systems\.arXiv preprint arXiv:2601\.08815\.Cited by:[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px3.p1.1)\.
- \[33\]Y\. Zhang\(2026\)Agent libOS: a runtime substrate for capability\-controlled self\-evolving LLM agents\.arXiv preprint arXiv:2606\.03895\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px3.p1.1)\.
- \[34\]Y\. Zheng, J\. Fan, Q\. Fu, Y\. Yang, W\. Zhang, and A\. Quinn\(2026\)AgentCgroup: understanding and controlling OS resources of AI agents\.arXiv preprint arXiv:2602\.09345\.Cited by:[§1](https://arxiv.org/html/2608.17007#S1.p3.1),[§5](https://arxiv.org/html/2608.17007#S5.SS0.SSS0.Px3.p1.1)\.

## Appendix

## Appendix ADetailed Experimental Protocols

#### Cap\-feedback protocol\.

Qwen2\.5\-14B receives the exact family cap and input size on its first attempt\. After a failed physical run, it receives the previous code, process exit, cgroup peak and OOM events, stderr/stdout and parse status, and one binary verifier bit for at most two further attempts\. It never receives the expected result, a lowering, or an API hint; success stops future rounds\. Each first successful program is rerun three times in fresh cgroups\. These experiments use the development caps; the externally fixed cap sweep remains the independent cap\-sensitivity study\.

#### Natural plans\.

Qwen2\.5\-14B\-Instruct\-AWQ\[[23](https://arxiv.org/html/2608.17007#bib.bib28)\]receives the naturally compressed Skill and frozen task prompt\. Each of 24 tasks has three predeclared seeds, temperature 0\.2, and no verifier, memory, or lowering feedback during generation\. We select the first verifier\-valid plan in attempt order and only then inspect its resource effects\. Mistral\-7B receives the same tasks, compressed Skills, seeds, and feedback policy; its four verifier\-valid attempts form a disclosed source\-checker validation pool rather than an untouched test\.

#### Harness protocols\.

The native and smolagents 1\.26\.0 harnesses reuse 16 tasks across the four registered relations covered by this harness\. The native harness asks Qwen2\.5\-14B or Mistral\-7B for one typed action\. The smolagents harness retains its tool schemas, memory, call processing, and final\-answer loop; a transport\-only adapter converts the vLLM response into the framework’s tool\-call object\. Neither planner receives a cap, verifier result, or lowering feedback\. For the bounded\-only baseline, the schema removes the access\-mode choice and binds each tool identity directly to its bounded handler\. Only task\-matching actions enter three fresh 24 MiB runs; planning failures remain in the task denominator\.

#### Five\-relation admission and oracle isolation\.

The main physical\-admission study freezes a 23\-file online code closure, container image, five registered relation schemas, and one source/input bundle per relation\. CSV, FASTA, FCS, Zarr, and XLSX each run three times in fresh, swap\-disabled 128 MiB cgroups\. Each online container mounts only the frozen runtime code, generated source, immutable input, and staged\-output directory; the expected\-output artifact remains host\-side until the container exits\. The certifier and checker identify the unique matching relation, reconstruct input facts, and validate the target configuration and live set; the runtime executes only that target in the bounded VM, requires both the registered online postcondition and physical admission checks, and publishes through a no\-overwrite staged commit\. Only after the committed container exits does the host open the exact evaluation oracle\. Per\-cell records retain the checked bound, cgroup peak, swap and memory events, commit state, and post\-commit oracle result\.

#### Matched latency\.

At an external 2 GiB cap, all 24 tasks run as one excluded warmup pair followed by six measured adjacent AB/BA pairs\. Both arms use fresh cgroups and the same verifier\. The measurement is warm\-cache in\-container launch\-to\-exit time\. It excludes Docker create/start; the bounded arm includes concrete lowering, envelope checking, tool execution, verification, and staged commit\.

## Appendix BOperator Characterization

Table B\.1:Bounded and eager access forms in each evaluated family\.All 36 family–scale–mode cells pass their verifier in every repeat\. At the largest scale, Figure[B\.1](https://arxiv.org/html/2608.17007#A2.F1)shows that bounded implementations reduce fresh\-cgroup peaks by3\.753\.75–24\.25×24\.25\\times\(median8\.45×8\.45\\times\)\. The spread explains why access mode belongs in the resource contract: a single reserve based on input size is wasteful for metadata and streaming tasks but unsafe for eager arrays and workbooks\.

Figure B\.1:Largest\-input eager and bounded physical peaks\. Ratios are annotated at the eager bars; paired executions produce the same verified result\.
## Appendix CDevelopment\-Cap Prompting and Repair

Table[C\.1](https://arxiv.org/html/2608.17007#A3.T1)separates construction, semantic validity, and physical failure under the per\-family development caps\. These caps exercise mechanism behavior; the externally fixed cap sweep in Section[4\.2](https://arxiv.org/html/2608.17007#S4.SS2)provides the cross\-cap completion result\. Always pinning the resource clause yields a correct bounded program for 9/24 tasks, and ordinary retry for 4/24\. Thus the latency benefit of bounded operators does not imply that a prompt reliably constructs one\.

Table C\.1:Constructive outcomes at per\-family development caps in operator characterization\. “Passed” counts verifier\-passing runs; failures are reported as cap/verifier/abstention counts\.The profile gate and plan gate are reject\-only controls: each abstains on all 72 runs and therefore incurs no physical or verifier failure\. They quantify safe non\-construction as a separate control class\.

The cap\-feedback baseline completes 5/24 tasks after 67 total attempts: two in round one, one in round two, and two in round three\. All five selected programs then pass three fresh repeats\. The successes are three Biopython and two FlowIO tasks; AnnData, Polars, XLSX, and Zarr remain 0/4\. Physical feedback is therefore useful for a minority of calls but does not replace deterministic lowering in this matrix\.

## Appendix DFrontend, Scale Transfer, and Latency

On 20 held\-out positive Skills, the static frontend accepts 13 dispatchable contracts; effect\-kind and evidence are recovered for 14/20\. All five negative controls abstain\. The six\-family envelope is calibrated on four input scales and evaluated on a fifth\. None of six admission\-eligible bounded cells exceeds its bound; one eager estimate is ineligible for small\-cap dispatch\. Median and maximum reserve overhead among admitted cells are 44\.7% and 99\.3%\. Across 10,000 preflight iterations, AST capture plus envelope instantiation takes 0\.804 ms median and 1\.260 ms P95\.

All 144 measured latency pairs are valid\. The median bounded/direct ratio over 24 task\-level medians is 0\.811, and every task is below one \(range 0\.590–0\.958\)\. Median bounded preflight and checker phases are 2\.744 and 0\.839 ms; the operator dominates the measured pipeline\. Faster bounded operators do not make prompting a reliable enforcement mechanism: the always\-pin baseline constructs a verifier\-passing bounded program for only 9/24 tasks in Table[C\.1](https://arxiv.org/html/2608.17007#A3.T1)\. Table[D\.1](https://arxiv.org/html/2608.17007#A4.T1)reports family medians\.

Table D\.1:Matched warm\-cache in\-container process wall time at 2 GiB\. Each row reports the median time over four tasks, each measured with six AB/BA pairs\. Ratio is the median of the four per\-task ratios, not the ratio of the two time medians\.
## Appendix EFive\-Relation Physical Admission

Table[E\.1](https://arxiv.org/html/2608.17007#A5.T1)gives the per\-relation physical values behind the unified 15\-transaction study in Section[4\.6](https://arxiv.org/html/2608.17007#S4.SS6)\. Each row summarizes three fresh cgroups under the same 128 MiB cap and frozen five\-relation admission configuration\. Every run passes its online postcondition, commits before host\-side exact evaluation, records zero swap, OOM, and memory\-limit events, and satisfiesPphys≤U≤BP\_\{\\mathrm\{phys\}\}\\leq U\\leq B\.

Table E\.1:Per\-relation physical validation of the frozen five\-relation admission configuration\. Memory values are MiB over three fresh 128 MiB cgroups per relation; cert\./exec\. reports median capped phase wall times in seconds\.
## Appendix FRelation\-Extension Protocols

The XLSX onboarding study in Section[4\.5](https://arxiv.org/html/2608.17007#S4.SS5)uses a separately frozen code closure, mutation suite, workbook, and cgroup protocol\. These 64 onboarding\-time mutation canaries are separate from the five\-relation validation matrix in Section[4\.4](https://arxiv.org/html/2608.17007#S4.SS4), which regenerates 100 mutations per relation \(500 total\)\. The XLSX physical repeats are likewise separate from the uniform five\-relation admission matrix in Section[4\.6](https://arxiv.org/html/2608.17007#S4.SS6); the two frozen configurations yield the 72\.32–72\.43 MiB onboarding range and the 71\.84 MiB unified\-profile median, respectively\.

The Top\-kksemantic\-breadth protocol is frozen separately before plugin implementation\. It fixes a 750,000\-record, 124,455,560\-byte strict JSONL ledger,k=64k=64, the orderingrisk\_score DESC, event\_id ASC, a 128 MiB primary cap, and a 2 GiB eager\-validation cap\. The primary schedule uses three balanced eager/checked repeats; the 2 GiB control uses three eager repeats\. The evaluation output remains host\-side and is opened only after container exit\. The checker schedule contains 20 legal configurations and 100 adversarial rows \(76 distinct certificate hashes\)\. The generic\-core freeze, checker summary, and physical summary are separately hash\-bound; no Top\-kkresult is pooled into the five\-relation matrices above\.

Similar Articles

SkillOpt: Executive Strategy for Self-Evolving Agent Skills

Hugging Face Daily Papers

SkillOpt introduces a systematic text-space optimizer for agent skills that trains skills as external agent state with stable updates and zero deployment inference overhead, achieving superior performance across multiple benchmarks and execution environments.

Built a weird agent skill RegretCheck-X

Reddit r/AI_Agents

The post describes RegretCheck-X, an agent skill that targets one high-risk assumption for verification, tested in scenarios like cloud migrations and database upgrades.

SkillSmith: Compiling Agent Skills into Boundary-Guided Runtime Interfaces

arXiv cs.AI

SkillSmith is a boundary-first compiler-runtime framework that extracts fine-grained operational boundaries from LLM agent skills, enabling agents to dynamically access only relevant components, reducing solve-stage token usage by 57.44% and thinking iterations by 42.99% on the SkillsBench benchmark.

Not All Skills Help: Measuring and Repairing Agent Knowledge

arXiv cs.CL

This paper identifies that naive skill accumulation in LLM agents can cause performance regressions, as skills beneficial for some tasks hurt others. The authors propose Assay, a framework that measures per-skill causal contributions and applies per-task masking, achieving state-of-the-art results on AppWorld and τ-bench without weight updates.