Leozkl commited on
Commit
f4fad12
·
verified ·
1 Parent(s): 0d91b6e

coding-agent-decisions: initial release

Browse files
Files changed (6) hide show
  1. README.md +228 -0
  2. decisions.parquet +3 -0
  3. runs.parquet +3 -0
  4. states.parquet +3 -0
  5. steps.parquet +3 -0
  6. trials.parquet +3 -0
README.md ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ pretty_name: Coding-agent routing decisions (Terminal-Bench 2.0)
4
+ language:
5
+ - en
6
+ task_categories:
7
+ - text-classification
8
+ tags:
9
+ - agents
10
+ - llm-agents
11
+ - coding-agents
12
+ - routing
13
+ - decision-making
14
+ - terminal-bench
15
+ - cost-efficiency
16
+ size_categories:
17
+ - 10K<n<100K
18
+ configs:
19
+ - config_name: states
20
+ default: true
21
+ data_files:
22
+ - split: train
23
+ path: states.parquet
24
+ - config_name: steps
25
+ data_files:
26
+ - split: train
27
+ path: steps.parquet
28
+ - config_name: trials
29
+ data_files:
30
+ - split: train
31
+ path: trials.parquet
32
+ - config_name: decisions
33
+ data_files:
34
+ - split: train
35
+ path: decisions.parquet
36
+ - config_name: runs
37
+ data_files:
38
+ - split: train
39
+ path: runs.parquet
40
+ ---
41
+
42
+ # Coding-agent routing decisions (Terminal-Bench 2.0)
43
+
44
+ Logs of the open-source routing proxy `jah` (JevAgentHarness,
45
+ [github.com/JevAgentHarness/JevAgentHarness](https://github.com/JevAgentHarness/JevAgentHarness)) running five
46
+ unmodified coding-agent harnesses on [Terminal-Bench 2.0](https://www.tbench.ai/) through
47
+ [Harbor](https://github.com/laude-institute/harbor) 0.24.0, October 2026. For every agent step the proxy asked a
48
+ decision model whether the next step is `routine` or `hard`, sent hard steps to a strong LLM and routine steps to a
49
+ fast one, and logged the decision model's exact input, its probability p(hard), the tier and the cost. Each trial's
50
+ outcome is joined from Harbor's results.
51
+
52
+ Use it to train or evaluate step-level routers for coding agents: the states with p(hard) and the route, and per
53
+ trial whether the routed agent solved the task, at what cost and in how much time.
54
+
55
+ ## Setup
56
+
57
+ - **Harnesses** (`harness`): `codex` (Codex CLI 0.162.1), `pi` (pi 1.2.0), `dsh` (DeepSeek Harness 0.2.1-alpha.2),
58
+ `mswe` (mini-swe-agent) and `t2` (Terminus-2, Harbor's reference agent). Each uses its own prompts and tools; only
59
+ the model endpoint is the proxy.
60
+ - **Tiers** (`runs.tiers`): strong Gemini 4 Argon (thinking high) with a fast Gemini 3.8 Flash (thinking low) or
61
+ Gemini 3.5 Flash-Lite (thinking low); for Codex in the test run, strong GPT-6.1 Sol (medium) with fast GPT-6 Luna
62
+ (low). Costs are the providers' list prices of October 2026.
63
+ - **Decision model:** Jev (`typesafe/jev-1.13`, TypeSafe) through OpenRouter. It was asked: "Decide how hard the
64
+ agent's NEXT step is. 'routine': the next step follows directly from what the agent already knows ... 'hard': the
65
+ next step needs careful reasoning ..." (the full text is `QUESTION` in `src/jevagentharness/router.py`).
66
+ - **Arms** (`arm`, the model name the harness asks the proxy for): `jah-strong` (every step strong, the baseline),
67
+ `jah-auto` (routed, the step goes to the strong tier when p(hard) >= 0.5), `jah-auto-t75` (threshold 0.75),
68
+ `jah-fast` (every step fast), and dev-only variants (`jah-auto-t85`, `jah-auto-t75m`, `jah-auto-eff`; the modes
69
+ arms `jah-shadow`, `jah-safe`, `jah-stopguard`, `jah-submit`, `jah-reflect`, `jah-routeguard`). Routed arms always
70
+ put the first step on the strong tier and re-do a fast-tier reply without a tool call on the strong tier (the
71
+ finish check). The arms are defined in the repository's `bench/configs/*.yaml` (`runs.proxy_config`).
72
+ - **Tasks:** Terminal-Bench 2.0 (89 tasks, `laude-institute/terminal-bench-2` at commit
73
+ `69671fbaac6d67a7ef0dfec016cc38a64ef7a77c`) with a fixed hash split into 15 dev and 74 test tasks (`task_split`),
74
+ and a 20-task test subset for the Codex row (`in_test20`). One trial per task and arm.
75
+ - **Phases** (`phase`): `dev` (router settings explored), `dev_modes` (the decision-point modes of the repository's
76
+ `docs/modes.md`, dev tasks only), `test` (the reported runs, settings fixed in `bench/PROTOCOL.md` before they ran).
77
+
78
+ | Run (`run`) | Phase | Proxy config | Harnesses and arms |
79
+ |---|---|---|---|
80
+ | `dev1` | dev | `bench/configs/gemini_argon_flash.yaml` | codex: jah-auto, jah-fast, jah-strong; dsh: jah-auto, jah-fast, jah-strong; pi: jah-auto, jah-fast, jah-strong |
81
+ | `dev1c` | dev | `bench/configs/gemini_argon_flash.yaml` | codex: jah-auto, jah-fast, jah-strong |
82
+ | `dev2` | dev | `bench/configs/gemini_argon_flash.yaml` | codex: jah-auto-t75, jah-auto-t85; dsh: jah-auto-t75, jah-auto-t85; pi: jah-auto-t75, jah-auto-t85 |
83
+ | `dev3` | dev | `bench/configs/gemini_argon_flash.yaml` | codex: jah-auto, jah-auto-t75m |
84
+ | `dev4` | dev | `bench/configs/gemini_argon_flash.yaml` | codex: jah-auto-eff; dsh: jah-auto-eff; pi: jah-auto-eff |
85
+ | `dev-lite` | dev | `bench/configs/gemini_argon_lite.yaml` | mswe: jah-auto, jah-auto-t75; pi: jah-auto, jah-auto-t75, jah-strong |
86
+ | `dev-lite2` | dev | `bench/configs/gemini_argon_lite.yaml` | mswe: jah-strong |
87
+ | `dev-modes` | dev_modes | `bench/configs/gemini_argon_lite_modes.yaml` | mswe: jah-safe, jah-shadow; pi: jah-shadow, jah-stopguard |
88
+ | `dev-modes2` | dev_modes | `bench/configs/gemini_argon_lite_modes.yaml` | mswe: jah-auto-t75, jah-reflect, jah-routeguard, jah-submit |
89
+ | `dev-modes3` | dev_modes | `bench/configs/gemini_argon_lite_modes.yaml` | mswe: jah-auto-t75, jah-reflect; pi: jah-reflect |
90
+ | `test-gem` | test | `bench/configs/gemini_argon_flash.yaml` | dsh: jah-auto, jah-strong; pi: jah-auto, jah-strong |
91
+ | `test-gem1` | test | `bench/configs/gemini_argon_flash.yaml` | mswe: jah-auto, jah-strong; t2: jah-auto, jah-strong |
92
+ | `test-lite` | test | `bench/configs/gemini_argon_lite.yaml` | dsh: jah-auto-t75; mswe: jah-auto-t75; pi: jah-auto-t75; t2: jah-auto-t75 |
93
+ | `test-codex` | test | `bench/configs/openai_sol_luna.yaml` | codex: jah-auto, jah-strong |
94
+
95
+ `dev1c` holds Codex reruns of `dev1`; their steps are in `dev1`'s proxy log, so `steps` lists them under `run`
96
+ `dev1`.
97
+
98
+ ## Configs
99
+
100
+ | Config | Rows | One row per |
101
+ |---|---|---|
102
+ | `states` (default) | 16,368 | routed step: the decision model's exact input, p(hard) and the tier |
103
+ | `steps` | 42,427 | proxy step (all arms, routed or not) and context-cache event |
104
+ | `trials` | 1,508 | Harbor trial (harness x arm x task) with its outcome |
105
+ | `decisions` | 6,533 | decision-point question of the `dev_modes` runs |
106
+ | `runs` | 14 | run folder: tiers, decision model, proxy config, spend |
107
+
108
+ Join `states` and `steps` with `trials` on (`run`, `session`) or (`arm`, `trial`); `session` is `<arm>/<trial>`.
109
+ States exist for the runs `test-lite`, `test-gem`, `test-gem1`, `test-codex`, `dev-lite` and `dev4` (the proxy wrote
110
+ them only when its state log was on).
111
+
112
+ ## Fields
113
+
114
+ **states**: `run`, `session`, `arm`, `harness`, `task`, `trial`, `step` (assistant turns before this one), `ts`,
115
+ `state` (the text the decision model read: `TASK:` with the task text, `STEPS SO FAR:`, then the last six actions with
116
+ their results, truncated as in `render_state` of `router.py`), `p_hard` (Jev's probability for `hard`), `tier` (the
117
+ tier that wrote the step: `strong`, `fast`, or in dev runs `fast_med` = Gemini 3.8 Flash at medium thinking and
118
+ `strong_low` = Gemini 4 Argon at low thinking, the fast tier of `jah-auto-eff`) and `reason` (`routine` / `hard` = the decision, `decision_error` = no answer, so the step
119
+ went to the strong tier).
120
+
121
+ **steps**: identification as above plus `event` (`step` or `cache`, a context-cache write that only costs money),
122
+ `tier`, `reason` (also `pinned` = an unrouted arm, `first_steps`, `finish_check`, `guard`, `reflection`,
123
+ `route_guard`, `stop_guard`, `fast_error`, and `repeat:<reason>` when a harness re-sent the same step), `p_hard`,
124
+ `llm_cost_usd`, `decision_cost_usd`, `cost_usd`, `latency_s`, token counts (`input_tokens`, `cached_tokens`,
125
+ `cache_write_tokens`, `output_tokens`, `reasoning_tokens`), `n_tool_calls`, `finish`, `finish_check`, `calls` (each
126
+ LLM call: tier, model, latency, attempts, cost), `decision_model`, `decision_latency_s`, `decision_input_tokens`,
127
+ `decision_state_chars`, `cache_model`, `cache_tokens`, `points` and `redo` (the modes runs: what each decision point
128
+ answered and which checks made the strong tier re-do the step), and `error`, `decision_error`, `fast_tier_error`
129
+ (short codes such as `upstream HTTP 503`).
130
+
131
+ **trials**: `run`, `phase`, `proxy_config`, `strong_model`, `strong_effort`, `fast_model`, `fast_effort`,
132
+ `decision_model`, `harness`, `arm`, `task`, `trial`, `task_split`, `in_test20`, `success` (Harbor reward = 1),
133
+ `cost_usd` (LLM + decision-model dollars logged by the proxy for the trial's session), `decision_cost_usd`,
134
+ `agent_s` (Harbor's agent-execution seconds), `llm_s`, `steps`, `strong_share`, `proxy_errors`, `exception`
135
+ (Harbor's exception type, such as `AgentTimeoutError`), `infra_error`, `timeout`, `has_proxy_log` (false when the
136
+ trial failed before its first LLM call) and `reported_in` (`test_flash_lite`, `test_argon_flash` or
137
+ `test_codex_openai` when the trial is part of a reported comparison).
138
+
139
+ **decisions** (`dev_modes` runs): `point` (`routing`, `tool_select`, `stop`, `reflection`, `action`), `mode`
140
+ (`cascade`, `shadow`, `guard`, `trigger`, ...), `question`, `options`, `p` (one probability per option),
141
+ `choice`, `confidence`, `tau`, `act_option`, `p_act`, `acted`, `effect`, `label` and `label_tier` (what the strong
142
+ tier did, where known), `agree`, `fit_ok`, `latency_s`, `cost_usd`, `decision_model`, `rounds`, `error`,
143
+ `route_tier`, `guard_tool`, `guard_pattern`. The states of these questions were not logged.
144
+
145
+ **runs**: `run`, `phase`, `proxy_config`, `proxy_log`, `trials`, `jobs`, `tiers` (JSON), `decision`, `tau_default`,
146
+ `proxy_spent_usd`, `proxy_budget_usd`.
147
+
148
+ ## How the trial table was made
149
+
150
+ `trials` is the output of the repository's `bench/summarize.py` (`load_trials`, `load_steps` and `join`, the same
151
+ functions as `python bench/summarize.py JOBS PROXY --per-task`), one call per run. Its `compare` function, run on the
152
+ `trials` rows of each reported comparison, reproduces the repository's `bench/results/*.json` exactly. The reported
153
+ test results:
154
+
155
+ *Gemini 4 Argon + Gemini 3.5 Flash-Lite, routed at tau = 0.75 (test, 74 tasks; `test_flash_lite`)*
156
+
157
+ | harness:arm | n | success | Δ vs jah-strong (pt) [95% CI] | $/task | cost saving | agent s/task | time saving | strong share |
158
+ |---|---|---|---|---|---|---|---|---|
159
+ | dsh:jah-auto-t75 | 74 | 66.2% | +0.0 [-8.1, +8.1] | 0.682 | 27.8% | 684 | 15.0% | 50.1% |
160
+ | dsh:jah-strong | 74 | 66.2% | baseline | 0.944 | – | 805 | – | 100.0% |
161
+ | mswe:jah-auto-t75 | 74 | 63.5% | -2.7 [-14.9, +8.1] | 0.330 | 63.7% | 471 | 42.8% | 45.4% |
162
+ | mswe:jah-strong | 74 | 66.2% | baseline | 0.909 | – | 824 | – | 100.0% |
163
+ | pi:jah-auto-t75 | 74 | 56.8% | +4.1 [-6.8, +14.9] | 0.424 | 31.1% | 650 | 4.5% | 54.6% |
164
+ | pi:jah-strong | 74 | 52.7% | baseline | 0.616 | – | 680 | – | 100.0% |
165
+ | t2:jah-auto-t75 | 74 | 41.9% | +14.9 [+4.1, +25.7] | 0.135 | -27.3% | 967 | 28.8% | 44.4% |
166
+ | t2:jah-strong | 74 | 27.0% | baseline | 0.106 | – | 1357 | – | 100.0% |
167
+
168
+ *Gemini 4 Argon + Gemini 3.8 Flash, routed at tau = 0.5 (test, 74 tasks; `test_argon_flash`)*
169
+
170
+ | harness:arm | n | success | Δ vs jah-strong (pt) [95% CI] | $/task | cost saving | agent s/task | time saving | strong share |
171
+ |---|---|---|---|---|---|---|---|---|
172
+ | dsh:jah-auto | 74 | 70.3% | +4.1 [-5.4, +13.5] | 0.882 | 6.6% | 629 | 21.8% | 50.4% |
173
+ | dsh:jah-strong | 74 | 66.2% | baseline | 0.944 | – | 805 | – | 100.0% |
174
+ | mswe:jah-auto | 74 | 74.3% | +8.1 [+0.0, +17.6] | 0.788 | 13.3% | 686 | 16.7% | 52.3% |
175
+ | mswe:jah-strong | 74 | 66.2% | baseline | 0.909 | – | 824 | – | 100.0% |
176
+ | pi:jah-auto | 74 | 59.5% | +6.8 [-2.7, +17.6] | 0.554 | 10.1% | 563 | 17.2% | 56.5% |
177
+ | pi:jah-strong | 74 | 52.7% | baseline | 0.616 | – | 680 | – | 100.0% |
178
+ | t2:jah-auto | 74 | 33.8% | +6.8 [+0.0, +13.5] | 0.192 | -81.8% | 1263 | 6.9% | 51.7% |
179
+ | t2:jah-strong | 74 | 27.0% | baseline | 0.106 | – | 1357 | – | 100.0% |
180
+
181
+ *Codex with GPT-6.1 Sol + GPT-6 Luna, tau = 0.5 (20 test tasks; `test_codex_openai`)*
182
+
183
+ | harness:arm | n | success | Δ vs jah-strong (pt) [95% CI] | $/task | cost saving | agent s/task | time saving | strong share |
184
+ |---|---|---|---|---|---|---|---|---|
185
+ | codex:jah-auto | 20 | 85.0% | +0.0 [-15.0, +15.0] | 0.158 | 6.5% | 273 | -46.9% | 52.9% |
186
+ | codex:jah-strong | 20 | 85.0% | baseline | 0.169 | – | 186 | – | 100.0% |
187
+
188
+ Each routed arm is compared with the `jah-strong` arm of the same harness on the tasks both completed. Δ is the
189
+ difference in success in points. "Cost saving" and "time saving" compare the totals over the same tasks. For the
190
+ Flash-Lite row the baseline is the `jah-strong` arm of the Argon + Flash test runs (same strong tier, harness version
191
+ and tasks; `bench/PROTOCOL.md`, "Changes"). The Codex row is a 20-task check, not a claim.
192
+
193
+ ## What was left out
194
+
195
+ - **States of `sanitize-git-repo`** (198 rows): the task plants fake credentials (AWS, GitHub and Hugging
196
+ Face key-shaped strings) in a repository for the agent to remove, and they appear in the states. Its `steps` and
197
+ `trials` rows are kept.
198
+ - **14 further states** whose text names a commercial AI assistant or its vendor (in task files, in a
199
+ package path and in text an agent wrote), and **2 states** that show the benchmark host's run directory (a
200
+ container's mount table). Their `steps` and `trials` rows are kept.
201
+ - Harbor's agent trajectories, terminal recordings, verifier output and logs, the proxy's server logs, error messages
202
+ (only short codes are kept), the runs `smoke` and `smoke-gem2` (plumbing checks) and two assembled views of the test
203
+ runs that would duplicate rows.
204
+
205
+ ## Licence and third-party content
206
+
207
+ - **Licence: CC BY-NC 4.0** (non-commercial) for the logs, the joined outcomes and the tables, because they contain outputs of commercial models (the Jev decision model and Gemini or OpenAI agent text) whose redistribution terms we cannot extend to commercial use.
208
+ - **Terminal-Bench 2.0** task texts and task-container contents (files, command output) appear in `state`.
209
+ Terminal-Bench 2.0 is released under the Apache-2.0 licence (github.com/laude-institute/terminal-bench-2); keep its
210
+ attribution and licence notice. Some task data contains names and e-mail addresses from public software projects
211
+ (for example git history); they come from the benchmark.
212
+ - **Model output:** the actions in `state` were written by Gemini 4 Argon, Gemini 3.8 Flash and Gemini 3.5 Flash-Lite
213
+ (Google) or by GPT-6.1 Sol and GPT-6 Luna (OpenAI, `test-codex`); `p_hard` and the decision probabilities are
214
+ outputs of Jev (TypeSafe). Check these providers' terms before you use the data commercially, in particular for
215
+ training a model that competes with theirs.
216
+ - By design no provider key entered a task container: each agent got a dummy key and only the proxy held the real
217
+ ones. The files were scanned for our keys and for key-shaped strings before release.
218
+
219
+ ## Citation
220
+
221
+ ```bibtex
222
+ @misc{zhu2026jevagentharness,
223
+ title = {JevAgentHarness: Benchmarking, Deploying and Training Decision Models That Share Control with LLMs},
224
+ author = {Zhu, Kunlun and Feng, Tao and Han, Xu and Wang, Heng and Yang, Ling and Tang, Xiangru and You, Jiaxuan and Ji, Heng},
225
+ year = {2026},
226
+ note = {arXiv identifier to be added}
227
+ }
228
+ ```
decisions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfe81911f88c8fb999524a4869baa05ad56302638e63974d636cfdef9c099ce8
3
+ size 133174
runs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b035992ae7c2dbe3d87dbfe677daa38979156ab20cd27bf32644809c51690b17
3
+ size 5022
states.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adcc66a6237d40734dff4cfbd83c926b5c6d3ae287acb891989e8dc1ebcb7802
3
+ size 4704352
steps.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1d386f8bfd5d46d42d36eedee7f704662df869c57b42685c676bd42a2b898e2
3
+ size 2719534
trials.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21e012303255ed771fafdfeadcc4923e02c7fd258844cab9b45162ae16525a0c
3
+ size 71426