Evaluating the Long-Horizon Coding Capabilities of New-Generation Open-Source Models
Choosing a coding model by public leaderboard rank is misleading, because rankings measure single-turn, short-horizon problem solving while real development involves vague requirements, legacy codebases, and implicit constraints. This article argues that long-horizon task completion is the metric that matters, covering context understanding, sustained progress, convergence to a runnable state, and testability. It explains why the new generation improves through scaled post-training rather than a new base model, then reports hands-on results on two contrasting tasks: modifying a legacy system and building a complete application from scratch. The findings show strong end-to-end delivery ability, but also a P1 authorization flaw that passed all tests, highlighting why permission isolation and security acceptance must stay with human reviewers. A reusable checklist, an authorization test case, and a practical workflow are included.
1. Why Leaderboard Scores Are Not Enough to Judge Coding Ability
When selecting a model, many people look at public evaluation rankings first. But rankings measure single-turn, short-horizon problem solving with clear boundaries. Real engineering work is the opposite: requirements are vague, the codebase carries history, constraints are implicit, and acceptance criteria often surface only at the last moment.
A more meaningful metric is long-horizon task completion, which covers at least four layers of capability:
- Context understanding: reading call relationships across directories and layers, not just the current file;
- Sustained progress: keeping the goal in view across multiple rounds of edits, without repeating work or undoing correct implementations already completed;
- Convergence to a runnable state: after the changes, the project starts and the main flow works, rather than leaving half-finished pieces behind;
- Testability: proactively adding tests and self-check mechanisms so results can be verified.
These four layers determine whether a model can be used in a real project, and leaderboard scores barely reflect them.
2. What Changed Technically: Scaled Post-Training, Not a New Base
The new generation shares a base model of the same scale as the previous one. The performance gains come mainly from scaling up the post-training stage: task environments grew by tens of times, environment types became more diverse, and training time increased substantially. This route changes capability in three directions.
- Coding: stronger emphasis on long-horizon, engineering-grade tasks, keeping the open-source camp ahead in terminal-oriented and software-engineering evaluations;
- Safety: extending from “can write code” to white-box code review and vulnerability reasoning, with basic security tasks approaching frontier closed-source levels, though complete exploitation-chain scenarios still lag;
- Interaction and tool use: better suited to multi-step workflows with feedback loops.
This distinction matters: an unchanged base means world knowledge and reasoning style carry over, while scaled post-training means greater stamina for getting things done and broader environment adaptability. Expectations should be adjusted accordingly — do not expect leaps in general common sense, and instead focus validation on long-task stability.
3. Evaluation Design: Two Contrasting Tasks
A single task invites one-sided conclusions, so a set of complementary samples was designed.
Task A (legacy system modification): in a project with substantial historical code, add the ability to “securely import user image assets and reference them in animation scenarios.” The checkpoints include understanding old code, following existing conventions, applying security constraints, and keeping cross-module changes consistent.
Task B (delivery from zero): given only a piece of learning material and a requirements document, implement a knowledge-learning application that can be completed end to end. The checkpoints include extracting content from the material, decomposing requirements, data modeling, state machine design, end-to-end playability, and delivery completeness.
The two tasks share one requirement: the result must actually run. They differ in their limits: one is constrained by legacy baggage and external constraints, the other by requirement completeness and product logic.
4. Hands-On Observations: Where the Boundaries Are
Task B went better. The model completed the full loop on its own, from structuring the material to level design, progress saving, and retry after failure, while staying consistent with the goal across iterations, and finally reached a completable state. Such tasks have few constraints and direct feedback, which sits right in the comfort zone of long-horizon capability.
Task A exposed problems. The main functional flow ran and tests passed, but manual acceptance found an unauthorized access path: the asset reading endpoint verified only the login state, not resource ownership, so constructing another user’s resource identifier allowed reading it. This is a typical P1-level permission isolation defect.
Key takeaway: all-green tests do not mean deliverable. The model tends to satisfy “visible functionality” acceptance signals, while invisible constraints such as permissions, auditing, and data boundaries are easily simplified away.
5. Permission and Security Checklist
For features involving files, assets, exports, or sharing, check the following items consistently:
[ ] Verify both identity and ownership on every resource access (not login alone)[ ] Use non-enumerable IDs for object identifiers, avoiding exposed auto-increment values[ ] Perform multiple server-side checks: type, size, extension, and content sniffing[ ] Disable execution permission on upload directories; separate storage from the business domain[ ] Use a default-deny authorization model with whitelist exceptions[ ] Keep audit logs for critical operations, including subject, object, and result[ ] Include unauthorized-access cases in automated tests, not only happy paths
The corresponding unauthorized-access test should be written as a routine case:
@Testvoid shouldNotReadOthersAsset() {Long ownerA = 1L, ownerB = 2L;Asset saved = assetService.save(ownerA, sampleImage());ResponseStatusException ex = assertThrows(ResponseStatusException.class,() -> assetService.read(ownerB, saved.getId()));assertEquals(HttpStatus.FORBIDDEN, ex.getStatusCode());}
6. A Reusable Implementation Approach
- Task breakdown: split large requirements into “runnable increments,” each of which can be started and verified;
- Constraints up front: write security, permissions, and compatibility as explicit acceptance conditions instead of implicit expectations;
- Feedback loops: require the model to include build, test, and self-check scripts to reduce manual back-and-forth;
- Layered acceptance: separate functional, boundary, and security acceptance, with security items owned by humans;
- Traceable changes: have the model output a change list and impact analysis to make risk localization easier during review.
7. Conclusion and Recommendations
The new generation of open-source models has pushed the coding ceiling into the range of “usable in real projects,” especially for long-horizon, cross-module tasks that need continuous iteration; maturity in building complete applications from scratch has also improved noticeably.
However, when it comes to permission isolation, data boundaries, security auditing, and the final delivery decision, humans cannot step back. The recommended strategy is to treat the model as a high-intensity executor while keeping architectural constraints and security acceptance on the human side. In engineering practice on cloud platforms such as Baidu AI Cloud, general capabilities like object storage, log services, and monitoring and alerting can fill in observability and traceability, making long-horizon coding output more controllable and auditable.
