Evaluating Long-Horizon Coding Models: Benchmarks vs. Real-World Safety Boundaries
Public benchmark scores are often the first thing people check when assessing a new coding model, but real engineering failures usually appear after a change is made: whether the system still runs, whether it can be tested, and whether hidden risks were introduced. This article compares two contrasting hands-on tasks—adding secure image import and HTML animation references to a legacy project, and building a complete, playable learning game from scratch—to show why long-horizon performance matters more than single-point accuracy. It also explains why post-training scaling is more important than a base model swap, and why a P1 permission-isolation defect can slip through even when all automated tests pass. Readers will learn which tasks are safe to delegate to a model, which require human sign-off, and how to turn security constraints into executable tests and CI gates.
1. Why Benchmark Scores Are Not Enough to Evaluate Coding Models
When evaluating a new generation of coding models, many people look at public benchmark scores first. However, real engineering failures rarely happen at the “can it write the code” stage. They happen after the change is made: does the system still run, can it be tested, and does it introduce hidden risks? A more reliable evaluation dimension is therefore long-horizon performance: whether the model can understand complex context, keep making progress on cross-module changes, and bring a task to a runnable and testable state.
This article uses two contrasting tasks for a hands-on comparison:
- Task A: Add “secure import of user image assets and referencing them in HTML animation scenarios” to a legacy project with a large amount of historical code and hard security constraints. The focus is on understanding a legacy system, following constraints, and security.
- Task B: Given only one learning document and one product requirements document, implement from scratch a “knowledge-learning agent game” that can be fully completed. The focus is on completeness, from analyzing the material and designing rules to shipping a working product.
The conclusion up front: this type of model has pushed the ceiling of domestic open-source coding capability higher and is worth testing on real projects, especially for long-horizon coding. But when it comes to permission isolation, security auditing, and final acceptance, humans cannot step back. Both projects ran through, yet Task A exposed a P1-level permission-isolation defect during manual acceptance. This is a typical case of “all tests green does not mean deliverable.”
2. What to Look at Across Generations: Post-Training Scaling Matters More Than a Base Model Swap
When comparing adjacent versions, a common mistake is to attribute all improvements to “swapping the base model.” In real engineering, what matters more is scaling during the post-training stage: a larger scale of long-horizon task environments, more diverse environment types, and longer training time can significantly improve a model’s ability to work continuously in a real repository.
The official summary usually groups the changes into three main lines:
- Coding: emphasis on long-horizon and production-grade software engineering, staying open-source leading in terminal and software-engineering evaluations;
- Cybersecurity: extending from “generating code” to white-box code review and vulnerability reasoning, with basic security tasks approaching frontier closed-source levels, though complete exploitation chains still lag;
- Open source: releasing full weights after security evaluation and model hardening, making self-deployment, verification, and further improvement easier.
For engineering teams, this means the evaluation focus should shift from “single-function correctness” to “system stability after multiple rounds of changes.”
3. Hands-On Method: Covering Both “Legacy System Modification” and “From-Scratch Delivery”
3.1 Task A: Acceptance Points for Incremental Changes to a Legacy Project
Legacy projects usually have three characteristics: heavy historical baggage, many implicit conventions, and hard security boundaries. When adding image asset import and HTML animation references, you should verify at least:
- Input validation: file type, size, magic number, metadata stripping, and re-encoding strategy;
- Storage isolation: asset write location separated from business data, with access through a controlled channel;
- Permission isolation: no unauthorized reading or referencing across different roles, tenants, or project spaces;
- Rendering security: HTML fragment references require whitelisting, sandboxing, or sanitization to avoid script injection;
- Rollback capability: failed task states can be recovered without leaving half-finished artifacts behind.
Illustrative acceptance script (pseudocode):
for each role in [owner, editor, viewer, outsider]:assert can_import(role) == expected[role]assert can_reference_html(role, asset_scope) == expected[role]assert asset_meta_stripped(uploaded_image)assert html_render_sandbox_blocks(script)
3.2 Task B: Building a “Completable” Learning Game from Scratch
A from-scratch task puts more pressure on the product delivery loop: material extraction, knowledge graph or level structure, judgment logic, feedback and retry, save and progress, and an end-to-end completable path. During evaluation, it is recommended to require the model to output:
- A requirement-to-module mapping table (PRD item to implementation location to test case);
- Level data structures and judgment rules;
- A minimal runnable startup method and a one-click test entry point;
- A completion-path demo and a failure-recovery mechanism.
4. Key Finding: Why the P1 Permission-Isolation Issue Slipped Through
Task A eventually exposed a P1-level permission-isolation issue. The cause is usually not that the model “cannot write the feature,” but that in long-horizon tasks the model tends to focus on the main flow being runnable and downplays cross-cutting concerns such as cross-subject access control. Common gaps include:
- Only checking login state, not resource ownership;
- Reference-type endpoints fetching objects directly by a “guessable ID”;
- Caches or temporary files bypassing permission checks;
- Background tasks running with high privileges and lacking scope reduction.
The engineering recommendation is to turn security constraints into “executable tests”: build an ownership model for each resource, build role-matrix tests for each endpoint, and include unauthorized-access cases in CI gates.
5. Adoption Advice: When You Can Confidently Hand Work to the Model
- Safe to delegate: long-horizon refactoring, building cross-frontend-and-backend flows, filling in tests, and generating documentation and scripts.
- Must have human sign-off: permission models, keys and data boundaries, payment/audit/compliance-related logic, and final acceptance and release review.
- Recommended flow: model implementation, automated testing, security-case gating, manual acceptance, and canary release.
Overall assessment: the new generation of coding models is already usable on real projects, and long-horizon coding is a strength. But security properties and final responsibility must still be borne by humans. Upgrading “runnable” to “verifiable, auditable, and rollback-capable” is the right approach for enterprise adoption.
