Evaluating Intelligent Programming for Mobile Apps: Trade-offs in Completeness, Time, and Cost
As AI-assisted coding shifts from local code generation to complete engineering tasks, evaluating its performance requires a new approach. This article explores four core metrics—pass rate, completeness, execution time, and cost—and their trade-offs in mobile app development. It introduces a layered acceptance system and a budget control strategy to help development teams accurately assess intelligent programming systems and build custom task sets for real-world applicability.
I. From Code Generation to App Delivery: The Shift in Evaluation Objects
Intelligent programming evaluation in mobile app development is shifting from local code generation to full engineering tasks. Compared to simply completing a function or fixing a syntax error, creating an app, adding business features, migrating legacy code, or restructuring an app requires continuous understanding of the project context and modifications across multiple stages.
A seemingly simple task like “adding a local favorites feature” often involves UI interaction, state management, data persistence, exception handling, and test verification. Even if every local modification appears reasonable, a single broken link in a critical stage can prevent the final feature from being delivered.
Therefore, evaluation cannot merely look at whether code is generated or whether a specific test passes. It must focus on the complete chain:
Requirement Understanding -> Engineering Exploration -> Modification Planning -> Code Implementation -> Build Verification -> Behavior Testing -> Result Delivery.
This is the core challenge of long-horizon tasks: the model must not only get one step right but also maintain consistency across subsequent steps. An early misjudgment of the engineering structure can amplify over multiple rounds of modifications, while an unnecessary refactoring in the final stage can break previously completed features.
For development teams, the real question to answer is not “which solution writes code best,” but “under clear quality requirements and resource constraints, which execution method is more likely to produce verifiable deliverables.”
II. Four Core Metrics Answering Different Questions
1. Pass Rate: Does the Final Result Meet Acceptance Criteria?
Pass rate usually represents the proportion of execution results that meet the task’s acceptance conditions. Its value lies in directly reflecting delivery success, though its exact meaning depends on the evaluation rules.
If a task requires data loading, list display, detail navigation, and offline prompts, completing only the first three might not count as a pass. For teams that need to directly merge code or publish an app, this strict standard is practically significant.
However, pass rate has limitations. It compresses varying degrees of failure into a single result: an unbuildable project and a missing edge-case prompt might both be recorded as a failure. Therefore, pass rate should be interpreted alongside fine-grained metrics.
Furthermore, if an evaluation includes only a few tasks but reports a detailed percentage, you need to understand the statistical criteria: Were multiple runs conducted? Are there multiple sub-tasks? Is a weighted summary used? Do not reverse-engineer the number of successful tasks from a percentage without clear definitions.
2. Completeness: How Much of the Requirement is Implemented?
Completeness typically describes the coverage of task requirements, but there is no universally standard calculation method across evaluations. It might come from checklist items, test coverage results, or manual scoring.
High completeness with a low pass rate is not contradictory. It often means the execution process completed most of the work but failed in a few critical links that determine delivery success, for example:
- The main flow is implemented, but empty data or permission denial scenarios are handled poorly;
- The feature code is modified, but the build configuration does not match the project’s current state;
- A single page works normally, but cross-page state is not synchronized;
- Basic tests pass, but data is lost after the app restarts;
- Most requirements are met, but existing features were accidentally modified.
These differences determine whether the “remaining work” is easy for humans to fill. A 90% completed task might only need a prompt text update, or it might lack a critical data consistency guarantee. These two situations cannot be treated equally.
3. Execution Time: Define the Statistical Scope First
Execution time might refer to the wall-clock time of a single task, or the total time of an entire evaluation suite, the average time per task, or the mean of multiple runs. These scopes cannot be mixed directly.
The complete execution time may also include model inference, code retrieval, build waiting, test execution, environment recovery, and failure retries. Longer execution times do not necessarily indicate deeper reasoning; they might also mean inefficient tool calls, environment instability, or getting stuck in a repair loop.
Therefore, evaluation reports should ideally record both total time and phase-by-phase time. Otherwise, only seeing “it ran for a long time” makes it impossible to determine whether to optimize task planning, build processes, or stopping strategies.
4. Running Cost: Not Equal to Total Delivery Cost
The direct running cost of intelligent programming is only part of the engineering cost. Actual costs also include the execution environment, testing resources, manual review, rework, and maintenance investments.
A more valuable accounting method is:
Total Delivery Cost = Auto Execution Cost + Environment Cost + Manual Review Cost + Rework Cost.
Low running costs accompanied by extensive manual fixes are not necessarily more economical; high running costs that do not significantly reduce rework do not justify the investment either. Ultimately, enterprises should focus on how many resources are required for each verifiable deliverable under consistent quality requirements.
III. High Completeness and Long Execution Time: What Engineering Trade-offs Do They Reflect?
High completeness accompanied by a long execution time might indicate that the system performed more exploration, verification, and repair. However, this is only an explanation to be verified, not a direct conclusion.
One scenario is effective investment: the system identified complex dependencies, added necessary tests, and progressively fixed issues. The extra time brought real quality improvements.
Another scenario is an inefficient loop: the system repeatedly tried the same error, frequently modified unrelated files, or introduced new regressions to pass local checks. Here, execution time increases, but the delivery success rate does not improve correspondingly.
To distinguish between the two, you need to observe the intermediate process:
- Does each modification target a clear problem?
- Is the number of test failures continuously decreasing?
- Are the same errors recurring?
- Is the scope of modifications continuously expanding?
- Do later operations overturn previously verified results?
- Does the added time bring measurable acceptance benefits?
The core here is not to pursue the shortest execution time, but to improve the marginal benefit of additional investment. When multiple consecutive rounds of execution yield no effective progress, continuing automatic attempts is usually worse than pausing, preserving the current state, and handing it over to manual analysis.
IV. Evaluation Results Belong to the Entire Execution System, Not Just the Model
Real engineering tasks are typically completed collaboratively by the model, execution agent, tool environment, and task configuration. The execution agent is responsible for reading files, calling build processes, running tests, and organizing feedback. Its design significantly impacts the results.
For example, with the same model, a workflow of “understand the engineering first, then make small-step modifications, verifying each step” will have a completely different failure mode than a workflow of “directly rewrite a large scope, then build everything at the end.”
Therefore, a fair comparison requires at least clarifying the following conditions:
- Consistent Engineering Starting Point: Dependency states, project versions, initial defects, and runtime environments should be identical.
- Consistent Tool Permissions: Whether access to external resources, dependency installation, or build configuration modification is allowed must be clearly recorded.
- Consistent Resource Budgets: Different time limits, call budgets, and retry counts will change the results.
- Consistent Acceptance Rules: You cannot have one solution only check the build while another checks interactions and regressions.
- Sufficient Runs: A single execution might be affected by randomness; stability should be observed through repeated runs.
- Traceable Failure Trajectories: Only by retaining key operations, test outputs, and final diffs can the results be explained.
If the execution agents are different, the conclusion should describe the performance difference between execution schemes, rather than attributing all differences to model capabilities.
V. Towards Real Projects: Establishing a Layered Acceptance System
Layer 1: Engineering Integrity
First, verify whether the project still has basic maintainability, including whether the build succeeds, whether necessary files are complete, whether dependency changes are reasonable, and whether modules outside the task scope were accidentally modified.
This layer is relatively low-cost and suitable for early execution. When engineering integrity is not met, continuing with complex interaction tests is usually meaningless.
Layer 2: Functional Correctness
Break down requirements into observable acceptance conditions rather than using vague descriptions like “smooth experience” or “complete functionality.”
For example, a favorites feature can be broken down into:
- The UI state changes correctly after the user triggers an action;
- Repeated operations do not produce duplicate records;
- The state remains consistent when re-entering the page;
- Records can still be read after the app restarts;
- A data read failure does not affect other main features.
These checks help automated execution systems understand the goals and facilitate manual review.
Layer 3: Regression and Boundary Behavior
New features should not come at the cost of breaking existing capabilities. You need to check affected modules for empty data, duplicate input, network anomalies, lifecycle changes, and permission changes.
Not all tasks require the same scale of verification. Modifying static text and adjusting persistence logic clearly carry different risks. Test depth should increase with the risk of the change, rather than mechanically applying a uniform process.
Layer 4: Security and Maintainability
A running feature only represents a partial goal. You should also check whether sensitive information is logged, whether permission requests exceed the necessary scope, whether error handling masks real problems, and whether the code introduces unmaintainable duplicated logic.
Security and quality requirements should serve as independent gates. A high average completeness should not offset critical risks.
VI. Controlling Budget with Layered Execution
Faced with tasks of varying difficulty, a more reasonable approach is to allocate resources based on risk and complexity.
For changes with a small impact scope and clear acceptance criteria, you can use a shorter execution budget and quickly filter results through automated checks. For cross-module modifications, data migrations, or architectural adjustments, you should increase the investment in planning, verification, and manual review.
An implementable workflow is:
Task Classification -> Initial Execution -> Automatic Acceptance -> Failure Diagnosis -> Targeted Retry or Escalated Processing.
Here, escalation should not just mean extending the running time, but changing the processing strategy. For example, supplementing engineering context, narrowing the modification scope, requiring a plan output first, or introducing manual confirmation.
At the same time, clear stop conditions must be set, including budget exhaustion, consecutive rounds with no progress, modification scope out of control, and the occurrence of high-risk operations. Stopping is not a cover-up of execution failure, but a necessary mechanism to control losses and protect the engineering state.
VII. Build Your Own Task Set for Real Applicability
Public benchmarks can provide references, but the task distribution, engineering scale, and acceptance methods may not align with enterprise projects. Development teams should extract representative tasks from historical work to form an internal evaluation set.
The task set can cover feature additions, bug fixes, code migrations, test additions, and engineering configuration adjustments, categorized by difficulty, risk, and module scope. During evaluation, record both successful results and the reasons for manual takeover.
It is recommended to focus on tracking the following metrics:
- The proportion of tasks that pass acceptance without manual modification;
- The success rate of the first execution versus the success rate after retries;
- Manual review and rework time;
- Time distribution across different task types;
- The frequency of introduced regression issues;
- The comprehensive cost per verifiable deliverable.
The task set should also be updated regularly to prevent the execution process from only performing well on fixed samples. Regarding time consumption, in addition to the average, pay attention to the median and percentiles of slower tasks to identify long-tail problems.
Conclusion
The core evaluation object of intelligent programming for mobile apps is not a single code output, but an engineering delivery chain that can stably form a closed loop.
Pass rate describes final success, completeness helps identify remaining work, execution time reflects resource usage, and cost needs to be comprehensively calculated combining manual input and rework. No single metric is sufficient to support a complete selection conclusion.
For development teams, a more prudent approach is: define acceptance criteria first, then validate with real tasks; distinguish failure causes first, then decide whether to increase budget; control change risks first, then pursue higher automation. Only by combining model capabilities, execution processes, and engineering governance can intelligent programming evolve from “being able to complete partial work” to “reliably participating in delivery.”
