TL;DR
When you wire together independent, reliable AI tools—say, a flight booker, an itinerary planner, and a packing assistant—their individual safety guarantees fall apart the moment they share a limited, uncertain resource like a budget. Even frontier LLMs fail to orchestrate these tools without blowing past financial limits up to 30% of the time. This paper introduces a lightweight runtime orchestrator that dynamically predicts resource collisions, coordinates only the colliding tools, and statistically certifies the final plan on fresh data—achieving zero budget overruns at roughly half the compute cost of solving everything jointly.
What Problem Does This Paper Address?
Modern agentic workflows rarely build everything from scratch; they compose specialized black-box components. Imagine planning four days in Lisbon under $2,800 using three independently sound tools: an itinerary planner, a travel budgeter, and a packing solver. Each respects its own local rules. Yet when run one after another, they frequently blow past the $2,800 cap. Why? Because flights, hotels, and paid attractions draw from the same wallet, and their real-world prices fluctuate together with demand.
Simple fixes fail in opposite ways. Solving every component together as one giant optimization problem guarantees safety, but multiplies the search space and wastes compute when the budget was loose anyway. Splitting the budget ahead of time (e.g., "10% for attractions, 90% for flights/hotels") fails because correlated price swings make static splits either too risky or overly conservative. The core question is: how do we compose existing black-box tools without modifying their code, keep shared limits intact, and only pay the coordination tax when a limit is genuinely at risk?
Methods
The authors separate language understanding from hard-constraint math. LLMs are strictly confined to the edges—parsing user text into typed requests and rendering final explanations—while a deterministic orchestrator manages execution via three mechanisms:
- Typed Contracts & Slack Gate: Each tool exposes an interface estimating what it might spend before running. Before invoking a tool, a slack gate simulates total spend using a single joint cost model (2,000 Monte Carlo scenarios) where price correlations are preserved. If the 90th-percentile total cost fits the cap, tools run sequentially.
- Resource Closures: If a resource limit is threatened (it "binds"), the orchestrator doesn't throw the whole system into a joint solver. Instead, it isolates the resource closure—only the unresolved tools claiming that specific resource and their dependencies (e.g., itinerary + budget, leaving packing to run cheaply afterward)—and hands them to a composite solver.
- Independent Release Certification: Optimizing a plan over 2,000 cost scenarios makes the winning plan look artificially safe on those exact scenarios. Before releasing any plan, the orchestrator tests it on 2,000 fresh scenarios using a Clopper–Pearson statistical bound, rejecting or downgrading plans until they genuinely stay under budget with 90% probability.
This same machinery handles infeasible requests ("no plan") by bisecting request dimensions (budget, days, month) to offer minimal relaxations, and handles replanning by re-opening only the closures affected by a change.
Datasets
- Travel Planning Suite: 2,728 requests across 88 U.S. destination cities, evaluated across 10 budget tightness levels around each trip's minimum feasible cost, weighted against 83 real user-study budgets. Uses two production travel-app modules (itinerary and packing) plus a travel budget planner over synthetic price baselines audited against public sources.
- Synthetic Benchmark: 950 instances across 19 configurations (varying from 3 to 20 capabilities and different dependency graphs) to test how selective gating scales.
- Recovery & Language Suites: 1,056 infeasible requests for relaxation testing, 14,960 perturbed plans (rain outs, budget cuts, closed attractions) for replanning, and 300 gold-labeled requests for LLM parsing.
Key Insights and Ideas
- The Optimizer's Curse is lethal in agentic loops: When you pick the best plan (or let an LLM + verifier tune a plan) on a fixed sample of cost scenarios, you select for plans that got lucky on that sample. Without an independent holdout test, 81% of plans sitting within 0.5% of the budget cap fail in reality.
- Margins must be joint, never local: Giving each tool its own 90% safety margin is ultra-conservative, cutting feasible plans found in half (30% vs. 60%). Conversely, ignoring price correlations between tools causes 92% of released plans to overrun.
- Tightness dictates coordination, not prompt phrasing: You cannot route workflows just by looking at how a request is phrased. Whether tools collide depends on runtime numbers—88% of requests bind near the cost floor (1.1x minimum budget), dropping to 20% at 1.5x.
- LLMs belong at the edges, not in the driver's seat: Frontier models given the exact same tools, cost scenarios, and an external verifier still break budget limits in 15–30% of cases because they tune plans right up against the verifier's sample boundary.
Key Results
- Zero Overruns: Sequential execution breaks shared limits on 20.7% of feasible budgeted requests (51% overall). The gated, certified orchestrator achieves 0% rejected releases when audited against 100,000 independent validator scenarios.
- Efficiency & Completeness: Gating finds 100% of the plans found by an exhaustive search oracle (with a tiny 0.0067 utility gap on a 0–1 scale) while making only 54% as many component proposals as always solving jointly. With slow components (1s latency), always-joint takes 1.7x longer than gating.
- Fast Recovery: When an attraction closes mid-trip, closure-bounded warm replanning preserves 81% of the original itinerary, compared to 35% when replanning from scratch.
- Outperforming LLM Agents: Tested against frontier LLM agents (Claude Opus 5.5, GPT-6 Astra, Gemini 4 Argon), the orchestrator finds valid plans for 100% of plannable requests in ~2.4 seconds. LLM agents take 77–352 seconds, cost $0.42–$0.71 per request, and yield valid plans only 32–41% of the time once subjected to fresh-sample certification.
Limitations and Future Work
Certification fixes sampling error, not model error: in stress tests where real-world prices spread 25% wider than the cost model assumes, valid releases plummet to 0.7% across all methods. Realized spend data should be used to recalibrate cost models in production rather than arbitrarily widening safety margins. Additionally, requests were templated rather than organic user traffic, human evaluations of explanation quality were not conducted, and plans downgraded after failing certification reuse the certification sample (requiring a third fresh sample for strict theoretical guarantees).
Summary updated