Evaluating Mobile Development Agents: Balancing Completion, Time, and Cost

    This article explores how to evaluate AI-powered coding agents for mobile app development from the perspective of real-world engineering delivery. It defines four core evaluation dimensions—task pass rate, average completion level, execution time, and runtime cost—and analyzes their interrelationships, including why high completion and long duration often appear together. The article further discusses the importance of failure attribution, the design of evaluation sets grounded in actual project workflows, and a hierarchical scheduling strategy that balances delivery risk with resource budgets. It aims to help development teams move beyond single-score rankings and build a sustainable evaluation mechanism centered on verifiable delivery.

    From “Generating Code” to “Delivering Acceptable Software”

    The intelligence of AI-assisted programming in mobile app development can no longer be measured solely by code completion accuracy or whether an individual function passes a unit test. Real-world requirements typically span multiple areas—UI, business logic, data storage, network access, build configuration, and runtime verification. A locally correct implementation does not guarantee that the entire application builds successfully or that the final behavior matches the requirements.

    Therefore, evaluation for mobile development should elevate the unit of observation from “a block of code” to “an engineering delivery.” Typical tasks include creating an application, adding features, migrating legacy code, and converting an existing application to a different structure or implementation approach. The agent must not only understand the requirements but also inspect the project, modify files, run verification, and iteratively fix issues based on feedback.

    The difficulty of such tasks lies in the fact that constraints are revealed progressively. For instance, adding a list page may appear to be just UI and data display, but in practice it may involve loading states, empty-data placeholders, error retry handling, state restoration after page reconstruction, and back-navigation paths. Completing only the happy path often yields a high partial completion score while still failing to meet the overall delivery standard.

    The value of evaluation is precisely to reveal the gap between “seems to have done a lot” and “has not actually delivered”—rather than simply ranking models.

    Four Core Metrics, Each Answering a Different Question

    1. Task Pass Rate: Does It Satisfy Complete Acceptance Criteria?

    The task pass rate typically indicates the proportion of tasks meeting the full acceptance requirements, but the exact calculation method must follow the evaluation protocol. For engineering tasks with multiple mandatory conditions, a single unmet condition can cause the entire task to be marked as failed.

    This metric is the closest to the delivery outcome, but it cannot independently explain why a task failed. Build failures, missing functionality, and incorrect edge-case behavior may all result in the same “fail” outcome, yet the manual remediation effort required can differ greatly.

    Therefore, the pass rate is suitable as a primary outcome metric but should not be the only one.

    2. Average Completion Level: How Far from Delivery?

    The average completion level reflects the degree to which task requirements are satisfied and helps distinguish between “no progress at all” and “minor issues remaining.”

    However, the meaning of completion heavily depends on the scoring design. If the evaluation simply adds all checkpoints equally, several minor UI detail scores can mask a core business-flow failure. A more reasonable approach is to set thresholds for critical conditions and then apply itemized scoring to the remaining requirements.

    For example, successful build, usable core flow, and no obvious data corruption can be treated as mandatory conditions, while UI details, non-critical prompts, and code organization describe delivery quality. This prevents the situation where “the score is high, but the result is unusable.”

    3. Execution Time: How Long Until Usable Results?

    The time consumed by long-horizon tasks is not limited to model generation time. It may also include environment preparation, dependency resolution, builds, tests, runtime checks, and multiple rounds of rework.

    When reporting time, it is essential to clarify whether it refers to single-task duration, cumulative time across a suite, or actual wall-clock waiting time under parallel execution. These measures cannot be mixed.

    At the same time, average duration may obscure long-tail issues. A small number of tasks that repeatedly retry can significantly inflate the overall waiting time. In practice, evaluation should also examine the median, high-percentile duration, timeout rate, and the time to first buildable version.

    4. Runtime Cost: How Many Resources Does One Execution Consume?

    Runtime cost may include model calls, compute resources, test environments, and storage—direct expenses. Different evaluations have different accounting boundaries, so cost figures cannot be compared without verifying the scope.

    More importantly, baseline runtime cost does not equal final delivery cost. A solution that is cheap to execute but requires substantial manual rework may not be more economical than one with higher runtime cost but stable delivery.

    The following formula can serve as an internal cost ledger:

    Total delivery cost = direct runtime cost + manual review cost + rework cost + necessary environment cost.

    If business losses caused by waiting time are also included, the estimation basis should be separately documented to avoid double-counting with manual labor costs.

    Why High Completion and Long Duration Can Coexist

    The combination of high completion and long duration may mean the agent invested more effort in checking and fixing—or it may mean it repeatedly stumbled through inefficient paths. The surface results are similar, but the engineering value differs.

    The first scenario is productive iteration. The agent locates the cause of a build error, fixes it, continues running tests, and then fills in missing edge-case behaviors. As execution progresses, newly passed checkpoints accumulate and the scope of failures narrows.

    The second scenario is an ineffective loop. The agent repeatedly modifies the same files, applies similar fixes to the same error, or breaks already-passing functionality while making local repairs. Execution time grows, yet acceptance results show no meaningful improvement.

    Therefore, long duration alone is neither evidence of a “more careful” approach nor a sign of inefficiency. The key is to observe whether each round of execution brings effective increments.

    The following information should be recorded:

    • Changes in acceptance results before and after each round of modification;
    • Main causes of build and test failures;
    • Occurrences of repeated errors;
    • Regressions of previously passed checkpoints;
    • Newly completed items gained per unit of time or cost.

    When consecutive rounds of modification no longer yield productive increments, automatic execution can be paused—preserving the current reproducible state—and switched to manual diagnosis or an alternative strategy. The specific stopping condition should be established through trial runs, not by applying a fixed retry count uniformly across all tasks.

    The Evaluation Target Is a Complete Engineering System, Not an Isolated Model

    Agent performance depends not only on the model itself, but also on what information it can read, what execution capabilities it has, and how the verification process is organized.

    The same model may struggle if it lacks complete build logs and can only guess from partial errors; if it has no permission to run tests, it will find it hard to detect regressions promptly; if its context is polluted with irrelevant files, localization efficiency may drop.

    Therefore, an evaluation actually examines a combination of:

    Model capability + task context + execution tools + feedback mechanisms + resource budgets.

    This means that when different solutions use different execution environments, timeout settings, or verification permissions, score differences cannot be fully attributed to the model. Before comparison, the task set, initial project state, environment conditions, acceptance rules, and budget limits should be unified as much as possible. What cannot be unified must be explicitly disclosed.

    In addition, task descriptions, initial code snapshots, execution logs, final modifications, and test results should be preserved so that failures are reproducible. Without these materials, a score only reflects the outcome; it cannot guide improvement.

    Designing an Evaluation Set That Mirrors Real Delivery

    First, tasks should come from the team’s actual work, rather than selecting only problems that are easy to auto-grade. A representative task set can cover application creation, feature extension, compatibility fixes, structural adjustments, and legacy migration, layered by complexity.

    Second, acceptance criteria should be defined before execution. Each task must specify expected behavior, mandatory edge conditions, the allowed scope of modification, and prohibited risks. Adjusting scoring rules after seeing results introduces selective evaluation.

    Third, verification should be layered:

    • Layer 1: Check whether the project builds and the base configuration is valid.
    • Layer 2: Check whether business logic and cross-module collaboration function correctly.
    • Layer 3: Check critical interaction paths, including input, navigation, return, error prompts, and state restoration.
    • Layer 4: Check code quality—for example, whether sensitive information is introduced, obvious permission abuse exists, or unrelated large-scale changes occur.

    Being able to open the UI only proves that a launch path runs; it cannot replace full functional verification. For tasks involving user data or important business state, error handling and recovery behavior must also be checked.

    Finally, the timing and content of human intervention should be recorded. If a task is completed only after manual hints, it must not be mixed with tasks completed fully autonomously.

    From Average Scores to Failure Attribution

    Aggregate scores help with quick browsing, but what genuinely drives engineering improvement is failure classification.

    Common failure categories include requirement misunderstanding, project environment issues, incorrect API usage, inconsistent cross-file modifications, state management defects, insufficient verification, and ineffective retries.

    For example, requirement misunderstanding calls for improved task descriptions and clarification workflows; environment issues require pinned dependencies and execution conditions; cross-file inconsistency calls for additional correlation checks; insufficient verification requires more testing and runtime feedback. Each cause corresponds to a different remedy—and cannot always be solved by increasing the execution budget.

    For evaluations with small sample sizes, minor score differences should be interpreted cautiously. A small number of task outcomes can shift the overall ranking. A more robust approach is to increase repeated runs, report performance by task category, and present both success and failure examples rather than summarizing everything with a single average.

    Hierarchical Scheduling, Not a Single Optimal Solution

    Development teams are typically constrained simultaneously by budget, waiting time, and delivery risk. Execution strategies can therefore be allocated based on task characteristics.

    For tasks with small scope, clear acceptance criteria, and easy rollback, tighter time and cost budgets can be used to obtain fast results. For tasks that span modules, involve complex dependencies, or affect core flows, more analysis and verification resources are needed, with manual review checkpoints in place.

    A practical workflow is:

    Task classification → Define acceptance criteria → Set resource budgets → Execute with layered verification → Analyze failure causes → Decide to continue fixing, escalate, or hand over to manual.

    The basis for escalation should be observable signals—such as persistent build failures, repeated identical errors, key requirements uncovered for an extended period, or modifications that clearly deviate from the task objective—rather than a simplistic “switch strategy after one failure.”

    For tasks with independent success determination, the following metric can be calculated:

    Unit delivery cost = total related cost within the observation period ÷ number of tasks passing acceptance.

    This metric is closer to business outcomes than per-execution cost, but task difficulty, acceptance criteria, and cost boundaries must be consistent. Tasks of different complexity should be tallied separately.

    Conclusion: Measuring the Value of Intelligent Programming Through Verifiable Delivery

    The engineering value of mobile development agents lies in their ability to continuously deliver buildable, runnable, and maintainable results within acceptable time and cost.

    The pass rate answers “whether it delivered,” completion level shows “how much remains,” time reflects “how long the wait is,” and cost reveals “whether the investment is sustainable.” Only when these four types of metrics are combined with a unified evaluation protocol, execution traces, and manual rework records can a reliable judgment be formed.

    For development teams, the most valuable asset is not a standalone leaderboard but a continuous evaluation mechanism: defining goals with real tasks, enforcing quality through layered verification, guiding improvement through failure attribution, and validating ROI through total delivery cost. This is how AI-assisted programming transitions from a demonstration of capability to manageable engineering productivity.