Mobile AI Coding Benchmark Update: Long-Horizon Task Pass Rate Doubles

    Recent updates to mobile AI coding benchmarks reveal a significant shift from single-point code generation to end-to-end task completion. With the pass rate for long-horizon tasks doubling, this article examines key evaluation metrics—including pass rate, task completion, time, and cost—alongside the engineering challenges of managing complex AI coding tasks. It also provides practical guidance on designing a reproducible evaluation pipeline and offers selection recommendations for production environments.

    Mobile AI Coding Benchmark Update: Long-Horizon Task Pass Rate Doubles

    1. The Benchmark Signal: From “Writing Code” to “Completing Tasks”

    The evaluation of AI coding capabilities in mobile app development scenarios is shifting from single-point code generation to end-to-end task completion. Early benchmarks often only examined function completion, snippet generation, or simple bug fixes. These tasks have clear boundaries and are easy to verify, but they fail to reflect the complexity of real-world engineering. Real tasks typically involve multi-file modifications, dependency understanding, build and test feedback, state preservation, and multi-turn tool calls. An error in any single step can render the final result unusable.

    Therefore, the “doubled pass rate for long-horizon tasks” in recent public benchmark updates is a signal worth noting. It indicates that AI coding agents are making progress in task planning, context management, error recovery, and verification loops. However, an increased pass rate does not mean these agents can directly replace human labor, nor does it mean all tasks can be completed at a low cost. Developers need to evaluate the pass rate, average task completion, per-turn time, average cost, and long-horizon task rankings together in a single table to form an actionable basis for model selection.

    2. Metric Breakdown: Pass Rate Is Not the Only Answer

    1. Task Pass Rate: A Strict Metric for “Completely Correct”

    Task pass rate generally refers to the proportion of tasks where an agent meets the acceptance criteria in a single attempt or within a limited number of turns. It is the most intuitive metric, but strict pass rates are often low because minor errors in long-horizon tasks can be amplified by acceptance criteria. Public materials show that an iterative version improved its task pass rate on the same benchmark from 12.0% to 24.0%, doubling the previous generation, while leading solutions achieve around 40.0%. This indicates that even top-tier solutions still cannot stably pass a large number of complex tasks.

    For developers, the pass rate is suitable for horizontal comparison and trend observation, but it should not be the sole basis for production selection. A more reasonable approach is to combine it with your business task distribution to build a small internal validation set, tracking pass rates separately by categories such as “simple modifications,” “cross-file refactoring,” “bug localization,” “test completion,” and “build fixes.”

    2. Average Task Completion: The Engineering Value of “Partial Success”

    Average task completion reflects how many verifiable steps an agent completes within a task. Public materials show that an iterative version achieved an average task completion of 82.3%, ranking sixth on the long-horizon task leaderboard. Completion being higher than the pass rate suggests that agents can complete most intermediate steps but may still fail at final verification, boundary conditions, or integration phases.

    The practical significance of high completion is that it reduces manual intervention costs. For example, if the agent has already completed dependency analysis, code localization, and initial modifications, humans only need to correct minor errors. During enterprise evaluations, you should record the “time required for human takeover” to translate completion into quantifiable labor savings, rather than just looking at the final pass rate.

    3. Long-Horizon Tasks: Exposing Weaknesses in Planning and State Management

    Long-horizon tasks typically require dozens or more operations, including reading code, modifying multiple files, running verifications, and retrying based on feedback. Public materials indicate that an iterative version reduced its average time per full test run from 66.2 hours to 27.4 hours, and its average cost from $418.3 to $317.4. The decrease in time and cost suggests improvements in reasoning efficiency, retry strategies, or tool-calling paths, but long-horizon tasks remain the primary bottleneck.

    Challenges in long-horizon tasks include: early information loss due to context window limits; gradual accumulation of tool-calling errors; unstable build or test feedback; unreasonable task decomposition leading to local modifications breaking global logic; and lack of verifiable intermediate artifacts causing late error discovery. During evaluation, you should separately track the pass rate, average steps, retry count, and failure stage distribution for long-horizon tasks, rather than just looking at overall averages.

    4. Time and Cost: Determining Fit for Daily Pipelines

    Public materials also show that a lightweight solution achieved a 17.3% pass rate, an average time of 12.0 hours per run, and a cost of only $9.9, demonstrating a clear advantage in testing costs. These results highlight an important fact: solutions with slightly lower pass rates but extremely low costs may be more suitable for high-frequency, low-risk simple tasks, whereas high pass-rate solutions are better for long-horizon, high-value tasks.

    In engineering, you should establish a “cost-efficiency curve”: with the average cost per task on the X-axis and the pass rate or completion on the Y-axis, plotted separately by task category. For simple bug fixes, a low-cost lightweight solution might be more cost-effective; for cross-module refactoring, a higher-capability solution paired with human review is necessary. Total costs can be further controlled through budget caps, early stopping strategies, cache reuse, and incremental verification.

    3. Why Long-Horizon Tasks Are Difficult: Engineering Challenges and Mitigation

    The core challenge of long-horizon tasks is not “generating a piece of code” but “continuously making correct decisions in an uncertain environment.” Common issues include:

    • State preservation difficulties: After multiple rounds of modifications, the agent might forget initial constraints. The mitigation is to require each round to output a change summary, a to-do list, and verification results, and use these as inputs for subsequent rounds.
    • Error accumulation: A single mislocalization can cause subsequent modifications to deviate. Verifiable checkpoints should be set at critical nodes, such as syntax checks, unit tests, static analysis, or build verifications.
    • Environment non-reproducibility: Different machines, dependency versions, and test data can lead to inconsistent results. The evaluation environment should use fixed code snapshots, fixed dependencies, and isolated sandboxes.
    • Ambiguous acceptance criteria: Unclear task descriptions can make the agent appear to have “completed” the task. Acceptance criteria should be written as executable checks, such as test cases, build commands, or static rules.
    • Cost overrun: Long-horizon tasks are prone to infinite retries. You should set maximum steps, maximum time, and budget limits, and switch to human takeover upon consecutive failures.

    On platforms like Baidu AI Cloud, you can use container services to build isolated evaluation sandboxes, utilize logging and monitoring services to record task trajectories and anomalies, and manage code snapshots, test artifacts, and evaluation reports through object storage. These general cloud capabilities help upgrade the evaluation process from manual observation to a reproducible, auditable engineering pipeline.

    4. Evaluation Pipeline Design: Reproducible, Observable, and Accountable

    A reliable coding agent evaluation pipeline should include at least six components: a task set, environment snapshots, an executor, a validator, cost accounting, and report aggregation. A schematic pseudo-code is as follows:

    1. def evaluate(tasks, agent, budget):
    2. results = []
    3. for task in tasks:
    4. env = prepare_snapshot(task.repo_snapshot, task.dependencies)
    5. trace = agent.run(
    6. prompt=task.prompt,
    7. env=env,
    8. max_steps=task.max_steps,
    9. max_cost=budget.per_task
    10. )
    11. score = validate(task.acceptance_checks, trace.diff, env)
    12. results.append({
    13. "task_id": task.id,
    14. "passed": score.passed,
    15. "completion": score.completion,
    16. "steps": trace.steps,
    17. "elapsed": trace.elapsed,
    18. "cost": trace.cost,
    19. "failure_stage": trace.failure_stage
    20. })
    21. return summarize(results)

    Key design points include: task descriptions must contain clear acceptance criteria; environment snapshots should fix dependencies and test data; the executor needs to log every tool call and intermediate artifact; the validator should prioritize automated checks; cost accounting must cover reasoning, retries, and manual takeover time; and reports should be statistically layered by task category to prevent averages from masking long-tail failures.

    5. Selection and Implementation Recommendations: Use Layering, Don’t Just Look at the Top

    First, layer by task risk. Low-risk, clearly bounded modifications can be assigned to low-cost solutions paired with automated verification; high-risk, cross-module tasks should use high-capability solutions with human review retained. Second, build an internal validation set. Public leaderboards only reflect general trends; significant differences exist among enterprise codebases, framework constraints, and business rules, making internal task calibration essential. Third, focus on failure recoverability. A solution with a slightly lower pass rate but clear failure stages and complete logs is often easier to deploy than a “black-box high-score” solution. Fourth, control budgets. Set per-task cost limits, maximum steps, and early stopping conditions to prevent infinite retries in long-horizon tasks. Fifth, keep a human fallback. AI coding agents are suitable for handling repetitive localization, initial modifications, and verification completion, but final merging still requires code review and testing oversight.

    Overall, the mobile AI coding benchmark updates indicate that long-horizon task capabilities are improving and cost efficiency is getting better. However, a doubled pass rate still means a significant number of tasks cannot be stably passed. Developers should treat benchmark results as a reference for selection rather than a definitive conclusion. Only by establishing a reproducible evaluation pipeline, combined with business task distribution, cost budgets, and manual takeover mechanisms, can AI coding capabilities truly be transformed into R&D efficiency.