Evaluating AI Coding for Mobile Apps: Completion, Time, and Cost Trade-offs

    This article examines how intelligent programming systems should be evaluated for real-world mobile application development. It distinguishes between pass rate and completion degree, analyzes the engineering significance of longer execution times, breaks down total delivery costs beyond single-run fees, and explains why benchmark results should not be attributed solely to model names. It also provides a practical framework for building reproducible internal evaluation workflows and balancing quality, speed, and cost through tiered task scheduling.

    Shifting Evaluation: From Code Generation to Engineering Delivery

    The focus of intelligent programming evaluation is moving from “whether a system can generate a correct snippet of code” to “whether it can continue working within an existing codebase and deliver verifiable results.”

    In mobile app development, even a seemingly simple requirement often involves UI state, business logic, data persistence, network error handling, permission handling, and build configuration. For example, adding offline browsing to a list page is not just about saving data locally. It requires defining cache refresh timing, handling stale states, distinguishing first load from historical content display, and verifying behavior after process restart.

    Therefore, an evaluation targeting real engineering tasks should not only check that final code exists. It should cover a complete chain:

    Requirement understanding → locating relevant code → solution design → code modification → build verification → behavior testing → regression checks.

    Such tasks typically involve multiple rounds of feedback. The intelligent programming system needs to read error messages, correct its implementation, re-run verification, and decide when to stop. Its results are influenced not only by code generation capability, but also by context management, tool invocation, environment stability, and stopping policies.

    This means evaluation outcomes are better understood as “engineering execution performance under specific configurations,” rather than the absolute capability of an underlying model isolated from its environment.

    Why Pass Rate and Completion Degree Must Be Considered Separately

    Pass Rate Measures Whether the Acceptance Bar Is Crossed

    Pass rate usually describes the proportion of tasks that meet full acceptance criteria. The exact definition must follow the evaluation rules. Some evaluations require all necessary checks to pass, some allow graded acceptance, and others aggregate results over multiple runs.

    Under strict task-level acceptance, even if the main functionality is largely implemented, missing a critical condition can still result in a “fail.” For example, a page may render normally but crash when the network is disconnected. Data may be written but cannot be restored after app restart. These issues may not show up in a demo, yet they are enough to block a release.

    Thus, pass rate is closer to “the probability that the system can directly pass acceptance,” not “how much work has been completed.”

    Completion Degree Reflects Partial Progress but Depends on Scoring Design

    Completion degree is usually calculated from sub-goals, check items, or weighted criteria. It describes how far the task has progressed. It can distinguish between “barely started” and “almost finished but missing a few critical fixes.”

    However, completion degree has its limits. If scoring items mainly cover the normal path and lack checks for security, data consistency, and exception recovery, a high completion degree may hide significant defects.

    A reasonable scoring scheme should mark critical requirements separately. For example:

    • Is the core flow usable?
    • Is data correctly saved and restored?
    • Are abnormal inputs handled?
    • Are existing features broken?
    • Are necessary permission and security constraints satisfied?

    Issues such as data loss or sensitive information leakage should not be treated as normal deduction items. They should be set as conditions that block acceptance.

    High Completion Degree and Low Pass Rate Are Not Contradictory

    When many tasks are nearly completed but always have one or a few critical gaps, the result is high completion and low pass rate.

    Such results deserve further analysis: are the remaining issues easy-to-fix UI details, or are they hard-to-locate state races, build dependencies, or cross-module design flaws?

    The manual takeover cost can differ greatly. Therefore, beyond completion degree, it is important to record failure types, severity of remaining defects, and the time needed for manual repair.

    High Completion with Long Duration: What Engineering Trade-offs Are Involved

    Longer runtime may come from more thorough exploration, or from inefficiency. One cannot judge that a system “thinks deeper” or “performs worse” based solely on time.

    Valuable Extra Time

    In complex engineering tasks, necessary checks take time. The system may need to read multiple modules, analyze existing abstractions, run full builds, execute regression tests, and fix problems based on feedback.

    If these operations consistently reduce defects, then the extra time may have reasonable value. Especially in tasks involving data migration, state restoration, or cross-module modifications, stopping too early can leave hidden risks.

    Time Inflation from Invalid Loops

    Another case is when the system repeatedly makes similar attempts without obtaining new useful information. For example, modifying the same code location multiple times without verifying assumptions, re-running builds that already failed clearly, or retrying when the required environment is missing.

    In this case, increased runtime does not mean that delivery quality improved in parallel.

    Therefore, when evaluating long-horizon tasks, we should observe “what the added time bought,” not just record total duration. The run process can be divided into phases, tracking completed items, error reduction, and repeated failure counts, to identify diminishing marginal returns.

    Stopping Strategy Is Itself an Engineering Capability

    A mature intelligent programming process should not retry indefinitely. It should have clear exit conditions:

    • End after all acceptance checks pass;
    • Pause after time or budget limits are reached;
    • Escalate when the same error appears repeatedly without new evidence;
    • Request manual confirmation when facing insufficient permissions, missing environments, or conflicting requirements;
    • Stop automatic execution for high-risk operations.

    These rules do not guarantee success on every task, but they reduce uncontrolled consumption and make failures easier to take over.

    Cost Is Not Just the Bill of One Run

    Single-run cost is an important metric, but it is not equal to the total delivery cost. What a development team truly cares about is: how many resources were spent to obtain one acceptable result.

    The following formula can organize cost accounting:

    Total delivery cost = automated running cost + environment resource cost + manual review cost + manual repair cost + business cost of waiting.

    The waiting cost depends on the business scenario. Offline batch refactoring can allow long execution times, while release-blocking issues may require a usable fix as soon as possible.

    A lower single-run cost, if accompanied by frequent retries or significant manual rework, may not lead to lower total cost. Conversely, a more expensive execution mode may have practical value if it significantly reduces takeover burden for critical tasks.

    For a fixed set of tasks, we can further calculate:

    Average cost per qualified delivery = total actual investment across the task set ÷ number of final qualified tasks.

    This metric should retain failed attempts and retry costs, to avoid underestimating true spending by only counting successful runs. It is only applicable when task composition, acceptance criteria, and resource accounting rules are similar; it should not be compared horizontally across different conditions.

    Why Comparing Model Names Alone Is Not Enough

    What actually participates in engineering tasks is usually a system composed of a model, orchestration logic, and execution environment.

    It includes at least the following parts:

    • Underlying reasoning capability: understanding requirements, analyzing code, and forming modification plans;
    • Agent orchestration: deciding when to search, edit, test, and retry;
    • Context management: selecting which files, logs, and history enter the current decision;
    • Tool permissions: deciding whether to build, run tests, access dependencies, or modify configuration;
    • Execution environment: affecting build speed, dependency availability, and result stability;
    • Budget constraints: limiting total time, invocation counts, and resource usage.

    If two solutions use different tool permissions, retry limits, or runtime resources, the performance difference cannot be fully attributed to the model itself.

    For development teams, the more valuable question is not “who ranks higher on a leaderboard,” but “under the permissions, budget, and delivery standards allowed in our team, which workflow can consistently produce acceptable modifications.”

    Building a Reproducible Internal Evaluation Workflow

    Build a Layered Sample Set from Real Tasks

    Evaluation tasks should cover the team’s daily work, not just easy-to-demo features. They can be organized by category:

    • New pages and interactions;
    • Extensions to existing features;
    • Bug localization and fixing;
    • Module refactoring and interface migration;
    • Data persistence and exception recovery;
    • Build configuration and compatibility adjustments.

    Each category should report results separately, to avoid simple page tasks masking failures in complex engineering tasks.

    Fix Acceptance Criteria Before Execution

    Each task should provide a clear initial state, allowed modification scope, expected behavior, and prohibited actions. Acceptance criteria should be set before the run, not adjusted after seeing the result.

    For example, the offline browsing task should not only verify that cached content displays. It should also check no-cache scenarios, cache expiration, network recovery, and app restart behavior.

    Also, do not rely solely on tests written by the system itself as the only evidence. Independent acceptance can reduce the risk that implementation and tests miss the same problem.

    Keep the Environment Consistent and Record the Process

    Try to unify code starting point, dependency state, compute resources, network conditions, and time budget. Keep modification logs, test results, error logs, and resource consumption.

    For processes with randomness, repeated trials are recommended, and result variability should be reported rather than only showing the best run. When the sample size is small, the uncertainty of conclusions should be explicit, so that small differences are not interpreted as stable advantages.

    Add Manual Takeover Assessment

    After automated execution, developers can take over failed tasks under unified rules. Record the time needed to understand existing modifications, locate remaining issues, and complete the fix.

    This answers an important question: even though the system did not independently pass acceptance, did it deliver a result that is easy to continue working on?

    A failed result with clear structure, controlled modification scope, and complete verification records is often more valuable for engineering than a half-finished product with many changes but no explanation.

    Balancing Quality, Speed, and Cost Through Tiered Scheduling

    Real projects do not need to apply the same execution intensity to all tasks. A better approach is to tier tasks by complexity and risk.

    Low-risk, clearly bounded modifications can use a smaller budget, prioritizing fast feedback. Tasks involving multiple modules or ambiguous requirements should first clarify constraints before implementation. Modifications involving data security, permissions, or critical business flows need stricter verification and manual review.

    During execution, an escalation mechanism can be set: start with low-cost attempts, then decide whether to add budget based on failure evidence, rather than mechanically repeating runs. Escalation conditions should be clear, such as cross-module impact, consecutive verification failures, or remaining issues beyond the current execution permission.

    At the same time, all automatically generated modifications must pass a unified quality gate, including build checks, static checks, key behavior verification, and necessary manual review. A solution cannot skip acceptance for a current task just because it has a historically high pass rate.

    Conclusion: Aim for Qualified Delivery, Not Chasing Individual Scores

    The value of evaluating intelligent programming for mobile apps is not to produce an environment-independent ranking of capabilities, but to reveal how a system performs under real engineering constraints.

    Pass rate answers “can it pass acceptance,” completion degree answers “how far did it go,” time reflects delivery cycle, cost reflects resource investment, and manual takeover burden determines whether a half-finished result is actually usable. These metrics need to be interpreted together with task risk and business goals.

    For development teams, a reliable practical path is: build a representative task set, fix acceptance rules, record execution processes, calculate full delivery costs, and control risk through tiered scheduling and quality gates. Only by putting intelligent programming into a verifiable, traceable, and takeover-ready engineering workflow can evaluation results translate into stable development benefits.