Long-Horizon Coding Capabilities Tested: What New AI Coding Tools Get Right and Where They Still Fail

    This article evaluates a new generation of AI coding tools on long-horizon coding tasks through two real-world tests: extending a legacy system with secure image asset import, and building a learning application from scratch. It examines context understanding, cross-module execution, and a P1 permission isolation flaw that passed automated tests, then outlines reusable practices such as security left-shifting, unified authorization, and human-led final acceptance.

    1. Key Takeaways First

    The ceiling for long-horizon coding in the latest generation of AI coding tools has been raised again. The evidence is not a leaderboard ranking but three simpler questions: Can the model understand complex context with legacy baggage? Can it keep driving cross-module changes without losing focus? Can it bring a task to a runnable and testable state?

    However, it is not yet at the point where “all tests green” means the work is safe to ship. In two real tasks, the model completed the workflow in both cases, but one exposed a P1-level permission isolation defect during manual acceptance. A more reliable positioning is therefore this: the tool is worth testing on real projects and is especially suited to long-horizon development, but permissions, security, and final acceptance must remain in human hands.

    2. Evaluation Design: Why These Two Tasks

    A single task can easily lead to a one-sided conclusion, so this evaluation deliberately picked two samples with complementary capability dimensions.

    • Task A (legacy system evolution): In a project with a large body of historical code, add the ability to securely import user image assets and reference them in HTML animation scenarios. It tests three things at once: understanding the existing conventions of the legacy system, extending the existing architecture, and meeting security constraints beyond the feature itself.
    • Task B (from zero to a winnable game): Given only a learning resource and a product requirements document, implement a knowledge-learning application from scratch that can actually be completed. It tests the full chain from material analysis and rule modeling to product delivery.

    One task leans toward “modification and constraints,” the other toward “construction and closure.” Together they map more realistically to the everyday distribution of enterprise R&D work.

    3. Capability Baseline: What Changed in This Generation

    To evaluate the size of the improvement, a baseline is required first. A previous-generation model had already completed a fairly demanding development effort: adding HTML animation video generation to an animation generation pipeline, with changes spanning the contract layer, database, task state, API layer, background jobs, frontend pages, and renderer. The first implementation took about 1 hour 11 minutes, and browser verification plus fixes took another 1 hour 04 minutes. In other words, the previous generation could already work continuously in a monorepo and deliver a feature across frontend and backend.

    This generation did not change the base model and still uses a base model of the same scale. The main gains come from scaling in the post-training stage: the long-horizon task environment was expanded by roughly tens of times, environment types became more diverse, and training time increased significantly. The official summary groups the changes into two directions:

    • Coding: positioned as one of the strongest open-source models for code, staying ahead among open-source models in terminal and software engineering evaluations, with more emphasis on long-horizon and production-grade engineering;
    • Security: capability extended from “generating code” to white-box code review and vulnerability reasoning, with basic security tasks approaching frontier closed-source levels, though still lagging in complete exploit-chain scenarios.

    This explains the observed behavior: long tasks are more stable, but security reasoning remains incomplete.

    4. Task A: Secure Asset Import in a Legacy Project

    4.1 Context Understanding: Read the Old Conventions Before Coding

    The hardest part of a legacy project is not writing new code but identifying implicit conventions: directory and layering habits, error-handling style, configuration loading order, and existing dependency version constraints. The model performed well here because it scanned the project structure and key contract files first, then decided where changes should land, instead of piling new logic anywhere. This directly reduced rework caused by code that compiles but clashes stylistically.

    4.2 Cross-Module Progress: Carrying One Chain Through to the End

    This capability had to span storage, validation, metadata, API, pages, and rendering references. The model maintained task state, advanced in dependency order, and performed mid-course self-checks (such as type checks, builds, and key test cases), eventually bringing the task to a runnable and testable state. This is the core value of long-horizon capability: not delivering code snippets, but delivering a closed-loop chain.

    4.3 The P1 Defect: Why Green Tests Still Missed It

    Manual acceptance uncovered a P1-level permission isolation issue: assets could be accessed across users at the storage layer, and the privilege-escalation path was not covered by automated tests. There were three reasons:

    1. Tests were designed around “functional correctness” and lacked negative cases for “who can access whose resources”;
    2. Permission checks were scattered across multiple places; the model connected the functionality but did not converge authorization into a single entry point;
    3. Security constraints are a cross-cutting concern and are easily deferred as “non-functional requirements.”

    A representative negative test case should look like this:

    1. Case: User B requests User A's asset resource
    2. Precondition: A has uploaded an asset; B is a different tenant/user from A
    3. Expected: Return 403 or 404, and the response body does not reveal whether the resource exists
    4. Assertion: The audit log records one unauthorized access attempt

    5. Task B: Building a Winnable Learning App from Scratch

    5.1 Material Analysis and Rule Modeling

    Given only materials and a requirements document, the model could extract core concepts, divide knowledge modules, design levels and判定 rules, and generate a runnable minimal closed loop. This shows the path from document to code is already usable.

    5.2 Product Completeness and the “Winnable” Standard

    “Winnable” is a good acceptance anchor: it turns the vague “done” into an executable end state. The model could build out the state machine, progress persistence, retry logic, and settlement logic around that end state. But content depth, difficulty curve, and boundary hints still need human polishing, especially experience details such as whether hints “leak the answer” and whether error feedback is understandable.

    5.3 Shared Conclusion from Both Tasks

    Functional closure is not the bottleneck; cross-cutting quality is. Permissions, security, observability, and final acceptance are the parts that should least be left to the model’s independent judgment right now.

    6. Reusable Implementation Practices

    1. Task decomposition: split long tasks into three stages — contract first, implementation, verification — each with executable acceptance conditions.
    2. Shift security left: specify the authorization model (user/tenant/role/resource ownership) during requirements and generate negative test cases.
    3. Unified authorization entry point: avoid scattered permission checks by converging them into middleware or a unified policy layer to reduce the chance of omissions.
    4. Checklist-based acceptance: expand “all tests green” into “all tests green + privilege-escalation cases + audit logs + rollback plan.”
    5. Human-AI division of labor: the model handles long-horizon implementation and self-checks; humans handle security review and final sign-off.

    7. Conclusion

    The real value of this generation of AI coding tools is that it moves long-horizon, cross-module engineering tasks from “demo” to “deliverable candidate.” But the last mile of engineering delivery is still defined by permissions, security, and acceptance. Treating it as a powerful executor rather than the final owner is the most rational way to use it today.