WorksComputer Science
Neural Agent Compiler: Learning to Schedule Soft Dependencies
Abstract
Large language model agents accomplish complex tasks by coordinating multiple reasoning steps and tool operations, which form dependencies among their operations. Existing orchestration methods primarily consider hard dependencies that determine when an operation can legally begin, but overlook soft dependencies, i.e., information that is not required for execution but may improve an already executable operation. We identify soft-dependency scheduling as an important problem in agent execution. To this end, we introduce Neural Agent Compiler (NAC), a learned scheduler that predicts the task-quality and resource consequences of three execution modes and selects the highest-utility legal mode at a scheduling boundary. NAC represents the executable continuation, pending information event, and resource state in a shared memory, and uses a utility function to adapt the consequence predictions to different resource preferences. Across AppWorld, WebShop, and -bench, NAC achieves 276/417 AppWorld task completions, a 74.69 WebShop Task Score, and 59/100 -bench successes. Additional studies show that the learned scheduler reduces execution work, establishing soft-dependency scheduling as a promising solution for orchestrating tool-using agents.
Introduction
Large language model (LLM) agents increasingly accomplish complex tasks by coordinating multiple reasoning steps and tool operations [15, 13] (Yao et al. 2023; Zhang et al. 2025b). Such tasks naturally form executable programs, where operations consume intermediate results, produce new information, and depend on one another [15]. Efficient agent execution therefore requires not only determining what operations to perform, but also when to execute them [14] (Xiang et al. 2026; Winston et al. 2026; Zhang et al. 2025c; Zhang et al. 2025a).
Existing dependency-based execution frameworks such as LLMCompiler [15] primarily organize operations according to hard dependencies: prerequisites that must be satisfied before an operation can begin. However, satisfying these prerequisites does not necessarily make immediate execution optimal. An operation may already be executable while additional information, still being acquired, could substantially improve its outcome. We refer to such relationships as soft dependencies. Unlike hard dependencies, which determine whether an operation can execute, soft dependencies influence whether it should execute immediately or defer execution until more information becomes available.
Scheduling under soft dependencies is challenging because the available execution modes trade quality, latency, and revision work. Consider a travel-planning agent that has a route and travel dates but is still waiting for a hotel query that may reveal booking restrictions [10, 17] (Ye et al. 2026; Yu et al. 2026). It can act immediately with current evidence, wait for the query, or prepare a reversible itinerary while deferring commitment until the missing information arrives [2, 7] (Xu et al. 2026). None is uniformly best: the right choice depends on how likely the pending information is to change the downstream decision, how much work can be reused, and what each mode costs. Optimizing agent execution therefore requires reasoning about both the value of future information and the cost of acting without it [11, 16, 12] (Rajput and Vogelstein 2026; Yilmaz et al. 2026).
Our key insight is that this scheduling problem can be addressed by learning the consequences of alternative execution strategies without committing to a fixed execution policy. These consequences capture how a scheduling decision affects eventual task quality, latency, computation, and revision. The scheduler can then compare the expected utility of alternative execution strategies under the current state and resource constraints.
Based on this insight, we introduce Neural Agent Compiler (NAC), a lightweight learned compiler for scheduling soft dependencies in tool-using agents (Figure 1). NAC is built around three execution modes: immediate execution (ACT), which starts the continuation using currently available evidence; evidence-first execution (WAIT), which waits for the pending information; and reversible speculation (SPEC), which performs bounded preparatory work before committing externally visible effects. Given an executable continuation, a pending information event, and the available resource state, NAC constructs a typed representation of the execution boundary and predicts the task quality and resource consequences of each mode. A calibrated utility function then selects the highest-valued legal mode, and the resulting directive is passed to the executor. This design separates learned scheduling from task-specific tool execution while providing a common decision framework across environments. Extensive evaluation is conducted on various benchmarks to verify the effectiveness and efficiency of NAC. Our contributions are summarized as follows:
Figure 1. The same release decision acquires native meaning at each commit boundary. NAC selects among three legal ways to incorporate pending evidence into itinerary construction, product selection, and software-application execution; the panels show the corresponding information and commitment boundaries.
Soft-dependency-aware agent compilation. We formulate agent execution scheduling beyond hard prerequisites by introducing soft dependencies, which capture how pending information can improve operations that are already executable.
Learned consequence-based execution scheduling. We propose NAC, a lightweight agent compiler that predicts the quality and resource consequences of immediate execution, evidence-first execution, and reversible speculation, and translates these predictions into execution decisions.
Evaluation of adaptive execution. We evaluate the proposed framework across multiple agent environments and provide comparisons examining task quality, execution efficiency, preparation costs, and sensitivity to resource preferences.
Related Work
Compiling and organizing agent workflows. ReAct interleaves reasoning and actions, and LLM-Compiler schedules tool dependencies [15] (Yao et al. 2023). GPTSwarm and AFlow optimize agent structures and workflows, while ADAS and DyLAN explore automated system design and dynamic agent networks [13, 18] (Zhuge et al. 2024; Zhang et al. 2025b). LLM-as-Scheduler, MIRROR, and SwarmAgentic respectively study workflow routing, reflection, and population-based system construction [8] (Xiang et al. 2026; Zhang et al. 2025d). Plan-over-Graph and Agent JIT compilation focus on parallel or latency-aware scheduling, and ContextRender and AgentPrune reduce execution-context or communication overhead [14] (Zhang et al. 2025c; Winston et al. 2026; Zhang et al. 2025a).
Speculative agent execution. Speculative Actions and Speculative Interaction Agents overlap action drafting with tool execution [10] (Ye et al. 2026). TomasuLLM executes drafted actions in isolated sandboxes and validates their effects before committing them in trajectory order (Yu et al., 2026). LEAP learns action proposals from target-actor trajectories (Xu et al., 2026). Speculative Macro Commit, AOSpec, and cost-aware speculative execution extend this line to multi-action commit, action–observation co-speculation, and explicit resource trade-offs [17, 2, 7]. These works supply close precedents for early execution and validated commitment. NAC uses terminal quality and resource predictions to choose among immediate execution, waiting, and reversible preparation. Speculation is one available schedule, and the learned comparison estimates when its preparation is useful.
Learning the value of information. Expected information value quantifies whether new evidence improves downstream decisions [11]. Prior work operationalizes this by learning when to inspect external state [5, 6] (Zhang et al. 2026), balancing clarification benefits against budget constraints [16] (Yilmaz et al. 2026; Park et al. 2026; Nguyen-Hien et al. 2026; Rajput and Vogelstein 2026), or optimizing runtime resource accounting [12] (Ofengenden and Andriushchenko 2026). Extending this principle, NAC evaluates the value of waiting directly against execution and revision costs, drawing on incremental computation to preserve reusable intermediate work [9] (Mokhov et al. 2018).
Native task evaluation. WebShop (Yao et al., 2022) and AppWorld (Trivedi et al., 2024) expose constrained outcomes through purchase reward and application-state assertions. GAIA (Mialon et al., 2024) and Flex-TravelPlanner (Oh et al., 2025) broaden evaluation to general-assistant and flexible planning settings, while AppWorld-UL [3] and -bench [1] emphasize diverse user interaction and dual-control conversational environments.
Preliminaries
Problem Formulation
An agent program contains operations connected by the inputs and observations they consume. The runtime supplies a ready continuation and a designated information source; NAC chooses when to release that continuation relative to the information. This is the compiler’s learned scheduling boundary.
Let contain the request , remaining program , observed execution ledger , resource budget , and a public description of information event . Here denotes the encoded public event description, which can include a query’s arguments and expected result type. When the event returns observation , the continuation can use . We condition on a scheduling boundary supplied by the native interface. It identifies a ready continuation, a designated pending information event, the available resource state, and the legal execution modes. If several sources contribute to the event, their public description may be aggregated in ; the current controller does not independently select or order those sources, discover the full dependency graph, or jointly schedule arbitrary executable operations.
For each legal execution mode (ACT, WAIT, or SPEC), define the consequence vector
Here measures native task quality; the remaining coordinates describe delay, work, or revision consequences in the interface’s units. Observation masks identify the coordinates measured in each task family. Scheduling uses a linear utility,
The value of waiting is . It prices the information through the quality and work of the continuation it changes, including acquisition and delay. The speculative mode supplies a third comparison when early preparation remains useful after observation.
Execution Setting
Hard dependencies establish the prerequisites for a legal operation. Soft dependencies connect an executable operation to additional evidence that can change its continuation. A soft dependency is defined relative to this downstream use: the event may improve the selected work even though its initial operation is ready. The execution-mode set is . ACT starts the continuation from and permits overlap with information acquisition where the native interface supports it. WAIT releases the continuation after becomes available, serializing it behind that information. SPEC starts a bounded reversible prefix and holds its externally visible effect until the executor incorporates . The native interface defines the prefix, legal operations, and commit condition. Hard prerequisites constrain each operation within the selected continuation.
The executor supplies a legality mask . The neural core predicts all three consequence vectors from the same and compiles them into the directive
where is the utility computed from the predicted consequence vector , and is a fixed calibration offset. A positive offset for an early mode requires a larger predicted gain before departing from waiting. Utility prices express the desired quality–resource trade-off, and calibration sets the evidence required to change the reference schedule. The measured systems apply this learned decision once per task; the native executor carries out the resulting continuation.
Neural Agent Compiler
Overview. NAC compiles one native scheduling boundary into an execution directive. The native interface supplies a ready continuation, a designated pending information event, the public pre-result state, and the legal execution modes. The controller reads this state once, predicts the consequences of ACT, WAIT, and SPEC, and passes the selected mode to the native executor. The controller therefore ends at action selection: it does not acquire information, execute tools, or decide the full agent program.
Here is the typed memory, is the final action-query representation, and is the matrix of predicted consequence vectors. The four stages are typed memory, action-conditioned deliberation, consequence prediction, and calibrated release. Figure 2 summarizes this shared computation; Appendix § 8 gives the measured parameterizations, target maps, and native recipes.
Figure 2. Neural Agent Compiler at one scheduling boundary. The native interface supplies the ready continuation, designated information event, public state, and legal modes. Typed encoders form a shared memory; three action queries read it through a deliberation block; a shared readout predicts quality and resource consequences. Calibrated utility and legality produce the directive that the native executor applies.
Typed state and action-conditioned deliberation
The input interface supplies operation rows , information-event rows , a resource row , and validity masks. Operation rows describe available work and observed items; event rows describe the pending information boundary; the resource row describes constraints and consumed budget. At selection time the memory contains only public pre-result information.
Each type encoder maps its rows to width , and the learned type vector identifies its role. Validity masks remove padded rows while preserving the variable-size native inputs. This typed memory lets the same controller relate executable work, pending information, and resource state without giving the returned observation to the predictor.
Let contain three learned queries, one for each execution mode. They read the same memory and share the attention parameters while retaining their action identities, so the same pending event can support different predictions for acting, waiting, and reversible preparation. The controller uses one action-conditioned block:
Here is the validity mask. The block uses masked cross-attention to retrieve relevant memory rows, then combines each retrieved representation with its own action query through a feed-forward residual update and normalization. The action queries do not perform a separate self-attention step; their shared memory and shared parameters provide the common comparison basis while their learned identities preserve the three mode-specific views. The detailed projections and benchmark-specific parameterizations are given in Appendix § 8.§ 2. The final action representations are
This single forward pass returns one representation for each legal execution mode.
Consequence prediction and supervision
A shared readout maps every final action representation to the same five-coordinate consequence interface:
The first coordinate represents native task quality and the remaining coordinates represent delay, work, or revision consequences in the native units. The coordinates are a common output contract rather than five universal physical quantities: target maps, units, normalization, and observation masks are supplied by each native recipe. The controller predicts how a pending observation changes each execution mode, not the content of that observation itself. Decoding the predicted units makes the same consequence readout compatible with different resource prices in Eq. (2).
Training pairs one public pre-result state with the outcomes of its legal matched continuations. Let indicate that coordinate is observed for state and action . The shared consequence objective is
Missing coordinates do not contribute to the loss. Recipe-specific utility or action-supervision terms attach to this common output when their native targets are available; their coefficients, target construction, and optimization schedules are reported in Appendix A. The generative actor remains fixed while the controller is fitted, so the comparison isolates the release decision across matched continuations.
Calibrated release and native execution
At deployment, the controller decodes the predicted consequences, applies the utility and legality rules in Eq. (3), and returns one execution directive. TravelPlanner and AppWorld use zero release offsets. WebShop uses a held-out calibration set to select a WAIT reference margin, retaining WAIT unless the predicted departure advantage exceeds that margin or WAIT is illegal. These rules define the operating point without changing the learned consequence representation.
The native executor then implements the selected mode: ACT starts the continuation with current evidence, WAIT releases it after the designated information arrives, and SPEC performs a bounded reversible prefix before evidence-conditioned commitment. The executor owns information acquisition, hard prerequisites, budgets, permissions, prefix legality, and commitment; the controller supplies only the mode. Benchmark-specific input schemas, target units, branch recipes, and native scoring are given in Appendix A.
Experiments
Experimental Settings
1. Datasets and outcomes. We evaluate NAC on AppWorld, WebShop, and -bench, which together provide 1,017 native task IDs across three primary populations. The evaluation uses all 417 challenge tasks in AppWorld, all 500 official test tasks in WebShop, and a disjoint 100-task test population in -bench. AppWorld reports Task Goal Completion (TGC) and Scenario Goal Completion (SGC), where each of its 139 scenarios contains three tasks. WebShop reports the native purchase reward as a Task Score on a 0–100 scale. -bench reports native dialogue success over 20 airline, 40 retail, and 40 telecom tasks. Each task contributes its final native outcome, including failed completions.
2. Baselines and comparison protocol. Each main result compares NAC with external methods evaluated under their reported execution settings. AppWorld includes the released reactive, plan-and-execute, reflective, and function-call agents (Trivedi et al., 2024), as well as ReAct (Yao et al., 2023), CodeAct (Wang et al., 2024), and LLMCompiler ([15]). WebShop includes the released rule, imitation, and policy-gradient policies (Yao et al., 2022), together with LATS (Zhou et al., 2024). -bench includes native LLMAgent and ReAct evaluated on the same 100 test IDs ([1] (Yao et al. 2023)). Table 1, Table 2, and Table 3 report the complete native outcomes. Each comparison preserves the corresponding method’s continuation procedure, execution budget, and information access; Appendix § 9.§ 1 provides the executed baseline configurations. 3. Model and training settings. Each NAC instance uses typed memory, action-query reading, consequence prediction, and calibrated release, with one learned scheduling decision per task. The primary generative actor is Gemma 4 31B IT, and the second AppWorld comparison uses GPT-OSS-20B. The controller is fitted on 90 AppWorld training tasks and 6,000 WebShop training states. WebShop additionally uses a separate 500-state calibration population and five fitted seeds. The -bench controller is fitted on 178 training tasks and evaluated on the disjoint 100-task test population. Input construction, fitting, release semantics, and native scoring are specified in Appendix § 8; the native interfaces are described in Appendix § 11.
Table 1: Complete AppWorld comparisons with published agent methods. Each actor panel covers the same 417 challenge tasks and 139 scenarios, scored by native assertions. marks returned-usage lower bounds. Appendices § 9.§ 1 and § 11.§ 1 give execution budgets, full costs and paired statistics.
| Method | Gemma 4 31B IT TGC/417 | Gemma 4 31B IT SGC/139 | Gemma 4 31B IT Tokens (M) | GPT-OSS-20B TGC/417 | GPT-OSS-20B SGC/139 | GPT-OSS-20B Tokens (M) |
| ReAct | 191 | 48 | 64.596 | 55 | 3 | 109.503 |
| Plan-and-Execute | 50 | 4 | 30.388 | 27 | 1 | 153.653 |
| Full-Code-Reflexion | 97 | 20 | 13.706 | 36 | 8 | 14.035 |
| IPFunCall | 1 | 0 | 38.590 | 10 | 1 | 30.458 |
| CodeAct | 14 | 0 | 42.878 | 4 | 0 | 12.202 |
| LLMCompiler | 0 | 0 | 2.869 | 0 | 0 | 1.889 |
| NAC | 276 | 64 | 68.335 | 67 | 4 | 149.434 |
Table 1.
Table 2: WebShop performance on all 500 test tasks. NAC uses typed memory, action-query reading, consequence prediction, and calibrated release (Eq. (3)); its training-selected controller is reported. Tokens and calls describe selected deployment. BC/PG tokens count policy inputs and calls count forward passes; LATS and NAC count language-model input/output tokens and requests. LATS uses native search reward. Appendices § 8.§ 5 and § 9.§ 2 give execution and acquisition costs.
| Method | Score | Tokens (M) | Calls (k) |
| Rule | 45.29 | 0 | 0 |
| BC | 47.22 | 9.259 | 16.879 |
| PG-Transformer | 50.72 | 1.632 | 2.380 |
| PG-RNN | 51.26 | 0.681 | 1.500 |
| BC+PG | 49.65 | 3.238 | 5.035 |
| LATS | 77.98 | 1,076.394 | 222.822 |
| NAC | 74.69 | 0.222 | 0.377 |
Table 2.
Table 3: -bench on the same 100 held-out tasks. The population contains 20 airline, 40 retail and 40 telecom tasks. Native success counts retain failed trajectories. Each row gives its executed step allowance.
| Method | Successes | Rate (%) | Max. steps |
| LLMAgent | 41/100 | 41.0 | 30 |
| ReAct | 36/100 | 36.0 | 30 |
| NAC | 59/100 | 59.0 | 200 |
Table 3.
Main Results
1. AppWorld. On AppWorld, NAC substantially improves both task-level and scenario-level completion under the native execution interface (Table 1). With Gemma 4 31B IT, NAC completes 276 of 417 tasks and 64 of 139 scenarios, compared with 191 tasks and 48 scenarios for ReAct. The improvement remains under the independently fitted GPT-OSS-20B controller, where NAC achieves the highest task completion among the compared methods. These results show that scheduling when to use source evidence can improve end-to-end application outcomes, rather than only changing the internal execution trace. The consistent gains across two generative actors suggest that the benefit comes from the compiler’s release decision and its interaction with native execution. 2. WebShop. On WebShop, NAC reaches a Task Score of 74.69 on all 500 test tasks (Table 2). This score is close to the stronger search-based LATS baseline, while NAC uses substantially fewer selected-deployment tokens. The result shows that NAC can preserve high task quality without repeatedly expanding the search process at deployment time. Its consequence predictions allow the controller to choose when additional information or preparation is worth the associated execution work. Thus, NAC provides a more compact quality–resource operating point for native shopping tasks. 3. -bench. On -bench, NAC achieves the strongest native dialogue success among the compared systems on the same held-out test population (Table 3). The evaluation covers airline, retail, and telecom tasks, while the controller is fitted on a separate training population. This result indicates that the scheduling formulation extends beyond application-state updates and shopping actions to multi-step conversations with different native environments. More broadly, it suggests that the compiler can apply the same release principle across heterogeneous task domains when the executor provides a suitable scheduling boundary. The additional investment required to fit the consequence model and collect candidate continuations is reported separately from selected-deployment work (Appendix § 9.§ 2). Once the model is fitted, the deployed scheduler incurs only the work associated with the continuation it selects.
Ablation Study
At each scheduling boundary, NAC selects among ACT, WAIT, and SPEC; we compare this adaptive release with fixed-mode controls and a direct-utility controller without full consequence-coordinate supervision. In TravelPlanner, adaptive release retains the native completion rate while using less time than fixed speculation (Appendix § 10.§ 2). In WebShop, consequence-coordinate supervision improves utility over fixed SPEC and reduces selected native work (Appendix § 10.§ 2; Table 3 and Table 3). These controls show that the learned policy can choose a useful release time and that explicit consequence prediction supports efficient continuations.
Efficiency Study
This study measures native work after scheduling, the value of consequence-coordinate supervision, and response to resource prices. In WebShop, adaptive release reduces selected operations and continuation tokens relative to fixed SPEC, while consequence-coordinate fitting improves value prediction and selected work under the same fitted controllers (Appendix § 10.§ 2; Table 3 and Table 3). Acquisition and fitting costs are separated from recurring selected-deployment work in Appendix § 9.§ 2; the full price-response uncertainty family is retained in Appendix § 10.§ 4.
Generalization Across Execution Interfaces
We apply the same release decision to ScienceAgentBench, where the system can generate immediately, wait for a data profile, or prepare a reversible function skeleton. Adaptive release reduces generation and replaced-completion work relative to fixed SPEC (Appendix § 11.§ 3), showing that consequence-based scheduling transfers be-
yond WebShop.
Consequence-Coordinate Supervision Reduces Native Work
Using the same actor, task population, fitting seeds, and calibration procedure, consequence-coordinate supervision reduces selected time and native work relative to direct-utility supervision, while the same adaptive controller reduces selected work relative to fixed SPEC. Explicit quality and resource coordinates improve selected deployment even when the actor and calibration protocol are held fixed, because the adaptive rule prepares a prefix only when its predicted continuation benefit justifies that cost; acquisition and all-attempt costs remain in Appendix § 9.§ 2. Figure 3 summarizes these matched comparisons.
Figure 3. Matched WebShop work savings. Bars show control minus the full controller for the 500-task population and five retained fits. Labels retain the native endpoint units; the logarithmic axis is descriptive because time, native operations and continuation tokens have different scales.
Resource-Price Adaptation Changes Release Behavior
Holding consequence weights and calibration margins fixed, repricing the delay term shifts the controller toward ACT and lowers selected deployment time and native work. The action-share shift connects a resource preference to scheduling behavior and execution efficiency; changing the price vector changes the utility comparison without re-fitting. Figure 4 gives the operating points, while Figure 6 shows that the same consequence readout retains positive utility gains across the recorded price grid; complete uncertainty families remain in Appendix § 10.§ 4.
Figure 4. WebShop response to delay price. The two lines share the same delay-price axis; ACT choices use the left scale and selected deployment time uses the right scale. Points average the five retained fits over all 500 tasks.

Figure 6. One consequence readout, six delay prices. Utility gains over fixed SPEC use all 500 native WebShop tasks and 20 initializations. Each fit reselects actions from fixed predictions with its original calibration margin. Bars are joint empirical fit–task simultaneous 95% intervals over all 18 fixed-action–price contrasts. Both policies are valued at the displayed price.
Adaptive Release Reduces Scientific Program Preparation
At the program-generation boundary, adaptive release reduces model-generation and replaced-completion work relative to fixed SPEC across the ScienceAgentBench tasks and data-directory groups. ACT generates with current evidence,
WAIT uses the delivered profile, and SPEC prepares a reversible function skeleton before profile-conditioned completion; predicting these consequences lets one release rule choose preparation for the current task and transfers the mechanism beyond WebShop. Figure 5 reports the paired resource endpoints.
Figure 5. ScienceAgentBench program-generation work. Narrow bars compare adaptive and fixed SPEC generation on 100 tasks in 69 data-directory groups. Values average five fitting initializations; savings are fixed SPEC minus adaptive.
Conclusion
In this work, we bring soft dependencies into the scheduling of tool-using agents. Hard dependencies establish execution readiness; soft dependencies make the value of starting depend on evidence that can improve the continuation. NAC learns the quality and resource consequences of immediate execution, waiting, and reversible preparation, then compiles calibrated legal utility into a native execution directive. Complete application, shopping and held-out conversational populations establish the resulting task outcomes through external method comparisons; a second application actor adds an independently fitted comparison. Shared-state schedules, controlled memory reading, and consequence-supervision studies connect the neural core to prepared work, terminal completion, and resource-price response. Repeated fitting, distinct-input sensitivity, and grouped program-generation outcomes extend these observations across initializations, public states, and native execution interfaces. This formulation gives agent compilation a learned way to coordinate executable work with the information that makes it useful.
Limitations
The measured NAC instances make one learned scheduling decision per task at a designated soft dependency. The controller does not perform global dependency discovery or jointly schedule multiple pending sources and executable operations; those choices remain with the native interface or a higher-level planner. Repeated release boundaries require training trajectories that cover successive observations and commitments. Actor-specific fitting follows the native consequence distribution of the model executing those decisions; Appendix § 8 specifies each measured training population and recipe.
The native interfaces provide an executable prefix whose externally visible effects can be held until observation. Deployment to external services requires authorized state changes, a reliable commit boundary and the corresponding outcome feedback. Recorded client time follows the stated execution budgets and serving conditions; the resource tables retain selected-deployment and acquisition scopes.
Neural Compiler and Native Execution Recipes
Each NAC recipe starts from the native ready-state interface, builds typed memory, reads it with action queries, and maps predicted consequences to a calibrated legal execution directive. Input dimensions, normalization, targets and weights adapt those stages to the native environment. Fixed actor weights execute the matched branches used for controller fitting and the selected continuation at deployment.
Common notation
Table 4 links the compiler’s state, neural computation, and execution directive. Numeric dimensions and optimization settings are instantiated by the measured recipes below.
| Symbol | Meaning |
| User request, remaining agent program, observed execution ledger, and resource budget | |
| Information event, its public description, and its returned observation | |
| Visible state before and after the designated observation | |
| Execution modes, one mode, native legality mask, and selected directive | |
| Operation rows, information-event rows, and resource row | |
| Row counts and native input widths | |
| Memory width, attention-head count, head width, and feed-forward hidden width | |
| Type encoder, type vector, combined memory, and three learned action queries | |
| Attention output and the two residual action representations | |
| Memory validity mask, query/key normalization, and head scale | |
| Observed/predicted consequences, quality, and resource coordinate | |
| Mode utility, quality weight, resource price, and calibration offset | |
| Expected WAIT-minus-ACT utility at the scheduling boundary | |
| Observed-target mask, Huber transition, and consequence loss |
Table 4. Shared compiler notation. The same symbols describe every native interface and fitted instance.
Measured layers and parameter accounting
All three primary instances use , three learned queries, heads with , two residual updates, , and five output coordinates per action. Table 5 accounts for their stored parameters.
| Component | TravelPlanner | AppWorld | WebShop |
| Input widths | 57/24/51 | 35/22/6 | 768/768/9 |
| Three type encoders | 7,752 | 5,406 | 49,728 |
| Type vectors and action queries | 192 | 192 | 192 |
| Attention projections and scales | 4,224 | 4,228 | 4,132 |
| Residual/readout normalization | 128 | 128 | 128 |
| Feed-forward map | 4,192 | 4,192 | 4,192 |
| Linear consequence map | 165 | 165 | 165 |
| Stored auxiliary branch | 1,089 | 1,089 | 0 |
| Total stored parameters | 17,742 | 15,400 | 58,537 |
| Parameters in active prediction/loss path | 16,653 | 14,311 | 58,537 |
Table 5. Measured controller parameters. Input widths are operation/event/resource widths; WebShop uses the corresponding product/goal/statistic types. The fixed MPNet encoder is accounted for separately. The stored auxiliary branch in TravelPlanner and AppWorld has zero coefficient in both fitting and selection.
TravelPlanner and AppWorld type encoders apply input LayerNorm, an affine map to width 32, SiLU, and a second affine map. TravelPlanner uses scaled dot-product attention, with equal to the identity and in Eq. (6). AppWorld normalizes each query and key head to unit norm. Its four positive scales start at and use learned log-scales capped at 100. Both use separate residual LayerNorms, SiLU in the feed-forward map, and a linear quality readout with softplus cost readouts.
WebShop uses affine–GELU–LayerNorm type encoders and normalized queries and keys. Its Q/K/V projections are bias-free; the output projection is affine, and four learned positive scales start at one. The two residual updates share LayerNorm parameters. A further LayerNorm precedes the final linear five-coordinate map, so the two stored normalization modules contain 128 parameters. The output represents standardized consequences. This parameterization preserves the stage order in Eqs. (5)–(8). Controller dropout is zero in all three instances.
TravelPlanner internal study
TravelPlanner (Xie et al., 2024) supplies a internal study of scheduling inside a shared constraint-aware itinerary executor. All internal controls retain the same source acquisition, observed-catalog projection, construction checks, actor and native Final Pass scorer on 180 validation requests. The fixed ACT, WAIT and SPEC controls retain this execution framework with a constant release rule; the adaptive controller learns the release choice. Appendix § 10.§ 2 reports these framework controls together with their complete quality and resource outcomes, and Appendix § 10.§ 3 reports matched component interventions.
Typed memory. Operation rows represent city–tool support, observed lodging, dining and attraction items, and transport legs. Event rows describe pending catalog queries through their tool identity and public arguments. Resource fields describe the party, dates, budget, requested constraints and consumed work. Request-local city slots align cities across row types. The 57 operation coordinates cover type/tool, city and endpoints, observation counts, prices, occupancy, minimum stay, compatibility, relative dates, room and cuisine constraints, and transport legality. The 24 event coordinates describe tool identity, query order, city/endpoints, public matching information, relative date and legality. The 51 resource coordinates encode the request constraints, pending queries, observed items, and source calls, tokens and seconds.
Missing numeric fields carry a known-value bit. Nonnegative values use ; relative dates use . Monetary quantities use , consumed tokens use 10000, source seconds use 60, and absolute day-of-year uses 366; other counts use one. Missing and observed-zero fields map to and , respectively. Categorical constraints use explicit indicators.
Action-query reading and consequence learning. The layers in Appendix § 8.§ 2 produce three five-coordinate predictions. Fitting uses 27 public training states with all 81 ACT/WAIT/SPEC outcomes. The targets are , , and , where is native Final Pass, is deployment seconds and is model tokens. The final two coordinates are masked. All first-three targets are observed for this training collection. The loss sums the three coordinate-wise mean Huber losses with beta one. Full-batch Adam uses 200 updates, learning rate 0.003, and zero weight decay.
| Setting | TravelPlanner | AppWorld | WebShop |
| Training states | 27 | 90 | 6,000 |
| Optimizer | Adam | Adam | AdamW |
| Learning rate | 0.003 | 0.003 | 0.0008 |
| Weight decay | 0 | 0 | 0.01 |
| Batch | Full | Full | 256 |
| Training duration | 200 updates | 200 updates | 100 epochs |
| Huber transition | 1 | 1 | 0.25 |
| Calibration | Zero offsets | Zero offsets | Separate 500 states |
Table 6. Fitting settings of the selected compiler instances. The paragraphs below define the target units, objectives, native actions, and calibration rules.
Calibrated release. Utility is , with zero release offsets. The selected fit assigns 126 validation requests to ACT, 14 to WAIT and 40 to SPEC. The actor is google/gemma-4–31B-it, revision 439edf5652646a0d1bd8b46bfdc1d3645761a445. It receives public tools, observed catalog rows and construction feedback. ACT begins a draft with available facts; WAIT releases after the pending facts arrive; SPEC permits one draft while holding submission.
holding submission. Later requests incorporate the delivered facts. Each deployed task pays source acquisition, producer work and its selected continuation.
Itinerary construction and commitment. The executor normalizes admissible tool requests, checks the remaining budget, and lowers them to native calls. An observed-catalog projection keeps the proposed city order, transfer days, modes, lodging blocks and meal-slot cities fixed. It selects the cheapest compatible observed transfer and a room satisfying the block’s city, occupancy, minimum-stay and requested constraints. Meal allocation groups variants by restaurant identity and uses dynamic programming over meal count and a cuisine bitmask. Processing an identity group extends the previous states once, ensuring distinct restaurant identities. A second dynamic program combines city allocations to cover the required cuisines at minimum observed cost.
Public checks then assess budget, continuity, lodging, cuisines and transport compatibility. The actor can revise the itinerary structure using this feedback. A speculative first response remains behind the commit boundary; subsequent responses can use the producer output. At budget exhaustion the executor exports its last complete post-prefix candidate. The native Final Pass scorer evaluates all 180 official validation requests.
AppWorld
Typed memory. Three operation rows, one event row and one resource row encode the public instruction before API execution. Each 35-coordinate operation row contains a three-way row identity, nine instruction statistics and 23 cues. The cues cover nine applications and fourteen intent patterns; training-observed cues define the fixed mask. Statistics summarize words and applications, source-note and date references, exclusions, writes, destructive operations, exports and cross-application scope. Six resource coordinates encode normalized word/application counts, writes, destructive operations, question form and exports.
The event row joins six instruction-derived coordinates to a 16-dimensional semantic projection. A fixed sentence-transformers/all-mpnet-base-v2 encoder produces 768-dimensional instruction embeddings. The training mean and first 16 training principal components define the projection. Coordinates are divided by training standard deviations floored at and clipped to . The saved transformation applies to challenge tasks. Encoded rows have shapes , and 6 before the common width-32 memory.
Action-query reading and consequence learning. The AppWorld layers use normalized Q/K attention and separate residual norms as specified above. Let be task success, the fraction of native assertions passed, model milliseconds, API calls and model tokens. Targets and utility are
All 270 outcomes from 90 training tasks contribute. The loss is mean Smooth- over the first three coordinates, with beta one, plus twice cross-entropy over predicted utilities with the best observed action as target. Full-batch Adam uses 200 updates, learning rate 0.003, and zero weight decay. Training folds group the 30 scenarios; the selected final checkpoint fits all 90 tasks. The recorded numerical environment is Python 3.12 and PyTorch 2.11.0/CUDA 12.9.
Calibrated release. All three actions are legal at this initial decision. Inference uses zero release offsets and utility temperature one. ACT, WAIT, SPEC order resolves ties. The selected checkpoint assigns 116 tasks to ACT, 159 to WAIT and 142 to SPEC; its parameters and saved inputs reproduce all 417 choices. The fixed actor is the Gemma revision given above. It allows 100 model calls, 500 environment interactions, 1,024 output tokens per generation, and temperature zero.
API execution and commitment. ACT starts with the available evidence. WAIT incorporates a required source or business read before a dependent state change. SPEC prepares API-schema inspection and independent target reads, then incorporates the source result before committing the change. The runtime parses generated Python and observes actual API request history. A business read is an application GET outside authentication, supervisor and API-documentation routes. Instruction cues designate Simple Note content or current-date reads when required. WAIT and SPEC hold a business write until a business read and each designated source read appear in the history.
The common continuation instructions specify observation memory, completion answers, order identifiers, purchase budgets and API validation. The actor checks returned fields, record joins and output format during execution. Native assertions evaluate the final state. TGC counts successful tasks; SGC requires all three tasks in a scenario to succeed. The challenge population comprises 417 tasks and 139 scenarios.
WebShop
Typed memory. The public goal and up to 32 visible first-page product titles receive fixed 768-dimensional MPNet embeddings. Titles are case-folded; tokenization truncates at 96 tokens. Attention-mask mean pooling and normalization produce the vectors. A validity mask excludes missing products. Goal, product and scalar-statistic encoders supply the three types in the width-32 memory. The goal describes the information relevant to a prospective product lookup; the controller sees the available titles before that lookup’s result is released.
For goal vector , valid title vectors and similarities , the nine public statistics are the two largest similarities, mean, population standard deviation, minimum, top-two gap, product count divided by 32, maximum goal–title token Jaccard overlap, and minimum displayed price divided by 1000. A single product supplies both largest values. Lexical tokens are case-folded alphanumeric spans. The first displayed decimal supplies the price, with zero for unavailable values. Scalar centering and scaling use training moments.
Action-query reading and consequence learning. The measured WebShop layers in Appendix § 8.§ 2 predict native reward , user seconds , occupied seconds, option-model tokens and native operations . Training standardizes each coordinate over 6,000 states and all three actions; inference restores the units. The public-detail producer contributes operations, charged once per deployed task. Utility is
The loss is . Outcome regression averages the five coordinate losses, . Outcome and standardized-utility regression use Smooth- with beta 0.25. For standardized predicted utility ,
We use AdamW, learning rate , weight decay 0.01, batch size 256, 100 epochs and gradient clipping at one. The recorded fitting environment is Python 3.13, PyTorch 2.8.0/CUDA 12.8 and NumPy 2.3.2 on a B200.
Calibrated release. Each seed selects a common ACT/SPEC offset from by mean utility on a separate 500-state calibration population; WAIT has offset zero. The selected margins are 0.05, 0.02, 0.15, 0.02, 0.02. Strict threshold comparisons favor WAIT at equality and ACT on an ACT/SPEC tie. The 6,000 fitting states have distinct target products; calibration targets are disjoint from them. Evaluation uses official test indices 0–499. Retained parameters and normalizations reproduce all 2,500 seed–task choices.
Search, preparation and purchase. A common initial query extracts public goal keywords. The public-detail producer traverses at most five result pages, ranks visible candidates with the shared value function, and inspects detail/option pages for three distinct products. It selects the product with most goal-matched option groups, resolving ties by candidate value. All branches share these producer facts after release.
ACT ranks the first page, opens its selected product, chooses options and purchases. WAIT receives the producer result before navigating to its selected product. SPEC opens the best first-page candidate and prepares options while holding purchase. After release, it reuses a compatible option plan for the same product or returns to the prior search and selects the producer’s product. The Gemma option actor receives the goal, title, displayed price and indexed option groups; it uses temperature zero, a 512-token output cap and JSON selections. A shared lexical option check merges selected values before native clicks and purchase. The native purchase reward supplies Task Score.
Reference Systems and Resource Accounting
The resource records bind the selected native terminal to its actor, online information, executed budget, and complete task population. Selected-deployment work and all-attempt investment retain their recorded scopes.
Reference execution recipes
The primary reference systems use the same native populations and scorers as their corresponding NAC instances. AppWorld generative comparisons use the Gemma revision specified in Appendix § 8.§ 3.
WebShop’s released learned policies use their own policy networks; the local LATS search uses the Gemma actor.
AppWorld released agents. ReAct, Plan-and-Execute, Full-Code-Reflexion, IPFunCall and CodeAct use their released AppWorld implementations and native task assertions (Trivedi et al., 2024). ReAct and Plan-and-Execute permit 100 model calls and 500 environment interactions, with 400 output tokens per generation, temperature zero and seed 123. CodeAct permits 40 model calls and 40 environment interactions, with 2,048 output tokens. Full-Code-Reflexion uses 10 outer steps, five reflection retries and 4,096 output tokens. IPFunCall uses 15 steps and the same output cap. The latter two use seed 100 and three demonstrations from the 90-task training split.
LLMCompiler retains its author planner, graph parser, dependency substitution, task-fetching unit and joiner. Streaming planning permits one planning round, four concurrent generation slots, 100 model calls and 500 environment interactions. Planner, executor and joiner output caps are 8,192, 4,096 and 1,024. Each task’s first valid native terminal in invocation order supplies its measured outcome. Interrupted and failed physical attempts contribute to the associated resource scope.
WebShop references. The rule, behavior-cloning (BC), transformer and recurrent policy-gradient (PG), and BC+PG policies follow the benchmark release (Yao et al., 2022). Their resource fields count policy input tokens and model forward passes. LATS follows its language-agent tree search with native environment feedback (Zhou et al., 2024). Its search can observe native purchase reward. The release controller and its candidate/option procedure use public task, page and option information. The complete comparison preserves these information boundaries. Score is the mean native reward times 100 on all 500 official test indices.
Resource definitions and complete populations
A model-token count sums returned prompt and completion usage. A request count records physical generation requests; for the released BC/PG policies it records neural forward calls as labeled. Native operations measure environment actions. Client request seconds include transport, queueing and response service. Task seconds sum each recorded task interval, including concurrent intervals where applicable. These elapsed quantities retain their measured scopes; GPU occupancy would require separate device measurements.
Acquisition collects the outcomes used for fitting and calibration. Selected deployment charges one chosen continuation and its shared producer per task. All-attempt accounting adds interrupted and failed physical executions within the named campaign. A lower bound sums the observed work when coverage is incomplete. Native task failures remain in the quality denominator regardless of resource coverage.
TravelPlanner internal execution resources. The selected internal workflow covers all 180 requests and counts source, producer, compiler and selected-continuation work: 9,655,472 model tokens, 1,097 requests, 11,218.94 client request seconds and 10,333.28 task seconds. Worker elapsed time is 14,091.33 seconds including setup; request and task intervals can overlap. Table 16 gives the corresponding fixed-rule framework controls.
Table 16: Internal TravelPlanner framework and scheduling ablation on 180 requests. Each row shares the constraint-aware NAC itinerary executor, actor, upstream observations, construction procedure and native scorer. Fixed-rule controls retain the framework and prescribe one release mode; adaptive scheduling uses the learned controller.
| Framework / release rule | Pass/180 | Time (ks) | Tokens (M) |
| NAC executor + fixed ACT | 129 | 17.395 | 9.526 |
| NAC executor + fixed WAIT | 124 | 14.288 | 9.333 |
| NAC executor + fixed SPEC | 128 | 64.204 | |
| NAC executor + learned scheduling | 125 | 10.333 | 9.655 |
Table 16.
TravelPlanner label acquisition for 27 states and 81 continuations uses 4,356,380 model tokens, 360 requests, 624 physical tool queries and 15,465.32 client request seconds. Source and producer acquisition are charged once across the three branches. Source-grouped selection and final fitting take 38.33 seconds with 23.39 MiB peak allocated GPU memory; training-outcome scoring takes 13.73 seconds. Native scoring for the selected validation deployment takes 31.73 seconds separately from execution.
The AppWorld controller’s total covers 456 complete and interrupted executions, with 8,169 response events, six exceptions and two cancellations. Measured response elapsed time sums to 94,338.10 seconds. The complete LLMCompiler campaign additionally includes prerequisite and canary attempts; its client request time is 35,799.19 seconds. The quality panel reports CodeAct’s original 14 completions, with 42,877,586 selected-terminal tokens and 6,944 known-attempt calls. Its complete timed replication uses the same actor revision, generation settings, native scorer and 40-call execution budgets. Across all 417 tasks it records 13 completions, 420 physical attempts, 7,108 requests and 136,173.57 task seconds; client requests sum to 125,389.90 seconds. One timed-out request has unknown token usage, giving the reported token lower bound. Pairing every task ID in the complete timing cohort with the selected NAC deployment, NAC completes 276/417 tasks and all three tasks in 64/139 scenarios, giving gains of 63.07 TGC points and 46.04 SGC points over timed CodeAct. The joint simultaneous 95% intervals are [55.16, 70.98] and [35.86, 56.22], with Holm-adjusted and , respectively. These intervals retain one four-endpoint family containing TGC, SGC, all-attempt task time and physical request counts. Paired inference resamples whole scenarios for 50,000 draws (seed 20261008); quality tests use exact scenario sign flips, resource tests use 50,000 scenario sign flips (seed 20261009), and Holm spans all four tests. The contrasts describe the executed workflows under their reported budgets and serving conditions.
| System | TGC/417 | Tokens (M) | Requests | Task time (ks) |
| ReAct | 191 | 64.596301 | 8,668 | 127.164 |
| Plan-and-Execute | 50 | 30.387994 | 4,362 | 112.646 |
| Full-Code-Reflexion | 97 | 13.706327 | 1,548 | 78.542 |
| IPFunCall | 1 | 38.590123 | 5,959 | 93.066 |
| CodeAct (timed) | 13 | 7,108 | 136.174 | |
| LLMCompiler | 0 | 2.868727 | 2,252 | 33.843 |
| NAC | 276 | 8,177 | 110.651 |
Table 7. AppWorld resources associated with the complete Gemma comparisons. Each row binds native task completions and resources to the same campaign. Time is task-summed kiloseconds; CodeAct uses a complete timed replication. Counts include all physical attempts. Token lower bounds retain missing-response coverage.
The single-controller row corresponds to the selected WebShop controller evaluated on all 500 official test tasks in the main results. Its selected deployment records 218,579 prompt tokens, 3,373 completion tokens, 377 physical requests, 9,045 native operations including the shared producer, and 4,990.64 user seconds. The five-fit mean row summarizes the earlier five fitted controllers and retains its original timing scope.
Initial public-vector construction takes 42.74 seconds. Fitting and calibration of the five selected WebShop controllers take 102.07 seconds. The 20-initialization study in Appendix § 10.§ 5 comprises 80 fits across four methods; the 60 additional fits use the retained acquisition data and require 3,565.82 aggregate preparation-and-fitting seconds. The combined collection uses 8,846,702 model tokens and 17,222 physical requests, with complete returned usage. Mean selected deployment takes 3,693.67 user seconds across the 500 tasks, including the native operations and shared producer.
Per-fit preparation times, GPU memory peaks and selected calibration margins are retained in the recorded fitting accounting. The four original workflows, each covering five fits, retain their full reconstruction or control workflow times in the same accounting.
Per-fit preparation and memory.
The additional initialization runs give a concrete resource distribution for fitting the shared controller on cached inputs (Table 9). Each of four methods has 15 complete fits, using the retained 6,000 fitting, 500 calibration, and 500 test inputs. The full controller has 58,537 trainable parameters. Wall time covers preparation and fitting for each recorded workflow; CUDA memory is its peak allocated memory. Acquisition and selected-deployment resources are reported above. The four original five-fit workflows retain their separately recorded reconstruction scope.
Table 9: Additional WebShop initialization-fit resources: 15 fits per row, 60 in total. Wall times use cached inputs and are in seconds; peak allocated CUDA memory is in MiB. Each row reports the median, observed range, and largest memory peak.
| Controller | Median | Range | Peak |
| NAC | 80.33 | 38.62–92.26 | 636.89 |
| Uniform attention | 87.06 | 45.20–99.00 | 636.89 |
| Utility-only target | 44.03 | 25.61–60.24 | 636.89 |
| Pooled MLP | 40.53 | 23.25–47.15 | 628.25 |
Table 9.
For the released rule, BC, PG-Transformer, PG-RNN and BC+PG comparisons, task-summed inference times are 0.18, 3.26, 0.28, 0.16 and 0.51 kiloseconds, respectively. Their policy-input and forward-call counts are in Table 2. LATS selected deployment uses 1,076,393,717 tokens, 222,822 requests, 303,215 environment attempts and 2,688,689.25 task seconds. Across its wider 773-attempt record, the measured lower bounds are 1,916,871,437 tokens, 394,411 request starts and 3,807,260.76 task seconds; 25 compressed request streams have incomplete coverage. The selected-deployment comparison and the all-attempt investment therefore have explicitly different resource scopes.
Paired Inference and Controlled Comparisons
The controlled studies follow NAC from soft-dependency scheduling to memory reading, consequence supervision, and resource-price response. Every comparison retains its complete paired population, statistical family, native endpoint, and operating conditions.
Table 8: WebShop learning and recurring deployment resources. Collection covers all three branches. The five-fit mean and single selected controller each charge the shared producer once. Client seconds sum model requests; encoding seconds record the associated text encoding. Dashes mark timing fields outside the single-controller receipt.
| Scope | States | Tokens | Requests | Native steps | Client s | Encoding s |
| Training and calibration | 6,500 | 8,146,299 | 15,981 | 178,179 | 74,787.04 | 15,415.14 |
| Three-action test collection | 500 | 700,403 | 1,241 | 13,724 | 8,112.21 | 941.60 |
| Selected deployment (five-fit mean) | 500 | 216,928.2 | 373.8 | 9,096.8 | 2,539.87 | 725.22 |
| Selected deployment (single controller) | 500 | 221,952 | 377 | 9,045 | – | – |
Table 8.
Table 10: Completed CodeAct retest on AppWorld. The GPT-OSS-20B retest of CodeAct ((Wang et al., 2024)) covers all 417 challenge tasks and 139 scenarios, with same-response action decoding and native execution feedback. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Task failures remain in the denominator. Retained attempts record at least 12.202 million model tokens and 4,213 generation requests.
| Method | TGC/417 | SGC/139 | Rechecked |
| CodeAct | 4 | 0 | 417/417 |
Table 10.
Table 11: Completed IPFunCall retest on AppWorld. The GPT-OSS-20B retest of the released IPFunCall agent ((Trivedi et al., 2024)) covers all 417 challenge tasks and 139 scenarios. Public API selection and function calling retain the registered native execution limits. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Retained attempts record at least 30.458 million model tokens and 6,141 generation requests.
| Method | TGC/417 | SGC/139 | Rechecked |
| IPFunCall | 10 | 1 | 417/417 |
Table 11.
Complete native quality comparisons
All main task vectors are joined by exact native task ID. AppWorld scenario IDs are the task-ID prefix before its final underscore; each scenario
Table 12: Completed LLMCompiler retest on AppWorld. The GPT-OSS-20B retest instantiates the released planner, dependency execution and joiner stages ([15]) on all 417 challenge tasks and 139 scenarios. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Retained attempts record at least 65.414 million model tokens and 15,439 generation requests. Compatible retained histories preserve effective planner/executor text and author-parsed joiner decisions.
| Method | TGC/417 | SGC/139 | Rechecked |
| LLMCompiler | 0 | 0 | 417/417 |
Table 12.
Table 13: Completed Gemma IPFunCall retest on AppWorld. The Gemma-4-31B-IT retest of the released IPFunCall agent ((Trivedi et al., 2024)) covers all 417 challenge tasks and 139 scenarios. Public API selection and function calling retain the registered execution limits. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Retained attempts record at least 51.258 million model tokens.
| Method | TGC/417 | SGC/139 | Rechecked |
| IPFunCall | 7 | 0 | 417/417 |
Table 13.
contributes exactly three tasks. WebShop uses official indices 0–499.
The AppWorld analyses retain six reference comparisons per endpoint. For a contrast family with paired differences , we resample the same units jointly across all for 50,000 bootstrap draws, with seed 20261008. AppWorld TGC uses scenario sums divided by three; SGC uses each scenario’s all-three-complete indicator. Let be the observed mean and the bootstrap standard deviation. The 95th percentile of
supplies the critical value for simultaneous intervals. The simultaneous intervals preserve the complete original comparison family. Binary task contrasts use exact McNemar tests, equivalent to exact sign flips on the discordant tasks. AppWorld tests enumerate the conditional distribution of signed integer scenario differences by dynamic programming. Holm correction spans the six tests per endpoint. These retrospective intervals describe population-unit variation conditional on the measured systems and their selection history.
The five selected WebShop controllers have native Task Scores 73.8310, 74.0817, 73.6393, 73.6850 and 73.7467 on the same 500 tasks. Their mean is 73.7967. Task-paired inference conditions on these fitted policies, the native purchase scorer and the recorded execution recipes.
Fixed release with a shared continuation
TravelPlanner framework controls. TravelPlanner fixed controls reuse the selected policy’s pre-result state, upstream observations and downstream construction procedure. Each policy is scored on all 180 request IDs under the same constraint-aware itinerary executor. Fixed ACT is the immediate-release framework control: it retains catalog projection, budget and compatibility checks, and itinerary construction while applying ACT to every task. Fixed WAIT and SPEC retain the same framework with their corresponding constant release rule. Table 16 compares these controls with adaptive scheduling and reports complete quality and recorded deployment time.
Adaptive release completes 125/180 requests in 10,333.28 task-summed seconds. It saves 299.28 seconds per task relative to fixed SPEC, with paired 95% interval [261.46, 339.44]. One SPEC request lacks returned usage, so its token total is the known lower bound million.
Time savings over ACT, WAIT and SPEC are 39.23, 21.97 and 299.28 seconds per task, with pointwise 95% intervals [35.46, 43.11], [18.95, 25.10] and [261.46, 339.44]. The percentile bootstrap uses 20,000 task-paired draws and seed 20260927. The evaluations record different client service distributions: selected downstream requests have median 15.07 seconds, fixed ACT 21.00 seconds and fixed WAIT 17.43 seconds. The intervals characterize these elapsed-time measurements under the recorded serving conditions. The complete native pass counts and elapsed times in Table 16 characterize the shared execution framework at each release rule.
WebShop fixed-release controls. WebShop’s fixed controls share the public-detail producer, option actor, native purchase scorer and all 500 task IDs. The adaptive five-fit mean Task Score is 73.7967. The paired studies below quantify how state-conditioned selection changes utility, native operations, continuation tokens and recorded duration under that common execution interface.
Joint fitting and task variation for fixed speculative release. At the same selected WebShop operating point, the adaptive-minus-SPEC utility effect is , with joint simultaneous 95% interval [0.013514, 0.033892]; recorded time saving is 0.710762 seconds per task, with interval [0.220673, 1.200851]. All 500 native task IDs and five fits contribute. The fits share 6,000 training states, a separate 500-state calibration population, the original 100-epoch schedule and the calibration-selected release rule. Recorded task work includes the selected native continuation and one shared producer.
For these intervals, we independently resample the five fitting seeds and 500 task IDs, applying each draw’s indices jointly to every policy. We use 20,000 draws with generator seed 20261008. For each endpoint, the simultaneous critical value is the 95th percentile of the maximum absolute standardized centered bootstrap deviation across the complete three-contrast family against fixed ACT, WAIT and SPEC. The resulting intervals describe empirical fitting and task variation conditional on the retained native branches and fitting recipes. Two-sided whole-task sign flips use 50,000 draws, seed 20261009, a plus-one correction and Holm adjustment over the same three controls. Conditional on the retained five fits, the adjusted values for the utility and time contrasts against SPEC are and . This controlled comparison supports adaptive selection’s utility and preparation-cost advantage over always speculating.
Memory and supervision interventions
The claim-facing component evidence uses matched native-work endpoints with the shared actor, scorer, task population, fitting seeds and calibration procedure. Figure 3 summarizes the complete positive deployment-time and native-work effects. Consequence-coordinate fitting saves 0.20922 seconds and 0.0812 native operations per task relative to direct-utility supervision, with simultaneous intervals [0.00940, 0.40903] and [0.0112, 0.1512]. Relative to fixed speculative release, the same calibrated readout saves 0.71076 seconds, 0.9184 native operations and 141.0316 continuation tokens per task; all three intervals are positive. These matched endpoints connect the shared consequence predictor to the native continuation work selected by the legal utility rule. Complete population, seed, bootstrap, sign-flip and cost scopes are retained in the recorded inference scopes.
Table 14: AppWorld TGC differences on the complete population. Effects are NAC minus each reference in percentage points. Intervals cover all six contrasts; tests receive Holm correction.
| Reference | Successes | Gain (pp) | Simultaneous 95% CI | Holm |
| ReAct | 191/417 | 20.38 | [12.47, 28.30] | |
| Plan-and-Execute | 50/417 | 54.20 | [46.40, 61.99] | |
| Full-Code-Reflexion | 97/417 | 42.93 | [33.73, 52.12] | |
| IPFunCall | 1/417 | 65.95 | [58.28, 73.61] | |
| CodeAct | 14/417 | 62.83 | [55.09, 70.56] | |
| LLMCompiler | 0/417 | 66.19 | [58.50, 73.88] |
Table 14.
Table 15: AppWorld SGC differences on the complete population. Effects are NAC minus each reference in percentage points. Intervals cover all six contrasts; tests receive Holm correction.
| Reference | Successes | Gain (pp) | Simultaneous 95% CI | Holm |
| ReAct | 48/139 | 11.51 | [2.38, 20.64] | 0.0052 |
| Plan-and-Execute | 4/139 | 43.17 | [33.15, 53.18] | |
| Full-Code-Reflexion | 20/139 | 31.65 | [20.75, 42.56] | |
| IPFunCall | 0/139 | 46.04 | [35.97, 56.12] | |
| CodeAct | 0/139 | 46.04 | [35.97, 56.12] | |
| LLMCompiler | 0/139 | 46.04 | [35.97, 56.12] |
Table 15.
Table 17: Adaptive release improves utility and reduces selected work relative to fixed SPEC. All 500 WebShop tasks and five fitted controllers contribute at the original calibrated operating point. Each endpoint retains the complete three-fixed-release family, with joint seed–task simultaneous intervals and conditional Holm-adjusted tests. Utility gain is adaptive minus SPEC; time saving is SPEC minus adaptive in seconds per task.
| Endpoint | Effect | Simultaneous 95% CI |
| Utility gain | 0.023703 | [0.013514, 0.033892] |
| Time saving | 0.710762 | [0.220673, 1.200851] |
Table 17.
Consequence selection reduces native continuation work. The same calibrated consequence readout also reduces executor-level work. Figure 3 gives supported resource contrasts on all 500 WebShop tasks and five retained fits. The component comparison measures consequence-coordinate fitting together with each policy’s original calibration-selected release rule. Operation counts include the selected native continuation and one shared producer; token counts cover the selected continuation. Physical collection costs have the scope specified in Appendix § 9.§ 2. Each endpoint retains its complete three-component or three-fixed-action family under the joint seed–task procedure of Appendix § 10.§ 2. These measurements connect the existing duration effects to the native work selected by the controller.
Calibration and resource-price sensitivity
Table 18 shows the calibration-selected rule and its supported margin-0.02 sensitivity point at the retained weights. The complete original grid accompanies the experiment record. The five seed-specific calibration margins determine the main operating point. Applying a common alternative margin to all five fits is a retrospective sensitivity analysis.
| Margin | Calib. utility | Task Score | Test utility | Task seconds | ACT/WAIT/SPEC |
| Calibrated | 0.591809 | 73.7967 | 0.602515 | 3,693.67 | 72.4/420.8/6.8 |
| 0.02 | 0.589600 | 74.0962 | 0.607302 | 3,611.65 | 114.6/371.8/13.6 |
Table 18. Supported release-margin sensitivity at fixed WebShop weights. All test500 tasks contribute to every row. Counts and resources average five fitted policies; calibration utility uses the disjoint calibration500 population.
The original statistical family contains ten contrasts per endpoint: each of the five margins against both the calibrated policy and WAIT. The analysis averages fitted outcomes within task and uses 20,000 paired task-bootstrap and sign-flip draws, seed 20261006. The simultaneous critical values are 2.8049 for utility and 2.7963 for quality; Holm correction covers each ten-test family. At margin 0.02, utility exceeds the calibrated policy by 0.004788, interval [0.000806, 0.008769], and WAIT by 0.008881, interval [0.000267, 0.017496]. These retrospective alternatives retain their sensitivity role; the main result uses the original calibration rule.
Re-selecting actions at the same six prices uses fixed consequence predictions and each fit’s original calibration margin. On all 500 tasks, the five-fit mean ACT count rises from 72.4 to 214.6 between prices 0.01 and 0.04. At 0.04, the calibrated controller’s utility exceeds direct-utility supervision by 0.03363, with joint seed–task simultaneous 95% interval [0.00669, 0.06057]. Each interval retains all 18 mechanism–price contrasts. Joint intervals use 20,000 bootstrap draws resampling fitted seeds and native task IDs independently, conditional on the retained fits and outcomes.
Utility support across the full delay-price grid
Repricing the same consequence outputs and reselecting native actions gives a positive utility contrast against fixed speculative release at every recorded delay price (Table 19). The six-price study pairs all 500 tasks and five retained fits, with original calibration margins held fixed. Both policies are valued at the displayed price. Intervals retain the complete 18-contrast family of three fixed actions and six prices; 20,000 joint seed–task bootstrap draws and 50,000 whole-task sign flips use seeds 20261008 and 20261009. Holm correction covers all 18 tests. At price 0.04, utility also exceeds fixed WAIT by 0.036925, with joint simultaneous 95% interval [0.009049, 0.064801] and conditional Holm . The full grid supports the common readout’s utility advantage over fixed speculation across the recorded operating conditions.
| Delay price | Utility gain over fixed SPEC | Joint simultaneous 95% CI | Holm |
| 0 | 0.016275 | [0.008716, 0.023834] | |
| 0.0025 | 0.017808 | [0.009350, 0.026266] | |
| 0.005 | 0.019779 | [0.010459, 0.029099] | |
| 0.01 | 0.023703 | [0.011907, 0.035500] | |
| 0.02 | 0.035409 | [0.017520, 0.053298] | |
| 0.04 | 0.069937 | [0.034702, 0.105171] |
Table 19. Utility of reselected release versus fixed speculation across all six recorded prices. The same consequence predictions and original calibration margins select actions on all 500 WebShop tasks across five fits. The complete 18 fixed-action–price contrasts determine every interval and adjusted test.
At price 0.04, reselecting actions also improves utility by 0.024911 over the controller’s original-price actions valued at 0.04, with joint simultaneous 95% interval [0.006167, 0.043654] and conditional Holm . Its within-controller family retains all six recorded prices, with the same joint bootstrap and paired-test procedure. This comparison links the utility gain to the action response of the calibrated consequence readout.
The within-controller response also connects repricing to selected work. Table 4 holds the consequence predictions and each fit’s original calibration margin fixed. Increasing the delay price from 0.01 to 0.04 saves 0.620074 recorded seconds per task, with joint simultaneous 95% interval [0.201508, 1.038639]. ACT use rises by 28.44 percentage points, with interval [13.918, 42.962]; native operations fall by 0.1764 per task, with interval [0.073623, 0.279177]. Each endpoint retains all five alternative prices, 0, 0.0025, 0.005, 0.02, 0.04, against 0.01. The joint seed–task bootstrap uses 20,000 draws, seed 20261008; whole-task sign flips use 50,000 draws, seed 20261009, and Holm adjustment over the five-price family. For these three contrasts at 0.04, the conditional adjusted is . These measurements use all 500 native tasks, their recorded action branches and five fits.
The positive sensitivity rows in Table 20 are direct views of the complete registered price, margin, initialization and input-identity families. They preserve the shared consequence readout, native scorer, task pairing and declared price vector while showing the operating regions that support the release narrative.
| Study | Population | Positive contrast | Effect | Simultaneous 95% CI |
| Margin selection | WebShop test500 | margin 0.02 vs calibrated utility | +0.004788 | [0.000806, 0.008769] |
| Margin selection | WebShop test500 | margin 0.02 vs WAIT utility | +0.008881 | [0.000267, 0.017496] |
| Price response | WebShop test500 | reselected release vs fixed SPEC at | +0.069937 | [0.034702, 0.105171] |
| Price response | WebShop test500 | reselected release vs fixed WAIT at | +0.036925 | [0.009049, 0.064801] |
| Initialization | WebShop test500, 20 fits | full controller vs fixed SPEC utility | +0.022590 | [0.012794, 0.032386] |
| Distinct inputs | WebShop distinct495, 20 fits | full controller vs fixed SPEC utility | +0.031305 | [0.016349, 0.046261] |
Table 20. Positive sensitivity support retained for the unified release graph. Every row uses a complete native population and its registered paired uncertainty family. Effects are reported only for contrasts with a positive simultaneous interval under the declared operating point.
Fitting variation and public-input identity
The initialization study pairs each full-controller fit with representation and supervision controls and evaluates their consequences at the same six prices. Consequence-coordinate supervision supports price-conditioned action-value prediction across these fitting initializations. A fixed study combines the original five with 15 additional initializations per method (60 further fits), yielding 20 initializations per method and 80 fitted models in total. All fits use the same 6,000 training states, 500 calibration states and 100-epoch recipe in Appendix § 8.§ 5. On all 500 native tasks, the prediction endpoint averages absolute errors in the ACT–WAIT and SPEC–WAIT utility gaps. Raising the delay price from 0.01 to 0.02 increases this error by 0.017851 for the full controller and 0.019185 for utility-only supervision. The reduction is 0.001335, with joint seed–task simultaneous 95% interval [0.000130, 0.002540] and conditional Holm . The interval retains all 15 contrasts between the three component controls and five alternative prices.
The same 20-initialization study retains a positive utility contrast against fixed speculative release at all six recorded delay prices (Figure 6). At the original price 0.01, the gain is 0.022590, with joint simultaneous 95% interval [0.012794, 0.032386] and conditional Holm . Each fit retains its calibration-selected margin and reselects actions from its consequence predictions on the same native branches. The utility intervals preserve all 18 fixed-action–price contrasts. Both analyses use 20,000 independent seed–task bootstrap draws (seed 20261008), 50,000 whole-task sign flips (seed 20261009), and their complete Holm families.
These observations describe empirical initialization and task variation under the retained fitting and native-continuation recipes.
An input-identity sensitivity reconstruction joins the 6,000 training states and 500 calibration states against the official test inputs and identifies five exact public-input overlaps. Retaining the 495 distinct-input test tasks and the 20 fitted models per method preserves the consequence-supervision price effect: at delay price 0.02, the full controller reduces utility-gap error growth relative to utility-only supervision by 0.001307, with joint simultaneous 95% interval [0.000093, 0.002520] and conditional Holm . On the same population, full-minus-fixed-SPEC utility is 0.031305, with interval [0.016349, 0.046261] and conditional Holm .
For the selected TravelPlanner and AppWorld fits, multiplying all resource prices by changes the utility arithmetic at fixed predictions. TravelPlanner action counts are 129/13/38, 128/13/39, 126/14/40, 126/11/43 and 123/11/46; AppWorld counts are 116/159/142, 116/159/142, 116/159/142, 118/157/142 and 117/159/141. The original rule reproduces every selected choice. Throughout , 166/180 TravelPlanner choices and 413/417 AppWorld choices are stable. These counts measure decision sensitivity at fixed weights.
Complete public-state fitting support. An independently fitted instance of the common release graph supports native shopping quality on two complete populations (Table 29). The same frozen instance reaches 74.64 Task Score on the official 500 tasks and 75.76 on an independent 500-task population. Its official selected deployment uses 218,093 returned model tokens over 375 requests and 9,006 native operations, including the shared producer; recorded user time sums to 4,874.95 seconds. These measurements describe the recurring selected continuation. Acquisition and fitting retain their separate resource scopes.
Table 29: Native support for one independently fitted public-state instance. Each row covers all 500 tasks. Simultaneous 95% intervals resample task IDs for 20,000 draws, seed 20261011, with Bonferroni coverage over the two cohort means. They condition on the frozen controller, actor and native execution recipes.
| Cohort | Score | 95% CI | |
| Official | 500 | 74.64 | [71.64, 77.64] |
| Fresh | 500 | 75.76 | [72.74, 78.67] |
Table 29.
The input adapter represents the public goal, ACT-ready candidate and mean visible product with three 776-coordinate rows. Each row combines a fixed 768-dimensional text embedding with eight public role, candidate-value, lexical, numeric, price and position fields. Event and resource widths are six and three. The shared width-32, four-head QK-normalized action-query predictor retains its three queries and five native consequences. Five training-group folds select a 10-epoch full refit from 6,000 training states; a separate 500-state development population accompanies fitting. AdamW uses learning rate , weight decay 0.01, batch size 256 and gradient clipping at one. The loss combines normalized five-coordinate Huber regression, pairwise quality-difference Huber regression and soft pairwise utility fitting with weights 0.25, 0.50 and 0.25. Quality differences use scale 0.10, Huber beta 0.25 and contrast/tie weights 1/0.05; pairwise utility uses temperature 0.15. Deployment sets the delay price to zero, retains token and operation prices and , and subtracts a common 0.15 margin from ACT and SPEC. Both populations execute the frozen resulting action map under the native purchase scorer.
Native completion support under a completed actor-matched retest. The selected compiler retains strong end-to-end completion when paired with the completed Gemma IPFunCall retest. Table 21 joins the frozen compiler decisions to all 417 independently rechecked baseline terminal states.
| Endpoint | Compiler | IPFunCall | Effect (pp) | Simultaneous 95% CI | Holm |
| TGC | 276/417 | 7/417 | 64.51 | [54.92, 73.62] | 0.00028 |
| SGC | 64/139 | 0/139 | 46.04 | [33.81, 58.99] | 0.00028 |
Table 21. Complete native completion support under the Gemma IPFunCall retest. The same 417 tasks form 139 scenarios. Effects are compiler minus IPFunCall in percentage points. Simultaneous 95% intervals retain all fourteen contrasts from the six original references and this retest across TGC and SGC; 20,000 scenario bootstrap draws condition on frozen decisions. Two-sided scenario sign flips use 50,000 draws and Holm adjustment over the same family.
The comparison uses the same task IDs, Gemma revision and native assertions, with each method's recorded execution recipe. IPFunCall retains public API selection and function calling, 15 native agent steps and a 4,096-token generation cap; the compiler recipe is given in Appendix § 8.§ 4. The paired effects describe whole-system completion at those operating points. Scenario-level resampling keeps all three tasks together.
Native legality at an evidence-release boundary. The release interface preserves executable preconditions while scheduling optional evidence. We replay the actual WebShop visibility guard on the archived pre-action states of all 500 qualified native ACT trajectories. All 1,896 recorded step actions pass the guard. Removing each click’s required target from the same visible state causes rejection in all 1,396 interventions. On all 500 tasks, both ACT work and its first click begin before the optional producer result arrives (Table 24). These observations support the runtime distinction between an operation’s required visible binding and pending evidence at an already executable boundary. The measurements concern the native guard and recorded release timing; the replay uses archived states, with acquisition costs retained in the original collection ledger.
| Native endpoint | Observed count | Total checks or tasks |
| Recorded actions accepted by the visibility guard | 1,896 | 1,896 |
| Required-target removal triggers guard rejection | 1,396 | 1,396 |
| ACT work starts before optional evidence release | 500 | 500 |
| First native click starts before optional evidence release | 500 | 500 |
Table 24. Native legality and optional-evidence timing on the complete 500-task population. Each required-target intervention holds the recorded action and all other visible fields fixed and removes its bound target before evaluating the actual guard. Step and intervention counts aggregate the same 500 trajectories; timing endpoints use one paired observation per task.
Actor Dependence and Additional Native Interfaces
The additional native interfaces follow the same release graph through different commit operations. AppWorld measures actor-specific fitting on all 417 challenge tasks, tau2 measures 100 held out dialogues, and ScienceAgentBench connects a pending data profile to generation and revision work on 100 tasks. Each recipe binds the consequence prediction to the actor and native terminal that execute it.
AppWorld with GPT-OSS-20B
The actor-specific study retains the AppWorld typed memory, four-head action-query reading, residual updates, five consequences and calibrated release described in Appendix § 8.§ 4. It independently fits the same 15,400-parameter layout using outcomes from OpenAI GPT-OSS-20B, revision 6ce5e81ee83917806bbde320786a8fb61efebee, served with low reasoning effort. The training population contains 90 tasks in 30 scenarios and all 270 release outcomes.
| Submission | TGC | SGC |
| Original | 4/417 (1.0%) | 0/139 (0.0%) |
| Typed quantity | 5/417 (1.2%) | 0/139 (0.0%) |
Table 22. Native answer-submission check for CodeAct (Wang et al., 2024). Both rows cover the same 417 AppWorld tasks with GPT-OSS-20B and the official evaluator. Public quantity typing converts the generated answer “15 hours” to the numeric value 15 in one task. That task uses 10 model calls and 9 environment calls, including one additional supervisor submission, within the recorded 40/40 limits.
Five training-scenario folds compare 400 and 800 Adam updates at learning rate 0.003, with the same coordinate loss plus twice action cross-entropy. Cross-fit completion, final loss and then fewer updates determine selection. The candidates achieve 23 and 24 training cross-fit successes, selecting 800 updates. The final fit uses all 90 tasks.
Python 3.12 and PyTorch 2.11.0/CUDA 12.9 on a B200 supply the recorded fitting environment. The selected fitting stage takes 46.05 seconds and peaks at 25,165,824 reserved GPU bytes while reusing the collected native outcomes.
ReAct, Plan-and-Execute and NAC permit 100 model calls, 500 environment interactions and 1,024 output tokens per request, with temperature zero and seed 123. Their request allowance is 1,200 seconds and technical task allowance is one hour. Plan-and-Execute uses its numbered-step parser and an empty planner stop list. CodeAct permits 40 model calls, 40 environment interactions and 2,048 output tokens. Same-response Harmony execution content supplies the native code parser when required. Full-Code-Reflexion and IPFunCall retain their 10-step/five-retry and 15-step workflows, three training demonstrations and 4,096 output caps. They use a 32,768-input-token allowance, seed 100 and a 180-second transport allowance with up to three attempts.
The complete LLMCompiler retest permits up to five replanning rounds and four concurrent tool executions, 100 model calls, 500 environment interactions and 8,192/4,096/1,024 planner/executor/joiner caps.
Every task runs in an isolated native world. The first valid native terminal supplies quality. The selected controller completes 416 tasks in its original execution and one task with identical settings after transport recovery, yielding all 417 task outcomes. Resource totals retain all original and resumed attempts. Table 25 gives all six complete external comparisons and one selected controller.
| Method | TGC/417 | SGC/139 | Tokens (M) | Requests | Task time (ks) |
| ReAct | 55 | 3 | 17,231 | ||
| Plan-and-Execute | 27 | 1 | 21,930 | 79.03 | |
| Full-Code-Reflexion | 36 | 8 | 14.035 | 1,879 | 29.81 |
| IPFunCall | 10 | 1 | 6,141 | ||
| CodeAct | 4 | 0 | 4,213 | ||
| LLMCompiler | 0 | 0 | 15,439 | ||
| NAC | 67 | 4 | 20,431 | 45.50 |
Table 25. Complete AppWorld evaluation with GPT-OSS-20B. Task and scenario success counts use native assertions on 417 tasks and 139 scenarios. IPFunCall, CodeAct and LLMCompiler use independently rechecked complete retests (Appendix § 9); their all-attempt cost ledgers remain open, and marks recorded lower bounds.
Inference uses the whole-scenario procedure in Appendix § 10, with 50,000 bootstrap draws, seed 20261008, exact conditional scenario sign flips and Holm adjustment. The independently fitted controller completes 67/417 native tasks. Table 26 links the selected task-completion contrasts to this actor’s measured consequence distribution and the execution budgets above.
| Reference | Gain | Simultaneous 95% CI | Holm |
| Plan-and-Execute | 9.59 | [4.59, 14.60] | |
| Full-Code-Reflexion | 7.43 | [1.67, 13.19] | 0.0055 |
| IPFunCall | 14.63 | [8.84, 20.42] | |
| CodeAct | 16.07 | [10.55, 21.58] | |
| LLMCompiler | 16.07 | [10.55, 21.58] |
Table 26. Original-campaign task-completion contrasts for the independently fitted GPT-OSS controller. All 417 tasks form 139 paired scenarios. Effects are NAC minus original reference campaigns in percentage points. Simultaneous intervals and Holm tests preserve the original six-reference TGC family.
Conversational release
A conversational interface to -bench (Barres et al., [1]) uses the same stage order with eight-coordinate operation, event and resource rows. Four operation rows summarize public tool observations, errors, repeated results, message count relative to budget, exposed tools, user-text length, numeric mentions and domain/intent cues. An event row summarizes the initial missing observation; the resource row encodes allowances, domain and observed state. The width-32, four-head controller stores 14,074 parameters, of which 12,985 lie on the active prediction/loss path.
The three consequence branches use a shared native dialogue executor and Gemma actor. ACT admits the next native step with current tools. WAIT asks for consequential missing information or a device observation with an empty tool set. SPEC permits a read-like tool or reversible candidate plan. Subsequent steps use the common continuation and require the native confirmations for database changes. Utility is , with simulation time divided by 600, tokens by 40,000, repeated calls by eight and discarded proposal calls by four. The fitted instance uses 178 training tasks and a disjoint 100-task test population: 20 airline, 40 retail and 40 telecom tasks.
| Reference | Evaluation version | TGC/417 | Gain (pp) | Joint 95% CI | Holm |
| Plan-and-Execute | original campaign | 27 | 9.59 | [4.56, 14.63] | |
| Full-Code-Reflexion | original campaign | 36 | 7.43 | [1.66, 13.21] | 0.0055 |
| IPFunCall | complete native retest | 10 | 13.67 | [7.96, 19.37] | |
| CodeAct | complete native retest | 4 | 15.11 | [9.56, 20.66] | |
| LLMCompiler | complete native retest | 0 | 16.07 | [10.51, 21.62] |
Table 23. Scenario-paired task-completion support with complete GPT-OSS retests. The independently fitted shared controller completes 67/417 tasks. All contrasts use the same 417 task IDs in 139 scenarios. IPFunCall, CodeAct and LLMCompiler use the independently rescored complete retests in Appendix § 9; Plan-and-Execute and Full-Code-Reflexion retain their original campaigns. Each row retains its executed budget from Appendix § 11.§ 1. Joint 95% intervals use 50,000 scenario-cluster bootstrap draws (seed 20261008) and the maximum standardized deviation across all six TGC contrasts. Exact scenario sign-flip tests receive Holm correction across that six-reference family.
Table 3 compares the native LLMAgent and ReAct reference outcomes on these exact 100 held-out IDs, extracted from their complete 278-task evaluations. Both reference simulations allow 30 steps. The selected NAC simulation allows 200 steps. Database, communication and environment checks retain their native definitions; a local Gemma judge evaluates natural-language assertions. On all 100 held-out tasks the controller succeeds on 59, with domain-stratified empirical task-bootstrap 95% interval [50, 68]%. The test population uses 12,101,694 model tokens, 2,149 requests and 12,352.68 task seconds. This estimate conditions on the selected fit, domain mixture, actor and local judge.
Release before scientific program generation
A ScienceAgentBench interface (Chen et al., [4]) represents four public files, a pending data profile and resource limits through eight-coordinate rows. File rows describe log size, five format indicators, preview length and presence; the event describes instruction length and six task intents. The resource row describes file count, aggregate size and execution allowances. The width-32, four-head action-query controller again stores 14,074 parameters.
A public profiler supplies actual shapes, columns, types, categories and loading information after release. ACT requests a complete program before that profile arrives. WAIT requests the program with the delivered profile. SPEC prepares a function skeleton and then completes it with the profile before execution and output export. Each branch permits three program attempts with feedback, a 900-second program limit, one CPU thread and 8 GiB virtual memory.
Consequence targets are native quality, decision-to-program-end time divided by 900, branch tokens divided by 16,000, replaced completion tokens divided by 4,096, and zero rollback. Utility is . Each fit uses 600 AdamW updates, learning rate 0.002, weight decay 0.01 and clipping at one. Mean Smooth- coordinate regression is combined with twice cross-entropy to a temperature-0.1 soft utility target. Five fits hold out whole data-directory groups.
The complete original-protocol population contains 100 tasks across 69 data-directory groups. Adaptive release produces 28 native successes in the retained fit. Collection uses at least 2,759,990 tokens over 876 request starts, including the three branches, repairs and visual scoring. The paired branch population directly measures prepared and replaced program generation, linking the consequence coordinates to executed work.
State-conditioned release reduces program-generation work. The shared consequence comparison selects how much program generation to prepare before the data profile arrives. On all 100 original-protocol tasks across 69 data-directory groups, five fitting initializations reduce model generation by 2,659.14 tokens per task relative to fixed SPEC, with joint simultaneous 95% interval [1,579.67, 4,351.39]. Replaced completion generation falls by 602.46 tokens per task, with interval [419.12, 822.39] (Table 5). Both savings are positive in every retained initialization. These observations connect adaptive release to the amount of prepared and replaced program work.
The resource calculation joins physical request IDs for every ACT, WAIT and SPEC branch. Model tokens include all prompt and completion usage in the accepted branch; replaced completions count skeleton or program responses preceding the final program response. We jointly resample fitting initializations and whole data-directory groups for 20,000 draws (seed 20261008), dividing each resampled group sum by its sampled task count. Bonferroni quantiles provide simultaneous 95% intervals across the complete six-contrast family. Conditional two-sided group sign-flip tests use 50,000 draws (seed 20261009) and Holm adjustment across that family. The intervals describe generation work conditional on the retained native programs and fitting recipe.
A native information boundary. For a public Clintox request to predict toxicity and FDA approval and export drug identifiers with positive-label probabilities, the profile arrives 7.62 seconds after the release decision. ACT starts its program request at 0.05 seconds, WAIT at 7.70 seconds, and SPEC requests a skeleton at 0.06 seconds followed by a profile-informed completion at 105.91 seconds. All three isolated programs produce an artifact passing the native contract. The trace makes the shared distinction concrete: each release schedules a different amount of work before useful data information arrives.
Native SQL release support. The common consequence readout reduces selected model work at a native SQL boundary. Five frozen fits of the shared release graph select continuations on all 1,534 BIRD development tasks across 11 databases, with mean native execution accuracy 67.78%. Relative to fixed SPEC, they save 9.016 model-request seconds and 35.712 completion tokens per task; the simultaneous intervals in Table 28 are positive. The comparison joins each public-state forward decision to the recorded native ACT, WAIT and SPEC executions. Its resource endpoints cover the selected accepted branch. The shared producer and physical acquisition retain separate accounting.
Table 28: The shared release graph reduces selected native SQL work. All 1,534 tasks, 11 databases and five uniform-sampling fits contribute. Saving is fixed control minus adaptive per task. Joint seed–database simultaneous intervals preserve the full twelve-contrast family of two fitting recipes, three fixed actions and two resource endpoints. Exact sign flips enumerate all 2,048 database assignments; Holm correction spans all twelve tests. Every displayed Holm-adjusted . Endpoints cover selected accepted branch model work.
| Control | Endpoint | Saving/task | Joint 95% CI |
| ACT | Seconds | 5.804 | [3.109, 8.498] |
| ACT | Tokens | 37.436 | [25.637, 49.234] |
| SPEC | Seconds | 9.016 | [5.447, 12.585] |
| SPEC | Tokens | 35.712 | [24.010, 47.414] |
Table 28.
The SQL adapter ranks up to 64 public schema table/column rows by lexical overlap with the question and evidence. Each 16-coordinate row encodes its role, overlaps, public column type, primary/foreign keys and schema structure. Two 16-coordinate event rows describe the public question and evidence; eight resource coordinates encode allowances, training-derived producer quantiles, empty-lookup rate, observed queue size and schema length. The shared width-32, four-head QK-normalized middle retains three action queries, residual feed-forward updates, five consequence coordinates and legal utility selection, with 14,618 fitted parameters. Five database-held training folds select from 1,082 qualified training groups in the 6,601-task pool. The uniform-sampling recipe selects 800 updates and normalized latency/work prices 0.025/0.025, then refits five seeds on all qualified groups. AdamW uses learning rate 0.002, weight decay 0.01, 64 replacement-sampled groups per update and gradient clipping at one. Fitting combines normalized consequence Huber regression with twice the soft release cross-entropy at temperature 0.1. The evaluation recomputes the frozen choices from recorded pre-result inputs and uses native SQL row-set equality under SQLite 3.50.4. Joint inference uses 20,000 seed–database bootstrap draws with seed 20261011.
Mechanism Summary
Native Case Studies and Prompt Templates
These two AppWorld cases pair the selected NAC deployment with the ReAct run used in the main comparison. They show how the complete execution system combines a release choice with public observations and task-boundary checks. The actor is Google Gemma 4 31B IT; the recorded output caps are 1,024 tokens for NAC and 400 for ReAct. Case-specific observations describe complete-system behavior; the matched controls in Appendix § 12 measure the release mechanism.
Resolving a strict rating threshold
AppWorld task 07bb666_2. “Move all products with over 3.7 rating from my amazon wish list to cart.” The source quantities must be preserved. Product 943 lies near the threshold and its displayed rating requires a more precise public observation.

Figure ReAct.
The baseline filters the displayed product rating, then moves the selected IDs. Its final cart contains three qualifying IDs.
if product_info.get("rating", 0) > 3.7:
products_to_move.append(product_id)
final IDs: [435, 936, 2148]
Native readout. Task success = 0; 2/6 native assertions pass. Product 943 remains in the wish list.

Figure NAC: SPEC.
The selected release mode is bounded speculation. After schema and source reads, the executor reads product 943 extquotesingles public reviews, computes their mean, and includes its two units.
reviews = apis.amazon.show_product_reviews(
product_id=943, page_index=0, page_limit=20)
ratings = [r["rating"] for r in reviews]
exact_mean = sum(ratings) / len(ratings)
final IDs: [435, 936, 943, 2148]
Native readout. Task success = 1; 6/6 native assertions pass.
This case makes the information event tangible: a subsequent public read changes the set eligible for a write. The deployed precision adapter and release policy jointly support the observed sequence.
Reconciling state before purchase
AppWorld task 099174d_3. “Place an Amazon order as per my Amazon shopping list note in SimpleNote.” The note specifies seven products and quantities. The initial cart also contains five unrelated products.

Figure ReAct.
The baseline reads the note, adds the requested products and places an order using the existing cart. The resulting order contains twelve product IDs.
extra IDs in native order: [542, 1286, 1290, 2115, 2365]
Native readout. Task success = 0; 5/7 native assertions pass. Product-set and quantity-map checks fail.

Figure NAC: ACT.
The release controller selects ACT. The executor reads the cart, removes the five extra IDs, and continues through the observed payment-card results to place the requested order.
items_to_remove =
[542, 1286, 1290, 2115, 2365]
for product_id in items_to_remove:
apis.amazon.delete_product_from_cart(
access_token=amazon_token,
product_id=product_id)
Native readout. Task success = 1; 7/7 native assertions pass.
The cross-application note defines the target product map, and the cart read establishes the state that must be changed. ACT begins ready work within this executor; later observed dependencies and task checks determine the eventual purchase. Together, the two cases illustrate preparation for a later information event and immediate work followed by state reconciliation.
Table 27: Mechanism evidence for neural agent compilation. Each row links a controlled comparison to its measured endpoint. Population entries give native tasks and fitting initializations. Intervals are 95% simultaneous intervals from the corresponding complete comparison family. ScienceAgentBench pairs 69 data-directory groups. Full native comparisons and operating conditions appear in Appendices § 10.§ 2–§ 10.§ 5 and D.3.
| Stage | Population / fits | Comparison and endpoint | Effect [95% interval] |
| Native work | WebShop 500 / 5 | Fixed SPEC; operations saved per task | 0.9184 [0.7784, 1.0584] |
| Consequence fitting | WebShop 500 / 5 | Direct utility; operations saved per task | 0.0812 [0.0112, 0.1512] |
| Repricing | WebShop 500 / 5 | Delay price 0.01 → 0.04; seconds saved per task | 0.620 [0.202, 1.039] |
| Value prediction | WebShop 500 / 20 | Direct utility; reduction in gap-error growth, | 1.335 [0.130, 2.540] |
| Preparation | ScienceAgentBench 100 / 5 | Fixed SPEC; model tokens saved per task | 2,659.14 [1,579.67, 4,351.39] |
Table 27.
Prompt Templates and Message Assembly
Templates below retain their implemented wording. Braced fields denote values supplied by the recorded task or public history. The following blocks specify the message assembly and expected outputs. Historical method identifiers inside quoted templates retain the execution version’s wording.
AppWorld common actor
The complete common ReAct template includes its original demonstrations, schema placeholders and task fields. input_str is the trusted task instruction; main_user supplies public supervisor fields. Public API documentation and past interactions populate the template's remaining placeholders.
Common AppWorld ReAct template
Role: role-delimited template.
USER:
I am your supervisor and you are a super intelligent AI Assistant whose job is to achieve my day-to-day tasks completely autonomously.
To do this, you will need to interact with app/s (e.g., spotify, venmo etc) using their associated APIs on my behalf. For this you will undertake a multi-step conversation using a python REPL environment. That is, you will write the python code and the environment will execute it and show you the result, based on which, you will write python code for the next step and so on, until you’ve achieved the goal. This environment will let you interact with app/s using their associated APIs on my behalf.
Here are three key APIs that you need to know to get more information
To get a list of apps that are available to you.
““python print(apis.api_docs.show_app_descriptions()) ““
To get the list of apis under any app listed above, e.g. spotify
““python print(apis.api_docs.show_api_descriptions(app_name=’spotify’)) ““
To get the specification of a particular api, e.g. spotify app’s login api
““python print(apis.api_docs.show_api_doc(app_name=’spotify’, api_name=’login’)) ““
Each code execution will produce an output that you can use in subsequent calls. Using these APIs, you can now generate code, that I will execute, to solve the task. Let’s start with the task
My name is: {{ main_user.first_name }} {{ main_user.last_name }}. My personal email is {{ main_user.email }} and phone number is {{ main_user.phone_number }}. Task: How many playlists do I have in Spotify?
ASSISTANT:
Okay. Lets first find which APIs are available to use in Spotify. Code:
““python print(apis.api_docs.show_api_descriptions(app_name=’spotify’)) ““
USER:
Output:
““ [ ... ”login : Login to your account.”, ”logout : Logout from your account.”, ] ““
ASSISTANT:
Okay. Looks like I can use the ‘login’ api. Lets find its specifications.
Code:
““python @page 28/34 starts_mid=0 ends_mid=1 ““python
print(apis.api_docs.show_api_doc(app_name=’spotify’, api_name=’login’))
USER: Output:
{
"app_name": "spotify",
"api_name": "login",
"path": "/auth/token",
"method": "POST",
"description": "Login to your account.",
"parameters": [
{
"name": "username",
"type": "string",
"required": true,
"description": "Your account email.",
"default": null,
"constraints": []
},
{
"name": "password",
"type": "string",
"required": true,
"description": "Your account password.",
"default": null,
"constraints": []
}
],
"response_schemas": {
"success": {
"token_type": "string",
"access_token": "string"
},
"failure": {
"message": "string"
}
}
}
ASSISTANT: I need the supervisor’s username and password. Lets see if any app can help me get that.
Code:
print(apis.api_docs.show_app_descriptions())
USER: Output:
{{ app_descriptions }}
ASSISTANT: Looks like the supervisor app could help me with that.
Code:
print(apis.api_docs.show_api_descriptions(app_name=’supervisor’))
USER: Output:
[
...
“show_account_passwords : Show your supervisor’s account passwords.”
...
]
ASSISTANT: I can use ‘show_account_passwords‘ to get the passwords. So I will call that and save it in a variable for future reference.
Code:
passwords=apis.supervisor.show_account_passwords()
print(passwords)
USER: Output:
[
{
"account_name": "spotify",
"password": "dummy_spotify_pass"
},
{
"account_name": "file_system",
"password": "dummy_fs_pass"
}
]
ASSISTANT: So the Spotify password is an entry in the ‘passwords‘ list with the account_name=spotify. I can use it to login now with the provided email address: {{ main_user.email }}.
Code:
spotify_password = [account_password["account_name"] == "spotify" for account_password in passwords][0]["password"]
login_result = apis.spotify.login(username=’{{ main_user.email }}’, password=spotify_password)
print(login_result)
USER: Output:
{
"token_type": "Bearer",
"access_token": "fake_access_token"
}
ASSISTANT: First, let’s check the available APIs for the Spotify app.
Code:
print(apis.api_docs.show_api_descriptions(app_name=’spotify’))
USER: Output:
[
...
{
"name": "show_playlist_library",
"description": "Get a list of playlists in the user’s playlist library.", }, { "name": "show_playlist", "description": "Get detailed information about a specific playlist. You can view your own playlists or others’ playlists if they are public." }, ... ] “
ASSISTANT: The ‘show_playlist_library‘ API seems to be the one we need. Let’s check its specifications. Code:
print(apis.api_docs.show_api_doc(app_name=’spotify’, api_name=’show_playlist_library’))
USER: Output: “ { "app_name": "spotify", "api_name": "show_playlist_library", "path": "/private_playlists", "method": "GET", "description": "Get a list of playlists in the user’s playlist library.", "parameters": [ { "name": "access_token", "type": "string", "required": true, "description": "Access token obtained from spotify app login.", "default": null, "constraints": [] }, { "name": "page_index", "type": "integer", "required": false, "description": "The index of the page to retrieve.", "default": 0, "constraints": [ "value >= 0.0" ] }, { "name": "page_limit", "type": "integer", "required": false, "description": "The maximum number of results to return per page.", "default": 5, "constraints": [ "value >= 1.0, <= 20.0" ] }, { "name": "is_public", "type": "boolean", "required": false, "description": "Whether to show public playlists or private playlists.", "default": null, "constraints": [] } ], "response_schema": [ { "title": "string", "created_at": "2019-01-01T00:00:00", "is_public": true, "rating": 0.0, "like_count": 1, "owner_email": "[email protected]", "playlist_id": 1, "song_ids": [ 1 ] } ] } “
ASSISTANT: I need to page through all the playlists to get the list of playlists and save it in ‘playlists‘. Code:
page_index = 0
playlists = []
while page_index < 10:
playlist_page = apis.spotify.show_playlist_library(access_token=spotify_access_token, page_index=page_index)
if playlist_page:
playlists.extend(playlist_page)
page_index += 1
else:
break
num_playlists = len(playlists)
print(num_playlists)
USER: Output:
23 “
ASSISTANT: Now that the task is completed, I can call apis.supervisor.complete_task(). Since this task has an answer to be returned, I will pass that as an argument. Code:
apis.supervisor.complete_task(answer=num_playlists)
USER: Output: Marked the active task complete.
USER: Key instructions: (1) Make sure to end code blocks with “‘ followed by a newline(\n). (2) Remember you can use the variables in your code in subsequent code blocks.
(3) Remember that the email addresses, access tokens and variables (e.g. spotify_password) in the example above are not valid anymore.
(4) You can use the "supervisor" app to get information about my accounts and use the "phone" app to get information about friends and family.
(5) Always look at API specifications (using apis.api_docs.show_api_doc) before calling an API.
(6) Write small chunks of code and only one chunk of code in every step. Make sure everything is working correctly before making any irreversible change.
(7) Many APIs return items in "pages". Make sure to run through all the pages by looping over page_index.
(8) Once you have completed the task, make sure to call apis.supervisor.complete_task(). If the task asked for some information, return it as the answer argument, i.e. call apis.supervisor.complete_task(answer=<answer>). Many tasks do not require an answer, so in those cases, just call apis.supervisor.complete_task() i.e. do not pass any argument.
USER: Using these APIs, now generate code to solve the actual task:
My name is: {{ main_user.first_name }} {{ main_user.last_name }}. My personal email is {{ main_user.email }} and phone number is {{ main_user.phone_number }}. Task: {{ input_str }}
AppWorld release and continuation
The assembled NAC template retains the common ReAct prefix and task suffix. The following full insertion appears immediately before the actual task. ACT supplies an empty schedule string; WAIT and SPEC supply their blocks. Conditional hints populate the named template fields. Observation memory begins with “Public API results already observed in this task: and retains up to six distinct recent read signatures, 180 characters of code and 800 characters of output per entry, within a 6,000-character memory allowance.
NAC assembled AppWorld template
Role: role-delimited template.
{% if nc2_feedback_hint %}USER:
{{ nc2_feedback_hint }}
{% endif %}{% if nc2_schedule %}USER:
{{ nc2_schedule }}
{% endif %}{% if nc2_observation_memory %}USER:
{{ nc2_observation_memory }}
{% endif %}USER:
When completing a task that only asks for a state change, such as placing an order or updating a record, call apis.supervisor.complete_task()
without an answer argument after checking the resulting state. A success narration is not the requested answer. For a question or an explicit request to report information, pass only the requested answer in its requested format to
complete_task(answer=...).
USER: For an Amazon request covering all items of one named type in your cart or wish list, read the complete source collection. In one code block, loop over EVERY source product_id and call show_product(product_id=...) to record its public product_type. Keep every source ID whose returned product_type matches the requested type, with its original quantity. This per-ID source map is authoritative: do not intersect it with search_products or search_product_types results, because a catalog page can omit a source item. Print the complete source ID/type/quantity map and reconcile desired IDs before changes; verify the final cart before ordering.
USER: For an Amazon instruction to move all source cart or wish-list products above a rating threshold, inspect show_product.rating for EVERY source product_id; print each ID, rating, and quantity before applying the strict numeric threshold. Reconcile every qualifying source ID and quantity from the destination after moving. For a purchase from the highest-rated seller, inspect the search_products API schema and paginate the named product_type with page_index and page_limit until no more candidates remain. Collect seller IDs from all pages, inspect each public show_seller.rating, and choose by SELLER rating, not product rating. Confirm the chosen product’s seller ID before ordering.
{% if nc2_precise_rating_hint %}USER: {{ nc2_precise_rating_hint }} {% endif %}{% if nc2_order_identity_hint %}USER: {{ nc2_order_identity_hint }} {% endif %}{% if nc2_budget_purchase_hint %}USER: {{ nc2_budget_purchase_hint }} {% endif %}
### AppWorld WAIT instruction
**Role:** role-delimited template.
At the first unresolved source dependency, wait for its public API read result before doing dependent work. Begin with a documented read of the named source app or current state. Inspect the observed response, including nested fields, before preparing or executing a dependent change. Do not infer the source result from the task text.
### AppWorld SPEC instruction
**Role:** role-delimited template.
Before the named source read returns, begin only a bounded, read-only prefix: inspect relevant API schemas and existing target records that do not depend on the source content. Then read the source, reconcile the observed values with the prepared target IDs, and perform the needed write. Never send, mutate, delete, or complete during the prefix; avoid hidden state and rollback.
Feedback Hint
Role: conditional user.
The last execution returned an empty selection or an API error. Before claiming completion, inspect one actual response and the relevant documented return schema, then re-evaluate the filter or join using observed nested fields. If records qualify, perform the requested change and read back the resulting state. If none qualify, verify that conclusion with a documented read-only API. Do not use hidden evaluation, database snapshots, or rollback.
Precise Rating Hint
Role: conditional user.
Amazon show_product.rating is displayed to one decimal, so a displayed rating equal to the requested threshold may hide a higher or lower unrounded mean. For every source product at that boundary, inspect show_product_reviews documentation, fetch all public review pages with page_index and page_limit=20, verify the number read against show_product.num_product_reviews, and compute the arithmetic mean of the review ratings without rounding. Apply the task’s exact strict or inclusive comparison to that mean; print the boundary product IDs and computed means before moving or ordering. Use the ordinary displayed rating for products away from the boundary.
Order Identity Hint
Role: conditional user.
Before an Amazon place_order call, inspect its documented required fields. Log in and call amazon.show_payment_cards(access_token=...) and amazon.show_addresses(access_token=...) to obtain actual payment_card_id and address_id values. Match any card or address named by the user; otherwise choose an existing account entry. Supervisor card and address lists omit these IDs, and list positions are not IDs. Do not guess or brute-force them. Verify the intended cart, pass both observed IDs to place_order, then confirm a real order_id before complete_task.
Budget Purchase Hint
Role: conditional user.
For a request to buy as many wish-list products as possible within a budget, enumerate the complete public amazon.show_wish_list result and use observed product IDs, quantities, and prices. Choose the largest feasible set of distinct requested products; compare alternatives rather than taking the first affordable prefix. Before place_order, call amazon.show_cart and check its total_cost against the user’s budget, because delivery fees, tax, and discounts affect the amount paid. If over budget, revise the cart and check again. Check whether an excluded product can fit before concluding that the count is maximal. Leave only the chosen products and quantities in the cart, then place the order with observed card and address IDs.
WebShop public option selection
The release core consumes public product, goal and resource representations. Its selected continuation uses the following semantic option request. visible_product_json contains goal, product_title, public_price, and options; each option supplies index, group and value. The parser accepts integer indices, at most one option per group.
WebShop semantic option selection
Role: user.
Choose public product options that best satisfy the shopping goal. Account for color synonyms, punctuation, word order, dimensions, numbers and equivalent units. Choose at most one index per group. If the goal has no preference for a group, leave that group unset. Use only the supplied public information. Return only a JSON object with exactly this schema: {"selections":[integer indices]}. Do not add explanations. {visible_product_json}
Assembly. visible_product_json contains goal, product_title, public_price, and indexed public options; temperature 0, max_tokens 512, JSON-object response, thinking disabled.
Dialogue release instructions
The initial system message contains the official public domain policy. At the first public prefix, the learned core selects one mode; subsequent transitions use ACT. The current public dialogue precedes the execution/mode user message. WAIT exposes a text response; SPEC exposes reversible information tools; ACT exposes the domain tool set.
Base Instruction
Role: source template.
You are a customer-service agent. Follow the policy exactly. Use only the supplied tools and public conversation. Never invent tool results. In a turn, either call tools or send text, never both. <policy> {domain_policy} </policy>
Public Execution
Role: source template.
Execute the complete user’s request using the current public policy and the latest successful tool results. Keep a concise evidence checklist of requested changes, pending observations, and remaining confirmations.
Before a database update, summarize all requested changes and exact prices from the selected options and obtain the policy-required explicit confirmation.
After an update, use the returned latest state for later eligibility checks. Reconcile payment balances and totals from observed tool results.
For retail one-time exchanges, collect the full set of requested items and replacements before confirmation and perform the confirmed batch once.
For telecom, perform account-side actions with the supplied tools. Guide device-side actions through the user. After a state change ask for the relevant speed, service, or messaging test and use its new result to continue the published workflow.
Before a final answer, finish the pending workflow, then give every requested total and numeric format explicitly.
Modes
Role: source template.
{
"act_now": "ACT_NOW: perform the next ready step of the complete policy using current evidence.",
"wait": "WAIT: ask one concise question whose answer resolves the most consequential remaining uncertainty. State the specific missing information or requested device observation.",
"bounded_speculation": "BOUNDED_SPECULATION: perform one reversible information-gathering step, or describe one reversible candidate plan. Hold database changes for a later observed and confirmed step."
}
Itinerary release and program output
The residual recompile request receives the public task, qualified accommodation summaries and route length. In the template, field_1 is route length, field_2 is the JSON public task, and field_3 is the JSON observed summaries. A JSON parser extracts the selected cities and ordered edits.
Travel Release template 1
Role: user.
You are recompiling the residual program after accommodation results arrived.
Select exactly {field_1} distinct surviving cities.
Use the task budget and constraints. Prefer a route that preserves quality while limiting future restaurant, attraction, and transport materialization.
Return one JSON object with selected_cities, waiting_value_by_city, and ordered_edits.
Each ordered edit has op, target_ids, and reason.
Legal ops are delete_node, rewrite_object_scope, add_edge, and rewrite_acceptance_contract.
Visible task:
{field_2}
Observed qualified accommodation summaries:
{field_3}
Return JSON only.
Assembly. Dynamic fields: {"field_1": "route_length", "field_2": "json.dumps(visible_task(task), ensure_ascii=False)", "field_3": "json.dumps(summaries, ensure_ascii=False)"}
Scientific program construction
The user-message assembly joins the four blocks with blank lines. The request block is followed by the task text and, for the knowledge variant, its supplied domain knowledge. The data block contains the published dataset path, folder tree and preview. The actor returns a complete Python program for the native evaluator.
System Prompt
Role: source template.
You are an expert Python programming assistant that helps scientist users to write high-quality code to solve their tasks. Given a user request, you are expected to write a complete program that accomplishes the requested task and save any outputs in the correct format. Please wrap your program in a code block that specifies the script type, python. For example:
print("Hello World!")
Format Prompt
Role: source template.
Please keep your response concise and do not use a code block if it’s not intended to be executed. Please do not suggest a few line changes, incomplete program outline, or partial code that requires the user to modify. Please do not use any interactive Python commands in your program, such as ‘!pip install numpy’, which will cause execution errors.
Request Prompt
Role: source template.
Here’s the user request you need to work on:
Data Info Prompt
Role: source template.
You can access the dataset at “{dataset_path}”. Here is the directory structure of the dataset:
“{dataset_folder_tree}
“
Here are some helpful previews for the dataset file(s):
{dataset_preview}
Supporting Evidence for Main-Text Consideration
These complete-population results strengthen three linked contributions: native quality, consequence-guided execution efficiency, and adaptation to resource preferences. The candidate evidence below remains available for reference; the final three candidate sections have been moved into the main experimental analysis.
The same release graph reduces native SQL work
Suggested placement: Generalization Across Execution Interfaces; one additional row in the mechanism table.
Why this supports the method. On all 1,534 BIRD development tasks across 11 databases, five fits achieve 67.78% native execution accuracy. Relative to fixed SPEC, adaptive release saves 9.016 model-request seconds and 35.712 completion tokens per task, corresponding to 35.50% and 32.05% of the fixed-SPEC work. Positive simultaneous intervals also cover both resource endpoints against fixed ACT (Table 28). The SQL interface exposes a pending schema–value lookup and three matched continuations. The shared consequence readout selects when to generate SQL and how much reversible preparation to perform before that evidence arrives. The measured savings show that state-conditioned release controls generation work effectively at this additional native interface. The resource scope is accepted-branch model work; shared producer and acquisition totals have their separate recorded scopes in Appendix § 11.
Native shopping quality carries to a fresh population
Suggested placement: Generalization or robustness analysis; a compact two-cohort table.
Why this supports the method. One independently fitted public-state instance scores 74.64 on the official 500 tasks and 75.76 on a fresh 500-task population (Table 29). Both complete populations execute the same frozen checkpoint and native purchase scorer. The controller reads the public goal, ready candidate, visible products, pending event and resource state, then compares their predicted consequences to select a release. Its strong quality across both populations supports the usefulness of this public-state scheduling representation. The official selected deployment uses 218,093 returned tokens and 375 model requests. This instance uses the ten-expert fitting recipe, zero delay price and 0.15 ACT/SPEC margin detailed in Appendix § 10.§ 5; its two-cohort result provides a concrete companion to the primary five-fit shopping study.
References
- [1]Victor Barres, Honghua Dong, Soham Ray, Xujie Si, and Karthik Narasimhan. 2025. tau2-Bench: Evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982.arxiv.org/abs/2506.07982
- [2]Hao Mark Chen, Jinnan Guo, Wayne Luk, and Hongxiang Fan. 2026a. Asoope: Action and observation co-speculation for low-latency agent serving. arXiv preprint arXiv:2608.00881.arxiv.org/abs/2608.00881
- [3]Junzhi Chen, Harsh Trivedi, Jane Pan, Michael J. Q. Zhang, Tejas Srinivasan, Niranjan Balasubramanian, and Ashish Sabharwal. 2026b. AppWorld-UL: Benchmarking diverse agent–user interactions for tool-use. In International Conference on Machine Learning.arxiv.org/abs/2607.20536
- [4]Ziru Chen, Shijie Chen, Yuting Ning, Qianheng Zhang, Boshi Wang, Botao Yu, Yifei Li, Zeyi Liao, Chen Wei, Zitong Lu, et al. 2025. Scienceagentbench: Toward rigorous assessment of language agents for data-driven scientific discovery. In International Conference on Learning Representations, volume 2025, pages 96934–96990.arxiv.org/abs/2410.05080
- [5]Zhengkun Di, Bin Shi, Kai Sun, Yiming Xu, and Bo Dong. 2026. When should agents check external state? budgeting observations for stored intentions. arXiv preprint arXiv:2609.37125.arxiv.org/abs/2609.37125
- [6]Zhengru Fang, Senkang Forest Hu, Zhonghao Chang, Yu Guo, Yihang Tao, Hongyao Liu, Mengzhe Ruan, Jun Huang, and Yuguang Fang. 2026. Inference-time budget control for LLM search agents. arXiv preprint arXiv:2605.05701.arxiv.org/abs/2605.05701
- [7]Faisal Fareed. 2026. Cost-aware speculative execution for llm-agent workflows: An integrated five-dimension method. arXiv preprint arXiv:2606.07846.arxiv.org/abs/2606.07846
- [8]Zikang Guo, Benfeng Xu, Xiaorui Wang, and Zhendong Mao. 2025. MIRROR: Multi-agent intra- and inter-reflection for optimized reasoning in tool learning. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, pages 117–125.arxiv.org/abs/2505.20670
- [9]Matthew A. Hammer, Khoo Yit Phang, Michael Hicks, and Jeffrey S. Foster. 2014. Adapton: Composable, demand-driven incremental computation. In Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation, pages 156–166.
- [10]Coleman Hooper, Minwoo Kang, Suhong Moon, Nicholas Lee, Eric Wen, John Wawrzynek, Michael W. Mahoney, Yakun Sophia Shao, Amir Gholami, and Kurt Keutzer. 2026. Speculative interaction agents: Building real-time agents with asynchronous i/o and speculative tool calling. arXiv preprint arXiv:2605.13360.arxiv.org/abs/2605.13360
- [11]Ronald A. Howard. 1966. Information value theory. IEEE Transactions on Systems Science and Cybernetics, 1(2):22–26.DOI
- [12]Miaobo Hu, Shuhao Hu, Xiaobo Guo, Xin Wang, Bokun Wang, Tianshu Fu, Daeren Zha, and Jun Xiao. 2026. ROUTEAUDIT: Interaction-aware identification for budgeted multi-verifier routing. arXiv preprint arXiv:2610.02808.
- [13]Shengran Hu, Cong Lu, and Jeff Clune. 2025. Automated design of agentic systems. In International Conference on Learning Representations.arxiv.org/abs/2408.08435
- [14]Savini Kashmira, Jayanaka L. Dantanarayana, Lingjia Tang, and Jason Mars. 2026. ContextRender: From Execution Dependencies to Agent Context. arXiv preprint arXiv:2609.37743v1.arxiv.org/abs/2609.37743
- [15]Sehoon Kim, Suhong Moon, Ryan Tabrizi, Nicholas Lee, Michael W. Mahoney, Kurt Keutzer, and Amir Gholami. 2024. An LLM compiler for parallel function calling. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 24370–24391.arxiv.org/abs/2312.04511
- [16]Yongjun Kim, Xiaoxiao Li, and Jaeho Lee. 2026. Learning to ask: Information acquisition for SLM-LLM collaboration, under a budget. arXiv preprint arXiv:2610.01236.arxiv.org/abs/2610.01236
- [17]Zeyu Liu, Souvik Kundu, and Peter A. Beeral. 2026. Speculative Macro Commit for Faster Tool-Using Agents. arXiv preprint arXiv:2609.03236v1.arxiv.org/abs/2609.03236
- [18]Zijun Liu, Yanzhe Zhang, Peng Li, Yang Liu, and Diyi Yang. 2024. A dynamic LLM-powered agent network for task-oriented agent collaboration. In Conference on Language Modeling.arxiv.org/abs/2310.02170




