SWE-Flux: Repository-Level Runtime-Behavior Reasoning Benchmark
Source: arXiv:2609.28449v1 (2026-09-23) — Taherkhani, Abdollahi, Sepidband, Dhulipala, Nguyen et al. (6 authors).
Problem
LLM coding benchmarks evaluate static code understanding (often with LLM-judged answers), while execution-reasoning benchmarks are limited to snippets/functions. Can LLMs reason about runtime behavior at repository scale?
Benchmark Design
- 480 execution-grounded instances across 12 real Python repositories.
- Gold answers harvested automatically from instrumented test executions — not written manually, not judged by LLMs (removes judge bias and manual cost).
- Coverage: single-test and multi-test questions over control flow, loops, program state, dataflow, exceptions, program invariants.
- Variant generation via input perturbation: the oracle-harvesting pipeline generates fresh benchmark variants — valid for ~90% of selected instances, and substantially harder.
Key Findings (5 LLMs evaluated)
| Result |
Detail |
| Best model accuracy |
only 37% — task remains challenging |
| Stronger areas |
localized behavior: invariants, intra-procedural control flow, exceptions, simple loops |
| Weaker areas |
dataflow, inter-procedural execution, precise state reasoning, suite-level aggregation |
Reusable Pattern: Oracle Harvesting
The methodology generalizes to any codebase:
- Instrument test executions to capture runtime traces (variable states, branch outcomes, exceptions).
- Harvest ground truth from the traces automatically → answers to "what happens at runtime" questions without manual labeling.
- Perturb inputs to generate fresh variants (controls contamination/memorization; produces harder instances).
- Question types: single-test (one path) vs multi-test (aggregation across a suite).
Usage
- Evaluating agents on code reasoning: measures dynamic behavior understanding that static QA misses; the 37% ceiling shows large headroom.
- Building execution-grounded evals for private codebases: apply the instrumented-execution harvest pipeline to your own repos.
- Diagnosis: distinguish localized vs global failure — a model strong on invariants but weak on dataflow points to different improvement levers.
Related Skills
dogfood — exploratory QA of web apps
agent-integration-testing — agent framework testing
petri-alignment-tool — alignment testing toolbox
1---2name: swe-flux-runtime-reasoning-benchmark3description: Use when evaluating LLM code-execution reasoning or building execution-grounded benchmarks. Repository-level dynamic benchmark with gold answers auto-harvested from instrumented test executions, covering control flow, loops, state, dataflow, exceptions, invariants.4trigger: runtime behavior reasoning, execution-grounded benchmark, repository-level QA, SWE-Flux, oracle harvesting, program state reasoning, input perturbation variants, LLM code reasoning evaluation5category: ai_collection6metadata:7 source: https://skillmd.com/skills/hiyenwong/swe-flux-runtime-reasoning-benchmark8---910# SWE-Flux: Repository-Level Runtime-Behavior Reasoning Benchmark1112**Source**: arXiv:2609.28449v1 (2026-09-23) — Taherkhani, Abdollahi, Sepidband, Dhulipala, Nguyen et al. (6 authors).1314## Problem1516LLM coding benchmarks evaluate **static code understanding** (often with LLM-judged answers), while execution-reasoning benchmarks are limited to **snippets/functions**. Can LLMs reason about **runtime behavior at repository scale**?1718## Benchmark Design1920- **480 execution-grounded instances** across **12 real Python repositories**.21- **Gold answers harvested automatically from instrumented test executions** — not written manually, not judged by LLMs (removes judge bias and manual cost).22- Coverage: single-test and multi-test questions over **control flow, loops, program state, dataflow, exceptions, program invariants**.23- **Variant generation via input perturbation**: the oracle-harvesting pipeline generates fresh benchmark variants — valid for ~90% of selected instances, and substantially harder.2425## Key Findings (5 LLMs evaluated)2627| Result | Detail |28|---|---|29| Best model accuracy | only **37%** — task remains challenging |30| Stronger areas | localized behavior: invariants, intra-procedural control flow, exceptions, simple loops |31| Weaker areas | **dataflow, inter-procedural execution, precise state reasoning, suite-level aggregation** |3233## Reusable Pattern: Oracle Harvesting3435The methodology generalizes to any codebase:36371. **Instrument** test executions to capture runtime traces (variable states, branch outcomes, exceptions).382. **Harvest ground truth** from the traces automatically → answers to "what happens at runtime" questions without manual labeling.393. **Perturb inputs** to generate fresh variants (controls contamination/memorization; produces harder instances).404. Question types: single-test (one path) vs multi-test (aggregation across a suite).4142## Usage43441. **Evaluating agents on code reasoning**: measures dynamic behavior understanding that static QA misses; the 37% ceiling shows large headroom.452. **Building execution-grounded evals for private codebases**: apply the instrumented-execution harvest pipeline to your own repos.463. **Diagnosis**: distinguish localized vs global failure — a model strong on invariants but weak on dataflow points to different improvement levers.4748## Related Skills4950- `dogfood` — exploratory QA of web apps51- `agent-integration-testing` — agent framework testing52- `petri-alignment-tool` — alignment testing toolbox