Evaluating Long-Horizon Coding Ability: The Security Gap Between a Working Demo and Production Delivery

    Public benchmark scores are often mistaken for a final verdict on a new general-purpose model's coding ability, yet real engineering work involves legacy code, implicit conventions, permission boundaries, and acceptance criteria that leaderboards rarely cover. Using two deliberately contrasting tasks—adding a secure image asset import feature to an existing multi-module repository, and building a complete learning application from scratch using only reference material and a requirements document—this article examines where long-horizon coding now stands. The observations are encouraging: accurate context location, uninterrupted cross-module progress, and runnable, testable output. But manual acceptance review still surfaced a P1 permission isolation flaw, showing that security and final sign-off remain human responsibilities. The article closes with practical guidance on suitable use cases, unsuitable use cases, collaboration models, and an acceptance checklist.

    1. The Problem: Why “It Runs” Is Not the Same as “It Ships”

    When assessing the coding ability of a new generation of general-purpose large models, a common mistake is treating public benchmark scores as the conclusion. Scores reflect average performance on a specific distribution of problems, while real engineering environments contain legacy code, implicit conventions, permission boundaries, and acceptance criteria—exactly the parts that leaderboards struggle to cover. A more reliable approach is to observe how a model behaves on long-horizon tasks: whether it can read complex context, keep driving changes across modules, and bring the work to a runnable, testable state.

    The core argument of this article is that the new generation has pushed the coding ceiling of domestic open-source models further, making it worth testing on real projects, especially long-cycle, cross-file engineering work. Once permissions, security, and final acceptance come into play, however, humans cannot step away.

    2. Evaluation Framework: Stress Testing With Two Contrasting Tasks

    A single task easily leads to a one-sided conclusion, so a dual-task design pairing one legacy codebase with one greenfield build is recommended.

    Task A: In a project with a large body of existing code, add the ability to securely import user image assets and reference them in an animation scenario. This tests three things at once: understanding of the existing architecture and conventions, enforcement of security constraints, and control of regression risk.

    Task B: Given only a piece of learning material and a requirements document, implement from scratch a knowledge-learning application that can be played through completely. This tests the full chain from analyzing the material, information architecture, and state machine design through to interface and acceptance.

    One task leans toward modification and the other toward generation; together they cover most of the hard parts of long-horizon coding.

    3. Capability Baseline: Gains From Post-Training, Not a New Foundation

    From a technical evolution standpoint, this generation did not swap the base model. It still uses a foundation of the same scale as the previous generation, with improvements coming mainly from scaling up the post-training stage: the long-horizon task environment grew by tens of times, environment types became more diverse, and training time increased significantly. The official summary typically groups the changes into three directions.

    • Coding: emphasis on long-horizon tasks and near-production-grade software engineering ability, staying in the open-source lead on terminal-oriented and software-engineering evaluations;
    • Security: capability extends from writing code to white-box code review and vulnerability reasoning, with foundational security tasks approaching frontier closed-source levels, though complete exploit-chain scenarios still show a gap;
    • Openness: full weights will be released after security assessment and hardening are complete, making self-deployment, verification, and further improvement easier.

    For users, the implication is direct: the gains are concentrated in “sustained progress” and “code understanding,” not in “absolute correctness.”

    4. Field Observation 1: Long-Horizon Behavior in Legacy Project Modification

    In Task A, the model showed three clear strengths.

    1. Accurate context location. In a multi-module repository it first finds contract definitions, data models, and task state before making changes, rather than piling logic into surface-level files.
    2. Uninterrupted progress. Changes spanning frontend and backend, storage, task queues, and the rendering layer can be completed continuously, without a human repeatedly prompting the next step.
    3. Runnable and testable. After the changes, the project starts and key paths have corresponding tests, which is more valuable than code that merely “looks right.”

    Manual acceptance review, however, exposed a P1 issue: incomplete permission isolation. Asset import is a typical case of external input entering controlled storage. The model implemented format validation and persistence but placed access control in the interface layer, missing unified server-side resource ownership checks. A schematic version of the correct approach looks like this:

    1. // Enforce resource ownership on the server; do not rely on hiding the entry point in the UI
    2. public void accessAsset(Long userId, Long assetId) {
    3. Asset asset = repo.findById(assetId);
    4. if (asset == null || !asset.getOwnerId().equals(userId)) {
    5. throw new ForbiddenException("asset not accessible");
    6. }
    7. // Access allowed
    8. }

    Defects of this kind share a common trait: functional tests are all green, security tests are all red. It shows the model tends to satisfy explicit requirements while lacking the initiative to fill in implicit constraints.

    5. Field Observation 2: Building a Complete Application From Scratch

    The result of Task B better reflects the upper bound of long-horizon ability. The model extracted conceptual relationships from the material, designed progressive levels and state transitions, and connected learning progress, error feedback, and completion conditions into a closed loop; the final output can be played through completely. This shows usable completeness across the chain from requirements analysis to product delivery, rather than only isolated fragments.

    Shortcomings remain as well: boundary conditions (such as repeated completion and progress rollback) are handled somewhat optimistically, and copy and interaction consistency need manual polish.

    6. Conclusions and Engineering Recommendations: Keep Humans at Permissions and Acceptance

    Across both tasks, the following practical recommendations apply.

    • Suitable scenarios: cross-module modification, prototype to runnable version, long-chain feature implementation;
    • Unsuitable scenarios: security-sensitive modules delivered directly, permission designs that require compliance justification;
    • Collaboration model: let the model handle implementation and self-testing, and let humans handle threat modeling, permission matrix review, and final acceptance;
    • Acceptance checklist: server-side authentication, resource ownership checks, input validation, audit logs, and rollback plans, confirmed item by item.

    In one sentence: the coding ability of the new generation has crossed the “usable” threshold and entered the “worth stress testing” stage, but permissions and security remain a gate that humans must keep.