Evaluating Long-程 Coding Capabilities: Benchmarks and the Boundaries of AI Code Generation

    This article examines the real-world limits of long-horizon coding in modern LLMs. While these models can now sustain multi-file, cross-module tasks, hands-on testing shows a persistent gap between "runnable" and "deliverable"—especially regarding permission isolation and edge-case handling. We explore why leaderboard scores fail to capture engineering stamina, detail a two-part evaluation covering legacy system upgrades and greenfield builds, and provide actionable strategies for shifting security and human oversight to the forefront of the development workflow.

    1. The Verdict: Pushing Limits, But Humans Own the Final Boundary

    Over the past year, the capability curve of coding-focused large language models has steepened significantly. The discussion has shifted from “can it write a single function?” to “can it sustain a cross-module task from start to finish?” In engineering practice, the upper limit of long-horizon coding has indeed moved forward: modern models can parse large contexts, locate modification points within existing codebases, and drive requirements to a runnable, testable state.

    However, there remains a clear gap between “runnable” and “deliverable.” In a hands-on test involving a legacy project with historical baggage and strict security constraints, the model completed the feature implementation and passed all tests, yet human acceptance revealed a high-priority permission isolation flaw. In another test requiring the creation of a fully playable learning application from scratch, the end-to-end flow worked, but edge cases still needed attention. The takeaway is clear: these tools are ready to handle long-horizon coding in real projects, but humans cannot step away from permissions, security, and final acceptance.

    2. Why Leaderboards Aren’t Enough for Long-Horizon Coding

    Leaderboard scores measure point-solution capabilities, whereas real-world development is a long chain: requirement clarification, context retrieval, cross-file modifications, state and contract maintenance, and verification/regression. Evaluation must cover at least four dimensions:

    • Context Understanding: Can it locate actual modification points in a large codebase rather than performing surface-level string replacements?
    • Task Continuity: When making changes across services or layers, does it maintain contract consistency without dropping constraints midway?
    • Verifiability: Does it proactively add tests, logs, and self-checks to bring the task to a runnable state?
    • Constraint Adherence: Facing hard constraints like security, permissions, and compatibility, does it reliably stay within bounds?

    3. The Source of Upgrades: Post-Training Scaling, Not a New Base

    A defining characteristic of this capability leap is that the base model remains unchanged, with resources concentrated on the post-training phase: significantly expanding the scale and variety of long-horizon task environments and extending training duration. This allows the model to repeatedly practice the “read-modify-verify” loop in environments that closely mirror real repositories.

    Official summaries typically frame the changes across three directions, which serve as a useful framework for selection:

    1. Coding: Emphasis on long-horizon and production-grade software engineering, maintaining open-source leadership in terminal and software engineering evaluations.
    2. Security: Extending from code generation to white-box review and vulnerability reasoning, approaching frontier closed-source levels in foundational security tasks, though full exploit chains still have a gap.
    3. Openness: Full weights are released after security evaluation and hardening, facilitating self-deployment, verification, and secondary improvements.

    For users, this means the improvements manifest more as “engineering stamina” rather than single-problem scores. Consequently, evaluation methods should shift from solving isolated puzzles to running real repositories.

    4. Evaluation Design: Two Highly Distinct Tasks

    To cover different capability facets, the evaluation used two distinct task types:

    • Task A (Legacy System Upgrade): Adding a capability for “securely importing user image assets and referencing them in animation scenarios” within a project with substantial legacy code. This tested legacy system understanding, security constraint handling, and cross-layer modifications.
    • Task B (Greenfield Build): Provided only a learning resource and a requirements document, requiring the implementation of a fully playable knowledge-learning application from scratch. This tested the completeness of the pipeline from data analysis to product delivery.

    As a baseline, a previous-generation tool had already handled a demanding development task: adding a step to an animation generation pipeline involving contracts, databases, task states, APIs, background jobs, frontend, and renderers. The first round took roughly 70 minutes, with browser verification and fixes taking another hour. This proves the previous generation could already work continuously in multi-package repositories; the current improvements should be understood against that baseline.

    5. Task A Review: Functional Pass, Acceptance Fail

    The model correctly located the call chain for asset upload, storage, referencing, and rendering. Modifications spanned APIs, persistence, and the frontend, and basic test cases were added. Overall progress was smooth.

    The problem lay in permission isolation: asset ownership checks only applied to the main path and were missing in asynchronous tasks and shared reference paths, creating a potential for unauthorized access. Tests were all green because the cases only covered normal paths.

    The conclusion is direct: security properties cannot be backed by “passing tests” alone; they must be explicitly modeled and verified separately.

    6. Task B Review: Loop Closed, Boundaries Pending

    In the greenfield task, the model parsed the resource structure, broke down knowledge points, designed levels and progress states, and completed both frontend and backend with save functionality. It was fully playable end-to-end.

    Shortcomings were concentrated in exceptions and edge cases: handling corrupted saves, duplicate submissions, and concurrent clicks was incomplete.

    This shows that the “skeleton capability” for long-horizon construction is in place, but product-grade robustness still relies on clear acceptance criteria.

    7. Shifting Permissions and Security Forward: Actionable Practices

    • Unified Authorization Entry: All read/write paths share the same ownership checks; bypasses are prohibited.
    • Default Deny: Resource access verifies ownership and visibility before executing business logic.
    • Async Verification: Fix the subject identity and resource scope when queuing tasks, and re-verify during execution.
    • Observability: Log and alert on unauthorized attempts, integrating with logging and monitoring systems.
    • Acceptance Cases: Include negative cases like unauthorized access, cross-tenant access, and replay attacks as mandatory passes.

    Illustrative verification logic:

    1. public void importAsset(Uri source, Subject caller) {
    2. if (!policy.canWrite(caller, targetProject())) {
    3. throw new AccessDeniedException("asset import denied");
    4. }
    5. Asset saved = storage.save(normalize(source), targetProject());
    6. enqueueWithSubject(saved.id(), caller); // Async task carries subject for secondary verification during execution
    7. }

    8. Collaboration Workflow Recommendations for Long-Horizon Tasks

    1. Define Contracts First: Establish APIs, data models, and state machines upfront to reduce drift.
    2. Small Steps: Break tasks down by module, ensuring each step is runnable and regression-testable.
    3. Dual-Track Acceptance: Run positive functional cases and negative security cases in parallel.
    4. Human Gatekeeping: Humans must give final confirmation on permissions, security, and data consistency.
    5. Accumulate Assets: Solidify prompts, test cases, and checklists into team standards.

    9. Conclusion

    The stamina and context understanding of new-generation coding models in long-horizon tasks are now sufficient for real projects, but “all tests green” does not equal “ready to deliver.” Shifting security forward, incorporating negative cases into acceptance, and leaving final gatekeeping to humans is the sound engineering strategy for this stage.