Capability Boundaries of Long-Horizon Coding Agents and Acceptance Testing in Real Projects

    Public benchmarks only show the capability ceiling of long-horizon coding agents; real projects reveal their boundaries. Based on two hands-on projects—modifying a legacy system and building an educational game from scratch—this article examines where these agents excel, where they fall short (especially on permission isolation and security), and proposes a layered acceptance testing approach covering functionality, integration, security, permissions, operability, and human review.

    Capability Boundaries of Long-Horizon Coding Agents and Acceptance Testing in Real Projects

    When evaluating long-horizon coding agents, public leaderboards only tell you about the capability ceiling. Real projects are what expose the capability boundaries. What matters most is not single-point code generation quality, but whether the agent can continuously understand constraints in complex contexts, push changes across modules, and carry a task all the way to a runnable, testable, and acceptable state.

    My overall judgment: this generation of models has advanced far enough in long-horizon coding that it is worth testing on real projects. However, when it comes to permissions, security, and final delivery acceptance, humans still cannot step away.

    Where the Capability Gains Come From

    From public information, this iteration did not replace the base model. The improvements mainly come from expanded post-training: a significantly larger scale of long-horizon task environments, a greater variety of environment types, and longer training time. The direct result of this approach is that the model is better suited to multi-step, long-chain, cross-file software engineering tasks rather than only single-file completion or short Q&A.

    The changes fall into three areas:

    1. Coding capability: the focus shifts from “can write code” to “can keep working in production-grade software engineering”—understanding project structure, honoring contracts, handling state transitions, and fixing regressions.
    2. Cybersecurity capability: extending from code generation to white-box code review, vulnerability reasoning, and basic security tasks, though clear gaps remain in complex scenarios such as full exploit chains.
    3. Open weights: allowing developers to deploy, validate, and continue improving on their own after security evaluation and model hardening.

    Therefore, evaluation should not rely solely on public benchmark scores. It should at least cover: complex-context comprehension, cross-module change consistency, task closure capability, testability, adherence to security constraints, and human repair cost. Leaderboards answer “where is the ceiling”; real projects answer “where is the boundary”.

    Two Very Different Hands-On Tasks

    To examine both legacy-system comprehension and build-from-scratch capability, I designed two very different tasks.

    Task 1: Add “secure user image asset import with HTML animated-scene referencing” capability to a project with a large amount of legacy code. It touches the contract layer, the database, task state, APIs, background workers, the frontend, and the HTML renderer. This task does not test single-point coding, but understanding of the legacy system’s constraints: historical data structures must not be broken arbitrarily, the permission model must not be bypassed, resource reference chains must be auditable, and exception paths must be recoverable.

    Task 2: Given only a set of agent learning materials and a product requirements document, build an agent knowledge learning game that can be fully completed from start to finish. This tests the full pipeline from material analysis to product delivery: knowledge-point extraction, level design, state machines, scoring feedback, completion paths, testability, and content correctness.

    Both projects ran successfully, showing that long-horizon coding capability is already worth engineering trials. However, manual acceptance of the first project uncovered a P1-level permission isolation issue—precisely demonstrating the gap between “it runs” and “it’s deliverable”.

    Legacy System Modification: It Can Push Forward, but Green Tests Don’t Mean Secure Delivery

    In legacy system modification, this type of agent shows clear strengths: it can read complex context, identify contract layers and call chains, push cross-module changes forward, and bring features to a runnable, testable state after multiple rounds of fixes. For a single-repo, multi-module project, it can maintain a reasonable degree of consistency across frontend, backend, task state, and the rendering pipeline.

    But the permission isolation issue shows that security acceptance cannot rely on a single signal of “tests passed”. Test cases typically cover happy paths and explicit requirements, with insufficient coverage of negative scenarios such as unauthorized access, object-level authorization, tenant isolation, and resource reference whitelists. For features like image asset import and scene referencing, the risks are not limited to file upload itself, but extend to chain-level issues: who can reference whose resources, whether references become invalid after deletion, whether URLs are guessable or long-lived, and whether content type and size are strictly validated.

    A simplified permission check looks like this:

    1. type Resource = {
    2. id: string;
    3. ownerId: string;
    4. mime: string;
    5. url: string;
    6. };
    7. function assertCanBind(user: User, resource: Resource, scene: Scene) {
    8. if (resource.ownerId !== user.id) {
    9. throw new Error("FORBIDDEN_OWNER");
    10. }
    11. if (!user.can("scene:bind", scene.id)) {
    12. throw new Error("FORBIDDEN_SCENE");
    13. }
    14. if (!isAllowedMime(resource.mime, ["image/png", "image/jpeg", "image/webp"])) {
    15. throw new Error("INVALID_MIME");
    16. }
    17. if (!scene.allowedResourceIds.has(resource.id)) {
    18. throw new Error("NOT_IN_WHITELIST");
    19. }
    20. }

    Such checks must be paired with negative tests: cross-user referencing, cross-scene referencing, forged resource IDs, expired signed URLs, illegal MIME types, oversized files, and references after deletion. The agent can generate these test cases, but manual acceptance must confirm that the permission model has not been obscured by “the feature works”.

    Building from Scratch: From Materials to a Completable Product Still Has Acceptance Gaps

    Implementing a learning game from materials and a product requirements document tests a different kind of capability: information extraction, domain modeling, level state machines, scoring feedback, and completability. The agent can break materials down into knowledge points, map them to levels, design quiz or task flows, and implement basic state transitions. The project ran, showing it can drive the full path from requirements to prototype.

    But manual acceptance for this kind of project cannot stop at “can the game be completed”. You also need to check whether knowledge points are accurate, level difficulty is reasonable, exception paths are recoverable, scoring is explainable, data is consistent, and learning outcomes are verifiable. Especially for material-driven products, the model may write “plausible-looking” content into levels, so risk must be controlled through manual spot checks and traceable source annotations.

    Layered Acceptance, Not Single-Point Acceptance

    A more robust approach is layered acceptance:

    • Functional layer: main workflows
    • Integration layer: cross-module consistency
    • Security layer: unauthorized access, injection, resource referencing, and auditing
    • Permission layer: object-level authorization and tenant isolation
    • Operability layer: logging, monitoring, and rollback
    • Human acceptance layer: missed requirements, content correctness, and final delivery risk

    Useful metrics include: cross-module change consistency, regression pass rate, human repair time, security defect density, authorization test case pass rate, and task interruption count. Do not look only at a single successful run—check whether boundaries remain clear after multiple rounds of fixes.

    Conclusion

    Long-horizon coding agents are now worth bringing into real project testing, especially for long-running tasks, cross-module modifications, and full progression from materials to prototype. But permissions, security, and final acceptance remain human responsibilities. When deploying to the cloud, you can combine general capabilities such as container platforms, object storage, logging services, and monitoring/alerting to build isolation and observability—moving from “it runs” to “auditable, rollback-ready, and deliverable”.