Paper Reading Notes · arXiv:2609.38137

LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning

It treats the LM harness itself as the object under test: four information-dense tasks whose retrieval demands shift with each reasoning step, scored on accuracy and cost at once. The conclusions are blunt — the best configuration reaches only 68%, the same accuracy can cost 12.4× more, and "more inference" is neither necessary nor sufficient.
Authors: Quang Hieu Pham, Thuy Duong Nguyen, Jocelyn Qiaochu Chen, Xi Ye (University of Alberta / Amii) Paper: arXiv:2609.38137 Project page: stringnlplab.github.io/longharness
LM Harness Long-Context Evaluation Accuracy–Cost Trade-off Adaptive Retrieval Agentic Harness Exact-Match Scoring
01 · Overview

Overview: what this paper is arguing about

The conclusion first: this paper does not propose a new harness. It proposes a benchmark for evaluating harnesses. Its central claim is that long-context systems should be evaluated per model × harness pair, and that efficiency must be reported alongside accuracy.

The paper opens by naming two gaps. First, accuracy on existing long-context tasks has saturated: whether you use direct inference or wrap the model in an agentic harness, the scores bunch into a narrow band, so harness capabilities cannot be told apart. Second, accuracy alone hides cost: with the same underlying model, swapping the harness can change spend by an order of magnitude while accuracy barely moves — so the difference is invisible.

Figure 1 compresses both points. The upper panel places three benchmarks side by side: on LongBench-v2 and OOLONG-Synth the harness curves nearly coincide; only on the shaded LongHarness region (this paper) do they actually spread out. The lower panel switches to an accuracy-versus-cost scatter: on Outlier Memo Detection, RLM and mini-swe-agent land at similar accuracy, yet their costs differ by 12.4×.

Figure 1: LongHarness separates harnesses on both accuracy and cost
Figure 1:LongHarness (ours) reveals harness differences in both accuracy and cost. Commentary: in panel (a) the horizontal axis lists the three benchmarks and the vertical axis is strict accuracy; on LongBench-v2 and OOLONG-Synth the four harness curves overlap heavily (60–86%), whereas in the shaded LongHarness region the same GPT-5.6-sol backbone spreads from about 68% all the way down to about 40% — only this suite has discriminative power. Panel (b) replaces the x-axis with mean cost per instance on a log scale and keeps accuracy on y: on Outlier Memo Detection, mini-swe-agent is 100% @ $0.583 and RLM is 92% @ $7.23 — an 8-point accuracy gap against a 12.4× cost gap, exactly what accuracy-only reporting hides. Colours denote harness (RLM purple square / OpenCode orange triangle / mini-swe-agent green diamond / ReAct blue circle). Report p.1

💡 Click any image to open the full-resolution original; click again or press Esc to close.

Reading conventions: every number on this page is taken from the paper as written; anything this page has assembled, generalised, or converted from the paper's configuration is explicitly flagged as [organized] or [estimated], so it stays distinguishable from the paper's own accounting. Notation follows the paper: \(A\) is task accuracy (strict exact match), \(C\) is mean cost per instance (USD), and \(N\) is the number of instances; macro average means the arithmetic mean of the four task accuracies. Costs are converted from API rates; the rate card is Table 6.

That splits the paper's question into three:

Best macro accuracy
68.0%GPT-5.6-sol × mini-swe-agent (Table 2)
Strongest non-GPT pair
42.5%GLM-5.3 × mini-swe-agent
Per-task best-score range
52% – 100%Pairs hardest at 52%, Outlier easiest at 100%
Largest cost gap, same task & model
12.4×On Outlier, RLM $7.23 vs mini-swe-agent $0.583
Answers not growing with reasoning
Kimi-K2.6 ≤ 1.5%The only one of five models that stays near zero
Per-instance budget
3M tokensCumulative input + output across all model calls
In one sentence: the contribution is to move "long-context harness evaluation" from a single accuracy axis to a joint accuracy + cost axis, and to use four purpose-built tasks to drag each harness's failure mode into the open — concluding that no harness wins everywhere, and that extra inference compute is neither necessary nor sufficient.
02 · Background & Motivation

Background: what a harness is, and what older benchmarks miss

2.1 Defining "LM harness" first

The paper's definition: a harness is the control layer wrapped around a base model, responsible for managing its context, tools, and interaction sequence (Huang et al., 2026). For long-context reasoning, the harness lets the model work through an input far larger than its window over multiple turns, using the results of earlier steps to steer later ones.

The paper evaluates four harness families with different emphases. Understanding how each one reaches the context is the prerequisite for reading everything else:

The tension is that these mechanisms can raise accuracy by spending more model calls and re-reading context, but the extra processing also raises cost. So judging their value requires measuring accuracy and compute spend together — that sentence is the paper's motivation.

2.2 Two structural gaps in older benchmarks

The paper classifies and critiques existing long-context benchmarks; the argument is worth restating in full:

The conclusion: both directions impose substantial processing burden, but both lack coverage of the setting where hard retrieval and strategy choice jointly determine accuracy and cost. The authors therefore set their own design goal — tasks must couple diverse, adaptive retrieval with long-horizon reasoning, and must admit multiple solution routes with different costs.

Table 1 turns that argument into a checkable property matrix. Note the horizontal rule splitting it: the top five rows are task-level properties, the bottom two are system-level properties (whether a model–harness configuration is actually spread out on accuracy or cost). LongHarness is the only column with a ✓ in all seven rows.

Table 1: comparison matrix of long-context benchmarks on properties relevant to harness evaluation
Table 1:Comparison of long-context benchmarks along properties relevant to evaluating LM harnesses. ✓: supported; ∼: partially supported; ×: not supported. Commentary: seven properties × five benchmark columns. Row by row — ① need for diverse adaptive retrieval: LongBenchV2 and HELMET are only partial, LongProc and Oolong are not supported, and only LongHarness is; ② semantically confusable evidence: only HELMET and this paper support it (LongBenchV2 does not at all, which explains why plain retrieval suffices there); ③ long-horizon reasoning steps: LongProc, Oolong, and this paper; ④ retrieval depends on prior steps (step-dependent retrieval): only LongProc and this paper; ⑤ multiple strategies with different costs: only this paper fully; ⑥⑦ the two system rows: all four existing benchmarks are × on accuracy under the SoTA configuration (i.e. inseparable), and only Oolong is partial on cost. Together that is the paper's case: LongHarness is the only suite that spreads configurations out on both axes at once. Report p.4
Summary: this section converts "why build a new benchmark" into two testable propositions — (a) the tasks are strategy-sensitive (several solution routes with different costs), and (b) the systems are genuinely spread out (existing configurations show wide accuracy and cost distributions). Table 2 and Figures 3–4 are the evidence for (b).
03 · The Four Tasks

The four tasks: design intent in one figure

The paper first states five design criteria (mirroring the properties of Table 1): retrieval must be diverse and adaptive; the context must contain semantically confusable evidence that has to be verified; solutions must take multiple reasoning steps in which intermediate findings steer later retrieval; and tasks must admit several strategies with different costs, so that selective search and reuse of intermediate results become cheaper alternatives to brute force.

The four tasks are four concrete realisations of those five criteria. Figure 2 sets them side by side, and every panel follows the same three-part structure — Context → Query → Traces (with correct and incorrect solutions contrasted) — above a strip sketching the pool of documents, programs, or memos. It is worth walking through all four panels now; the per-task breakdown later will map straight onto them.

Figure 2: examples from the four LongHarness tasks, each panel showing context, query, and correct versus incorrect traces
Figure 2:Examples from our benchmark. Top left: Constraint Solving Search combines evidence from documents. Top right: Equivalent Program Pair Search distinguishes equivalent programs from near matches. Bottom left: Program Execution Tracing requires reading prior outputs and matching code semantics. Bottom right: Outlier Memo Detection identifies a conflict using supporting memos. Commentary: each panel demonstrates one task and deliberately places the correct identification next to the incorrect one. Top left, Constraint Solving Search: the target person Maya Chen has three pieces of evidence scattered across independent documents D-041 (works the night shift), D-218 (regularly takes the bus), D-341 (eats fruit), while Leo's three look-alikes are all near misses (D-454 plans to take the bus next month, D-688's night shift has ended, D-099 is merely a watermelon-scented candle); the Query box also shows how many people satisfy each condition (12/76/104 out of 160). Top right, Equivalent Program Pair Search: cells 173 and 088 both test x >= target and therefore match, cell 026 writes x > target — one equals sign away, but behaviourally different — and cells 041/188 are close variants of a different problem. Bottom left, Program Execution Tracing: an eight-step query program where each step must retrieve the cell whose function is semantically equivalent and whose call used the same input; the correct trace uses cell 89's output 2 as the key for the next hop and finds cell 17, whereas the incorrect trace takes cell 52 (same output 3, different function), corrupting every downstream key. Bottom right, Outlier Memo Detection: the OUTLIER is M-502 (it places Algebra 101 on Friday at 2:00 p.m.) and can only be judged using two SUPPORT memos — M-660 (Ms. Lee teaches Algebra 101) and M-346 (Ms. Lee's class runs Monday at 9:00 a.m.); the DISTRACTOR M-059 is a deliberate near neighbour that applies the same sentence pattern to Biology 101. Report p.2

Laid out side by side, the retrieval character of the four tasks is plainly complementary:

Retrieval and reasoning structure of the four tasks (compiled from the paper's Section 3 and Appendices B.1–B.4)
TaskContext sizeRetrieval characterAnswer formCheapest route
Constraint Solving Search~120K tokens / 160 peopleLexical retrieval (find entities) + semantic retrieval (e.g. "likes fruit" ↔ "watermelon")Exactly 5 person IDsQuery the most selective condition first, then verify the remaining conditions only on the survivors
Equivalent Program Pair Search~100K tokens / 200 programsGroup by purpose first, then eliminate mutants with distinguishing inputs5 unordered program pairsShrink candidates by grouping, then differentially execute the closest-looking pairs
Program Execution Tracing320 shuffled records (8 steps × 40-cell pool)Step-dependent: the previous output determines the next retrieval key8 cell IDs + the final result (JSON)Reuse outputs already recorded in the context instead of recomputing them
Outlier Memo Detection700 memos / 2,500 statementsTwo-hop composition: a contradiction only becomes visible across memosExactly 15 memo IDsBuild a reusable relation table or graph on one pass, then check derived claims in bulk

Note: this table is a quick-reference summary compiled by this page from the paper's main text and appendices; it is not a table from the paper. The paper's own tables are Tables 1, 2, 4, and 5.

Summary: all four tasks share one construction pipeline — private structured data → generate gold → controlled hard distractors → render and shuffle → rule-based verification (the unified principle in Appendix B, see Section 8) — yet their retrieval forms differ: lexical, semantic, step-dependent, and cross-record compositional each get one task. That is precisely what "diverse retrieval strategies" in the title means.
04 · Task Deep Dive

Task-by-task breakdown: pitfalls and cheaper routes

4.1 Constraint Solving Search

Given a set of documents describing people, the agent must find every person who satisfies all conditions in the query simultaneously. Each instance holds about 120K tokens and about 160 people, with queries carrying 3–5 conditions (habits, current situations, relations to others). Exactly five people qualify, but their evidence is scattered across different documents and mixed in with "close but non-equivalent" counterexamples.

Go back to the top-left panel of Figure 2: Maya's night shift, commute habit, and fruit eating sit in three different passages, whereas Leo's "plans to take the bus next month" and "watermelon-scented candle" do not constitute the corresponding habits. The answer must name exactly those five IDs.

The paper plants a computable strategy gap here: during construction it deliberately requires one condition satisfied by ≤10% of people (the selective condition) and another by ≥60% (the prevalent condition), without telling the solver which is which. The efficient route therefore finds the condition with the fewest satisfying people, shrinks the candidate set, and then verifies the remaining conditions only on that set; the brute-force route checks all conditions against all 160 people, doing markedly more retrieval and reasoning. This is the first quantified instance of "same task, different cost".

Construction details (Appendix B.1, [organized]): start from a typed world containing 160 people and related entities, sample 3–5 predicates and build support sets so that exactly five people fall in the intersection of all of them; for each predicate, add 2–4 people who satisfy every other predicate but fail this one. Failing predicates are expressed by "close but invalid facts" (e.g. "plans to take the bus" rather than "has a commute habit") rather than by omission. Facts receive stable IDs and are grouped into passages of 2–5 statements, then padded with unrelated background facts; after keeping every passage that carries decisive evidence, neutral passages fill the context to 120K–128K tokens and everything is shuffled. A private solver performs the set intersection/union and maps it to passages; a verifier independently recomputes the world, confirms that each near match fails exactly one predicate, and checks the sizes of the selective and prevalent support sets plus the survival of the cited facts after packing.

4.2 Equivalent Program Pair Search

Given a set of programs, the agent must find every pair that produces the same output on the same legal inputs. Each instance holds about 100K tokens and 200 Python programs adapted from the APPS dataset (Hendrycks et al., 2021). Problem statements and visible input–output examples are removed, and each correct implementation is surrounded by mutants that look like they solve a similar problem but behave differently.

That yields a counter-intuitive consequence: the two genuinely matching programs may look less alike than a wrong candidate does. Ranking by code similarity is therefore unreliable — Appendix B.4 goes as far as requiring that every true pair rank behind at least 12 mutants by similarity.

The top-right panel of Figure 2 makes this concrete: cells 173 and 088 both test x >= target and are therefore equivalent; cell 026 drops the equals sign to x > target, which behaves differently — feed it an input containing the target itself and the two diverge immediately. The efficient route is consequently two-stage: infer each program's purpose and group plausible matches, then use distinguishing inputs to eliminate behavioural variants within a group.

The answer must list the complete set of matching ID pairs, and the number of pairs is not disclosed. The paper is also candid about the label's scope: the answer key treats "both programs pass the original problem's tests" as a match, which is not a proof of equivalence over all possible inputs.

4.3 Program Execution Tracing

This task asks the agent to reconstruct the result of an eight-step query program from 320 shuffled records of earlier Python computations. Each cell records its own ID, its function, an example call, and the output.

For each step of the query, the agent must find the cell whose function is semantically equivalent and whose recorded call used the required input. Because the previous step's output is the next step's input, retrieval is step-dependent: the exact numeric input narrows the search by literal matching, but the deliberately confusable functions may return the same output on the displayed example and differ on other inputs.

The bottom-left panel of Figure 2 contrasts correct and incorrect paths: the correct path uses cell 89's output 2 as a key to find cell 17, giving the result [2, 3]; the incorrect path takes cell 52 (whose output also happens to be 3, but whose function is something else), so the key becomes 3, the next retrieval is steered to cell 104, and the final result comes out wrong as [2, 3, 4]. The caption Wrong downstream answer! is there to stress that a single mismatched cell rewrites every later search key.

The answer comprises the eight selected cell IDs plus the exact final result (JSON). The efficient route uses each recovered output as the next search key, verifies the function match, and directly reuses the recorded result, thereby avoiding recomputation of work already present in the context — but that demands rigorous state tracking and step-by-step semantic verification.

Construction details (Appendix B.3, [organized]): sample an eight-node computation graph, assign each node a typed transformation drawn from ten families (table and set operations, sequences and text, intervals, grids, paths, graph traversal, topological batching, and so on), and execute the graph to obtain each node's input and output. Build 20 cells per node: exactly one implements the transformation over its full input contract, while the other 19 are controlled perturbations of boundary handling, filtering, aggregation, or sorting — and a perturbation is kept only if it yields the same output on the displayed call yet differs on another contract probe. A second 20-cell pool is then built around the alternative input the solver would reach after an earlier mistake. The 8 × 40 = 320 cells are anonymised and shuffled, and the public context never marks which pool a cell came from.

4.4 Outlier Memo Detection

The agent must find memos whose statements contradict a relation established elsewhere in the collection. Each instance contains 700 labelled memos and 2,500 statements about people, organisations, objects, and their relations. Exactly 15 memos carry a conflicting statement, and no contradiction is visible in isolation.

Bottom-right panel of Figure 2: one memo says Ms. Lee teaches Algebra 101, another schedules her class for Monday at 9:00 a.m.; only together do they conflict with a third statement placing the course's instructor on Friday at 2:00 p.m. Because there is heavy paraphrase and plenty of "related but consistent" material, topic similarity is not a sufficient criterion. The answer must name exactly those 15 memo IDs.

The paper frames the strategy gap as "build one global structure" versus "repeat local retrieval": the efficient route reads the packet once, organises statements into a reusable relation table or graph, and then checks each derived claim by composing fact pairs; the inefficient route hunts for evidence separately for every suspect claim, which both re-reads the same memos and misses contradictions that only surface when several memos are combined.

Construction details (Appendix B.2, [organized]): built from a typed relation graph. Two-hop rules compose edges \(R_1(a,b)\) and \(R_2(b,c)\) into the derived claim \(R_2 \circ R_1(a,c)\). The generator samples 450 base edges, computes 440 derived claims, then picks 15 and replaces the correct endpoint \(c\) with another entity \(c'\) of the same type. Because the two base edges that establish the correct endpoint remain in the packet, every corruption comes with a complete symbolic contradiction proof. Near-twin decoys reuse the same relation types, and a wrong endpoint may even be "correct" for another anchor or relation, which blocks shortcuts along entity names. The final packet holds 700 memos and exactly 2,500 atomic statements drawn from five business domains.
Summary ([organized]): viewed together, the authors' strategy is to give each retrieval form its own task, and to build into every task an identifiable but unlabelled cheaper route — selective conditions, grouping and pruning, reuse of intermediate outputs, and building a global relational structure. Efficiency is thus not a metric bolted on afterwards but a degree of freedom endogenous to the task design.
05 · Main Results

Main results: a 68% ceiling and a 12.4× cost gap

5.1 Experimental setup

Models and harnesses. The evaluation covers five models: GPT-5.6-sol, Gemini 3.8 Flash, Qwen3.8-27B, GLM-5.3, and Kimi-K2.6 (OpenAI, 2026; Zeng et al., 2026; Qwen Team, 2026; Moonshot AI, 2026). Each model runs five configurations: direct long-context inference (Direct) as the baseline, plus four agentic harnesses — RLM, OpenCode, mini-swe-agent, and ReAct (Yao et al., 2023). On reasoning effort, GPT-5.6-sol / Gemini 3.8 Flash / GLM-5.3 use high, Qwen3.8-27B uses medium, and Kimi-K2.6 uses its reasoning-enabled mode.

Evaluation protocol. Each instance gets a 3M-token budget, counted as cumulative input + output across all model calls. Accuracy reported is task-specific strict exact match: Program Execution Tracing requires both the final result and the cited cells to be exact; Outlier Memo Detection requires the set of 15 memo IDs to be exact; Constraint Solving Search requires the person-ID set to be exact; Equivalent Program Pair Search requires the set of five unordered pairs to be exact.

Cost accounting: the cost the paper reports is an estimated per-instance cost obtained by converting recorded token usage through API rates (rate card in Table 6); rates are applied to each API call before averaging across instances. For the self-hosted Qwen runs the paper reports an "equivalent API cost". Appendix A (Table 4 in Section 8 of this page) gives mean input/output token counts.

5.2 The benchmark is still hard

Table 2 is the paper's centrepiece: 5 models × 5 configurations = 25 rows, each cell reporting accuracy (%) followed by USD cost per instance, with a final macro-average column (the arithmetic mean of the four task accuracies plus the mean of the per-task average costs).

Table 2: exact accuracy and estimated cost across the four suites for 25 model–harness combinations
Table 2:Exact accuracy and estimated cost across four suites. Each cell reports accuracy (%) followed by USD per-instance cost in parentheses; macro averages the four task accuracies and per-task mean costs. Commentary: the columns are Constraint (Constraint Solving Search) / Memos (Outlier Memo Detection) / Program (Program Execution Tracing) / Pairs (Equivalent Program Pair Search) / Macro avg. Three conclusions read straight off the table. ① The best pair is GPT-5.6-sol × mini-swe-agent at 68.0% macro @ $0.816 — it takes 100% on Memos but only 42% on Constraint. ② The strongest non-GPT pair is GLM-5.3 × mini-swe-agent at 42.5%, already near GPT-5.6-sol × OpenCode (40.5%) and × ReAct (43.0%). ③ Kimi-K2.6's five macro values are 0.0 / 0.5 / 1.5 / 0.5 / 0.0 — never above 1.5% — while its costs run high (RLM reaches $16.3 on Memos). Note also the Direct rows: GPT Direct gets 44% on Memos where mini-swe-agent gets 100%, but 58% on Constraint where mini-swe-agent gets only 42% — the same harness wins and loses depending on the task. Report p.7

Three points the paper stresses repeatedly follow directly from this table:

5.3 Similar accuracy can come with very different cost

The paper offers a very clean contrast: on Program Execution Tracing, GPT-5.6-sol direct inference and OpenCode score 94% and 96% — apparently a tie; but the former uses 0.121M input tokens for $0.648 while the latter uses 1.29M input tokens for $1.37, roughly 10.7× the input and about 2.1× the cost ([estimated]: 1.29 ÷ 0.121 from Table 4). The same holds on Constraint Solving Search: direct inference 58% @ $0.690 versus OpenCode 56% @ $1.72 — two points lower accuracy at 2.5× the cost.

Figure 3 plots the 25 combinations of Table 2 on a plane of macro accuracy versus mean cost per instance (log axis). How to read it: colour is the model, shape is the harness, and each model's highest-accuracy configuration carries a callout. Its value is turning "which one should I pick?" into a visual judgement that needs no absolute threshold — the top-right is accurate-but-expensive, the top-left is accurate-and-cheap, and the top-left is almost exclusively occupied by GPT-5.6-sol.

Figure 3: scatter of macro accuracy against estimated cost across the four tasks
Figure 3:Macro-average accuracy and estimated cost across the four tasks (Table 2). Color denotes model; shape denotes harness. Callouts and larger markers mark each model's best accuracy. Commentary: the x-axis is mean cost per instance on a log scale (0.1–10 USD) and the y-axis is macro accuracy. The four callouts are each model's best point: GPT-5.6-sol × mini-swe-agent 68% @ $0.816 (highest accuracy, yet among the cheaper GPT points); GLM-5.3 × mini-swe-agent 42.5% @ $3.00; Qwen3.8-27B × OpenCode 38.5% @ $7.06; Gemini 3.8 Flash × mini-swe-agent 25% @ $0.550; Kimi-K2.6 × OpenCode 1.5% @ $5.65. Three shapes deserve attention. ① GPT-5.6-sol's diamond (mini-swe-agent) sits clearly in the upper left — the only high-accuracy, moderate-cost cluster. ② Qwen3.8-27B's triangle (OpenCode) and GLM-5.3's diamond both land in the $3–7 band but at roughly half GPT's accuracy, showing that "weaker model + heavier harness" buys some accuracy at a real price. ③ Kimi-K2.6's pink points sit flat on the 0–1.5% floor while spanning $0.5–6 — the clearest counterexample of paying without delivering. ReAct appears only where it was available. Report p.7

The paper adds two sharper counter-intuitive contrasts showing that more inference is neither necessary nor sufficient:

5.4 Weaker models gain more from harnesses

The paper observes a systematic pattern: the gain a model obtains from its best harness is inversely related to its direct-inference accuracy — the worse direct inference is, the more the harness helps.

Per-model gain from "direct inference → best harness" (figures taken from the paper's Table 2 and Section 4.3)
ModelDirect macroBest harness configurationBest macroGain
Qwen3.8-27B0.0%OpenCode38.5%+38.5 pt
GLM-5.39.5%mini-swe-agent42.5%+33.0 pt
Gemini 3.8 Flash10.0%mini-swe-agent25.0%+15.0 pt
GPT-5.6-sol60.0%mini-swe-agent68.0%+8.0 pt
Kimi-K2.60.0%OpenCode1.5%+1.5 pt

Note: gains are this page's subtraction of the paper's two figures ([estimated]). Although Kimi-K2.6 starts from 0% direct, it gains essentially nothing — a conspicuous exception to the inverse-correlation pattern, and the paper's own text does not list it among the beneficiaries either.

From this the paper draws a conclusion with real bite for model leaderboards: harnesses substantially narrow the gap between model families. GLM-5.3 × mini-swe-agent (42.5%) and Qwen3.8-27B × OpenCode (38.5%) are already in the same band as GPT-5.6-sol × OpenCode (40.5%) and × ReAct (43.0%), even though their direct accuracies (9.5% / 0%) sit far below GPT's 60%.

Summary: three sentences at the results layer — (a) the ceiling is only 68%, so the tasks are far from solved; (b) at equal accuracy, cost can differ by an order of magnitude, so accuracy-only evaluation is informationally incomplete; (c) the harness acts as a compensator for the model, and weaker models benefit more, which makes conclusions drawn from model names alone misleading.
06 · Harness Mechanisms

Mechanism attribution: why each harness wins or loses

The main table says who wins and who loses; this section says why. The paper's unifying lens is: a harness spends extra model calls to reduce the amount of context that must be handled at each step; the payoff depends on how much those calls actually simplify the remaining work.

6.1 How to read the change plots: Figure 4

Figure 4 is the second densest figure in the paper: a 2 × 3 grid of six panels, with Constraint Solving Search, Equivalent Program Pair Search, and OOLONG-Synth on the top row, and Program Execution Tracing, Outlier Memo Detection, and LongBench-v2 on the bottom row. In every panel the x-axis is the cost multiple relative to direct inference (log scale ½× / 1× / 4× / 16×) and the y-axis is the accuracy change relative to direct inference, in points.

The key to reading it is the background shading: the intersection of the 1× line and the 0 line is the direct-inference reference point; the green region means more accurate and cheaper, the pink region means worse and more expensive. A point moving toward the upper left is good; toward the lower right, bad.

Figure 4: across six panels, accuracy and cost changes of each harness relative to direct inference
Figure 4:Harness effects relative to direct inference on OOLONG-Synth, LongBench-v2, and our suites. External benchmarks use GPT-5.6-sol. The reference is zero accuracy change and 1× cost. Commentary: each panel marks its most representative point. The external benchmarks (OOLONG-Synth and LongBench-v2, top-right and bottom-right) share a remarkably consistent shape: GPT × mini-swe-agent buys higher accuracy at lower cost — OOLONG 64% → 86% at 0.32× cost, LongBench-v2 62% → 68% at 0.36× cost — i.e. uniformly positive. Across the paper's four tasks the picture splits: the big win is GPT × mini-swe-agent lifting Memos from 44% to 100% at only 0.50× cost (bottom middle), and the big loss is GPT × RLM crashing Pairs from 44% to 2% while cost rises to 10.08× (top middle); on Constraint, GPT × mini-swe-agent goes 58% → 42% at 0.46× cost (top left) — cheaper, but less accurate. The most dramatic point on Program Execution Tracing is Qwen × OpenCode: 0% → 92% at 23.66× cost, the one combination on the top-left panel that fully rescues a weak model's zero, at nearly 24× the price. Together the four in-house panels cover all four outcome classes — better-and-cheaper, better-and-pricier, worse-and-cheaper, worse-and-pricier — while the two external benchmarks fall into only one of them. Report p.8

6.2 File-and-shell harnesses: OpenCode and mini-swe-agent

File and shell access supports both targeted retrieval and scripted verification, and those two pay off very differently. The paper gives one example in each direction:

The paper's generalisation: targeted retrieval produced only a small accuracy gain on execution tracing, whereas scripted verification improved both accuracy and cost on memo detection — the difference being that the latter sediments intermediate results into a reusable artefact.

6.3 Programmatic decomposition: RLM

RLM's mechanism is to filter the long prompt into smaller fragments, process them through additional sub-model calls, and let the main model aggregate the outcomes (Zhang et al., 2025).

The paper's diagnosis is strikingly compact: decomposition reduced the context per call but did not sufficiently shrink the final decision space. That sentence is essentially the core argument for why long-context harnesses cannot rely on chunking alone.

6.4 Vector retrieval: ReAct

The paper offers a criterion: semantic retrieval is most useful when the retrieved item is itself a credible comparison candidate.

The way the paper closes this section is worth copying: the value of extra inference depends on how it organises the work that follows. Targeted search, a reusable fact table, and a smaller candidate set can all support efficient verification; repeated reading and broad candidate lists only add cost while leaving the core reasoning undecided.

Summary ([organized]): the four mechanisms line up along one question — what did each do to the decision space? mini-swe-agent compressed the decision space into a script on Memos, hence accurate and cheap; ReAct compressed the candidate neighbourhood on Pairs, hence a small win; OpenCode compressed very little on execution tracing, hence 2 points for double the cost; RLM compressed per-call context but enlarged the final decision space on Pairs, hence a heavy loss. That criterion is far more actionable than "is this harness good?".
07 · Comparison

Head-to-head: why the old benchmarks cannot separate harnesses

To show that "the new suite is more discriminative" is not a self-serving claim, the paper runs subsets of two existing benchmarks on the same backbone (GPT-5.6-sol): 50 examples from the 128K condition of OOLONG-Synth (Bertsch et al., 2025), and 50 examples from LongBench-v2 in the 90K–128K token range (Bai et al., 2025).

The subsets are constructed as follows (Appendix B.5, [organized]): for OOLONG-Synth, two disjoint 25-example queues are drawn with a fixed random seed from the 400 test examples of the official context_len=131,072 condition and spread as evenly as possible across the counting / timeline / user task groups, yielding 17 counting, 16 timeline, and 17 user examples, with each queue covering all eight source datasets and all 16 context-window IDs; for LongBench-v2, the full zero-shot prompt is tokenised with the Qwen3.8-27B tokenizer and the 75 examples in the 90K–128K token band are kept (42 hard + 33 easy), with all hard examples retained plus eight deterministically chosen easy ones, giving 50 examples that cover all six eligible domains and 13 eligible subdomains, with answer positions A–D counted at 12/12/13/13 and prompt lengths from 90,049 to 127,548 tokens (mean 108,808). The paper states explicitly that this is a hard-weighted, length-controlled subset and is not intended to reproduce the full benchmark's distribution.

The result is the story told jointly by Table 3 and the right-hand column of Figure 4: on OOLONG-Synth, every tested agentic harness beats direct inference, with accuracy rising from 64% to between 70% and 86%; on LongBench-v2, all five configurations bunch into a narrow 60%–68% band. In other words, these benchmarks either say "uniformly positive" or barely distinguish harnesses at all.

Table 3: GPT-5.6-sol harness performance on two existing long-context benchmarks
Table 3:GPT-5.6-sol on existing long-context benchmarks. Each cell reports accuracy and average USD per instance in parentheses. Commentary: five harness rows × two benchmark columns. On OOLONG-Synth: Direct 64% ($0.686), RLM 78% ($3.70), OpenCode 74% ($2.08), mini-swe-agent 86% ($0.217), ReAct 70% ($0.751) — all five configurations beat direct inference, and the best one (mini-swe-agent) is also the cheapest, giving a monotone picture in which harnesses uniformly help. On LongBench-v2: 62% / 62% / 60% / 68% / 68% — a range of eight points across five rows, with harnesses barely distinguishable. Set those two columns against the paper's four tasks in Table 2 and the difference is plain: on this suite GPT-5.6-sol's macro accuracy runs from 40.5% (OpenCode) to 68.0% (mini-swe-agent), and the same harness shows up in both the winning and the losing positions. Report p.8

The paper lands this section on cost: under the same 128K-class context budget, mini-swe-agent scores 68% @ $0.816 on this suite, the same 68% for only $0.190 on LongBench-v2, and 86% @ $0.217 on OOLONG-Synth. It also makes a strict accounting disclaimer — "exact success" means different things across the three benchmarks, so these percentages cannot be treated as normalised difficulty measures. But even comparing only within a benchmark, the lower ceiling and higher cost on this suite show there is ample room left for future harnesses on both the effectiveness and the efficiency side.

Summary: this section is the linchpin experiment — it turns "our benchmark is more discriminative" from a design claim into a direct contrast with two external benchmarks: the accuracy–cost region those benchmarks cover is a single one, while the four tasks here cover all four classes (better-and-cheaper / better-and-pricier / worse-and-cheaper / worse-and-pricier).
08 · Appendix

Construction method and cost accounting (Appendices A/B/C)

8.1 The unified construction principle

Appendix B opens with the five-step construction pipeline shared by all four tasks; it is the key to why this benchmark's answers are deterministic:

Table 5 lists, per task, the trio of "private specification / controlled distractors / how gold is derived". It earns a look of its own because it shows that the public context exposes only the rendered items, never their role or provenance — a solver cannot tell from the format which item is a SUPPORT and which is a DISTRACTOR.

Table 5: the underlying structures used to construct the four tasks
Table 5:Underlying structures used to construct the four tasks. Public contexts expose only the rendered items, not their roles or provenance. Commentary: four rows, one per task. For Constraint Solving Search the private specification is a "typed fact world + predicate support sets", the controlled distractors are "people satisfying every condition but one", and gold comes from "set intersection plus a fact-to-passage mapping". For Outlier Memo Detection it is a "typed relation graph + composition rules", distractors are "endpoint substitutions and near-twin claims", and gold comes from a "graph composition proof". For Program Execution Tracing it is a "computation graph + typed inputs + function contracts", distractors are "same-output functions and alternative paths", and gold comes from "execution and contract probes". For Equivalent Program Pair Search it is an "executable program family + test signatures", distractors are "behaviour-changing AST mutations", and gold comes from "differential execution". What the four rows share is that no distractor is random noise: each is targeted, approaching the correct answer along some specific dimension. Report p.15

8.2 The detailed token and cost ledger

Table 4 is Appendix A: it gives, for all 25 configurations on the four tasks, accuracy (a) and mean input/output token counts with cost (b). It is the expanded form of Table 2 — Table 2 reports only cost, while Table 4 splits cost into input and output, which makes "where does the cost difference come from?" answerable.

Table 4: detailed accuracy (a) and mean input/output tokens and cost (b) on the four tasks
Table 4:Detailed accuracy and efficiency on Constraint Solving Search (Constraint), Outlier Memo Detection (Memos), Program Execution Tracing (Program), and Equivalent Program Pair Search (Pairs). Commentary: the upper half (a) is the accuracy matrix, matching the percentages of Table 2; the lower half (b) gives Input / Output (in millions of tokens) and Cost (USD) per task. A few cells worth checking one by one. ① GPT-5.6-sol Direct on Program uses 0.121M input / 0.0026M output for $0.648, while OpenCode uses 1.29M / 0.0045M for $1.37 — input tokens rise about 10.7× ([estimated]: 1.29 ÷ 0.121) while cost rises only about 2.1×, because the billing tiers and caching each configuration hits differ. ② mini-swe-agent on Memos reaches 100% with only 0.367M input / 0.0133M output — the best accuracy-per-dollar cell in the entire GPT row. ③ RLM on Pairs uses 0.712M input / 0.274M output for $7.86, with output tokens clearly inflated, consistent with the mechanism story that recursive sub-calls burn too much on the initial grouping. ④ Kimi-K2.6 with RLM on Memos reaches 2.21M input / 1.04M output for $16.3 — the most expensive cell in the whole table, at 0% accuracy. The table note explains that the Program column uses a format-tolerant answer-and-citation rescore, with the original strict-format scores retained in the task reports. Report p.14

8.3 API rates: how the dollar figures are produced

Table 6 lists the rates used to convert recorded token usage into the costs the paper reports. The paper notes specifically that rates are applied to each API call before averaging across instances, and that GPT-5.6-sol's long-context tier takes effect when a single request exceeds 272K input tokens.

Table 6: API rates used to convert token usage into cost
Table 6:API rates in USD per million tokens. A dash indicates that we do not apply a separate rate for that token category. Commentary: six model/tier rows × four billing categories (Input / Cache read / Cache write / Output). Three things matter most here. ① GPT-5.6-sol has short and long tiers: the short tier is Input $4.00 / Output $20.00 and the long tier doubles to $8.00 / $30.00 (triggered above 272K input tokens) — which is exactly why long-context harnesses get expensive non-linearly. ② Qwen3.8-27B and Gemini 3.8 Flash have no cache-write rate (shown as a dash), meaning that category is not billed separately. ③ The Input : Output price ratios differ widely across models (GPT 4 : 20, Gemini 0.75 : 3.75, Qwen 2.48 : 7.46), so an "output-inflating" harness such as RLM incurs a different cost penalty depending on the model. The table note states that GPT rates follow OpenAI's pricing page, Gemini follows Google's pricing page, and GLM-5.3 / Qwen3.8-27B / Kimi-K2.6 use rates listed by Tinker; self-hosted Qwen runs report an equivalent API cost with all input billed at the input rate. Report p.17
One easily missed accounting detail: in the note to Table 4 the paper states that the Program Execution Tracing column uses a format-tolerant answer-and-citation rescore, with the original strict-format scores retained in the task reports. In other words, that column has already been through one round of format leniency — a reminder not to read Table 4's Program column interchangeably with the strict accounting of the other three tasks.
Summary: the three appendix sections each settle one reproducibility question: B answers "how is the data guaranteed to have a single determinate answer", A answers "does the cost difference come from input or output", and C answers "at what price list were the dollar figures converted". Stacked together, every accuracy and dollar figure in the paper traces back to a constructed record or a rate card.
Glossary

Glossary

Come back here whenever an abbreviation trips you up; abbreviations in the text also carry hover definitions.

Reading glossary (abbreviations underlined with a dotted line in the text show their definition on hover)
Abbreviation / termFull formOne-line explanation
LM harnessLanguage-Model HarnessThe control layer wrapped around a base model that manages its context, tools, and interaction sequence; the object under test in this paper.
DirectDirect long-context inferenceThe baseline configuration with no multi-turn tool interaction: the long context is fed to the model in one shot.
RLMRecursive Language ModelsTreats the long prompt as a programmatically accessible object, processes chunks via recursive sub-model calls, and lets the main model aggregate (Zhang et al., 2025).
OpenCodeOpenCode coding agentA coding-agent harness that lets the model retrieve context through files and a shell and write scripts to verify (Anomaly, 2026).
mini-swe-agentminimal SWE-agentA lightweight software-engineering agent harness with the same file/shell access but a leaner interaction loop (Yang et al., 2024).
ReActReasoning + ActingAn agent paradigm interleaving reasoning and action; here it is equipped with semantic search, batched nearest-neighbour retrieval, and document reading (Yao et al., 2023).
bge-m3BAAI General Embedding M3The embedding model used by this paper's ReAct configuration (Chen et al., 2024).
Macro avg.Macro averageThe arithmetic mean of the four task accuracies; on the cost side, the mean of the per-task average costs.
Strict accuracyStrict / exact-match accuracyTask-specific exact match: the ID set or the set of program pairs must agree exactly, with no partial credit.
Step-dependent retrievalStep-dependent retrievalThe retrieval target is set by the intermediate result of a previous step; the last output is the next search key.
MutantBehavior-changing mutantA program variant that looks similar but behaves differently on some inputs, decoupling "looks alike" from "behaves equivalently".
Near-matchNear-match / near-twinA person satisfying every condition but one, or a near-identical claim, both used to induce wrong matches.
OOLONG-SynthOolong SynthAn existing long-context benchmark requiring aggregation over many records; it permits a divide-and-conquer strategy (Bertsch et al., 2025).
LongBench-v2LongBench v2An existing benchmark covering realistic long-context multi-task settings (Bai et al., 2025).
APPSAutomated Programming Progress StandardThe source dataset of coding problems this paper adapts for its equivalent-program-pair task (Hendrycks et al., 2021).
3M budget3M-token budgetThe cap on cumulative input + output tokens per instance, counted across all model calls.
10 · Commentary

Commentary: contributions, limits, and what is worth measuring next

10.1 What this paper gets right

10.2 Technical lineage

Where each component comes from (compiled from the paper's inline citations; not a table from the paper)
ComponentUpstream as cited by the paperWhat this generation changes / integrates
Definition of a harnessMemoharness (Huang et al., 2026)Keeps the "control layer outside the model" definition, but widens the object of evaluation from a single harness to the model × harness pair
RLM harnessRecursive Language Models (Zhang et al., 2025)Used directly as one of the four harnesses under test; the paper additionally diagnoses its failure mechanism on Pairs (compresses per-call context, not the final decision space)
OpenCode harnessOpenCode (Anomaly, 2026), v1.18.21Enters the evaluation as the representative of file/shell harnesses
mini-swe-agent / SWE-agentSWE-agent (Yang et al., 2024)The lightweight variant is evaluated; it becomes the highest accuracy-per-dollar configuration in the whole table on Memos
ReAct harnessReAct (Yao et al., 2023)Custom tool set: semantic search, batched nearest-neighbour retrieval, document reading
Embedding modelM3-embedding / BAAI/bge-m3 (Chen et al., 2024)Powers ReAct's semantic retrieval channel
Program sourceAPPS (Hendrycks et al., 2021)Only stdin-style problems are used; each problem keeps four structurally different correct solutions, which are then AST-mutated into mutants; the final evaluation draws on 76 retained families
Task inspiration: entity-set retrievalQUEST (Malaviya et al., 2023), BrowseComp (Wei et al., 2025b)Constraint Solving Search requires finding all entities satisfying scattered conditions, and the filtering order affects cost (the former retrieves entities defined by implicit set operations; the latter finds a single fact)
Task inspiration: contradiction retrievalLogic Haystacks (Sileo, 2026), MAGIC (Lee et al., 2025)Outlier Memo Detection requires finding all conflicts by composing evidence across records (the former retrieves evidence for a specified contradiction; the latter judges a given pair of contexts)
Task inspiration: program equivalenceEquiBench (Wei et al., 2025a), SeqCoBench (Maveli et al., 2025)Equivalent Program Pair Search must discover all matching pairs and reject mutants that are similar in code but different in behaviour (the first two only classify given pairs)
Task inspiration: code execution tracesCRUXEval (Gu et al., 2024), RepoReasoner (Wang et al., 2026)Program Execution Tracing retrieves semantically equivalent functions and reuses recorded outputs as later inputs to follow dependent computation (the former predicts input/output of short standalone functions; the latter traces across repository files)
Comparison benchmark: OOLONG-SynthOolong (Bertsch et al., 2025)50 examples from the context_len=131,072 condition (two disjoint 25-example queues) serve as the control
Comparison benchmark: LongBench-v2LongBench v2 (Bai et al., 2025)The Qwen3.8-27B tokenizer selects 50 examples in the 90K–128K token band (42 hard + 8 easy), length-controlled
Efficiency-aware evaluation perspectiveMLAgentBench (Huang et al., 2024), AgencyBench (Li et al., 2026), Holistic Agent Leaderboard (Kapoor et al., 2026)Brings the accuracy–cost Pareto view into long-context harness evaluation and records token usage and cost side by side

Citations follow the paper's own inline attributions; this page has not checked the reference entries one by one.

10.3 Limitations the paper states itself

The paper proactively declares the boundaries of its answer keys in two places, and both are worth remembering verbatim:

10.4 Not disclosed, worth testing next

Overall assessment: this is an evaluation-methodology paper. Its contribution is not a new algorithm but a redesign of the evaluation accounting — construction guarantees determinate answers, controlled distractors guarantee hard retrieval, built-in multiple strategies make efficiency measurable, and a cost column makes efficiency readable. Its strongest evidence is not "the best is only 68%" (that only shows the tasks are hard) but the 12.4× cost gap on the same model and task, and counterexamples like "RLM 2% @ $7.86 versus Direct 44% @ $0.780" — which directly falsify the implicit assumption that more inference means better. For anyone doing inference serving or agent engineering, the most practical takeaway is the contrast in Section 6.2: within agentic harnesses, sedimenting intermediate results into a reusable scripted artefact (mini-swe-agent on Memos) versus repeatedly re-reading the context (OpenCode on the same task) yields one configuration that is both accurate and cheap and another that is neither.