GridSimEnv-AgentEnv / README.md
earakely-scale's picture
The card names the plugin and the setup the gridsim-v1 bundle needs
744e139 verified
|
Raw History Blame Contribute Delete
111 kB
---
license: other
license_name: ercot-website-user-agreement-eia-public-domain-apache-2.0
license_link: https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/data/LICENSE
pretty_name: 'GridSimEnv Desk: a live ERCOT battery desk'
language:
- en
task_categories:
- reinforcement-learning
- text-generation
size_categories:
- n<1K
tags:
- agentenv
- rl-environment
- agents
- tool-use
- simulation
- energy
- electricity-markets
- battery-storage
- ercot
- real-world-data
- ancillary-services
- solar
- weather
- forecasting
- auctions
configs:
- config_name: desk_v4_bench
default: true
data_files:
- split: pre_cutoff
path: desk_v4_bench/pre_cutoff.parquet
- split: post_cutoff
path: desk_v4_bench/post_cutoff.parquet
- config_name: desk_leaderboard
data_files:
- split: v2
path: desk_leaderboard/v2.parquet
- split: v3
path: desk_leaderboard/v3.parquet
- split: v4
path: desk_leaderboard/v4.parquet
- split: v5
path: desk_leaderboard/v5.parquet
- config_name: desk_runs
data_files:
- split: v2
path: desk_runs/v2.parquet
- split: v3
path: desk_runs/v3.parquet
- split: v4
path: desk_runs/v4.parquet
- split: v5
path: desk_runs/v5.parquet
- config_name: desk_tasks
data_files:
- split: v2
path: desk_tasks/v2.parquet
- split: v3
path: desk_tasks/v3.parquet
- split: v4
path: desk_tasks/v4.parquet
- split: v5
path: desk_tasks/v5.parquet
agentenv:
bundles:
gridsim-v1:
plugins:
- agentenv-gridsim @ git+https://github.com/earakely-scale/agentenv-gridsim-plugin@3db7869e9df6ce6c9754a1b7166dd11c2906cbc7
setup: agent-env gridsim setup --agent
---
<div align="center">
<a href="https://huggingface.co/spaces/earakely-scale/GridSimEnv"><img src="https://img.shields.io/badge/%F0%9F%93%96%20Article-A%20live%20ERCOT%20battery%20desk-0e7d56?style=for-the-badge&labelColor=1a1a1a" alt="The article: a live ERCOT battery desk" height="32"></a>
<a href="https://huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv"><img src="https://img.shields.io/badge/%E2%96%B6%20Playground-Play%20the%20desk%20live-2a78d6?style=for-the-badge&labelColor=1a1a1a" alt="Playground: play the desk yourself, or connect your agent" height="32"></a>
<a href="https://huggingface.co/spaces/earakely-scale/GridSimEnv-AgentEnv"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Replays-Every%20run%20in%203D-FFD21E?style=for-the-badge&labelColor=1a1a1a" alt="Replays: every benchmark run in 3D" height="32"></a>
<a href="https://github.com/earakely-scale/agentenv-gridsim-plugin"><img src="https://img.shields.io/badge/GitHub-agentenv--gridsim--plugin-181717?style=for-the-badge&logo=github&labelColor=1a1a1a" alt="Code on GitHub" height="32"></a>
<a href="https://www.agentenvframework.com"><img src="https://img.shields.io/badge/framework-AgentEnv-6f42c1?style=for-the-badge&labelColor=1a1a1a" alt="AgentEnv Framework" height="32"></a>
</div>
# GridSimEnv Desk
GridSimEnv hands an AI agent the trading desk of a real battery on the Texas grid. For three days at a time, while a real
heat wave or winter storm sweeps across Texas, it reads ERCOT's prices and forecasts as they were posted, bids the
battery into the power markets and decides when to charge and when to sell. Every window is settled in dollars and
scored against the best plan hindsight allows. We put 15 AI models through 32 of these windows,
and in the August heat wave most of them out-earned the real operator at three of the four
batteries.
<a href="https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-18-S02"><img src="assets/gridsim-run.gif" alt="A recorded benchmark run: GPT-6.1 Sol trades Battery S02 (Houston, 100 MW / 206 MWh) through the 18 to 20 August 2026 heat wave. The battery site in 3D, the agent&#x27;s tool calls one by one in the desk beside it, the node&#x27;s price and the battery&#x27;s charge below as they post, then the settled grade beside the real operator&#x27;s" width="100%"></a>
<small>GPT-6.1 Sol trades a 100 MW battery near Houston through the August 2026 heat wave. It made $85,771, 71% of the best possible profit; the battery's real operator made $20,647. The panel on the right shows each tool call as it happens. [Watch it in 3D](https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-18-S02) · [its Episode JSON](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/desk-v4-bench/episodes/sol/desk-v4-2026-08-18-S02.gpt-6.1-sol.json.gz)</small>
## Before and after: the real operator and the agents
Every window also happened for real. The battery's own operator traded those same three days, and ERCOT publishes what
each battery did 60 days later: its day-ahead awards, its output and its charge every five minutes
([NP3-966-ER](https://www.ercot.com/mp/data-products/data-product-details?id=NP3-966-ER),
[NP3-965-ER](https://www.ercot.com/mp/data-products/data-product-details?id=NP3-965-ER)). That gives each window a before
and an after. Here are the 3 windows where the agents most clearly beat the operator, all on the
18 to 20 August 2026 heat wave, after every reported training cutoff. Each shows the operator beside the run that made the
most there, GPT-6.1 Sol's.
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/before-after-phone.webp"><img class="dark:hidden" src="assets/article/before-after.webp" width="800" alt="Three windows of the 18 to 20 August 2026 heat wave, one panel each: Battery S01 (Far West, 100 MW / 104 MWh), the real operator, as it ran, settled $9,300, selling nothing a day ahead, and GPT-6.1 Sol $76,888, selling 3,600 MWh a day ahead; Battery S02 (Houston, 100 MW / 206 MWh), the real operator, as it ran, settled $20,647, selling 7 MWh a day ahead, and GPT-6.1 Sol $85,771, selling 3,050 MWh a day ahead; Battery S03 (North, 120 MW / 187 MWh), the real operator, as it ran, settled $32,942, selling 266 MWh a day ahead, and GPT-6.1 Sol $124,150, selling 4,317 MWh a day ahead. Each panel has a 3D still of the run at a moment it delivers, the node&#x27;s day-ahead and real-time prices, what each side sold or bought a day ahead hour by hour, and the battery&#x27;s charge." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/before-after-phone-dark.webp"><img class="hidden dark:block" src="assets/article/before-after-dark.webp" width="800" alt="Three windows of the 18 to 20 August 2026 heat wave, one panel each: Battery S01 (Far West, 100 MW / 104 MWh), the real operator, as it ran, settled $9,300, selling nothing a day ahead, and GPT-6.1 Sol $76,888, selling 3,600 MWh a day ahead; Battery S02 (Houston, 100 MW / 206 MWh), the real operator, as it ran, settled $20,647, selling 7 MWh a day ahead, and GPT-6.1 Sol $85,771, selling 3,050 MWh a day ahead; Battery S03 (North, 120 MW / 187 MWh), the real operator, as it ran, settled $32,942, selling 266 MWh a day ahead, and GPT-6.1 Sol $124,150, selling 4,317 MWh a day ahead. Each panel has a 3D still of the run at a moment it delivers, the node&#x27;s day-ahead and real-time prices, what each side sold or bought a day ahead hour by hour, and the battery&#x27;s charge." loading="lazy"></picture>
<small>Each panel is one window. Top: the node's day-ahead price, hourly, and its real-time price, every 15 minutes. Below, for the real operator as it ran and for the run: what it sold (up) or bought (down) a day ahead in each hour, and the battery's charge. The windows: every window in July and August 2026 on which at least 12 of the 15 models settled above the real operator, both as it ran and with its own bids replayed through the same market; replayed, its own bids earn $10,827, $17,102 and $32,268. Replay GPT-6.1 Sol's runs in 3D: [Battery S01](https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-18-S01) · [Battery S02](https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-18-S02) · [Battery S03](https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-18-S03).</small>
Most of each gap is day-ahead trading. Through most of this heat wave the day-ahead price ran above real time, and
GPT-6.1 Sol sold far more energy a day ahead than the battery could deliver, then bought it back in real time,
cheaper; other models traded the same way on a smaller scale. ERCOT's day-ahead market allows such positions because it
ignores a battery's charge; its credit screening, not modelled here, would limit them. They do not always pay: on the
next front, 26 to 28 August 2026, real-time prices spiked to about $800 a MWh, and the operator came out ahead
of at least 13 of the models at each of its 4 batteries.
## Try it
The [GridSimEnv Playground](https://huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv), the environment's OpenEnv Space, runs it live. Load a window and run the
desk with the agents' own eleven tools, call budget and grade: ask the optimizer, send its offers, end your turn and watch the
market play out beside the battery in 3D, then see how you rank against the real operator and the 15
models.
<a href="https://huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv"><picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/try-it-phone.webp"><img class="dark:hidden" src="assets/article/try-it.webp" width="800" alt="The Playground&#x27;s Try Environment tab on window #25, Battery S02 in the 18 to 20 August 2026 heat wave: the window picker, the desk&#x27;s tools, the battery site in 3D, Quick play and the market chart" loading="lazy"></picture></a>
<a href="https://huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv"><picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/try-it-phone-dark.webp"><img class="hidden dark:block" src="assets/article/try-it-dark.webp" width="800" alt="The Playground&#x27;s Try Environment tab on window #25, Battery S02 in the 18 to 20 August 2026 heat wave: the window picker, the desk&#x27;s tools, the battery site in 3D, Quick play and the market chart" loading="lazy"></picture></a>
<small>It opens on window #25, Battery S02 in the 18 to 20 August 2026 heat wave, the run in the film above. Quick play is three clicks a wake-up (ask the optimizer, submit its proposal, end your turn), Autopilot repeats them to the end as the desk's reference does, and every tool also takes raw JSON. [Open the Playground ↗](https://huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv)</small>
Or play it from Python with the Playground's OpenEnv client, after `git clone https://huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv` and
`pip install ./GridSimEnv-OpenEnv`:
```python
from gridsim_desk import GridSimDesk
with GridSimDesk(base_url="https://earakely-scale-gridsimenv-openenv.hf.space").sync() as env:
env.reset(split="bench", index=25)
print(env.call_tool("get_forecasts", kind="price", market="dam", day="D0"))
print(env.call_tool("end_turn", response="waiting for the DAM results"))
```
## Why it matters
A grid battery makes its money on decisions: when to charge, when to sell and how much to hold in reserve, around the
clock in ERCOT's day-ahead and real-time markets. The same hardware earns very different amounts depending on who bids
it, so closing that gap is revenue without a single new battery, and well-timed batteries put power on the grid exactly
when it is scarcest, on heat-wave evenings and storm mornings.
<table>
<tr><td width="50%"><b>21.5 GW</b> of batteries on ERCOT&#x27;s grid, October 2026<br><small>Jul 2025 14.1 GW · Oct 2026 21.5 GW<br><a href="https://www.ercot.com/files/docs/2022/02/08/ERCOT_Fact_Sheet.pdf">ERCOT fact sheet, Oct 2026</a> · <a href="https://www.ercot.com/files/docs/2025/08/06/ERCOT-Monthly-July-2025.pdf">ERCOT Monthly, Jul 2025</a></small></td><td width="50%"><b>76%</b> of what perfect timing allowed, captured by the best quarter of ERCOT battery bidders in January 2026<br><small>Best quarter 76% · Worst quarter 27%<br><a href="https://modoenergy.com/research/en/ercot-march-2026-bess-benchmark-batteries-fern-revenues">Modo Energy, Apr 2026</a></small></td></tr>
<tr><td width="50%"><b>$29.4/kW</b> a year of revenue for ERCOT batteries in 2025, Modo&#x27;s estimate, down from 2023<br><small>2023 $193/kW · 2025 $29.4/kW<br><a href="https://modoenergy.com/research/en/why-were-ercot-battery-revenues-so-low-in-2025-weather-energy-arbitrage-builodout">Modo Energy, Feb 2026</a></small></td><td width="50%"><b>166 GW</b> of batteries waiting to connect to ERCOT in July 2026, more than any other kind of plant<br><small>Share of the queue 36.3%<br><a href="https://www.ercot.com/files/docs/2026/08/17/ERCOT-Monthly-Operational-Overview-July-2026.pdf">ERCOT overview, Jul 2026</a></small></td></tr>
<tr><td width="50%"><b>12.0 GW</b> discharged at once by ERCOT&#x27;s batteries, a record, on 22 July 2026<br><small>30 Jul 2025 7.2 GW · 22 Jul 2026 12.0 GW<br><a href="https://blog.gridstatus.io/ercot-record-july-2026/">Grid Status, Aug 2026</a> · <a href="https://www.ercot.com/files/docs/2025/08/06/ERCOT-Monthly-July-2025.pdf">ERCOT Monthly, Jul 2025</a></small></td><td width="50%"><b>$799/MWh</b> real-time price at Battery S01 at 22:00 on 26 August, the rollout&#x27;s spike, against that hour&#x27;s day-ahead price<br><small>Day ahead $104 · Real time $799<br><a href="https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-26-S01&t=1320">This benchmark, replayed</a></small></td></tr>
</table>
That work is done today by round-the-clock trading desks and
[bidding software](https://fluenceenergy.com/mosaic-for-ercot/); an AI agent with the same forecasts, notices and rules
could watch every interval, act on news in seconds and let one desk run far more batteries. No one should hand a real
battery to an untested agent, though: here, one bad position in a price spike
[lost $142,769 in a single window](#watch-a-rollout), nearly twice what the same model made at the same
battery a week earlier. GridSimEnv is where to test and train them first: real ERCOT days, the desk's own tools and
rules, and every window settled in dollars against hindsight and the battery's real operator.
## The eval
Fifteen models ran all 32 windows once, each in its maker's own harness (Claude Code, Codex CLI or Gemini CLI) or, for
the open-weight models, OpenCode, with the same eleven tools, 14 calls a wake-up and at most
100 wake-ups a window.
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/pareto-phone.svg"><img class="dark:hidden" src="assets/article/pareto.svg" width="800" alt="Scatter of hindsight capture C against cost per three-day window on a log scale, the cost frontier a step line through GLM-5.3-Flash (16.9%, $0.15), DeepSeek V4.1 Flash (24.6%, $0.38) and GPT-6.1 Sol (27.0%, $4.12); dominated: Qwen3.5-9B + desk SFT (20.3%, $0.56), Gemini 4 Argon (19.9%, $6.69), GLM-5.3 (18.4%, $3.29), GPT-6.1 Terra (18.0%, $1.97), Kimi K3 (17.2%, $3.71), Claude Opus 5.5 (16.8%, $2.00), Qwen3.8 Max (13.8%, $3.97), GPT-6 Luna (13.7%, $0.32), Claude Haiku 5.5 (11.1%, $0.40), Qwen3.5-9B (7.3%, $3.20), Beam-1.0 (6.7%, $0.31) and Qwen3-4B (−2.1%, $0.16)." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/pareto-phone-dark.svg"><img class="hidden dark:block" src="assets/article/pareto-dark.svg" width="800" alt="Scatter of hindsight capture C against cost per three-day window on a log scale, the cost frontier a step line through GLM-5.3-Flash (16.9%, $0.15), DeepSeek V4.1 Flash (24.6%, $0.38) and GPT-6.1 Sol (27.0%, $4.12); dominated: Qwen3.5-9B + desk SFT (20.3%, $0.56), Gemini 4 Argon (19.9%, $6.69), GLM-5.3 (18.4%, $3.29), GPT-6.1 Terra (18.0%, $1.97), Kimi K3 (17.2%, $3.71), Claude Opus 5.5 (16.8%, $2.00), Qwen3.8 Max (13.8%, $3.97), GPT-6 Luna (13.7%, $0.32), Claude Haiku 5.5 (11.1%, $0.40), Qwen3.5-9B (7.3%, $3.20), Beam-1.0 (6.7%, $0.31) and Qwen3-4B (−2.1%, $0.16)." loading="lazy"></picture>
<small>Each point is a model: its mean capture C over the windows it finished against its mean cost a window, on a log scale. The step line is the cost frontier, the models no other model beats on both; each point's 95% CI is in the table below. Cost: each window's tokens at the model maker's list price; Beam-1.0 at Together AI's; Qwen3.5-9B at Fireworks' metered rate; Qwen3.5-9B + desk SFT and Qwen3-4B in GPU time.</small>
- **GPT-6.1 Sol leads at 27.0%** of the best possible profit, for $4.12 a window.
DeepSeek V4.1 Flash is close behind at 24.6% for $0.38; the 95% CI on the gap,
−8.2 to +12.8 points, includes zero.
- **Every model scores lower in July and August than in January to May**, even Qwen3-4B, trained
before any window: the later fronts are harder, not just unseen. On 26 to 28 August 2026, a real-time spike to about
$800 left 9 of the 15 models in the red.
- **What to train next: re-planning to the end.** The later a model's last accepted offer, the higher it scores, a
rank correlation of 0.74 across the 15: GPT-6.1 Sol's last accepted offer comes
1.3 hours before a window ends on average, Beam-1.0's 23.5. Distilling the
desk's own planner already lifted Qwen3.5-9B from 7.3% to 20.3%, near the
planner's 20.9%.
| Model | C, all 32 windows | Jan–May 2026<br><small>may be in training data</small> | Jul–Aug 2026<br><small>after every reported cutoff</small> | $ a window |
|---|---:|---:|---:|---:|
| **GPT-6.1 Sol**<br><small>Codex CLI · effort high</small> | **27.0%**<br><small>[9.5, 43.8]</small> | 37.6%<br><small>[26.7, 55.0]</small> | 16.4%<br><small>[−9.7, 42.7]</small> | $4.12<br><small>$140 in all</small> |
| **DeepSeek V4.1 Flash**<br><small>OpenCode · effort high</small> | **24.6%**<br><small>[10.7, 41.7]</small> | 30.6%<br><small>[9.5, 58.8]</small> | 18.5%<br><small>[3.3, 33.7]</small> | $0.38<br><small>$12.16 in all</small> |
| **Qwen3.5-9B + desk SFT**<br><small>OpenCode · thinking on</small> | **20.3%**<br><small>[6.9, 37.4]</small> | 24.9%<br><small>[3.0, 56.2]</small> | 15.8%<br><small>[1.6, 30.0]</small> | $0.56<br><small>GPU time · $18.00 in all</small> |
| **Gemini 4 Argon**<br><small>Gemini CLI · thinking high</small> | **19.9%**<br><small>[5.1, 33.5]</small> | 28.2%<br><small>[15.5, 41.4]</small> | 11.5%<br><small>[−10.1, 31.7]</small> | $6.69<br><small>$306 in all</small> |
| **GLM-5.3**<br><small>OpenCode · effort high</small> | **18.4%**<br><small>[4.5, 32.4]</small> | 24.8%<br><small>[11.7, 41.9]</small> | 12.0%<br><small>[−9.2, 33.1]</small> | $3.29<br><small>$108 in all</small> |
| **GPT-6.1 Terra**<br><small>Codex CLI · effort high</small> | **18.0%**<br><small>[6.6, 28.6]</small> | 22.4%<br><small>[15.4, 29.4]</small> | 13.5%<br><small>[−4.9, 32.3]</small> | $1.97<br><small>$66.47 in all</small> |
| **Kimi K3**<br><small>OpenCode · effort high · 28 of 32 windows</small> | **17.2%**<br><small>[7.7, 27.8]</small> | 22.1%<br><small>[12.1, 39.5]</small> | 12.3%<br><small>[−0.2, 21.8]</small> | $3.71<br><small>$193 in all</small> |
| **GLM-5.3-Flash**<br><small>OpenCode · effort high</small> | **16.9%**<br><small>[7.2, 30.3]</small> | 24.5%<br><small>[10.6, 47.8]</small> | 9.3%<br><small>[1.2, 18.0]</small> | $0.15<br><small>$4.88 in all</small> |
| **Claude Opus 5.5**<br><small>Claude Code · effort high</small> | **16.8%**<br><small>[8.6, 26.5]</small> | 22.9%<br><small>[12.7, 37.6]</small> | 10.7%<br><small>[1.6, 19.9]</small> | $2.00<br><small>$63.91 in all</small> |
| **Qwen3.8 Max**<br><small>OpenCode · effort high</small> | **13.8%**<br><small>[5.3, 22.4]</small> | 16.5%<br><small>[5.5, 27.5]</small> | 11.1%<br><small>[−0.8, 23.0]</small> | $3.97<br><small>$129 in all</small> |
| **GPT-6 Luna**<br><small>Codex CLI · effort high</small> | **13.7%**<br><small>[5.7, 22.3]</small> | 18.7%<br><small>[10.7, 28.6]</small> | 8.6%<br><small>[−0.7, 21.5]</small> | $0.32<br><small>$10.99 in all</small> |
| **Claude Haiku 5.5**<br><small>Claude Code · effort high</small> | **11.1%**<br><small>[7.0, 15.0]</small> | 13.2%<br><small>[9.1, 17.2]</small> | 9.0%<br><small>[2.8, 15.3]</small> | $0.40<br><small>$12.74 in all</small> |
| **Qwen3.5-9B**<br><small>OpenCode · thinking on</small> | **7.3%**<br><small>[−2.4, 19.3]</small> | 13.2%<br><small>[2.7, 32.1]</small> | 1.4%<br><small>[−9.0, 15.3]</small> | $3.20<br><small>metered rate · $106 in all</small> |
| **Beam-1.0**<br><small>OpenCode · effort high</small> | **6.7%**<br><small>[0.5, 12.0]</small> | 10.5%<br><small>[5.6, 15.5]</small> | 3.0%<br><small>[−5.9, 10.9]</small> | $0.31<br><small>$10.44 in all</small> |
| **Qwen3-4B**<br><small>OpenCode · thinking on</small> | **−2.1%**<br><small>[−5.9, 1.4]</small> | 1.0%<br><small>[−1.1, 4.9]</small> | −5.2%<br><small>[−10.8, −0.9]</small> | $0.16<br><small>GPU time · $5.19 in all</small> |
| *The real operator, as it ran* | *7.2%* | *8.0%* | *6.5%* | – |
| *The real operator's bids, replayed* | *7.4%* | *8.4%* | *6.4%* | – |
| *The desk's planner* | *20.9%* | *25.0%* | *16.9%* | – |
<small>C, hindsight capture, %. Brackets: 95% CIs, a block bootstrap over the 8 weather fronts, four on each side of the cutoffs. No training cutoff is reported for DeepSeek V4.1 Flash, Qwen3.5-9B + desk SFT, GLM-5.3, Kimi K3, GLM-5.3-Flash, Qwen3.8 Max and Qwen3.5-9B. $ a window: the graded attempt's tokens at the model maker's list price, or as the chart's note says; in all: every attempt, retries and stalls included. How each model ran is under How the benchmark ran, below.</small>
**Against the real operator,** paired by window with its own bids replayed, the 95% CI on the gap is above zero for GPT-6.1 Sol, DeepSeek V4.1 Flash, GPT-6.1 Terra, Kimi K3, GLM-5.3-Flash, Claude Opus 5.5 and Claude Haiku 5.5, and below zero for Qwen3-4B.
### Watch a rollout
All 476 runs replay in the [Replays Space](https://huggingface.co/spaces/earakely-scale/GridSimEnv-AgentEnv): the battery site in 3D in its real light and
weather, each wake-up's tool calls and what the agent wrote, the market and the battery as they moved, and the grade.
<a href="https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-26-S01&t=1320"><picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/rollout-phone.webp"><img class="dark:hidden" src="assets/article/rollout.webp" width="800" alt="The Replays Space at 22:00 on 26 August: GPT-6.1 Sol&#x27;s run at Battery S01 (Far West) over 26 to 28 August 2026, the battery site in 3D at night beside the node&#x27;s prices, the battery&#x27;s charge and the statement settled so far" loading="lazy"></picture></a>
<a href="https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-26-S01&t=1320"><picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/rollout-phone-dark.webp"><img class="hidden dark:block" src="assets/article/rollout-dark.webp" width="800" alt="The Replays Space at 22:00 on 26 August: GPT-6.1 Sol&#x27;s run at Battery S01 (Far West) over 26 to 28 August 2026, the battery site in 3D at night beside the node&#x27;s prices, the battery&#x27;s charge and the statement settled so far" loading="lazy"></picture></a>
<small>At 22:00 on 26 August in the bench's costliest run, GPT-6.1 Sol at Battery S01 (Far West) over 26 to 28 August 2026, the front after the film's: its evening day-ahead sales met an all but empty battery and were bought back as real-time prices hit $799. It lost $142,769; the real operator made $34,874. [Open it in Replays ↗](https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=sol&task=desk-v4-2026-08-26-S01&t=1320), or pick any model and window under Episodes.</small>
### How the reward works
Every window ends in an ERCOT settlement statement: day-ahead and real-time energy, reserves, imbalance and battery
wear, priced by the market's own rules. The score is that statement's total P, so it is deterministic, with no judge
model and no sampling. Capture C places P between doing nothing and perfect hindsight,
C = (P − P<sub>idle</sub>) / (P<sub>hind</sub> − P<sub>idle</sub>): 0% at idle, 100% at hindsight, below zero for a run
that does worse than idling. The contract's reward R runs from 0.2 at idle to 1 at the desk's own planner,
R = 0.2 + 0.8 (P − P<sub>idle</sub>) / (P<sub>plan</sub> − P<sub>idle</sub>) clipped to 0 and 1, with the planner's
margin over idle counted as at least a tenth of the physical hindsight's; it is 0 for a run with no accepted offer.
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/reward-phone.png"><img class="dark:hidden" src="assets/article/reward.png" width="800" alt="Every model&#x27;s settled P on the film&#x27;s window, Battery S02, on the scale from idle ($2) to hindsight ($120,595), with the desk&#x27;s planner at $55,981 and the real operator at $20,647 as it ran and $17,102 with its bids replayed: GPT-6.1 Sol C 71.1%, $85,771, R 1.00; DeepSeek V4.1 Flash C 53.0%, $63,909, R 1.00; GPT-6 Luna C 48.6%, $58,661, R 1.00; Qwen3.5-9B + desk SFT C 46.4%, $55,981, R 1.00; Gemini 4 Argon C 44.7%, $53,922, R 0.97; GPT-6.1 Terra C 35.2%, $42,434, R 0.81; GLM-5.3 C 32.0%, $38,627, R 0.75; Claude Opus 5.5 C 31.1%, $37,540, R 0.74; Qwen3.8 Max C 31.1%, $37,524, R 0.74; Qwen3.5-9B C 30.8%, $37,088, R 0.73; Kimi K3 C 28.4%, $34,245, R 0.69; Claude Haiku 5.5 C 23.5%, $28,333, R 0.60; GLM-5.3-Flash C 19.8%, $23,874, R 0.54; Beam-1.0 C 12.8%, $15,410, R 0.42; Qwen3-4B C −0.6%, −$763, R 0.19. Below, R along the same scale: 0.2 at idle, rising to 1 at the planner and staying there above it." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/reward-phone-dark.png"><img class="hidden dark:block" src="assets/article/reward-dark.png" width="800" alt="Every model&#x27;s settled P on the film&#x27;s window, Battery S02, on the scale from idle ($2) to hindsight ($120,595), with the desk&#x27;s planner at $55,981 and the real operator at $20,647 as it ran and $17,102 with its bids replayed: GPT-6.1 Sol C 71.1%, $85,771, R 1.00; DeepSeek V4.1 Flash C 53.0%, $63,909, R 1.00; GPT-6 Luna C 48.6%, $58,661, R 1.00; Qwen3.5-9B + desk SFT C 46.4%, $55,981, R 1.00; Gemini 4 Argon C 44.7%, $53,922, R 0.97; GPT-6.1 Terra C 35.2%, $42,434, R 0.81; GLM-5.3 C 32.0%, $38,627, R 0.75; Claude Opus 5.5 C 31.1%, $37,540, R 0.74; Qwen3.8 Max C 31.1%, $37,524, R 0.74; Qwen3.5-9B C 30.8%, $37,088, R 0.73; Kimi K3 C 28.4%, $34,245, R 0.69; Claude Haiku 5.5 C 23.5%, $28,333, R 0.60; GLM-5.3-Flash C 19.8%, $23,874, R 0.54; Beam-1.0 C 12.8%, $15,410, R 0.42; Qwen3-4B C −0.6%, −$763, R 0.19. Below, R along the same scale: 0.2 at idle, rising to 1 at the planner and staying there above it." loading="lazy"></picture>
<small>Every model's settled P on the film's window, Battery S02, on the scale from idle (C 0%) to hindsight (C 100%), with the desk's planner and the real operator marked; the strip below draws R along the same scale.</small>
The references are settled the same way. Hindsight is the best plan the market's rules allow with every price, award
and deployment of the window known in advance, one linear program solved by the same optimiser the agents can call.
Idle sends no offers. The planner is that optimiser re-planning at every wake-up on exactly what the agent can see. The
real operator appears twice: its own disclosed bids replayed through the same clearing and settlement, and what it
actually did, settled on the same statement. Offers the desk's checks refuse change nothing.
On the film's window GPT-6.1 Sol settles $85,771, idle settles $2 and hindsight $120,595,
so C = ($85,771 − $2) / ($120,595 − $2) = 71.1%. It beat the planner's
$55,981, so its R is capped at 1.
## Training on GridSimEnv
We fine-tuned Qwen3.5-9B with TRL on transcripts of the desk's own planner, which calls `optimize` and submits
its proposal. AgentEnv captured them by playing the planner through OpenCode on 144 training windows whose
operating days stay clear of the benchmark's, and the model learned to make the same calls, with a short rationale at
each wake-up.
**The recipe**
<table>
<tr><td><b>Data</b></td><td>144 three-day training windows; 438 rows, three a window; 397 after the 150k-token cap, about 34M tokens, 1.3M of them trained</td></tr>
<tr><td><b>Model</b></td><td>Qwen3.5-9B, LoRA r 32 / α 64 on all linear layers</td></tr>
<tr><td><b>Training</b></td><td>TRL SFTTrainer, lr 1e-4, 1 epoch, 50 steps, gradient accumulation 8; activations offloaded to CPU, so rows up to 150k tokens fit on one 95 GiB GPU (RTX PRO 6000, g7e.8xlarge spot), in 4.5 h</td></tr>
<tr><td><b>Eval</b></td><td>OpenCode with vLLM at a 262,144-token context, the same harness for base and student</td></tr>
<tr><td><b>Cost</b></td><td>about $104 of GPU for training and the evals on our own servers; the teacher is our own planner, so no LLM API spend</td></tr>
<tr><td><b>Code</b></td><td><a href="https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/scripts/desk_distill_sft.py">desk_distill_sft.py</a> and <a href="https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/scripts/desk_distill_train.py">desk_distill_train.py</a>, and the <a href="https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/docs/prereg/desk-distill.md">pre-registration</a></td></tr>
<tr><td><b>Guide</b></td><td><a href="https://www.agentenvframework.com/docs/training">AgentEnv's training docs</a>: TRL, Unsloth, NeMo RL, prime-rl, verl and SkyRL on AgentEnv environments</td></tr>
</table>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/training-phone.png"><img class="dark:hidden" src="assets/article/training.png" width="800" alt="Qwen3.5-9B, before and after fine-tuning on the planner: C on each of the 32 benchmark windows, paired, from the largest gain to the largest loss. Means: 7.3% before, 20.3% after, the planner 20.9%, GPT-6.1 Sol 27.0%; better on 23 of 32 windows." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/training-phone-dark.png"><img class="hidden dark:block" src="assets/article/training-dark.png" width="800" alt="Qwen3.5-9B, before and after fine-tuning on the planner: C on each of the 32 benchmark windows, paired, from the largest gain to the largest loss. Means: 7.3% before, 20.3% after, the planner 20.9%, GPT-6.1 Sol 27.0%; better on 23 of 32 windows." loading="lazy"></picture>
<small>Each row is a benchmark window: Qwen3.5-9B's C (grey) and the fine-tuned model's (blue), with the planner's C on that window as a tick. Rows run from the largest gain to the largest loss.</small>
- **Benchmark:** +13.0 points over the base model [+6.3, +19.6], better on 23 of
32 windows. The fine-tuned 9B lands near the planner it copied (20.3% against 20.9%), at
$0.56 a window.
- **Pre-registered primary test:** on 18 held-out training-period windows the gain was +3.8
points [−3.4, +10.6], not significant; the planner itself is only 3.9 points above base
there.
- **The earlier attempt:** GRPO alone on Qwen3.5-9B, 18 steps, did not move the score; imitating a
strong policy moved it on the benchmark. What the model learned is the planner's habits: refused day-ahead offers
fell from 48% to 5.7%.
<small>One benchmark front, 8 to 10 May 2026, falls inside some training windows' spans, but only as their day-ahead
price history, the week before their operating days; no training transcript names those dates. Base
Qwen3.5-9B was served by Fireworks on the benchmark and by our own vLLM on the held-out windows; the fine-tuned
model by our own vLLM on both.</small>
## Where models fail
We replayed every one of the 476 benchmark runs on the frozen engine and measured how each model ran the desk.
Three habits separate the top of the board from the bottom.
**Do they keep trading to the end?**
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/fail-end-phone.png"><img class="dark:hidden" src="assets/article/fail-end.png" width="800" alt="Hours between each model&#x27;s last accepted offer and the window&#x27;s end, the mean over its windows: GPT-6.1 Terra 1.1 h; GPT-6.1 Sol 1.3 h; Gemini 4 Argon 2.8 h; Qwen3.5-9B + desk SFT 5.2 h; Kimi K3 5.6 h; GPT-6 Luna 6.0 h; Qwen3.8 Max 8.1 h; GLM-5.3-Flash 10.4 h; DeepSeek V4.1 Flash 10.5 h; GLM-5.3 10.7 h; Claude Opus 5.5 11.6 h; Claude Haiku 5.5 15.0 h; Qwen3.5-9B 22.5 h; Beam-1.0 23.5 h; Qwen3-4B 80.9 h." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/fail-end-phone-dark.png"><img class="hidden dark:block" src="assets/article/fail-end-dark.png" width="800" alt="Hours between each model&#x27;s last accepted offer and the window&#x27;s end, the mean over its windows: GPT-6.1 Terra 1.1 h; GPT-6.1 Sol 1.3 h; Gemini 4 Argon 2.8 h; Qwen3.5-9B + desk SFT 5.2 h; Kimi K3 5.6 h; GPT-6 Luna 6.0 h; Qwen3.8 Max 8.1 h; GLM-5.3-Flash 10.4 h; DeepSeek V4.1 Flash 10.5 h; GLM-5.3 10.7 h; Claude Opus 5.5 11.6 h; Claude Haiku 5.5 15.0 h; Qwen3.5-9B 22.5 h; Beam-1.0 23.5 h; Qwen3-4B 80.9 h." loading="lazy"></picture>
<small>Hours between each model's last accepted offer and the window's end, the mean over its windows. The more hours a model leaves its last offer standing, the lower it scores: a rank correlation of −0.74 across the models.</small>
**Do their real-time offers stay live?**
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/fail-live-phone.png"><img class="dark:hidden" src="assets/article/fail-live.png" width="800" alt="How each model&#x27;s 5-minute real-time intervals settled, on its live real-time curve, its day-ahead curve or a proxy: the desk&#x27;s planner 100%, 0%, 0%; GPT-6.1 Sol 100%, 0%, 0%; Qwen3.5-9B + desk SFT 100%, 0%, 0%; Claude Opus 5.5 100%, 0%, 0%; GPT-6.1 Terra 100%, 0%, 0%; Gemini 4 Argon 99%, 1%, 0%; GLM-5.3 94%, 6%, 0%; DeepSeek V4.1 Flash 92%, 2%, 6%; Kimi K3 90%, 8%, 2%; GLM-5.3-Flash 82%, 14%, 4%; Claude Haiku 5.5 80%, 16%, 4%; Qwen3.8 Max 78%, 6%, 16%; Qwen3.5-9B 77%, 23%, 0%; Beam-1.0 67%, 31%, 1%; GPT-6 Luna 60%, 16%, 24%; Qwen3-4B 5%, 22%, 72%." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/fail-live-phone-dark.png"><img class="hidden dark:block" src="assets/article/fail-live-dark.png" width="800" alt="How each model&#x27;s 5-minute real-time intervals settled, on its live real-time curve, its day-ahead curve or a proxy: the desk&#x27;s planner 100%, 0%, 0%; GPT-6.1 Sol 100%, 0%, 0%; Qwen3.5-9B + desk SFT 100%, 0%, 0%; Claude Opus 5.5 100%, 0%, 0%; GPT-6.1 Terra 100%, 0%, 0%; Gemini 4 Argon 99%, 1%, 0%; GLM-5.3 94%, 6%, 0%; DeepSeek V4.1 Flash 92%, 2%, 6%; Kimi K3 90%, 8%, 2%; GLM-5.3-Flash 82%, 14%, 4%; Claude Haiku 5.5 80%, 16%, 4%; Qwen3.8 Max 78%, 6%, 16%; Qwen3.5-9B 77%, 23%, 0%; Beam-1.0 67%, 31%, 1%; GPT-6 Luna 60%, 16%, 24%; Qwen3-4B 5%, 22%, 72%." loading="lazy"></picture>
<small>Each bar splits a model's 5-minute real-time intervals by what they settled on: its own live real-time curve, its day-ahead curve carried over, or a proxy. The desk's planner is the reference row.</small>
**Does the desk accept their offers?**
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/fail-refused-phone.png"><img class="dark:hidden" src="assets/article/fail-refused.png" width="800" alt="The share of each model&#x27;s submits the desk refused: GPT-6.1 Sol 1%; GPT-6.1 Terra 2%; Gemini 4 Argon 3%; GPT-6 Luna 3%; Claude Opus 5.5 4%; Beam-1.0 7%; Claude Haiku 5.5 7%; Kimi K3 11%; GLM-5.3 11%; Qwen3.8 Max 11%; Qwen3.5-9B + desk SFT 14%; DeepSeek V4.1 Flash 15%; GLM-5.3-Flash 17%; Qwen3.5-9B 50%; Qwen3-4B 73%." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/fail-refused-phone-dark.png"><img class="hidden dark:block" src="assets/article/fail-refused-dark.png" width="800" alt="The share of each model&#x27;s submits the desk refused: GPT-6.1 Sol 1%; GPT-6.1 Terra 2%; Gemini 4 Argon 3%; GPT-6 Luna 3%; Claude Opus 5.5 4%; Beam-1.0 7%; Claude Haiku 5.5 7%; Kimi K3 11%; GLM-5.3 11%; Qwen3.8 Max 11%; Qwen3.5-9B + desk SFT 14%; DeepSeek V4.1 Flash 15%; GLM-5.3-Flash 17%; Qwen3.5-9B 50%; Qwen3-4B 73%." loading="lazy"></picture>
<small>The share of each model's submits the desk refused, for breaking its rules or arriving after a gate.</small>
<small>Means over each model's graded windows, from an exact replay of every episode. [The article](https://huggingface.co/spaces/earakely-scale/GridSimEnv) highlights one model at a time, with its profile.</small>
## Beam-1.0 on GridSimEnv
**How Beam was used.** Reflection's Beam-1.0-501B-A23B traded all 32 benchmark windows as an autonomous agent
in OpenCode 1.17.18 at effort high, served by Baseten through Hugging Face Inference Providers, on
agentenv-framework 0.9.1396, with 14 calls a wake-up and at most 100 wake-ups a window.
Each run covers three operating days of the desk on ERCOT's records, with about 30 wake-ups,
through the same eleven desk tools over MCP as every other model, and no hand-holding.
**Result.** C 6.7% [0.5, 12.0], at $0.31 a window at Together AI's list price.
The real operator's bids, replayed, reach 7.4%, and the desk's planner 20.9%.
**Diagnosis.** We replayed all 32 of Beam's runs exactly, every P to the cent, on the frozen desk, then changed
one thing at a time and graded each window again. Differences are in points of C, with 95% intervals.
- **Beam is faithful.** 97% of the day-ahead curve hours it submits against a planner proposal are exact
copies of the proposal it had just received.
- **It asks the wrong question.** 91% of its `optimize` calls leave `dam_position` at the default,
`physical`, which caps day-ahead curves at the planned dispatch. Asking the planner's question instead,
`spread` at risk 1.5, adds +11.5 [+0.7, +27.1]. This leans on Winter Storm Fern:
without that front's four windows it is +4.6 [−0.8, +11.1].
- **It stops re-planning.** Its last accepted offer comes 23.5 hours before the window ends, on average.
Letting the planner fill the wake-ups it ended without a submit adds +4.5 [+2.0, +7.4].
- **Both fixed:** +14.0 [+3.0, +28.7], 98% of its 14.2-point gap to the planner.
- AS offers left out, refused submits and its hand edits each move C by less than 0.5 points.
**What it means.** Beam reads the desk and follows the planner well. It lacks the desk's habits: a `spread`
position, and re-planning to the end of the window.
Watch Beam's runs in the [Replays Space](https://earakely-scale-gridsimenv-agentenv.static.hf.space/index.html?v=bench&m=beam&task=desk-v4-2026-08-18-S02), opening on the film's window; pick Beam-1.0 in the
article's [Where models fail](https://earakely-scale-gridsimenv.hf.space/#where-models-fail) charts; or read [the diagnosis](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/desk-v4-bench/beam-diagnosis/report.md) and its
[per-window files](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/desk-v4-bench/beam-diagnosis).
### With the playbook
Those habits then went into a [playbook](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/a4be130/bench/harness/bench-opencode-beam-playbook/PLAYBOOK.md) for Beam: 46 lines of general desk
practice, pre-registered and frozen before its first episode. Beam-1.0 ran all 32 windows again with it, in the
same harness at the same settings, and reached C 18.9% [6.0, 35.8], against its own 6.7%
[0.5, 12.0] and the planner's 20.9%. The replay put both fixes at +14.0 points; Beam's own
play with the playbook recovered +12.2.
| Windows | Beam + playbook − Beam, points of C | Windows ahead | Fronts ahead |
|---|---|---|---|
| All 32 | +12.2 [+1.6, +26.9] | 19 of 32 | 6 of 8 |
| July and August (16) | +11.2 [+5.5, +19.5] | 11 of 16 | 4 of 4 |
| Outside Winter Storm Fern (28) | +5.8 [−0.3, +12.8] | 15 of 28 | 5 of 7 |
Outside Winter Storm Fern's front the interval includes zero.
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/beam-move-phone.svg"><img class="dark:hidden" src="assets/article/beam-move.svg" width="800" alt="The card&#x27;s cost chart with the leaderboard&#x27;s frontier, the other models faded: an arrow from Beam-1.0 at 6.7% and $0.31 to Beam-1.0 + playbook at 18.9% and $0.44, still below the frontier, which DeepSeek V4.1 Flash holds at a lower cost." loading="lazy"></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/article/beam-move-phone-dark.svg"><img class="hidden dark:block" src="assets/article/beam-move-dark.svg" width="800" alt="The card&#x27;s cost chart with the leaderboard&#x27;s frontier, the other models faded: an arrow from Beam-1.0 at 6.7% and $0.31 to Beam-1.0 + playbook at 18.9% and $0.44, still below the frontier, which DeepSeek V4.1 Flash holds at a lower cost." loading="lazy"></picture>
<small>The arrow takes Beam-1.0 from 6.7% at $0.31 to 18.9% at $0.44 a window with the playbook, toward the cost frontier but still below it: at its own cost the gap to the frontier narrows from 10.1 to 5.6 points, and DeepSeek V4.1 Flash stays cheaper and higher. The frontier and the other models are the leaderboard's; Beam-1.0 + playbook is not a leaderboard entry, and its playbook was written after seeing Beam-1.0's failures on these same windows.</small>
It changed how Beam ran the desk: 95.2% of its 765 answered `optimize` calls asked for
`spread`, against 9.3% of 268 before, and its last accepted offer came
6.3 hours before a window's end on average (6.0 median), against 23.5
(30.0). A window cost $0.44 against $0.31 at Together AI's list price, the
card's basis; metered at the Hugging Face router's price, $2.94 against $1.97.
**Read it with this caveat.** The playbook was written after seeing Beam's failures on these same windows. The run
shows that the diagnosed fixes carry over to Beam's own play; it is not performance on unseen windows, and Beam +
playbook is not a leaderboard entry. The [pre-registration](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/a4be130/docs/prereg/v4-bench.md#beam-10-with-the-desk-playbook-exploratory-added-after-the-bench) gives the design, the
[run record](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/a4be130/docs/prereg/v4-bench.md#deviations-and-run-record-beam-10-with-the-desk-playbook) what happened, and [the results](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/desk-v4-bench/beam-playbook/RESULTS.md) every number, beside the
[graded episodes](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/desk-v4-bench/beam-playbook).
## What's in this dataset
| Config | Rows | What it holds |
|---|---:|---|
| **`desk_v4_bench`**, the default | 480 | The v4 benchmark: each model's every window, one split per side of the training cutoffs (`pre_cutoff`, `post_cutoff`): its harness and settings, the grade (C, R, P and every reference), turns, wake-ups, desk and own-tool calls, tokens, cost, attempts and the Episode JSON's path; a window a model never finished is a row marked `missing`. |
| **`desk_leaderboard`** | 36 | Each model and reference of each version: each model's settings (`reasoning_effort`, `thinking`), C, P and R, the paired gaps to the anchor and to the real operator's bids with their CIs, cost and how it traded. |
| **`desk_runs`** | 288 | Each model's every task: its settings, its grade, every statement line, usage and its Episode JSON's path. |
| **`desk_tasks`** | 115 | Every task of each version's pilot, eval and tune packs: its dates, anonymous site card, tags and the references it was graded against. |
The desk configs have one split per version, `v2`, `v3` and `v4`, and one for the price-impact check, `v5`. Each one's folder, `results/desk-v<N>/`, holds its README, `summary.json`, `grades.jsonl.gz`, figures, raw runs (`runs/<model>/results.jsonl.gz` and the per-call logs) and every Episode JSON (`episodes/<model>/*.json.gz`); `results/desk-v4-bench/` holds the benchmark's README, `summary.json` (every number of the benchmark on this card), `grades.jsonl.gz`, figures and every scored Episode JSON; `assets/` holds the article's film, the earlier desk GIFs and this card's figures.
```python
from datasets import load_dataset
repo = "earakely-scale/GridSimEnv-AgentEnv"
bench = load_dataset(repo, "desk_v4_bench", split="post_cutoff") # the benchmark, each model's every window
board = load_dataset(repo, "desk_leaderboard", split="v4") # each model and reference, with CIs
runs = load_dataset(repo, "desk_runs", split="v4") # each model's every task
tasks = load_dataset(repo, "desk_tasks", split="v4") # every task, its site card and references
```
<details>
<summary><b>The columns of <code>desk_v4_bench</code></b>, one row per model and window</summary>
| What | Columns |
|---|---|
| The model | `model`, `name`, `family`, `model_id`, `harness`, `harness_version`, `setting`, `weights` |
| The window | `pack`, `task_id`, `split` (`pre_cutoff` or `post_cutoff`), `front`, `front_kind`, `site` (S01 to S04), `region`, `battery`, `dates` |
| Whether it finished | `status` (`scored` or `missing`), `missing_reason`, `attempts`, `retries`, `valid` |
| The grade | `capture` (C), `capture_phys`, `reward` (R), `p_usd` (P, the settled statement), `floored`, `beats_anchor` |
| The references | `p_idle`, `p_anchor` (the planner), `p_hind`, `p_hind_phys`, `p_operator_replay`, `p_operator_actual`, `capture_operator_replay` |
| How it traded | `turns`, `wakes`, `desk_calls`, `own_tool_calls`, `shell_calls`, `reminders`, `submissions`, `rejected` |
| Usage and cost | `input_tokens`, `cached_tokens`, `cache_write_tokens`, `output_tokens`, `reasoning_tokens`, `usd` (the graded attempt), `usd_all_attempts`, `cost_basis`, `wall_seconds` |
| The record | `episode`, the path of its Episode JSON in this dataset |
</details>
## Data sources and licence
| Data | Source | Licence |
|---|---|---|
| Day-ahead and real-time prices, reserve prices, system lambda and demand curves | ERCOT public reports NP4-190-CD, NP6-905-CD, NP6-788-CD, NP4-188-CD, NP6-332-CD, NP6-331-CD, NP4-212-CD and NP6-323-CD | ERCOT Website User Agreement, section 5; not relicensed |
| Load, wind and solar, ERCOT's forecasts as issued, outages | ERCOT public reports NP6-345-CD, NP4-733-CD, NP4-738-CD, NP3-565-CD, NP4-742-CD, NP4-745-CD, NP3-233-CD and NP1-346-ER | ERCOT Website User Agreement, section 5 |
| Market and operations notices | ERCOT notices | ERCOT Website User Agreement, section 5 |
| The real operator's bids, awards and output; each battery's limits, round-trip efficiency and standby loss | ERCOT 60-day disclosures NP3-966-ER, NP3-965-ER and NP3-991-EX, and ERCOT's December 2025 CDR report | ERCOT Website User Agreement, section 5; only derived values are published |
| Weather alerts | NWS watches, warnings and advisories, through the Iowa Environmental Mesonet's VTEC archive | public domain (NWS) |
| Weather in the replays | ASOS observations, from the Iowa Environmental Mesonet, Iowa State University | public domain (NWS, FAA), credited as the IEM asks |
| Temperatures that located the fronts | NOAA HRRR model runs | public domain (NOAA) |
| Solar capacity behind the modelled PV | U.S. Energy Information Administration, Form EIA-860M | public domain |
| The desk's price forecast | desk-qr-v1, fitted in the plugin on ERCOT's posted prices and forecasts | Apache-2.0 code; ERCOT's terms for the data |
| The battery sites in 3D | procedural, built in code; three.js | CC0; MIT |
| The clearing, settlement, grader and environment, and the scripts that build this dataset | `gridsim_core` and the plugin | Apache-2.0 |
The dataset carries several sets of terms, hence `license: other`; the plugin's
[data/LICENSE](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/data/LICENSE) holds the ERCOT
terms in full and [NOTICE](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/NOTICE) sets out each
source. ERCOT data is used under ERCOT's Website User Agreement, section 5, quoted from <https://www.ercot.com/help/terms>:
> 5. The information presented on this website has been compiled by or for ERCOT for general information purposes
> only. The publicly available contents of this website may be used, reproduced, and redistributed, provided that the
> contents are not modified and that you maintain all copyright and other notices contained in the contents,
> including this Agreement. Notwithstanding the foregoing, raw data provided in public portions of this website may
> be used, reproduced, and redistributed in compilations, charts, and analyses without maintaining such notices.
> ERCOT does not guarantee the accuracy of any such compilations, charts, or analyses.
The ERCOT data is not relicensed, and anyone using it is bound by ERCOT's terms. No disclosure file is in this
dataset, and no resource, node, QSE or operator name: the four batteries appear only as anonymous cards (Battery S01
to S04) by region and size. Source: ERCOT. GridSimEnv is not affiliated with or endorsed by ERCOT, NOAA, the EIA or
the Iowa Environmental Mesonet.
## Links
- **Article:** [huggingface.co/spaces/earakely-scale/GridSimEnv](https://huggingface.co/spaces/earakely-scale/GridSimEnv)
- **Playground:** [huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv](https://huggingface.co/spaces/earakely-scale/GridSimEnv-OpenEnv)
- **Replays:** [huggingface.co/spaces/earakely-scale/GridSimEnv-AgentEnv](https://huggingface.co/spaces/earakely-scale/GridSimEnv-AgentEnv)
- **Results:** [every model on every window, in the Replays Space](https://earakely-scale-gridsimenv-agentenv.static.hf.space/results.html?v=bench)
- **Code:** [github.com/earakely-scale/agentenv-gridsim-plugin](https://github.com/earakely-scale/agentenv-gridsim-plugin)
- **Pre-registration:** [docs/prereg/v4-bench.md](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/docs/prereg/v4-bench.md)
- **Training guide:** [agentenvframework.com/docs/training](https://www.agentenvframework.com/docs/training)
## More on the benchmark
<details>
<summary><b>The desk</b>: what the agent does, its eleven tools, how time moves and what a window settles</summary>
- **A real battery, ERCOT's own objects.** The agent is the battery trader at a qualified scheduling entity (QSE) for
one real ERCOT energy storage resource at its own node, from 06:00 the day before to midnight on the operating day
(three operating days in v4). It never moves a megawatt itself: it bids energy curves into the day-ahead market (DAM)
before the 10:00 close, sends real-time (RT) curves from 18:00 and keeps its Current Operating Plan (COP), all
checked against ERCOT's rules; ERCOT's clearing decides what the battery does every 5 minutes.
- **Time moves on its own.** The clock stands still while the agent works. It wakes at the market's milestones, at
each notice, outage and reserve deployment at its real minute and at reminders it sets, and sees each price,
forecast and report only once ERCOT posted it.
- **Against the real operator.** ERCOT discloses every resource's bids, awards and metered output 60 days later. Each
task replays the real operator's own bids through the same clearing and settlement, and settles its actual awards and
output the same way.
**Three versions (v2–v4) plus a price-impact check (v5).** Each version adds one kind of realism to the same desk, tools and grading. The check re-runs v3's battery-days with the desk's day-ahead offers re-clearing the market, to measure how far one battery moves the price.
| Version | What it adds | What the agent does |
|---|---|---|
| **v2, The Live Grid**<br><small>32 battery-days, results under Earlier versions</small> | energy only: the DAM and real time at a real battery's own node, with ERCOT notices, NWS alerts and the battery's outages at their real minutes | bids the DAM, offers real-time curves and files its COP, waking at milestones, notices and its own reminders |
| **v3, Sun, Storage and Reserves**<br><small>24 battery-days, results under Earlier versions</small> | ERCOT's five ancillary services in the DAM and real time, with state-of-charge duration rules, deployments and capacity-short charges; a co-located solar option (modelled) | co-optimises energy and reserves and keeps the charge to back them |
| **v4, Weather Front**<br><small>16 3-day windows, results under Earlier versions</small> | three operating days across a weather front, on ERCOT's forecasts as each was issued | bids three day-ahead markets as the forecasts move |
| **v5, The Market Floor**<br><small>a price-impact check on v3's 24 battery-days, results under Earlier versions</small> | price impact: its DAM offers re-clear the day-ahead market against the day's real offers, disclosed 60 days later | offers into a market its own bids move |
**Eleven tools, each a system a real desk uses.**
| System | Tools |
|---|---|
| ERCOT's public reports | `get_prices`: the node's DAM, 15-minute RT and 5-minute SCED prices, the hub's DAM and RT<br>`get_forecasts`: ERCOT's load, wind, solar and outage forecasts as issued, NWS alerts, and the desk's price forecast (modelled)<br>`get_grid_conditions`: reserves (PRC, a modelled proxy after RTC+B), system lambda, load, wind, solar and notices |
| Plant telemetry | `get_asset_status`: state of charge, limits, recent base points and outages |
| The desk's book | `get_position`: DAM awards, RT position, the COP and the statement settled so far |
| ERCOT's market submission system | `submit_dam_offers`, `submit_rt_offers` and `update_cop`, and `check_submission`, a dry run that returns ERCOT-style validation codes; from v3, ancillary-service offers ride in the same submissions |
| The desk's analytics | `optimize`, a co-optimiser on the agent's own price view that proposes curves and a COP and never submits; `set_reminder` |
**How time works.** The clock is AgentEnv's virtual clock, frozen while the agent works; there is no `advance` tool.
After each turn a post-turn hook takes the earlier of the desk's next wake-up and the gateway's next time trigger,
moves the clock there, and the environment runs the market forward to that minute: the DAM clears at the node's real
day-ahead price (in the v5 price-impact check, at a price re-cleared against the day's real offers with the desk's
own), every 5-minute dispatch run clears the curve in force at the node's real price within the battery's limits and
state of charge, and each 15-minute interval settles. A 5-minute price becomes visible one minute after its interval,
a 15-minute price two minutes after, each forecast vintage as issued and each notice at its minute.
**What P sums.** The statement's lines: DAM energy, RT imbalance at the node's 15-minute price, set-point deviation
charges, from v3 ancillary-service capacity and imbalance, and the modelled lines. The hindsight optimum may hold
DAM/RT spread positions; its variant with the DAM position tied to dispatch is reported beside it.
</details>
<details>
<summary><b>How the benchmark ran</b>: harnesses, settings, cost and reliability</summary>
- **Each model in its own agent harness,** through AgentEnv: GPT-6.1 Sol and GPT-6 Luna in Codex CLI 0.147.0 with OpenAI's catalog entries for the GPT-6 models; DeepSeek V4.1 Flash, Qwen3.5-9B + desk SFT, GLM-5.3, Kimi K3, GLM-5.3-Flash, Qwen3.8 Max, Qwen3.5-9B, Beam-1.0 and Qwen3-4B in OpenCode 1.17.18; Gemini 4 Argon in Gemini CLI 0.38.2; GPT-6.1 Terra in Codex CLI 0.147.0 with OpenAI's catalog entries for the GPT-6 models and one for Terra copied from Sol's; Claude Opus 5.5 and Claude Haiku 5.5 in Claude Code 2.1.280. Served by Fireworks: DeepSeek V4.1 Flash, Z.ai's GLM-5.3, Moonshot AI's Kimi K3, Z.ai's GLM-5.3-Flash, Qwen3.8 Max and Qwen3.5-9B; by vLLM 0.29.0 on EC2 GPU boxes (g7e.8xlarge): Qwen3.5-9B + desk SFT; by Baseten through the Hugging Face router: Reflection's Beam-1.0; by vLLM 0.29.0 on EC2 GPU boxes (g5.2xlarge, g5.xlarge): Qwen3-4B.
- **Settings:** effort high for GPT-6.1 Sol, DeepSeek V4.1 Flash, GLM-5.3, GPT-6.1 Terra, Kimi K3, GLM-5.3-Flash, Claude Opus 5.5, Qwen3.8 Max, GPT-6 Luna, Claude Haiku 5.5 and Beam-1.0; thinking on for Qwen3.5-9B + desk SFT, Qwen3.5-9B and Qwen3-4B; thinking high for Gemini 4 Argon.
- **No internet.** Each run's Docker network is closed to the internet by a host rule, and the model is reached only through a proxy on the host that allows one API and one model per run and refuses provider-side web, code-execution and remote-MCP tools; the agents hold only a placeholder key, which the proxy replaces. Web search and fetch are also off in each harness's own settings; checked from inside the agent containers before the runs.
- **The desk's 11 tools over MCP,** beside the harness's own shell, files and planning tools; v4's budget of 100 turns, 14 desk calls a turn and 12 reminders. One run per model per window.
- **Reproducible with `agent-env run`:** every episode is a plain run of the bench bundle (`desk-v4-bench-run1`) and a config.toml, on agentenv-framework 0.9.1377 (Claude Opus 5.5, GPT-6.1 Sol and GPT-6 Luna), 0.9.1378 (Qwen3-4B), 0.9.1383 (Gemini 4 Argon) and 0.9.1396 (Beam-1.0, GLM-5.3, Kimi K3, Qwen3.8 Max, Qwen3.5-9B, Qwen3.5-9B + desk SFT, Claude Haiku 5.5, GLM-5.3-Flash, DeepSeek V4.1 Flash and GPT-6.1 Terra); these ran on EC2 boxes with local Docker rather than in the Modal sandboxes the bundle was designed for, a deviation logged with the others. Run it yourself, below, shows how. Pre-registered in [docs/prereg/v4-bench.md](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/desk-v4-bench-run1/docs/prereg/v4-bench.md).
- **Cost a window** runs from $0.15 (GLM-5.3-Flash) to $6.69 (Gemini 4 Argon): the graded attempt's tokens in its harness's own trajectory at the model maker's list price; the table above also gives every attempt's. Qwen3.5-9B + desk SFT's cost is GPU time: 4.00 box-hours on EC2 GPU boxes (g7e.8xlarge at $4.5013/h, the EC2 spot price paid, us-east-1), each run's share of its box's time while it ran. Qwen3-4B's cost is GPU time: 4.64 box-hours on EC2 GPU boxes (g5.xlarge at $1.006/h, g5.2xlarge at $1.212/h, EC2 on-demand, us-west-2), each run's share of its box's time while it ran. Interrupted attempts are costed from the proxy meter, because their last turn never reaches the trajectory; a meter that ran at another price than the one used here is scaled by the two prices' ratio on the attempt's trajectory tokens. Qwen3.5-9B: no maker price; at the metered Fireworks rate, $0.20 per 1M tokens, cached reads included. Beam-1.0: Reflection publishes no price; at Together AI's list price including its $0.04 cached-read rate.
- **Valid submissions.** Qwen3-4B made no valid submission on 7 of its 32 windows (R = 0 there).
- **Reliability:** 621 attempts for 480 model-windows; 145 did not reach the grade (infrastructure ×141, episode spend cap, final ×4). Infrastructure failures were retried; attempts that failed before any model call (a port race in our launcher, $0), Gemini 4 Argon's ended by a transient provider 400 from 18:06 UTC and Beam-1.0's ended by the router's HTTP 402 when its account ran out of credits didn't count toward the two-retry limit (see Deviations). Windows not scored and not imputed: Kimi K3, episode spend cap, final ×4.
- **Run notes.** DeepSeek V4.1 Flash ran through Fireworks, on agentenv-framework 0.9.1396; OpenCode's 32,768-token output limit ended 2 of its attempts, retried as infrastructure. Qwen3.5-9B + desk SFT ran on agentenv-framework 0.9.1396; served by our own vLLM 0.29.0 on g7e.8xlarge boxes, unlike base Qwen3.5-9B's Fireworks deployment, with a 262,144-token context and a 20-step cap a turn; the desk-distill pre-registration's secondary comparison, whose primary test, 18 held-out windows, it did not pass (+3.8 points [−3.4, +10.6] over base); OpenCode's output limit ended 1 of its attempts, retried as infrastructure. Gemini 4 Argon ran on agentenv-framework 0.9.1383. GLM-5.3 ran through Fireworks, on agentenv-framework 0.9.1396; OpenCode's 32,000-token output limit ended 11 of its attempts, retried as infrastructure. GPT-6.1 Terra ran on agentenv-framework 0.9.1396; the provider's token rate limit ended 6 of its attempts, retried as infrastructure. Kimi K3 ran through Fireworks, on agentenv-framework 0.9.1396; 4 of its windows stopped at the pre-registered $20 window cap and are unscored, so it is scored on 28 of the 32. GLM-5.3-Flash ran through Fireworks, on agentenv-framework 0.9.1396. Qwen3.8 Max ran through Fireworks, on agentenv-framework 0.9.1396; OpenCode's 32,000-token output limit ended 3 of its attempts, retried as infrastructure. Claude Haiku 5.5 ran on agentenv-framework 0.9.1396. Qwen3.5-9B ran through Fireworks, on agentenv-framework 0.9.1396; a Fireworks dedicated deployment, its 262,143-token maximum context and a 20-step cap a turn (Qwen3-4B's harness had 32,768 tokens and no step cap); OpenCode's 8,192-token output limit ended 4 of its attempts, retried as infrastructure. Beam-1.0 ran through the Hugging Face router, on agentenv-framework 0.9.1396; its account ran out of credits mid-run, and the four attempts the router's HTTP 402 ended were retried as infrastructure.
- Every number is in [`results/desk-v4-bench`](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/desk-v4-bench) (its README, `summary.json`, `grades.jsonl.gz` and every scored Episode JSON) and in the `desk_v4_bench` config.
</details>
<details>
<summary><b>Methods</b>: pre-registration, references and uncertainty</summary>
- **Pre-registered, then frozen.** The three versions (v2–v4) plus a price-impact check (v5) each had a
pre-registration committed before the first scored episode
([v2](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/docs/prereg/v2-desk.md),
[v3](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/docs/prereg/v3-desk.md),
[v4](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/docs/prereg/v4-desk.md),
[v5](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/main/docs/prereg/v5-desk.md)): the pack, the
models and their settings, the references, what is reported and the prior. The code is frozen at a tag before any
scored run (`desk-v2-freeze`, `desk-v3-freeze`, `desk-v4-freeze` and `desk-v5-freeze`). Nothing is rerun to improve
a score, and anything done differently is logged as a deviation in the pre-registration.
- **Reviewed and piloted.** A review of the environment before v2's runs found two information-timing leaks, fixed
before any scored episode. Each version is then piloted on one or two tasks before its eval; the pilots are
mechanics checks, not results.
- **The benchmark** plays v4's desk, frozen at `desk-v4-freeze`, on 32 windows (v4's 16 and 16 from July and August
2026, after every reported training cutoff) with each model in its own agent harness, under a pre-registration of its
own. `scripts/desk_bench_results.py` scores a model's first attempt on a window that reached the grade, counts every
attempt in the cost, and never imputes a window a model did not finish.
- **Which half of the benchmark leads.** The pre-registered rule that the post-cutoff half leads if the halves differ guards against training-data contamination, so, as read before any API-model result, only a model whose reported training cutoff comes after the first pre-cutoff window (GPT-6.1 Sol, Gemini 4 Argon, GPT-6.1 Terra, Claude Opus 5.5, GPT-6 Luna, Claude Haiku 5.5 and Beam-1.0) can trigger it, when its post − pre interval in C excludes zero; DeepSeek V4.1 Flash, Qwen3.5-9B + desk SFT, GLM-5.3, Kimi K3, GLM-5.3-Flash, Qwen3.8 Max and Qwen3.5-9B, with no reported cutoff, can trigger it too. No model the rule covers has a post − pre interval that excludes zero, so all 32 windows lead, by a rule set before any API result.
- **Every grade replayed.** `scripts/desk_report.py` re-grades every Episode JSON against frozen references, and each
version's `summary.json` records the references used and every difference from the runner's own grade.
- **References on every task,** settled by the same clearing, physics and settlement code: idle; the planner (the
anchor), the desk's own optimiser re-planning at every wake on the same information, its risk setting and DAM basis
chosen blind on a separate tuning pack (`desk-v2-tune`); the hindsight optimum, and its variant with the DAM position
tied to dispatch; the real operator's disclosed bids, replayed, and its actual awards and metered output, settled.
- **Uncertainty.** 95% CIs come from a block bootstrap over operating days (in v4, over the four weather fronts; in
the benchmark, over its eight, four within each side of the cutoffs): 10,000 resamples, seed 0, task-weighted.
Paired gaps resample the tasks both sides played.
</details>
<details>
<summary><b>Known limitations</b></summary>
- **The env's control endpoints are not authenticated** in this framework release, and an agent's shell can reach the env through its tunnel; no pilot showed an attempt to use them, and the runs are not audited for it.
- **Model plus harness.** Each harness's own prompts, tools and context handling are part of what is measured; the harness versions are the ones the framework release pins. Gemini CLI drops a thought signature when it resumes a session, which costs it prompt-cache hits and raises its cost, a known harness issue.
- **The training cutoffs are third-party reports, unconfirmed.** None is reported for GLM-5.3, GLM-5.3-Flash, Kimi K3, Qwen3.8 Max, DeepSeek V4.1 Flash, Qwen3.5-9B and Qwen3.5-9B + desk SFT, reportedly released 2 Mar–10 Sep 2026, so no front certainly post-dates all seven. The pre-cutoff half reuses v4's 16 windows, which GPT-6.1 Sol, GPT-6 Luna and Qwen3-4B also played on the desk's own runner (below).
- **One run per model per window over eight fronts,** so the CIs are wide, and a single scarcity front can carry a model's dollars.
- **Cost is the model maker's list price:** tokens at each maker's public price per million, without batch or volume discounts; a maker's higher rate for a long prompt applies call by call, Claude Haiku 5.5's above 100K tokens to 1,101 of its calls; Qwen3.5-9B + desk SFT and Qwen3-4B's cost is its share of the GPU time. Beam-1.0: Reflection publishes no price; at Together AI's list price including its $0.04 cached-read rate. Qwen3.5-9B: no maker price; at the metered Fireworks rate, $0.20 per 1M tokens, cached reads included.
- **Qwen3.5-9B and Qwen3.5-9B + desk SFT are served differently:** Qwen3.5-9B by Fireworks, Qwen3.5-9B + desk SFT by our own vLLM 0.29.0 on EC2 GPU boxes (g7e.8xlarge), so numerics, the tool-call parser and sampling can differ between them.
- **Qwen3.5-9B + desk SFT's training data and these windows.** Its training windows read D-7 to D2 of their dates, and only the 2026-05-08 front's operating days (05-08 to 05-10, its four windows) fall inside any of those spans, as the DAM and MCPC price history of the 16 training windows that start 2026-05-14 to 05-17. The training transcripts never name those days, and on those four windows its C is within 1.7 points of the planner's. The training pack, `data/desk/desk-v4-win`, is on the plugin's `desk-distill` branch at 13d53f9 and can be rebuilt with `scripts/desk_data_build.py` ([the check](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/desk-v4-bench-results-7/docs/prereg/desk-distill.md#after-the-results)).
- **A known env defect, K1, in the benchmark too.** An empty reserve-offer list drew a spurious ASO-02 note while the energy curves in the same call were accepted and applied; there is no settlement effect. It is fixed on the head; the frozen runs keep it, and the benchmark plays v4's freeze.
- **DAM credit screening is not modelled.** ERCOT screens a QSE's day-ahead bids and offers against its available credit; here, day-ahead positions are bounded only by the battery's MW limits. That favours large DAM/RT spread positions, and the days where those paid carry most of v2's and v4's dollars.
- **K1 in v3 to v5 too.** The earlier versions' reserve figures leave the calls with the spurious ASO-02 note out of the refused offers.
- **Modelled lines.** The co-located solar profile, degradation, warranty overage, the end-of-day energy charge and the capacity-short charge are modelled and marked as such; so is the desk's own price forecast, built only from data public at the time.
- **One battery is a price taker.** In v2 to v4 and the benchmark the desk clears at the real prices; the v5 price-impact check re-clears the DAM with the desk's own offers and shows that a 100–150 MW battery moves the day-ahead price by cents.
- **Small packs in v2 to v5.** 16 to 32 tasks per version over four to eight blocks, so the CIs are wide; the v5 check repeats v3's battery-days, and the gaps between the two runs are the scale of that noise.
- **Next:** a fleet desk, a QSE bidding a portfolio of batteries into the DAM at once, where price impact can matter; and more runs per task, to separate skill from run-to-run noise.
</details>
<details>
<summary><b>Deviations from the pre-registration</b>, one line each</summary>
- Route C: the episodes ran on EC2 boxes with local Docker rather than in Modal sandboxes; the internet was closed by a host rule and a per-run model proxy instead of Modal's network policy (the pre-registration gives the reasons).
- agentenv-framework 0.9.1377 on the box that ran Claude Opus 5.5, GPT-6.1 Sol and GPT-6 Luna, and 0.9.1378 on the Qwen3-4B boxes; the agent images are identical by digest.
- Infrastructure retries (GPT-6.1 Sol 39, DeepSeek V4.1 Flash 2, Qwen3.5-9B + desk SFT 1, Gemini 4 Argon 20, GLM-5.3 12, GPT-6.1 Terra 6, Kimi K3 1, GLM-5.3-Flash 0, Claude Opus 5.5 27, Qwen3.8 Max 3, GPT-6 Luna 22, Claude Haiku 5.5 0, Qwen3.5-9B 4, Beam-1.0 4, Qwen3-4B 0): every attempt is kept and its spend counted.
- Retry rule, decided mid-run before the affected windows' results: an attempt that failed at env deploy for $0 because of our launcher's port race does not count toward the at-most-two-retries limit.
- Stalls: Codex's 300 s inactivity watchdog at effort high stopped 4 GPT-6.1 Sol and 3 GPT-6 Luna attempts; they count as infrastructure and were retried, and their spend is included in the cost.
- Cost basis: cost a window is the graded attempt's; the table also gives each model's total spend, retries and stalls included.
- Gemini 4 Argon: first deferred for cost, it ran on 2026-10-29 from 16:41 to 19:45 UTC, after the others, by route C on its own box, on agentenv-framework 0.9.1383, whose Gemini harness no longer names its system-prompt file anew each turn (before, every turn start missed the prompt cache).
- Provider HTTP 400s: 19 of Gemini 4 Argon's 1,488 wake starts (1.28%) drew HTTP 400 INVALID_ARGUMENT, all on a wake's first request from turn 12 on and more often at larger prompts; the identical request succeeded on replay, so they are transient and infrastructure under the pre-registered rule, and were retried.
- Caps: Gemini 4 Argon's per-episode cap rose from $15 to $30 after one attempt stopped at $15.02, which was retried as infrastructure, and its model cap from $300 to $330.
- Selection, descriptive: Gemini 4 Argon's attempts that failed on a 400 ended at turn 21.4 on average, at a 172k-token prompt, against 32.3 turns and a 207k-token largest prompt for its graded attempts; its windows graded on the first try average C 17.0%, those graded after a retry 22.7%.
- Prompt cache: 61% of Gemini 4 Argon's wake starts hit the cache fully and 32% only its first ~15k tokens, because Gemini CLI drops a thought signature when it resumes a session, a known harness issue.
- Beam-1.0: added after the others for Reflection's Build with Beam contest and run after them, from 23:17 UTC on 2026-10-30 to 02:30 UTC on 2026-10-31, through the Hugging Face router to Baseten, in OpenCode 1.17.18 at effort high on agentenv-framework 0.9.1396, by route C on the Gemini box; its reported training cutoff, 2026-06-30, puts the post-cutoff windows after it.
- Out of credits: the Hugging Face account ran out of prepaid credits at 01:55 UTC on 2026-10-31, after 29 of Beam-1.0's windows had been graded.
- Rate limits: of Beam-1.0's 4,457 requests through the proxy, 1,376 (30.9%) drew HTTP 429 and 617 (13.8%) HTTP 503; OpenCode retried both, and neither ended an attempt.
- GLM-5.3, Kimi K3 and Qwen3.8 Max: added after the others to compare with Beam-1.0, by a selection rule stated before any result (the pre-registration's item 28), and run after them, from 07:17 to 16:24 UTC on 2026-10-31, served by Fireworks at its list prices per million input / cached input / output tokens (GLM-5.3 $1.40 / $0.26 / $4.40, Kimi K3 $3.00 / $0.30 / $15.00, Qwen3.8 Max $2.00 / $0.25 / $6.00), in OpenCode 1.17.18 at effort high like Beam-1.0, on agentenv-framework 0.9.1396, by route C on Beam-1.0's box; none of the three reports a training cutoff.
- Output limit, decided during the runs: from 07:39 UTC on 2026-10-31 an OpenCode call that ends at its 32,000-token output limit with no content or tool call, which makes the harness exit, counts as infrastructure toward the two-retry limit.
- Window cap: Kimi K3's 2026-03-16 S04, 2026-05-08 S04, 2026-07-23 S04 and 2026-08-26 S01 stopped at the pre-registered $20 window cap after 34 to 60 turns and 396 to 449 model calls, as it polled the desk tools over a long cached context; they are final and unscored, never imputed, so Kimi K3's C is over its other 28 windows.
- Budget and errors: GLM-5.3, Kimi K3 and Qwen3.8 Max shared one budget, raised from $390 to $480 during a pause in admissions from 08:56 to 14:07 UTC in which nothing was retried or rerun; the proxy metered $437.45, smokes and network checks included.
- Cost basis, decided after every run (2026-11-01): a model's cost is its tokens at its maker's list price, which every price here already was but Beam-1.0's.
- Qwen3.5-9B: added after the others (the pre-registration's items 40 to 46) and run from 23:55 UTC on 2026-10-31 to 01:20 UTC on 2026-11-01 through a Fireworks dedicated deployment, in OpenCode 1.17.18 with thinking on, by route C.
- Qwen3.5-9B + desk SFT: added after the others as the secondary comparison of the desk-distill pre-registration (docs/prereg/desk-distill.md); on that pre-registration's primary test, 18 held-out windows, it missed the bar (+3.8 points [−3.4, +10.6] over base).
- Both Qwen3.5-9B harnesses differ from Qwen3-4B's: a 262k-token context (262,144 for the SFT, 262,143 for base, the Fireworks deployment's maximum) where Qwen3-4B's had 32,768, and a cap of 20 OpenCode steps a turn where it had none; the output limit is 8,192 tokens for all three.
- Training data and these windows: the SFT's training windows read D-7 to D2 of their dates, and only the 2026-05-08 front's operating days (05-08 to 05-10, its four windows) fall inside any of those spans, as the DAM and MCPC price history of the 16 training windows that start 2026-05-14 to 05-17.
- Claude Haiku 5.5, GLM-5.3-Flash and DeepSeek V4.1 Flash: added after the others at Edgar's request, for more models between $0.2 and $0.5 a window, by the pre-registration's items 52 to 55, committed before their first scored call, and run at once on 2026-11-01 from 16:02 to 17:16 UTC by route C on agentenv-framework 0.9.1396: Claude Haiku 5.5 in Claude Code 2.1.280 as Claude Opus 5.5's row, GLM-5.3-Flash and DeepSeek V4.1 Flash served by Fireworks in OpenCode 1.17.18 as GLM-5.3's row.
- GPT-6.1 Terra: added beside the three small models at Edgar's request, by the pre-registration's item 56, committed before its first scored call, and run on 2026-11-01 from 16:16 to 19:01 UTC by route C on agentenv-framework 0.9.1396, served through Azure in Codex CLI 0.147.0 as GPT-6.1 Sol and GPT-6 Luna, with an entry for Terra copied from Sol's in OpenAI's Codex catalog.
The pre-registration gives each in full: [docs/prereg/v4-bench.md#deviations](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/desk-v4-bench-results-7/docs/prereg/v4-bench.md#deviations).
</details>
<details>
<summary><b>Earlier versions</b>: v2 to v4 on the desk's own runner, and the v5 price-impact check</summary>
**How much of the hindsight optimum each desk captured, version by version**
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-across-phone.svg"><img class="dark:hidden" src="assets/figures/desk-across.svg" width="660" alt="Line chart of hindsight capture C, as a percentage of the hindsight optimum&#x27;s profit over idle, across the three versions (v2 The Live Grid, 32 battery-days; v3 Sun, Storage and Reserves, 24 battery-days; v4 Weather Front, 16 three-day windows over 4 fronts): GPT-6.1 Sol · effort high 19.9%, 10.0%, 34.6%; GPT-6 Luna · effort high 13.3%, 6.9%, 11.5%; Qwen3-4B (untrained) · thinking off 0.5%, −1.3%, −0.7%; the real operator&#x27;s bids, replayed, 10.1%, 6.7%, 8.4%. In v4, GPT-6.1 Sol − GPT-6 Luna, paired by three-day window: +23.1 points [9.0, 48.0]. Each value&#x27;s 95% CI is in the table below."></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-across-phone-dark.svg"><img class="hidden dark:block" src="assets/figures/desk-across-dark.svg" width="660" alt="Line chart of hindsight capture C, as a percentage of the hindsight optimum&#x27;s profit over idle, across the three versions (v2 The Live Grid, 32 battery-days; v3 Sun, Storage and Reserves, 24 battery-days; v4 Weather Front, 16 three-day windows over 4 fronts): GPT-6.1 Sol · effort high 19.9%, 10.0%, 34.6%; GPT-6 Luna · effort high 13.3%, 6.9%, 11.5%; Qwen3-4B (untrained) · thinking off 0.5%, −1.3%, −0.7%; the real operator&#x27;s bids, replayed, 10.1%, 6.7%, 8.4%. In v4, GPT-6.1 Sol − GPT-6 Luna, paired by three-day window: +23.1 points [9.0, 48.0]. Each value&#x27;s 95% CI is in the table below."></picture>
<small>C × 100: the share of the hindsight optimum's profit over idle that each desk captured; the table below gives each value with its 95% CI (a block bootstrap over operating days; in v4, over its 4 fronts). Grey dashed: the real operator's own bids, replayed through the same clearing and settlement. The callout in v4 is GPT-6.1 Sol's lead over GPT-6 Luna in points, paired by three-day window, with its 95% CI; v4 is the only version where that CI excludes zero. v5 is not on the chart: it re-runs v3's battery-days as a price-impact check, in its own section below.</small>
| Desk | v2 | v3 | v4 |
|---|---:|---:|---:|
| **GPT-6.1 Sol**<br><small>effort high</small> | 0.199<br><small>[0.033, 0.433]</small> | 0.100<br><small>[−0.054, 0.266]</small> | 0.346<br><small>[0.179, 0.592]</small> |
| **GPT-6 Luna**<br><small>effort high</small> | 0.133<br><small>[0.097, 0.171]</small> | 0.069<br><small>[0.028, 0.126]</small> | 0.115<br><small>[0.073, 0.167]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off</small> | 0.005<br><small>[−0.035, 0.044]</small> | −0.013<br><small>[−0.044, 0.013]</small> | −0.007<br><small>[−0.021, 0.001]</small> |
Paired by task, GPT-6.1 Sol and GPT-6 Luna are within noise on single days (v2, v3) and Sol is clearly ahead on 3-day weather fronts (v4: +23.1 pts of hindsight capture, 95% CI [9.0, 48.0]). The untrained Qwen3-4B has the lowest capture throughout.
<details>
<summary><b>v4, Weather Front</b>: the results</summary>
### v4, Weather Front: results
16 windows of 3 operating days: 4 real batteries (Far West 100 MW / 104 MWh, Houston 100 MW / 206 MWh, North 120 MW / 187 MWh, South 150 MW / 185 MWh) across 4 fronts from 23 January 2026 to 10 May 2026, each old enough for ERCOT to have disclosed the operators' bids. Each model plays each one once under pre-registered settings.
| Desk | C, hindsight capture | P, $ a 3-day window |
|---|---:|---:|
| **GPT-6.1 Sol**<br><small>effort high · $3.21 a run</small> | **0.346**<br><small>[0.179, 0.592]</small> | ⁠$275.3k<br><small>[⁠$20.0k, ⁠$770.3k]</small> |
| **GPT-6 Luna**<br><small>effort high · $0.54 a run</small> | **0.115**<br><small>[0.073, 0.167]</small> | ⁠$51.7k<br><small>[⁠$8.0k, ⁠$127.3k]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off · open weights</small> | **−0.007**<br><small>[−0.021, 0.001]</small> | −⁠$168<br><small>[−⁠$1.6k, ⁠$1.2k]</small> |
| *Anchor* | *0.250* | *⁠$253.8k* |
| *The operator's bids, replayed* | *0.084* | *⁠$36.3k* |
| *The operator, as settled* | *0.080* | *⁠$27.6k* |
| *Hindsight, DAM tied to dispatch* | *0.449* | *⁠$211.3k* |
| *Hindsight optimum* | *1.000* | *⁠$443.7k* |
| *Idle* | *0.000* | *⁠$261* |
| Paired, $ a 3-day window | P − the operator's bids | P − anchor |
|---|---:|---:|
| **GPT-6.1 Sol**<br><small>effort high</small> | +⁠$238.9k<br><small>[+⁠$13.2k, +⁠$686.1k]</small> | +⁠$21.5k<br><small>[+⁠$2.6k, +⁠$40.4k]</small> |
| **GPT-6 Luna**<br><small>effort high</small> | +⁠$15.4k<br><small>[+⁠$969, +⁠$42.3k]</small> | −⁠$202.0k<br><small>[−⁠$614.5k, +⁠$17.8k]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off</small> | −⁠$36.5k<br><small>[−⁠$84.2k, −⁠$7.1k]</small> | −⁠$253.9k<br><small>[−⁠$740.5k, −⁠$2.9k]</small> |
<small>The anchor is the desk's own optimiser, re-planning at every wake on the same information. The operator rows are the real operator's own bids on each 3-day window, disclosed by ERCOT 60 days later and replayed through the same clearing and settlement, and its actual awards and metered output settled the same way. Hindsight knows every price in advance. Brackets: front-block bootstrap 95% CIs over 4 fronts.</small>
<small>Known env defect, frozen for v4 and fixed after it: an empty `as_offers` list drew a spurious ASO-02 note while the energy curves in the same call were accepted, so the reserve figures leave those calls out of the refused offers. Logged deviation from the pre-registration: the Qwen3-4B task lists were set wrong, so its four winter storm Fern windows ran late as a fill-in on the same frozen code and four other windows ran twice; the runs on the planned host are scored, under a rule set before any duplicate was read.</small>
**How much of the hindsight optimum each desk captured, front by front, v4**
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-v4-days-phone.svg"><img class="dark:hidden" src="assets/figures/desk-v4-days.svg" width="600" alt="Line chart of hindsight capture C front by front, each point the mean of the 4 sites&#x27; three-day windows, as a percentage of the hindsight optimum&#x27;s profit over idle, on a scale of −20% to 100% shared by all three versions, over 4 fronts (23–25 Jan, 16–18 Mar, 17–19 Apr, 8–10 May 2026): GPT-6.1 Sol · effort high 72.2%, 30.6%, 15.6%, 20.1%; GPT-6 Luna · effort high 11.9%, 19.5%, 8.2%, 6.5%; Qwen3-4B (untrained) · thinking off 0.0%, −0.2%, 0.1%, −2.8%; the real operator&#x27;s bids, replayed, 8.5%, 16.8%, 7.5%, 0.9%. Shaded: winter storm Fern, 23–25 Jan."></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-v4-days-phone-dark.svg"><img class="hidden dark:block" src="assets/figures/desk-v4-days-dark.svg" width="600" alt="Line chart of hindsight capture C front by front, each point the mean of the 4 sites&#x27; three-day windows, as a percentage of the hindsight optimum&#x27;s profit over idle, on a scale of −20% to 100% shared by all three versions, over 4 fronts (23–25 Jan, 16–18 Mar, 17–19 Apr, 8–10 May 2026): GPT-6.1 Sol · effort high 72.2%, 30.6%, 15.6%, 20.1%; GPT-6 Luna · effort high 11.9%, 19.5%, 8.2%, 6.5%; Qwen3-4B (untrained) · thinking off 0.0%, −0.2%, 0.1%, −2.8%; the real operator&#x27;s bids, replayed, 8.5%, 16.8%, 7.5%, 0.9%. Shaded: winter storm Fern, 23–25 Jan."></picture>
<small>Each point is the mean C of the 4 three-day windows of that front, one per site; grey dashed, the real operator's own bids, replayed. All three versions share one scale, −20% to 100%. Shaded: winter storm Fern, 23 to 25 January 2026. The South window of the 17 to 19 April 2026 front ran 3 to 5 April 2026.</small>
- **GPT-6.1 Sol captures the most of hindsight:** C 0.346 [0.179, 0.592], ⁠$275,261 a 3-day window, against 0.115 for GPT-6 Luna and −0.007 for Qwen3-4B (untrained). Paired by 3-day window, its lead in C: GPT-6 Luna +0.231 [+0.090, +0.480]; Qwen3-4B (untrained) +0.354 [+0.193, +0.599].
- **Against the real operator:** its own bids, replayed through the same clearing and settlement, earn ⁠$36,338 a 3-day window; paired, GPT-6.1 Sol +⁠$238,923 [+⁠$13,192, +⁠$686,143]; GPT-6 Luna +⁠$15,387 [+⁠$969, +⁠$42,284]; Qwen3-4B (untrained) −⁠$36,506 [−⁠$84,233, −⁠$7,055]. Ahead with a CI above zero: GPT-6.1 Sol and GPT-6 Luna. Behind with a CI below zero: Qwen3-4B (untrained).
- **One front carries the means.** Mean P a 3-day window on the front of 23 to 25 January 2026 (winter storm Fern): GPT-6.1 Sol ⁠$1,019,998, GPT-6 Luna ⁠$166,425, Qwen3-4B (untrained) ⁠$1,577, the anchor ⁠$982,822, the operator's bids ⁠$110,644, the operator as settled ⁠$77,031. GPT-6.1 Sol, GPT-6 Luna, the anchor, the operator's bids and the operator as settled made more than half of their total P there; GPT-6.1 Sol and GPT-6 Luna from day-ahead sales bought back in real time: positions the DAM allows because it ignores state of charge, and which ERCOT's DAM credit screening, not modelled here, would limit. Without it (12 3-day windows): GPT-6.1 Sol ⁠$27,016; GPT-6 Luna ⁠$13,492; Qwen3-4B (untrained) −⁠$749, against the anchor ⁠$10,743 and the operator's bids ⁠$11,569. Over every 3-day window, the medians are GPT-6.1 Sol ⁠$33,042; GPT-6 Luna ⁠$15,984; Qwen3-4B (untrained) ⁠$71; the operator's bids ⁠$12,106. P below zero: GPT-6.1 Sol 1 of 16 (worst −⁠$1,303); GPT-6 Luna 0 of 16; Qwen3-4B (untrained) 3 of 16 (worst −⁠$5,518). A post-hoc check, not pre-registered.
- **Reserves.** GPT-6.1 Sol: AS awards in 15 of 16 3-day windows, +⁠$11,541 a 3-day window from the AS lines, AS offers refused 28 times (ASO-02 ×26, the shape check; ASO-06 ×2, after the market window closed); GPT-6 Luna: AS awards in 8 of 16 3-day windows, +⁠$335 a 3-day window from the AS lines, AS offers refused 39 times (ASO-02, the shape check); Qwen3-4B (untrained): AS awards in 13 of 16 3-day windows, +⁠$1,359 a 3-day window from the AS lines, AS offers refused 62 times (ASO-06 ×49, after the market window closed; ASO-01 ×10, a product the battery may not offer; ASO-02 ×3, the shape check).
- **Three day-ahead markets.** Accepted DAM submissions a window for each operating day, D0/D1/D2: GPT-6.1 Sol 1.38/1.25/1.38; GPT-6 Luna 1.31/1.56/1.62; Qwen3-4B (untrained) 0.12/0.31/0.12. A mean above one means a desk rebid some of those markets as forecasts moved.
- **The anchor,** the desk's own optimiser on the same information, free to take DAM/RT spread positions, captures C 0.250 (⁠$253,763 a 3-day window); paired against it, a 3-day window: GPT-6.1 Sol +⁠$21,498 [+⁠$2,618, +⁠$40,379]; GPT-6 Luna −⁠$202,038 [−⁠$614,500, +⁠$17,772]; Qwen3-4B (untrained) −⁠$253,931 [−⁠$740,476, −⁠$2,888].
- **A 3-day window's inference** costs GPT-6.1 Sol $3.21 and GPT-6 Luna $0.54 at list prices; Qwen3-4B (untrained) runs on one GPU.
[v4's results page](https://earakely-scale-gridsimenv-agentenv.static.hf.space/results.html?v=v4) in the Replays Space lists every 3-day window with a replay of each model's run.
Every number is in [`results/desk-v4`](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/desk-v4) (its README, `summary.json`, `grades.jsonl.gz`, every Episode JSON and run log) and in the `desk_leaderboard` and `desk_runs` configs, split `v4`; the code is the [`desk-v4-results`](https://github.com/earakely-scale/agentenv-gridsim-plugin/tree/desk-v4-results/results/desk-v4) tag of the plugin.
</details>
<details>
<summary><b>v3, Sun, Storage and Reserves</b>: the results</summary>
### v3, Sun, Storage and Reserves: results
24 battery-days: 4 real batteries (Far West 100 MW / 104 MWh, Houston 100 MW / 206 MWh, North 120 MW / 187 MWh, South 150 MW / 185 MWh) on 6 operating days from 11 April 2026 to 22 August 2026, each old enough for ERCOT to have disclosed the operators' bids. Each model plays each one once under pre-registered settings.
| Desk | C, hindsight capture | P, $ a battery-day |
|---|---:|---:|
| **GPT-6.1 Sol**<br><small>effort high · $1.74 a run</small> | **0.100**<br><small>[−0.054, 0.266]</small> | ⁠$10.5k<br><small>[−⁠$3.6k, ⁠$25.8k]</small> |
| **GPT-6 Luna**<br><small>effort high · $0.15 a run</small> | **0.069**<br><small>[0.028, 0.126]</small> | ⁠$11.1k<br><small>[⁠$6.2k, ⁠$17.5k]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off · open weights</small> | **−0.013**<br><small>[−0.044, 0.013]</small> | ⁠$6.0k<br><small>[⁠$1.8k, ⁠$10.7k]</small> |
| *Anchor* | *0.026* | *⁠$11.9k* |
| *The operator's bids, replayed* | *0.067* | *⁠$17.4k* |
| *The operator, as settled* | *0.034* | *⁠$15.0k* |
| *Hindsight, DAM tied to dispatch* | *0.441* | *⁠$60.4k* |
| *Hindsight optimum* | *1.000* | *⁠$126.9k* |
| *Idle* | *0.000* | *⁠$6.3k* |
| Paired, $ a battery-day | P − the operator's bids | P − anchor |
|---|---:|---:|
| **GPT-6.1 Sol**<br><small>effort high</small> | −⁠$6.9k<br><small>[−⁠$29.5k, +⁠$10.0k]</small> | −⁠$1.4k<br><small>[−⁠$19.6k, +⁠$12.2k]</small> |
| **GPT-6 Luna**<br><small>effort high</small> | −⁠$6.3k<br><small>[−⁠$24.5k, +⁠$4.4k]</small> | −⁠$848<br><small>[−⁠$14.3k, +⁠$8.4k]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off</small> | −⁠$11.4k<br><small>[−⁠$26.5k, −⁠$1.2k]</small> | −⁠$5.9k<br><small>[−⁠$16.2k, +⁠$1.8k]</small> |
<small>The anchor is the desk's own optimiser, re-planning at every wake on the same information. The operator rows are the real operator's own bids on each battery-day, disclosed by ERCOT 60 days later and replayed through the same clearing and settlement, and its actual awards and metered output settled the same way. Hindsight knows every price in advance. Idle, the battery offering nothing, still earns: through ERCOT's proxy AS offers and the co-located solar (modelled). Brackets: day-block bootstrap 95% CIs over 6 days.</small>
<small>Known env defect, frozen for v3 and fixed after it: an empty `as_offers` list drew a spurious ASO-02 note while the energy curves in the same call were accepted, so the reserve figures leave those calls out of the refused offers.</small>
**How much of the hindsight optimum each desk captured, day by day, v3**
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-v3-days-phone.svg"><img class="dark:hidden" src="assets/figures/desk-v3-days.svg" width="600" alt="Line chart of hindsight capture C day by day, each point the mean of the 4 sites&#x27; battery-days, as a percentage of the hindsight optimum&#x27;s profit over idle, on a scale of −20% to 100% shared by all three versions, over 6 days (11 Apr, 24 Apr, 26 May, 6 Jun, 21 Jul, 22 Aug 2026): GPT-6.1 Sol · effort high −15.3%, −2.6%, 21.1%, −4.7%, 41.7%, 20.1%; GPT-6 Luna · effort high 6.1%, −0.1%, 4.5%, 4.8%, 20.0%, 6.2%; Qwen3-4B (untrained) · thinking off −4.1%, 0.0%, −7.8%, 1.4%, 2.3%, 0.7%; the real operator&#x27;s bids, replayed, 4.9%, 15.1%, −4.3%, −1.6%, 20.4%, 5.7%."></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-v3-days-phone-dark.svg"><img class="hidden dark:block" src="assets/figures/desk-v3-days-dark.svg" width="600" alt="Line chart of hindsight capture C day by day, each point the mean of the 4 sites&#x27; battery-days, as a percentage of the hindsight optimum&#x27;s profit over idle, on a scale of −20% to 100% shared by all three versions, over 6 days (11 Apr, 24 Apr, 26 May, 6 Jun, 21 Jul, 22 Aug 2026): GPT-6.1 Sol · effort high −15.3%, −2.6%, 21.1%, −4.7%, 41.7%, 20.1%; GPT-6 Luna · effort high 6.1%, −0.1%, 4.5%, 4.8%, 20.0%, 6.2%; Qwen3-4B (untrained) · thinking off −4.1%, 0.0%, −7.8%, 1.4%, 2.3%, 0.7%; the real operator&#x27;s bids, replayed, 4.9%, 15.1%, −4.3%, −1.6%, 20.4%, 5.7%."></picture>
<small>Each point is the mean C of the 4 battery-days that day, one per site; grey dashed, the real operator's own bids, replayed. All three versions share one scale, −20% to 100%.</small>
- **GPT-6.1 Sol captures the most of hindsight:** C 0.100 [−0.054, 0.266], ⁠$10,513 a battery-day, against 0.069 for GPT-6 Luna and −0.013 for Qwen3-4B (untrained). Paired by battery-day, its lead in C: GPT-6 Luna +0.032 [−0.099, +0.147], a CI that includes zero; Qwen3-4B (untrained) +0.113 [−0.035, +0.267], a CI that includes zero.
- **Against the real operator:** its own bids, replayed through the same clearing and settlement, earn ⁠$17,434 a battery-day; paired, GPT-6.1 Sol −⁠$6,921 [−⁠$29,498, +⁠$9,953]; GPT-6 Luna −⁠$6,346 [−⁠$24,451, +⁠$4,446]; Qwen3-4B (untrained) −⁠$11,437 [−⁠$26,455, −⁠$1,158]. No model is ahead with a CI above zero. Behind with a CI below zero: Qwen3-4B (untrained).
- **One day carries the means.** Mean P a battery-day on 21 July 2026: GPT-6.1 Sol ⁠$41,142, GPT-6 Luna ⁠$25,749, Qwen3-4B (untrained) ⁠$15,552, the anchor ⁠$21,416, the operator's bids ⁠$27,293, the operator as settled ⁠$14,477. GPT-6.1 Sol made more than half of its total P that day, from day-ahead sales bought back in real time: positions the DAM allows because it ignores state of charge, and which ERCOT's DAM credit screening, not modelled here, would limit. Without it (20 battery-days): GPT-6.1 Sol ⁠$4,387; GPT-6 Luna ⁠$8,156; Qwen3-4B (untrained) ⁠$4,086, against the anchor ⁠$10,040 and the operator's bids ⁠$15,462. Over every battery-day, the medians are GPT-6.1 Sol ⁠$11,902; GPT-6 Luna ⁠$8,786; Qwen3-4B (untrained) ⁠$3,135; the operator's bids ⁠$11,103. P below zero: GPT-6.1 Sol 7 of 24 (worst −⁠$44,564); GPT-6 Luna 3 of 24 (worst −⁠$34,051); Qwen3-4B (untrained) 4 of 24 (worst −⁠$7,120). A post-hoc check, not pre-registered.
- **Reserves.** GPT-6.1 Sol: AS awards in 24 of 24 battery-days, +⁠$3,417 a battery-day from the AS lines, AS offers refused 24 times (ASO-02, the shape check); GPT-6 Luna: AS awards in 6 of 24 battery-days, +⁠$21 a battery-day from the AS lines, AS offers refused 111 times (ASO-02, the shape check); Qwen3-4B (untrained): AS awards in 17 of 24 battery-days, +⁠$1,521 a battery-day from the AS lines, AS offers refused 19 times (ASO-06 ×15, after the market window closed; ASO-02 ×4, the shape check).
- **The anchor,** the desk's own optimiser on the same information, free to take DAM/RT spread positions, captures C 0.026 (⁠$11,936 a battery-day); paired against it, a battery-day: GPT-6.1 Sol −⁠$1,423 [−⁠$19,580, +⁠$12,202]; GPT-6 Luna −⁠$848 [−⁠$14,307, +⁠$8,396]; Qwen3-4B (untrained) −⁠$5,940 [−⁠$16,202, +⁠$1,849].
- **A battery-day's inference** costs GPT-6.1 Sol $1.74 and GPT-6 Luna $0.15 at list prices; Qwen3-4B (untrained) runs on one GPU.
[v3's results page](https://earakely-scale-gridsimenv-agentenv.static.hf.space/results.html?v=v3) in the Replays Space lists every battery-day with a replay of each model's run.
Every number is in [`results/desk-v3`](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/desk-v3) (its README, `summary.json`, `grades.jsonl.gz`, every Episode JSON and run log) and in the `desk_leaderboard` and `desk_runs` configs, split `v3`; the code is the [`desk-v3-results`](https://github.com/earakely-scale/agentenv-gridsim-plugin/tree/desk-v3-results/results/desk-v3) tag of the plugin.
</details>
<details>
<summary><b>v2, The Live Grid</b>: the results</summary>
### v2, The Live Grid: results
32 battery-days: 4 real batteries (Far West 100 MW / 104 MWh, Houston 100 MW / 206 MWh, North 120 MW / 187 MWh, South 150 MW / 185 MWh) on 8 operating days from 25 January 2026 to 23 August 2026, each old enough for ERCOT to have disclosed the operators' bids. Each model plays each one once under pre-registered settings.
| Desk | C, hindsight capture | P, $ a battery-day |
|---|---:|---:|
| **GPT-6.1 Sol**<br><small>effort high · $0.96 a run</small> | **0.199**<br><small>[0.033, 0.433]</small> | ⁠$110.1k<br><small>[−⁠$10.9k, ⁠$337.9k]</small> |
| **GPT-6 Luna**<br><small>effort high · $0.19 a run</small> | **0.133**<br><small>[0.097, 0.171]</small> | ⁠$35.4k<br><small>[⁠$7.5k, ⁠$79.3k]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off · open weights</small> | **0.005**<br><small>[−0.035, 0.044]</small> | ⁠$568<br><small>[−⁠$6.0k, ⁠$8.5k]</small> |
| *Anchor* | *0.191* | *⁠$118.4k* |
| *The operator's bids, replayed* | *0.101* | *⁠$13.8k* |
| *The operator, as settled* | *0.063* | *⁠$11.0k* |
| *Hindsight, DAM tied to dispatch* | *0.312* | *⁠$63.4k* |
| *Hindsight optimum* | *1.000* | *⁠$226.9k* |
| Paired, $ a battery-day | P − the operator's bids | P − anchor |
|---|---:|---:|
| **GPT-6.1 Sol**<br><small>effort high</small> | +⁠$96.3k<br><small>[−⁠$32.9k, +⁠$331.5k]</small> | −⁠$8.4k<br><small>[−⁠$34.2k, +⁠$15.5k]</small> |
| **GPT-6 Luna**<br><small>effort high</small> | +⁠$21.6k<br><small>[−⁠$4.5k, +⁠$68.3k]</small> | −⁠$83.1k<br><small>[−⁠$254.6k, +⁠$10.3k]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off</small> | −⁠$13.2k<br><small>[−⁠$27.5k, +⁠$2.0k]</small> | −⁠$117.9k<br><small>[−⁠$323.4k, −⁠$6.4k]</small> |
<small>The anchor is the desk's own optimiser, re-planning at every wake on the same information. The operator rows are the real operator's own bids on each battery-day, disclosed by ERCOT 60 days later and replayed through the same clearing and settlement, and its actual awards and metered output settled the same way. Hindsight knows every price in advance. Brackets: day-block bootstrap 95% CIs over 8 days.</small>
**How much of the hindsight optimum each desk captured, day by day, v2**
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-v2-days-phone.svg"><img class="dark:hidden" src="assets/figures/desk-v2-days.svg" width="600" alt="Line chart of hindsight capture C day by day, each point the mean of the 4 sites&#x27; battery-days, as a percentage of the hindsight optimum&#x27;s profit over idle, on a scale of −20% to 100% shared by all three versions, over 8 days (25 Jan, 24 Feb, 23 Mar, 24 Apr, 3 May, 24 Jun, 22 Jul, 23 Aug 2026): GPT-6.1 Sol · effort high 93.4%, 13.8%, −3.0%, −7.5%, 31.2%, 10.1%, 12.2%, 8.8%; GPT-6 Luna · effort high 18.6%, 6.1%, 5.7%, 19.2%, 11.8%, 12.5%, 21.2%, 11.4%; Qwen3-4B (untrained) · thinking off 3.5%, −4.5%, −0.2%, −1.1%, 8.9%, 1.7%, 6.1%, −10.5%; the real operator&#x27;s bids, replayed, −0.3%, 5.8%, 8.5%, 13.5%, 10.5%, 3.9%, 23.4%, 15.7%. Shaded: winter storm Fern, 25 Jan."></picture>
<picture><source media="(max-width: 480px)" srcset="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/resolve/main/assets/figures/desk-v2-days-phone-dark.svg"><img class="hidden dark:block" src="assets/figures/desk-v2-days-dark.svg" width="600" alt="Line chart of hindsight capture C day by day, each point the mean of the 4 sites&#x27; battery-days, as a percentage of the hindsight optimum&#x27;s profit over idle, on a scale of −20% to 100% shared by all three versions, over 8 days (25 Jan, 24 Feb, 23 Mar, 24 Apr, 3 May, 24 Jun, 22 Jul, 23 Aug 2026): GPT-6.1 Sol · effort high 93.4%, 13.8%, −3.0%, −7.5%, 31.2%, 10.1%, 12.2%, 8.8%; GPT-6 Luna · effort high 18.6%, 6.1%, 5.7%, 19.2%, 11.8%, 12.5%, 21.2%, 11.4%; Qwen3-4B (untrained) · thinking off 3.5%, −4.5%, −0.2%, −1.1%, 8.9%, 1.7%, 6.1%, −10.5%; the real operator&#x27;s bids, replayed, −0.3%, 5.8%, 8.5%, 13.5%, 10.5%, 3.9%, 23.4%, 15.7%. Shaded: winter storm Fern, 25 Jan."></picture>
<small>Each point is the mean C of the 4 battery-days that day, one per site; grey dashed, the real operator's own bids, replayed. All three versions share one scale, −20% to 100%. Shaded: winter storm Fern, 25 January 2026.</small>
- **GPT-6.1 Sol captures the most of hindsight:** C 0.199 [0.033, 0.433], ⁠$110,055 a battery-day, against 0.133 for GPT-6 Luna and 0.005 for Qwen3-4B (untrained). Paired by battery-day, its lead in C: GPT-6 Luna +0.066 [−0.101, +0.290], a CI that includes zero; Qwen3-4B (untrained) +0.194 [+0.039, +0.416].
- **Against the real operator:** its own bids, replayed through the same clearing and settlement, earn ⁠$13,764 a battery-day; paired, GPT-6.1 Sol +⁠$96,290 [−⁠$32,861, +⁠$331,471]; GPT-6 Luna +⁠$21,600 [−⁠$4,480, +⁠$68,346]; Qwen3-4B (untrained) −⁠$13,196 [−⁠$27,547, +⁠$1,959]. No model is ahead with a CI above zero.
- **One day carries the means.** Mean P a battery-day on 25 January 2026, when the node's day-ahead price ran far above real time: GPT-6.1 Sol ⁠$895,817, GPT-6 Luna ⁠$178,396, Qwen3-4B (untrained) ⁠$23,957, the anchor ⁠$849,377, the operator's bids −⁠$2,677, the operator as settled −⁠$10,983. GPT-6.1 Sol, GPT-6 Luna, Qwen3-4B (untrained) and the anchor made more than half of their total P that day; GPT-6.1 Sol, GPT-6 Luna and the anchor from day-ahead sales bought back in real time: positions the DAM allows because it ignores state of charge, and which ERCOT's DAM credit screening, not modelled here, would limit. Without it (28 battery-days): GPT-6.1 Sol −⁠$2,197 [−⁠$14,171, ⁠$7,536]; GPT-6 Luna ⁠$14,931 [⁠$5,306, ⁠$27,542]; Qwen3-4B (untrained) −⁠$2,773 [−⁠$7,639, ⁠$1,499], against the anchor ⁠$14,003 and the operator's bids ⁠$16,113. Over every battery-day, the medians are GPT-6.1 Sol ⁠$8,539; GPT-6 Luna ⁠$7,453; Qwen3-4B (untrained) ⁠$233; the operator's bids ⁠$3,526. P below zero: GPT-6.1 Sol 8 of 32 (worst −⁠$134,864); GPT-6 Luna 2 of 32 (worst −⁠$10,738); Qwen3-4B (untrained) 13 of 32 (worst −⁠$68,293). A post-hoc check, not pre-registered.
- **The anchor,** the desk's own optimiser on the same information, captures C 0.191 (⁠$118,425 a battery-day), partly from DAM/RT spread positions that pay off on scarcity days; paired against it, a battery-day: GPT-6.1 Sol −⁠$8,370 [−⁠$34,166, +⁠$15,500]; GPT-6 Luna −⁠$83,060 [−⁠$254,596, +⁠$10,265]; Qwen3-4B (untrained) −⁠$117,856 [−⁠$323,418, −⁠$6,383].
- **A battery-day's inference** costs GPT-6.1 Sol $0.96 and GPT-6 Luna $0.19 at list prices; Qwen3-4B (untrained) runs on one GPU.
[v2's results page](https://earakely-scale-gridsimenv-agentenv.static.hf.space/results.html?v=v2) in the Replays Space lists every battery-day with a replay of each model's run.
Every number is in [`results/desk-v2`](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/desk-v2) (its README, `summary.json`, `grades.jsonl.gz`, every Episode JSON and run log) and in the `desk_leaderboard` and `desk_runs` configs, split `v2`; the code is the [`desk-v2-results`](https://github.com/earakely-scale/agentenv-gridsim-plugin/tree/desk-v2-results/results/desk-v2) tag of the plugin.
</details>
<details>
<summary><b>v5, The Market Floor</b>: a price-impact check on v3</summary>
### v5 · The Market Floor: a price-impact check
v5 re-runs v3's 24 battery-days with each desk's day-ahead curves re-cleared against the day's real offer stack, as ERCOT disclosed it 60 days later. One 100–150 MW battery moves the price by cents: GPT-6.1 Sol's offers moved it by −16.9¢/MWh on its sales, at most $1.35/MWh, about −⁠$110 in revenue a battery-day. Paired by battery-day, every v5 − v3 difference in C, P and R has a 95% CI that includes zero: v5 reproduces v3. The next step that would make price impact matter is a fleet desk: a QSE trading a portfolio of batteries.
| Desk | C in v5 | v5 − v3 in C | v5 − v3 in P, $ a battery-day |
|---|---:|---:|---:|
| **GPT-6 Luna**<br><small>effort high</small> | 0.088<br><small>[0.045, 0.145]</small> | +0.020<br><small>[−0.011, +0.059]</small> | +⁠$5.9k<br><small>[−⁠$1.4k, +⁠$18.1k]</small> |
| **GPT-6.1 Sol**<br><small>effort high</small> | 0.081<br><small>[−0.058, 0.235]</small> | −0.020<br><small>[−0.070, +0.024]</small> | −⁠$2.0k<br><small>[−⁠$6.0k, +⁠$1.6k]</small> |
| **Qwen3-4B (untrained)**<br><small>thinking off</small> | −0.004<br><small>[−0.021, 0.009]</small> | +0.009<br><small>[−0.023, +0.042]</small> | +⁠$459<br><small>[−⁠$2.4k, +⁠$3.4k]</small> |
<small>v5 − v3: each model's v5 run minus its v3 run on the same battery-day, averaged. Brackets: day-block bootstrap 95% CIs over 6 days.</small>
Every number is in [`results/desk-v5`](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/desk-v5) and in the `desk_leaderboard` and `desk_runs` configs, split `v5`; the code is the [`desk-v5-results`](https://github.com/earakely-scale/agentenv-gridsim-plugin/tree/desk-v5-results/results/desk-v5) tag of the plugin.
</details>
- **Models and settings.** One sampled run per model per task, with the same system prompt, the same 11 tools and the same turn budget.
- **GPT-6.1 Sol · effort high** and **GPT-6 Luna · effort high** (`openai/gpt-6.1-sol`, `openai/gpt-6-luna`): reasoning effort high, through the Responses API.
- **Qwen3-4B (untrained) · thinking off** (`Qwen/Qwen3-4B`): thinking off, temperature 0.7, top_p 0.8; served by vLLM 0.29 in bf16 with a 32,768-token context and the hermes tool parser; prompts compacted to about 24k tokens, with up to 4,096 output tokens a call.
</details>
<details>
<summary><b>Run it yourself</b>: the desk in process, and a benchmark window with <code>agent-env run</code></summary>
In process, with no Docker and no model key, play the desk's planner on v2's two pilot battery-days:
```bash
git clone https://github.com/earakely-scale/agentenv-gridsim-plugin
cd agentenv-gridsim-plugin && uv sync --extra dev
uv run python scripts/desk_run.py --pack desk-v2-pilot --policy anchor --out runs/anchor
```
Each run writes every task's Episode JSON and a results row with its grade. `--policy model --model NAME --base-url URL`
plays any model behind an OpenAI-compatible endpoint the same way, with its key in `DESK_API_KEY`, and every version's
packs are under `data/desk/`. On AgentEnv, after `agent-env gridsim setup`, `scripts/desk_e2e.py` plays a task through
the gateway env, its post-turn hook and its verifier, and checks it against the in-process run byte for byte.
The benchmark's runs are each a plain `agent-env run` of a bundle that `scripts/desk_bench.py`
writes for one harness (`codex-sol`, `opencode-dsflash`, `opencode-qwen35-long`, `gemini`, `opencode-glm`, `codex-terra`, `opencode-kimi`, `opencode-glmflash`, `claude-code`, `opencode-qwenmax`, `codex-luna`, `claude-code-haiku`, `opencode-qwen9b`, `opencode-beam` or `opencode-qwen`), with a `.agentenv/config.toml` that names the model endpoint and its key. By
default the bundle's network allowlist holds only the harness vendor's API host, for a sandbox provider that enforces
it, such as Modal, which the bundle was built for. Our runs took route C instead: local Docker on EC2 boxes, with a
host egress rule and a per-run model proxy ([deviations](https://github.com/earakely-scale/agentenv-gridsim-plugin/blob/desk-v4-bench-results-7/docs/prereg/v4-bench.md#deviations)):
```bash
uv run python scripts/desk_bench.py tasks --harness codex-luna --pack desk-v4-bench --out bundles/bench-codex-luna
uv run agent-env run bundles/bench-codex-luna --task desk-v4-2026-07-04-S01
```
</details>
## Citation
```bibtex
@misc{gridsimenvdesk2026,
title = {{GridSimEnv} Desk: trade a real {ERCOT} battery from the day-ahead
market through real time, an {AgentEnv} environment},
author = {Arakelyan, Edgar},
year = {2026},
url = {https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv},
note = {Desk versions v2 to v4, a price-impact check (v5) and the v4
benchmark of models in native agent harnesses. Code:
\url{https://github.com/earakely-scale/agentenv-gridsim-plugin}}
}
```
---
GridSimEnv v1 (one-shot day-ahead schedule, training results) is archived at revision [6ae10fcc](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/6ae10fcc7fea8037716a0ea7f4ef761786a34f87).