Long-Horizon Coding Evaluation: Why Benchmark Scores Don't Equal Delivery-Ready Software
This article examines the gap between coding benchmark rankings and real-world delivery capability in long-horizon software engineering. It explains why leaderboard scores fall short for technology selection, proposes a three-layer evaluation model (capability, engineering, governance), and outlines how to read model version upgrades by looking at the base model versus post-training scale. Two test tasks are described: adding secure image asset import to a legacy project, and building a complete learning game from scratch. Key findings include a P1-level permission isolation flaw that automated tests often miss, along with a minimal acceptance checklist covering unauthorized access, tenant isolation, upload security, rendering safety, and audit monitoring. The article closes with practical guidance on engineering long-horizon tasks and a selection framework for what to delegate to the model, what requires human oversight, and what must never be skipped.
1. Bottom Line First: The Capability Ceiling and the Delivery Line Are Different Things
When evaluating a new generation of coding models, the most common mistake is treating benchmark scores as delivery capability. A more reliable approach is to check whether the model can understand complex context in long tasks, keep making progress on cross-module changes, and bring the task to a runnable, testable state. By that standard, leading open-source models have indeed pushed the coding ceiling of Chinese models higher, but there is still a clear gap before “all tests green means safe to ship.”
The core argument of this article can be compressed into three points:
- Long-horizon coding (across files, layers, and services) is now usable in real projects;
- For anything involving permissions, security boundaries, and final acceptance, humans cannot step back;
- Evaluation methods must move from “reading leaderboards” to “checking task closure plus the severity of defects found in human acceptance.”
2. Why Benchmark Scores Are Not Enough for Technology Selection
Benchmark problems usually have clear boundaries, short context, and controlled dependencies. Real projects are the opposite: constraints are scattered across legacy code, requirements exist implicitly, and failures often come not from “can’t write it” but from “can’t change all of it.”
It helps to split evaluation into three layers:
- Capability layer: single-point algorithms, syntax, and common framework usage;
- Engineering layer: cross frontend/backend changes inside a monorepo, database and task state migrations, and API contract consistency;
- Governance layer: security constraints, permission isolation, rollback capability, and acceptance criteria.
Most teams only test the first layer, so they stumble in the second (half-finished changes, inconsistent state machines) and cause incidents in the third (unauthorized access).
3. How to Read Version Iterations: Base Model First, Post-Training Second
A substantial upgrade is often not a new base model but a scale-up in the post-training stage: tens of times more long-horizon task environments, more diverse environment types, and longer training time. Keeping the base parameter count unchanged (for example, still in the 753B range) means the capability gains come mainly from “task distribution” rather than “parameter capacity.”
Vendors typically summarize the changes in three directions, and evaluation should design validation accordingly:
- Coding: emphasis on long-horizon and production-grade software engineering, staying ahead among open-source models on terminal and software engineering benchmarks;
- Security: extending from code generation to white-box code review and vulnerability reasoning, with basic security tasks approaching frontier closed-source levels, though complete exploit chains still lag;
- Openness: weights released after security evaluation and hardening, making self-deployment, verification, and further improvement easier.
To judge whether these claims hold, the most effective method is a “same-task comparison”: run the same requirement previously handled by the previous-generation model, and compare first-pass implementation time, verification and fix time, number of rework rounds, and the severity of defects found in human acceptance.
4. Test Design: Two Very Different Tasks
A single task cannot cover the whole capability surface. Use one task to test “legacy system understanding plus security constraints” and another to test “document analysis plus product delivery.”
Task A (existing project): In a project with a large amount of legacy code, add “secure import of user image assets and reference them in an HTML animation scenario.” Evaluation points include upload path validation, consistency between content type and file header, path traversal protection, storage and access control, and rendering-side escaping.
Task B (build from scratch): Given only one learning document and one requirements document, implement a knowledge-learning game that can be fully completed. Evaluation points include content extraction, level and state design, progress persistence, and a complete playable path.
Both tasks running successfully only shows “it runs”; whether it can be delivered depends on human acceptance.
5. Key Finding: A P1-Level Permission Isolation Flaw
Human acceptance of the existing project exposed a P1-level permission isolation issue: resources were accessible, but the “who can access” decision was not bound to resource ownership. Such defects often show all green in automated tests, because the tests use the same account or an administrator identity.
A typical counter-example (illustrating the defect pattern only, not a specific API):
GET /assets/{id} -> checks login state only, no owner_id checkPOST /assets/import -> checks login state, no tenant boundary check
The fix direction is to push authorization decisions down into a unified data access layer instead of scattering them across endpoints:
def load_asset(viewer, asset_id):asset = repo.get(asset_id)if asset is None:raise NotFound()if asset.owner_id != viewer.id and not viewer.is_admin:raise Forbidden() # deny by default, allow explicitlyreturn asset
A minimal acceptance checklist to go with it:
- Unauthorized access cases: user A accessing user B’s resources must return 403/404;
- Tenant isolation: all cross-tenant reads and writes denied;
- Upload security: type allowlist + file header validation + renaming + non-executable directory + private access;
- Rendering security: output escaping, style and script allowlists;
- Audit and monitoring: instrument anomalous access, and link log services with monitoring alerts.
6. Engineering Practices for Long-Horizon Tasks
To keep the model moving steadily in long tasks, the input side matters more than prompt tricks:
- Give constraints first: security baseline, directory conventions, state machine definitions, acceptance criteria;
- Then give context: API contracts, data models, key legacy code;
- Accept in stages: contract -> data -> API -> frontend -> rendering, with each stage runnable;
- Enforce regression: run the full test suite and static checks after every change;
- Divide labor: the model handles implementation and self-testing, humans handle threat modeling and final acceptance.
7. Selection Recommendations
- Safe to delegate: new feature implementation, cross-module refactoring, test backfilling, scripts and toolchains;
- Needs human attention: permissions and multi-tenancy, keys and credentials, payments and quotas, data deletion and migration;
- Cannot be skipped: an independent security review and unauthorized-access cases, executed by a third party not involved in the implementation.
Overall: the new generation of models is worth testing on real projects, with clear gains in long-horizon coding scenarios. But security boundaries and final acceptance remain human responsibilities. Treating “all tests green” as proof of delivery is the most expensive misunderstanding today.
