Skip to content

About

Move On Until the Next Issue Is Worse: Runtime stopping value and test-time compute allocation across 229,580 coding-agent trajectories (+43.2% to +78.9% repairs at 30% budget).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move On Until the Next Issue Is Worse

Test-time compute allocation, endogenous retry crossing, and runtime stopping value for open-weight Gemma 4 coding agents

Author: Yan Su (hi@yansu.me)

Paper PDF (6 pages, A4; locked Writeup #125540, see ERRATA.md) | Methodological Erratum (Section 4) | 5-Second Verification Notebook (reproduce.ipynb) | Manuscript Source (writeup.md) | Analysis & Build Guide | License (MIT)

Methodological Clarification & Erratum (Section 4 Counterfactual Breaker Replay)

The locked Kaggle Writeup #125540 PDF (paper/gemma4_queue_value_paper.pdf, SHA-256 3da6eccdd1f3a8592962d7cf9f1fffaaa57858ef5948937278f7f03ecd31e9fe) and manuscript (paper/writeup.md) are preserved byte-for-byte unchanged as submitted before the 2026-11-12 23:59 UTC deadline. Full details appear in ERRATA.md; three scope boundaries govern Section 4's breaker replay sentence (paper/writeup.md, line 99):

  1. Conditional sensitivity counterfactual, not measured 60-minute trajectories. All 228 Gemma 4 31B A100 attempts ran under a 600s cap (actual_60min_counterfactual: null, breaker_is_simulation: true in evidence/results/gemma4_sandbox_and_schema_audit.json). The +10.71 [2.0, 19.0] (0% late recovery), +9.04 [1.0, 18.0] (25%), and +3.97 [-4.0, 12.0] (100%, 95% CI spans zero) deltas extend observed 600s timeouts to an assumed 3600s with Bernoulli late recovery.
  2. Negative control against the observed 600s cap baseline. Relative to the actually observed 600s cap baseline (cap_600, mean 29.71 solved tasks), adding fuse_schema_3 yields -1.904 [-6.0, +2.0] solved tasks (27.806 vs. 29.71; point replay 29 vs. 30; triggers 37 attempts including 7 eventual wins). fuse_schema_2 yields -1.874 [-6.0, +2.0], fuse_edit_3 yields -1.423 [-5.0, +2.025], and fuse_schema_5 yields +0.779 [-1.0, +3.0]. Thus 3-strike schema breaking does not show a positive gain on top of the 600s cap baseline.
  3. Single-policy code scope (fuse_schema_3 only). The queue replay in analysis/gemma4_sandbox_and_schema_audit.py evaluates fuse_schema_3 alone and does not jointly simulate a 5-identical-call breaker (exact_loop_flag is evaluated separately via the 13-task matched sign test, 9 failures vs. 0 successes, $p = 0.00391$).

Abstract

Deployed coding agents serve finite issue queues under shared budgets, where every retry displaces an unattempted issue. Across six open and frontier configurations spanning 162,506 trajectories, one failure cuts next-attempt success to 0.203 to 0.529 of equal-issue base rate. Breadth-first scheduling repairs 43.2% to 78.9% more issues than immediate retries at 30% call budget and adds 816 repairs across 5,056 Qwen3.8-27B tasks. Without verifiers, low-cost first failures overtake weak fresh tail tasks for +30.8 held-out repairs (95% CI 5.2 to 56.8) at 30% budget and +48.2 at 35%. An independent 67,074-trajectory Qwen3-Coder-480B corpus adds 68.1 held-out repairs under repository-ranked breadth and withholds retries when conditional yield falls to 0.203. Replaying 228 Gemma 4 31B A100 trajectories reproduces a 70.1% breadth gain, separates 76 default-passing from 53 container-blocked tasks, and exposes 1,988 schema-rejected edit_file calls across 7,157.4 seconds of preceding event intervals (see ERRATA.md for the counter-exclusion observational boundary). Finally, a closed-form fluid-queue stopping-value identity predicts finite-queue replay with $R^2 = 0.996$ across 105 settings, whereas ROC AUC selection forfeits 13.8 held-out repairs across four systems.

Four Empirical Laws & Vector Plates

1. Persistent Difficulty & Endogenous Queue Crossing (162,506 Trajectories)

Across six model configurations, a failed attempt cuts next-attempt success to $q/p \in [0.203, 0.529]$ under equal issue weighting, while naive pair pooling on adaptive logs inflates Llama 3 8B from 0.489 to 1.05. Once repository-ranked breadth clears high-yield codebases, first-failure call-cost terciles (<=49 calls yielding 5.45 repairs per 1,000 calls) overtake low-yield fresh tail repositories (Kotlin 1.99, Scala 3.36), adding +30.8 held-out repairs at 30% budget and +48.2 at 35% without external verifiers.

Figure 1: Persistent difficulty and endogenous queue crossing

2. Gemma 4 31B Sandbox Waterline & ATIF v1.7 Trajectory X-Ray (228 Rollouts)

Auditing all 129 public benchmark tasks separates 76 default-passing tasks (p = 0.298, q/p = 0.440) from 53 container-blocked tasks (23 missing inline_snapshot or dirty_equals wheels; 30 needing per-task environment calibration), preventing zero-imputed denominator distortion (p = 0.176). Across 228 Gemma 4 31B A100 trajectories, truncated edit_file calls missing old_string trigger 1,988 observed schema rejections across 7,157.4 seconds of preceding intervals (238 schema rejects vs. 69 final counted tools in rich_2943 R3; 242 schema rejects vs. 13 final counted tools in rich_3882 R3; per-call counter transitions are not logged in ATIF traces, so direct counter-exclusion proof is marked null in the audit JSON and requires harness source inspection). Under a conditional 3600s sensitivity counterfactual replay (not measured 60-minute runs), single-policy fuse_schema_3 shows +10.71 [2.0, 19.0] at 0% late recovery and +3.97 [-4.0, 12.0] at 100% late recovery, while showing -1.904 [-6.0, 2.0] against the observed 600s cap baseline (see ERRATA.md).

Figure 2: Gemma 4 31B sandbox waterline and ATIF v1.7 trajectory X-ray

3. Fluid-Queue Stopping-Value Manifold & ROC AUC Orthogonality (105 Settings)

For a queue with total cost $C$, baseline repairs $T$, shadow price $\lambda = T/C$, saved calls $R$, and sacrificed repairs $Y$, net repair gain at budget $B$ follows the closed-form identity $\Delta G = B(\lambda R - Y)/(C - R)$, matching 1,000-order finite-queue replay with $R^2 = 0.996$ (MAE = 0.148 vs 1.643 for naive linear $B(\lambda R - Y)/C$). Because ROC AUC ignores saved cost $R$, selecting runtime monitors by training $\Delta G$ beats cross-validated ROC AUC selection by +13.8 held-out repairs across four agent systems (OpenHands step-5 gate: Held-out AUC = 0.493, yet 40 stops save 1,164 calls and add +3.31 net repairs).

Figure 3: Analytical stopping-value manifold and ROC AUC orthogonality

Summary of Headline Results

Dimension Corpus / System Scope Core Finding Held-Out / Replay Gain
Breadth vs. Immediate Retry 5,056 Qwen3.8-27B / 6,282 Qwen3-Coder-480B / 76 Gemma 4 31B tasks Equal-issue $q/p \in [0.203, 0.529]$; breadth beats retry-first at 30% budget +43.2% to +78.9% (+816 Qwen3.8 repairs)
Endogenous Queue Crossing 2,464 held-out Qwen3.8-27B / 3,151 held-out Qwen3-Coder-480B tasks Cheap first failures (<=49 calls) overtake weak fresh tail repos; 480B abstains at $q/p = 0.203$ +30.8 at 30%, +48.2 at 35% (+68.1 ranked breadth on 480B)
Gemma 4 Sandbox & Breakers 129 public reference checks + 228 Gemma 4 31B A100 ATIF v1.7 rollouts 76/129 default-evaluable; 1,988 observed edit_file schema rejects across 7,157.4s; 9 vs 0 exact-loop sign test ($p = 0.00391$) Conditional 3600s counterfactual fuse_schema_3: +10.71 [2, 19] (0%) to +3.97 [-4, 12] (100%); vs. observed 600s cap: -1.904 [-6, 2]
Stopping-Value Identity $\Delta G$ 105 policies across 4 systems on Verified (465), Lite (192), Multilingual (300) $\Delta G = B(\lambda R - Y)/(C - R)$ achieves $R^2 = 0.996$, 97.1% sign match +13.8 held-out repairs over CV ROC AUC selection

Reproduction Tiers (Public Verification vs. Raw Upstream Extraction)

To keep verification boundaries transparent, reproduction is split into three explicit tiers (full commands in analysis/README.md):

Tier 1: 5-Second Table & Figure Verification (Public Aggregated Ledgers)

Runs directly in a fresh clone of this repository in < 5 seconds, verifying all 158/158 numeric table cells against paper/writeup.md and rebuilding all 3 vector plates (analysis/requirements-confirmation.txt includes numpy, pandas, pyarrow, duckdb, scipy, matplotlib, Pillow, pypdf, and pymupdf):

python3 -m pip install -r analysis/requirements-confirmation.txt
python3 analysis/reproduce_confirmation.py
python3 analysis/publication_tables.py
python3 analysis/build_publication_figures.py

Tier 2: Independent Per-Attempt & Per-Event Re-Computation (Public Compact Ledgers)

Recomputes Gemma 4 31B p/q, 76/129 sandbox audit, 1,988 schema rejections, 7,157.4s preceding gaps, the 13-task matched sign test (9 vs 0), observed 600s-cap negative controls (-1.904), and 3600s conditional sensitivity replays directly from the public CSV ledgers (gemma4_sandbox_and_schema_audit_{attempts,events,reference}.csv):

python3 -B analysis/gemma4_sandbox_and_schema_audit.py --mode public --bootstrap 1000

To recompile and verify the 6-page PDF (paper/gemma4_queue_value_paper.pdf, requires Pandoc, pdfLaTeX with Times and New TX math, Ghostscript gs, qpdf, plus pymupdf from analysis/requirements-confirmation.txt):

python3 analysis/build_paper_pdf.py
python3 analysis/verify_paper_pdf.py

Tier 3: Raw Upstream Extraction (External Archives / Private Raw ATIF Traces)

Re-extracting raw prefix tables requires cloning the pinned SWE-bench/experiments commit and running fetch_swebench.py, fetch_multilingual.py, and fetch_mini_verified.py (with AWS CLI access to public s3://swe-bench-submissions). Running analysis/gemma4_sandbox_and_schema_audit.py --mode raw requires unbundled local raw ATIF archives (evidence/gemma_a100/legacy_summary.json, evidence/gemma_a100/attempts.json, .ai/gpu/runs/full76/results/r*/.../trace_*.json, and analysis/analyze_stability.py). See analysis/README.md for exact hashes and commands.

Repository Contents

License & Attribution

All original repository code, analysis scripts, documentation, and derived compact ledgers in this repository are released under the MIT License. Upstream public datasets and models (SWE-bench Verified/Lite/Multilingual, Nebius SWE-agent and OpenHands trajectory corpora, and Google Gemma 4) remain subject to their respective upstream licenses.

About

Move On Until the Next Issue Is Worse: Runtime stopping value and test-time compute allocation across 229,580 coding-agent trajectories (+43.2% to +78.9% repairs at 30% budget).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages