Evaluating Long-Context Coding Capabilities of New Open-Source LLMs
This article evaluates the long-context coding capabilities of a new generation of open-source large language models through two contrasting hands-on tests: adding a secure user image import feature to a legacy project with security constraints, and building a complete learning game from scratch using only study material and a product requirements document. Both projects reached a runnable, testable state, but manual acceptance of the first exposed a P1-level permission isolation flaw despite all tests passing. Based on a comparison with the previous-generation baseline, the article explains why improvements in post-training scale matter more than single benchmark scores, breaks down the evaluation design, and offers a reusable method for turning subjective impressions into evidence. It concludes that these models are suitable for real long-horizon coding work, while security, permissions, and final acceptance must remain human responsibilities.
1. The Bottom Line: Higher Capability Ceiling, Unchanged Delivery Responsibility
The new generation of open-source coding models has pushed the ceiling of domestic models on long-horizon programming tasks even higher. But the conclusion becomes far more cautious once the evaluation shifts from “benchmark scores” to “real delivery”: these models can now understand complex context, sustain cross-module changes, and bring a task to a runnable, testable state. However, as soon as permission boundaries, security constraints, and final acceptance are involved, humans still cannot step away.
This judgment comes from a comparative hands-on test. Two very different tasks were prepared: first, adding “secure import of user image assets and referencing them in HTML animation scenarios” to an older project with a large body of legacy code and security constraints; second, providing only a set of study material and a product requirements document, and asking the model to implement a knowledge-learning game that can actually be completed from scratch. Both projects ran successfully in the end, but the first exposed a P1-level permission isolation defect during manual acceptance—all tests passing does not mean it is ready for delivery.
A more accurate statement is therefore this: these models are now worth testing in real projects, especially for long-horizon coding; but security, permissions, and acceptance must still be backed by humans.
2. Why the Evaluation Looks at the Previous-Generation Baseline, Not Just Single-Point Scores
To judge the value of an upgrade, it must be viewed on top of an existing baseline. The previous baseline test task was: adding an animation video generation pipeline in a cross-platform collaborative engineering repository, involving multiple layers such as interface contracts, database, task state machine, server-side APIs, background task executor, frontend pages, and renderer. The first round of implementation took about 1 hour and 11 minutes, followed by about 1 hour and 4 minutes for browser-based verification and defect fixing.
This baseline demonstrates two things: first, the model can already work continuously within a multi-package project structure and deliver features across frontend and backend; second, the bulk of real cost often lies not in “writing it” but in “verifying and fixing it.” Progress in later versions is only meaningful when measured against this baseline.
According to the public upgrade notes, this generation did not replace the underlying base model; it still uses a base model of the same scale as the previous generation, with improvements mainly coming from scaled-up expansion in the post-training stage: the scale of long-horizon task environments expanded to tens of times the original, environment types became more diverse, and training duration was longer. The official summary groups the changes into three directions:
- Coding: emphasis on long-horizon tasks and near-production-grade software engineering capabilities, maintaining a leading position in the open-source camp on terminal-oriented and software-engineering evaluations;
- Security: capabilities extended from “generating code” to white-box code review and reasoning about vulnerability causes, approaching frontier closed-source levels on basic security tasks, but still lagging in complete vulnerability exploitation chain scenarios;
- Interaction and form: greater emphasis on sustained work under real engineering constraints, rather than the impression created by single-turn question answering.
The implication for users is direct: the scale and diversity of post-training environments determine the model’s “endurance” and context retention in long tasks; and since the base model is unchanged, there will be no abrupt shifts in reasoning style or knowledge boundaries—improvements in engineering capability are reflected more in process adherence and self-correction.
3. Evaluation Design: Two Task Types, Two Kinds of Pressure
A single task easily leads to one-sided conclusions, so a complementary two-task design was adopted.
Task A (legacy project modification): In a repository with legacy baggage and security constraints, add “secure user image asset import + HTML animation scenario referencing.” It tests three things: whether the model can understand existing layering and conventions; whether it can insert new capabilities without breaking old logic; and whether it treats security constraints as hard requirements rather than optional ones.
Task B (build from scratch): Given only study material and a requirements document, implement a knowledge-learning game that can be fully completed from scratch. It tests material summarization, requirement decomposition, data structure design, state progression, and end-to-end playability—a completeness test of “from information to product.”
Together, the two tasks cover two typical engineering scenarios: “incremental development under constraints” and “systematic construction in open space.”
4. Legacy Project Modification: Running Is Not the Same as Being Correct
The key risks in Task A concentrate on file handling and permission boundaries. A qualified implementation must satisfy at least the following constraints:
- Type validation: validate not only the extension but also the real content type, to prevent disguised files;
- Size and count limits: set thresholds for both single files and total volume, to prevent resources from being exhausted quickly;
- Storage isolation: user assets are stored in a separate directory or a separate prefix in object storage; path traversal is prohibited;
- Access control: reads must go through server-side authentication, and directly exposed enumerable public addresses are not allowed;
- Reference and rendering isolation: animation scenarios are isolated from the main site context during rendering, to prevent script privilege escalation;
- Full-chain auditing: upload, transcoding, referencing, and deletion must all leave traces for traceability.
A schematic security validation skeleton is as follows (expressing only a general approach, not a specific product API):
public ImportResult importUserAsset(MultipartFile file, UserContext user) {// 1. Detect the real type, not just the file nameString detected = probeContentType(file);if (!ALLOWED_TYPES.contains(detected)) {throw new BizException("UNSUPPORTED_TYPE");}// 2. Single-file and total size limitsif (file.getSize() > MAX_SINGLE_SIZE) {throw new BizException("FILE_TOO_LARGE");}// 3. Normalize and validate the path to block traversalString safeName = PathSanitizer.normalize(file.getOriginalFilename());String objectKey = "tenant/" + user.tenantId() + "/" + UUID.randomUUID() + safeName;// 4. Write to an isolated location and return a non-enumerable referencestorage.put(objectKey, file);return ImportResult.of(objectKey, detected);}
In the actual test, the model smoothly completed the layered modification, state transitions, and frontend integration, and all tests passed. But during manual acceptance, it was found that the asset read API only validated “whether logged in” and did not validate “whether the resource belongs to the current user/tenant.” Constructing a traversal request could read other users’ assets, constituting a P1-level permission isolation issue.
The causes of such defects are worth expanding on: models tend to satisfy the explicit requirement of “the feature works,” while the permission model is often scattered across multiple middleware, annotations, and existing conventions, making it an implicit constraint; unit tests usually only cover “my own resources can be read” and can hardly automatically cover “other people’s resources cannot be read.” Therefore, the acceptance checklist must explicitly include privilege escalation cases:
- Horizontal privilege escalation: mutual access between different users with the same role;
- Vertical privilege escalation: lower-privilege roles accessing higher-privilege APIs;
- Unauthenticated access and token expiration;
- Batch enumeration and rate limiting;
- Whether audit logs are complete and tamper-proof.
5. Building from Scratch: “Endurance” in Long-Horizon Tasks Is the Dividing Line
The difficulty of Task B lies not in writing code but in maintaining goal consistency over a long time. Extracting concepts from material, designing levels and judgment rules, maintaining state machine progression, and reaching a “completable” state require the model to still remember the original constraints after dozens of rounds of modification. This generation of models performs noticeably more stably on such tasks: it can continuously advance cross-module changes and bring the project to a runnable, testable state, rather than stopping after producing a demo snippet.
In engineering terms, this capability can be broken down into four observable indicators:
- Context retention: whether early conventions (naming, directories, interface contracts) are still followed after later modifications;
- Self-correction: whether it can locate the real cause after a verification failure, rather than repeatedly tweaking surface symptoms;
- Change convergence: whether the same problem converges within two or three rounds, avoiding back-and-forth oscillation;
- Verifiability: whether it proactively adds tests and run instructions so that results can be reproduced by others.
6. A Reusable Evaluation Method: Turning “Feeling” into “Evidence”
It is recommended to replace subjective impressions with a fixed process:
- Task layering: prepare one task each for incremental modification, building from scratch, and defect fixing;
- Constraints up front: write security, permissions, performance, and compatibility as hard acceptance items;
- Two-person acceptance: after the model passes its own tests, a human reviews against a privilege escalation and exception path checklist;
- Cost recording: separately track first-round implementation time and verification/fixing time to observe the real bottleneck;
- Graded conclusions: distinguish “suitable for trial,” “deliverable but requires human oversight,” and “not usable in production.”
7. Capability Boundaries and Adoption Recommendations
Overall, the value of this generation of open-source models is that it advances long-horizon coding from “can demo” to “can progress,” making it suitable for time-consuming work such as cross-module modifications, prototype construction, and test completion. Its boundaries are equally clear: insufficient recognition of implicit constraints (especially permissions and security), a remaining gap in complete attack chain reasoning, and the inability to outsource final quality judgment to automation.
The practical recommendations are three: write security requirements as explicit clauses and include them in acceptance; mandate manual review for file, permission, and key-related changes; and use common cloud capabilities such as monitoring alerts, logging services, and container platforms to complete runtime protection. If such engineering is hosted on relevant general capabilities from Baidu AI Cloud, the same principle of “the model advances, humans gatekeep” should be followed.
