Why AI Coding Evaluation Must Move From Line-by-Line Fixes to System Evolution

    This article argues that evaluating AI coding assistants on isolated bug fixes overstates their real capabilities. It explains why single-point repair tasks differ fundamentally from software evolution, outlines four characteristics of real evolution tasks, describes the limits of point-based evaluation, and proposes design principles, task construction, metrics, and engineering practices for an evolution-oriented evaluation framework.

    When we talk about AI participating in software development, the common picture is often this: an assistant fills in a missing piece of logic, fixes a boundary condition, generates a few utility functions, or produces a patch based on an error message. These capabilities are certainly valuable and can significantly improve local efficiency. But if we shift the perspective from “single-point modification” to “continuous software evolution,” the problem becomes far more complex. A system moving from a stable version to the next is rarely completed by stacking isolated patches. It requires understanding changing requirements, assessing the scope of impact, coordinating changes across multiple modules, preserving compatibility, and running full regression validation to ensure existing capabilities are not broken. In other words, local repair answers “how do we fix today’s error,” while system evolution answers “how does the next version of the software arrive safely.”

    1. The Core Problem: Fixing Local Defects Is Not the Same as Supporting Software Evolution

    Single-point defect repair tasks usually come with clear inputs: an error description, a relevant piece of code, a reproducible path, and a relatively well-bounded expected result. An AI assistant only needs to locate the problem area and generate a patch that passes the tests to be considered successful. This kind of evaluation resembles a “fill-in-the-blank” exam question: the boundaries are clear, the answer space is limited, and the scoring criteria are direct.

    Real software evolution, however, is more like “renovating a still-running factory based on a release note.” A release note may simultaneously contain new capabilities, behavior changes, interface changes, configuration migrations, compatibility requirements, and the cleanup of deprecated logic. Developers must not only understand the technical meaning behind each item but also judge which files are affected, which modules have implicit dependencies, which legacy behaviors must be preserved, and which tests need to be added or updated. A seemingly simple feature adjustment may simultaneously touch the data model, business services, the interface layer, the configuration system, documentation, and test cases.

    So if the evaluation system only measures “can it generate a patch for a given bug,” it excludes the hardest parts of software engineering: global planning, cross-file coordination, long-term consistency, and regression protection. AI may shine on local tasks yet expose problems in system-level evolution tasks, such as fragmented planning, loss of context, incomplete modifications, and insufficient validation.

    2. Four Characteristics of Real Software Evolution Tasks

    First, the requirement source is a release note rather than a single error report. Release notes usually describe a set of changes in natural language, with high information density but low structuralization. AI must extract executable tasks from them, identify dependencies between changes, and turn vague descriptions into concrete code modifications.

    Second, the scope of modification spans files and modules. Real evolution rarely changes just one function. It may require synchronized adjustments to interface definitions, callers, serialization logic, default configuration, and test assertions. Any single omission can cause compilation failures, runtime exceptions, or behavioral inconsistency.

    Third, compatibility and regression constraints are strong. New features must not come at the cost of breaking old ones. Evaluation cannot look only at whether new tests pass; it must also verify that the existing test suite still passes stably, that key behaviors remain backward compatible, and that exception paths are still under control.

    Fourth, tasks are multi-step and require recoverability. AI must first analyze, then plan, then edit, then validate; after a validation failure, it must locate the problem based on feedback and iterate on the fix. This process tests not only code generation ability but also task decomposition, state management, and self-verification.

    3. The Limits of Point-Based Evaluation: Local Optimum Is Not System Correctness

    The first limitation of point-based evaluation is fragmented context. AI often sees only the few files related to a defect and struggles to understand the implicit contracts between modules. The second limitation is short-sighted reward: a patch may score simply by passing the current test, while whether it introduces duplicate logic, breaks abstraction boundaries, or increases future maintenance cost is usually outside the evaluation scope. The third limitation is test coverage bias: single-point tasks typically design tests around a known defect and struggle to cover cross-module interactions and compatibility scenarios. The fourth limitation is the lack of long-term planning: real evolution requires forming a change plan first and then executing it in dependency order, whereas point-based tasks tend to train AI into a “react-as-you-go” patch generator.

    This explains a common phenomenon: some AI assistants perform well on traditional defect-repair evaluations, but when facing evolution tasks that require understanding release notes, modifying large numbers of files, and passing full regression, their success rate drops noticeably. Some evaluation practices show that, in a setup containing dozens of real evolution tasks, each involving on average more than twenty file modifications and requiring validation against hundreds of test cases, even a stronger model paired with a general-purpose agent framework can solve only about twenty percent of the tasks; on traditional defect-repair evaluations, the success rate can exceed sixty percent. The gap does not come from any single coding technique but from the absence of system-level engineering capability.

    4. Design Principles for an Evolution-Oriented Evaluation Framework

    To evaluate whether AI can be a reliable partner in software evolution, the evaluation framework should follow these principles.

    1. Based on real version history. Tasks should come from the real changes between a stable version and the next version of a mature project, not from artificially stitched-together toy problems. This preserves real dependencies, real tests, and real compatibility constraints.

    2. Use the release note as the requirement entry point. AI should not be given the answer of “which files to change and how to write them” directly; instead, it should read the release note like a developer, independently extract change items, break down tasks, and make a plan.

    3. End-to-end validation rather than local assertions. Evaluation should run the full regression test suite and add compatibility checks, static checks, and key behavior validation. Pass rate is only an outcome metric; the framework should also record change completeness, the number of regressions introduced, the number of repair iterations, and plan executability.

    4. Multi-file modification and dependency management. Tasks should cover cross-file coordination, requiring AI to handle interface changes, caller updates, configuration migrations, and test synchronization, avoiding edits to only the “most obvious” files.

    5. Reproducible and diagnosable. The evaluation environment should be containerized and replayable, retaining AI’s plans, edit traces, test output, and failure reasons, making it easier to distinguish “cannot do it,” “did it incompletely,” “broke it,” and “validated insufficiently.”

    5. Task Construction and Metrics: From Release Notes to Verifiable Results

    Task construction can proceed in three steps. First, select historical version ranges from several mature projects, confirming that the starting version is stable and the ending version is verifiable. Second, organize change items from the version release notes into a natural-language requirement package, while hiding the specific file list and reference patch. Third, prepare the complete test suite and compatibility checks to ensure the task can be reproduced through an automated pipeline.

    For metrics, a multi-dimensional set is recommended: task success rate, the proportion of tasks completed end-to-end with regression passing; change completeness rate, the proportion of change items in the release note correctly covered; regression breakage rate, the number of existing tests broken; plan quality, the degree to which the AI-generated change plan matches the real dependency order; and repair efficiency, the number of rounds needed to recover through feedback-based iteration after a validation failure. Looking at a single success rate alone tends to hide problems; only multi-dimensional metrics can locate capability gaps.

    6. Key Capability Requirements for AI Assistants

    Evolution-oriented tasks require five capabilities from AI. The first is global understanding: building a system view from the release note and code structure, and identifying module boundaries and dependencies. The second is planning and decomposition: breaking a set of changes into executable steps and clarifying their order and validation points. The third is cross-file editing: keeping interfaces, callers, configuration, and tests consistent, avoiding local changes that trigger cascading failures. The fourth is test-driven and self-verification: proactively running relevant tests and locating omissions from failure information, rather than ending right after generating a patch. The fifth is failure recovery: when regression fails, distinguishing whether it is an implementation error, an outdated test, or a misunderstanding of requirements, and adopting different repair strategies accordingly.

    7. Engineering Implementation Recommendations

    When introducing AI into system evolution, teams should avoid directly opening up large-scale automatic modification. A more prudent approach is gradual adoption: first let AI generate a change plan and impact analysis, have humans review it, and then execute the edits; then gradually open up multi-file modification for low-risk modules; and only finally attempt end-to-end tasks. On the engineering side, teams should establish layered testing, static checks, change review, and rollback mechanisms, and retain complete logs and monitoring alerts. A general-purpose container platform, CI pipelines, and logging services can be used to build a reproducible evaluation environment, so that every task can be replayed and diagnosed.

    A sample evaluation flow is as follows:

    1. evaluate(agent, repo, release_notes):
    2. baseline = checkout_stable(repo)
    3. plan = agent.analyze(release_notes, baseline)
    4. changes = agent.plan_changes(plan)
    5. patch = agent.edit_multiple_files(changes)
    6. result = run_full_regression(patch)
    7. while result.failed and agent.can_repair():
    8. patch = agent.repair_with_feedback(patch, result)
    9. result = run_full_regression(patch)
    10. return score(
    11. success=result.all_passed,
    12. completeness=check_release_items(patch, release_notes),
    13. regressions=count_regression_failures(result),
    14. iterations=agent.iteration_count
    15. )

    8. Conclusion

    The value of AI coding assistants should not stop at “modifying code line by line.” True software evolution requires understanding release notes, planning system changes, coordinating multi-file modifications, ensuring compatibility, and passing full regression. If the evaluation system remains at the level of single-point patches, it will overestimate AI’s system-level capabilities and mislead engineering teams in judging its maturity. The significance of an evolution-oriented evaluation framework lies in bringing the most critical, most difficult, and most delivery-relevant parts of software engineering into consideration. Only when AI assistants can reliably complete cross-module, multi-step, verifiable system evolution tasks do they truly have the foundation to become reliable partners in software development.