Long-Horizon Coding with Large Language Models: From Benchmark Scores to Real-World Delivery
A hands-on evaluation of a new version of a Chinese open-source large language model across two long-horizon coding tasks: extending a legacy system and building an application from scratch. The results show stronger context handling, cross-module execution, and end-to-end completeness, while also highlighting why automated tests cannot replace human review for authorization, security, and final acceptance.
Long-Horizon Coding with Large Language Models: From Benchmark Scores to Real-World Delivery
1. The Bottom Line
In a recent round of long-horizon coding tests with a new version of a Chinese open-source large language model, my overall conclusion is clear: the ceiling for open-source Chinese models on coding tasks has moved higher again.
However, benchmark scores matter less to me than a more practical question: can the model, during a long-running task:
- Understand complex existing context;
- Continue making cross-module changes without losing track of the task;
- Bring the project to a runnable and testable state instead of stopping at code that merely appears complete?
The results were encouraging: both projects ran successfully. At the same time, they exposed an issue that cannot be ignored—the model is not yet at the point where passing tests alone is enough to justify delivery. In one modernization project, a P1-level authorization isolation flaw was discovered during manual acceptance even though all automated checks had passed.
My assessment can be summarized in one sentence: the model is now worth evaluating on real projects, particularly long-horizon coding tasks. But when authorization, security, and final acceptance are involved, humans still cannot step away.
2. Evaluation Design: Two Deliberately Different Tasks
To make the evaluation meaningful, I prepared two tasks with very different characteristics:
- Task A—Modernizing a legacy system: Add secure user image asset importing and support references to those assets in web animation scenes within a project containing a large amount of historical code. This tested the model’s ability to understand an existing architecture and follow security constraints.
- Task B—Building from scratch: Provide only technical learning materials and a product requirements document (PRD), then ask the model to build an Agent knowledge-learning game that users could actually complete. This tested the full path from information analysis to product implementation.
The reason for choosing these two extremes is straightforward. In real engineering work, models typically face either a high-entropy legacy system or a blank canvas with relatively few constraints. The former tests comprehension; the latter tests planning. Both capabilities are essential.
3. What Changed Between Versions: Post-Training Scaling Was the Key
Before discussing the test results, it is useful to establish a baseline. I had already used the previous version for a demanding development task: implementing an end-to-end feature in the same monorepo involving API contracts, database changes, a task state machine, APIs, a worker, a web frontend, and a renderer. The first implementation took approximately 70 minutes, followed by more than an hour of browser-based verification and fixes.
In other words, the ability to work continuously in a monorepo and handle cross-stack features was already present.
The new version uses the same base model and does not increase the parameter scale. Most of the improvement comes from scaling on the post-training side:
- The number of long-horizon task training environments increased by several dozen times;
- The environments became more diverse;
- Training time increased substantially.
This suggests that the improvement comes not from a fundamentally “smarter brain,” but from more practical experience. The change is reflected in three capability areas:
| Area | Key change | My interpretation |
|---|---|---|
| Coding | Greater emphasis on long-horizon and production-grade software engineering, while remaining among the leading open-source models in terminal automation and software engineering agent evaluations | The focus is shifting from “writing correct code” to “continuously moving a real engineering task forward” |
| Cybersecurity | Capabilities extend from code generation to white-box code review and vulnerability reasoning | Full vulnerability exploitation scenarios still show a gap |
| Open-source strategy | The weights will be fully released after security evaluation and hardening | This preserves room for self-hosting, validation, and further improvement |
4. Task A: Modernizing a Legacy System—It Runs, but Do Not Rush Acceptance
4.1 What the Model Got Right
- Adequate context comprehension. The project contained historical data models, existing validation logic, and inconsistent error-handling conventions. Rather than attempting a sweeping refactor, the model followed the project’s established patterns and inserted the new modules with a relatively contained change set.
- Stable cross-module execution. From adding fields in the storage layer, to import validation in the service layer, to rendering asset references in the frontend, the model updated the necessary touchpoints across the entire workflow. A year ago, this would have been extremely difficult for a model to accomplish reliably.
- Awareness of explicit security requirements. File-type validation, size limits, and storage isolation were implemented correctly where those constraints had been clearly specified.
4.2 The Problem: Blind Spots in Automated Validation
The most important lesson came from the first validation cycle. Compilation passed, unit tests passed, and integration tests passed. On the surface, the project was fully green.
Manual acceptance, however, uncovered a P1-level authorization isolation issue: one reference path allowed the ownership check for a resource to be bypassed. The result was code that worked, but was not secure.
This case illustrates an important principle:
The coverage of automated tests is limited to the failure modes you have thought to test.
Authorization vulnerabilities often belong to the category of failures that were not anticipated. A model can follow constraints that you explicitly write down, but implicit security boundaries—such as vertical privilege escalation, horizontal privilege escalation, or path traversal—can still be missed. Even when the model has relevant security knowledge, those concerns may be lost while it balances multiple objectives during a long task.
This is the practical manifestation of the broader observation that basic security tasks may approach the frontier, while complete vulnerability scenarios still remain a challenge.
5. Task B: Building from Scratch—Unexpectedly High Completeness
Task B was difficult because there were no existing implementation patterns to follow. The model received only learning materials and a PRD, with no codebase to reference.
Its performance can be evaluated at three levels:
- Information analysis: It extracted the core concepts from the technical learning materials and mapped them to a game-based level structure. This showed solid ability to organize non-code information.
- Architecture planning: It independently separated modules for question-bank management, learning progress, and level evaluation. The module boundaries were generally reasonable, without degrading into a design where all logic was placed in a single file.
- Implementation and validation: The most important measure was that the game could actually be completed. This was not merely a demo path that happened to work; the entire set of levels could be completed according to the rules. That required the state machine, evaluation logic, and progress persistence to work together correctly.
This task demonstrated that when the goal is verifiable—whether the game can be completed—and the boundaries are clear through a PRD, the model can achieve a surprisingly high level of completeness from scratch.
6. A Reusable Evaluation Methodology
The experience from this evaluation can be generalized into a framework that teams can apply when assessing similar models:
Step 1: Establish a baseline. Use the previous model to complete a medium-difficulty monorepo task, and record the time required and number of fix iterations.Step 2: Test both ends of the spectrum. Design one task for modernizing a legacy system and another for building a product from scratch.Step 3: Perform layered acceptance:- Automated layer: compilation, unit tests, and integration tests all pass- Manual layer: security review, focusing on authorization, privilege escalation,injection, and resource isolation- Product layer: verify that the end-to-end business workflow is truly completeStep 4: Report the conclusion by distinguishing capabilities that can beautomatically validated from those that still require human oversight.
7. Final Assessment
- The ceiling has clearly risen. Stronger context understanding and more reliable cross-module execution on long-horizon tasks give open-source Chinese models practical value in production-grade software engineering.
- The trust boundary must remain clear. Passing automated tests does not equal production readiness. Human acceptance remains essential for authorization, security, and business correctness.
- The right way to use the model: Treat it like a highly productive junior engineer. It can deliver quickly and cover a broad scope, but humans should retain ownership of code review and security audits.
For developers, the best strategy is not to wait for models to become perfect. Instead, put real projects in front of them early while building an appropriate human acceptance and review process. That is both the current technical reality and an opportunity to strengthen the team’s engineering system.
