Hands-On Evaluation of a New Chinese LLM's Coding Ability: A Two-Task Framework
Can a new generation of large language models handle real-world coding? This article presents a hands-on evaluation framework based on two complementary tasks: modernizing a legacy system with security constraints and building a playable learning game from scratch. The results show strong long-context comprehension, cross-module consistency, and end-to-end delivery, but also a P1-level permission isolation flaw that automated tests missed. The article concludes with a "three yeses, one no" assessment and practical steps teams can follow to reproduce this evaluation.
Why Leaderboard Scores Are Not Enough to Judge a Coding Model
One of the most common mistakes when evaluating LLM-assisted development is treating benchmark rankings as equivalent to real-world usability. Benchmark problems are usually short, self-contained tasks with clear boundaries, while real engineering work involves long-running, multi-module changes to systems burdened with historical debt. To determine whether a model can handle production-grade development, at least three questions must be answered:
- Can it understand complex context? Legacy code is full of implicit conventions, naming norms, and technical debt. The model must infer design intent without complete documentation.
- Can it sustain cross-module changes? A single feature iteration often touches data models, API layers, backend logic, frontend rendering, and task scheduling simultaneously. The model must maintain consistency across all of them, rather than fixing one part while breaking another.
- Can it bring tasks to a runnable, testable state? Merely running is the baseline. It must also generate reasonable test cases and self-repair when issues surface.
For this reason, I designed a dual-task evaluation method: one task tests legacy system modernization with security constraints, and the other tests end-to-end completeness, from analyzing source material to shipping a product. The more different the two tasks are, the more clearly they reveal the true boundaries of a model’s capabilities.
Task 1: Image Import with Security Constraints in a Legacy System
The first task was set in a Web project with a substantial amount of existing code. The requirement was to add a capability for importing user-uploaded image assets and referencing them in animated HTML scenes. This deliberately combined three categories of difficulty:
- Legacy code understanding: The project already had a resource management module and a permission system. The new feature had to reuse them, not rebuild from scratch.
- Security constraints: Uploaded assets required type validation, size limits, and storage isolation. Reference paths required protection against directory traversal.
- Frontend–backend coordination: Imported assets had to be correctly referenced by animated HTML scenes, involving storage path design, URL signing, and the frontend rendering pipeline.
The model’s performance was “commendable but with clear limits.” It understood the existing system structure well, located the existing resource abstraction layer, and extended it in the original style instead of crudely pasting in a parallel implementation. It also maintained cross-module context consistency: the frontend and backend interfaces connected correctly on the first try, and the project ran and passed self-testing.
The problems emerged during manual acceptance review: a P1-level permission isolation flaw was discovered, in which assets belonging to different users could be accessed through a certain reference path. The typical cause of this class of defect is that the model performs path validation from the perspective of “making the feature work,” without treating “resource ownership validation” as an independent security dimension enforced at every access entry point. This illustrates a common shortcoming of current models:
The model's default optimization objective is "make the task run."The essence of security requirements is "make sure the things that must not happen never happen."These two objective functions differ, and prompt engineering alone can hardly align them.
Task 2: Building a Playable Learning Game from Scratch
The second task provided only a technical learning resource (covering agent-related knowledge) and a product requirements document. The goal was to build, from scratch, a learning game that could actually be completed. This task is the opposite of the first: no legacy code, testing the full chain from material analysis and knowledge extraction to game mechanics design and engineering delivery.
The model was noticeably more comfortable with this task. It first extracted the hierarchical structure of knowledge points from the material, then designed levels and decision logic accordingly, and finally implemented the frontend interactions and state management. There was no disconnect of “understanding the knowledge but failing to build the product” or “shipping a product but getting the knowledge confused.” The game could be played through completely.
This confirms a trend: with increased post-training investment (longer training and more diverse long-horizon task environments), new-generation models have significantly improved completeness on “build from scratch” tasks—arguably already surpassing their performance on “legacy system modernization” tasks. The latter requires understanding imperfect context left behind by humans, while the former lets the model establish its own context entirely.
My Evaluation Framework: Three Yeses, One No
Combining both evaluations, my conclusion in one sentence is: this new generation of models is worth testing with real projects and is well suited to long-horizon coding—but when it comes to permissions, security, and final acceptance, humans cannot step away yet. Specifically:
- Yes, trust it to read complex context. Structural understanding of legacy systems and adherence to existing style have reached a practical level.
- Yes, trust it to sustain long-running changes. It no longer frequently “loses memory” across multi-module, multi-iteration tasks.
- Yes, trust it to build complete products from scratch. Given clear requirements, end-to-end delivery quality is substantial.
- No, do not ship based solely on “all tests green.” Security dimensions—permission isolation, injection prevention, and unauthorized access—must retain independent human review, ideally supplemented by an independent code audit process, rather than relying on the model’s self-checks.
Recommendations for Reproducing This Evaluation in Your Team
If your team wants to systematically evaluate a model or AI coding tool, follow this process:
- Choose two complementary tasks: one legacy system modernization (with historical baggage and security constraints) and one build-from-scratch task (testing completeness).
- Record process metrics, not just outcomes: time to first implementation, number of repair rounds, and whether human intervention was needed to clarify requirements.
- Keep an independent acceptance reviewer: the reviewer should not participate in the development process and should examine permissions, data isolation, and boundary conditions with fresh eyes.
- Turn failure cases into regression cases: for example, the permission isolation flaw exposed in Task 1 should be codified as a mandatory check item in future evaluations.
Conclusion
The upper bound of the new generation of open-source models on long-horizon coding has indeed been raised again. But what they bring is a leap in development efficiency, not a transfer of acceptance responsibility. Understanding this distinction is what allows these capabilities to enter production workflows safely.
