Manuscript Offprint
arXiv:2610.21412JevAgentHarness: Benchmarking, Deploying and Training Decision Models That Share Control with LLMs
Abstract
Large language model (LLM) agents now fix software, operate computers and serve customers, but their harnesses, the programs that run them, call a large LLM at every step, which makes long tasks slow and costly. Most of these calls end in a multiple-choice decision, such as which tool to call next. Decision models such as JEV answer these questions directly, at a fraction of an LLM call's time and price. We ask how a harness can delegate these decisions to a decision model with little loss of success. To evaluate decision models in agentic tasks, we build AGENTDECISIONBENCH, which tests them from isolated questions up to control of a running agent, on public benchmarks and our DECISIONGYM environment. The decision model most accurate on isolated questions solved only 69.5% of agent tasks, and without a fitted confidence threshold, delegating tool choices lowered success by 19.0 points. Building on these findings, we then design JEVAGENTHARNESS, which fits this threshold for each choice on the agent's own trajectories and lets the LLM decide below it. Because existing decision models never see the states an agent reaches after its own mistakes, we train AGENTDECISION-4B, an open 4B model, on such states with JEV's answers as labels. On tasks unlike its training data, the agent solved 91.5% of them with AGENTDECISION-4B and 82.0% with JEV. On tasks like their training data, 4B models trained this way made agents 81.1–89.0% cheaper and up to 2.5 times faster, without losing 3 or more points of task success. The models, data, and harness will be released at https://github.com/JevAgentHarness/JevAgentHarness.
1 Introduction
Large language models have become capable agents. Recent frontier models such as GPT-6 Astra (OpenAI, 2026c) and Claude Opus 5.5 (Anthropic, 2026) report their largest gains on agentic

Figure 1: Intuition of JEVAGENTHARNESS. Most of an agent's LLM calls end in a multiple-choice decision, and a small decision model can make the routine ones in a fraction of the time and price. The LLM makes the choices the decision model is unsure of.
work: they resolve issues in real code repositories (Jimenez et al., 2024), operate desktop and web applications (Xie et al., 2024), complete tasks in a terminal (Merrill et al., 2026) and serve customers under domain policies (Barres et al., 2026). The length of the software tasks that frontier models can complete has doubled about every seven months since 2019 (Kwa et al., 2026). These capabilities are put to use through agent harnesses such as Claude Code, Codex and OpenHands (Anthropic, 2025; OpenAI, 2026a; Wang et al., 2025c), programs that give the model tools, manage its context and memory, and decide when to stop (Yao et al., 2023; Yang et al., 2024; Guo et al., 2026a).
Yet agents remain slow and costly on long tasks, because most harnesses call the large model at every step (Kapoor et al., 2025; Wang et al., 2025b). Evaluating agents for one public leaderboard cost about $40,000 (Kapoor et al., 2026). Most of these calls, however, end in a multiple-choice decision. In Figure 1, a customer-service agent must either look up an order, cancel it or ask the customer.

Figure 2: Overview of our pipeline. Stage 1 tests each kind of choice alone, and Stage 2 tests the passing delegations together on new tasks. These were the tool and argument cascades and a reflection trigger.
Decision models such as JEV (Almeida, 2026) and its open counterparts (InternLM, 2026; StartLuxLabs, 2026; razorback16, 2026) make such choices directly. Given the task, the history and one multiple-choice question, a decision model returns a probability for each listed option instead of generating text, much like the fast, intuitive System 1 rather than the slow, deliberate System 2 (Kahneman, 2011). In one recorded episode, a call to JEV took 28% of an LLM call's time and 2.6% of its price. Existing systems use decision models for game actions, memory, escalation and judging (Ma et al., 2026; Jiang et al., 2026; Wu and Lim, 2026b; Li et al., 2026). Because a harness lists the actions at each step, it can delegate a choice to a decision model when that model is confident and otherwise defer to the LLM (Figure 1). We call this decision modeling for agents (Chen et al., 2025).
Decision models, however, are built and tested on fixed questions and do not adapt to the agent they serve. Whether one works inside an agent has not been tested. Routers and cascades (Chen et al., 2024; Ong et al., 2025), small function-calling models (Zhang et al., 2025c; Lin et al., 2025) and fast-slow agents (Lin et al., 2023; Christakopoulou et al., 2024) also move work away from the large model, and they too have been tested on fixed questions or on a single kind of choice, and agent benchmarks score only whole tasks. Inside an agent, a decision model's mistakes carry over to later steps (Zhu et al., 2025), and one choice changes the next. It also faces states that follow the agent's own errors, which fixed question sets rarely contain, and every query to it adds latency. We therefore ask:
How can an agent harness delegate routine choices to a fast, cheap decision model when the model is reliable, so that agentic tasks become faster and cheaper with little loss of success?
Our hypothesis is that a decision model helps an agent when it is chosen by tests inside the agent, used only when it is confident, and trained on the states that the agent itself reaches. We build one part for each of these three conditions (Figure 2). AGENTDECISIONBENCH tests decision models at three levels, each closer to real use: on isolated questions with no agent around, at each step of recorded agent runs, where answers are scored but not carried out (step level), and in control of a running agent, where each choice changes what comes next (task level). We use public benchmarks and DECISIONGYM, an environment we built that knows the acceptable next steps at every state, so that each choice can be scored. JEVAGEN-THARNESS lets an existing harness put each routine choice to a decision model as a typed multiple-choice question and uses the answer only when the model's confidence clears a threshold fitted on the agent's own trajectories. AGENTDECISION-4B is an open 4B decision model that learns from JEV's answers on the states the agent visits. We will release all three. AGENTDECISION-4B chooses better than JEV inside the agent: on tasks unlike its training data, the agent solved 91.5% of them when AGENTDECISION-4B made its tool choices and 82.0% when JEV made them. JEVAGENTHARNESS makes agents cheaper and faster: with 4B models trained on each agent's states, customer-

(a) Where a decision model can act
(b) How it acts: five modes
Figure 3: A decision model can act at eight points of the agent loop, in five modes. In (a), filled boxes choose the agent's action, outlined boxes control the loop, and markers show the modes we implement at each point.
service and household agents were 81.1–89.0% cheaper and up to 2.5 times faster, without losing 3 or more points of success.
Decision points. An episode is one agent run on a task, and its state s holds what the agent knows at a step. A decision point d is a kind of choice that recurs across steps and whose options the harness can list. We study eight decision points (Figure 3a). Three choose what the agent does: the tool, its arguments and, without tools, the next action. Five control the loop: whether to write memory, reflect after a failure, stop, or route the step to a cheaper LLM, and which stored notes to read back.
Decision models. A decision model reads s as text with one question and its options (App. B.3) and returns a probability for each option. Its answer is the likeliest option, and its confidence is that option's probability (JEV (Almeida, 2026) returns this probability directly). Open models like Intern-Decision and AGENTDECISION-4B score all options in one forward pass.
Who decides. An integration mode fixes who proposes an answer and who has the last word (Figure 3b). We mostly use the cascade (▲ CASCADE): the decision model answers first, and the harness uses it when its confidence clears a threshold, . Otherwise the LLM decides as usual. In the other modes, the decision model always decides (● REPLACE), shortlists options for the LLM (■ ASSIST), approves or rejects the LLM's choice (✦ GUARD), or decides whether an optional step such as reflection runs (▼ TRIGGER). We implement all 40 point-mode combinations (App. A). A decision point with its mode and threshold is a delegation, such as the tool-choice cascade. We seek the cheapest set of delegations whose success stays within 3 points of the LLM alone.
A decision-making example. Consider a customer-service agent asked to cancel an order (App. Figure 6). At each step, the harness asks which of 69 tools to call. At step 3, JEV split its vote between asking the customer (0.63) and cancelling (0.37), so the LLM decided and asked. At step 4, JEV was confident about cancelling the order. JEV then chose the order from options copied from the chat and the reason from a fixed list. Both answers were confident, so the call ran without the LLM. An unsure answer or a free-text argument would cost one LLM call.
2.1 Deciding what to delegate
A threshold rule. Handing a choice to the decision model can save an LLM call but may lead to a wrong choice. If its confidence equals its chance of being right (App. A), handing over is worth it exactly when , where is how often the LLM gets this choice right, the price of the saved call and V the cost of a wrong choice. This value is the best threshold . The decision model may thus be a little less accurate than the LLM as long as the saving covers the extra risk.
Fitting thresholds. We first run the agent on separate tasks (150 per agent LLM) while the decision model answers every question silently (shadow mode). From these trajectories we estimate, per decision point, how often the LLM was right ( ), a call's price ( ) and V, the drop in task success after one wrong choice, valued at 1 per solved task. The trajectories also give the decision model's accuracy at each confidence, so the threshold is the lowest confidence above which accepting is worth it, and the confidence need not match its exact chance of being right (App. A). If none qualifies, the LLM keeps deciding. With JEV and Flash, the fitted thresholds were 1.00 for tools and 0.99 for arguments, so only near-certain answers are used.
3 AGENTDECISIONBENCH
A decision model can score well on a test and still fail inside an agent. Existing tests ask single questions with fixed answers, so a wrong answer never affects what happens next. Agent benchmarks run whole tasks but report only whether a task succeeded, without showing which choice went wrong. AGENTDECISIONBENCH tests decision models at three levels on public data and on DECISIONGYM, with every call priced and timed (App. F, Table 5).
L1: isolated questions. The decision model answers single questions with no agent around it. We turn the 1,114 tool-choice and 1,949 argument items of BFCL v4 (Patil et al., 2025) and the 928 When2Call items (Ross et al., 2025) into multiple-choice questions.
L2: step level, on recorded agent runs. The decision model answers at each step of recorded agent runs, but its answer is only scored, so the run continues as recorded and one mistake cannot cause the next, as when driving policies are tested on recorded drives. Each answer is checked against an answer key of acceptable next steps. All models answer the same 5,314 states of 200 new DECISIONGYM tasks (the common states).
L3: task level, in control of the agent. The decision model now makes every tool choice of a running agent (every action in ALFWorld) with no threshold, while the LLM writes the arguments, and each choice is carried out. A wrong choice changes what the agent sees next, so mistakes can pile up. This level measures task success. It is the hardest level and the closest to deployment. Our agent loop runs -bench (Barres et al., 2026), ALFWorld (Shridhar et al., 2021) and DECISIONGYM tasks, and hooks let us test existing harnesses without changing their code: mini-SWE-agent and SWE-agent on SWE-bench Verified (Jimenez et al., 2024), and the pi terminal agent on Terminal-Bench 2.0 and Terminal-Bench-Science (Merrill et al., 2026; Terminal-Bench-Science Team, 2026).
Levels 2 and 3 need an environment that knows which next steps are acceptable at every state an agent can reach, including after its own mistakes. Public agent benchmarks check only the final state or the progress of a run (Lu et al., 2025; Ma et al., 2024), have a fixed set of tasks and are slow and costly to rerun. We therefore built DECISIONGYM, a simulated customer service desk for a small shop, with typed tools over a small database as in -bench (Yao et al., 2025) and requests from templates as in TextWorld (Côté et al., 2019). Every task offers the same 68 tools plus finish in shuffled order: seven core tools, one that asks the customer, 31 near-duplicates of core tools and 29 unrelated ones. Because each task comes from a scripted plan, DECISIONGYM derives an answer key at every reachable state from which the task can still be solved, even after detours. Training, threshold fitting and testing use disjoint random seeds. Near-duplicate distractor tools and must-ask states, where the right move is to ask the customer, make the tasks hard. The answer key is hidden from all models, and in strict mode any change to the shop's data that is not in the plan ends the episode (App. B). Two further task sets, added after the main study, test the models beyond their training data. Shifted tasks (DECISIONGYM-Shift, App. G.9) rename the tools and change the wording and kinds of requests. Hard tasks (DECISIONGYM-Hard, App. D.6) have 10 or 12 customers each and a new rule for cancelling or shipping.
4 JEVAGENTHARNESS
JEVAGENTHARNESS moves a harness’s routine choices to a decision model. It poses each listed choice as a multiple-choice question and uses the answer only when the model is confident enough. Otherwise the LLM decides as usual. The harness has three parts (App. Figure 8).
A typed decision interface. Every choice uses JEV's input format, whose options are the tools, fixed-list or yes/no argument values, or text spans to copy from the context. A tool call is split into a tool choice and one choice per such argument, so the decision model can pick both while the LLM writes only free text. Any model that accepts this format can be used (App. C).
A confidence threshold fitted on trajectories. Each decision point gets the threshold of §2.1, fitted on shadow-mode trajectories, so the decision model takes only choices it makes reliably. Below the threshold the LLM decides, so an unsure answer wastes one cheap decision-model call but does not risk the task. Thresholds are refitted when the LLM, decision model or task rules change.
Adapters, serving and accounting. Adapters ask the same questions inside existing harnesses through their hooks: strong-or-fast LLM routing in mini-SWE-agent, guards and triggers in pi, and command hooks for Codex CLI and Claude Code. If an adapter or the decision model fails, the harness runs as before (App. Table 9).
5 AGENTDECISION-4B
We train our own decision model for two reasons. An API model such as JEV is billed per call and cannot learn a harness's own rules, and off-the-shelf models learn from fixed questions and successful demonstrations. Such data rarely contain the states an agent reaches after its own mistakes, where a decision model must also answer (App. D.2). We therefore post-train a small open model, Qwen3-4B with LoRA (Yang et al., 2025; Hu et al., 2022), on states the harness visits: first by supervised fine-tuning (SFT), then by RL in the agent loop.
Supervised fine-tuning. We run the harness on 587 training tasks and record every decision state s, 15,694 in all. To include states after errors, a scripted policy repeats mistakes seen during development (Ross et al., 2011; Laskey et al., 2017), and 30.9% of the states follow a mistake (App. D). Where the teacher, JEV, ranks the correct answer first, the target mixes the one-hot label of with the teacher's probabilities, with . Otherwise the target is the one-hot label alone. SFT fits this target with cross-entropy plus a squared-error (Brier) term that keeps the probabilities calibrated:
with and . We use LoRA , 2 epochs and learning rate .
GRPO inside the agent loop. The SFT model then decides on training tasks while a fixed agent LLM does the rest, so it learns from the consequences of its own choices. For each task we run a group of episodes. Episode earns a reward for success, , reduced for the LLM calls it used, minus a penalty when it made an irreversible wrong call ( ):
with , and , so a solved task with ten or more LLM calls earns half. Each episode's advantage is its reward relative to the group, , and every decision in the episode shares it in the GRPO objective (Shao et al., 2024), plus a step-level term at states that recur within the group (Feng et al., 2025a), with a KL penalty to the SFT model (App. D). Flash-Lite is the agent LLM, and iteration 15 is kept.
Evaluation. Stage 2 swaps JEV for the frozen AGENTDECISION-4B and refits the thresholds. We later trained it further on public tool-use data.
6 Experimental Protocol
Stage 1 tests each delegation alone and keeps those that are cheaper and non-inferior to the LLM alone. Non-inferior means that a one-sided test at the 5% level, on the same tasks run both ways, shows a loss of less than 3 points in task success (5 on -bench; App. E). Stage 2 tests the passing delegations together on new tasks, because delegations can interact. We pre-registered the models, tasks and tests, and registered the Stage-2 plan before reading any Stage-1 result, so that choosing the combination could not bias its test.
Stage 1: each delegation alone. The decision model is JEV (and Intern-Decision-4B for three delegations). The agent LLM is Gemini 3.5 Flash (Flash) with native tool calls. The cheaper, weaker Gemini 3.5 Flash-Lite (Flash-Lite) receives routed steps, simulates the -bench user and is a second agent LLM on DECISIONGYM (App. F). The LLM alone and simple controls without a decision model run on the same tasks as each delegation (App. B.5). With eleven registered tests, a few could pass by chance, so Holm's method (Holm, 1979) makes each test stricter and keeps the chance of any wrong pass at 5%. Other results are descriptive.
Stage 2: the delegations together. A script chose the combination by a rule fixed in advance. At each decision point it took the delegation that passed Stage 1 with the largest saving, or kept the LLM if none passed (App. E). We ran the combination on 500 new DECISIONGYM tasks and on -bench telecom tasks. Four Holm-corrected tests check two things. The first two check that the combination still works. It should be non-inferior to the LLM alone at lower cost, and cheaper than its best single delegation without losing success, or combining would not be worth it. The other two check that a model we train can take JEV's place. On the common states, AGENTDECISION-4B should beat Intern-Decision-4B, a model of its size that never saw the agent's states, and be non-inferior to its teacher JEV. The combination should also stay non-inferior to the LLM alone when AGENTDECISION-4B replaces JEV.
7 Results
The LLM alone solved 99.4% of the DECISIONGYM tasks, so Table 1 reports harder settings. Table 1, Figure 4 and the shifted tasks come from experiments added after Stage 1.
7.1 RQ1: Do isolated scores predict success?
On isolated questions (Figure 4a), JEV was 1.7 points less accurate than Flash at 1/50 of its cost (App. G.6). On one L4 GPU, AGENTDECISION-4B and AGENTDECISION-0.8B cost about 4 and 9 times less per decision than JEV (App. G.7). At the task level, the ranking differed from the isolated one (Figure 4b). StartLux-9B was the most accurate model on BFCL tool choice (92.2%), yet it solved only 69.5% of tasks. AGENTDECISION-4B was less accurate on BFCL (89.3%) but solved 91.5% of tasks, and JEV solved 82.0%. Step-level accuracy ranked the models nearly as task success did (Kendall correlation 0.84). The gap lies at must-ask states, where AGENTDECISION-4B answered 67.4% correctly and JEV answered 58.3%.
Finding 1. Isolated scores misrank decision models. The best decision model on isolated questions solved only 69.5% of agent tasks, while AGENTDECISION-4B solved 91.5%.
7.2 RQ2: Which decisions can be delegated?
Stage 1 tested each delegation alone (Figure 5). The cascade, which uses an answer only above its threshold, saved cost at tool and argument choices. With Flash as the agent LLM, JEV made 27.2% of
L1 isolated questions
ours
other decision models

(a) Isolated accuracy against cost

(b) The same decision models inside the agent
Figure 4: Isolated scores do not rank decision models for agents. In (a), the cost is per 1,000 decisions, each open model is at its cheapest deployment, and the cost–accuracy frontier is dashed. In (b), the models run on shifted DECISIONGYM tasks. Details: App. G.5.
the tool choices and 20.8% of the argument choices, which cut cost by 14.2% without changing the outcome of any of the 500 tasks, and it passed its registered test. With Flash-Lite, the fitted threshold left every tool choice to the LLM, so the cascade saved nothing. Modes without a threshold lost success. Letting JEV make every tool choice lost 19.0 points, and a three-tool shortlist from JEV lost 7.8 points while cutting cost by 53.7%, though it beat a keyword shortlist by far (92.0% of tasks solved against 18.8%). A guard on stopping kept success but cost 6.2% more, and letting JEV send Flash-Lite's steps to Flash cost 36.2% more than Flash-Lite alone without a clear gain in success. Refitted on -bench, the cheapest delegation that passed lost 8.1 points, so we could not show it transfers.
Finding 2. A fitted threshold protects success. It cut cost by 14.2% without losing a single task. A fixed threshold lost 21.5 points.
7.3 RQ3: What changes in deployment?
| Delegation | n | Success (%) | Δ pt | Cost saved % | Time (s) | ||
|---|---|---|---|---|---|---|---|
| ref. | with | ref. | with | ||||
| Hard DECISIONGYM tasks: new tasks, 12 customers each, a rule no decision model was trained on | |||||||
| Chosen combination (tool and argument cascades + reflection trigger), JEV | 200 | 66.0 | 69.5 | +3.5 | 4.6 | 41.6 | 71.5 |
| Tool cascade refitted on the rule, JEV | 100 | 87.0 | 89.0 | +2.0 | 30.5 | 63.5 | 104.1 |
| GPT-6-Luna as agent LLM: tool cascade refitted, JEV | 100 | 45.0 | 83.0 | +38.0 | ×8.4 | 53.9 | 67.4 |
| Coding agents: JEV sends each step to a strong or a fast LLM (ref.: always strong) | |||||||
| mini-SWE-agent, SWE-bench Verified: DeepSeek-V4-Pro or -Flash | 300 | 77.3 | 76.3 | -1.0 | 10.5 | 457 | 436 |
| mini-SWE-agent: Gemini 3.8 Flash, high or low thinking | 100 | 70.0 | 75.0 | +5 | 7.0 | 886 | 728 |
| SWE-agent, SWE-bench Verified: Gemini 3.5 Flash or Flash-Lite | 100 | 63.0 | 57.0 | -6.0 | 7.7 | 110 | 124 |
| pi, Terminal-Bench 2.0: Gemini 3.5 Flash or Flash-Lite | 89 | 42.7 | 50.6 | +7.9 | 9.6 | 257 | 260 |
| ALFWorld text games | |||||||
| ALFWorld: action cascade, JEV | 140 | 91.4 | 91.4 | +0.0 | 14.0 | 24.1 | 22.3 |
| ALFWorld: action cascade, 4B trained on its states | 140 | 90.7 | 95.0 | +4.3 | 89.0 | 37.0 | 18.2 |
| ALFWorld, unseen rooms: same model and threshold | 134 | 88.8 | 89.6 | +0.7 | 92.0 | 35.1 | 18.2 |
Table 1: Delegating choices to a decision model in harder settings. Task success (%) of the LLM alone (ref.) and with the delegation on the same n tasks, the change (points), the share of cost saved ( : cost as a multiple of the reference's) and the mean seconds per task. Bold marks the better result and savings that kept success, red a loss of 3 points or more or a higher cost. All rows come from experiments added after Stage 1. Row notes: App. G.5.
| Δ pt | saved % | REPLACE | CASCADE | ASSIST | GUARD | TRIGGER |
|---|---|---|---|---|---|
| Tool choice | -19.0|67 | +0.0|14 | -7.8|54 | +0.0|0 | +0.0|-14 |
| Tool args. | -20.0|88 | +0.0|14 | +0.0|9 | +0.0|-7 | +0.0|-1 |
| Memory write | +0.5|-47 | -1.0|-48 | +0.0|-74 | +0.0|-60 | -1.0|-39 |
| Memory read | +0.5|-11 | +0.0|-21 | +0.0|-5 | +0.0|-140 | +0.0|-1 |
| Reflection | -0.5|-7 | +0.5|-25 | -0.5|-66 | +0.0|-61 | +0.0|1 |
| Stop | +0.5|-7 | +0.0|-1 | +0.0|-17 | -0.6|-6 | +0.0|0 |
| Routing | +4.0|-7 | -4.0|-113 | -2.0|-31 | +0.0|-23 | +0.6|-36 |
| Action | -64.3|91 | +0.0|14 | -40.7|-182 | -0.7|-87 | -2.1|-111 |
kept success, cheaper small loss or no saving lost 3+ points
Figure 5: Delegating tool and argument choices in a cascade saved cost without losing success. Each cell: change in task success against the LLM alone (points) | cost saved (% , negative when costlier), with JEV and Gemini 3.5 Flash. Full map: App. G.2.
JEVAGENTHARNESS cut cost and time on DECISIONGYM, ALFWorld and mini-SWE-agent. With AGENTDECISION-4B on its own GPU, the DECISIONGYM agent was 86.3% cheaper and 2.5 times faster, without losing 3 or more points of success, and on ALFWorld a 4B model trained there made the agent 89.0% cheaper and about twice as fast, with higher success (Table 1). Coding agents gained less. When JEV sent each step to a strong or fast LLM, cost fell by 7.0–10.5% and success varied by harness (App. C.3). On hard DECISIONGYM tasks, delegation kept or raised success but saved only 4.6–30.5% and ran slower. The agent was also slower on a GPU shared by about four runs.
| Part | Without, then with | Δ pt | Saved %: cost, time | |
|---|---|---|---|---|
| Threshold | fixed at 0.5 | -21.5 | 84.5 | - |
| fitted in shadow mode | +0.0 | 14.2 | - | |
| Check | own confidence | - | 59 | - |
| + re-ask if unsure | - | 81 | - | |
| LLM check instead | - | -49 | - | |
| Combined | tool cascade alone | +0.4 | 18.8 | -11.4 |
| + reflection trigger | -2.2 | 40.7 | -34.8 | |
| Serving | 4B, shared GPU | +0.6 | 81.1 | -49.5 |
| 4B, batched, own GPU | +0.5 | 76.3 | 29.4 | |
| 4B + public data, own GPU | +0.5 | 86.3 | 60.3 | |
| 0.8B, learns to defer | +0.5 | 89.3 | 77.9 |
Table 2: What each part of JEVAGENTHARNESS contributes. Each row compares the agent without and with one part: the change in success (points) and the cost and time saved (%) vs. the LLM alone. Bold green marks savings that kept success, red a loss or an added cost. Added after Stage 1. Row notes: App. G.5.
Finding 3. Delegation cut cost and time without losing success. With AGENTDECISION-4B the agent ran 86.3% cheaper and faster. A 4B model trained on ALFWorld made the ALFWorld agent 89.0% cheaper.
On 500 new tasks, AGENTDECISION-4B made 99.9% of the tool choices and 75.0% of the argument choices, saving 4.5 LLM calls per task. On one L4 GPU, it took a median 31 ms per answer, while a Flash call took 809 ms.
7.4 RQ4: Can a 4B model learn the decisions?
SFT on the agent's own states raised step-level accuracy on shifted states from 52.9% to 98.4% (Table 3), while isolated accuracy rose by only 7 points. Most of the gain comes from SFT. It took 2.2 GPU-hours. GRPO added 4.5 GPU-hours and $26.53 of LLM calls without a measurable
| Model | L1 isolated | L2 step level all must-ask | L3 task success | Saved | |
|---|---|---|---|---|---|
| Shifted tasks: AGENTDECISION-4B, step by step from Qwen3-4B | |||||
| Untrained | 71.4 | 52.9 | 27.6 | 13.5 | - |
| + SFT | 78.4 | 98.4 | 95.0 | 96.0 | - |
| + GRPO (Stage 2) | 78.8 | 98.6 | 90.8 | 96.0 | 81.1 |
| + public data | 85.1 | 94.9 | 67.4 | 91.5 | 86.3 |
| Shifted tasks: off-the-shelf decision models | |||||
| JEV (teacher) | 86.4 | 91.8 | 58.3 | 82.0 | 40.7 |
| Intern-Decision-4B | 73.4 | 75.9 | 33.9 | 34.0 | - |
| StartLux-4B | 83.1 | 86.5 | 36.7 | 49.0 | - |
| + our recipe | 85.5 | 98.5 | 100.0 | 98.0 | - |
| StartLux-0.8B | 70.0 | 51.7 | 27.2 | 13.0 | - |
| + our recipe = AGENTDECISION-0.8B | 80.5 | 95.6 | 93.5 | 82.0 | - |
| ALFWorld: SFT on states of its training games | |||||
| + SFT | - | 92.8 | - | 95.7 | 89.0 |
Table 3: Training on the agent's own states made a 4B model accurate, even on shifted tasks. Accuracy on isolated questions (L1), step-level accuracy (all states and must-ask states) and task-level success on shifted tasks (L2, L3), and the cost saved when the model is deployed. Added after Stage 1. Column notes: App. G.5.
gain. Run without SFT, GRPO did not improve the untrained model, which solved 11.5% of shifted tasks after GRPO and 13.5% before (App. D.4, Table 15). With JEV, the chosen combination lost 2.2 points and failed the non-inferiority test. With AGENTDECISION-4B in place of JEV, it passed at 81.1% lower cost on 500 new tasks. On the common states, AGENTDECISION-4B beat Intern-Decision-4B and was non-inferior to JEV. Further training on public tool-use data raised its isolated accuracy from 78.8% to 85.1%, while task-level success on shifted tasks fell from 96.0% to 91.5% (App. D.9). Our recipe turned StartLux-0.8B into AGENTDECISION-0.8B (Table 3). On ALFWorld, a 4B model trained there answered 92.8% of recorded states correctly, and the best off-the-shelf model answered 72.8% (App. D.8).
Finding 4. Training on agent states raised success. Qwen3-4B's success on shifted tasks rose from to , and StartLux-4B's from to .
7.5 Where delegation fails
Three failure modes recur. A confident wrong choice at an irreversible step ends the task. All 34 of JEV's failed tasks began with an irreversible wrong tool choice, usually cancelling where the agent should have asked. Models trained on agent states made no such error (App. G.7). The decision model can also face a new rule. On hard tasks with 10 customers, AGENTDECISION-4B, trained without this rule, made most cancel-or-ship decisions but got only of them right, and the agent solved of tasks against for the LLM alone. Refitting the threshold restored success with JEV (Table 1), and retraining AGENTDECISION-4B on the rule raised its held-out accuracy from to (App. D.6). Finally, modes that still call the LLM, such as guards, save little.
8 Related Work
Decision models. JEV and open models like Intern-Decision, StartLux-Decision and OpenJev (Almeida, 2026; InternLM, 2026; StartLuxLabs, 2026; razorback16, 2026) score listed options, while DecisionFlow (Chen et al., 2025) structures LLM decisions. REFLEX hands an action to the LLM when its confidence falls below one global threshold (Wu and Lim, 2026b), and we fit one per decision point.
Decision evaluation. Decision and tool-use benchmarks score fixed questions (Benchmark Heaven, 2026; Ling et al., 2026; Patil et al., 2025; Ross et al., 2025), and agent environments score whole episodes (Yao et al., 2025; Trivedi et al., 2024; Lu et al., 2025). Models with equal scores can still decide differently (Zhang et al., 2026). AGENTDECISIONBENCH adds step- and task-level tests.
Routing, deferral and training. Routers and cascades choose the model for a call (Chen et al., 2024; Ong et al., 2025; Aggarwal et al., 2024). Learned routers, compared in LLMRouter (Feng et al., 2026a), use query–LLM graphs, multi-LLM logs or multi-round RL (Feng et al., 2025b, 2026b; Zhang et al., 2025a). A decision model instead scores listed options and defers if unsure, like learning to defer (Geifman and El-Yaniv, 2017; Mozannar and Sontag, 2020). Agentic RL trains the LLM (Jin et al., 2025; Wang et al., 2025d), while we train the decision model (App. H).
9 Conclusion
Our results support the hypothesis that decision models help agents when tested, used and trained inside the agent. Only tests inside the agent (AGENTDECISIONBENCH) showed which decision models work there. Trained on the agent's states, AGENTDECISION-4B beat JEV inside the agent and, with thresholds fitted on agent trajectories (JEVAGENTHARNESS), made most routine choices. Models trained this way made the agent 81.1–89.0% cheaper and up to 2.5 times faster, without losing 3 or more points of success.
Limitations
All tasks and prompts are in English, and most runs use Gemini agent LLMs, with DeepSeek and OpenAI models in a few. With other languages or agent LLMs, other kinds of choices may be worth delegating. Our main tests are non-inferiority tests. They show that task success drops by less than a fixed margin (3 points, 5 on -bench), and showing equal success would need an equivalence test. The thresholds and the trained decision model are fitted to an agent's own runs, so a new agent, new tools or a new task family call for refitting the thresholds and, for the best accuracy, training on that agent's states, as we did for ALFWorld. In coding agents, whose actions are free text, the decision model can only choose which LLM writes a step. There the savings were small (7.0–10.5%), and sending the steps that only read files to a fast LLM gave no reliable saving, because the decision model could hardly tell those steps from the others (App. C.3). Prices and latencies are those we recorded, and they change with providers, hardware and how the decision model is served (App. F). We did not compare with learned routers such as RouteLLM on the same tasks, and GRPO added no measurable gain over SFT in our runs. In deployment, the share of answers above the threshold could be tracked to notice when the tasks drift and the thresholds need refitting.
Ethical Considerations
We will release the benchmark, harness, recipes, trained models and data (App. F). Training on JEV outputs and redistributing derived weights depend on the provider's terms, and StartLux-Decision weights are licensed CC BY-NC 4.0. All benchmarks are public, and we collect no personal data: DECISIONGYM customers, orders and e-mail addresses are generated from templates. Lower cost can make a fast model's failures on safety-relevant decisions easy to overlook. With the cheaper Flash-Lite as agent LLM, the stop guard accepted 40.7% of the LLM's own wrong attempts to end the task (App. Table 7), so a decision-model guard should never be the only control on an irreversible action. If an adapter fails, the step runs without it (§4). Adapters therefore control only cost and speed and should not be used as security boundaries. We did not test adversarial observations or policy injection, which can flip a decision model's typed answers (Xu et al., 2026; Hu et al., 2026; Wu and Lim, 2026a), so our results hold for benign states only. Cheaper agent control also lowers the cost of misuse at scale.
References
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations.
Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra, Pei Zhou, Aditya Gupta, Dheeraj Rajagopal, Karthik Kappaganthu, Yiming Yang, Shyam Upadhyay, Manaal Faruqui, and Mausam Mausam. 2024. Automix: Automatically mixing language models. In Advances in Neural Information Processing Systems, volume 37, pages 131000–131034. Curran Associates, Inc.
alibiserikbay. 2026. JevK5: open-weight Jev alternative. https://huggingface.co/alibiserikbay/JevK5.
Diogo Almeida. 2026. Introducing System One models & Jev. https://typesafe.ai/blog/introducing-system-one-models-and-jev.
Anastasios Nikolas Angelopoulos, Stephen Bates, Adam Fisch, Lihua Lei, and Tal Schuster. 2024. Conformal risk control. In The Twelfth International Conference on Learning Representations.
Anthropic. 2025. Claude Code. https://github.com/anthropics/claude-code.
Anthropic. 2026. Introducing Claude Opus 5.5. https://www.anthropic.com/news/claude-opus-5-5.
Victor Barres, Honghua Dong, Soham Ray, Xujie Si, and Karthik R Narasimhan. 2026. -bench: Evaluating conversational agents in a dual-control environment. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 6736–6782. PMLR.
Peter Belcak, Greg Heinrich, Shizhe Diao, Yonggan Fu, Xin Dong, Saurav Muralidharan, Yingyan Celine Lin, and Pavlo Molchanov. 2026. Small language models are the future of agentic ai. Preprint, arXiv:2506.02153.
Benchmark Heaven. 2026. JevBench: A benchmark for Jev-class decision models. https://github.com/fstandhartinger/jevbench.
Roger L. Berger and Dennis D. Boos. 1994. P values maximized over a confidence set for the nuisance parameter. Journal of the American Statistical Association, 89(427):1012–1016.
Lingjiao Chen, Matei Zaharia, and James Zou. 2024. FrugalGPT: How to use large language models while reducing cost and improving performance. Transactions on Machine Learning Research. Featured Certification.
Xiusi Chen, Shanyong Wang, Cheng Qian, Hongru Wang, Peixuan Han, and Heng Ji. 2025. DecisionFlow: Advancing large language model as principled decision maker. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 16668–16692, Suzhou, China. Association for Computational Linguistics.
Zehua Cheng, Wei Dai, and Jiahao Sun. 2026. this-that-model-1.0: A typed decision model that decides in 30 ms, for a millionth of a cent. Preprint, arXiv:2609.23886.
Konstantina Christakopoulou, Shibl Mourad, and Maja Matarić. 2024. Agents thinking fast and slow: A talker-reasoner architecture. Preprint, arXiv:2410.08328.
Cloudflare. 2026. Clef. https://huggingface.co/Cloudflare/clef.
Convai Innovations. 2026. Laya typed-decisions. https://huggingface.co/convaiinnovations/laya-typed-decisions.
Marc-Alexandre Côté, Ákos Kádár, Xingdi Yuan, Ben Kybartas, Tavian Barnes, Emery Fine, James Moore, Matthew Hausknecht, Layla El Asri, Mahmoud Adada, Wendy Tay, and Adam Trischler. 2019. TextWorld: A Learning Environment for Text-Based Games, page 41–75. Springer International Publishing.
Mehul Damani, Isha Puri, Stewart Slocum, Idan Shenfeld, Leshem Choshen, Yoon Kim, and Jacob Andreas. 2026. Beyond binary rewards: Training LMs to reason about their uncertainty. In The Fourteenth International Conference on Learning Representations.
DeepSeek-AI. 2026. Deepseek harness: Everything is a plugin. https://github.com/deepseek-ai/deepseek-harness.
Jasper Dekoninck, Maximilian Baader, and Martin Vechev. 2025. A unified approach to routing and cascading for LLMs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 12987–13010. PMLR.
Tobias Deußer, Lorenz Sparrenberg, and Rafet Sifa. 2026. Evaluating and benchmarking the system one model jev. Preprint, arXiv:2609.37647.
earendil-works. 2026. Pi: Ai agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI. https://github.com/earendil-works/pi.
Bradley Efron and Robert J. Tibshirani. 1993. An Introduction to the Bootstrap. Springer US.
Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. 2025a. Group-in-group policy optimization for LLM agent training. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
Tao Feng, Yanzhen Shen, and Jiaxuan You. 2025b. Graphrouter: A graph-based router for LLM selections. In The Thirteenth International Conference on Learning Representations.
Tao Feng, Fangxu Yu, Haozhen Zhang, Zhongjie Dai, Liangqi Yuan, Zijie Lei, Weizhi Zhang, Kunlun Zhu, Haodong Yue, Keyang Xuan, Ge Liu, and Jiaxuan You. 2026a. Llmrouter: Unified infrastructure for developing, evaluating, and deploying llm routers. Preprint, arXiv:2608.06867.
Tao Feng, Haozhen Zhang, Zijie Lei, Pengrui Han, Mostofa Patwary, Mohammad Shoeybi, Bryan Catanzaro, and Jiaxuan You. 2026b. Fusionfactory: Fusing llm capabilities with multi-llm log data. Preprint, arXiv:2507.10540.
Mohit Garg. 2026. imajev: an open Jev-style decision model for images and text.
Yonatan Geifman and Ran El-Yaniv. 2017. Selective classification for deep neural networks. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.
Yonatan Geifman, Guy Uziel, and Ran El-Yaniv. 2019. Bias-reduced uncertainty estimation for deep neural classifiers. In International Conference on Learning Representations.
Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. 2024. MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations.
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. 2017. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1321–1330. PMLR.
Jianyuan Guo, Zhiwei Hao, Chengcheng Wang, Cheng Fan, Tingzhang Luo, Hongguang Li, Ying Gao, Hefei Mei, Jiankun Peng, Rongjian Xu, Minjing Dong, Han Wu, Mengyu Zheng, Kai Han, Shiqi Wang, Chang Xu, and Yunhe Wang. 2026a. From question answering to task completion: A survey on agent system and harness design. Preprint, arXiv:2606.20683.
Ruoqi Guo, Yi Liu, Gelei Deng, Yuekang Li, Lida Zhao, Yutao Wu, Simin Chen, Ying Zhang, and Leo Yu Zhang. 2026b. Just ask jev: Reinforcement learning for calibrated decisions as a zero-shot detector of ai alignment failures. Preprint, arXiv:2609.29429.
Hanno Labs. 2026. Bosun 3.1 1.7b: A small, calibrated model for typed decisions. https://huggingface.co/Hanno-Labs/bosun-v3.1-1.7b.
Harbor Framework Team. 2026. Harbor: A framework for evaluating and optimizing agents and models in container environments.
Heman10x. 2026. OpenJev (Verdict): Non-autoregressive decision engine (151m). https://github.com/Heman10x-NGU/Verdict-open-jev.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. Preprint, arXiv:1503.02531.
Sture Holm. 1979. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2):65–70.
Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.
Jianyi Hu, Hangtao Zhang, Yi Liu, Yeqi Zeng, Li Zeng, Xianlong Wang, Rui Wang, and Leo Yu Zhang. 2026. Jevadvbench: A benchmark and black-box attacks for reinforcement learning for calibrated decisions models. Preprint, arXiv:2609.31142.
InternLM. 2026. Intern-Decision. https://huggingface.co/collections/internlm/intern-decision.
Dongming Jiang, Yi Li, and Bingzhe Li. 2026. Jevmem: System-one-controlled agentic memory for efficient ai agents. Preprint, arXiv:2609.23986.
Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R Narasimhan. 2024. SWE-bench: Can language models resolve real-world github issues? In The Twelfth International Conference on Learning Representations.
Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan O Arik, Dong Wang, Hamed Zamani, and Jiawei Han. 2025. Search-r1: Training LLMs to reason and leverage search engines with reinforcement learning. In Second Conference on Language Modeling.
D. Kahneman. 2011. Thinking, Fast and Slow. Farrar, Straus and Giroux.
Minki Kang, Jongwon Jeong, Seanie Lee, Jaewoong Cho, and Sung Ju Hwang. 2025. Distilling LLM agent into small models with retrieval and code tools. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
Sayash Kapoor, Benedikt Stroebl, Peter Kirgis, Nitya Nadgir, Zachary S Siegel, Boyi Wei, Tianci Xue, Ziru Chen, Felix Chen, Saiteja Utpala, Franck Ndzomga, Dheeraj Oruganty, Sophie Luskin, Kangheng Liu, Botao Yu, Amit Arora, Dongyoon Hahm, Harsh Trivedi, Huan Sun, and 12 others. 2026. Holistic agent leaderboard: The missing infrastructure for AI agent evaluation. In The Fourteenth International Conference on Learning Representations.
Sayash Kapoor, Benedikt Stroebl, Zachary S Siegel, Nitya Nadgir, and Arvind Narayanan. 2025. AI agents that matter. Transactions on Machine Learning Research.
Philipp Koehn. 2004. Statistical significance tests for machine translation evaluation. In Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, pages 388–395, Barcelona, Spain. Association for Computational Linguistics.
Thomas Kwa, Ben West, Joel Becker, Amy Deng, Katharyn Garcia, Max Hasin, Sami Jawhar, Megan Kinniment, Nate Rush, Sydney Von Arx, Ryan Bloom, Thomas Broadley, Haoxing Du, Brian Goodrich, Nikola Jurkovic, Luke Harold Miles, Seraphina Nix, Tao Lin, Chris Painter, and 7 others. 2026. Measuring ai ability to complete long software tasks. Preprint, arXiv:2503.14499.
Ted Kwartler, Alan Aqrawi, and Arian Abbasi. 2026. Harness tokenomics: A router for the enterprise agentic control plane. Preprint, arXiv:2609.28919.
Jacky Kwok, Hangoo Kang, Tarun Suresh, Jon Saad-Falcon, Marco Pavone, Christopher Ré, and Azalia Mirhoseini. 2026. Contrastive language models. Notion Blog.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th Symposium on Operating Systems Principles, SOSP '23, page 611–626. ACM.
Michael Laskey, Jonathan Lee, Roy Fox, Anca Dragan, and Ken Goldberg. 2017. Dart: Noise injection for robust imitation learning. Preprint, arXiv:1703.09327.
lexmount. 2026. WebJev: Jev-like decision models specialized for browser use. https://github.com/lexmount/WebJev.
Yubo Li, Yidi Miao, Ramayya Krishnan, and Rema Padman. 2026. Jev-as-a-judge: Accept when confident, escalate when unsure. Preprint, arXiv:2609.26550.
Bill Yuchen Lin, Yicheng Fu, Karina Yang, Faeze Brahman, Shiyu Huang, Chandra Bhagavatula, Prithviraj Ammanabrolu, Yejin Choi, and Xiang Ren. 2023. Swiftsage: A generative agent with fast and slow thinking for complex interactive tasks. In Advances in Neural Information Processing Systems, volume 36, pages 23813–23825. Curran Associates, Inc.
Qiqiang Lin, Muning Wen, Qiuying Peng, Guanyu Nie, Junwei Liao, Jun Wang, Xiaoyun Mo, Jiamu Zhou, Cheng Cheng, Yin Zhao, Jun Wang, and Weinan Zhang. 2025. Robust function-calling for on-device language model via function masking. In The Thirteenth International Conference on Learning Representations.
Guoming Ling, Muen Xue, and Zijian Ye. 2026. Jev in the wild: A data-driven analysis of the jev model's functionality, applications and ecosystem. Preprint, arXiv:2609.30216.
Xinchen Liu, Hang Zhou, Yingjie Zong, Yuchuan Tian, Liuyang Song, Shuo Zhang, Yulong Li, Wei He, Mengyu Zheng, Runke Liu, Siyang Cheng, Xiang Kuang, Hailin Hu, Kai Han, and Yunhe Wang. 2026. Agentic routing: The harness-native data flywheel. Preprint, arXiv:2607.11399.
Jiarui Lu, Thomas Holleis, Yizhe Zhang, Bernhard Au-mayer, Feng Nan, Haoping Bai, Shuang Ma, Shen Ma, Mengyu Li, Guoli Yin, Zirui Wang, and Ruoming Pang. 2025. ToolSandbox: A stateful, conversational, interactive evaluation benchmark for LLM tool use capabilities. In Findings of the Association for Computational Linguistics: NAACL 2025, pages 1160–1183, Albuquerque, New Mexico. Association for Computational Linguistics.
Chang Ma, Junlei Zhang, Zhihao Zhu, Cheng Yang, Yujiu Yang, Yaohui Jin, Zhenzhong Lan, Lingpeng Kong, and Junxian He. 2024. Agentboard: An analytical evaluation board of multi-turn llm agents. In Advances in Neural Information Processing Systems, volume 37, pages 74325–74362. Curran Associates, Inc.
Weiyu Ma, Liangbing Zhao, Yongcheng Zeng, and Jian Zhao. 2026. Jev-star: Fast, low-cost starcraft ii control with language-model planning. Preprint, arXiv:2609.27331.
Mapika. 2026. decider-4b: typed decisions with calibrated probabilities in one forward pass, 4b dense. https://huggingface.co/Mapika/decider-4b.
Mike A Merrill, Alexander Glenn Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi, Jeong Yeon Shin, Thomas Walshe, E. Kelly Buchanan, Junhong Shen, Guanghao Ye, Haowei Lin, Jason Poulos, Maoyu Wang, Marianna Nezhurina, Di Lu, Orfeas Menis Mastromichalakis, Zhiwei Xu, and 65 others. 2026. Terminal-bench: Benchmarking agents on hard, realistic tasks in command line interfaces. In The Fourteenth International Conference on Learning Representations.
Hussein Mozannar and David Sontag. 2020. Consistent estimators for learning to defer to an expert. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 7076–7087. PMLR.
multimodalart. 2026. Jev Decision Index. https://huggingface.co/spaces/multimodalart/jev-decision-index.
Isaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E. Gonzalez, M Waleed Kadous, and Ion Stoica. 2025. RouteLLM: Learning to route LLMs from preference data. In The Thirteenth International Conference on Learning Representations.
OpenAI. 2026a. Codex CLI: Lightweight coding agent that runs in your terminal. https://github.com/openai/codex.
OpenAI. 2026b. Decisions. https://developers.openai.com/api/docs/guides/decisions.
OpenAI. 2026c. GPT-6 Astra system card. https://deploymentsafety.openai.com/gpt-6-astra.
openjev. 2026. OpenJev: Typed decisions about text, web pages and screenshots. https://huggingface.co/openjev/openjev.
Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. 2024. Memgpt: Towards llms as operating systems. Preprint, arXiv:2310.08560.
Mahdi Pakdaman Naeini, Gregory Cooper, and Milos Hauskrecht. 2015. Obtaining well calibrated probabilities using bayesian binning. Proceedings of the AAAI Conference on Artificial Intelligence, 29(1).
Shishir G Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, and Joseph E. Gonzalez. 2025. The berkeley function calling leaderboard (BFCL): From tool use to agentic evaluation of large language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 48371–48392. PMLR.
Shishir G Patil, Tianjun Zhang, Xin Wang, and Joseph E. Gonzalez. 2024. Gorilla: Large language model connected with massive APIs. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.
Dzianis Piatrashyn, Nikita Kotelevskii, Kirill Grishchenkov, Nikita Glazkov, Ivan Nasonov, Ilya Makarov, Timothy Baldwin, Preslav Nakov, Roman Vashurin, and Maxim Panov. 2026. Redact: Uncertainty-aware deferral for llm agents. Preprint, arXiv:2604.07036.
Cheng Qian, Emre Can Acikgoz, Qi He, Hongru WANG, Xiusi Chen, Dilek Hakkani-Tür, Gokhan Tur, and Heng Ji. 2025. ToolRL: Reward is all tool learning needs. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
Delip Rao and Chris Callison-Burch. 2026. Jev vs. llms as rubric judges: Cheaper, faster, and wrong in the same places. Preprint, arXiv:2609.29769.
razorback16. 2026. OpenJev: Open, Jev-compatible System One decision server on DiffusionGemma. https://github.com/razorback16/openjev.
Allen Z. Ren, Anushri Dixit, Alexandra Bodrova, Sumeet Singh, Stephen Tu, Noah Brown, Peng Xu, Leila Takayama, Fei Xia, Jake Varley, Zhenjia Xu, Dorsa Sadigh, Andy Zeng, and Anirudha Majumdar. 2023. Robots that ask for help: Uncertainty alignment for large language model planners. In Proceedings of The 7th Conference on Robot Learning, volume 229 of Proceedings of Machine Learning Research, pages 661–682. PMLR.
Stephen Robertson and Hugo Zaragoza. 2009. The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends® in Information Retrieval, 4:1–174.
Hayley Ross, Ameya Sunil Mahabaleshwarkar, and Yoshi Suhara. 2025. When2Call: When (not) to call tools. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 3391–3409, Albuquerque, New Mexico. Association for Computational Linguistics.
Stephane Ross, Geoffrey Gordon, and Drew Bagnell. 2011. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, volume 15 of Proceedings of Machine Learning Research, pages 627–635, Fort Lauderdale, FL, USA. PMLR.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. Preprint, arXiv:1707.06347.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik R Narasimhan, and Shunyu Yao. 2023. Reflexion: language agents with verbal reinforcement learning. In Thirty-seventh Conference on Neural Information Processing Systems.
Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Cote, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. 2021. ALFWorld: Aligning text and embodied environments for interactive learning. In International Conference on Learning Representations.
Yifan Song, Da Yin, Xiang Yue, Jie Huang, Sujian Li, and Bill Yuchen Lin. 2024. Trial and error: Exploration-based trajectory optimization of LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7584–7600, Bangkok, Thailand. Association for Computational Linguistics.
StartLuxLabs. 2026. StartLux-Decision: Typed decision models from 0.8b to 35b-a3b. https://github.com/StartLuxLabs/startlux-decision.
Samy Suissa and Jonathan J. Shuster. 1985. Exact unconditional sample sizes for the binomial trial.
Journal of the Royal Statistical Society. Series A (General), 148(4):317.
Toshiro Tango. 1998. Equivalence test and confidence interval for the difference in proportions for the paired-sample design. Statistics in Medicine, 17(8):891–908.
Terminal-Bench-Science Team. 2026. Terminal-Bench-Science: Evaluating AI agents on research workflows across scientific domains.
Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, and Niranjan Balasubramanian. 2024. AppWorld: A controllable world of apps and people for benchmarking interactive coding agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 16022–16076, Bangkok, Thailand. Association for Computational Linguistics.
Unsloth AI. 2026. Train your own decision model with Unsloth. https://unsloth.ai/docs/basics/train-your-own-decision-model-with-unsloth.
Hongru Wang, Cheng Qian, Wanjun Zhong, Xiusi Chen, Jiahao Qiu, Shijue Huang, Bowen Jin, Mengdi Wang, Kam-Fai Wong, and Heng Ji. 2025a. Acting less is reasoning more! teaching model to act efficiently. Preprint, arXiv:2504.14870.
Ningning Wang, Xavier Hu, Pai Liu, He Zhu, Yue Hou, Heyuan Huang, Shengyu Zhang, Jian Yang, Jiaheng Liu, Ge Zhang, Changwang Zhang, Jun Wang, Yuchen Eleanor Jiang, and Wangchunshu Zhou. 2025b. Efficient agents: Building effective agents while reducing cost. Preprint, arXiv:2508.02694.
Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Daniel Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, and 5 others. 2025c. Openhands: An open platform for AI software developers as generalist agents. In The Thirteenth International Conference on Learning Representations.
Zihan Wang, Kangrui Wang, Qineng Wang, Pingyue Zhang, Linjie Li, Zhengyuan Yang, Xing Jin, Kefan Yu, Minh Nhat Nguyen, Licheng Liu, Eli Gottlieb, Yiping Lu, Kyunghyun Cho, Jiajun Wu, Li Fei-Fei, Lijuan Wang, Yejin Choi, and Manling Li. 2025d. Ragen: Understanding self-evolution in llm agents via multi-turn reinforcement learning. Preprint, arXiv:2504.20073.
Tiantong Wu and Wei Yang Bryan Lim. 2026a. Decision hijacking: Prompt injection attacks on jev's typed probabilistic decisions. Preprint, arXiv:2609.28613.
Tiantong Wu and Wei Yang Bryan Lim. 2026b. Reflex with jev for efficient selective control in llm agents. Preprint, arXiv:2609.26532.
Zhiheng Xi, Chenyang Liao, Guanyu Li, Zhihao Zhang, Wenxiang Chen, Binghai Wang, Senjie Jin, Yuhao Zhou, Jian Guan, Wei Wu, Tao Ji, Tao Gui, Qi Zhang, and Xuanjing Huang. 2026. Agentprm: Process reward models for llm agents via step-wise promise and progress. In Proceedings of the ACM Web Conference 2026, page 4184–4195. ACM.
Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh Jing Hua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, Yitao Liu, Yiheng Xu, Shuyan Zhou, Silvio Savarese, Caiming Xiong, Victor Zhong, and Tao Yu. 2024. Osworld: Benchmarking multimodal agents for open-ended tasks in real computer environments. In Advances in Neural Information Processing Systems, volume 37, pages 52040–52094. Curran Associates, Inc.
Zixiang Xu, Zirui Song, Chiyu Zhang, Xiuying Chen, Xi Liu, Xiyang Hu, and Yue Zhao. 2026. Jevout: Natural context can flip decision models. Preprint, arXiv:2609.30243.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
John Yang, Carlos Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. Swe-agent: Agent-computer interfaces enable automated software engineering. In Advances in Neural Information Processing Systems, volume 37, pages 50528–50652. Curran Associates, Inc.
Ruihan Yang, Fanghua Ye, Xiang Wei, Ruoqing Zhao, Kang Luo, Xinbo Xu, Bo Zhao, Ruotian Ma, Shanyi Wang, Zhaopeng Tu, Xiaolong Li, Deqing Yang, and Liefeng Bo. 2026. Think fast and slow: Step-level cognitive depth adaptation for LLM agents. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 146766–146790. PMLR.
Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik R Narasimhan. 2025. -bench: A benchmark for tool-agent-user interaction in real-world domains. In The Thirteenth International Conference on Learning Representations.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, and Yuan Cao. 2023. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations.
Fan Zhang, Yankai Chen, Zhuohan Xie, Yixi Zhou, Sijia Peng, Lei Fan, Xinhua Ji, Cunyuan Zheng, Huangyong Shan, Philip S. Yu, Xue Liu, Yu Chen, Preslav Nakov, and Songwei He. 2026. Same scores,
different decisions: Evaluating jev and language models for legal document understanding. Preprint, arXiv:2609.27678.
Haozhen Zhang, Tao Feng, and Jiaxuan You. 2025a. Router-r1: Teaching LLMs multi-round routing and aggregation via reinforcement learning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
Jiajie Zhang, Nianyi Lin, Lei Hou, Ling Feng, and Juanzi Li. 2025b. AdaptThink: Reasoning models can learn when to think. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 3716–3730, Suzhou, China. Association for Computational Linguistics.
Jianguo Zhang, Tian Lan, Ming Zhu, Zuxin Liu, Thai Hoang, Shirley Kokane, Weiran Yao, Juntao Tan, Zhiwei Liu, Yihao Feng, Juan Carlos Niebles, Shelby Heinecke, Huan Wang, Silvio Savarese, and Caiming Xiong. 2025c. xLAM: A family of large action models to empower AI agent systems. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 11583–11597, Albuquerque, New Mexico. Association for Computational Linguistics.
Chujie Zheng, Hao Zhou, Fandong Meng, Jie Zhou, and Minlie Huang. 2024. Large language models are not robust multiple choice selectors. In The Twelfth International Conference on Learning Representations.
Andy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang, and Yu-Xiong Wang. 2024a. Language agent tree search unifies reasoning, acting, and planning in language models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 62138–62160. PMLR.
Yifei Zhou, Andrea Zanette, Jiayi Pan, Sergey Levine, and Aviral Kumar. 2024b. ArCHer: Training language model agents via hierarchical multi-turn RL. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 62178–62209. PMLR.
Kunlun Zhu, Zijia Liu, Bingxuan Li, Muxin Tian, Yingxuan Yang, Jiaxun Zhang, Pengrui Han, Qipeng Xie, Fuyang Cui, Weijia Zhang, Xiaoteng Ma, Xiaodong Yu, Gowtham Ramesh, Jialian Wu, Zicheng Liu, Pan Lu, James Zou, and Jiaxuan You. 2025. Where llm agents fail and how they can learn from failures. Preprint, arXiv:2509.25370.
zilliztech. 2025. DeepSearcher: Open source deep research alternative to reason and search on private data. https://github.com/zilliztech/deep-searcher.
Appendix Contents
The first, unnumbered part gives compute, data and AI use. Sections A–E follow §§2–6 of the paper, F gives models, costs and licences, G the result tables of §7, H further related work and I three recorded trajectories as case studies. AGENTDECISION-4B V1 is AGENTDECISION-4B as frozen after SFT and GRPO for Stage 2, before its training on public tool-use data.
Compute, Data and AI Use ..... 15
A Delegation Theory ..... 15
B AGENTDECISIONBENCH ..... 17
B.1 Suites and the DECISIONGYM Environment ..... 17
B.2 Example Tasks ..... 17
B.3 Typed Questions and Decider Prompts ..... 18
B.4 Prompts ..... 18
B.5 Gold Labels, Probes and Measurement Arms ..... 24
B.6 Benchmark Difficulty: Hard States ..... 24
C JEVAGENTHARNESS ..... 25
C.1 The Final Harness (Exploratory) ..... 25
C.2 JEVAGENTHARNESS in mini-SWE-agent (Exploratory) ..... 26
C.3 Routing in Two More Open-Source Harnesses ..... 26
C.4 Roles of a Decision Model in a Harness ..... 26
D Post-Training AGENTDECISION-4B ..... 27
D.1 Readout, Labels and Recipes ..... 27
D.2 The Training Chain ..... 27
D.3 Recipe Takeaways by Stage ..... 28
D.4 Which Parts of the Recipe Matter ..... 29
D.5 A Sub-1B Decision Model with a Scoring Head ..... 29
D.6 DECISIONGYM-Hard ..... 29
D.7 The Training Recipe on ALFWorld ..... 29
D.8 Agent-State Accuracy on Public Benchmarks ..... 30
D.9 More Training on Public Tool-Use Data ..... 31
D.10 Train/Evaluation Hygiene ..... 31
E Protocol and Statistics ..... 32
F Models, Cost and Licences ..... 33
G Result Tables ..... 33
G.1 All Registered Tests ..... 33
G.2 Stage 1: The Module Map ..... 34
G.3 More Stage-1 and Stage-2 Results ..... 34
G.4 Results Near the Ceiling ..... 34
G.5 Notes on Figure 4 and Tables 1–3 ..... 34
G.6 Evaluation Levels and Reach ..... 37
G.7 More Decision Models as Baselines ..... 38
G.8 Variants of the Decision Model ..... 39
G.9 A Shifted DecisionGym Split ..... 40
G.10 Hard Tasks (Exploratory) ..... 41
H Extended Related Work ..... 41
I Case Studies ..... 42
Compute, Data and AI Use
Compute, software and runs. The open decision models have 0.8B to 27B parameters, as their names state, and the API models (JEV, Gemini, GPT, DeepSeek) are used through their providers. We trained and served the open models on cloud hosts with one NVIDIA L40S, A10G or L4 GPU. Table 16 gives the GPU hours of each training stage. Training used PyTorch, Hugging Face Transformers, TRL and PEFT (the StartLux track used Miles), and serving used vLLM or llama.cpp. Unless a table states attempts, each arm ran each task once at temperature 0, and every number comes from that single run.
Data and annotation. DECISIONGYM tasks, customers, orders and e-mail addresses are generated from templates, so the tasks and agent states we release contain no personal information and no offensive text. Public benchmark items are used as distributed. Labels come from DECISIONGYM's answer key and the benchmarks' own answers and checkers, and the -bench user is an LLM simulator, so no human annotators or study participants took part.
Use of AI assistants. LLMs play three roles in this work. They are the objects of study, called through their APIs in every experiment (agent LLMs and decision models). JEV and Gemini also answered agent states to build the training data of AGENTDECISION-4B (§5). Finally, AI assistants helped write and test code, check references and revise the writing, under the authors' direction. The paper was not generated automatically. The authors designed the study, checked every result and every sentence, and take full responsibility for the content.
A Delegation Theory
Objective. A combination of delegations gives each decision point that the decision model handles a mode and a threshold, and the LLM keeps the rest. With expected cost per episode and task success , we seek subject to , where is LLM-only and points on DECISIONGYM (§6).
Notation. At step the harness holds the history . Decision point has options , possibly with an extra option (none of them, or end the task). By default the LLM decides, . A decision model reads a text rendering of and returns . Its answer is with confidence , and it is calibrated at if . With threshold , width and LLM proposal :
REPLACE:
CASCADE: if , else
ASSIST:
GUARD: accept iff
TRIGGER: invoke module iff
| Decision point | Q | Rep | Cas | Ass | Gua | Tri |
|---|---|---|---|---|---|---|
| Tool selection | CHOICE | ✓ | ✓ | ✓ | ✓ | ○ |
| Tool arguments | CHOICE | ✓ | ✓ | ○ | ○ | ○ |
| Memory write | NOUL | ○ | ○ | ○ | ○ | ✓ |
| Memory read | CHOICE | ○ | ○ | ✓ | ○ | ○ |
| Reflection | NOUL | ○ | ○ | ○ | ○ | ✓ |
| Stopping | NOUL | ○ | ○ | ○ | ✓ | ✓ |
| Routing | NOUL | ○ | ○ | ○ | ○ | ✓ |
| Action-only | CHOICE | ✓ | ✓ | ✓ | ○ | ○ |
Table 4: Implemented pairs of decision point and mode. √: a Stage-1 configuration. ○: added later as an exploratory row (App. G.2). CASCADE with is REPLACE, and LLM-only is ASSIST with or GUARD with .
Proposition 1. Under CASCADE, each query to the decision model costs and returns with confidence . A rule accepts with probability and otherwise defers to the LLM at extra cost . Let , and let an error cost whatever the wrong option, with losses adding across decisions. Among rules that see the state only through , expected loss is minimised by
and, if the decision model is calibrated and the LLM's accuracy does not depend on , by the threshold rule
Proof sketch. Let . Accepting costs in expected errors, deferring costs , and is paid either way, so the expected loss is . Since , with equality iff accepts where and defers where , Eq. 3 is optimal. Under calibration and a constant , increases in , which gives Eq. 4. An over-confident model needs a threshold higher by , so we fit on held-out decisions.
Triggers and guards. A trigger that invokes module at calibrated need probability pays iff , for benefit when needed, harm when not and cost . A guard follows the same rule with , and , where and are the chances that a rejection fixes a wrong proposal or breaks a right one.
Proposition 2. Take a gate with need prevalence , resolution , opportunities, query price , and benefit or harm of firing when needed or not. Under additive effects, common opportunities and a need-independent firing cost, its expected gain over a random gate that fires at the same rate is
which grows with the resolution whatever the accuracy. Proof sketch. The gate fires at rate and the random gate at independently of need. The difference per opportunity is , with and . An always-no gate is accurate but gains nothing (). On DECISIONGYM, and (App. B.5).
Deployed thresholds. The registered cascade tests plug estimates of , , and V from shadow-mode trajectories into Eq. 3. We sort paired decisions into equal-mass confidence bins of at least 20 each. is the lowest confidence from which every higher bin has a non-negative estimated advantage, and the harness always defers if there is none. We set and estimate as the success difference between calibration episodes with every decision at d right and those with one wrong. For tool selection and arguments the fits are 1.00 and 0.99 for JEV with Flash (other fits in results/calibration/).
Registered hypotheses. H1 says that the plug-in threshold has lower held-out regret than a fixed default and that recalibration returns over-confident models to the cost–success front. H2 says that at a matched firing rate a gate's gain over a random gate is proportional to J (Eq. 5). H3 says that among configurations non-inferior to LLM-only, those delegating bounded, recoverable, meta-level decisions dominate the front, and those delegating copy-dependent arguments or irreversible actions do not. H4 says that Monte-Carlo targets beat teacher distillation. H1 and H3 were falsified, and H2 could not be estimated (App. B.5). H4 was not tested at matched accuracy, because Stage 1 ended without a Monte-Carlo checkpoint. Fitted thresholds beat the default in 70 of 72 cells. After temperature scaling, 0 of the 3 over-confident cells returned to the cost-success front. In the tool-cascade test with Flash, JEV's cascade delegates irreversible, copy-dependent, bounded-recoverable decisions yet was non-inferior ( points) at savings, a registered counterexample to H3.
B AGENTDECISIONBENCH
B.1 Suites and the DECISIONGYM Environment
Table 5 lists every suite of AGENTDECISION-BENCH.
| Suite | Size Decision points |
|---|---|
| L1: isolated | |
| BFCL v4 (6 categories) | 1,114 tool, args, none |
| When2Call (test) | 928 call/ask/refuse/answer |
| L2: step-level, recorded states with an answer key | |
| DECISIONGYM common states | 200 tool |
| L3: task-level, our own agent loop | |
| DECISIONGYM | 500 seven (no action-only) |
| airline + retail | tool, args, guard, route |
| L3: hard tasks, real harnesses§ | |
| SWE-bench Verified | guard, stop, route, reflect |
| Terminal-Bench-Science | guard, stop, reflect |
| Stage 2: fresh suites | |
| DECISIONGYM, new seeds | 500 chosen combination |
| telecom (sample) | chosen combination |
Table 5: Suites (size × attempts, L1 without development items). Sizes are registered except for the hard tasks. 149 tested (15 airline tasks refit ). Exploratory: 15 of 37 Terminal-Bench-Science tasks qualified under a registered rule. ALFWorld and Terminal-Bench 2.0 (budget) were registered but not run. ALFWorld later ran as exploratory rows (App. G.2).
World, tasks and success. Each DECISIONGYM task samples a world with 12 users, 2–4 orders per user and stock for 10 items. At the evaluation settings every task offers the same 68 tools in shuffled order, plus finish. Seven are core tools (find a user, list orders, cancel, refund, check stock, ship, send a message), one asks the user, 31 are near-duplicates of core tools that read or write, and 29 are unrelated tools such as a weather lookup. The evaluation set uses the two hardest of seven task families. In clarify a needed detail is missing, so the agent must ask a scripted customer before any state-changing call. In multi, 2–12 customers each make a cancel or ship request, and the task asks for the total amount of the processed orders. Canonical plans have a median of 5.0 steps on clarify and 10.0 on multi. In strict mode, used in evaluation, a state-changing call that deviates from every gold call or precedes a required question fails the episode. Success is checked on the final world state and, where the task asks for a number, on the final answer.
From the design principles to the generator. (i) An answer key at every state. A task is generated with its plan, and from a copy of any solvable state, also after the agent's own detours, the answer key finishes the task and counts the steps it needs (App. B.5). (ii) Disjoint seeds. A task is a deterministic function of its seed, and training, threshold fitting, both test stages and the later experiments use separate seed ranges (App. D.10). (iii) Difficulty. Switches set the distractor tools, a missing detail the agent must ask for, the number of customers, renamed tools with new task kinds (App. G.9) and a new business rule (DECISIONGYM-Hard, App. D.6). (iv) Cost. A scripted customer answers the agent, so an episode costs only the model calls (App. F).

one call: LLM 0.00011, 223 ms
Figure 6: In one recorded trajectory on a new DECISIONGYM task, the decision model answered only when it was confident. At step 3, JEV's confidence was below the fitted threshold , so the LLM chose the tool; at step 4 it reached , and the tool ran without an LLM call. Bars: JEV's probabilities for the top two of the 69 offered tools (JEV reports its confidence separately).
A worked episode. Figure 6 follows one recorded trajectory of the chosen combination on a new task, picked by a fixed rule (threshold ). A deferred step pays for both the decision-model call and the LLM call.
B.2 Example Tasks
Table 6 shows two tasks generated at development seeds, which no evaluation uses, with the evaluation settings. The answer key accepts every open plan step that makes progress and uses only values the agent has seen. A near-duplicate tool that only reads returns a plausible result that does not advance the task.
B.3 Typed Questions and Decider Prompts
Figure 7 places the eight decision points in the harness loop. App. B.4 gives the question asked at each point, the state text and every prompt. An LLM decider read through log-probabilities sums the probabilities of tokens equal to an option label (after stripping whitespace and trailing punctuation), gives absent labels and renormalises. Without log-probabilities the generated token takes all the mass, and a verbalised confidence goes to the answer with the rest spread uniformly. Trained models use the full-logit readout of App. D.
B.4 Prompts
This subsection lists every prompt our code sends to a model in the experiments, generated from the code by scripts/paper_prompts.py. Examples come from development seed 600, which no evaluation uses. marks a value filled in at run time, an italic [note] marks our shortening, and a hook marks a line we wrapped. No prompt contains the label of the decision it asks about. The answer key and every label stay in the decision log. Training data and teacher labels add no prompt of their own, since teachers answer the same requests and training rows use the trained-model format.
Decision-model inputs. Every decision model reads the same state text and one typed question, a choice among options or a yes/no question. The reference loop builds the state below. The questions come next, then the request that carries them.
P1. Decision-model state (reference loop). Source: src/jevharness/harness/agent.py: JevAgent._s1_state, src/jevharness/harness/config.py. MEMORY and LATEST REFLECTION appear only when the arm has them. The history keeps the last 8 steps and cuts each result to 400 characters. The current observation is cut to 2,000 characters and the whole state to 12,000. A cut keeps the head and the tail around ...[truncated]....
TASK: <task instruction>
MEMORY: <recalled memories, one per line>
LATEST REFLECTION: <the agent LLM's latest reflection>
HISTORY: [<step>] <tool(arguments)> -> <result>
CURRENT OBSERVATION: <latest tool result>
P2. State at development seed 600, step 2. Source: src/jevharness/harness/agent.py, src/jevharness/bench/suites/jevgym.py. A DECISIONGYM clarify task in the evaluation settings (60 look-alike tools, 20 log lines per lookup), after the agent looked the customer up and listed the pending orders. Our shortening of the log lines is marked in italics. The model sees all of them.
TASK: The customer Lena Wang asked us to cancel their ←pending order. Please do it.
HISTORY: [0] find_user({ "name": "Lena Wang" }) -> {"user_id": ←"U2883", "name": "Lena Wang", "tier": "basic"} log: heartbeat ok #911760 [4 more log lines] log: heartb ...[truncated]... artbeat ok #777025 [6 more log lines] log: heartbeat ok #417838 [1] get_orders({ "user_id": "U2883", "status": "pending" }) →> [[ "order_id": "ORD-3872", "user_id": "U2883", "item": ←"monitor", "status": "pending", "amount": 817.57}, ←{"order_id": "ORD-4002", "user_id": "U2883", "item": ←"mouse", "status": "pending", "amount": 27 ...[truncated]... heartbeat ok #885494 log: heartbeat ok #605733 [5 more log lines] log: heartbeat ok #947812
CURRENT OBSERVATION: [[ "order_id": "ORD-3872", "user_id": "U2883", "item": ←"monitor", "status": "pending", "amount": 817.57}, ←{"order_id": "ORD-4002", "user_id": "U2883", "item": ←"mouse", "status": "pending", "amount": 278.07}] log: heartbeat ok #149716 [18 more log lines] log: heartbeat ok #947812
P3. Questions at tool calls. Source: src/jevharness/harness/prompts.py, src/jevharness/harness/agent.py, src/jevharness/harness/tools.py. Options carry the first line of each tool description. The decision model fills an argument only when its values are bounded, as with an enum or a boolean, or can be copied from the state. The copy options are the spans the code extracts. Free text always goes to the LLM.
[Tool choice: one of 69 options] Which tool should the agent call next? get_orders_archive -- List a customer's orders from the ←archive of a past calendar year (orders older than 12 ←months only). set_reminder -- Set a reminder. ship_replacement -- Ship a free replacement for a damaged, ←already delivered order. [65 more tools] finish -- Call when the task is complete. Provide the final ←answer (or a short summary).
[Tool arguments: one question per argument]
Which value should the argument <argument> of tool
←<tool>take? ((description in the schema)) Example: Which value should the argumentname of tool ←find_user take? (customer full name)
Options: the 3 values copied from the state (Lena Wang,
←Lena, Wang), then
<OTHER: none of these / needs generation>
Example: Which value should the argument status of tool
←get_orders` take? ()
Options: the enum all, pending, shipped, delivered,
←cancelled
[Tool guard: yes/no]
The agent proposes to call <tool> with arguments
(a) Ask before acting (clarify, which order is missing; development seed 600)
| Request | “The customer Lena Wang asked us to cancel their pending order. Please do it.” |
|---|---|
| Hidden state | Lena Wang (U2883, basic tier) has two pending orders, ORD-3872 (monitor, 278.07). Asked which one, the scripted customer replies “please cancel order ORD-4002 (the mouse).” |
| Plan | find_user(Lena Wang) → get_orders(U2883, pending) → ask_user(order_id) → cancel_order(ORD-4002, customer_request) → finish(done) |
| Answer key | At the start: find_user or ask_user. After the two lookups: only ask_user for the order (three steps to go). There, get_order(ORD-4002) and a question about the refund method are detours, and finish is premature. |
| Fails the task | cancel_order(ORD-4002, customer_request) before asking, although it names the right order; cancelling ORD-3872; cancel_order_item(ORD-4002, mouse, customer_request). Each ends the episode. |
(b) A rule instead of named operations (DECISIONGYM-Hard, tier rule, ten customers; development seed 7003)
| Request | “Handle the pending order of each of these customers, in order: (1) Dana Ali; (2) Rosa Silva; ...; (10) Priya Garcia. For each customer, look up their pending order and cancel it if the customer is basic tier and the amount is above 600.00 (never cancel a gold-tier customer's order); otherwise ship it. ...” |
|---|---|
| Hidden state | Close calls among the ten: Rosa Silva (gold, 310.70) cancel; Priya Garcia (silver, 120.61) ship. The correct total is 3552.19. |
| Plan | The same three steps per customer, the operation set by the rule, then finish: 31 steps within a budget of 45. |
| Answer key | After each customer's two lookups, the operation the rule gives, or looking up the next customer; the other operation ends the episode. |
Table 6: Two tasks generated at development seeds with the evaluation settings. “Answer key” lists the acceptable next steps at one state. Detours are allowed but cost a step.
(a) Harness branches become typed questions

Modes (Table 4): ● REPLACE ▲ CASCADE ■ ASSIST ✦ GUARD ▼ TRIGGER
(b) Defer to the LLM only when unsure
Decision points: object-level meta-level
Figure 7: Each harness branch over a computable option set becomes a typed question to a fast decision model, whose answer decides when and how the LLM is called. (a) The eight decision points in harness order (WHERE) and the modes implemented at each (HOW). (b) Two CASCADE decisions (illustrative distributions; Eq. 4 sets ): System-1 is sure of the tool but not of the copied order_id; in this factorised path the accepted tool skips tool generation and only the deferred argument needs an LLM call. : indicative (JEV: vendor-reported; measured ratios vary with state length, backend and reads).
←<arguments as JSON>. Is this the right next step toward ←completing the task?
P4. Questions at the other decision points. Source: src/jevharness/harness/prompts.py, src/jevharness/harness/memory.py, src/jevharness/harness/agent.py. The stop guard sees the whole proposed answer when it has at most 800 characters, and otherwise its first 200 and last 600. A memory option is labelled with the first 60 characters of the memory, and the full text is its description.
[Memory write: the state ends with the candidate] CANDIDATE MEMORY: <candidate> candidate: <tool> (<arguments>) -> <result> Will this information likely be needed later to complete ←the task (facts, IDs, constraints, user preferences, ←results)? [Memory read: one option per stored memory] Which stored memory is most relevant to the current step?
[m{id}] <its first 60 characters> -- <memory text> (none of these memories is relevant) [Memory read trigger: the state ends with] STORED MEMORIES: <n> earlier observations (not shown) Does the agent need information it stored earlier (facts, ←IDs, results from steps no longer in the recent history) ←to choose its next step correctly? [Memory read guard: the state ends with the selection] SELECTED MEMORIES:
- [m{id}] <memory text> The agent proposes to recall these stored memories for its ←next step: <label>, <label>. Are these the memories it ←needs, with no needed memory missing? [Reflection] Should the agent pause and re-check before its next action: ←is it stuck or off track, or likely to make a wrong ←action or give a wrong final answer next? Earlier wording (measurement arms): Is the agent stuck, repeating itself, or did the last ←action fail or move away from the goal?
[Stop guard, when the LLM calls finish] The agent wants to stop and submit the final answer ←<answer, JSON-quoted>. Is the task actually complete, and ←is this answer correct? [Stop trigger, at every other step] Has the task already been fully completed, so the agent ←should stop now?
[Routing] Does the next step require careful multi-step reasoning, ←planning, or recovery from an error (i.e., a strong ←model) rather than a routine action?
[Action-only environments: choice and guard]
Which action should the agent take next?
Options: the admissible actions
The agent proposes to take the action <action> . Is this
←the right next step toward completing the task?
[Verification triggers: does the LLM's proposal need a
←second look?]
The agent proposes to call <tool> with arguments
←<arguments>. Should the agent re-check this choice of
←tool before the call runs: could another tool be the
←right next step?
The agent proposes to call <tool> with arguments
←<arguments>. Should the agent re-check these argument
←values before the call runs: could a value be wrong or
←missing?
The agent proposes to take the action <action> . Should
←the agent re-check this action before it runs: could
←another action be the right next step?
P5. JEV request (wire format). Source: src/jevharness/decision/jev.py: question_to_wire. The example keeps 2 of the 69 tool options and finish. In the reference loop each decision point is one request. A Noul (yes/no) question carries criteria only when the harness gives them, as mini-SWE-agent and pi do. JEV, OpenJev, StartLux-Decision and our trained models all receive this request.
{ "state": "[the state shown above]", "model": "typesafe/jev-1.13", "questions": { "q0": { "type": "choice", "instructions": "Which tool should the agent call next?", "criteria": { "get_orders_archive": "List a customer's orders from the archive of a past calendar year (orders older than 12 months only)." "set_reminder": "Set a reminder.", "finish": "Call when the task is complete. Provide the final answer (or a short summary)." } }, "q1": { "type": "noul", "instructions": "Has the task already been fully completed, so the agent should stop now?" } } }
How each decision model reads a question. JEV, OpenJev and StartLux-Decision receive the request above and build their prompts inside their own servers (Almeida, 2026; razorback16, 2026; StartLuxLabs, 2026). Every other decision model gets one of the prompts below, where is the state text shown above.
P6. Intern-Decision (one pass for all questions). Source: src/jevharness/decision/intern_decision.py: compile_row. The vendor's prompt compiler, copied with its licence. The state is JSON-encoded. Each field's answer is read at its <decision> placeholder, so k questions cost one forward pass.
[system] You are a careful decision assistant. Use the state and
←decision schema in the user message to make the requested ←decisions. For every field, choose exactly one answer ←symbol (e.g. A, B, C, ...) from its listed options and ←return one valid JSON object mapping each field name to ←its chosen symbol. Use the field names and symbols ←exactly as given. Do not include explanations, Markdown, ←or extra text. [user] Return one answer for every field using the supplied answer ←symbols.
State
" <state>"
Decision schema
tool_select: Which tool should the agent call next? A = get_orders_archive: List a customer's orders from ←the archive of a past calendar year (orders older than 12 ←months only). B = set_reminder: Set a reminder. C = finish: Call when the task is complete. Provide the ←final answer (or a short summary). stop: Has the task already been fully completed, so the ←agent should stop now? A = no: The answer is no (negative, or disagree with ←the claim). B = yes: The answer is yes (affirmative, or align with ←the claim). [assistant] { "tool_select": "<decision>", "stop": "<decision>" }
P7. AGENTDECISION-4B and the other trained models. Source: src/jevharness/training/data.py: SYSTEM, render, src/jevharness/training/serve_jev.py. Each question gets its own prompt in the checkpoint's chat template, with thinking off and the assistant turn opened. The answer is read from the next-token logits of the option codes. Training rows use this exact format.
[system] You are a fast decision module inside an AI agent. Read the ←state and answer the question with exactly one token: the ←label of your answer. [user] STATE: <state>
QUESTION: Which tool should the agent call next? OPTIONS: A. get_orders_archive -- List a customer's orders from the ←archive of a past calendar year (orders older than 12 ←months only). B. set_reminder -- Set a reminder. C. finish -- Call when the task is complete. Provide the ←final answer (or a short summary).
Answer with the option label only. [user, a yes/no question] STATE: <state>
QUESTION: Has the task already been fully completed, so the ←agent should stop now? OPTIONS: A. yes B. no
Answer with the option label only.
P8. LLM decider read through log-probabilities. Source: src/jevharness/decision/llm_logprob.py. The model generates one token at temperature 0 and returns the top 20 log-probabilities. The probabilities of tokens that equal an option label are summed per label.
[system] You are a fast decision module inside an AI agent. Read the ←state and answer the question with exactly one token: the ←label of your answer. Do not explain. [user] STATE: <state>
QUESTION: Which tool should the agent call next? OPTIONS: A. get_orders_archive -- List a customer's orders from the ←archive of a past calendar year (orders older than 12
←months only). B. set_reminder -- Set a reminder. C. finish -- Call when the task is complete. Provide the ←final answer (or a short summary). Answer with the option label only. [user, a yes/no question] STATE: <state> QUESTION: Has the task already been fully completed, so the ←agent should stop now? Answer Yes or No.
P9. LLM decider with verbalised probabilities. Source: src/jevharness/decision/llm_generative.py. The Gemini stand-in and the control in which the agent LLM answers its own questions use this prompt. All questions about one state go in one call.
[system] You are a fast decision module inside an AI agent. Read the ←state and answer each typed question independently. Be ←calibrated: probabilities must reflect how likely each ←option is correct. Reply with ONLY one JSON object, no ←prose, no code fences. [user] STATE: <state> QUESTIONS: Q1 (choose one option): Which tool should the agent call ←next? OPTIONS: A. get_orders_archive -- List a customer's orders from the ←archive of a past calendar year (orders older than 12 ←months only). B. set_reminder -- Set a reminder. C. finish -- Call when the task is complete. Provide the ←final answer (or a short summary). Q2 (yes/no): Has the task already been fully completed, so ←the agent should stop now? For EACH question give a probability for EVERY option key ←(they must sum to 1), reflecting how likely each option ←is the correct answer. Reply with JSON exactly in this shape: {"Q1": {"A": "<prob>", "B": "<prob>", "C": "<prob>"}}, "Q2": ←{"yes": "<prob>", "no": "<prob>"} [last block in the label variant] For EACH question give your answer key and the probability ←that it is correct. Reply with JSON exactly in this shape: {"Q1": {"answer": "<one of ['A', 'B', 'C']>}, "confidence": ←"<prob that the answer is correct>"}
P10. Embedding baseline (L1 only). Source: src/jevharness/decision/embedding.py. The score of an option is the cosine similarity of the two embeddings.
[query] <state> <question> [one text per option]
<option>: <description>The agent LLM on DECISIONGYM. The agent LLM sees a short system prompt, the task and the tool results, plus the notes below when a decision point acts on its turn.
P11. Agent LLM: system prompt and first message on DECISIONGYM. Source: src/jevharness/harness/agent.py, src/jevharness/bench/suites/jevgym.py, src/jevharness/harness/tools.py. The task's tools (68 at these settings, shuffled per task) are passed as function declarations, and the LLM sees every tool result as a tool message.
[system]
You are a capable autonomous agent. Solve the user's task
←by calling the available tools. Call one tool per turn.
←When the task is complete, call finish with the final
←answer.
[user] <task instruction> <first observation> [first observation] You have access to the customer-operations tools. Policy: ←never guess -- if a detail you need to act (who the ←customer is, which order, the refund method, the shipping ←speed) is not given or is ambiguous, ask the customer ←with ask_user before taking any action. [tool `finish', offered with the task's tools] Call when the task is complete. Provide the final answer ←(or a short summary).
P12. DECISIONGYM task instructions. Source: src/jevharness/bench/suites/jevgym.py:
JevGymEnv._build*, _ask. The first five replies give a clarify task's missing detail. A question about another detail gets the sixth reply in a clarify task and the seventh in every other task.
[cancel] The customer <customer> asked us to cancel their ←pending order. Please do it. [refund] Refund the full amount of <customer>’s most recent ←delivered order (highest order id) as store credit. [stock] How many units of ‘<item>’ do we have in stock? ←Answer with the number. [ship] Ship <customer>’s pending order. Use express ←shipping if the customer is gold tier, otherwise standard. [total] What is the total amount of all of <customer>’s ←delivered orders? Answer with the number rounded to 2 ←decimals. [clarify: order missing] The customer <customer> asked us ←to cancel their pending order. Please do it. [clarify: method missing] Refund the full amount of ←<customer>’s most recent delivered order (highest order ←id). [clarify: speed missing] Ship <customer>’s pending order. [clarify: name missing] A customer wrote in asking us to ←ship their pending order (express if they are gold tier, ←otherwise standard), but did not say who they are. [multi] Process these requests in order: ←<numbered requests>.<shipping rule> When all are done, ←answer with the total amount of the orders you processed, ←rounded to 2 decimals. numbered requests, joined by “;”: (<i>) <request> request: cancel <customer>’s pending order (the customer ←requested it) or: ship <customer>’s pending order shipping rule (if any request ships): Use express ←shipping for gold-tier customers and standard shipping ←otherwise. [customer replies to ask_user] Customer: Sorry for the confusion -- please cancel order ←<order id> (the <item>). Customer: Please refund it as store credit. Customer: Please refund it to my original payment method. Customer: <Speed> shipping, please. Customer: Oh, sorry -- my name is <customer>. Customer: I think I already gave you everything you need on ←that point. Customer: I have nothing to add -- please go ahead with the ←request as described.
P13. DECISIONGYM-Hard instruction. Source: src/jevharness/bench/suites/jevgym_hard.py:
_build_multi, policy_text, answer_text. The runs used ten or twelve customers per task. Each customer's tier and amount appear only in the lookup results. The code also has a rule on the amount alone, which no run used.
Handle the pending order of each of these customers, in ←order: (1) <customer1>; (2) <customer2>; ←[one per customer]. For each customer, look up their ←pending order and <rule>. Cancellations use the reason ←customer_request; use express shipping for gold-tier ←customers and standard shipping otherwise. ←<answer sentence>
[rule] cancel it if the customer is basic tier and the amount is ←above 600.00 (never cancel a gold-tier customer's order); ←otherwise ship it
[answer sentence: total, first runs] When all are done, answer with the total amount of the
-orders you processed, rounded to 2 decimals. [answer sentence: itemized, from E7e] When all are done, answer with one line per customer giving —the action you took and the order amount, then the total —amount of the orders you processed, rounded to 2 decimals.
P14. Messages the harness adds to the LLM's context. Source: src/jevharness/harness/prompts.py, src/jevharness/harness/agent.py. The reflection reply and the stop-guard rejection stay in the context. They are appended to the last tool message when one precedes them, because Gemini 3 returns an empty reply after a user turn there. The other notes go with one call only. Tool assist adds no text and offers the LLM only the model's top tools and finish. Routing adds no text either. It sends the step to the cheaper LLM with the same messages.
[Reflection: asked as a user turn, the reply kept] Pause. In <=4 sentences: assess progress toward the task, ←identify any mistake so far, and state the best next ←step. Do not call tools. [Reflection] <the LLM's reply>
[Recalled memories, before the LLM's turn] [Memory]
- [m{id}] <memory text>
- [m{id}] <memory text>
[Stop guard rejected a finish] [Verifier] The task may not be complete yet, or the final ←answer may be wrong. Re-check the requests and recompute ←the answer before calling finish. [Stop trigger fired: a forced finish call] The task appears complete. Call finish with the final ←answer.
[Tool guard rejected the call]
[Verifier] Your proposed call <tool> (<arguments>) was
←judged likely wrong. Reconsider and choose the correct
←next tool call.
[Argument guard rejected one argument]
[Verifier] In your proposed call <tool> (<arguments>) , the
←value of the argument <argument> was judged likely
←wrong. Reconsider and choose the correct next tool call.
[Verification pass at tool choice: every tool offered]
[Check] Before your proposed call <tool> (<arguments>)
←runs, re-read the task and the observations so far and
←check that this is the right tool to call now. If it is,
←make the same call again; if not, make the right call
←instead.
[Verification pass at tool arguments: the call forced to
←the proposed tool]
[Check] Before your proposed call <tool> (<arguments>)
←runs, re-read the task and the observations so far and
←check every argument value. Call <tool> again, with the
←same arguments if they are right or with corrected
←arguments if not.
[Decision model chose the tool and the LLM fills the rest]
You must now call <tool> . Already-determined arguments:
←<the model's arguments>. Provide the remaining arguments.
[Argument assist: the model's shortlists]
You must now call <tool> . Choose these arguments from the
←shortlists:
<argument>: one of [value], <value>]<argument>: one of [value] (or another value) Already-determined arguments: { "argument": <value> }. Provide all arguments.
P15. Yes/no questions the agent LLM answers itself.
Source: src/jevharness/harness/memory.py, src/jevharness/harness/prompts.py, src/jevharness/harness/agent.py. Each gate is one call without tools, read as yes when the reply starts with y. With advice, the memory gate puts the advice line between the state and its question.
[Memory-write gate (LLM decides, or the model defers)] <state>
Should this be stored in long-term memory because it will ←likely be needed later? Answer yes or no.
[Reflection and routing gates (the model defers)] <state>
<question> Answer yes or no.
[Advise variants: the advice comes before the question] <state>
<advice><question> Answer yes or no.
[Advisor] A fast decision model answered the question ←below: <yes/no> (confidence <p>). It can be wrong; decide ←yourself.
[Stop advise, added to the LLM's turn]
[Advisor] A fast decision model's answer to "Has the task ←already been fully completed, so the agent should stop ←now": <yes/no> (confidence <p>). It can be wrong; decide ←yourself whether to call finish now.
[Memory-read guard: the LLM selects] <state>
STORED MEMORIES:
- [m{id}] <text>
<rejection note, after a veto>
Which of the stored memories above does the agent's next ←step need? Answer with their ids separated by commas (for ←example: m3, m7), or with none.
[rejection note]
[Verifier] Your memory selection was judged likely wrong (a ←needed memory missing, or the wrong ones). Reconsider and ←select again.
P16. Action-only environments (ALFWorld). Source: src/jevharness/harness/agent.py, src/jevharness/bench/suites/alfworld.py. The task sentence and the observations are ALFWorld's own (Shridhar et al., 2021). The reply's last Action: line is matched to the closest admissible action.
[system] You are an agent acting in a text environment. At each turn ←choose exactly one action from the list of admissible ←actions. Think briefly if needed, then end with a line ←Action: <action> copied verbatim from the list. [user] <task instruction> <first observation> [each turn, appended to the history] Admissible actions:
- <action>
- <action>
[after each action]
Observation: <observation>
[action guard rejected the proposal]
[Verifier] Your proposed action <action> was judged
←likely wrong. Reconsider and choose the correct next
←action.
[verification pass, after the admissible list]
[Check] Before your proposed action <action> runs,
←re-read the task and the observations so far and check
←that it is the right next action. If it is, repeat it; if
←not, choose the right action instead. End with a line
←Action: <action> copied verbatim from the list.
Other harnesses and the static suites. Each integration renders its own state and asks its own questions. We list only the parts we wrote.
P17. -bench: state and questions. Source: src/jevharness/bench/suites/tau2.py. The policy question drops the confirmation clause when the domain policy does not require explicit confirmation. The agent's system prompt and the user simulator are -bench's own (Barres et al., 2026).
[state] DOMAIN POLICY (excerpt): <policy excerpt> CONVERSATION SO FAR (oldest first): <earlier messages> LATEST MESSAGE TO THE AGENT: <latest message> [each message of the conversation, one line] [<useragent>] <text> [agent -> tool] <tool(arguments)>; ... [<tooltool ERROR>] <result> [Tool choice] What should the customer-service agent do next? Choose the <tool to call, or 'respond_to_user' to send a message to
←the user.
Options: the domain's tools, then
respond_to_user -- Send a text message to the user instead
←of calling a tool (ask for missing details or explicit
←confirmation, report a result, or refuse).
[Tool arguments: the reference loop's question]
[Tool guard]
The agent proposes to proposal . Is this the right next
←step, consistent with the domain policy?
proposal: call <tool> with arguments arguments as JSON
or: reply to the user: " message
[Policy guard, at state-changing calls]
The agent is about to call the state-changing tool <tool>
←with arguments arguments as JSON . Does this action
←comply with the domain policy, and has the user
←explicitly confirmed exactly this action (answered yes)
←in the conversation?
[Transfer guard]
The agent wants to transfer the user to a human agent
←('transfer_to_human_agents'). Per the policy, transfer
←only if the request cannot be handled within the scope of
←the agent's tools and policy (or the user asks for a
←human where that is allowed). Is transferring now
←justified?
[Routing]
Does the next step require careful multi-step reasoning,
←policy interpretation or recovery from an error (i.e., a
←strong model) rather than a routine reply or lookup?
P18. -bench: messages to the agent LLM. Source: src/jevharness/bench/suites/tau2.py. A rejected proposal is not executed. The LLM answers again, with the note as a final user turn.
[Decision model chose the tool and the LLM fills the rest]
You must now call <tool> . Already-determined arguments:
←<the model's arguments>. Provide the remaining arguments.
[Transfer guard rejected]
[Verifier] Transferring to a human agent does not look
←justified yet. Try to resolve the request with the
←available tools and the policy, or explain to the user
←what you can and cannot do.
[Policy guard rejected]
[Policy check] Your proposed action <tool>$(arguments)
←was judged likely to violate the domain policy or to lack
←the user's explicit confirmation. Re-read the policy. If
←confirmation is required, list the action details and ask
←the user to confirm (yes) before acting. Decide again:
←respond to the user or call a tool.
[Tool guard rejected]
[Verifier] Your proposed next step ( proposal ) was judged
←likely wrong. Reconsider and choose the correct next
←action (a tool call or a message to the user).
P19. mini-SWE-agent: decision-model state. Source: src/jevharness/adapters/mini_swe.py: _s1_state, adapters/mini_swe/swebench_jev.yaml. The history keeps the last 8 commands and cuts each output to 400 characters. Only a blocked command carries the [NOT EXECUTED] tag. The questions of one step share this state and go out in one request.
TASK (issue to resolve): <issue text>
HISTORY (most recent last): [<step>] $ <command> [NOT EXECUTED] -> rc=<exit code>: <output>
CURRENT OBSERVATION: <last output>
STEP: <step>
[guard only] AGENT'S REASONING FOR THIS STEP: <the agent's reasoning>
[stop guard only] The agent is now issuing the submit <command.
P20. mini-SWE-agent: questions and messages. Source: src/jevharness/adapters/mini_swe.py. The agent's prompts are mini-SWE-agent's SWE-bench configuration, unchanged (Yang et al., 2024). The reflection, action-type and stop-trigger hooks are implemented but were not run.
[Routing: deep or fast path (E4, E4b and the H5 route)]
Does the next step require careful multi-step reasoning,
←planning, debugging, or recovery from an error (i.e., a
←strong model) rather than a routine action such as
←reading a file, searching, or re-running a command?
[Command guard (H5)]
The coding agent proposes to run the bash command below in
←the repository. Is this command reasonable, on-track
←toward resolving the issue, and non-destructive (it does
←not delete or reset the repository, its tests, git
←history or the environment)?
COMMAND:
<command>criteria: yes = The command is safe and a sensible next
←step for fixing the issue.
no = The command is destructive, violates the task
←boundaries (e.g. edits or deletes tests), or is
←unproductive / off-track.
[Submit guard (H5)]
The coding agent now wants to submit its patch and end the
←task. Has the fix been verified: was the issue
←reproduced, and were the modified code and the relevant
←tests actually run after the last source edit, with
←results showing that the issue is fixed?
criteria: yes = Verified: a reproduction and/or relevant
←tests were run after the final edit and pass.
no = Unverified: nothing was run after the final change, or
←the runs still show the bug/errors.
[blocked command, as its observation]
[Guard] This command was NOT executed: an automatic
←safety/progress check judged it likely destructive,
←off-track or unproductive (p_ok=<p> < <threshold>).
←Reconsider your approach and issue a different command.
←If you are certain this exact command is necessary,
←re-issue it unchanged and it will run.
[deferred submission]
[Verifier] Submission deferred: the fix does not appear to
←be verified yet. Before submitting, (1) make sure you
←have reproduced the issue, (2) re-run your reproduction
←script and the most relevant existing tests against your
←modified code, and (3) fix any failures. Then create the
←patch and submit again with the exact submit command.
P21. pi on Terminal-Bench-Science (H5). Source: adapters/pi/jev-tool-gate.ts, adapters/pi/jev-stop-verify.ts, adapters/pi/jev-reflect.ts, adapters/pi/jev-common.ts. The agent's prompts are pi's own (earendil-works, 2026), and the tasks are Terminal-Bench-Science's (Terminal-Bench-Science Team, 2026). The router, memory, tool-pruning and compaction extensions were not run.
[state: a JSON object]
{"task": <latest user message>, "summary":
<compaction summary, if any>,
"history": ["[i] <tool(arguments) -> <result>", ...],
"current_observation": <latest tool result>,
"proposed_call" (guard) | "final_response" (stop): <value>}
[Tool guard]
The agent proposes to call <tool> with arguments
<arguments as JSON>. Is this the right next step toward
-completing the task?
criteria: yes = The call is a correct and useful next step
no = The call is wrong, premature, unsafe, or off-task
[rejected: the tool result]
[Verifier] Your proposed call <tool(arguments> was
-judged likely wrong. Reconsider and choose the correct
-next tool call.
[Stop guard, when the agent settles]
The agent wants to stop and submit. Is the task actually
-complete?
criteria: yes = Every requirement of the task is met, and
-the result was checked
no = Work remains, or the result is wrong or unverified
[rejected: a message, then one more turn]
[Verifier] The task does not look complete yet. Re-read the
-task, check every requirement against the current state
-(run the tests or inspect the outputs), and continue
-working before you finish.
[Reflection, after a failed or repeated call]
Is the agent stuck, repeating itself, or did the last
-action fail or move away from the goal?
criteria: yes = Stuck, looping, failing, or drifting from
-the goal
no = Making steady progress toward the goal
[fired: a message]
[Reflection] Pause before your next tool call. In at most 4 sentences: assess progress toward the task, identify any mistake so far, and state the best next step. Then continue working.
P22. L1 static decisions (BFCL, When2Call). Source: src/jevharness/bench/suites/static.py, src/jevharness/bench/decision_eval.py. The argument question names the reference function on purpose, so that it measures argument filling given the right function. The native function-calling baseline sees each benchmark's own messages and tools.
[BFCL state, one line per message]
<ROLE>: <message>
[BFCL tool choice]
Which function should be called to handle the user's
—request?
Options: the functions, then
none (no available function fits the request) -- Use when
—no function applies.
[BFCL argument, given the reference function]
The function <reference function> will be called. Which
—value should its argument <argument> take?
—<argument description>
Options: enum or boolean values, or spans copied from the
—request, then <OTHER: none of these / needs generation>
[When2Call state]
AVAILABLE TOOLS:
- <name>: <description>
- <argument> (<type>, <requiredoptional>): —<description> [one block per tool] USER: <question> [When2Call] How should the assistant respond to the user's message?
- call one of the available tools
- ask the user for missing required information
- say it cannot help: no available tool fits and the —question needs one
- answer directly without any tool [Judge of the native function-calling baseline's text —replies] You classify an AI assistant's reply to a user's request. —The assistant had these tools: <tools>
USER: <request> ASSISTANT REPLY (it did not call a tool): <reply> Which kind of reply is it?
- request_for_info: it asks the user for missing —information or clarification it needs to proceed
- cannot_answer: it says it cannot help / does not have a —suitable tool or ability
- direct: it answers or acts on the request directly (gives —an answer, or claims to have done it) Reply with ONLY a JSON object: {"label": —"<request_for_info|cannot_answer|direct>}
B.5 Gold Labels, Probes and Measurement Arms
These definitions were fixed before the main runs. Labels are computed on a copy of the environment after the decision model’s answer is recorded and go only to the decision records. A canary test plants a gold value and checks that no request contains it.
Verdicts and gold labels. Let be the number of steps the answer key needs from a copy of s to finish successfully ( if it cannot within the step budget, and such doomed states are excluded). We label an attempt to finish progress if it succeeds, a wrong answer if everything but the answer is done, and premature otherwise. Any other call is fatal if it makes D infinite, progress if it lowers D, and a detour otherwise. Fatal, premature and wrong-answer actions are failing. A tool choice is right if it is an undone plan step that is progress and whose inputs are visible. An argument is right if it matches the canonical value (up to case, whitespace and 0.01 in amounts), and a guard verdict if it matches whether the proposal is progress. A reflection or routing trigger is right if the next action without it is failing, a stop trigger if only the answer remains, and a memory write if the text holds a value a remaining plan step consumes. From its JSON schema alone, each argument is bounded (enum, boolean, integer range of at most 20 values), copyable (numbers, and strings with a format or pattern or named like an identifier or a quantity) or free. The copy-dependent arguments of H3 (App. A) are the copyable ones.
Measurement arms and probes. Two measurement arms, Flash on 200 tasks and Flash-Lite on 500, act like LLM-only while every gate runs in shadow, so its label is observed at every state. On Flash-Lite, one-step branches replay states with the intervention and with a placebo that only resamples the default call. Relative to the placebo, e is the gain in the chance of progress when the trigger fires before a failing action, and h is the gain in the chance of failure when it fires before a progress action. A probe is a proposal the guard scores but that is never executed (Table 7), and probes enter no reported success, cost, test or training data. A gate cell is estimable for H2 when its arm has at least 30 positive and 30 negative labels and a live and a matched-rate random arm exist. The reflection-trigger test has no headroom when, at , the 95% CI of its one-step perfect-information ceiling (Eq. 5 with and the measured ) lies within points, the registered minimum detectable effect.
B.6 Benchmark Difficulty: Hard States
Using stored answers only, Table 8 shows which models find DECISIONGYM hard. Acting alone, Flash solved 99.4% of the 500 fresh Stage-2 tasks, so a decision model can lower cost but has little success to add. The seven off-the-shelf decision models chose an acceptable tool at 48.3–93.9% of all common states and at 42.7–82.7% of the hard ones. The generator-trained rows are near ceiling on every subset (App. D.10).
| Guard | Rate (%) [95% CI] (proposals) | System-2 Flash | System-2 Flash-Lite |
|---|---|---|---|
| Stop | FAR, model-generated wrong finishes | 3.7 [1.7, 6.1] (241) | 12.3 [9.4, 15.2] (689) |
| FAR, the LLM's own wrong finishes | - (0) | 40.7 [30.8, 50.5] (91) | |
| FRR, the LLM's own right finishes | 8.0 [4.5, 12.0] (200) | 1.2 [0.2, 2.2] (409) | |
| Tool | FAR, fatal proposals (edits, transplants) | 7.7 [4.2, 11.7] (181) | 5.7 [3.7, 8.0] (470) |
| FAR against progress (own, transplanted) | 0.0 (2) | 67.4 [51.3, 82.6] (43) | |
| FRR against progress (own, transplanted) | 1.3 [0.7, 2.0] (1631) | 1.3 [0.9, 1.7] (4078) |
Table 7: Error rates of the JEV guards on DECISIONGYM probes labelled by the answer key (Stage-1 measurement arms at , task-clustered bootstrap intervals, descriptive). FAR: share of wrong proposals accepted. FRR: share of right proposals rejected. Model-generated wrong finishes pool the LLM's own, forced-premature and transplanted ones. Flash made no wrong finish of its own (-).
| All states | Hard (union) | After off-plan | ask_user next | Flash states | |
|---|---|---|---|---|---|
| States n | 5,314 | 957 | 386 | 582 | 1,498 |
| Tasks | 200 | 135 | 57 | 100 | 200 |
| Agent LLM (Flash) | 99.9 | 100.0 | - | 100.0 | 99.9 |
| JEV | 91.5 | 69.4 | 81.5 | 64.4 | 92.0 |
| Intern-Decision-4B | 75.2 | 55.7 | 47.6 | 59.6 | 76.3 |
| StartLux-27B | 93.9 | 71.2 | 85.1 | 63.4 | 92.6 |
| StartLux-9B | 91.8 | 82.7 | 74.3 | 87.1 | 92.9 |
| StartLux-4B | 89.1 | 81.7 | 76.8 | 84.1 | 89.6 |
| StartLux-2B | 68.4 | 56.2 | 47.2 | 61.8 | 73.7 |
| StartLux-0.8B | 48.3 | 42.7 | 31.5 | 49.4 | 52.1 |
| Qwen3-4B (untrained) | 50.1 | 39.9 | 26.7 | 47.3 | 54.4 |
| SFT v1* | 99.2 | 98.0 | 93.8 | 100.0 | 100.0 |
| AGENTDECISION-4B v1* | 99.2 | 98.2 | 94.7 | 100.0 | 100.0 |
| StartLux-4B SFT (track 2)* | 99.4 | 98.2 | 95.0 | 100.0 | 100.0 |
| Spread (points) | 50.9 | 55.5 | 63.2 | 50.6 | 47.9 |
Table 8: Tool-choice accuracy (task-weighted %) on the common states and on subsets defined by a rule after the main study (post hoc) but before any accuracy on them was computed. Hard: after an off-plan step, or the next tool is ask_user. Flash states: the LLM-only trajectories. Its own choice on its own trajectories. Over the eight models of Figure 4. *Trained on DECISIONGYM's generator. Exploratory.
C JEVAGENTHARNESS
Combinations, call graph and serving. A YAML file defines each combination of delegations (Figure 8) by setting mode, and per decision point for each agent LLM, and every episode records the file's hash. Under CASCADE, below the tool threshold the LLM makes the whole tool call. Otherwise each bounded or copyable argument of the accepted tool is its own question with its own threshold, and the LLM fills the other arguments in one forced call. Any service that answers JEV's request format can be the decision model. Decision-model cache hits replay the original cost and latency, and LLM calls are never cached.
Integrations. Table 9 lists the modes that the adapters for mini-SWE-agent (Yang et al., 2024), pi (earendil-works, 2026) via Harbor (Harbor Frame- work Team, 2026), Codex CLI (OpenAI, 2026a) and the DeepSeek Harness (DeepSeek-AI, 2026) can express. REPLACE and CASCADE would need a hook that returns the next action before the LLM is called.

Figure 8: Architecture of JEVAGENTHARNESS. A typed question from the reference loop, or from a hook of an existing harness, goes to the point's entry in the combination (mode, threshold, System-1 backend), whose mode executes, narrows, vets or defers System-1's answer. One ledger meters every call.
| Mode | Own loop | pi | Codex | DSH | mini-SWE |
|---|---|---|---|---|---|
| REPLACE/CASCADE tool | ✓ | - | - | - | - |
| ASSIST (prune tools) | ✓ | ✓ | - | - | n/a |
| GUARD (approve) | ✓ | ✓ | deny only | ✓ | ✓ |
| TRIGGER stop | ✓ | ✓ | ✓ | ✓ | ✓ |
| TRIGGER routing | ✓ | ✓ | record only | ✓ | ✓ |
| TRIGGER memory/reflect | ✓ | ✓ | ✓ | ✓ | ✓ |
| Status | E | S, E | I | I | S, E |
Table 9: Modes each harness can express without forking. DSH: DeepSeek Harness, also serving Claude Code. -: not expressible. n/a: mini-SWE-agent's action is one bash command. Status: I = implemented and unit-tested, S = smoke-tested end to end, E = evaluated.
C.1 The Final Harness (Exploratory)
Table 10 compares the final harness (§7.3) with LLM-only on the same 200 fresh tasks, with the
GPU shared by about four episodes, as in Stage 2, or dedicated to one. Cost includes the GPU at $1.624 per hour. With four episodes per GPU, queueing for the decision model took 66.1% of the episode time.
| shared GPU | dedicated GPU | |
|---|---|---|
| Success, LLM-only (%) | 99.5 | 99.5 |
| Success, final harness (%) | 100.0 | 100.0 |
| difference [95% CI] | +0.5 [+0.0, +1.5] | +0.5 [+0.0, +1.5] |
| $/ episode, LLM-only | 0.0434 | 0.0431 |
| $ / episode, final harness | 0.0078 | 0.0102 |
| of which GPU | 0.00192 | 0.00438 |
| saving (%) [95% CI] | 82.1 [81.5, 82.7] | 76.3 [75.6, 77.1] |
| s / episode, LLM-only | 8.70 (8.94) | 13.59 (8.87) |
| s / episode, final harness | 22.39 (20.72) | 9.59 (7.89) |
| difference [95% CI] | +13.69 [+12.08, +15.13] | -4.00 [-7.98, -0.61] |
Table 10: The final harness against LLM-only on 200 fresh DECISIONGYM tasks on one A10G, with the GPU shared or dedicated (exploratory). Success in %, its difference in points. Time: mean (median) s per episode, with the difference of means.
C.2 JEVAGENTHARNESS in mini-SWE-agent (Exploratory)
In these registered exploratory runs, JEV routes steps in an unmodified mini-SWE-agent (Table 11). Before each step JEV is asked whether the step needs careful reasoning, planning, debugging or error recovery. The strong LLM takes the step if JEV says yes with probability at least or gives no answer, and the fast LLM takes it otherwise. On 300 instances (the first 100 and 200 more in a registered extension), routing resolved 229 against 232 for the strong LLM alone at lower cost, without establishing non-inferiority (Table 30). The new instances alone saved . With Gemini 3.8 Flash in both roles, the fast LLM alone resolved more than both other arms.
C.3 Routing in Two More Open-Source Harnesses
We added the routing of App. C.2 to pi on all 89 tasks of Terminal-Bench 2.0 and to SWE-agent on 100 held-out SWE-bench Verified instances, with Gemini 3.5 Flash as the strong and Flash-Lite as the fast LLM and nothing tuned (Table 12). In both harnesses most requests stayed with the strong LLM, so routing saved little cost and no time. It kept success in pi. In SWE-agent the routed agent needed more steps per instance (33.4 against 29.3).
The decision layer as a proxy. We then placed the decision layer in a proxy between an unmodified harness and its LLM provider. The proxy sent a Table 11: Step routing by JEV in mini-SWE-agent on the same 100 fresh SWE-bench Verified instances (exploratory, one run per instance). Res.: resolved. W/L: resolved only by the arm / only by the strong LLM alone. $/inst.: API cost per instance, JEV included. Fast: share of LLM calls to the fast LLM. Limit: stopped by the step or cost limit. *First 50 instances only, compared with the strong LLM on the same ones.
| Arm | n | Succ. (%) | Δ pt [95 %] | NI | $/task | Cost (%) | Time (s) | Time (%) | Fast (%) |
|---|---|---|---|---|---|---|---|---|---|
| pi on Terminal-Bench 2.0 | |||||||||
| Strong LLM alone | 89 | 42.7 | - | - | 0.5103 | - | 257 / 121 | - | 0.0 |
| Routing by JEV | 89 | 50.6 | +7.9 [-1.1, +16.9] | yes | 0.4611 | -9.6 | 260 / 120 | +1.0 | 12.4 |
| Fast LLM alone | 89 | 36.0 | -6.7 [-16.9, +3.4] | no | 0.1484 | -70.9 | 336 / 150 | +30.5 | 100.0 |
| SWE-agent on SWE-bench Verified | |||||||||
| Strong LLM alone | 100 | 63.0 | - | - | 0.2605 | - | 110 / 98 | - | 0.0 |
| Routing by JEV | 100 | 57.0 | -6.0 [-12.0, +0.0] | no | 0.2403 | -7.7 | 124 / 106 | +12.7 | 23.2 |
| Fast LLM alone | 100 | 28.0 | -35.0 [-45.0, -25.0] | no | 0.0813 | -68.8 | 102 / 98 | -7.5 | 100.0 |
Table 12: Step routing in pi and SWE-agent (exploratory, one attempt per task, the same tasks in every arm). : success difference to the strong LLM alone with a task-bootstrap interval. NI: non-inferior at a margin of 3 points. Cost (%) and Time (%): change of the mean against the strong LLM alone. Time (s): mean / median agent seconds per task. Fast: share of LLM requests sent to the fast LLM. Infrastructure failures count as failures. For pi the table reports the second routed run, after a fix for Gemini's signed reasoning traces.
step to the fast LLM only when the confidence fell in a range fitted on calibration tasks. In pi no range qualified (AUROC 0.52), and in mini-SWE-agent the gate routed of the requests on 30 pilot instances without changing success. A follow-up sent the steps that JEV predicted would only read to the fast LLM and discarded any fast-LLM response that would write, run code or submit. JEV's answers hardly separated the steps that only read from the others (AUROC 0.56 in pi and 0.70 in mini-SWE-agent). No fast-LLM action that would write, run code or submit reached a task, and none of these pilots met the criterion for a full run, so none followed.
C.4 Roles of a Decision Model in a Harness
A decision model can take any recurring choice in an agent loop that has a short list of answers. Table 13 lists such roles, drawn from the hook points of Codex CLI, OpenHands and mini-SWE-agent
(OpenAI, 2026a; Wang et al., 2025c; Yang et al., 2024) and from work on cascades, routing, asking, reflection, memory and tree search (Chen et al., 2024; Ong et al., 2025; Ross et al., 2025; Shinn et al., 2023; Packer et al., 2024; Zhou et al., 2024a), and how far we tested each.
Ask or act, and approval gates. At the 582 common states where the right move was to ask, AGENTDECISION-4B v1 chose correctly in 100.0%, JEV in 64.4% and Intern-Decision-4B in 59.6%, and most errors were actions taken too early. As a stop guard on Flash-Lite, JEV rejected 52 of the 85 wrong first attempts to finish, but only 4 of those episodes then succeeded.
Who accepts the answer (exploratory). On 1,000 calibration decisions with Flash, the fitted confidence gate ranked right above wrong answers about as well as the gap between the two best options or a second question to the decision model (AUROC 0.74 for tool choice and 0.89 for arguments, Table 2). A check by Flash cost 0.58 (tools) and 0.47 (arguments) times the price of the call it was meant to save, so the net saving was negative. Asking a second question below the threshold was the only check that raised the saving, and only for arguments.
D Post-Training AGENTDECISION-4B
D.1 Readout, Labels and Recipes
Readout. The state, question and coded options (A., B., ...) form one prompt. One prefill gives the logits of the option-code tokens, and . A yes/no question is a choice between two options. A question with more than 52 options is split into groups of 52 that compete in a knockout tournament.
Data and labels. About half of the examples are decision points from harness runs on training seeds ( 10,000, disjoint from all other seeds) and half are When2Call training data, split by task and, from data v1 on, 8-gram decontaminated (App. D.10). Labels are gold (the DECISIONGYM answer key or dataset labels), teacher soft labels (Hinton et al., 2015), or counterfactual Monte Carlo values from replays of a recorded state s with a forced.
Recipes. SFT minimises with a fresh option permutation

Figure 9: Post-training AGENTDECISION-4B v1: SFT followed by GRPO. Data v1: decisions at states the harness visits, labelled by JEV and gold. SFT, then GRPO on call-count-penalised success ( : rollouts in the harness, training seeds). On-policy distillation (OPD) from JEV at the states the student reaches was tested and not kept by its development gate (grey). Each stage is kept only if it passes development gates.
per example (Zheng et al., 2024). GRPO runs the decider in the DECISIONGYM harness with a fixed System-2 executor, G rollouts per task, GiGPO anchor-state groups (Feng et al., 2025a), PPO clipping and an exact KL over the option set. Its reward is 1[success] (1 - 0.5 min(1, )) - 0.2 1[irreversible wrong call], with the episode's LLM calls. OPD distils on policy (Agarwal et al., 2024). Temperatures are fitted per question type and option-count bucket on held-out tasks (Guo et al., 2017). Only SFT, OPD and GRPO entered the training chain.
Hyper-parameters and compute. AdamW, weight decay 0, 3% warm-up, cosine decay, gradient clipping 1.0, bf16, effective batch 64, maximum length 4,096 tokens. LoRA on all linear layers (r=32, ) for 4B, full fine-tuning for 0.6B. SFT: lr , 2 epochs, Brier weight 0.5 (the Brier term was not ablated on its own). GRPO, as run for AGENTDECISION-4B v1: 30 iterations 8 tasks G=8 on strict DECISIONGYM with the 60 distractor tools of the evaluation setting, 1 inner epoch, 64 decisions per step, clip (Schulman et al., 2017), KL 0.02, GiGPO , , lr , Flash-Lite as executor. We kept the checkpoint of iteration 15. Every recipe fits one 48 GB GPU. The training round of AGENTDECISION-4B v1 ran on one L40S for 15.1 host-hours (\45.29) plus \142.36 of API calls.
D.2 The Training Chain
Figure 9 shows the chain, which uses development and training seeds only.
| Role | What it decides | Our status |
|---|---|---|
| Tool choice | the next tool, or a shortlist of tools for the LLM | live, registered |
| Tool arguments | the values of bounded or copied arguments | live, registered (with tool choice) |
| Ask or act | ask the user now, or act | live, registered (an option of tool choice); offline by state type |
| Stop and verify | accept a proposed finish, or send the agent back | live, registered (DECISIONGYM); live, exploratory (mini-SWE-agent, pi); offline as a gate |
| Reflection | stop and rethink now, or go on | live, registered (DECISIONGYM); live, exploratory (pi) |
| Memory write and read | store this observation; which notes to show the LLM | live, exploratory (DECISIONGYM); hooks implemented, not evaluated |
| Model and reasoning-depth routing | strong or cheap LLM, deep or shallow thinking, per step | live, registered (DECISIONGYM); live, exploratory (mini-SWE-agent) |
| Action choice | the next action of an embodied agent | live, exploratory (ALFWorld) |
| Approval and safety gate | allow or veto a call the LLM proposed | live, exploratory (DECISIONGYM, mini-SWE-agent, pi); irreversible calls offline only; harness hooks implemented, not evaluated |
| Context compaction | which messages to keep, drop or summarise | implemented (pi), not evaluated |
| Retry and backtrack | retry, undo or abandon a line of work | not covered |
| Sub-agent dispatch and planning | whether and which sub-agent to start; plan or re-plan | not covered |
| Parallel batching | which calls can run together | not covered |
Table 13: Roles a decision model can play in a harness, and our evidence for each. Live, registered: a pre-registered task-level test, whatever its outcome. Live, exploratory: task-level runs outside the registered tests. Offline: re-scored stored answers or trajectories. Implemented: code and tests, evaluated at most in smoke tests or pilots.
Why visited states. We train on visited states because of the development-only measurements in Table 14. Intern-Decision-4B is close to JEV on isolated items, falls behind on the states that the LLM-only agent visits, and falls further behind on the states that its own choices lead to. Our SFT model trained on recorded states (data v0) reached 0.995 accuracy on the gate set but 0.45 on the states it visited in an on-policy pilot, where JEV reached 0.97.
| Model | Gate set | BFCL dev | DECISIONGYM shadow | REPLACE |
|---|---|---|---|---|
| JEV | 0.971 | 0.965 | 0.933 | 0.944 |
| Intern-Dec. 4B | 0.862 | 0.953 | 0.760 | 0.423 |
| Intern-Dec. 2B | 0.638 | 0.906 | - | 0.162 |
| Intern-Dec. 0.8B | 0.571 | 0.929 | - | 0.038 |
Table 14: Development diagnostic (small samples, no test): tool-selection accuracy on isolated items (210 gate-set decisions, 85 BFCL dev items) and on a 10-task DECISIONGYM development slice with Flash. Shadow: the states LLM-only visits. REPLACE: the states the decision model reaches itself.
Data v1 and stages. The harness ran on training seeds with Flash-Lite as executor in three behaviour arms: shadow (System-1 is only asked), near-miss replace (a scripted System-1 with injected errors reaches recovery states, as in DAgger Ross et al., 2011) and guard (a noisy answer key guards every tool call and the stop). The target is , or the gold one-hot where JEV's argmax is wrong. Executed calls outside the acceptable set become guard questions labelled no, so that a guard does not learn to always say yes. SFT v1 trains Qwen3-4B with LoRA on data v1 plus a replay share, and SFT v0 is the same recipe on recorded LLM-only states. OPD minimises over the student's own states from SFT v1 for 24 iterations, and GRPO runs for 30 iterations from SFT v1. Each training stage was kept only if it passed registered checks on development data.
Chain decisions. The chain kept SFT v1 + GRPO (iteration 15). OPD was dropped because it lowered development and recovery-state accuracy, and GRPO passed its gates and was frozen as AGENTDECISION-4B v1 (Table 16). The development slice is saturated. SFT v1 already matches AGENTDECISION-4B v1 on common-state accuracy, on task-level success (100.0%) and, after temperature scaling, on ECE, so no result isolates a gain from GRPO.
D.3 Recipe Takeaways by Stage
Table 15 compares the ways to obtain a decision model. SFT on the agent's own states gives almost all of the gain for about two GPU-hours, and GRPO on top added no measurable gain. Public tool-use data raises isolated accuracy but lowers task-level success on shifted tasks.
In Table 16, adding the states after an off-plan step (30.9% of data v1) raised development accuracy on such states from 92.2% to 99.8% (App. D.4). OPD lowered development accuracy in both tracks, and GRPO kept it and lowered raw ECE, but a fitted temperature of 0.40 gave SFT v1 the same calibration.
Second track (exploratory). A second registered track trained StartLux-Decision-4B (non-
| Option | Training cost | Shifted tasks (%) | |||
|---|---|---|---|---|---|
| L1 | L2 | must-ask | L3 | ||
| JEV, off the shelf | none (API) | 86.4 | 91.8 | 58.3 | 82.0 |
| Qwen3-4B, untrained | none | 71.4 | 52.9 | 27.6 | 13.5 |
| RL only (GRPO) | 1.6 GPU-h, $21.34 | 71.4 | 50.2 | 27.6 | 11.5 |
| + SFT on agent states | 2.2 GPU-h,$5.28 | 78.4 | 98.4 | 95.0 | 96.0 |
| + GRPO (AGENTDECISION-4B v1) | +4.5 GPU-h, +$26.53 | 78.8 | 98.6 | 90.8 | 96.0 |
| + public data (AGENTDECISION-4B) | +2.4 GPU-h | 85.1 | 94.9 | 67.4 | 91.5 |
| StartLux-4B + SFT, public data | 4.5 GPU-h | 85.5 | 98.5 | 100.0 | 98.0 |
Table 15: Ways to obtain a decision model: training cost (GPU-hours, and $ for the LLM calls that collect data or run GRPO episodes), isolated accuracy (L1, all items of Figure 4a) and accuracy and success on the shifted tasks (Table 3). GPU types differ across rows (App. F).
commercial licence) with the same losses on the Miles framework. It froze SFT v2 and makes no RL claim, since OPD and GRPO lowered success on a harder stress slice of 200 development tasks. In the Stage-2 combination v2 succeeded in 100.0% of 500 fresh tasks against 99.4% for LLM-only, at 54.8% lower cost with its GPU, the same picture as AGENTDECISION-4B v1.
D.4 Which Parts of the Recipe Matter
We retrained the SFT step with one ingredient changed at a time (Qwen3-4B with LoRA, one seed per arm, Table 17). On the common states a tenth of the training tasks stayed within 1.3 points of SFT on all of them, and gold labels alone matched the mixed labels. The model trained without off-plan states lost 1.9 points on the common states but scored higher on its own off-plan states, so the evidence on which states to train on is mixed.
GRPO without SFT. We ran AGENTDECISION-4B v1's GRPO stage from the untrained Qwen3-4B, with a fresh LoRA and everything else unchanged, for 15 iterations. The model made of the training decisions itself, yet it stayed at the untrained model's level on every measure (Table 15), with on the common states against before and after SFT. In of its task groups all eight episodes had the same reward and so gave no episode-level signal ( in AGENTDECISION-4B v1's first 15 iterations).
D.5 A Sub-1B Decision Model with a Scoring Head
We gave Qwen3.5-0.8B a fresh scoring head of the Clef design (Cloudflare, 2026), which returns one logit per allowed option for every question of a request in one pass, and trained it with LoRA and Unsloth's recipe (Unsloth AI, 2026) on AGENTDECISION-4B v1's supervised data (arm A) or on Unsloth's public mix of classification and typed-decision data (arm G), or on both (arm AG). Arm A matched AGENTDECISION-4B v1 on the common states (Table 18). Arm G matched arm A on BFCL's tool choices but scored 75.3 points lower on the common states. Arm A's confidences sat close to 1, and the registered fit placed both thresholds within of 1. In the final harness (App. C.1) arm A solved of 200 tasks, as the 4B harness did, at lower cost than Flash alone. Unsloth's decision-model code is AGPL-3.0, and we redistribute none of it.
D.6 DECISIONGYM-Hard
DECISIONGYM-Hard keeps the frozen generator, serves 10 or 12 customers per task and adds a tier rule that decides from the customer's tier and the order amount whether each order is cancelled or shipped (Table 19). With Stage 2's combination JEV kept success at a small saving but was slower, and AGENTDECISION-4B v1, which had never seen the tier rule, took nearly every cancel-or-ship decision, was often wrong and lost most tasks. After refitting, the threshold left every tool choice of AGENTDECISION-4B v1 to the LLM, and JEV's refitted cascade kept success at lower cost once the final answer listed each customer. One more epoch on tier-rule states raised AGENTDECISION-4B v1's held-out cancel-or-ship accuracy from to and kept its common-state accuracy ( against ). In the agent it accepted no wrong cancel-or-ship decision, but the paired test did not establish non-inferiority at the 3-point margin (Table 30). As registered, its last 120 tasks were added after the first 80 had been read.
D.7 The Training Recipe on ALFWorld
We repeated the SFT step of §5 (a fresh LoRA on Qwen3-4B) at ALFWorld's action decision point on its training games only, with the environment's next correct action as the label, and skipped GRPO, since SFT alone matched AGENTDECISION-4B v1 on DECISIONGYM (App. D.3). The registered fit accepted every confidence level, so on 140 valid_seen games the cascade took every action. It solved against for Flash alone, at lower cost with the GPU charged, and was non-inferior at the 3-point margin, which we report as descriptive (Table 30). Valid_seen shares its rooms with the training games, and the model comes from a single training run.
| Checkpoint | Data and training signal | GPU h | API $ | v1 dev | Common states | Dev | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| acc. | recov. | ECE | acc. | off-plan | ECE | |||||
| Track 1: Qwen3-4B, LoRA (AGENTDECISION-4B v1) | ||||||||||
| Untrained | - | - | - | 70.1 | 66.3 | 0.278 | 50.1 | 26.7 | 0.160 | - |
| SFT v0 | 1,225 recorded success-only states; gold | - | - | 95.2 | 92.2 | 0.022 | - | - | - | 88.0 |
| SFT v1 | 15,694 visited states (30.9% off-plan); gold + JEV | 2.2 | 5.28 | 99.7 | 99.8 | 0.029 | 99.2 | 93.8 | 0.011 | 100.0 |
| + OPD, it. 12 (dropped) | own states, forward KL to JEV | 3.7 | 12.11 | 98.9 | 97.9 | 0.023 | - | - | - | 100.0 |
| + GRPO, it. 15 (AGENTDECISION-4B v1) | episodes; call- and error-penalised success | 4.5 | 26.53 | 99.7 | 99.8 | 0.004 | 99.2 | 94.7 | 0.010 | 100.0 |
| Track 2: StartLux-Decision-4B, full fine-tuning on Miles (exploratory) | ||||||||||
| Zero-shot | - | - | - | 94.2 | - | 0.007 | 89.1§ | 76.8§ | 0.078§ | - |
| SFT v2 (kept) | data v1, as SFT v1 | - | - | 99.6 | 99.7 | 0.027 | 99.4 | 95.0 | 0.010 | 71.5¶ |
| + OPD, it. 12 | own states, forward KL to JEV | - | - | 98.7 | 97.9 | 0.017 | - | - | - | 66.5¶ |
| + GRPO, it. 15 | episodes; call- and error-penalised success | - | - | 99.6 | 99.7 | 0.006 | - | - | - | 62.5¶ |
| JEV (teacher) | - | - | - | 95.8 | 94.4 | 0.013 | 91.5 | 81.5 | 0.043 | 80.0 |
| Intern-Decision-4B | - | - | - | 84.3 | 82.0 | - | 75.2 | 47.6 | 0.049 | 26.0 |
Table 16: What each training stage used and bought (%). GPU h: host hours on one L40S. API $: building data v1, or rollouts, teacher and development evaluations. v1 dev and common states (Stage 2, descriptive): accuracy on all states and after an off-plan step, and ECE (raw on v1 dev). Dev: tool REPLACE success on the 50-task development slice. ¶Success on track 2's 200-task stress slice (JEV 49.0%, Intern-Decision-4B 11.5%). §Served by the vendor's server. -: not measured.
| Arm | Tasks | SFT min | C (%) | Dev. (%) | ||
|---|---|---|---|---|---|---|
| all | off-plan | all | off-plan | |||
| SFT v1 (all tasks) | - | - | 99.2 | 93.7 | 99.7 | 99.8 |
| 50% of tasks | 293 | 266 | 99.1 | 92.6 | 99.6 | 99.5 |
| 25% of tasks | 147 | 136 | 98.5 | 84.9 | 99.2 | 98.5 |
| 10% of tasks | 59 | 60 | 97.8 | 84.6 | 97.0 | 96.2 |
| 25%, gold labels only | 147 | 136 | 98.9 | 89.3 | 99.3 | 98.7 |
| 25%, JEV labels only | 147 | 136 | 93.2 | 76.2 | 95.5 | 94.6 |
| No off-plan states | 147 | 85 | 95.5 | 83.1 | 98.1 | 96.0 |
| Random rows, same size | 146 | 88 | 97.4 | 79.0 | 98.7 | 97.4 |
| JEV (teacher) | 91.5 | 81.5 | ||||
Table 17: SFT ablation (exploratory, one seed per arm). C: tool-choice accuracy on the common states of the fresh tasks. Dev.: held-out development decisions. Off-plan: after an off-plan step. SFT minutes on one A10G. Smaller arms also get fewer optimizer steps.
| Model | Isolated (%) | Common states (%) | Closed | Serving | ||||
|---|---|---|---|---|---|---|---|---|
| all | tools | all | off-plan | ask | loop % | ms | GB | |
| AGENTDECISION-4B v1 | 78.8 | 88.4 | 99.2 | 94.7 | 100.0 | 100.0 | 319 | 22.0 |
| 0.8B, agent states (A) | 67.8 | 80.5 | 99.2 | 94.1 | 100.0 | 100.0 | 91 | 2.4 |
| 0.8B, generic mix (G) | 52.3 | 81.8 | 23.9 | 22.4 | 25.0 | 0.0 | 91 | 2.4 |
| 0.8B, both (AG) | 68.8 | 84.8 | 99.1 | 92.7 | 100.0 | - | - | - |
Table 18: A 0.8B decision model with a scoring head (exploratory, one seed per arm). Isolated: all 3,991 isolated decisions and their BFCL tool choices. Common states: all, after an off-plan step, and must-ask. Closed loop: success when the model picks every tool on 200 fresh DECISIONGYM tasks. Serving: median ms per request and GPU memory, each model alone on one A10G.
| Arm | Succ. | Δ pt [95% CI] | Saved % | Took % | Acc. % | Wrong write |
|---|---|---|---|---|---|---|
| 10 customers, Stage-2 combination | ||||||
| LLM-only | 88.0 | - | - | - | - | 0 |
| Combination, JEV | 86.5 | -1.5[-7.5, +4.5] | 6.2 | 56.3 | 100.0 | 0 |
| Combination, AGENTDECISION-4B v1 | 3.0 | -85.0[-90.0, -79.5] | 69.4 | 99.9 | 81.7 | 152 |
| 12 customers, Stage-2 combination | ||||||
| LLM-only | 66.0 | - | - | - | - | 0 |
| Combination, JEV | 69.5 | +3.5[-4.5, +11.5] | 4.6 | 58.1 | 100.0 | 0 |
| Combination, AGENTDECISION-4B v1 | 0.5 | -65.5[-72.0, -59.0] | 69.5 | 100.0 | 81.5 | 169 |
| 12 customers, thresholds refitted on the new rule | ||||||
| LLM-only | 42.0 | - | - | - | - | 0 |
| Cascade, JEV | 19.0 | -23.0[-35.0, -11.0] | 31.0 | 99.3 | 100.0 | 0 |
| The same, final answer given as a list per customer | ||||||
| LLM-only | 87.0 | - | - | - | - | 0 |
| Cascade, JEV | 89.0 | +2.0[-6.0, +10.0] | 30.5 | 99.6 | 100.0 | 0 |
| The same, decision model retrained on the tier rule | ||||||
| LLM-only | 83.5 | - | - | - | - | 0 |
| Combination, retrained 4B | 81.5 | -2.0[-8.5, +4.5] | 4.3 | 51.6 | 100.0 | 0 |
| Combination, random-rule 4B* | 84.5 | +1.0[-4.5, +7.0] | -5.0 | 33.4 | 100.0 | 0 |
| List answer, thresholds refitted, agent LLM GPT-6-Luna | ||||||
| LLM-only | 45.0 | - | - | - | - | 44 |
| Cascade, JEV | 83.0 | +38.0[+26.0, +50.0] | -737.4 | 100.0 | 100.0 | 1 |
Table 19: DECISIONGYM-Hard on fresh tasks (exploratory). The two Stage-2 bands and the retrained band have 200 tasks, the bands with refitted thresholds 100. The agent LLM is Flash unless named, and dollar figures compare only within a band. Took and Acc.: share of the cancel-or-ship decisions the decision model took, and its accuracy on those. Wrong write: episodes ended by a wrong state-changing call. *Trained on random order rules, compared with the same LLM-only arm.
Unseen rooms. On ALFWorld's valid_unseen split (134 games in 4 rooms that occur in no training or calibration game), the unchanged cascade took of the actions and solved of the games against for Flash alone, at lower cost, and non-inferiority was not shown . Its actions were right about as often as in seen rooms, but it failed some of the simplest games that Flash alone always solved.
D.8 Agent-State Accuracy on Public Benchmarks
We replayed every recorded trajectory of Flash alone on ALFWorld's valid_seen and valid_unseen games (App. D.7), which reproduced all 3,355 states of 274 games, and every model answered the same states offline (Table 20).
| Model | L2 ALFWorld | Expert action | L2 | Live alone seen / unseen | |
|---|---|---|---|---|---|
| seen | unseen | ||||
| Trained on ALFWorld's training games | |||||
| Qwen3-4B + SFT | 93.9 | 91.5 | 84.5 | - | 95.7 / 88.1 |
| Trained on -bench's training tasks | |||||
| 0.8B scoring head + SFT | - | - | - | 46.6 | - |
| Trained on DECISIONGYM (transfer) | |||||
| AGENTDECISION-4B | 66.5 | 62.9 | 46.9 | 62.7 | - |
| 0.8B scoring head | 49.2 | 48.4 | 30.2 | 61.8 | - |
| Off the shelf | |||||
| Qwen3-4B | 64.7 | 57.3 | 42.5 | 59.2 | - |
| StartLux-4B | 69.2 | 63.6 | 47.6 | 59.2 | - |
| StartLux-9B | 74.9 | 70.6 | 55.0 | 59.3 | - |
| StartLux-27B | 73.1 | 68.2 | 55.2 | 51.6 | - |
| JEV | 70.5 | 65.3 | 49.0 | 52.0 | 27.1 / - |
| OpenAI Decisions | 72.0 | 64.2 | 48.1 | 37.7 | - |
| Flash's own action | 81.1 | 80.8 | 58.7 | 47.7 | 90.7 / 88.8 |
Table 20: Agent-state accuracy (%) on the states of Flash alone (game means). L2 ALFWorld: correct when ALFWorld's expert takes the action or it shortens the expert's path. Expert action: agreement with the expert's single next action (a lower bound). L2 : share of states where the model chooses the reference write action that is due (task means). Live alone: success when the model takes every action (for Flash, the agent alone). -: not run.
The model trained on ALFWorld's training games led, also in unseen rooms, though it learned from the expert that defines the labels. The models trained on DECISIONGYM did not transfer to ALF-World (AGENTDECISION-4B was right at of states and its untrained base at ). On -bench the ranking did not follow ALFWorld's (Kendall rank correlation over 8 models).
The training recipe on -bench. We trained the 0.8B scoring head of App. D.5 further on -bench's retail and airline training tasks, on states visited by Flash alone and labelled with Flash's choice when the episode succeeded or when that call matched a pending action of the reference solution. On the test tasks the harness lost success against Flash alone at its fitted thresholds, so non-inferiority was not shown, and at a threshold of 0.5 it saved more and lost less (Table 21). The result rests on one training run.
D.9 More Training on Public Tool-Use Data
We continued AGENTDECISION-4B v1's adapter for an epoch on 7,000 public items from When2Call's training split and ToolACE, mixed one to one with 7,000 of its own SFT states, after a leakage audit against every test pool. The resulting checkpoint, AGENTDECISION-4B, raised isolated accuracy from 78.8% to 85.1%, was non-inferior to AGENTDECISION-4B v1 on the common states at the registered 1-point margin (99.1% against 99.2%) and solved 100.0% of 200 fresh tasks. The same recipe and data on StartLux-Decision-4B (CC BY-NC 4.0 weights) reached 85.5% on the isolated questions, +2.3 points above its base, was non-inferior to AGENTDECISION-4B v1 on the common states (99.6%) and solved 100.0% of the same tasks.
| Test tasks | Success (%) | pt [95 %] | NI p | LLM-free (%) | saved (%) | time (s) | ||
|---|---|---|---|---|---|---|---|---|
| n | LLM | with | ||||||
| Fitted thresholds | ||||||||
| Both domains | 60 | 66.2 | 54.2 | -12.1 [-19.2, -5.4] | 0.979 | 3.9 | 4.6 | 19.8 / 26.9 |
| Retail | 40 | 64.4 | 52.5 | -11.9 [-20.6, -3.8] | 0.857 | 5.6 | 5.8 | 19.6 / 26.7 |
| Airline | 20 | 70.0 | 57.5 | -12.5 [-25.0, -1.2] | 1.000 | 0.9 | 2.5 | 20.4 / 27.4 |
| Threshold 0.5 at both decision points | ||||||||
| Both domains | 60 | 66.2 | 59.2 | -7.1 [-13.8, -0.4] | 0.654 | 39.0 | 31.3 | 19.8 / 28.0 |
Table 21: The recipe on -bench's test tasks (exploratory). test tasks, each run 4 times per arm, success averaged per task. : paired, with a task-bootstrap interval. NI : certified test at the 5-point margin on each task's majority outcome. LLM-free: agent turns the decision model completed without the LLM. Saved: cost saving with the GPU charged. Time: s per episode (LLM alone / with the model). Retail's natural-language checks were judged by Gemini 3.5 Flash instead of -bench's gpt-4.1.
Reading a rule. Trained instead on DECISIONGYM-Hard tasks with an order rule drawn per task (never the evaluated one), the random-rule checkpoint was right at 91.0% of held-out cancel-or-ship states of the unseen tier rule, against 76.5% for AGENTDECISION-4B v1 and 95.3% for the model trained on that rule itself (App. D.6).
D.10 Train/Evaluation Hygiene
An offline audit checked both training tracks against every evaluation set. The training seeds lie between 10,000 and 72,999 and share 0 seeds with the 1,250 evaluation seeds, and no evaluation task repeats a training task's world or gold plan. of the common-state occurrences repeat a training state word for word (early steps whose state is little more than the instruction), and AGENTDECISION-4B v1 scores without them and with them. The questions have no near duplicate among the training rows. Data v1's When2Call replay shares no 8-gram with a test question. Data v0's shares one in 15 rows, but it trained only SFT v0, which was never scored on L1. AGENTDECISION-4B v1 was chosen on development inputs only, and every DECISIONGYM
| All states | Must-ask | After off-plan | Seen key | Unseen key | |
|---|---|---|---|---|---|
| States n | 5,314 | 267 | 386 | 4,874 | 440 |
| (a) Prior | 26.6 | 0.0 | 18.6 | 26.5 | 20.5 |
| (c) Last tool | 85.2 | 50.0 | 50.9 | 86.8 | 67.4 |
| (b) Tool sequence | 94.9 | 99.3 | 39.0 | 100.0 | 20.5 |
| (b+) Back-off | 97.5 | 99.3 | 62.9 | 100.0 | 67.4 |
| Best per key | 99.9 | 100.0 | 99.4 | 100.0 | 99.6 |
| JEV | 91.5 | 27.0 | 81.5 | 91.8 | 90.2 |
| StartLux-27B | 93.9 | 26.0 | 85.1 | 94.7 | 90.8 |
| Qwen3-4B base | 50.1 | 24.0 | 26.7 | 50.3 | 55.6 |
| SFT v1* | 99.2 | 100.0 | 93.8 | 100.0 | 95.6 |
| AGENTDECISION-4B v1* | 99.2 | 100.0 | 94.7 | 99.9 | 96.3 |
| 0.8B head* | 99.2 | 100.0 | 94.1 | 100.0 | 95.1 |
Table 22: Template baselines and decision models on the common states, as task-weighted accuracy (%), post hoc and descriptive. The baselines are fitted on the training rows only: (a) the most frequent label, (b) the most frequent label for the key (task family and tools executed so far), (c) the same keyed on the last executed tool, (b+) (b), then (c), then (a). Seen key: the key occurs in the training rows. A bound that picks one tool per key on the common states themselves. *Trained on these rows. 0.8B head: App. D.5.
threshold was fitted on calibration seeds. We disclose one exposure. Before access to Stage-1 results was blocked, the person training v1 printed the first record of one Stage-1 trajectory file to learn the trajectory format. No aggregate was opened and no pre-fixed rule changed, but a strict reader may treat the two Stage-2 tests of AGENTDECISION-4B v1 (App. E) as exploratory. The code checkout of the exploratory second track contained the selection summary of the registered transfer test. Intern-Decision and StartLux-Decision were released before any evaluation task list was frozen, but their training data are closed, so overlap with the public L1 items cannot be excluded.
Template baselines. DECISIONGYM builds every task from a few request templates, so the right tool may follow from the template alone. We fitted lookups on the 4,493 tool-choice rows of the supervised training data (Table 22). One tool per key would get almost every common state right, at the must-ask states too, so on most common states the trained models' lead over off-the-shelf models reflects the generator's conventions. The trained models pull ahead on the states whose key never occurs in training, most of which follow an off-plan step. On the shifted split of App. G.9, a lookup by tool name scores on the states whose right tool was renamed, while AGENTDECISION-4B v1 scores .
E Protocol and Statistics
Metrics. Every success number comes with dollars, latency (the critical path of model calls) and LLM calls, as in cost-aware evaluation of agents, routers, calibration and selective prediction (Kapoor et al., 2025; Yao et al., 2025; Ong et al., 2025; Pakdaman Naeini et al., 2015; Geifman et al., 2019). Utility is for success , cost , latency , task value and latency price , and ECE is the 10-bin top-label calibration error (other metrics in docs/BENCHMARK_SPEC.md). Paired comparisons resample tasks and keep the trials of one task together (Efron and Tibshirani, 1993; Koehn, 2004). A task that still errors in either arm after two retries leaves that comparison.
Non-inferiority decision rule. For margin on a paired binary endpoint, and count the tasks the arm wins and loses. The outcomes are ordered by the monotone hull of the log -value of Tango's one-sided score test of : (Tango, 1998). The decisive is , where bounds the tail probability under every boundary null whose discordance lies in a Clopper-Pearson set (, Suissa and Shuster, 1985; Berger and Boos, 1994). The test is valid at every , with exact size at most at the registered sizes. At zero discordance we report the exact upper bound on the loss rate.
Other tests. The tool cascade, the three-tool shortlist and the stop veto must hold for both JEV and Intern-Decision, so their decisive is (Table 25). Superiority primaries use the exact conditional test on discordant pairs and, for the reflection trigger, the one-sided paired -test of the per-task utility difference. Sign-flip tests and the paired task bootstrap () are descriptive. On the per-task endpoint is majority pass over three attempts, and the transfer test refits on 15 held-out airline tasks, counting a decision as right if it matches the next reference action. Pilots on retired seeds fixed the suite settings, and no pilot result is reported as a finding. The Flash-Lite pairs and the transfer test are underpowered and can end inconclusive (exact power in results/reviews/2026-10-02/ni_power_exact_r8.md).
Registration and claims. The registration, its dated deviations and the wording of each test are in the supplementary repository (docs/PREREGISTRATION.md, docs/PREREG_A7_STAGE2.md and their generated effective versions). Stage 2 was registered before any Stage-1 output was opened, and Table 24 lists every registered test with its result. Holm's method keeps the family-wise error of the eleven Stage-1 tests at 5% (Holm, 1979), and the four Stage-2 tests form a second family. A registered claim holds when all of its conditions pass. Every other number is descriptive. Experiments added after Stage 1 were each written down before they ran but lie outside both families, and a dagger ( ) marks them where a display mixes both kinds (paired intervals in Table 30).
Selection and arms. A script chose the combination once from the Stage-1 results, per decision-point group and System-2 model, among the registered JEV arms at their registered settings. A candidate qualified when it delegated, was non-inferior (NI at 3 points) and was cheaper (one-sided paired t-test, ). Among qualifiers within 2 points of the largest net saving, the one that leaves most to the LLM won, and a group with no qualifier stayed with the LLM. On 500 new DECISIONGYM seeds one scheduler runs every arm on every task in random order: LLM-only, the combination with JEV, its best single delegation, the combination with AGENTDECISION-4B v1 (thresholds refitted on its own calibration arms) and the development combination. No Flash-Lite delegation qualified. A Stage-2 test rejects when all its conditions reject (Table 27), and the six secondary rows are Holm-adjusted within their table. The common states of the accuracy test are the tool-selection questions four frozen policies met on the first 200 new seeds.
Training behind a barrier and a third System-1 family. A manifest fixed the training inputs, recipes, budgets, stage order and checkpoint-selection rules before evaluation outputs reached model development (App. D.10). An amendment registered before any Stage-1 result was read adds StartLux-Decision (open weights, 0.8B–27B), served without tuning on our data. Its 4B runs the combination as a secondary test.
F Models, Cost and Licences
Models. The agent LLMs are Gemini 3.5 Flash (gemini-3.5-flash) and the cheaper, weaker Flash-Lite (gemini-3.5-flash-lite), both with minimal thinking, temperature 0 and native tool calls. Gemma 4 (gemma-4-26b-a4b-it) is an L1 baseline. All were accessed September–October 2026 (§6). JEV 1.13 (Almeida, 2026), a closed typed decision API released on 15 September 2026, is pinned as typesafe/jev-1.13 (§2).
Cost and latency. Episode cost is
with list prices on the run dates applied to measured tokens, and savings compare with a reference run on the same tasks. JEV is billed through OpenRouter at 0.00196 per episode (192.93, which this saving pays back after 5,759 episodes. Critical-path latency sums sequential calls and counts concurrent calls once, at their maximum. The study's API spend from the run ledgers was$2,383.27 (by track in results/spend/spend_ledger.md).
Licences and release. Table 23 lists the licences or terms of the artefacts we use. We release the benchmark code and configurations, JEVAGEN-THARNESS with its adapters, the post-training recipes, seeds and evaluation code. Weights and data derived from JEV or Gemini outputs are released only where the providers' terms permit. The textless icons in Figures 1–3 were generated with OpenAI's gpt-image-2.5 from our prompts, except the Microsoft Fluent UI Emoji in Figure 1. Every label and number in the figures is typeset text.
G Result Tables
G.1 All Registered Tests
Table 24 lists every registered test with its outcome, and Table 25 splits the primaries that must hold for both decision-model families.
| Artefact | Licence or terms |
|---|---|
| When2Call | CC BY 4.0 (attribution) |
| Intern-Decision 0.8B / 2B / 4B | Apache-2.0 (Qwen licence preserved) |
| StartLux-Decision (weights; server code) | CC BY-NC 4.0; Apache-2.0 |
| pi, DeepSeek Harness, mini-SWE-agent, -bench, ALF-World | MIT |
| BFCL v4 (Gorilla), Harbor, Apache-2.0 | |
| Codex CLI (hook schemas) | |
| Qwen3, SWE-bench Veri-fied, Terminal-Bench 2.0 / -Science | |
| LoCoMo; LongMemEval CC BY-NC 4.0; MIT (not reported) | |
| Microsoft Fluent UI Emoji MIT (icons in Figure 1) | |
| JEV via OpenRouter; Gemini provider terms | |
| API; OpenAI API (GPT-6.1-Sol row; figure icons) |
Table 23: Licences and terms of the artefacts used.
| Δ pt | saved % | REPLACE | CASCADE | ASSIST | GUARD | TRIGGER |
|---|---|---|---|---|---|
| Tool choice | -19.0|67 | +0.0|14 | -7.8|54 | +0.0|0 | +0.0|-14 |
| Tool args.a | -20.0|88 | +0.0|14 | +0.0|9 | +0.0|-7 | +0.0|-1 |
| Memory write | = trig.+0.5|-47 | -1.0|-48 | +0.0|-74 | +0.0|-60 | -1.0|-39 |
| Memory reada | = assist.+0.5|-11 | +0.0|-21 | +0.0|-5 | +0.0|-140 | +0.0|-1 |
| Reflection | = trig.-0.5|-7 | +0.5|-25 | -0.5|-66 | +0.0|-61 | +0.0|1 |
| Stop | = casc.+0.5|-7 | +0.0|-1 | +0.0|-17 | -0.6|-6 | +0.0|0 |
| Routingb | = trig.+4.0|-7 | -4.0|-113 | -2.0|-31 | +0.0|-23 | +0.6|-36 |
| Action | -64.3|91 | +0.0|14 | -40.7|-182 | -0.7|-87 | -2.1|-111 |
kept success, cheaper small loss or no saving lost 3+ points
planned test: passed / failed a repeat run disagreed
With tool choice or memory write vs. Flash-Lite, routing to Flash
= mode same as that mode ◇ added later
Figure 10: The module map of Figure 5 with every mark. Each cell shows the change in task success against the LLM alone (points) | cost saved (%), with JEV and Gemini 3.5 Flash.
G.2 Stage 1: The Module Map
Figure 10 repeats Figure 5 with every mark. A cell is green if success fell by at most 1 point, cost fell, and the decision model changed the harness's choice at or more of the steps where it could. It is pink if success fell by 3 points or more. This rule was fixed in code before any number was computed. Every Stage-1 configuration is in results/module_map/module_map.md.
Exploratory cells. Every remaining defined cell ran after Stage 1, each registered first (diamonds in Figure 10). The action row comes from ALFWorld. Of these cells, only the argument shortlist and the action cascade changed the agent's choices at lower cost. The second and third DECISIONGYM batches ran on another route to the same model, so their costs compare only with their own LLM-only arm.
G.3 More Stage-1 and Stage-2 Results
Stage 1. Table 26 gives the isolated decisions. Only of the 2091 argument slots have their gold value among the candidates, hence the in-candidate column. The Stage-1 arms are in results/tau2/ and the Intern-Decision arms in results/gpu_round4_main/e2a_intern_report.md. A registered check compared how DECISIONGYM and the 35 airline tasks rank the 9 configurations run on both (Kendall's by success difference, ).
Stage 2. Table 27 splits each Stage-2 test into its conditions, and Table 28 gives the secondary tests and descriptive rows (score cards in results/stage2/stage2.md). With JEV, the reflection trigger fired in all 14 failures of the combination.
G.4 Results Near the Ceiling
Table 29 holds the registered Stage-2 rows on tasks the LLM alone nearly always solved. For the harder settings of the main text, Table 30 gives the paired counts, the score interval of the success difference (Tango, 1998) and the one-sided non-inferiority (rows added after Stage 1 apply the registered rule descriptively).
G.5 Notes on Figure 4 and Tables 1–3
Figure 4. In (b), isolated means BFCL tool choice and spread is best minus worst. (a) 3,991 recorded BFCL and When2Call decisions. AGENTDECISION-0.8B is StartLux-0.8B with our recipe, and a ring marks a hosted API. Orange diamonds: Gemini 3.5 Flash and Flash-Lite asked the same multiple-choice question, and the open diamond is Flash's own tool call. Open models are priced at their cheapest deployment (App. G.7), APIs and LLMs at list price. Models below are in App. Table 32. (b) Shifted DECISIONGYM tasks (App. G.9). Isolated: BFCL tool choice on 1,114 items. Step level: 1,250 recorded states of 100 tasks. Task level: 200 tasks with the model picking every tool, of which Flash alone solved (StartLux-27B: the first 164). AGENTDECISION-4B saw only the unshifted generator.
Table 1. The reference is the LLM alone on the same tasks, Gemini 3.5 Flash unless the row names
| Test | What is tested | Success difference, points [95% CI] | Cost saved (%) | Decided by the model (%) | Adjusted p | Outcome |
|---|---|---|---|---|---|---|
| Stage 1: is each use of the decision model safe and useful? (11 tests; non-inferior to LLM-only on DECISIONGYM with Flash unless stated) | ||||||
| C1F | Model picks tool and arguments if confident (CASCADE) | +0.0 [+0.0, +0.0] | 14.2 | 27.2 | 0.001 | non-inferior (only JEV delegated) |
| C1L | the same, with the cheaper Flash-Lite | +1.0 [-1.0, +3.2] | 0.2 | 0.0 | 0.168 | not established (Intern-Decision inconclusive) |
| C2F | Model shortlists three tools for the LLM (ASSIST) | -7.8 [-10.2, -5.4] | 53.7 | - | 1.000 | not established (both models lose) |
| C2L | the same, with Flash-Lite | -3.4 [-7.2, +0.6] | 52.0 | - | 1.000 | not established (Intern-Decision loses) |
| C3 | JEV's shortlist is better than a BM25 keyword shortlist | +73.2 [+68.0, +78.2] | - | - | <0.001 | better |
| C4 | Model decides when Flash-Lite hands a step to Flash (TRIGGER); better than Flash-Lite alone | +0.6 [-1.6, +2.8] | -36.2 | - | 1.000 | not established |
| C5 | Model decides when to reflect (TRIGGER, Flash-Lite); better than an equally frequent random trigger | -0.0233[-0.0557, +0.0087] | - | - | 1.000 | not established |
| C6F | Model can veto the LLM's decision to stop (GUARD) | -0.6 [-1.4, +0.0] | -6.2 | - | 0.002 | non-inferior |
| C6L | the same, with Flash-Lite | +1.6 [-0.8, +4.0] | -32.1 | - | 1.000 | not established (Intern-Decision loses) |
| C7 | Cheapest non-inferior DECISIONGYM setup, refitted, on τ2 | -8.1 [-16.1, +0.0] | -18.1 | - | 1.000 | not established (inconclusive) |
| C8 | JEV against Flash on isolated BFCL tool-choice questions | -0.4 [-1.5, +0.8] | - | - | 0.001 | non-inferior |
| Stage 2: does the chosen combination hold on fresh tasks? (4 tests: three combinations non-inferior to their reference and cheaper on 500 new DECISIONGYM tasks, and accuracy on the same recorded states) | ||||||
| S2-1 | Combination with JEV | -2.2 [-3.8, -0.8] | 40.7 | 52.5 | 0.356 | not established |
| S2-2 | Combination against its best single part, the tool cascade | -2.6 [-4.2, -1.2] | 27.0 | 52.5 | 0.356 | not established |
| S2-3 | On the same states, AGENTDECISION-4B V1 beats Intern-Decision and is at most 5 points below JEV | +24.0 [+22.1, +25.9] | - | - | <0.001 | holds |
| S2-4 | Combination with AGENTDECISION-4B V1 as decision model | +0.6 [+0.0, +1.4] | 81.1 | 99.9 | <0.001 | holds |
| Stage 2, secondary tests (6 tests; as above unless stated) | ||||||
| S2-1T | Combination with JEV is faster (seconds saved per episode) | -2.54 [-2.87, -2.21] | - | 52.5 | 1.000 | not established |
| S2-1L | Combination with Flash-Lite | - | - | - | - | not tested (none qualified) |
| S2-L3a | Combination on τ2 telecom (5-point margin) | -1.6 [-5.0, +1.8] | -2.6 | 8.1 | 1.000 | not established |
| S2-L3b | Combination on ALFWorld, against a ReAct agent | - | - | - | - | not run |
| S2-1X | Combination with DeepSeek-V4-Pro as the agent LLM | +7.2 [+3.8, +10.6] | -20.8 | 0.0 | 1.000 | not established |
| S2-4S | Combination with StartLux-4B as decision model | +0.0 [-0.6, +0.6] | -1.4 | 17.3 | 1.000 | not established |
Table 24: Every registered test. Success difference: setup minus reference in points (reflection trigger: utility in p \leq 0.05\tau^{2}$ ) below the reference. For the cascade with Flash, an exact bound puts the share of tasks JEV's cascade turned into failures below 0.6%.
| Test | JEV | Intern-Decision-4B | Registered label | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Δ | 95% CI | p | Cov. | Sav. | Δ | 95% CI | p | Cov. | Sav. | |||
| Cascade, Flash | +0.0 | [+0.0, +0.0] | <0.001 | 27.2 | 14.2 | +0.2 | [+0.0, +0.6] | <0.001 | 0.0 | -0.2 | <0.001 | NI |
| Cascade, Flash-Lite | +1.0 | [-1.0, +3.2] | <0.001 | 0.0 | 0.2 | -0.6 | [-2.8, +1.6] | 0.024 | 0.0 | 1.0 | 0.024 | not NI (split) |
| Shortlist, Flash | -7.8 | [-10.2, -5.4] | 1.000 | - | 53.7 | -3.6 | [-5.4, -2.0] | 0.767 | - | 53.0 | 1.000 | not NI (both lose) |
| Shortlist, Flash-Lite | -3.4 | [-7.2, +0.6] | 0.591 | - | 52.0 | -14.8 | [-19.0, -10.6] | 1.000 | - | 53.7 | 1.000 | not NI (Intern loses) |
| Stop veto, Flash | -0.6 | [-1.4, +0.0] | <0.001 | - | -6.2 | -0.4 | [-1.0, +0.0] | <0.001 | - | -3.0 | <0.001 | NI |
| Stop veto, Flash-Lite | +1.6 | [-0.8, +4.0] | <0.001 | - | -32.1 | -6.0 | [-9.2, -3.0] | 0.975 | - | -45.3 | 0.975 | not NI (Intern loses) |
Table 25: DECISIONGYM primaries per decision-model family. : success minus LLM-only (points). : the family's non-inferiority , and the that enters Holm. Cov.: tool-decision coverage (%). Sav.: net savings. Split: one family passes. ||NI with Intern-Decision at zero coverage.
another LLM. The refitted-cascade and GPT-6-Luna rows use other DECISIONGYM-Hard tasks with list answers and their own LLM-only runs (App. D.6). In the Luna row, “×” is the cost as a multiple of the reference’s, whose run had 95.5% of its input cached (0.9% with the cascade) and stopped 44 episodes early at a wrong write. The mini-SWE-agent row pools 100 earlier with 200 new instances (App. C.2). The ALFWorld 4B model is SFT on ALFWorld’s training games (App. D.7). Paired tests: Table 30.
Table 2. “Gate” accepts the decision model’s answer, “4B” is AGENTDECISION-4B V1 and “4B + public data” is AGENTDECISION-4B. The fixed-threshold row covers tool choice on the first 200 tasks. Gate rows are offline, per argument decision (App. C.4). The new-rule row uses other tasks (App. D.6). “Own GPU” rows compare with a ref- erence run in the same session, and the coding row with the strong LLM. The 0.8B row learns when to defer (App. G.8). Negative time savings mean slower.
Table 3. L1: isolated accuracy (%) on the questions of Figure 4a. L2 and L3 use DECISIONGYM-Shift (App. G.9). L2: step-level accuracy on recorded states, with “ask” for the states where the agent must ask (for ALFWorld, the share of acceptable actions). L3: success on 200 shifted tasks with the model making every tool choice. Saved: cost saved when deployed on new tasks of the trained kind. Green marks a non-inferior result and rose one that is not. -: not deployed. “+ GRPO (Stage 2)” is AGENTDECISION-4B V1.
| Decider | Tool selection (BFCL) | Arguments (BFCL) | When2Call | Efficiency | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Acc | ECE | AUROC | Acc | ECE | Acc | ECE | p50 ms | $/1k | ||
| System-2 LLM | ||||||||||
| Gemini 3.5 Flash, native FC | 84.2 | - | - | 96.3 | 98.3 | - | 42.1 | - | 884 | 1.17 |
| Gemini 3.5 Flash, typed question | 90.3 | 0.075 | 0.71 | 93.6 | 95.9 | 0.041 | 74.0 | 0.238 | 2551 | 0.63 |
| Typed decision models | ||||||||||
| JEV | 89.9 | 0.045 | 0.87 | 89.6 | 95.7 | 0.029 | 75.4 | 0.080 | 206 | 0.0167 |
| AGENTDECISION-4B V1 | 88.4 | 0.098 | 0.71 | 85.0 | 95.0 | 0.132 | 54.0 | 0.458 | 228 | 0 |
| Generative deciders (reference) | ||||||||||
| Flash-Lite, verbalised | 90.7 | 0.080 | 0.65 | 89.0 | 93.3 | 0.088 | 62.6 | 0.355 | 576 | 0.147 |
| Gemma 4 26B-A4B, verbalised | 89.1 | 0.094 | 0.68 | 87.4 | 94.3 | 0.095 | 54.4 | 0.392 | 1188 | 0 |
| Retrieval controls | ||||||||||
| Embedding | 79.3 | 0.049 | 0.72 | - | - | - | - | - | 183 | 0.0121 |
| BM25 | 61.4 | 0.140 | 0.82 | 31.5 | 53.3 | 0.182 | 29.5 | 0.604 | 0 | 0 |
| TF-IDF | 62.3 | 0.251 | 0.82 | 31.6 | 53.6 | 0.440 | 30.4 | 0.590 | 0 | 0 |
Table 26: L1 results: accuracy (%), ECE, AUROC, p50 latency and _{cand}$ covers slots whose gold value is a candidate.
| Test | Condition | Estimate [95% CI] | Null | Raw p | Reading |
|---|---|---|---|---|---|
| With JEV | NI on success (pt) | -2.2 [-3.8, -0.8] | -3.0 | 0.178 | not NI: loss of 2.2 pt (95 % CI entirely below 0) |
| Against cascade alone | cost saving ($/ep.) | 0.0168 [0.0157, 0.0179] | 0 | <0.001 | cost saving established |
| NI on success (pt) | -2.6 [-4.2, -1.2] | -3.0 | 0.326 | not NI: loss of 2.6 pt (95 % CI entirely below 0) | |
| cost saving ($/ep.) | 0.00907 [0.00805, 0.0101] | 0 | <0.001 | cost saving established | |
| AGENTDECISION-4B V1, same states | acc. vs. Intern (pt) | +24.0 [+22.1, +25.9] | +0.0 | <0.001 | accuracy gain over Intern-Decision-4B established |
| acc. vs. JEV (pt) | +7.7 [+6.3, +9.1] | -5.0 | <0.001 | non-inferiority to Jev (no more than 5 pt less accurate) established | |
| With AGENTDECISION-4B V1 | NI on success (pt) | +0.6 [+0.0, +1.4] | -3.0 | <0.001 | NI |
| cost saving ($/ep.) | 0.0335 [0.0325, 0.0345] | 0 | <0.001 | cost saving established | |
| With JEV | latency saving (s/ep.) | -2.54 [-2.87, -2.21] | 0 | 1.000 | the wrong direction: latency saving reversed (95 % CI entirely below 0) |
| With Flash-Lite | - | - | - | - | not tested: no Flash-Lite delegation qualified |
| On telecom | NI on success (pt) | -1.6 [-5.0, +1.8] | -5.0 | 0.027 | NI |
| cost saving ($/task) | -0.00336 [-0.00677, 0.0000569] | 0 | 0.973 | no cost saving established at this n | |
| On ALFWorld | - | - | - | - | not run: ALFWorld did not run in Stage 1 |
| With DeepSeek-V4-Pro | NI on success (pt) | +7.2 [+3.8, +10.6] | -3.0 | <0.001 | NI |
| cost saving ($/ep.) | -0.000423 [-0.000452, -0.000394] | 0 | 1.000 | the wrong direction: cost saving reversed (95 % CI entirely below 0) | |
| With StartLux-4B | NI on success (pt) | +0.0 [-0.6, +0.6] | -3.0 | <0.001 | NI |
| cost saving ($/ep.) | -0.000594 [-0.00101, -0.00018] | 0 | 0.997 | the wrong direction: cost saving reversed (95 % CI entirely below 0) |
Table 27: Each Stage-2 condition with its estimate and 95% interval, null boundary, raw one-sided p and reading. Secondary tests are below the line. The rows with AGENTDECISION-4B V1 and StartLux-4B include a GPU price per episode (0.00217). At JEV's API price the StartLux-4B combination would save -1.3%, and 3.8% at a zero GPU price.
| What is compared | Effect pt | Cost saved % | By model % | Wall-clock s | Outcome |
|---|---|---|---|---|---|
| Secondary tests: 500 fresh DECISIONGYM tasks unless noted, Flash | |||||
| Combination with JEV: model-call seconds saved | -2.54 | - | - | - | did not hold |
| Combination with StartLux-4B as decision model | +0.0 | -1.4 | 17.3 | 13.99 | did not hold |
| Combination with DeepSeek-V4-Pro as agent LLM | +7.2 | -20.8 | 0.0 | 37.82 | did not hold |
| Combination on telecom | -1.6 | -2.6 | 8.1 | - | did not hold |
| Descriptive, fresh DECISIONGYM tasks | |||||
| DeepSeek-V4-Flash alone | +20.4 | 75.3 | - | 24.04 | descriptive |
| Combination on GPT-6.1-Sol | -0.6 | -19.8 | 0.0 | 23.37 | descriptive |
| GPT-6-Luna alone | +0.8 | 92.3 | - | 12.81 | descriptive |
Table 28: Stage-2 secondary tests and descriptive rows. Effect: success difference to LLM-only Flash unless noted (points). By model: share of tool decisions the decision model took. Model-call seconds per episode, negative when slower. 4 instead of 8 parallel episodes. Against V4-Pro alone (33.80 s). 5-point margin. Registered optional row, against GPT-6.1-Sol alone (99.0%, 19.16 s).
| Arm | Success | Cost | By model % | Wall-clock s | Outcome | ||
|---|---|---|---|---|---|---|---|
| % | Δ pt | $/1k ep. | saved % | ||||
| 500 fresh DECISIONGYM tasks, agent LLM Flash | |||||||
| LLM-only | 99.4 | 41.3 | 6.83 | reference | |||
| Tool cascade alone, JEV | 99.8 | +0.4 | 33.5 | 18.8 | 28.9 | 7.61 | descriptive |
| Combination (cascade + trigger), JEV | 97.2 | -2.2 | 24.5 | 40.7 | 52.5 | 9.21 | did not hold |
| the same, vs. the cascade alone | -2.6 | 27.0 | did not hold | ||||
| Same combination, AGENTDECISION-4B v1 | 100.0 | +0.6 | 7.8 | 81.1 | 99.9 | held | |
| Common states (5,314 states of 200 fresh tasks): tool-choice accuracy instead of success | |||||||
| AGENTDECISION-4B v1 vs. Intern-Decision and vs. JEV (non-inferior, 5-pt margin) | 99.2 | +24.0 | held | ||||
| +7.7 | |||||||
Table 29: Near the ceiling, delegation cut cost, and whether success held depended on the decision model. Registered Stage-2 tests on DECISIONGYM tasks the LLM alone nearly always solved. : to LLM-only unless the row names another reference. By model: share of tool decisions the decision model took. A claim that did not hold was not established, which does not show a loss beyond the margin. instead of 8 parallel episodes.
| Row of Table 1 | n | wins | losses | Δ pt | 95% interval | p |
|---|---|---|---|---|---|---|
| DECISIONGYM-Hard, combination, JEV | 200 | 38 | 31 | +3.5 | [-4.7, +11.7] | 0.061 |
| DECISIONGYM-Hard, combination, AGENTDECISION-4B v1 | 200 | 0 | 131 | -65.5 | [-71.7, -58.7] | 1.000 |
| DECISIONGYM-Hard, AGENTDECISION-4B v1 retrained | 200 | 21 | 25 | -2.0 | [-8.8, +4.8] | 0.402 |
| DECISIONGYM-Hard, AGENTDECISION-4B v1 trained on random rules | 200 | 18 | 16 | +1.0 | [-4.9, +6.9] | 0.091 |
| DECISIONGYM-Hard, cascade refitted, JEV | 100 | 9 | 7 | +2.0 | [-6.3, +10.5] | 0.117 |
| DECISIONGYM-Hard, GPT-6-Luna, cascade refitted | 100 | 44 | 6 | +38.0 | [+25.8, +49.2] | 0.000 |
| SWE-bench, DeepSeek-V4 | 100 | 3 | 3 | +0.0 | [-5.9, +5.9] | 0.135 |
| SWE-bench, Gemini 3.8 Flash (App. C.2) | 100 | 8 | 3 | +5.0 | [-1.7, +12.5] | 0.012 |
| SWE-bench, DeepSeek-V4, 100 + 200 new | 300 | 9 | 12 | -1.0 | [-4.3, +2.2] | 0.108 |
| ALFWorld, action cascade | 140 | 4 | 4 | +0.0 | [-4.7, +4.7] | 0.092 |
| ALFWorld, 4B trained there, cascade | 140 | 13 | 7 | +4.3 | [-2.1, +11.1] | 0.014 |
| -bench telecom (registered) | 560 | 43 | 52 | -1.6 | [-5.0, +1.8] | 0.027 |
Table 30: Paired tests for the rows of Table 1. Wins: tasks only the delegated arm solved. Losses: tasks only the reference solved. p: one-sided non-inferiority test with a 3-point margin (5 points on -bench), non-inferior when . 100 + 200 new: the instances of the first routing run pooled with those of its extension (App. C.2).
G.6 Evaluation Levels and Reach
Table 31 holds the numbers behind Figure 4. Over the five pre-specified models the isolated and task-level rankings disagree (Kendall rank correlation -0.200).
External reference agreement on . A registered offline diagnostic scores agreement with 's reference trajectories on the 22,704 questions the Stage-1 arms asked JEV. AGENTDECISION-4B v1 agreed more often than Intern-Decision-4B and less often than JEV, but always choosing the reply to the user agrees about as often (54.1 against 53.7%). The reference marks one next step where several can be acceptable, so this agreement says little about success.
StartLux size ladder at the task level (exploratory). The StartLux-Decision rows 0.8B, 2B and 9B of Table 31 ( ) use the same items, states and tasks as the other rows. Common-state accuracy rose with every size step (Kendall correlation with size 1.00) and task-level success did not (0.60).
Cost–accuracy frontier of isolated decisions. Figure 4 re-plots the recorded answers to the 3,991
| Decision model | Isolated | Step-level: common states | Own states | Task-level, model alone | Steps | API $/ep. | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| acc. | acc. | Δ vs. JEV [95% CI] | off-plan | ECE | success | Δ vs. JEV [95% CI] | |||||
| JEV | 89.9 | 91.5 | - | 81.5 | 0.043 | 91.0 | 83.0 | - | 7.0 | 0.0144 | |
| Intern-Decision-4B | 88.2 | 75.2 | -16.3 [-18.1, -14.5] | 47.6 | 0.049 | 62.2 | 26.5 | -56.5 [-62.8, -49.0] | 4.6 | 0.0080 | |
| StartLux-0.8B | 88.2 | 48.3 | -43.1 [-46.3, -39.9] | 31.5 | 0.056 | 35.8 | 17.5 | -65.5 [-71.4, -58.1] | 7.0 | 0.0143 | |
| StartLux-2B | 89.9 | 68.4 | -23.0 [-25.2, -20.9] | 47.2 | 0.177 | 59.5 | 6.5 | -76.5 [-81.7, -69.4] | 3.8 | 0.0049 | |
| StartLux-4B | 91.3 | 89.1 | -2.4 [-3.5, -1.3] | 76.8 | 0.078 | 81.6 | 60.0 | -23.0 [-28.9, -17.0] | 6.2 | 0.0116 | |
| StartLux-9B | 92.2 | 91.8 | +0.3 [-0.7, +1.4] | 74.3 | 0.071 | 91.0 | 74.0 | -9.0 [-13.3, -4.9] | 7.1 | 0.0142 | |
| StartLux-27B (Q8_0) | 90.8 | 93.9 | +2.5 [+1.6, +3.3] | 85.1 | 0.012 | 87.7 | 63.0 | -20.0 [-25.7, -14.4] | 6.8 | 0.0133 | |
| AGENTDECISION-4B V1* | 88.4 | 99.2 | +7.7 [+6.4, +9.1] | 94.7 | 0.010 | 100.0 | 100.0 | 17.0 [12.1, 22.8] | 7.5 | 0.0145 | |
| SFT only*§ | 86.9 | 99.2 | - | 93.8 | 0.011 | 100.0 | 100.0 | - | - | - | |
| Qwen3-4B, untrained§ | 87.5 | 50.1 | - | 26.7 | 0.160 | 38.4 | 13.0 | - | - | - | |
Table 31: Evaluation levels (descriptive except the registered common-state test). Tool-choice accuracy (%) on 1,114 isolated BFCL questions, on the 5,314 common states of 200 new tasks and on each model's own states. Task level: the model picks every tool on 200 new tasks (API cost, GPU not charged). Exploratory size ladder (App. G.6). *Trained on DECISIONGYM's generator. §Task level on the first 100 tasks.
isolated decisions (post hoc), with API models at their recorded price and open models at $2.24 per GPU-hour of recorded serving time, an upper bound (App. G.7). A registered check on the 299-item development prefix found JEV at 91.3%, Flash at 91.6% and Flash-Lite at 86.3%.
G.7 More Decision Models as Baselines
After Stage 1 we registered a round with every public decision model we could serve, each with its vendor's defaults on one L40S GPU: Clef-Flash and Clef (Cloudflare, 2026), OpenJev in two forms (razorback16, 2026; openjev, 2026), JevK5 (alibiserikbay, 2026), CLM (Kwok et al., 2026), Laya (Convai Innovations, 2026), Verdict (Heman10x, 2026), Imajev-4B (Garg, 2026), decider-4b (Mapika, 2026), Bosun (Hanno Labs, 2026) and OpenAI's hosted Decisions API (OpenAI, 2026b), which scores only the allowed options.
Most new models come close to JEV on isolated tool choice, the common states separate them, and the task level reorders them again (Table 32). Over the 10 off-the-shelf models, the Kendall rank correlation with task-level success is 0.18 for isolated tool choice and 0.54 for the common states.
Every open decision model served the cheapest way. We served every open model the same cheap way (Table 33): vLLM with prefix caching and a full queue on one NVIDIA L4 24 GB GPU at $0.8048 per hour, one forward pass per question, and 8-bit weights unless they lost more than 1 point of accuracy. The cost of 1,000 decisions is the hourly price over the answers per second, a lower bound. Clef-Flash and Imajev-4B were not served
| Decision model | Licence | L1: isolated | tool choice | L2: common states | L3: task level | |||
|---|---|---|---|---|---|---|---|---|
| acc. (%) | $/ 1k | isolated (%) | acc. (%) | ECE | success (%) | |||
| OpenJev-27B | CC BY-NC | 82.7 | 0.24 | 90.2 | 92.4 | 0.021 | 63.0 | |
| OpenJev | Apache-2.0 | 78.8 | 0.091 | 91.2 | 91.1 | 0.030 | 62.5 | |
| OpenAI Decisions | API | 79.2 | 0.027 | 90.6 | 90.9 | 0.193 | 78.5 | |
| Imajev-4B | Apache-2.0 | 78.9 | 1.1 | 87.9 | 76.9 | 0.095 | - | |
| JevK5 | Apache-2.0 | 70.3 | 0.048 | 86.4 | 65.0 | 0.228 | - | |
| decider-4b | Apache-2.0 | 79.3 | 0.054 | 90.8 | 63.2 | 0.261 | - | |
| Clef-Flash | Apache-2.0 | 81.4 | 0.11 | 87.5 | 47.7 | 0.252 | - | |
| Bosun | Apache-2.0 | 63.3 | 0.13 | 85.8 | 36.3 | 0.290 | - | |
| Verdict | Apache-2.0 | 47.2 | 0.022 | 78.3 | 19.0 | 0.148 | - | |
| CLM | Apache-2.0 | 46.2 | 0.031 | 71.0 | 11.9 | 0.371 | - | |
| Laya | Apache-2.0 | 49.4 | 0.037 | 79.8 | 11.0 | 0.303 | - | |
Table 32: Isolated scores do not rank the new decision models either. L1: accuracy and US$ per 1,000 decisions on the 3,991 isolated questions, then accuracy on their BFCL tool choices. L2: accuracy and calibration error on the common states. L3: task success when the model picks every tool on the first 200 fresh tasks with Flash, run for the API and the two open models best on the common states. The reference models are in Table 31. Clef's 27B answered the isolated questions only. The Decisions API's 10 refusals count as wrong.
this way. For every model, accuracy stayed within 0.7 points of Figure 4a. AGENTDECISION-4B costs $0.0045 per 1,000 decisions, 31 times less than its point in the figure.
Why step-level accuracy can miss a task-level loss. OpenJev-27B and StartLux-27B match JEV on the common states yet solve about twenty points fewer tasks (Tables 32 and 31). We traced this in the stored trajectories (post hoc). Each tool-choice state of a model's own episodes is hashed like the common states, which tells whether it is in the corpus or novel (Table 34).
Serving does not explain the gap (live and offline choices agreed on 100.0% of 736 common states met live by OpenJev-27B), and the novel share hardly tracks success (Kendall 0.13 over 18 models). Every failed task of JEV, OpenJev-27B and StartLux-27B ended at the model's first wrong tool
| Decision model | Precision | Isolated acc. (%) | Answers per s | $ per 1,000 | Latency (ms) | ||
|---|---|---|---|---|---|---|---|
| here | Fig. 4a | median | p90 | ||||
| StartLux-0.8B | FP8 | 69.3 | 70.0 | 131 | 0.0017 | 32 | 34 |
| StartLux-2B | FP8 | 76.0 | 75.7 | 81.6 | 0.0027 | 34 | 36 |
| StartLux-4B | FP8 | 83.0 | 83.1 | 33.0 | 0.0068 | 44 | 69 |
| StartLux-9B | FP8 | 83.3 | 83.4 | 19.5 | 0.011 | 66 | 118 |
| StartLux-27B* | Q4_K_M | 87.5 | 87.7 | 1.3 | 0.17 | 649 | 1,224 |
| Intern-Decision-4B | FP8 | 73.5 | 73.4 | 18.0 | 0.012 | 61 | 125 |
| decider-4b | FP8 | 79.4 | 79.3 | 37.1 | 0.0060 | 39 | 66 |
| JevK5 (4B) | FP8 | 70.1 | 70.3 | 25.1 | 0.0089 | 46 | 105 |
| OpenJev | FP8 | 79.1 | 78.8 | 45.0 | 0.011 | 144 | 162 |
| OpenJev-27B* | Q4_K_M | 83.0 | 82.7 | 1.3 | 0.18 | 744 | 1,231 |
| AGENTDECISION-0.8B | FP8 | 80.5 | 80.5 | 122 | 0.0018 | 27 | 30 |
| AGENTDECISION-4B | FP8 | 84.8 | 85.1 | 50.2 | 0.0045 | 31 | 52 |
| AGENTDECISION-4B v1 | FP8 | 78.6 | 78.8 | 50.2 | 0.0045 | 31 | 52 |
| StartLux-4B + our recipe | FP8 | 85.5 | 85.5 | 30.3 | 0.0074 | 45 | 70 |
| Qwen3.5-0.8B variant | BF16 | 77.3 | 77.2 | 26.7 | 0.0084 | 60 | 63 |
Table 33: Open decision models served by vLLM on one GPU, on the 3,991 isolated questions of Figure 4a. Precision: the cheaper of BF16 and FP8 within 1 point of the figure's accuracy. Latency: one question at a time. *4-bit file on llama.cpp. §Scoring head, own server. †Own server on one NVIDIA L40S 48 GB GPU ($1.861 per hour).
| Closed-loop | Com. states | In C acc. | Novel acc. | Novel share | Irrev. first | Must-ask tasks/acc. | Below 0.9 wrong/right | |
|---|---|---|---|---|---|---|---|---|
| JEV | 83.0 | 91.5 | 95.1 | - | 0.0 | 17.0 | 34/73.5 | 86.8/18.9 |
| Intern-Decision-4B | 26.5 | 75.2 | 65.7 | - | 0.0 | 59.5 | 78/31.6 | 82.0/60.9 |
| StartLux-0.8B | 17.5 | 48.3 | 52.1 | 9.2 | 75.2 | 28.0 | 25/100.0 | 100.0/94.7 |
| StartLux-2B | 6.5 | 68.4 | 73.9 | 26.1 | 31.9 | 83.0 | 78/33.3 | 97.8/88.9 |
| StartLux-4B | 60.0 | 89.1 | 89.0 | 96.5 | 44.6 | 35.0 | 90/41.1 | 73.4/43.1 |
| StartLux-9B | 74.0 | 91.8 | 94.7 | 94.4 | 47.8 | 25.5 | 100/50.0 | 83.1/35.1 |
| StartLux-27B | 63.0 | 93.9 | 92.1 | 97.5 | 44.8 | 37.0 | 100/26.0 | 62.2/3.4 |
| OpenAI Decisions | 78.5 | 90.9 | 92.3 | 83.9 | 58.2 | 17.5 | 38/71.1 | 92.9/66.6 |
| OpenJev | 62.5 | 91.1 | 91.3 | 65.3 | 59.0 | 34.0 | 98/49.0 | 52.4/31.0 |
| OpenJev-27B | 63.0 | 92.4 | 92.0 | 97.4 | 45.6 | 37.0 | 100/26.0 | 26.7/2.6 |
| AGENTDECISION-4B v1 | 100.0 | 99.2 | 100.0 | - | 0.0 | 0.0 | 54/100.0 | -/0.2 |
| AGENTDECISION-4B | 100.0 | 99.1 | 100.0 | 100.0 | 51.0 | 0.0 | 50/100.0 | -/6.6 |
| StartLux-4B + our recipe | 100.0 | 99.6 | 100.0 | 100.0 | 51.9 | 0.0 | 50/100.0 | -/9.1 |
| 0.8B head, agent states | 100.0 | 99.2 | 100.0 | 100.0 | 52.3 | 0.0 | 50/100.0 | -/0.0 |
| 0.8B head, generic mix | 0.0 | 23.9 | 11.5 | 0.0 | 3.6 | 100.0 | 25/100.0 | 63.0/100.0 |
| Qwen3-4B (untrained) | 13.0 | 50.1 | 48.6 | 16.7 | 55.6 | 73.0 | 12/100.0 | 100.0/100.0 |
| SFT v1 | 100.0 | 99.2 | 100.0 | 100.0 | 52.0 | 0.0 | 25/100.0 | -/0.0 |
| StartLux-4B SFT (track 2) | 100.0 | 99.4 | 100.0 | 100.0 | 50.3 | 0.0 | 50/100.0 | -/0.0 |
Table 34: The task-level loss comes from a few irreversible tool choices, and unfamiliar states explain little of it. Models picking every tool on the same 200 fresh tasks (%): task-level success, common-state accuracy, own-episode accuracy on corpus and novel states, novel share, tasks whose first wrong choice was irreversible, tasks with a must-ask state and the accuracy there, and wrong and right choices with confidence below 0.9. First 100 tasks. -: not defined.
choice, a cancellation, refund or shipment where a lookup or a question was due. For the two 27B models it always came at a must-ask state. Offline the three models are equally poor at must-ask states (27.0, 26.0 and 26.0%), but these are only 5.0% of the corpus, so the average hides them. Counting a task as lost at its first irreversible wrong answer ranks the off-the-shelf models better than the common-state mean (Kendall 0.63 against 0.54) but misses task-level success by 14.0 points on average.
G.8 Variants of the Decision Model
Voting decision models. We combined stored answers (post hoc) by majority vote, confidence-weighted vote, or an agreement gate that delegates only when m of k members agree. Members and m were chosen on one half of the states and scored on the other. No vote reaches AGENTDECISION-4B v1 (Table 35). The models make the same mistakes, and every off-the-shelf model fails 39% of the must-ask occurrences. In a registered follow-up, fitted thresholds made the OpenAI Decisions API, alone or gated with JEV, defer every tool choice, so as registered neither ran at the task level.
| Isolated (%) | Common states (%) | Must- ask (%) | Delegated (%) | Errors: gate/ best member | Pred. L3 (%) | |
|---|---|---|---|---|---|---|
| Best single off-the-shelf model | 87.7 | 93.9 | 25.5 | - | - | 78.5 |
| Off the shelf, majority vote | 86.4 | 94.9 | 47.3 | - | - | 81.0 |
| Off the shelf, weighted vote | 86.4 | 94.9 | 47.3 | - | - | 81.0 |
| Off the shelf, all of 4 agree | - | 88.8 | 63/50 | 86.1 | ||
| Hosted (JEV + Decisions API), weighted vote | 84.1 | 92.2 | 31.5 | - | - | 75.0 |
| Hosted, both agree | - | 88.2 | 103/101 | 79.9 | ||
| Off the shelf + our trained models, weighted vote | 88.0 | 99.6 | 100.0 | - | - | 99.1 |
| Off the shelf + our trained models, 2 of 2 agree | - | 99.0 | 3/1 | 100.0 | ||
| AGENTDECISION-4B v1 at its threshold | 78.2 | 99.7 | 100.0 | 100.0 | 12 | 100.0 |
| 0.8B scoring head at its threshold | 67.4 | 99.5 | 100.0 | 78.2 | 0 | 100.0 |
Table 35: Voting does not replace training. Held-out halves. Delegated: share of common-state decisions the gate, or the model at its fitted threshold, takes. Errors: accepted wrong tool choices of the gate, then of its strongest member at the same coverage. Accuracy of the delegated decisions. Accepted errors on must-ask states. Pred. L3: the offline score of App. G.7.
More public data and a larger open base. Arm A continues AGENTDECISION-4B v1's adapter for two epochs on 13,992 public tool-use items, mixed one to one with its own SFT states. Arm B applies the SFT recipe to StartLux-Decision-9B (CC BY-NC 4.0) on the same mix. Neither arm closed the isolated gap to StartLux-27B, and When2Call stayed the weak part (Table 36). Both arms were non-inferior to AGENTDECISION-4B v1 on the common states at the registered 1-point margin.
| Arm | Isolated (%) | Step level | Task level | |||
|---|---|---|---|---|---|---|
| tool | args | When2Call | all | |||
| AGENTDECISION-4B v1 | 88.4 | 85.0 | 54.0 | 78.8 | 99.2 | 100.0 |
| A: AGENTDECISION-4B v1 + more data | 88.8 | 90.1 | 66.9 | 84.3 | 99.1 | 100.0 |
| B: StartLux-9B + recipe | 90.0 | 91.9 | 63.6 | 84.8 | 99.3 | 100.0 |
| Best untrained open model* | 90.8 | 89.1 | 81.2 | 87.7 | 93.9 | 74.0 |
Table 36: Two trained open models at the three levels (exploratory). Isolated: the 3,991 decisions and their three parts. Step level: common states. Task level: the model picks every tool on 200 fresh tasks. *Best open model we did not train: StartLux-27B (Q8_0) (isolated, step level) and StartLux-9B (task level).
Scoring head against one-token read-out. Arm (i) is the 0.8B scoring head of App. D.5, whose fitted thresholds sat within of 1. Arm (ii) reads the next-token probability over option letters from the same backbone and 14,787 records. Accuracy stayed the same (Table 37). Under the registered criterion, the one-token read-out covers more of these near-ceiling states. Its threshold, however, accepted 66 wrong tool choices on the common states, and the head's threshold accepted none. The head is also 2.7 times faster and needs 2.5 against 4.5 GB of GPU memory.
| Read-out | Held-out rows | Common states | Calibration states at | Serving (ms) | |||||
|---|---|---|---|---|---|---|---|---|---|
| acc. (%) | ECE | acc. (%) | off-plan (%) | tools (%) | args (%) | errors | c=1 | c=4 | |
| (i) scoring head | 99.7 | 0.001 | 99.2 | 94.1 | 80.0 | 78.8 | 0+0 | 92 | 204 |
| (ii) one-token read-out | 99.7 | 0.001 | 99.0 | 92.3 | 100.0 | 88.5 | 0+0 | 247 | 796 |
| AGENTDECISION-4B v1 | - | - | 99.2 | - | 100.0 | 77.5 | 0+1 | 318 | 875 |
Table 37: One backbone, two read-outs. Held-out rows: SFT v1's development file. Common states: accuracy, all and after an off-plan step. Calibration states: share of AGENTDECISION-4B v1's calibration decisions taken at each fitted threshold, and the wrong ones. Serving: median ms per request at one and four concurrent requests on one A10G.
A deferral-aware objective. In the spirit of learning to defer (Mozannar and Sontag, 2020), a defer head learns when to leave a choice to the LLM. It is trained on the 1,125 tool choices and 1,328 argument questions of AGENTDECISION-4B v1's calibration arm, with target where the LLM is right and the head is wrong or its two top probabilities differ by less than the cost margin of Proposition 1 ( for tools, 0.0035 for arguments). Because there are only 15 positive examples, the defer head is the registered fallback, a logistic regression on the frozen head's features. It finds the states where the model errs but still takes most of them (Table 38). On the 200 tasks of the final harness it solved (Flash alone ), took of the tool choices and cost less than Flash alone. The registered criterion (higher coverage, success within 3 points) holds. Arm F, which trained the target in as an extra option, almost never deferred.
| Rule on the common states | coverage (%) | accepted right (%) | accepted errors | deferred right (%) |
|---|---|---|---|---|
| arm A + defer head, defer iff | 98.5 | 99.1 | 46 | 78.5 |
| arm A at its fitted threshold | 78.0 | 100.0 | 0 | 94.6 |
| arm A, every decision taken | 100.0 | 98.8 | 63 | - |
| AGENTDECISION-4B v1 at its fitted threshold | 99.9 | 98.9 | 57 | 0.0 |
| arm F (the option trained in), defer iff | 100.0 | 98.8 | 63 | - |
Table 38: The learned deferral rule on the 5,314 tool-choice occurrences of the common states. Arm A: the 0.8B scoring head.
| Decision model | Common states, accuracy (%) | Live success (%) | ||||
|---|---|---|---|---|---|---|
| in-domain | shift | must-ask | renamed | in-domain | shift | |
| Untrained Qwen3-4B | 50.1 | 52.9 | 27.6 | 44.7 | 13.0 | 13.5 |
| + SFT | 99.2 | 98.4 | 95.0 | 98.1 | 100.0 | 96.0 |
| AGENTDECISION-4B v1 | 99.2 | 98.6 | 90.8 | 98.3 | 100.0 | 96.0 |
| AGENTDECISION-4B (+ public data) | 99.1 | 94.9 | 67.4 | 93.8 | 100.0 | 91.5 |
| StartLux-4B + recipe | 99.6 | 98.5 | 100.0 | 98.0 | 100.0 | 98.0 |
| 0.8B scoring head | 99.2 | 73.2 | 77.2 | 68.1 | 100.0 | 17.5 |
| AGENTDECISION-0.8B | 98.5 | 95.6 | 93.5 | 94.8 | 100.0 | 82.0 |
| Qwen3.5-0.8B, renamed tools | 98.8 | 93.7 | 77.2 | 93.2 | - | 72.0 |
| Qwen3.5-0.8B variant | 99.2 | 96.3 | 93.9 | 95.5 | 100.0 | 80.0 |
| JEV | 91.5 | 91.8 | 58.3 | 90.2 | 83.0 | 82.0 |
| OpenAI Decisions | 90.9 | 86.1 | 41.7 | 83.4 | 78.5 | 66.0 |
| StartLux-27B | 93.9 | 94.7 | 65.0 | 93.8 | 63.0 | 79.9 |
| StartLux-9B | 91.8 | 90.9 | 55.0 | 89.6 | 74.0 | 69.5 |
| StartLux-4B | 89.1 | 86.5 | 36.7 | 84.1 | 60.0 | 49.0 |
| StartLux-0.8B | 48.3 | 51.7 | 27.2 | 46.2 | 17.5 | 13.0 |
| OpenJev-27B | 92.4 | 92.4 | 58.3 | 91.1 | 63.0 | 69.5 |
| Intern-Decision-4B | 75.2 | 75.9 | 33.9 | 71.4 | 26.5 | 34.0 |
| Agent LLM alone | - | - | - | - | 99.5 | 100.0 |
Table 39: Decision models on the shifted split beside their in-domain numbers. Common states: accuracy on all, must-ask and renamed-tool states. Live: success when the model picks every tool on 200 shifted tasks (StartLux-27B: the first 164). The in-domain live numbers of the untrained model and of + SFT cover the first 100 tasks. Top: trained on the generator. Second block: 0.8B models trained with renamed tools (App. G.9). Third block: off-the-shelf models. -: not run.
G.9 A Shifted DecisionGym Split
DECISIONGYM-Shift renames every core tool and the clarification tool, rewords the requests, the policy line and the customer's replies, and doubles the distractor tools (129 options per tool choice instead of 69). It adds must-ask states and three plan shapes the training generator never produces: asking twice, a request that becomes ambiguous only after a lookup, and a confirmation message after shipping. The common states are 1,250 states of 100 shifted tasks, and live runs use 200 further tasks.
The 4B models trained on the generator lost little and stayed ahead of every off-the-shelf model at both levels (Table 39). The 0.8B head did not carry over. With the old names and wording restored it answered of the same states, so it had learned the generator's names more than the decisions.
The confidence gate under shift. We ran the final harness , which takes a decision only when the model's confidence clears its threshold, on the same 200 shifted tasks with each model's in-domain thresholds (Table 40). The two 4B models stayed confident and kept taking most tool choices, so success fell. Only the 0.8B head's learned deferral handed choices back, and non-inferiority was shown for none of the three.
A 0.8B model trained on renamed tools. The 0.8B scoring head of App. D.5 failed on the shifted
| Decision model | Succ. | Δ | Taken (%) | Wrong taken | Saved (%) | Every tool | |
|---|---|---|---|---|---|---|---|
| tools | args | ||||||
| AGENTDECISION-4B v1 | 94.0 | -6.0 | 99.6 (100.0) | 58.9 (85.5) | 62 | 64.8 | 96.0 |
| AGENTDECISION-4B | 92.5 | -7.5 | 100.0 (100.0) | 62.2 (92.3) | 22 | 69.7 | 91.5 |
| 0.8B head + deferral | 64.5 | -35.5 | 67.2 (100.0) | 56.6 (98.7) | 383 | 24.8 | 17.5 |
| LLM alone | 100.0 | - | - | - | - | - | - |
Table 40: The final harness on 200 shifted tasks at in-domain thresholds: success (%), difference to the LLM alone (points), share of decisions taken (in-domain in parentheses), wrong tool choices accepted, cost saved with the GPU, and success when the model makes every tool choice (Table 39).
tasks. We retrained it for one epoch on agent states whose surface we varied. In a random half of them the core tools got new names, the text was reworded, and near-copies of the renamed tools were added as distractors. A variant kept by a rule fixed before training also mixed in public tool-use data (the Qwen3.5-0.8B variant). Renaming in training closed the step-level gap, while the new task shapes still cost task-level success (Table 39). The registered claim had two conditions under shift. Step-level accuracy stayed within 3 points of AGENTDECISION-4B, but the task-level gap to AGENTDECISION-4B (-11.5 points, lower confidence bound -18.6) missed the -5-point bound. In the final harness on 200 in-domain tasks the variant took 48.5% of the tool choices without a wrong one at 30.3% lower cost, but non-inferiority was not shown (p = 0.059). On shifted tasks it handed 72.3% of the tool choices back, every must-ask state among them, and the agent stayed non-inferior to the LLM alone at a 6.0% saving.
Our recipe on a decision-tuned 0.8B base. AGENTDECISION-0.8B is StartLux-Decision-0.8B trained with the recipe of App. D.9 on 7,000 agent states and 7,000 public tool-use items, with the tools renamed in a random half of the states. Its CC BY-NC 4.0 licence carries over. Training improved the base model at every level (Table 39), and the trained model costs $0.010 per 1,000 decisions on the base model's own engine. As with the Qwen3.5-0.8B variant, step-level accuracy held under shift but task-level success did not (96.4% of the shifted tasks of the generator's kinds, 48.3% of the new shapes). In the final harness on 200 in-domain tasks it took 35.9% of the tool choices without a wrong one and was non-inferior to the LLM alone (100.0% against 99.5%, p = 0.002). It saved 9.6% of the API cost, but our slow serving stack made the run 6.0% more expensive once GPU time is counted. On the shifted tasks its gate did not hand control back. It took 61.7% of the tool choices, 6 of them wrong, and non-inferiority was not shown (98.0% against 100.0%).
G.10 Hard Tasks (Exploratory)
SWE-bench Verified allows at most 250 steps and $3 per attempt, and Terminal-Bench-Science (Terminal-Bench-Science Team, 2026) runs pi in Harbor sandboxes for at most 1 h per attempt. No arm reaches the registered verdict. The later step-routing runs (App. C.2) supersede the routing row.
H Extended Related Work
Decision models. Beyond §8, JEV has served as REPLACE for action-only and memory control (Ma et al., 2026; Jiang et al., 2026) and as a judge or monitor (Guo et al., 2026b; Kwartler et al., 2026). Studies examine its calibration and robustness (Deußer et al., 2026; Wu and Lim, 2026a). Closest to us, JEV-as-a-Judge fits an acceptance threshold on about 100 local labels (Li et al., 2026), and REFLEX escalates agent actions below one global threshold, an action-level CASCADE (Wu and Lim, 2026b). We compare decision points and modes under one cost ledger, set thresholds by price, and test the chosen combination and a post-trained model on new tasks.
Routers, cascades and deferral. Cascade routing (Dekoninck et al., 2025), agentic routers (Liu et al., 2026) and fast-slow controllers (Yang et al., 2026; Zhang et al., 2025b) decide which model or how much thinking a step gets. JEV and LLM judges err on the same items, so a cascade between them mainly saves cost (Rao and Callison-Burch, 2026). Agents also ask for help through uncertainty-aware deferral (Piatrashyn et al., 2026) or conformal prediction (Ren et al., 2023), and finite-sample risk control (Angelopoulos et al., 2024) could replace our plug-in thresholds, and serving systems such as vLLM (Kwon et al., 2023) lower the price of each call. Tool retrieval (Patil et al., 2024) is ASSIST with a similarity scorer, as in our BM25 control (Robertson and Zaragoza, 2009), and reflection (Shinn et al., 2023) is a TRIGGER decision in our terms.
Agent benchmarks and step-level evaluation. Static parity that hides in-loop differences was reported for browser agents (lexmount, 2026) and
| Configuration | Succ. | Δ (LB90) | W/L | p50 s | p90 s | $/task | Steps | Screen | Faster |
|---|---|---|---|---|---|---|---|---|---|
| SWE-bench Verified (100 instances, k=1), mini-SWE-agent | |||||||||
| Unmodified harness | 75.0 | - | - | 111 | 435 | 0.563 | 60.6 | - | - |
| + command GUARD | 76.0 | +1.0 (-4.0) | 7/6 | 132 | 425 | 0.554 | 58.5 | pass | no |
| + submit GUARD | 74.0 | -1.0 (-6.0) | 6/7 | 125 | 556 | 0.619 | 63.5 | fail | no |
| + routing TRIGGER | 77.0 | +2.0 (-3.0) | 8/6 | 116 | 326 | 0.464 | 54.1 | pass | no |
| Terminal-Bench-Science (15 hard tasks, k=3), pi + Harbor | |||||||||
| Unmodified harness | 0.0 | - | - | 350 | 1287 | 1.13 | 72.3 | - | - |
| + stop GUARD & refl. TRIGGER* | 0.0 | +0.0 (+0.0) | 0/0 | 311 | 948 | 0.95 | 59.1 | pass | n.e. |
| + tool & stop GUARD | 2.2 | +2.2 (+0.0) | 1/0 | 352 | 995 | 1.31 | 82.0 | pass | n.e. |
| Terminal-Bench 2.0 (89 tasks): not run (budget) | |||||||||
Table 41: Hard tasks (exploratory) with Gemini 3.5 Flash: success (%), paired to the unmodified harness (points, one-sided lower bound), task wins/losses, agent time (s), cost per task (-5p < 0.05$), n.e. when no task was solved by both. Terminal-Bench-Science sits at a floor (0 of 45 attempts solved), so its screen passes trivially. *Primary arm, fixed in advance.
legal documents (Zhang et al., 2026), and a public decision index reports mixed interactive results for JEV alone (multimodalart, 2026). Paired replay of recorded states has precedent in search stopping (zilliztech, 2025), and process reward models score agent steps (Xi et al., 2026). AGENTDECISION-BENCH measures the gap directly by scoring the same models on isolated questions, recorded states and live tasks.
Training small models on agent states. Agentic RL trains the generating LLM on multi-turn trajectories (Zhou et al., 2024b; Song et al., 2024; Wang et al., 2025d), tool use (Qian et al., 2025; Jin et al., 2025) or tool-call efficiency (Wang et al., 2025a). We train the decision model. Open decision models trained on a target loop have beaten JEV there (lexmount, 2026) or on a static set without transferring (Cheng et al., 2026), and small models are argued to suffice for most agentic calls (Belcak et al., 2026). We compare on-policy distillation (Agarwal et al., 2024; Gu et al., 2024) with distillation on fixed states (Hinton et al., 2015; Kang et al., 2025) and use group-relative RL (Shao et al., 2024; Feng et al., 2025a) with calibration-aware rewards (Damani et al., 2026).
I Case Studies
The three figures below show recorded trajectories step by step, one row per step from top to bottom. Blue marks the choices the decision model made and orange those the LLM made, so each figure shows who decided at every step. Each case is the first task, in a fixed order, that meets the rule stated in its caption.
Where the decision model makes the choice. On the DECISIONGYM task of Figure 11, AGENTDECISION-4B chose all 5 tools and 5 of the 6 arguments that are not free text. The LLM wrote the question to the customer and the final message, and it set the one argument whose confidence fell just below its threshold. The task took 2 LLM calls instead of 5.
A confident irreversible choice. In Figure 12, JEV and AGENTDECISION-4B each picked every tool of a task that does not say how the customer wants to be refunded. JEV looked up the customer and the order and then chose the refund with confidence 0.98, where asking was the only acceptable choice, and the LLM filled in a refund method the customer had never given. AGENTDECISION-4B asked first and solved the task, as did Gemini 3.5 Flash alone, which asked at step 3. Every failed task of JEV ends at its first wrong tool choice, an irreversible action like this one (App. G.7).
ALFWorld. In Figure 13, the 4B model trained on ALFWorld states (App. D.7) chose every action of a household game, because its fitted threshold of 0.12 let every confidence through. It solved the game in 4 steps without an LLM call, as many steps as Gemini 3.5 Flash alone took.
Task Ship Alice Smith's pending order.

Figure 11: AGENTDECISION-4B took every tool choice of this DECISIONGYM task, and the LLM only wrote free text and set one argument below its threshold. Bars show the decision model's confidence in its choice against the fitted threshold , next to the runner-up option and its probability. Chips are arguments. The footer compares the same task with Gemini 3.5 Flash alone, with the GPU charged at 1.624 per hour. The task is the first of the 200 new tasks, in seed order, that both runs solved and in which at least one choice was left to the LLM. Long text is abridged (...).
Task Refund the full amount of Mateo Smith's most recent delivered order (highest order id).

Same task Gemini 3.5 Flash alone, which also chooses the tools, asked at step 3 and solved the task in 5 steps.
Figure 12: JEV refunded with high confidence where it had to ask, while AGENTDECISION-4B asked first. Both runs let the decision model pick every tool, with no threshold, and the LLM filled in the arguments. The red note names the only acceptable tool in the task's answer key. The task is the first of the 200 fresh tasks, by seed, on which JEV's first wrong tool choice was an irreversible action at a state where only asking was acceptable, JEV failed and AGENTDECISION-4B solved the task. Long text is abridged (...).
Task look at alarmclock under the desklamp.
decision model chose LLM chose confidence and threshold environment's reply
step
decision model 4B trained on ALFWorld states
LLM Gemini 3.5 Flash alone
1
go to sidetable 1
0.35
2nd: go to sidetable 2 0.29
→ You arrive at sidetable 1. On the sidetable 1, you see a alarmclock 3, a cd 3, a cellphone 2, and a pen 3.
go to desk 1
2nd: look <0.01
→ You pick up the alarmclock 3 from the sidetable 1.
take alarmclock 3 from sidetable 1
0.99
3
go to desk 1
0.42
2nd: go to safe 1 0.23
→ You arrive at desk 1. On the desk 1, you see a alarmclock 2, a book 1, a bowl 1, a cd 2, a desklamp 1, a mug 2, a...
use desklamp 1
0.98
2nd: go to sidetable 1 0.01
→ You turn on the desklamp 1.
task solved
go to desk 1
→ You arrive at desk 1. On the desk 1, you see a alarmclock 2, a book 1, a bowl 1, a cd 2, a desklamp 1, a mug 2, a mug 1, a pen 2, and a...
use desklamp 1
→ You turn on the desklamp 1.
examine desk 1
→ On the desk 1, you see a alarmclock 2, a book 1, a bowl 1, a cd 2, a desklamp 1, a mug 2, a mug 1, a pen 2, and a...
take alarmclock 2 from desk 1
→ You pick up the alarmclock 2 from the desk 1.
task solved
Same game
trained 4B
Flash alone
LLM calls
10
4
cost per game ($, GPU included)
0.0021
0.0036
time (s)
14.2
24.1
Figure 13: On ALFWorld the trained 4B model took every action and solved the game without the LLM. Its fitted threshold let every confidence through, so even its least confident move ran without an LLM call. The footer compares the same game with Gemini 3.5 Flash alone, with the GPU charged per episode as in App. D.7. The game is the first of the 140 valid_seen games, by game id, that both runs solved. Long text is abridged (...).