Long-程 Coding Capability: Benchmarks, Real-World Testing, and Boundaries

    This article examines why public benchmark scores are not enough to evaluate AI coding tools, and what happens when they are tested on long-horizon tasks inside real projects. It covers the baseline shift from cross-layer changes to multi-hour tasks, a two-task evaluation design (retrofitting a legacy system versus building a game from scratch), the real weaknesses exposed during manual acceptance—especially broken permission isolation, weak upload validation, and missing lifecycle management—and the "local correctness, global drift" pattern seen in long runs. It closes with a reusable four-gate acceptance checklist and practical advice on splitting work between humans and tools.

    1. The Problem: Why Benchmark Scores Are Not Enough

    When evaluating a new generation of AI coding tools, a common mistake is to treat public benchmark scores as the final verdict. A score reflects a pass rate on a specific distribution of problems. Real engineering work looks very different: large contexts full of legacy baggage, fuzzy requirement boundaries, changes that span multiple layers, and non-negotiable security constraints. A more useful approach is to put the tool into a real project and observe its behavior curve across long tasks.

    The core argument of this article comes down to three points. First, long-horizon coding capability has become the key metric that separates tool tiers. Second, there is a significant gap between “it runs” and “it is deliverable.” Third, whenever permission isolation, data boundaries, and final acceptance are involved, humans must retain decision authority.

    2. How the Capability Baseline Evolved: From Cross-Layer Changes to Long-Horizon Tasks

    To understand what an upgrade actually means, start with the baseline. In earlier practice, having a tool add one complete flow in a single-repo, multi-package structure—interface contract definition, database schema, task state machine, server-side endpoint, background executor, frontend page, and template rendering—already required more than an hour of continuous work. Verifying the result in a browser and fixing defects then took a comparable amount of time.

    This tells us two things. First, tools can already work continuously in a single-repo, multi-package environment and connect frontend to backend. Second, verification and repair often cost as much as the initial implementation, so the cost structure of a long task is a double peak: implementation plus verification. Any upgrade should be measured against this baseline.

    From an engineering perspective, this kind of upgrade usually does not depend on swapping the underlying foundation model. It comes more from scaling during post-training: expanding the environment scale of long-horizon tasks by one or two orders of magnitude, increasing environment type diversity, and extending training duration. Publicly described capability directions generally concentrate in three areas: coding and software engineering, code security review and vulnerability reasoning, and open weights for self-deployment and further improvement. It is worth stressing that security review capability is not equivalent to full vulnerability exploitation capability—the former is close to usable, while the latter still shows an obvious gap.

    3. Evaluation Design: Two Very Different Tasks

    A single task easily leads to a one-sided conclusion, so I designed a pair of tasks with sharp contrast.

    Task A (legacy system retrofit): In a project with years of historical code and existing security constraints, add the ability to “securely import user image assets and reference them in animation scenarios.” It tests legacy system understanding, constraint adherence, and data boundary handling at the same time.

    Task B (build from zero): Given only a learning resource and a requirements document, implement from scratch a knowledge-learning interactive game that can be completed end to end. It tests completeness across resource extraction, rule design, and product delivery.

    Both tasks ran through successfully, but Task A exposed a critical-severity permission isolation defect during manual acceptance. That result is far more informative than any score.

    4. Real Weaknesses in Legacy System Retrofits

    In existing projects, the most common problem is not missing functionality but “constraints being bypassed.” Typical patterns include:

    • Validating only frontend display without validating server-side ownership, so resources belonging to others can be reached through direct requests;
    • Checking only file extensions and frontend-declared types on upload, without content sniffing or re-encoding;
    • Lacking lifecycle management for temporary files and derived assets, with cleanup logic missed in exception branches;
    • New fields not incorporated into existing data scope filtering conditions.

    A minimal example of server-side ownership validation:

    1. // Every resource access must validate both "exists" and "ownership"
    2. Asset asset = assetRepo.findById(id);
    3. if (asset == null || !asset.getOwnerId().equals(currentUserId())) {
    4. throw new ForbiddenException("no permission");
    5. }
    6. // Upload: type sniffing + size limit + re-encoding to block disguised files
    7. ImageInfo info = imageProcessor.recode(rawBytes, MAX_SIDE, ALLOWED_TYPES);

    The key point: this kind of validation must stay consistent with the existing filter chain rather than being written as a separate path for the new feature. Tools tend to make “the new feature pass its tests,” and the tests are often written by the tool itself, forming a self-certifying loop. That is exactly why manual acceptance cannot be skipped.

    5. Building From Zero: A Window Into Long-Horizon Progress

    The from-scratch task shows long-horizon behavior more clearly. The focus is not whether the final UI looks polished, but whether the tool can extract stable knowledge items and dependencies from the source material; express the rules as a verifiable state machine; keep the structure consistent after multiple rounds of iteration instead of piling on patches; and finish with a runnable startup method and a self-test path.

    A learning game that can be completed is essentially a state machine with progress constraints:

    1. state: level progress / mastered knowledge points / error count
    2. transition: correct answer -> unlock next node
    3. transition: consecutive errors -> trigger hints instead of failing outright
    4. terminal: all core nodes completed -> game cleared

    A common degradation in long-horizon tasks is “locally correct, globally drifting”: each new module looks reasonable on its own, but naming, error handling, and data models gradually diverge. To judge reliability, look at whether the tool actively converges the structure rather than continuously expanding it.

    6. A Reusable Acceptance Checklist

    Break acceptance into four gates; failing any one blocks delivery:

    1. Build and static checks: compilation, type checking, and static scanning all pass;
    2. Automated tests: covering core paths and exception branches, with tests not defined solely by the implementer;
    3. Security gate: item-by-item review of unauthorized access, input validation, sensitive information, and log redaction;
    4. Manual acceptance: final confirmation by someone familiar with the business and historical constraints.

    The third gate can be minimized to a set of unauthorized-access cases:

    1. Case 1: User A accesses User B's resource -> expect denial
    2. Case 2: Executable content with a forged extension -> expect denial
    3. Case 3: Bulk list fetch carrying another user's identifier -> expect scope filtering to apply

    7. Conclusion and Recommendations

    Overall, this class of tools has pushed the coding ceiling of domestic models further forward and is especially suited to long-horizon, cross-module retrofit work—worth trying directly in real projects. Its boundaries are equally clear: on permission isolation, security constraints, and final acceptance, humans cannot let go.

    The practical recommendation is to move the human-machine division of labor upfront: write non-negotiable constraints as an explicit checklist and automated cases so the tool works inside clear guardrails, and leave the final judgment to people. If stronger enterprise-side control is needed, consider building an observable, rollback-capable engineering environment through relevant general capabilities from Baidu AI Cloud (such as container platform, object storage, logging, and monitoring and alerting), so every step of a long-horizon task remains traceable.