Evaluating AI Coding for Mobile Apps: Balancing Task Completion and Cost

    This article examines how to evaluate AI-assisted coding systems for mobile app development, focusing on the gap between high average completion rates and low full pass rates. It explains why pass rate, completion degree, and elapsed time measure different things, breaks down the engineering trade-offs behind long-running agentic tasks, and provides practical guidance on building reproducible evaluation frameworks, measuring true end-to-end delivery cost, and turning evaluation results into governable development workflows with human handoff mechanisms.

    1. From “Generating Code” to “Completing Engineering Tasks”

    Evaluation of AI coding in mobile app development is shifting from isolated code generation to full engineering delivery. These two types of tasks look similar but test different capabilities: the former asks whether a snippet of code is correct, while the latter requires the system to understand an existing project, modify multiple modules, maintain dependencies, and deliver working results under build and test constraints.

    Typical long-horizon tasks include scaffolding an application, implementing cross-screen features, migrating legacy code, changing data access patterns, and refactoring while preserving existing behavior. These tasks rarely finish in a single generation pass. They require multiple cycles of reading, planning, modifying, verifying, and correcting.

    The core question in engineering evaluation is therefore not how much code a model writes, but whether it can convert a well-defined requirement into an engineering result that meets acceptance criteria within limited resources.

    The phenomena described in the source material can be abstracted into one general question: why can some AI coding approaches achieve high average completion while still showing low full pass rates and consuming significant time? Answering this requires distinguishing what each metric actually measures, rather than merging them into a single ranking.

    2. Pass Rate and Completion Degree Measure Different Things

    2.1 Pass Rate: Crossing the Full Acceptance Threshold

    Pass rate typically reflects the proportion of tasks that satisfy final acceptance conditions. For rigorous engineering tasks, acceptance may simultaneously require:

    • The project builds successfully;
    • The specified functionality meets requirements;
    • Automated tests pass;
    • No obvious regressions in existing functionality;
    • Key constraints are satisfied, such as data compatibility and permission handling.

    If any critical condition fails, the task may be judged as failed even when most of the work is done. This makes pass rate closer to “the proportion of directly acceptable deliverables” than to a general code quality score.

    However, different evaluations define “pass” differently. Some rely on test results; others include manual review. Before comparing metrics, you must confirm that acceptance criteria are consistent.

    2.2 Completion Degree: How Far Partial Results Are from the Goal

    Average completion degree describes how much of a task has been implemented, computed from subtasks, test items, or scoring rules. It captures partial progress, but it is not inherently equivalent to business usability.

    For example, a feature may have completed its UI layout, input validation, and data display, yet fail to handle state recovery after a save error. If the scoring rule assigns similar weights to all sub-items, the task may score high on completion; from a delivery standpoint, the data loss risk is still enough to block release.

    High completion and low pass rate are therefore not contradictory. They usually indicate that a system can advance a large amount of local work but cannot yet reliably cross the final acceptance threshold.

    2.3 Completion Degree Cannot Be Converted Directly into Labor Savings

    “Completing 80% of a task” does not mean a developer only needs to invest the remaining 20% of the time. The last stretch of engineering work often involves the hardest problems to locate: asynchronous state races, inconsistent module boundaries, legacy data compatibility, and regressions that only appear under specific conditions.

    If the partial implementation is poorly designed, human takeover may require reverting changes and redesigning from scratch. Evaluations should therefore include “time required for a human to repair the output to acceptance,” which measures the actual takeover value of the generated result.

    3. Engineering Trade-offs Behind High Completion and Long Runtimes

    3.1 Iterative Correction Improves Local Results, but with Diminishing Returns

    By continuously reading error messages, modifying code, and re-verifying, an AI coding system can gradually raise completion. However, as the task progresses, remaining problems tend to be more complex, and additional time does not yield proportional gains.

    For example, fixing a missing reference early may eliminate a large number of build errors, while resolving a cross-screen state synchronization issue later may require understanding interactions across multiple modules. Final completion alone cannot justify all additional time spent; the effective progress of each iteration should also be observed.

    3.2 Long Runtime Does Not Necessarily Mean Deeper Model Reasoning

    Total task time can be roughly decomposed as:

    Total time = model processing time + tool execution time + environment waiting time + retry and rollback time.

    Dependency setup, builds, tests, and environment startup can all account for a large share. Without itemized logging, it is impossible to tell whether time went to model decision-making, inefficient operations, or infrastructure waiting.

    Evaluation reports should also state the timing unit clearly: average time per task, cumulative time across all tasks, or wall-clock time under parallel execution. These conventions must not be mixed.

    3.3 Long-Horizon Tasks Expose Planning and State Management Problems

    As the scope of modification grows, the system must continuously retain requirement constraints, verified conclusions, and current failure causes. Without effective state management, it tends to re-read and re-modify the same code, or even reintroduce errors it already fixed.

    The remedy is not simply more interaction rounds, but explicit phase goals. For example: first confirm the project baseline, then implement the minimal runnable feature, then cover exception paths, and finally run full regression. Keeping traceable verification results at each phase reduces aimless retries.

    4. The Evaluation Target Should Be the Full Workflow, Not Just the Model

    AI coding outcomes are jointly determined by model capability, task prompts, tool permissions, context organization, verification strategy, and the runtime environment.

    When different solutions use different execution pipelines, their differences cannot be attributed entirely to the models themselves. A workflow that can run tests frequently and read error output promptly is not a strictly controlled comparison against one that allows only a few modification and verification steps.

    Organizations can adopt two evaluation modes:

    The first is controlled-variable evaluation. Under identical tasks, tool permissions, resource limits, and acceptance rules, it is better suited for studying differences in model capability.

    The second is end-to-end workflow evaluation. It lets each solution use its own execution strategy and is better suited for answering “which workflow can complete real work at acceptable cost.”

    Both are valuable, but they should be reported separately to avoid mislabeling a workflow advantage as a pure model capability advantage.

    5. Building a Reproducible Evaluation Framework for Mobile Apps

    5.1 Extract Representative Tasks from Real Projects

    The task set should cover feature additions, bug fixes, code migration, project cleanup, and exception handling—not just short, self-contained coding problems.

    Each task needs a clear starting state, a requirements description, the permitted scope of changes, and acceptance conditions. Where requirements are ambiguous, a clarification mechanism should be agreed upon in advance; otherwise the evaluation may measure the ability to guess requirements rather than engineering capability.

    Tasks should also be stratified by difficulty, modification scope, and risk. A local UI adjustment and a cross-module migration cannot be treated as equivalent workloads.

    5.2 Use Layered Acceptance, Not Just Build Checks

    Verification should be divided into four layers:

    • Static checks: catch syntax, type, and rule violations;
    • Build verification: confirm the project structure and dependencies build successfully;
    • Functional verification: check core flows and exception branches;
    • Regression verification: confirm existing behavior was not broken.

    For tasks involving data persistence, permissions, and network interaction, failure paths deserve special attention. Running correctly under normal conditions does not mean the result works reliably in real usage.

    5.3 Record Complete Execution Trajectories

    At minimum, record code changes, tool execution results, failure causes, retry counts, per-phase time, and resource consumption. This makes it possible to distinguish between different failure types:

    • Misunderstood requirements;
    • Incorrect implementation logic;
    • Environment or dependency problems;
    • Insufficient verification coverage;
    • Exhausted time or budget.

    Only with failure attribution can a team decide whether to improve prompts, adjust task decomposition, optimize the environment, or add human review.

    5.4 Preserve Necessary Uncertainty in Statistical Results

    With a limited number of tasks, the outcome of a few tasks can significantly shift overall results. Evaluations can also be affected by generation randomness, execution environment, and task composition.

    Therefore, absolute conclusions should not be drawn from a single run or very small score differences. A more robust approach is to run repeated evaluations, report performance per task category along with variance, and state how timeouts, failures, and partial completions are counted.

    If completion uses weighted scoring, the weighting rationale should be disclosed, so that low-risk sub-items cannot mask failures of critical functionality.

    6. Cost Assessment Should Cover the Full Delivery Process

    The cost of a single run is only part of the picture. What matters more to a development team is:

    Total delivery cost = model invocation cost + execution environment cost + human review cost + human repair cost + regression verification cost.

    A workflow that runs cheaply but produces large amounts of hard-to-maintain changes is not necessarily low-cost overall. Conversely, a more expensive workflow that reduces critical defects and takeover work may better serve business goals. These judgments must be based on actual records, not inferred from completion degree alone.

    In practice, track the following metrics together:

    • Average and tail latency per task;
    • Average total cost of tasks that pass acceptance;
    • Human repair time after takeover;
    • Number of regression defects introduced;
    • Result stability across repeated runs.

    Tail latency is especially important: a workflow with a low average time may still stall on a minority of tasks, disrupting iteration schedules.

    7. Turning Evaluation Conclusions into an Executable Development Process

    7.1 Set Automation Levels by Task Risk

    Low-risk, easily verifiable local changes can use short budgets with automated verification. Cross-module features, data migrations, and security-related changes should face stricter review requirements and human confirmation checkpoints.

    Task assignment should be based on risk, complexity, and verifiability—not simply on leaderboard rankings. Tasks whose results can be checked quickly are better suited for automated execution; tasks with vague acceptance criteria should first have their requirements completed by a developer.

    7.2 Set Budget Caps and Stagnation Detection

    Long-horizon execution should have time, invocation, and retry budgets. If several consecutive rounds produce no newly passed items, or the same class of error recurs, the system should trigger a pause, re-planning, or human takeover.

    Stagnation detection should be based on actual progress, not on the volume of code changes. Modifying more files does not necessarily mean getting closer to the goal—sometimes it signals that the problem scope is spiraling out of control.

    7.3 Use Small-Step Changes to Reduce Review and Rollback Costs

    A reasonable execution order is:

    Confirm baseline → decompose requirements → implement minimal functionality → verify critical paths → cover exception handling → full regression → human review.

    Keep the change scope of each step contained and preserve a recoverable project state. This makes failures easier to locate and prevents unverified large-scale refactoring from breaking existing functionality.

    7.4 Build Security Boundaries into the Execution Environment

    AI coding workflows should follow the principle of least privilege, avoiding access to real credentials, sensitive data, and production environments. Verification should run in isolated environments with test data.

    Even when an automated system passes functional acceptance, it should not be granted release permissions by default. Operations involving releases, data changes, and external resources should retain independent approval and audit mechanisms.

    8. Conclusion: Evaluate Reliable Delivery, Not Local Progress

    The value of evaluating AI coding for mobile apps lies in revealing the true capability boundary between understanding a requirement and delivering an engineering result. Pass rate reflects full acceptance outcomes, completion degree shows local progress, and time and cost reflect resource investment; these metrics must be interpreted together with statistical conventions and execution workflows.

    For development teams, the most effective approach is not chasing a context-free “best score,” but building a realistic task set, defining clear acceptance criteria, recording full costs, and designing human handoff mechanisms for stagnation and high-risk changes. Only by combining generation capability, verification capability, and process governance can AI coding move from demo effects to stable, auditable engineering productivity.