Evaluating Coding Agents: Capability Boundaries and Acceptance Practices for Long-Horizon Tasks

    This article examines how to evaluate coding agents beyond public benchmark scores, focusing on their behavior during long-horizon tasks in real projects. It presents a two-part evaluation framework covering incremental changes to legacy systems and building a complete application from scratch, then discusses what a generation upgrade driven by post-training scaling typically improves. Based on hands-on observations, it highlights common failure modes, illustrates a secure asset import check and a level state machine, and proposes a three-layer acceptance process—automated, behavioral, and security—arguing that "runnable" must be separated from "deliverable" and that humans must retain security review and final sign-off.

    1. The Problem: Why Benchmark Scores Are Not Enough

    When evaluating a new generation of coding agents, the most common mistake is treating public benchmark scores as a proxy for real engineering delivery capability. Benchmarks usually come with well-defined input boundaries, relatively clean project structures, and pass conditions that can be judged automatically. Real projects, by contrast, carry legacy baggage, implicit conventions, permission models, and acceptance criteria that are hard to automate.

    A more reliable approach is to observe how the model behaves on long tasks: whether it can understand complex context, keep driving cross-module changes forward, and bring the work to a runnable and testable state.

    It is worth stressing that “runnable and testable” is a necessary condition for delivery, not a sufficient one. An implementation can pass every automated test yet still expose a high-severity defect during manual acceptance—something especially common in scenarios involving permissions and security. The conclusion here is therefore cautious: these agents are worth piloting on real projects, particularly for long-horizon coding, but humans cannot let go of the permission, security, and final acceptance stages.

    2. Evaluation Framework: Two Contrasting Task Types

    A single task leaves too much room for chance. To make the conclusions more robust, prepare two clearly different types of tasks.

    The first is an incremental change to an existing system. The goal is to add a capability to a project with a large body of legacy code: the secure import of user image assets and their safe reference in animation scenarios. This task tests three things: understanding of the existing layering and conventions, the ability to implement security constraints (file type validation, path traversal protection, content isolation, and reference whitelists), and how minimally invasive the changes are.

    The second is building a complete product from scratch. Given only learning materials and a product requirements document, the agent must implement a knowledge-learning game that can actually be completed end to end. This task tests material synthesis, requirement decomposition, state machine design, progress persistence, level closure, and end-to-end playability—an assessment of the full path from analysis to implementation.

    Used together, the two task types cover two very different capability areas: understanding a legacy system and building a new one.

    3. What a Generation Upgrade Changes: Post-Training Scaling, Not a New Base Model

    From an engineering perspective, whether a generation upgrade is worth the investment depends on where the improvement comes from. If the base model is unchanged and the gains come mainly from scaling the post-training stage—for example, substantially expanding the scale and variety of long-horizon task environments and extending training time—then the benefits will concentrate on long-task stability, environment adaptability, and adherence to engineering conventions, rather than accuracy on isolated algorithm problems.

    Official summaries usually frame the changes in a few directions: coding capability emphasizes long-horizon and production-grade software engineering; safety capability extends from “generating code” to white-box code review and vulnerability reasoning, approaching the state of the art on basic security tasks while still lagging in full exploit-chain scenarios; and on the open-source side, weights are released after security assessment and hardening, making self-hosted deployment and verification easier. For users, the implication is to place evaluation weight on long tasks and real constraints rather than chasing leaderboard positions.

    4. Hands-On Observation 1: Incremental Change in a Legacy Project

    In a legacy project, the typical failure mode of an agent is not an inability to write the feature, but breaking existing conventions. Key behaviors to watch:

    • Whether it first reads and reuses existing abstractions instead of introducing a duplicate implementation;
    • Whether changes stay in the necessary files and avoid large-scale unrelated reformatting;
    • Whether it fills in input validation, exception branches, and logging;
    • Whether it leaves the new capability in a testable state, for example by providing injectable dependencies and reproducible sample data.

    Illustrative validation logic for a secure import can be written as follows. The focus is three layers of protection: a whitelist, a normalized path, and an ownership check.

    1. public ImportResult importAsset(MultipartFile file, Long userId) {
    2. String ext = extOf(file.getOriginalFilename()).toLowerCase();
    3. if (!ALLOWED_EXT.contains(ext)) {
    4. throw new BizException("unsupported type");
    5. }
    6. String normalized = Paths.get("assets", userId.toString(),
    7. UUID.randomUUID() + "." + ext)
    8. .normalize().toString();
    9. if (!normalized.startsWith("assets/")) {
    10. throw new BizException("illegal path");
    11. }
    12. // After storing to object storage, return a controlled reference; never expose the physical path
    13. return storage.put(normalized, file);
    14. }

    In tasks like this, automated tests are often all green, yet manual acceptance may reveal permission isolation defects: cross-user references not blocked, missing asset ownership checks, or reference interfaces lacking a subject identity constraint. These are high-priority risks and show that “all tests green” cannot replace a security review.

    5. Hands-On Observation 2: Building a Completable Learning App from Scratch

    A from-scratch task exposes planning ability more clearly. Observe whether the agent first produces a structured plan before implementing; whether it turns learning materials into level knowledge points and判定 rules; whether it implements progress persistence, retry on failure, and completion settlement; and whether it stays runnable without external dependencies.

    A simplified level state machine can be expressed as:

    1. IDLE -> LOADING -> PLAYING -> CHECKING -> PASSED
    2. | |
    3. +-> FAILED <--+

    The key is closure: every failure path can return to a retryable state, and every success path can be persisted and unlock the next level. If the agent only implements a “demo flow” without state persistence and boundary handling, it counts as a prototype, not a deliverable.

    6. Risk Checklist and Acceptance Recommendations

    Based on the two hands-on tests, split acceptance into three layers:

    1. Automated layer: unit tests, integration tests, and static checks all pass;
    2. Behavioral layer: whether cross-module changes are coherent and follow existing layering and naming conventions;
    3. Security layer: manual verification of permission isolation, input validation, path and reference whitelists, and audit logs, item by item.

    For high-risk scenarios, insist on human-agent collaboration: let the agent handle long-horizon implementation and repetitive fixes, while humans own security review and final sign-off. It is also advisable to run in a controlled branch and a rollback-capable environment, keeping a complete change record to make problems easier to locate.

    7. Conclusion

    The right way to evaluate a coding agent is to test its long-horizon capability with contrasting real tasks, not to rely on a single score. It can move both legacy changes and from-scratch builds to a runnable and testable state, which is clear practical value; but the permission and security dimensions still require human oversight. Separating “runnable” from “deliverable” and establishing layered acceptance with risk controls is the sound path to adoption.