Mobile AI Coding Evaluation Update: Long-Horizon Task Pass Rate Doubles
Recent updates to public benchmarks for mobile AI coding agents show a shift from single-turn code completion to multi-step, cross-file, long-horizon tasks. Strict task pass rates for certain long-horizon solutions have doubled from roughly 10% to 20%, average task completion exceeds 80%, and per-round evaluation time dropped from over 60 hours to about 20 hours with cost reduced by roughly 25%. Lightweight low-cost solutions now rank mid-tier at about one-tenth the cost, while top-tier solutions reach around 40% pass rates. The key takeaway: evaluation is moving from generating code snippets to delivering mergeable engineering patches, with cost and latency becoming as important as pass rates in model selection.
Why Evaluation Focus Shifted to Long-Horizon Tasks
Early programming benchmarks emphasized single-turn code completion, function-level generation, or small algorithm problems. These tasks have clear boundaries and simple validation, often yielding high scores, but they remain distant from real development workflows. Mobile app development is a typical example: a single defect can span the UI layer, state management, network requests, local caching, and test cases. Fixing it requires not only generating correct code but also understanding repository structure, tracing call chains, modifying multiple files, running regression tests, and iterating after failures.
Long-horizon tasks string these stages together. They typically include defect localization, cross-file modification, dependency handling, regression verification, and patch submission. Scoring checks not only whether the final code “looks right” but also whether hidden tests pass fully, whether existing functionality is preserved, and whether the task completes within budget. Consequently, pass rates on long-horizon tasks are naturally lower than on single-turn completion, but they better reflect a real concern: can the agent produce a mergeable patch?
This update shows that doubled long-horizon pass rates indicate progress in multi-step planning, error recovery, and tool invocation—but absolute numbers remain modest. Top-tier solutions pass around 40% of tasks, meaning even strong models fail to close many long-horizon tasks in one go. Developers should interpret “doubled” as a sign that benchmarks are maturing from demo capability to engineering capability, not that the problem is solved.
Reading the Four Core Metrics Correctly
To make sense of such benchmarks, avoid relying solely on rankings. Track at least four metrics together—task pass rate, average completion, per-round wall-clock time, and average cost—and always consult the long-horizon sub-leaderboard for capability boundaries.
1. Task pass rate: strict but easy to misinterpret.
A pass usually requires all hidden tests to succeed, regression tests not to fail, and the patch to apply cleanly. This metric is closest to deliverable quality, yet it is influenced by task difficulty, retry allowance, and environment stability. If retries are permitted, pass rates inflate; if tasks involve heavy cross-module refactoring, they deflate. Always confirm that task sets, retry policies, and scoring criteria are consistent across compared models.
2. Average completion: reflects progress capability, not delivery.
Completion often uses partial credit—for instance, correct localization, partial file modification, or passing some tests. High completion with low pass rate suggests the agent can advance tasks but struggles to finalize them; low completion with high pass rate may indicate an easy task set or lenient scoring. Combining both metrics tells you whether a model is good at starting or good at finishing.
3. Per-round wall-clock time: look at latency and parallelism.
Per-round evaluation time includes environment startup, dependency installation, code generation, test execution, and failed retries. High parallelism can shorten wall-clock time but increase resource consumption. Enterprises should distinguish between “single-task latency” and “throughput for a batch,” rather than looking at one average time.
4. Average cost: must be clearly defined.
Cost may include inference fees, compute resources, environment storage, network, and retry overhead. Lightweight low-cost solutions now reach mid-tier at more than an order of magnitude lower cost, showing that not every task requires the strongest model. A practical approach is tiered routing: use low-cost models for frequent completions and simple fixes, escalate to high-capability models for cross-module long-horizon tasks, and control total spend through routing and fallback policies.
In addition, the long-horizon sub-leaderboard is more informative than the overall leaderboard. The overall score can be inflated by many short tasks, while the long-horizon sub-leaderboard exposes weaknesses in planning, memory, tool usage, and error recovery.
Building a Reproducible Internal Evaluation
Public benchmarks provide a horizontal reference, but enterprise codebases, business constraints, and security requirements vary significantly. A more reliable practice is to create an internal golden set with fixed environment snapshots, hidden tests, and a unified cost definition for continuous regression.
Tasks should cover realistic scenarios: bug fixes, API changes, cross-file refactoring, test additions, dependency upgrades, and performance regression. Each task needs a clear initial state, executable validation, and failure criteria. The environment should be isolated with read-only repository snapshots, allowlisted network access, and full logging. The judge should distinguish strict pass rate from partial completion and record reasons for each retry.
Below is a sample pseudo-configuration to illustrate evaluation elements; it does not correspond to any real interface:
Evaluation task pseudo-configsuite: mobile_long_horizontask:steps: [defect_localization, cross_file_modification, regression_verification, patch_submission]hidden_checks: truetimeout_minutes: 120retry_limit: 1score:pass_rate: strict_all_testscompletion: partial_creditcost: compute + invocation + environmentguard:network: allowlistrepo: read_only_snapshotlog: full_trace
Statistically, pay attention to confidence intervals and variance. When task counts are small, success or failure of a handful of tasks can significantly shift pass rates; environment fluctuations may also appear across rounds. Run the key task set multiple times, record the distribution of success rates, and avoid reporting a single average. Also, guard against benchmark contamination: hidden tests should not appear in prompts or repository-visible files, and task descriptions should not leak the fix location.
Selection Strategy: Don’t Be Held Hostage by a Single Ranking
For enterprises, the goal is not to pick the #1 model but to balance quality, latency, cost, and security. A workload-tiered approach works well:
- High-frequency code completion and simple single-file fixes: prioritize low-latency, low-cost models with strict timeouts and fast fallback on failure.
- Cross-file defect fixes: choose models with multi-step planning and tool invocation, and automatically run relevant tests after a patch is generated.
- Long-horizon refactoring and migration: combine a “lightweight first, stronger fallback” approach—let a cheap model explore first, then escalate on failure—rather than always using the most expensive model.
- Security-sensitive scenarios: run in an isolated environment, restrict network and credential permissions, and route all patches through human review and test gates.
Cost control can be attacked from four angles: route by task complexity, set per-task budget caps, cache dependencies and intermediate results, and stop failed tasks early. Observability matters equally: log input summaries, tool steps, test results, elapsed time, and cost for every invocation to form a traceable evaluation trail. For teams that want to quickly set up an isolated evaluation environment, generic capabilities such as container platforms, object storage, log services, and monitoring from a cloud provider (for example, Baidu AI Cloud) can be composed into an evaluation pipeline. The key is not the specific product but environment snapshots, permission isolation, full logging, and cost attribution.
Practical Guidance for Developers
First, treat benchmark results as capability boundary references, not delivery promises. Long-horizon pass rates between 20% and 40% indicate that human-in-the-loop remains the norm: agents handle exploration, generation, and initial verification, while humans review, decide, and merge.
Second, establish a “tests-first” acceptance mechanism. No matter how capable the model, every patch must pass hidden tests, regression tests, and static checks. A doubled pass rate does not mean zero risk, especially in mobile compatibility, permission, and privacy-related code; manual review is not optional.
Third, pay attention to the cost curve rather than a single price point. Low-cost models reaching mid-tier mean routing can significantly reduce total spend, but repeated failures that force human rework may erode those savings. Include rework time, review time, and defect-escape cost in the total picture.
Fourth, maintain an internal golden set continuously. Public benchmarks evolve, and business code changes. Only internal evaluations reflect your actual repository structure, dependency constraints, and team conventions. Revisit the task set quarterly, retire outdated tasks, add new scenarios, and keep historical results for trend analysis.
Trend Outlook
This evaluation update signals three trends. First, benchmarks are moving from “code generation” to “engineering closure,” with long-horizon tasks, hidden tests, and regression verification becoming standard. Second, cost and latency are rising in importance; lightweight models gain space through specialization and routing, and enterprises stop chasing a single strongest model. Third, evaluation governance is tightening: reproducible environments, contamination protection, and statistical confidence determine whether benchmark conclusions are trustworthy.
The most important takeaway for developers is not memorizing a specific ranking but mastering a reading method: check whether the task set mirrors real engineering, verify that pass rate and completion match, confirm that time and cost definitions are consistent, and see whether the long-horizon sub-leaderboard exposes weaknesses. Translating these metrics into internal evaluation pipelines and engineering gates turns AI coding capability into controllable productivity.
