Evaluating Intelligent Programming for Mobile Apps: Balancing Completion, Time, and Cost

    The evaluation of AI-assisted mobile app development is shifting from verifying isolated code snippets to assessing end-to-end engineering delivery under real-world constraints. This article explores four core evaluation metrics—pass rate, completion rate, execution time, and execution cost—and explains why a high completion rate does not always guarantee a high pass rate. Furthermore, it provides actionable strategies for building credible internal evaluations and configuring production-oriented execution budgets to establish a reliable engineering closed-loop.

    1. From Code Generation to Engineering Delivery: What Has Changed in Evaluation

    The focus of intelligent programming evaluation is shifting from “can it write a correct piece of code” to “can it complete a development task under real engineering constraints.”

    Mobile app development perfectly illustrates this difference. A seemingly simple feature requirement may simultaneously involve UI state, business logic, data persistence, asynchronous processing, permission management, and lifecycle adaptation. A code snippet running correctly in local tests does not mean it can be smoothly integrated into an existing project, nor does it guarantee the app will work stably in a device environment.

    Therefore, long-horizon development evaluations typically need to cover tasks such as app creation, feature expansion, code migration, and application refactoring. The evaluated subject is no longer just the model itself, but a system composed of the model, agent execution workflow, tool permissions, context management, and the runtime environment.

    Understanding this is the prerequisite for correctly interpreting benchmark results. A high score in an evaluation indicates that the corresponding system performs well under specific task sets and execution conditions; it cannot be directly extrapolated to mean it is suitable for all development scenarios.

    2. Four Core Metrics Answering Different Questions

    1. Pass Rate: Does the Task Truly Meet Acceptance Criteria?

    The pass rate measures the proportion of tasks that meet the established acceptance criteria. It focuses on complete delivery, not “how much code has been written.”

    For example, an offline data management feature might require that data can be re-read after being written, existing records are not lost under abnormal circumstances, and the state remains correct after an app restart. Even if the main UI and normal flow are completed, the task may still fail acceptance if there are defects in the critical persistence logic.

    Thus, the pass rate is more of a delivery reliability metric, but it also depends on the quality of the acceptance criteria. If the criteria are too loose, system capabilities will be overestimated; if coverage is insufficient, real risks may be missed.

    Another easily overlooked issue: if the evaluation results use weighted scoring, multiple run averages, or other aggregation methods, the reported percentage may not directly translate to an integer number of passed tasks. When interpreting, you should first confirm the statistical method rather than reverse-engineering conclusions based solely on the total number of tasks.

    2. Average Completion Rate: How Far Has the Task Progressed?

    Completion rate is used to express partial success, but it must be based on clear scoring rules.

    A more reasonable approach is to break down the task into verifiable sub-goals, such as:

    • The project can build successfully;
    • Core business logic meets expectations;
    • UI state and operation flow are correct;
    • Data read/write behaviors meet requirements;
    • Exceptions and boundary conditions are handled;
    • Regression checks reveal no critical feature degradation.

    These sub-goals should not be assumed to have equal weight by default. Key conditions like data integrity and permission boundaries are often more important than UI details.

    High completion does not mean it is close to being deliverable. If the unfinished part happens to be on a critical path such as payment confirmation, permission validation, or data migration, even if its scoring weight is low, it is enough to block the release. Completion rate is suitable for helping teams locate remaining work, but it should not be used alone as a release basis.

    3. Execution Time: Differentiate Between Waiting Time and Compute Effort

    Time consumption depends not only on the model’s generation speed but also on multi-round planning, file retrieval, building, testing, fault localization, and repeated repairs.

    For enterprises, at least three types of time should be distinguished:

    • Wall-clock time: The actual elapsed time from task submission to output result;
    • System execution time: Time occupied by computation, tool calls, and build tests;
    • Human intervention time: Time invested by developers in clarifying requirements, reviewing code, and fixing issues.

    One system might run longer but reduce manual modifications; another might produce results quickly but leave numerous defects for engineers to fix. Comparing only the task end time cannot fully reflect production efficiency.

    Additionally, the time in evaluations might be aggregated per entire task set, per single task, or across multiple runs. Data from different statistical scopes should not be directly compared horizontally.

    4. Execution Cost: Don’t Just Look at Direct API Fees

    Direct fees are easy to record, but they are not the total engineering cost.

    A more complete cost model can be written as:

    Total Engineering Cost = Model Usage Cost + Execution Environment Cost + Manual Review and Repair Cost + Failed Rerun Cost + Subsequent Maintenance Cost.

    Here, the execution environment may include compute resources, test devices, storage, and log collection costs. Manual cost depends on output quality, change complexity, and whether problems are easy to locate.

    Therefore, low call fees do not necessarily mean low delivery cost; high fees do not inevitably bring higher quality. Teams need to compare the final usable output under unified acceptance criteria, rather than just comparing single items on the bill.

    3. Why Does “High Completion, Low Pass Rate” Occur?

    This phenomenon in long-horizon tasks is not contradictory. It usually indicates that the system can advance a large amount of development work but struggles to stably cross the final acceptance threshold.

    1. Multi-constraint Tasks Are Vulnerable to Critical Defects

    Mobile app delivery involves multiple interdependent components. The UI, data, background tasks, and permission logic may seem normal individually, but issues can still arise when running in combination.

    For example, the app might read data during a normal launch but fail to restore state after the process is killed; or the UI displays correctly, but a submit action triggers duplicate writes. Such defects might not involve a large amount of code, yet they can directly cause acceptance failure.

    Completion rate measures local progress, while pass rate tests the overall result, so a clear gap between the two is natural.

    2. Extended Fixes Can Lead to Local Loops

    After discovering a build failure, an agent might continuously modify the local implementation without re-examining the initial architectural assumptions. As patches accumulate, engineering complexity rises, making subsequent localization even more difficult.

    This indicates that increased time consumption does not necessarily mean increased effective progress. Evaluations should record whether each round of modifications brings new valid check passes or if the same errors keep recurring.

    If consecutive rounds of modifications yield no improvement in verification results, it should trigger re-planning, rollback to a stable checkpoint, or transfer to manual processing, rather than infinitely increasing the execution budget.

    3. Insufficient Verification Feedback Amplifies Directional Deviation

    Providing only a “failure” conclusion is often insufficient to support reliable fixes. The system needs to know in which stage the failure occurred, what the expected behavior was, what the actual behavior is, and what conditions can stably reproduce the issue.

    High-quality evaluations should provide reasonable visible feedback while retaining an independent acceptance phase to prevent the system from merely making superficial patches targeting known check items.

    4. How to Build a More Credible Internal Evaluation

    1. Use Real Task Distributions Instead of a Single Total Score

    Enterprises can extract tasks from historical requirements and bugs, covering new feature development, existing module modifications, compatibility adjustments, bug fixes, and engineering migrations.

    Each type of task should be labeled with complexity, business risk, estimated scope of change, and verification difficulty. Reporting results by category can reveal the system’s capability boundaries and prevent averages from masking weaknesses.

    When involving production code, necessary desensitization should be performed first, and the exposure scope of sensitive data and access credentials should be restricted.

    2. Fix Execution Conditions to Reduce Irrelevant Variables

    At least the following information should be recorded:

    • Project initial state and dependency versions;
    • Build environment and device environment;
    • Files and tools the agent can access;
    • Whether internet access and installing additional dependencies are allowed;
    • Maximum execution time, retry count, and fee budget;
    • Whether humans participate and how;
    • Test scripts, acceptance rules, and scoring methods.

    If these conditions differ, score variations might originate from the environment rather than model capabilities. For tasks relying on external services, controllable alternative test environments should be provided as much as possible to reduce the impact of service fluctuations on results.

    3. Observe Stability Through Repeated Runs

    A single success is insufficient to prove stable reliability. Running key tasks multiple times independently allows observation of fluctuations in pass rate, time consumption, and cost.

    Besides the average, attention should also be paid to the median, percentiles of slower runs, and the distribution of failure types. For teams with fixed iteration cycles, a few abnormally slow tasks can also affect the overall delivery plan.

    When the number of tasks is small, results usually carry significant uncertainty, and minor score differences should not be interpreted as definitive capability gaps.

    4. Combine Automated Verification with Manual Review

    Automated verification is suitable for checking builds, business assertions, interaction flows, and regression behaviors; manual review is better suited for judging architectural rationality, maintainability, security boundaries, and unnecessary engineering changes.

    For critical businesses, issues such as data corruption, permission bypass, and sensitive information leakage should be set as explicit blocking items and cannot be offset by scores from other features.

    5. Production-Oriented Budget and Execution Strategies

    1. Allocate Execution Resources Based on Task Risk

    Low-risk, well-defined tasks that are easy to verify automatically can prioritize a low-budget workflow, such as simple UI adjustments, localized text modifications, and rule-clear data transformations.

    Cross-module refactoring, complex state management, and tasks involving data consistency should employ more thorough planning and verification, with manual approval checkpoints set.

    The core here is not to attach fixed labels to a certain type of model, but to dynamically allocate resources based on task difficulty, cost of failure, and verification capabilities.

    2. Adopt Phased Budgets to Avoid Granting All Permissions at Once

    Tasks can be divided into five phases: requirement understanding, solution design, implementation, verification, and repair. Each phase should have defined output requirements and stop conditions.

    For example, the implementation phase must provide the scope of changes and check results; if the same type of error continues to occur during the repair phase, automated attempts should stop. Operations involving data deletion, permission modifications, or critical configuration adjustments should be approved separately.

    This approach reduces ineffective loops and facilitates auditing and fault tracing.

    3. Use Effective Delivery Cost as the Final Decision Basis

    Enterprises can continuously track two metrics:

    Cost per accepted task = Total evaluation investment ÷ Final number of accepted tasks.

    Manual rework ratio = Manual repair time ÷ Total manual time invested in the task.

    The former helps determine whether investments are translating into results, while the latter helps determine whether automation is truly reducing the development burden. Both metrics should be tracked separately by task category and clearly define cost boundaries to avoid mixing tasks of varying difficulties.

    6. Conclusion: Evaluation Scores are the Entry Point, Engineering Closed-Loop is the Answer

    The value of intelligent programming for mobile apps cannot be summarized by a single pass rate, completion rate, or API fee. High completion might mean the system has strong task propulsion capability, or it might expose insufficient verification at critical stages; longer execution times might bring more thorough fixes, or they might just be repeated attempts.

    A reliable selection method is to put the model into a real engineering workflow, examining acceptance quality, operational stability, manual rework, and total cost under unified conditions, and then configuring the execution budget based on task risk.

    What is truly worth pursuing is not having the system continuously generate more code, but establishing a delivery closed-loop of “clear requirements, controllable changes, sufficient verification, and recoverable failures.” Only within this closed-loop can evaluation scores translate into sustainable development efficiency.