Measure Before You Train argued that an agent's decisions should be measured against ground truth, under a protocol fixed in advance, before anyone trains or replaces the model behind them. We carry the method to a second, very different domain, a turn-based strategy game, and ask a deliberately modest question: how well do low-cost agents play under a pre-registered protocol? hexfolk is a minimal two-player 4X game written for this purpose, so no model has seen its rules or positions. A deterministic engine, one agent interface, a referee that never corrects an illegal or late move, and per-decision logs make every game replayable; questions and expected answers were committed before the games, on held-out seeds with mirrored seats and 95% Wilson intervals. Two small open language models (8B and 3B) lose every game to a few-line rule player. Answering in free text they are invalid on 98% of their decisions; constrained to legal moves they never play an invalid one, yet they lose to the uniformly random player (the 8B model wins 10.0 [4.3, 21.4]% of games), refuting our expectation that they would beat it; the result survives a control that shuffles the order of the options. Two native decision models never play an invalid move and both beat random; one loses all 50 games to the rule player, the other is not distinguishable from it in 50 games and beats a one-step search. The paid agents make tens to over a hundred model calls per game; against the same opponents a free 60 ms-per-move search, which makes none, outplays every paid model by the full range of the scale. Two 7-8B models served locally behave the same way. No frontier model is included.
Figures & tables
#
Question
Expectation (written in advance)
Status
Q1
Typed vs. free agent, same model?
Typed better than free, both models.
Confirmed for both (41–5–4, 38–10–2).
Q2
Does a language model beat rule ?
No: rule better or not distinguishable, all 4 agents.
Confirmed : rule better than all 4 (50–0 each).
Q3
Does a language model beat random ?
Typed: better. Free: not distinguishable.
Refuted , both parts: random is better than all 4 agents.
Q4
Invalid moves per agent?
References 0; typed < 1%; free 10–50%.
References and typed: confirmed (0). Free: not confirmed , 98%.
Q5
8B vs. 3B model?
8B at least as high, not distinguishable.
Confirmed (both near zero).
Q6
Ranking of reference players?
greedy-normal > rule > lookahead > random , each step distinguishable.
Confirmed (Table 2 ).
Table 1: Pre-registered questions, expectations and status. Batches 1–5 and 7 are final (batch 4: run 2). Batch 6 (Q10–Q16) is reduced: the typed local agents have 50 games against random and rule ; the free local agents and the games against search have only 12 (indicative): Q14 and those parts of Q10 and Q13 are in Appendix D .
Table 2: Head to head on the test seeds, both seats. In paid batches the paid agent is A (in batch 3, the typed agent). A/B wins in % with 95% Wilson intervals; D = draws; verdict by non-overlapping intervals. Batch 5 ( search , the ceiling) is listed first. Batch 6 lists its 50-game pairings; its 12-game pairings are in Appendix D . Batch 7 is the option-order control (Section 4 ).
Figure 1: Quality against model calls: win rate against random (left) and rule (right), 95% Wilson intervals, against model calls per game (decisions that reached the model; forced moves played without a call are excluded). Reference players and search make no model call (0). Blue: free players ( search , the ceiling, at the top). Green: small language models. Orange: decision models. Magenta: local agents (batch 6); hollow and dotted: 12-game pairings (indicative).
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Version
Committed
Commit
Related code commits
v1
19 Nov 2026, 08:43
e2379b7
harness ec33e37
v2
19 Nov 2026, 09:10
8753b19
–
v2.1
19 Nov 2026, 10:56
6e89ee8
f44cad3 , 483e79c , b523556 , ece32ad
v3
19 Nov 2026, 12:23
953787a
search : 2b321bf
v4
20 Nov 2026, 10:45
15ef8b3
local agents: 28723aa
v4.1
20 Nov 2026, 11:16
5a24573
–
Appendix
Table 3: Protocol versions and their commits in the public repository ( https://github.com/federicolucca/hexfolk , main ). Dates and times are the commit times (UTC+1), verified on main (tip 9968404 , tag bench-v1 ); the history after the run-1 fix was rewritten before release to remove the per-game results, keeping the dates.
Agent
Games
Decisions
Bad % [95% CI]
Err.
T/O
ms/dec.
Calls/game
Tok. in/game
search
800
96,448
0.00 [0.00, 0.00]
0
0
60.7
0
–
greedy-normal
600
63,547
0.00 [0.00, 0.01]
0
0
0.2
0
–
rule
600
55,740
0.00 [0.00, 0.01]
0
0
0.1
0
–
lookahead
600
57,373
0.00 [0.00, 0.01]
0
0
2.6
0
–
random
600
43,908
0.00 [0.00, 0.01]
0
0
0.1
0
–
llama8b-typed
150
7,964
0.00 [0.00, 0.05]
0
1
544.8
53.1
70k
Appendix
Table 4: Per agent, reference players and hosted models: decisions, bad decisions (malformed + illegal, % of decisions; optimistic interval), API errors, timeouts, mean ms per decision (forced moves included), model calls per game (decisions that reached the model; forced moves played without a call are excluded; 0 for players that use no model) and input tokens per game. search : batch 5; other references: batch 1; language models: batches 2–3; decision models: batch 4 run 2. Local models: Table 5 .
Agent
Games
Decisions
Bad % [95% CI]
Err.
T/O
ms/dec.
Calls/game
Tok. in/game
localllama8b-typed
112
8,285
0.00 [0.00, 0.05]
0
0
1,589.8
74.0
95k
localqwen7b-typed
112
9,565
0.00 [0.00, 0.04]
0
0
1,432.3
85.4
113k
localllama8b-free
24
720
100.0 [99.5, 100.0]
0
0
1,414.6
30.0
38k
localqwen7b-free
24
731
98.5 [97.3, 99.2]
0
0
2,298.4
30.5
39k
localllama8b-typed s
50
3,794
0.00 [0.00, 0.10]
0
0
1,259.3
75.9
102k
localqwen7b-typed s
50
3,213
0.00 [0.00, 0.12]
0
0
1,149.9
64.3
89k
Appendix
Table 5: Per agent, local models (columns as in Table 4 ): batch 6 (typed agents: 112 games; free agents: 24, indicative) and batch 7 ( s : shuffled option order, 50 games each).
gemini-decision
nimble-decision
Model calls answered
11,367
20,337
Forced moves (no call)
88
1,367
API errors
0
0
Timeouts ( > 60 s)
4
2
tooManyOptions
0
0
Median ms per call
367
348
Appendix
Table 6: Decision agents in the logs of batch 4 run 2. Calls exclude forced moves. Mean p per game: the average probability the model gave to its chosen action, averaged within a game, by the game’s outcome for the decision agent.
Figure 2: Win rates with 95% Wilson intervals, both seats pooled. Left: search against each reference (batch 5), then each other reference player against each other one (batch 1). Right: each model agent against its opponents (batch 2 green, batch 3 violet, batch 4 orange, batch 6 magenta; hollow with dotted intervals: 12-game pairings, indicative).
A
B
n
A wins % [95% CI]
B wins % [95% CI]
D
Verdict
localllama8b-typed
random
50
4.0 [1.1, 13.5]
60.0 [46.2, 72.4]
18
random better
localllama8b-typed
rule
50
0.0 [0.0, 7.1]
100.0 [92.9, 100.0]
0
rule better
localllama8b-typed
search
12 †
0.0 [0.0, 24.2]
100.0 [75.8, 100.0]
0
search better
localqwen7b-typed
random
50
30.0 [19.1, 43.8]
40.0 [27.6, 53.8]
15
n.d.
localqwen7b-typed
rule
50
0.0 [0.0, 7.1]
100.0 [92.9, 100.0]
0
rule better
localqwen7b-typed
search
12 †
0.0 [0.0, 24.2]
100.0 [75.8, 100.0]
0
search better
Appendix
Table 7: Batch 6: local agents (Ollama, one RTX 2080 Ti, no paid call), both seats. Typed agents against random and rule : seeds 100001–100025, 50 games. † 12 games (seeds 100001–100006, about ± 25 points): indicative only. Code: protocol v4.1, commit 5a24573 .
Agent
Dec./game
end_turn
move
train
attack
other
Unspent ⋆ mean / median
llama8b-typed
53
52%
28%
3%
1%
15%
25.7
20
ministral3b-typed
38
71%
11%
3%
3%
12%
36.7
32
llama8b-free
30
98%
0%
0%
0%
2%
33.1
33
ministral3b-free
31
98%
1%
1%
0%
1%
34.0
33
gemini-decision
76
36%
33%
8%
9%
14%
35.9
20
nimble-decision
145
17%
39%
11%
14%
20%
22.3
1
Appendix
Table 8: Exploratory (not pre-registered): what the paid agents do with their decisions, from 800 batch-2/3/4 logs replayed through the engine (0 replays disagree with the logged result). Decisions per game; share of applied actions (an invalid decision is applied as end_turn ; “other” is research, harvest, capture, roads and walls); stars held when the agent ends its turn, mean and median. The last two rows are the opponents’ seats in the typed agents’ batch-2 games.
Agent
Dec.
Median n
end_turn
First shown
Last shown
Uniform
Non-end: first / last 10%
llama8b-typed
7,963
12
51.7%
53.2%
51.7%
21.2%
87% / 7%
ministral3b-typed
5,737
15
70.8%
3.1%
70.8%
9.9%
15% / 33%
localllama8b-typed
8,285
8
32.5%
72.5%
32.5%
29.5%
80% / 3%
localqwen7b-typed
9,565
9
28.7%
40.8%
28.7%
26.0%
35% / 6%
vs. random only
3,919
10
38.3%
66.2%
38.3%
27.1%
80% / 4%
vs. random only
5,470
9
27.3%
42.5%
27.3%
24.6%
38% / 5%
Appendix
Table 9: Exploratory: position of the chosen option, over all valid decisions that reached the model (forced decision-agent moves excluded), rebuilt by replaying the logs (every reply index maps to the applied action). In engine order end_turn is always the last option; rows marked s (batch 7, shuffled order) count positions as shown. Uniform: mean of 1/n . Non-end: among choices other than end_turn , the share in the first and last tenth of the remaining list. Typed: hosted batches 2–3, local batch 6 (all opponents, and vs. random only), batch 7 shuffled; decision agents: batch 4 run 2; random : the control.
n = 2–10
n = 11–30
n>30
Agent
First
Last
Unif.
First
Last
Unif.
First
Last
Unif.
llama8b-typed
85
9
20
27
66
7
–
–
–
ministral3b-typed
6
47
16
0
74
7
–
–
–
localllama8b-typed
81
10
20
49
27
7
–
–
–
localqwen7b-typed
42
27
19
16
3
7
12
5
3
vs. random only
81
11
19
42
38
7
–
–
–
Appendix
Table 10: Exploratory: share of decisions (%) choosing the first option (index 0) and the last option (index n−1 , always end_turn ) by list length n , against a uniform choice (mean of 1/n ). Cells with fewer than 30 decisions are omitted.
Agent
Games
Actions per turn
end_turn share
llama8b-typed (hosted)
150
0.93
51.7%
ministral3b-typed (hosted)
150
0.41
70.8%
random vs. hosted typed
100
2.80
26.3%
localllama8b-typed vs. random
50
1.61
38.3%
localqwen7b-typed vs. random
50
2.67
27.3%
random vs. local typed
100
2.83
26.1%
Appendix
Table 11: Actions per turn (applied actions other than end_turn , per end_turn ) and the resulting end_turn share, from the replayed logs. Each turn ends with exactly one end_turn (1,500 per 50 games when a game runs its 30 rounds).
Agent evaluations report task success and rarely say what an agent did at each decision. We score every decision node of three 12B to 14B instruct-tuned language models (LMs) playing five zero-sum imperfect-information games against four opponents on eight properties from decision and game theory, five of them against a CFR+ equilibrium reference. At each node, the LM also states a belief about the opponent's hidden state in a separate call. Without memory and at temperature 0, stated beliefs sit 0.250 to 0.288 in total variation distance from the equilibrium posterior, and where the action responds to the state its agreement with that belief exceeds chance by -0.04 to 0.19. The two calls frame the opponent differently, so the result is a behavioural inconsistency and makes no claim about internal beliefs. Under one prompt and greedy decoding, the LM's action never varies with the state in 10 of the 38 cells where the reference varies its own. Memory lowers the constant-action share in 9 of 13 testable ladders at temperature 0; at temperature 0.2 the cells at 1 fall from 16 to 5 of the 46 informative cells, while the belief results hold. A gate withholds, with a stated reason, any belief score the run cannot support, and seven of the eight non-zero defect rates are attributable to the instrument, a representation, or the LMs.
Michael Kingston, Sonit Singh, Alan Blair
School of Computer Science and Engineering UNSW Sydney
Decision-time search in perfect and imperfect information games with enumerable belief states are effective methods for game AI. Collectible card games are imperfect information games with large belief states. Legends of Code and Magic is a collectible card game competition where the belief states are 2101. The Legends of Code and Magic (LoCM) champion, ByteRL, plays with no search. Other works claim sound enumeration-based search is unusable in the genre due to the number of belief states. We measured three previously defined properties that predict where theoretically unsound perfect information Monte Carlo's defects are cheap and found LoCM sits in the favorable region. Starting with imitation learning of the runner-up policy, NeteaseOPD, we created a policy and value feed-forward network. Our agent searches over worlds sampled from a prior over the opponent's deck built from the runner-up's drafts. Using our strictest configuration in the battle phase we beat ByteRL with a win percentage of 51.35% 95% CI [50.37, 52.33], over 10,000 pre-registered games using the LoCM official referee and time limit. Search is not a minor factor on the matchup between our agent and ByteRL. Without search this agent scores 26.8% and adding search adds +24.6 points. Unsound search in imperfect information games could be exploitable. We replicate a published best-response attack against ByteRL. We then apply the same attack protocol to two search configurations of our agent, and each one resists it better than ByteRL at every iteration. In LoCM unsound search gives us a stronger and more resilient agent.
Dustin Rubin
Georgia Institute of Technology Atlanta, Georgia, USA
Coding agents can modify and test code across large software projects. Game development is a domain where agents must implement gameplay rules. A game can end in a valid state even after violating its rules during the run. Current game-development benchmarks replay fixed examples, score videos, or ask another model to judge the result. However, no existing benchmark checks game rules throughout execution across varied evaluator-selected scenarios while ensuring exactly reproducible verdicts. We introduce GameLogicBench, a benchmark of 72 gameplay-logic tasks in Godot projects. An automated evaluator checks each game's rules at every simulation tick. Across 403 hand-designed scenarios, seeded parameter variations produce 1,451 test cases. To ensure that the evaluator measures behavior rather than implementation choice, it must accept different correct implementations for each task while rejecting mutants, implementations with one required capability removed. The tasks span isolated mechanics, multi-system interactions, and repository-scale features. Across 20 combinations of language models and scaffolds, the best observed run solves 52.78% of tasks. Under Claude Code, all twelve models solve fewer tasks as task scope expands from isolated mechanics, through interacting systems, to repository-scale features. Agents inspect code more often and make more tool calls on repository-scale tasks than on isolated-mechanic tasks. Most unsuccessful submissions are runnable, but implement some required game behavior incorrectly. We compared versions of our benchmark evaluator built with and without validation using mutants. Without this validation, incorrect agent submissions passed. A separate analysis finds agents copying code from public repositories when network access is open. Reliable evaluation thus depends both on what the tests reject and on what external code agents can access.