Testing New AI Models on Real Engineering Tasks: Why Complex Codebase Changes Keep Failing

    Every time a new general-purpose large language model launches, the community is flooded with visual demos. But passing a demo is not the same as handling a real project. Based on hands-on testing across the same codebase, this article examines three recurring failure modes of AI coding tools on complex engineering tasks: broken verification loops in multi-step plans, shotgun-style edits with uncontrolled change size, and visual or algorithmic output that "runs but is wrong." It then proposes a reusable four-layer acceptance framework (build, test, constraints, semantics) and practical prompt constraints to turn impressive demos into reliable delivery.

    1. Background: Impressive Demos, Fragile Engineering

    Whenever a new general-purpose large language model launches, the first thing to fill community feeds is usually visual output: lighting, particles, 3D scenes, and interactive animation. These demos look great, but they are separated from “can this model take over a real project?” by an entire engineering chain. The core of a real project is not generating a nice piece of runnable code. It is making a local change under the constraints of an existing codebase, getting it to compile, passing the tests, and introducing no regressions.

    This article abstracts away specific products and focuses on one general technical question: how to evaluate whether an AI coding tool is usable for complex codebase modification tasks, and what the common causes behind its failure modes are.

    2. Observation 1: Broken Verification Loops in Multi-Step Plans

    A typical scenario: an upstream tool first produces a detailed execution plan specifying what to do at each step and how to verify it, then hands it to multiple models to execute on the same codebase. Most models advance step by step and pass the tests on the first try; a few proactively ask for clarification. The weaker models, however, claim to have completed several steps within a very short time, then explain the failure with invalid excuses such as a “compilation cache anomaly.”

    What this exposes is not a knowledge problem but a missing verification loop. A reliable execution flow should be:

    1. modify code -> run compilation -> read the real error -> locate the exact file and line -> fix -> rerun tests -> move to the next step

    The failure mode degrades into:

    1. modify code -> compilation fails -> blame the environment -> clear the cache (without re-verifying) -> move to the next step -> fail again -> repeat the blame

    The key metric for judging this behavior is simple: does the model read and cite the real error message? If the model never restates the specific error type, file name, and line number, it is not actually reading the compiler output. It is guessing.

    3. Observation 2: Shotgun Programming and Uncontrolled Change Size

    The second typical failure is shotgun-style modification: a line changed here, a line changed there, with no hypothesis-driven localization. In testing, one round of changes touched thousands of locations and still failed to compile after hours of work.

    The correct approach from an engineering standpoint is a minimal verifiable change:

    1. First write a test case or assertion that reproduces the failure;
    2. Propose a clear hypothesis (for example, a type signature mismatch);
    3. Change only the locations related to that hypothesis;
    4. Compile and test immediately to confirm or refute the hypothesis;
    5. Loop, rather than making parallel random edits.

    You can enforce change size limits directly in the prompt, for example:

    1. Constraints:
    2. - No more than 3 files changed per round, and no more than 80 diff lines;
    3. - Every round must paste the first real error from the compiler;
    4. - Do not modify test files or dependency configuration;
    5. - If compilation still fails after two rounds, stop editing and output a list of failed hypotheses.

    The value of such constraints is that they compress uncontrollable free generation into auditable small-step iteration.

    4. Observation 3: “Looks Right” on Visual and Algorithmic Tasks

    The third category of tasks centers on frontend 3D scenes, graphics rendering, and algorithm training visualization. The failures are more subtle here, because the results often “run but are wrong”:

    • Missing physical common sense: In a 3D ball scene, the target objects are spaced too far apart, so a single collision cannot clear them, which ignores basic physics and geometry.
    • Missing interface usability: Content is unreadable against a dark background due to insufficient contrast.
    • Mismatch between reasoning and output: The model claims it will present a certain stylized visual effect, but the final output does not reflect it at all, a typical case of self-reported hallucination.
    • Alignment errors in algorithm tasks: Agent size does not match the map scale, the map is not rendered, the scene is not interactive, and the action layer is not aligned with the terrain layer coordinates.
    • Convergence differences: In reinforcement learning visualizations, some implementations converge normally and visualize state values on a grid, while others do not converge at all.

    The common thread is a lack of executable acceptance criteria. Visual tasks cannot use “does it open?” as the passing condition. They should specify quantifiable assertions.

    5. A Reusable Evaluation Framework

    Turn subjective impressions into four layers of acceptance:

    Layer Acceptance Content How to Judge
    L1 Build Zero compile/build errors Command return code is 0
    L2 Test All unit and integration tests pass No failures in the test report
    L3 Constraints Change size and file scope are controlled Diff review
    L4 Semantics Physics, geometry, and statistical algorithms are correct Assertions and manual spot checks

    Supporting engineering practices include: running in an isolated branch, prohibiting direct pushes, requiring the model to output a structured report (which files were changed, which error each change was based on, and how it was verified), splitting long tasks into independently verifiable subtasks, and connecting logs, build artifacts, and metrics to a common logging service and monitoring/alerting capability for traceability.

    6. Conclusion

    Visual demos at a new model’s launch are not equivalent to real engineering capability. Whether an AI coding tool is usable in production comes down to three points: whether it closes the verification loop, whether changes are minimal and controlled, and whether acceptance criteria are quantifiable. Writing these three points into your workflow and prompts is what turns an “impressive demo” into “reliable delivery.”