Long-Horizon Coding Evaluation: How to Measure LLM Engineering Capability

    Public leaderboards miss many real engineering failures. This article proposes long-horizon completion metrics, explains a post-training upgrade path on an unchanged base model, and reports two contrasting coding tasks—legacy incremental change versus greenfield build—showing why all-green tests are not the same as shippable, secure software.

    Beyond leaderboard scores: what scale actually measures coding ability

    The usual way to judge a coding model is public benchmark rank. Real delivery failures rarely happen at “cannot write a function.” They happen in three places: missing implicit conventions in an existing system, regressions after cross-module changes, and stopping at “looks like it runs” instead of runnable, testable, and acceptable.

    A more credible scale is long-horizon task completion, split into four observable metrics:

    • Context understanding depth: whether the model recovers real constraints from a large code history, rather than coding the request literally
    • Cross-module progress: whether changes cover the full chain—contracts, storage, task state, APIs, background jobs, frontend, and rendering
    • Convergence quality: whether multi-round fixes actually close the loop, rather than patching repeatedly
    • Delivery readiness: whether the work includes repeatable verification so test conclusions are stable and reproducible

    This generation’s technical path: same base, expanded post-training

    A key feature of this upgrade is that the base model did not change; it still uses the previous generation’s same-scale base. Gains mainly come from post-training: long-horizon task environments grew by an order of magnitude, environment types became more diverse, and training time increased substantially.

    In engineering terms this means two things. First, improvement concentrates on task execution rather than knowledge expansion, so gains show up more in multi-step, repeatedly verified work and less in single-shot Q&A. Second, capability bounds follow the training-environment distribution; uncovered areas (for example a specific product’s security policy) still leak.

    Official changes are summarized in three directions, useful for selection:

    1. Coding: emphasis on long-horizon, production-grade software engineering, remaining open-source leading on terminal-style and deep software-engineering public evals
    2. Code security: from generating code to white-box review and vulnerability reasoning; basic security tasks approach frontier closed models, with remaining gaps on full exploit-chain scenarios
    3. Open weights: full weights released after security evaluation and hardening, for self-hosting, self-verification, and further improvement

    Evaluation design: two highly different tasks

    A single task cannot separate luck from ability, so two orthogonal tasks were used:

    Task Input What it tests
    A: Incremental change on a legacy system An old project with large history and security constraints Understanding the old system, obeying constraints, cross-module consistency
    B: Build an application from scratch Learning material plus a requirements document Material analysis, product design into implementation, end-to-end runnable

    Task A required secure import of user assets that can be referenced in motion scenes. Task B required a knowledge-learning app that can actually be completed. Both ran, but A exposed a P1 permission-isolation defect in human acceptance—the most valuable result.

    Why “all tests green” is not shippable

    Automated tests only prove asserted paths are correct. Permission-isolation bugs usually violate that premise:

    • Missing checks do not fail on the happy path; they show up only on unauthorized paths
    • Constraints often live in prose in the requirements, not in comments or the type system, so the model treats them as suggestions
    • If any layer in a multi-layer check defaults to allow, the whole control fails

    Illustrative defense (unified checks across layers, not only at the entry):

    1. def resolve_asset(tenant_id: str, asset_id: str, user: User) -> Asset:
    2. asset = repo.get(asset_id)
    3. if asset is None:
    4. raise NotFound()
    5. if asset.tenant_id != tenant_id: # tenant isolation; do not rely on the frontend alone
    6. raise Forbidden()
    7. if not user.can_read(asset): # resource-level authorization
    8. raise Forbidden()
    9. return asset

    A minimal unauthorized-access suite should include: cross-tenant read, cross-user read, forged path traversal, access to deleted resources, and immediate failure after permission revocation.

    Reusable engineering practices

    • Human–model split: the model owns long-horizon implementation and first-round fixes; humans own security policy, the permission model, and final acceptance
    • Private evals: turn historical defects into regression cases isomorphic to the business
    • Gates first: unauthorized-access cases, static analysis, and dependency/secret scanning as hard CI merge conditions
    • Observability: keep logs and metrics for each long-horizon change round to separate understanding errors from regressions
    • Deployment shape: for private, deep customization, close the loop with a model serving platform, containers, object storage, logging, and monitoring/alerting

    Conclusion: this generation is worth putting into real projects, especially long-horizon coding. On permissions, security, and final acceptance, humans cannot step away.