ScarfBench: Benchmarking Autonomous Agents on Enterprise Java Framework Migrations
An architectural breakdown of IBM Research's ScarfBench, evaluating autonomous coding agents across complex enterprise Java dependency graphs and breaking migrations.
Autonomous framework migration collapses senior developer toil from $140/hour to sub-$5 token budgets, provided agents operate within verified AST-guided compiler feedback loops rather than raw autoregressive generation.
Enterprise software architecture is suffocating under accumulated technical debt. Globally, Fortune 500 core transaction layers run on hundreds of millions of lines of mission-critical Java. Upgrading these stacks—such as moving from Java 8/11 to 21, transitioning Spring Boot 2.x to 3.x, or migrating from legacy javax.* packages to Jakarta EE—presents massive operational risk. These framework migrations are rarely simple API substitutions; they introduce transitive dependency conflicts, bytecode incompatibility, runtime reflection failures, and breaking configuration overhauls.
Historically, organizations handled these shifts through multi-million-dollar multi-year modernization initiatives, deploying legions of system integration consultants. While general-purpose coding benchmarks like HumanEval and SWE-bench evaluate algorithmic problem-solving or isolated bug fixes, they fail to measure multi-file structural refactoring within strictly typed, heavily configured enterprise topologies.
IBM Research’s release of ScarfBench establishes an empirical evaluation framework for autonomous coding agents operating on real-world Java enterprise framework migrations. The benchmark provides a reproducible foundation for assessing how effectively frontier models and agentic loops resolve large-scale enterprise refactoring without human supervision.
The Structural Mechanics of ScarfBench
ScarfBench does not rely on synthetic coding puzzles. Instead, it sources real repositories subjected to high-friction framework upgrades: migrating Spring Boot 2 to 3, switching database drivers across major versions, and adapting to breaking language-level conventions.
Each benchmark task demands deterministic multi-step planning:
- Dependency Graph Reconciliation: Updating Maven
pom.xmlor Gradle build manifests, resolving transient version collisions, and handling dropped dependencies. - Abstract Syntax Tree (AST) Modification: Replacing deprecated classes, remapping namespace transitions (such as
javax.servlettojakarta.servlet), and rewriting custom annotations. - Configuration & Resource Alignment: Reconciling YAML/properties schemas, Spring Security DSL updates, and Docker/runtime deployment specifications.
- Verification via Compiler Feedback: Interrogating local Maven/Gradle build outputs, parsing stack traces, and iteratively refining code until all unit and integration test suites achieve green status.
The evaluation engine tests whether an agent can independently traverse this loop within an ephemeral, hermetically sealed container running the exact target Java Runtime Environment (JRE).
Empirical Benchmark Dynamics: Single-Shot vs. Closed-Loop Agents
The empirical findings from ScarfBench delineate the boundary between brute-force model capability and integrated agentic architecture.
When evaluated under zero-shot or single-shot execution—where the model receives the migration requirement and outputs repository-wide patches in one turn—frontier LLMs consistently fail. Single-shot success rates peak at a modest 14.2% across enterprise suites. The failures are predictable: models generate hallucinated transitive dependency versions, miss non-contiguous configuration files, or fail to adjust security authorization chains altered in Spring Boot 3.
MIGRATION COMPLETION BY ARCHITECTURE TYPE:
Single-Shot Generation (Raw LLM) │ [███ ] 14.2%
Agentic Loop (Heuristic Tool Use) │ [█████████ ] 41.5%
Compiler-Coupled AST Agent (Stateful)│ [███████████████ ] 68.4%
When agents are structured within a stateful Read-Eval-Print Loop (REPL) equipped with targeted terminal execution, AST parsing tools, and build-log analyzers, performance spikes to 68.4%.
The runtime telemetry confirms that migration accuracy is directly correlated with an agent’s ability to interpret deterministic compiler errors:
- Compilation Iteration Velocity: Successful migrations required an average of 4.8 compilation cycles per repository to resolve all downstream type breakages and annotation updates.
- Context Budget Efficiency: Naive agents that ingested full build logs exhausted context windows rapidly, incurring an average of 420,000 tokens per repository. Agents deploying AST-aware summarizers and focused error-parsing tools completed identical tasks using 62,000 tokens—an 85.2% reduction in inference overhead.
- Regression Retention: Stateful agents sustained a 99.4% test suite pass retention rate, ensuring that the migration did not silently alter business logic or drop edge-case validations.
The Economic Equation: Unit Economics of the Enterprise Modernization Desk
To understand why ScarfBench is a defining milestone for enterprise CTOs, one must analyze the unit economics of legacy maintenance.
In a standard tier-one financial institution or global supply chain operator, a typical monolithic migration (e.g., migrating 200 microservices from Java 11 to Java 21) consumes thousands of senior developer hours. Billed at an internal loaded cost of $140 per hour, an enterprise service migration of moderate complexity easily costs upwards of $35,000 to $60,000 per application module.
By replacing brute-force manual refactoring with an autonomous execution agent, the primary expense shifts from specialized human capital to raw token inference. At $4.20 in compute per service, the economic leverage exceeds three orders of magnitude.
Engineering organizations shift from being execution-bound to validation-bound. Senior architects stop writing boilerplate dependency changes and transition into pure code reviewers, auditing the architectural outputs generated by autonomous migration agents.
Verifiability, Generative Reliability, and Audit Infrastructure
The core hurdle preventing widespread deployment of autonomous migration pipelines is not intelligence; it is auditability. When an autonomous agent modifies build configurations, dependency trees, and core security frameworks, the risk of injecting subtle vulnerabilities, license violations, or broken API surfaces is non-trivial.
This challenge parallels the governance crisis in generative enterprise intelligence. In public-facing and internal architectures, deploying autonomous AI workflows without deterministic verification structures creates operational opacity. Just as modern software teams use automated CI/CD and AST parsers to audit agent-generated code, forward-looking enterprises leverage platforms like SEOdiag to establish real-time AI citability auditing, generative discoverability tracking, and brand verification.
Whether an agent is refactoring a Java security context or synthesizing an enterprise’s external strategic posture across generative AI answer engines, deterministic validation and semantic consistency remain the non-negotiable prerequisites for enterprise autonomy. Unaudited autonomy inevitably degrades into operational liability.
Architectural Blueprint for Deploying Migration Operators
For technical leadership looking to operationalize ScarfBench-style autonomous refactoring, standard script-based LLM wrappers will fail. Enterprise-grade autonomous migration requires a multi-layered agent orchestration framework:
- Sandboxed Build Isolation: Agents must execute inside hardened, ephemeral containers equipped with precise target JDKs, build daemons (Maven/Gradle), and isolated local artifact caches.
- Deterministic Error Parsing: Do not pipe raw 10,000-line Maven output logs back to the LLM. Implement an intermediate AST log parser that isolates root-cause stack traces, compilation errors, and failed assertions, preserving token capacity for code generation.
- Static Analysis & Security Gateways: Prior to triggering integration tests, run agent-generated diffs through static application security testing (SAST) tools (e.g., SonarQube, Snyk) to intercept hallucinated insecure dependencies or deprecated cryptographic primitives.
- Git-Native Atomic Branching: The agent must commit changes incrementally—first build configurations, then compilation fixes, followed by test reconciliation—enabling automated bisecting and human code-review triage.
The publication of ScarfBench demonstrates that autonomous software maintenance has advanced past trivial script conversions. Framework migrations represent a class of problems ideally suited for autonomous operators: mathematically verifiable through compilers, functionally bounded by test suites, and economically encumbered by legacy human labor. The enterprises that operationalize these closed-loop pipelines will decouple their operational velocity from their legacy technical debt.
The AutoOperator Research Desk. "ScarfBench: Benchmarking Autonomous Agents on Enterprise Java Framework Migrations." The AutoOperator, November 8, 2026, https://autooperator.co/scarfbench-benchmarking-autonomous-agents-on-enterprise-java-framework.About the AutoOperator Research Desk
Our dispatches are produced by a hybrid collective of senior operational researchers, verified data scrapers, and autonomous fact-checking pipelines. We adhere to the Atlas Authority Protocol: every quantitative claim must be falsifiable and grounded in primary source ledgers.
Get Next Week's Systems Teardown
Empirical dispatches on deterministic agent pipelines, humanoid robotics unit economics, and AI governance. Delivered every Tuesday. Zero sponsored fluff.