Evaluating Long-Horizon Coding Capabilities and the Limits of Human Acceptance
This article explains why public benchmark scores are not enough to evaluate AI coding tools and proposes a practical, production-oriented evaluation method for long-horizon coding. It covers how to set a baseline from post-training gains on the same base model, how to design two contrasting tasks (incremental changes in a legacy system and building a complete app from scratch), and why passing tests does not mean a project is ready to ship. It also provides a three-layer acceptance model spanning functionality, security, and operations, along with reusable evaluation practices and a clear division of responsibility between AI tools and human engineers.
1. The Problem: Why Benchmark Scores Are Not Enough
When evaluating a new generation of AI coding tools, the easiest mistake is to treat public benchmark scores as the final verdict. Scores reflect average performance in controlled environments, while real engineering deals with legacy baggage, implicit conventions, permission models, and acceptance criteria. The capabilities that truly differentiate tools show up in long-horizon tasks: whether the tool can understand complex context, keep making progress on cross-module changes, and bring a task to a runnable and testable state.
This article does not focus on any specific product. Instead, it abstracts a general question: how do you design an evaluation method that closely mirrors production, determines the real ceiling of long-horizon coding ability, and draws a clear line between human and machine responsibility?
2. Observation Baseline: Post-Training Gains on the Same Base Model
A common pattern is that a new version does not change the base model parameter size and still uses a base model of the same scale from the previous generation. The improvement comes mainly from scaling up the post-training stage: longer task environments, more diverse environment types, and more extensive training time. This leads to three observations:
- Gains are concentrated in the task execution workflow rather than world knowledge, showing up as fewer mid-task distractions and less rework;
- Capability improvement is non-linear, with cross-module tasks benefiting significantly while single-point Q&A tasks show limited differences;
- The capability boundary expands from “generating code” to “reviewing code and reasoning about defects,” but there is still a clear gap in scenarios such as constructing a complete attack chain.
When evaluating, compare the new version against an existing baseline rather than an ideal state. The baseline can be a real workflow accumulated by your team, for example an end-to-end overhaul involving contract definitions, data models, task state, the interface layer, background jobs, frontend pages, and rendering output, with the time spent and number of rework rounds recorded at each stage.
3. Test Design: Two Very Different Tasks
A single task easily leads to one-sided conclusions. It is recommended to configure at least two types of tasks.
Task A: Incremental changes in an existing system. In a codebase with a long history, add the capability for “secure import of user assets and animated scene references.” The evaluation points include: whether it can identify existing layering and naming conventions; whether it reads the current implementation before introducing new dependencies; and whether it applies security constraints (type validation, size limits, path normalization, content isolation) in actual code rather than in comments.
Task B: Building a complete product from scratch. Provide only one piece of learning material and one requirements document, and ask for an end-to-end playable knowledge-learning application. The evaluation points include: material analysis and requirement breakdown, data structure design, state machine and progress persistence, level difficulty curve, and end-to-end playability.
The two tasks respectively cover “understanding a legacy system + handling constraints” and the full path “from information to a shipped product.”
4. Interpreting Results: Running Is Not the Same as Deliverable
A typical result is that both projects run, but the legacy project exposes a high-risk permission isolation defect during human acceptance: different users can access each other’s assets without authorization. This kind of problem does not fail tests, because the test cases themselves do not cover unauthorized access paths.
This leads to an important judgment: all tests passing is a necessary condition, not a sufficient condition for delivery. It is recommended to split acceptance into three layers:
- Functional layer: whether the main flow and boundary conditions meet the requirements;
- Security layer: whether authentication, authorization, input validation, output encoding, and resource isolation form a coherent system;
- Operations layer: whether logging, monitoring and alerting, failure retries, and rollback paths are usable.
A sample authorization check should explicitly bind resource ownership, rather than only checking “whether the user is logged in”:
// Bad example: only checks login state, which allows unauthorized accessif (session.getUser() == null) return forbidden();// Good example: checks resource ownership and denies by defaultboolean owned = assetRepository.findById(assetId).map(a -> a.getOwnerId().equals(session.getUser().getId())).orElse(false);if (!owned) return forbidden();
5. A Reusable Evaluation Method
- Task layering: allocate a certain proportion to single-point fixes, cross-module changes, and building from scratch;
- Observable process: record stage duration, number of rework rounds, and human intervention points;
- Constraints up front: write security, performance, and compatibility into the task description rather than adding them afterward;
- Independent acceptance: have acceptance performed by someone who did not participate in the implementation, to avoid self-validation;
- Regression accumulation: turn discovered defects into fixed test cases to form team assets.
6. Human-Machine Boundary and Engineering Recommendations
A reasonable division of labor at the current stage is to hand long-horizon, repetitive, cross-file changes to AI coding tools, and leave the permission model, security policies, and final acceptance to humans. In practice, you can adopt a combination of “small commits + mandatory review + automated gates,” together with containerized environments and a unified logging service to reduce noise caused by environment differences.
The conclusion is clear: long-horizon coding capabilities are already sufficient to support pilot projects in real settings, especially with clear value in sustained cross-module progress; but when it comes to permissions, security, and final delivery judgment, humans cannot step back. Turning the evaluation method into a fixed process delivers more sustained returns than chasing any single score.
