Evaluating AI Coding for Mobile Apps: Completeness, Time, and Cost Tradeoffs
This article examines how to evaluate AI coding systems for mobile app development beyond a single pass rate. It distinguishes four core metrics—pass rate, average completeness, time, and cost—and explains why high completeness can still coexist with low pass rates. It then outlines the real failure boundaries that mobile evaluations must cover, including build success, lifecycle and state restoration, permission denial, and external dependency failures. Finally, it describes how to build credible, reproducible internal evaluations and translate their conclusions into practical team workflows, so teams can judge effective delivery per unit of budget rather than relying on a single ranking.
1. From Code Generation to App Delivery: What Is Being Evaluated
AI coding for mobile app development is no longer just about completing a function or generating a page. A complete requirement often involves understanding project structure, building the UI, managing state, persisting data, handling permissions, configuring builds, and testing and fixing defects. The system must keep making progress across multiple interdependent stages until it produces a deliverable that can build, run, and meet the requirement.
These are often called long-horizon engineering tasks. The difficulty may not lie in how complex any single piece of code is, but in the system’s need to maintain a long task state: which files have been modified, which assumptions have been validated, whether the current failure belongs to business logic, environment configuration, or test conditions, and what action should be taken next.
As a result, evaluation results actually reflect the combined performance of the model, the agent execution flow, the tool environment, and the resource budget—not just the model’s code generation ability.
This distinction matters. The same model can produce different results under different task decomposition methods, context management strategies, and test feedback loops. Conversely, even when two systems have similar pass rates, their time consumption, cost, and difficulty of human takeover may differ significantly.
2. Four Core Metrics Should Answer Different Questions
2.1 Pass Rate: Did the Task Meet the Full Acceptance Criteria?
Pass rate usually represents the share of tasks that satisfy the defined acceptance requirements. If a task uses a full-pass criterion, missing even one key condition may cause it to be recorded as a failure.
For example, a data-entry app may have completed the page layout, local saving, and record queries, but it cannot correctly restore data after a restart. If persistence restoration is a mandatory requirement, the task cannot be considered a complete delivery.
Pass rate is closest to the question of “can this be delivered,” but it has limits: it does not directly describe how far a failed task was from success.
In addition, when the number of tasks is small, the result of a single task can noticeably affect the overall metric. If the evaluation uses multiple runs, weighted statistics, or another aggregation method, the statistical method should be clearly stated. The number of successful tasks cannot be inferred from a single percentage alone.
2.2 Average Completeness: How Far Is the Task from Meeting the Requirements?
Completeness usually expresses the proportion of requirements a task has satisfied, or the staged result calculated according to a scoring rule. It can distinguish between “almost nothing was completed” and “the main functionality exists but a key step failed.”
However, completeness is not naturally comparable across evaluations. Different systems may use different check items, weights, and scoring methods. Numeric comparisons are meaningful only when the scoring criteria are consistent.
A more important warning is that the number of check items does not equal business importance. Satisfying ten UI details cannot offset a single sensitive-information leak. Therefore, completeness is suitable for describing progress, but it should not be used alone as a production acceptance basis.
2.3 Time: How Much Time Resource Did the System Consume?
Time must have clearly defined start and end boundaries. It may mean single-task execution time or total time for an entire batch; it may include environment preparation, dependency retrieval, and queuing, or only the agent’s actual execution phase.
For development teams, it is also important to distinguish:
- Wall-clock time: the actual waiting time from submitting a task to receiving a result.
- Human intervention time: the time developers spend checking, explaining, fixing, and re-running.
- Critical-path time: the time that directly affects release progress.
A process that runs for a long time automatically but requires almost no human intervention may still have value in asynchronous development scenarios. Conversely, a process that returns results quickly but requires developers to keep patching may not be more efficient.
2.4 Cost: How Much Engineering Investment Lies Beyond Price?
Benchmark running cost usually covers only a specific range of resource consumption and cannot automatically be equated with actual delivery cost.
What enterprises should pay more attention to is:
Total delivery cost = model invocation cost + execution environment cost + human review cost + rework cost + ongoing maintenance cost.
The execution environment may include resources for builds, tests, simulated runs, and log storage. Human cost depends on whether the code is easy to understand, whether the change scope is reasonable, and whether the result can pass a stable validation process.
Therefore, low invocation cost does not necessarily mean low delivery cost, and high invocation cost does not necessarily mean higher quality. Both need to be validated against real tasks.
3. Why High Completeness Can Still Correspond to a Low Pass Rate
This phenomenon is first related to the weakest-link effect in engineering tasks.
Suppose a task requires completing pages, data storage, permission handling, and exception recovery. The first three are fully implemented, but the last has a serious defect. The task may have high completeness but still fail acceptance. The metrics are not contradictory; they measure different things.
Second, the final stretch of delivery is often the hardest. Project skeletons and routine business code usually follow strong patterns, while edge conditions, lifecycle changes, concurrent updates, build compatibility, and regression issues require locating problems across multiple connected parts.
Third, the system may fall into a low-yield repair loop: modify code, run tests, encounter a new error, modify again, and never find the root cause. Execution time keeps increasing, but effective progress gradually decreases.
Therefore, “high completeness, long time” only shows that the system invested substantial resources and achieved partial results. It does not directly prove greater reliability. To judge whether the investment is worthwhile, teams also need to observe failure types, code quality, and human takeover cost.
4. Evaluation Must Cover the Real Failure Boundaries of Mobile Development
4.1 A Successful Build Is Only the Starting Point
Compilation passing means the code satisfies some syntax, type, and dependency constraints. It does not mean the functionality is correct. The app may still have inconsistent page state, duplicate submissions, abnormal back behavior, or data loss.
Reasonable validation should proceed layer by layer:
First, check the project structure and build result; second, validate core business logic; third, test UI interaction; and finally, check lifecycle, permissions, and exception paths. Different layers are responsible for finding different types of problems and cannot replace one another.
4.2 Lifecycle and State Restoration Need Independent Acceptance
A mobile app may be moved to the background, reclaimed by the system, or reloaded because the UI is recreated. If the system only verifies first launch and normal operation, it is easy to miss state-restoration defects.
Evaluation should clearly define which state may be lost, which state must be persisted, and what state should be restored after an interruption. For example, whether temporary input is retained, whether incomplete operations are submitted twice, and whether an in-flight request is incorrectly reused all require corresponding check conditions.
4.3 Permission Denial and External Dependency Failures Are Not Secondary Cases
Real users may deny permissions, networks may be unavailable, and external services may return errors. The system cannot work only on the happy path.
Acceptance should check whether error messages are clear, whether operations can be retried, whether data remains consistent after failure, and whether there are unnecessary permission requests. When external dependencies are involved, controlled test conditions should be used as much as possible to avoid mistaking external fluctuations for differences in AI coding capability.
5. How to Build Credible and Reproducible Internal Evaluations
5.1 Build a Layered Task Set from Real Tasks
The task set should cover the team’s daily work, not just page-generation tasks that are easy to demonstrate. Categories can be set separately for app creation, existing feature extension, code migration, defect fixing, and cross-module refactoring.
Results should be reported separately for different categories. A system that is good at generating a project from scratch is not necessarily equally good at understanding historical code and controlling change scope.
At the same time, tasks should be layered by difficulty so that an overall average does not hide failures on complex tasks.
5.2 Fix Acceptance Rules Before Execution
Each task should provide clear requirements, initial code, environment constraints, and acceptance methods. Key conditions must not be adjusted after results are produced.
Acceptance items should be divided into three categories:
- Blocking criteria: cannot build, core flow unavailable, or serious security or data-consistency issues.
- Required criteria: explicitly required functionality, interaction, and error handling.
- Quality criteria: maintainability, test coverage, change scope, and documentation completeness.
Blocking criteria should be judged independently so they are not diluted by a large number of low-risk points.
5.3 Fix the Environment and Preserve the Full Execution Trace
Evaluation should record the runtime environment, dependency versions, resource limits, available tools, and network conditions. For systems with strong randomness, repeated runs should be used and the variance reported rather than showing only the best run.
The execution trace should include at least the requirement input, code diff, build logs, test results, retry records, and termination reason. These materials help teams determine whether a failure came from task understanding, implementation strategy, tool invocation, or environment issues.
5.4 Include Budgets and Stop Conditions in the Protocol
If one system can retry indefinitely while another is strictly limited, the results are not fairly comparable.
Time and resource budgets should be specified in advance, along with reasonable stop conditions. For example, automatic execution should stop and diagnostic information should be emitted when multiple consecutive modification rounds do not improve validation results, the same error repeats, or the fix scope clearly deviates from the original requirement.
Stopping is not giving up. It is an engineering measure to control resource consumption and protect the codebase.
6. How to Turn Evaluation Conclusions into Team Workflows
AI coding systems do not need to take on every task. A more reliable approach is to allocate automation by risk.
For low-risk tasks with clear boundaries and easy validation, teams can use shorter execution cycles and require automated tests to pass before review. For tasks involving multi-module changes or complex state management, the system should first output an implementation plan and then execute and validate in stages. For changes involving identity permissions, sensitive data, or critical business rules, explicit human approval should remain in place.
Teams can also use a “diagnose, execute, review” process:
- In the first stage, require the system to identify requirement constraints, relevant modules, and major risks before making broad changes.
- In the second stage, split the task into verifiable small steps, preserving code diffs and test evidence at each step to reduce the probability of error accumulation.
- In the third stage, have an independent check process or developer review core logic, exception paths, and security boundaries, preventing the system from validating its own implementation with incorrect assumptions.
For incomplete tasks, require clear handoff materials: what was completed, what remains, reproduction steps, attempted solutions, and relevant logs. This has more engineering value than a statement that “the task failed” and can reduce the cost of human takeover.
7. Final Decision: Look at Effective Delivery per Unit, Not a Single Ranking
The ultimate purpose of evaluation is to help teams choose suitable ways of working, not to chase a single highest score.
If a team focuses on overnight asynchronous processing, longer automatic runtime may be acceptable, but results must be stable, logs complete, and review easy. If a team needs interactive development support, it should place more emphasis on short feedback cycles and controllability of changes. If the budget is strictly limited, it should first assess which tasks a low-cost workflow can cover rather than assuming it can replace all development stages.
More explanatory internal metrics include: the number of accepted tasks per budget unit, total cost per accepted task, human takeover duration, rework rate, and post-delivery defects. For evaluations that have not yet reached production, it should also be clear that these metrics are experimental results and cannot be directly treated as online benefits.
Ultimately, completeness answers “how much progress was made,” pass rate answers “whether the requirements were met,” time answers “how long the wait was,” and cost answers “how much was invested.” Only by examining these metrics under the same tasks, the same acceptance criteria, and the same budget can teams judge whether an AI coding system truly improves delivery efficiency in mobile app development.
