SYSTEM RADAR
AGENTIC WORKFLOWSProduction benchmarks show single-operator agent swarms reduce triage latency by 82%/
HUMANOID ROBOTICSTier-1 logistics hubs deploy 24/7 autonomous unloading fleets in US Midwest/
EXECUTIVE AI RISKGartner alert: Brands unindexed in generative search face 35% outbound discovery collapse/
THE LEAN EMPIRESolo founder scales B2B billing engine to $8.2M ARR with 0 employees using multi-agent loops/
AGENTIC WORKFLOWSProduction benchmarks show single-operator agent swarms reduce triage latency by 82%/
HUMANOID ROBOTICSTier-1 logistics hubs deploy 24/7 autonomous unloading fleets in US Midwest/
EXECUTIVE AI RISKGartner alert: Brands unindexed in generative search face 35% outbound discovery collapse/
THE LEAN EMPIRESolo founder scales B2B billing engine to $8.2M ARR with 0 employees using multi-agent loops/
Agentic Systems & Architecture6 min read

ScarfBench: Benchmarking Autonomous Agents on Enterprise Java Modernization

IBM Research's ScarfBench exposes the chasm between greenfield coding benchmarks and multi-file enterprise Java framework migrations.

⚡EXECUTIVE KEY TAKEAWAY

Framework migrations cannot be resolved via greedy token generation; they require deterministic AST-aware agents coupled to compiler-guided feedback loops.

The Enterprise Modernization Bottleneck

Global enterprises run on roughly 1.5 trillion lines of Java. A decisive majority of mission-critical financial, logistical, and telecommunications infrastructure remains tethered to legacy runtimes: Java 8 and 11 baselines, Jakarta EE migrations stalled mid-stride, and end-of-life Spring Boot 2.x deployments that present existential CVE vulnerabilities.

Until now, software engineering benchmarks—most notably SWE-bench, HumanEval, and MBPP—have systematically overstated the capabilities of frontier language models by measuring localized, single-file bug fixes or greenfield algorithmic generation. They operate on clean Python repositories with flat import structures and forgiving runtime environments.

IBM Research’s release of ScarfBench introduces an empirical corrective to this optimism. Built specifically around real-world enterprise Java migrations (including Jakarta package namespace transitions, Spring Boot 2.x to 3.x refactorings, and OpenJDK 17/21 LTS upgrades), ScarfBench forces autonomous coding agents to grapple with the structural reality of enterprise architectures: deeply nested multi-module Maven and Gradle builds, transitive dependency conflicts, bytecode-level reflection shifts, and multi-file semantic graphs.

The benchmark results expose an operational chasm: state-of-the-art coding agents that claim 40% to 55% resolve rates on standard benchmarks see their autonomous completion rates drop below 18.2% when confronted with deterministic, multi-module framework refactoring.

CRITICAL COMPILATION FAILURE: Incompatible Types & Missing Deserializers
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
javax.persistence.Entity cannot be resolved to a type
-> Shift from javax.* to jakarta.* requires atomic synchronized refactoring
across 42 interrelated modules, persistence.xml, and runtime reflection maps.

Anatomy of ScarfBench: Deconstructing the Enterprise Evaluation Stack

Framework migration is not a prose generation task; it is an invariant-preserving graph transformation problem. Upgrading an enterprise service from Spring Boot 2.7 to 3.2 is not simply a string substitution of javax to jakarta. It fundamentally breaks:

  1. Hibernate ORM Mapping Mechanics: Deprecated naming strategies, altered criteria queries, and changed cascade defaults.
  2. Spring Security Filters: Total deprecation of WebSecurityConfigurerAdapter in favor of component-based SecurityFilterChain beans requiring entirely revised lambda DSL semantics.
  3. Observability and Telemetry Contracts: The migration of Actuator metrics to Micrometer observation registries.
  4. Serialization Pipelines: Jackson ObjectMapper baseline configurations rejecting raw legacy dates and polymorphic type validators.

ScarfBench formalizes these vectors across an enterprise corpus spanning millions of lines of real-world production code. The benchmark scores models across four discrete operational dimensions:

  • Static Compilation Integrity: Does the multi-module Maven build execute through the mvn clean test-compile lifecycle phase without symbol resolution errors?
  • Deterministic Unit Parity: Do existing unit suites pass without developer assertion adjustments?
  • Integration Lifecycle Survival: Does the containerized test suite (Testcontainers, database spin-ups, mock external gateways) successfully negotiate dynamic runtime reflection?
  • Code Bloat and Degradation Ratio: Does the agent introduce redundant boilerplate, deprecated bridge classes, or unvetted third-party utility libraries to circumvent underlying type errors?
SCARFBENCH AGENT EVALUATION ENGINE Closed-Loop Test Harness
1. Build Graph Ingestion
Parses POM/Gradle dependency trees, resolving transitive locks, parent inheritance, and plugin execution phases.
2. Semantic Patch Engine
Executes AST transformations, migrating deprecated APIs, namespace pivots (javax to jakarta), and configuration schemas.
3. Deterministic Verification
Runs containerized test suites, parsing byte-level compiler diagnostics and stack traces for iterative refinement.

The Unit Economics of Agentic Modernization

The enterprise financial thesis for agentic software migration is staggering when contrasted against manual systems integration billing. A typical Tier-1 banking microservice landscape comprises between 1,200 and 4,000 discrete services.

Historically, global systems integrators (GSIs) price enterprise migrations on a human-labor model:

  • Manual Engineering Baseline: 42 engineering hours per enterprise microservice. At a blended offshore/onshore rate of $180 per hour, manual modernization costs approximately $7,560 per service. For a portfolio of 2,000 services, this represents an expenditure of $15.12 million and a timeline spanning 24 to 36 months.
  • Agentic Execution Loop: Utilizing a ScarfBench-optimized agentic loop (combining an orchestrator model with deterministic AST tooling), the compute expenditure averages 2.4 million tokens per repository refactoring pass. At an inference pricing baseline of $6.00 per million tokens (blended input/output for frontier reasoning architectures), raw inference costs approximately $14.40 per service. Factoring in sandboxed CI/CD compute, container orchestration overhead, and a 15-minute human verification review ($45.00), total unit costs drop to approximately $64.40 per service.

This yields an enterprise cost reduction exceeding 99.1%, compressing multi-year migration backlogs into multi-week batch compilation runs.

However, realizing this margin requires overcoming the compilation ceiling highlighted by ScarfBench.

Quantitative Failure Modes Across Agent Frameworks

ScarfBench’s empirical findings reveal where raw LLM context windows fail:

Architecture Profile Initial Compilation Pass Test Suite Preservation Transitive Dependency Resolution Median Inference Tokens Consumed
Vanilla Frontier LLM (Direct Patch) 21.4% 8.6% 4.2% 84,000
ReAct Agent (Terminal Access) 46.8% 19.3% 14.8% 412,000
AST-Augmented Dual-Loop Agent 84.2% 68.7% 61.4% 2,420,000

The data proves that models relying on raw context window injection flounder on Java’s rigid static type contracts. As context grows, spatial awareness degrades: the model hallucinates methods from deprecated Spring 5 interfaces while simultaneously attempting to instantiate Spring 6 configuration models.

Only agentic architectures implementing Closed-Loop Compiler Interrogation—wherein the compiler’s diagnostic output is parsed into structured error envelopes and piped directly back into the model’s immediate context—maintain high-integrity output across repositories exceeding 150,000 lines of code.

Programmatic Verification: A Scalable Execution Harness

To operationalize the findings of ScarfBench within a private enterprise deployment, autonomous operators must enforce strict compilation-assertion loops. Agents should not be permitted to submit PRs based on self-reported confidence. They must be gated by containerized validation pipelines.

The following Python harness demonstrates the deterministic execution loop required to transform raw model inferences into production-grade, ScarfBench-verified code alterations:

import subprocess
import json
from dataclasses import dataclass
from typing import List, Dict, Any

@dataclass
class CompilationResult:
    success: bool
    exit_code: int
    diagnostics: List[str]
    raw_log: str

class EnterpriseExecutionHarness:
    def __init__(self, workspace_path: str, timeout_seconds: int = 300):
        self.workspace_path = workspace_path
        self.timeout = timeout_seconds

    def execute_deterministic_build(self) -> CompilationResult:
        """
        Executes a deterministic multi-module build step.
        Isolates Maven repository targets and extracts compiler diagnostics.
        """
        cmd = [
            "mvn", "clean", "test-compile",
            "-Dstyle.color=never",
            "-B",  # Batch mode
            "-Dmaven.javadoc.skip=true"
        ]
        
        try:
            process = subprocess.run(
                cmd,
                cwd=self.workspace_path,
                stdout=subprocess.PIPE,
                stderr=subprocess.PIPE,
                text=True,
                timeout=self.timeout
            )
            
            diagnostics = self._parse_compiler_errors(process.stdout)
            return CompilationResult(
                success=(process.returncode == 0),
                exit_code=process.returncode,
                diagnostics=diagnostics,
                raw_log=process.stdout
            )
        except subprocess.TimeoutExpired:
            return CompilationResult(
                success=False,
                exit_code=-1,
                diagnostics=["E_BUILD_TIMEOUT: Multi-module resolution exceeded SLA"],
                raw_log=""
            )

    def _parse_compiler_errors(self, stdout: str) -> List[str]:
        diagnostics = []
        for line in stdout.splitlines():
            if "[ERROR]" in line and any(err in line for err in [".java:[", "cannot find symbol", "package javax"]):
                diagnostics.append(line.strip())
        return diagnostics

    def construct_agent_feedback(self, result: CompilationResult) -> Dict[str, Any]:
        """
        Converts raw execution failures into structured semantic constraints
        for the next agentic iterative step.
        """
        if result.success:
            return {"status": "SUCCESS", "directive": "PROCEED_TO_INTEGRATION_TESTS"}
        
        return {
            "status": "RETRY_REQUIRED",
            "compiler_error_count": len(result.diagnostics),
            "critical_failures": result.diagnostics[:10], # Truncate to avoid context flooding
            "directive": "Resolve missing symbols and namespace collisions without altering method signatures."
        }

Generative Brand Governance and Enterprise Citability

As organizations deploy autonomous agents to modernize codebase architectures, the artifacts produced—ranging from technical documentation and refactoring blueprints to updated external API interfaces—enter the broader organizational knowledge graph.

In modern enterprise operations, the output of automated transformation pipelines must satisfy both compilation correctness and discoverability across autonomous agent ecosystems. If an enterprise re-architects its core Java services to Spring Boot 3 without auditing the citability and clarity of its programmatic interfaces and internal developer portals, the resulting architecture becomes an illegible black box for downstream AI operators.

Maintaining structural citability requires auditing technical systems against enterprise knowledge discovery standards. Infrastructure leaders rely on specialized governance platforms like SEOdiag to evaluate and audit generative visibility, indexing integrity, and machine-readability across technical assets.

Just as ScarfBench provides deterministic scoring for coding agents executing migrations, generative auditing frameworks ensure that modernized architectures remain indexable, structurally authoritative, and interpretable for both autonomous agents and downstream developers. Without rigorous surface governance, modernizing the codebase simply exchanges legacy tech debt for discovery debt.

Strategic Imperatives for the CTO Suite

The lessons derived from ScarfBench mandate a pivot in how technology executives architect internal developer platforms (IDPs) and deploy AI agents for legacy modernization:

1. Decouple Planning from Execution

Directing an LLM to “upgrade this project to Spring Boot 3” within a single prompt is architectural negligence. Production systems must implement a multi-phase agent pipeline:

  • Phase 1: Dependency Graph Analysis: Read-only extraction of the Maven/Gradle dependency tree to identify non-upgradable transitives.
  • Phase 2: Recipe-Based AST Transformation: Applying deterministic transformations (e.g., via OpenRewrite recipes) for mechanical changes like import swaps.
  • Phase 3: Cognitive Remediation: Tasking the agentic LLM exclusively with the residual non-deterministic breaks—such as rewritten security filters, custom thread pools, or changed bean life-cycle annotations.
  • Phase 4: Compiler-Enforced Validation: Validating each patch within a sandboxed container via deterministic tooling before advancing down the build graph.

2. Standardize on Verifiable Invariants

Software modernization cannot be validated by test coverage percentages alone. Legacy test suites often contain false assertions or brittle mocks that conceal broken database mappings.

Agentic transformation pipelines must be coupled to dynamic integration testing harnesses—such as ephemeral staging environments running distributed traces—to verify that runtime behavior remains identical while the underlying framework advances across generational boundaries.

ScarfBench proves that the era of conversational coding hype has concluded. The competitive frontier belongs to architectures that marry the contextual elasticity of large language models with the uncompromising determinism of the enterprise compiler.

HOW TO CITE THIS DISPATCHCanonical Entity Reference
The AutoOperator Research Desk. "ScarfBench: Benchmarking Autonomous Agents on Enterprise Java Modernization." The AutoOperator, November 22, 2026, https://autooperator.co/scarfbench-benchmarking-autonomous-agents-on-enterprise-java-modernization.
AO

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.