Evaluating Long-程 Code Agents: Capability Leaps and Acceptance Boundaries
This article examines why benchmark scores alone are insufficient for evaluating long-horizon code agents, and proposes a dual-track approach: assessing endurance and consistency on long tasks alongside strict human oversight of security and permissions. It breaks down where the latest generation of open-source code agents gains its capabilities without a base model change, outlines two practical test designs (legacy system modification and greenfield product builds), and provides actionable guidance on context contracts, executable security constraints, staged rollouts, state machine design, and a pre-delivery acceptance checklist. Readers will learn how to establish a capability baseline on their own codebase while keeping humans in control of constraint definition, risk judgment, and release approval.
1. The Problem: Why Benchmark Scores Are Not Enough
When evaluating a new generation of code agents, a common mistake is treating public benchmark scores as equivalent to delivery capability. Leaderboards measure pass rates on short, isolated tasks, whereas real development work is closer to a long-horizon job: requirements must be decomposed, cross-module changes must be carried forward, intermediate state must be recorded, and the final output must be runnable, testable, and acceptable.
A more reasonable evaluation is therefore dual-track: one track looks at endurance and consistency on long-horizon tasks; the other looks at boundaries in “must not fail” dimensions such as security and permissions. The conclusion of this article is stated up front: the current generation of open-source code agents has pushed the ceiling of long-horizon coding to the point where it can take on real projects, but when it comes to permission isolation, security constraints, and final acceptance, humans cannot step away.
2. Where the Capability Gains Come From With an Unchanged Base
A notable feature of this generation is that the base model was not replaced; parameter scale stays the same as the previous generation. The capability gains come mainly from scaled-up post-training, in three areas.
First, the scale and diversity of task environments. The number of training environments increased by roughly an order of magnitude of tens, covering richer terminal forms, directory structures, dependency combinations, and failure modes, with longer training duration as well. This directly improves the model’s adaptability to “dirty environments,” such as missing dependencies, legacy scripts, and non-standard directory conventions.
Second, a shift in capability focus. The official positioning puts the emphasis on long-horizon and production-grade software engineering: not “write a function,” but “complete a chain.” In terminal benchmarks, software engineering benchmarks, and integrated reasoning and knowledge-work evaluations with tool calls, the open-source camp stays in the lead.
Third, extended security capability. The capability boundary expands from “generating code” to “reading code and reasoning about defects.” On foundational security tasks such as white-box review and vulnerability root-cause analysis, it approaches frontier closed-source levels; but in scenarios requiring construction of a complete exploit chain, a clear gap remains. The implication for engineering practice is that it can serve as the first filter for static review, but cannot replace a professional security assessment.
Finally, the open strategy. Full weights will be released after safety evaluation and model hardening are complete. This gives enterprises room to self-host, validate on internal networks, and fine-tune, and it also means the evaluation must be redone on your own codebase.
3. Test Design: Two Task Types, Two Kinds of Pressure
To judge long-horizon capability, task design matters more than model selection. An effective approach is to construct two tasks in distinctly different directions.
Task A: legacy system modification. Add a capability for “secure import of user image assets + animation scenario references” to a codebase with a long history. It stresses three things at once: understanding existing abstractions and conventions, maintaining backward compatibility during changes, and enforcing security constraints in the file upload path.
Task B: building a passable product from scratch. Given only a learning resource and a requirements document, implement from scratch a knowledge-learning application that can genuinely run through the full flow. It stresses material summarization, data modeling, state machine design, UI implementation, and end-to-end runnability.
Both tasks ran through, but Task A exposed a P1-level permission isolation defect during manual acceptance: cross-user asset references lacked ownership checks, making an unauthorized read path reachable. This confirms the earlier judgment—all tests green does not mean ready to deliver.
4. Practical Points for Legacy Project Modification
In legacy projects, the value of an agent lies not in writing fast, but in changing accurately. Reusable practices are as follows.
Establish a context contract before letting it act. Write directory conventions, layering rules, error-handling patterns, and logging and configuration reading approaches into a short document as fixed input for every session; this significantly reduces style drift.
Write security constraints as executable acceptance conditions, not adjectives. For example:
Constraint 1: Asset ownership checks must be completed at the service layer; do not rely only on hiding entry points in the frontendConstraint 2: Object keys use server-side random identifiers; concatenating user-controllable strings is forbiddenConstraint 3: All reference-type fields validate tenant and owner on read; unauthorized access returns a unified error codeConstraint 4: Upload type and size are validated twice; metadata is sanitized before being persisted
Advance changes in “small, rollback-able steps.” Require it to submit in phases by contract layer, data layer, service layer, API layer, and rendering layer, with a change list and impact statement for each phase, so humans can gate at every step.
Split verification into three layers: unit-level checks of core logic, API-level checks of authentication and error codes, and browser-level checks of real interactions. The third layer most easily exposes “looks right but does not work” issues, such as resource paths, cross-origin policies, and stale version residue caused by caching.
5. Practical Points for Greenfield Projects
Greenfield builds test structured capability more, so it is advisable to force design artifacts before code.
Requirement normalization: turn materials into structured data across three dimensions—knowledge points, relationships, and difficulty—with clear fields and sources, to avoid guessing while writing.
State machine first: the complexity of learning applications concentrates in the flow. Use an explicit state machine to describe transition conditions and rollback paths for “preview—quiz—feedback—review—cleared,” which greatly reduces late rework.
Quantify the pass criteria: define “pass” as testable conditions, such as coverage thresholds, wrong-answer re-practice pass rate, and consecutive correct counts, rather than subjective descriptions.
Illustrative state definition:
public enum Stage { PREVIEW, QUIZ, FEEDBACK, REVIEW, CLEARED }public boolean canTransit(Stage from, Stage to, Progress p) {return switch (from) {case PREVIEW -> to == Stage.QUIZ && p.previewRead();case QUIZ -> to == Stage.FEEDBACK && p.answeredAll();case FEEDBACK-> to == Stage.REVIEW || to == Stage.CLEARED && p.accuracy() >= 0.8;case REVIEW -> to == Stage.CLEARED && p.streak() >= 3;default -> false;};}
6. Acceptance Checklist: Locking Down What Humans Cannot Let Go
Regardless of task type, it is recommended to fixedly execute the following checks before delivery; these are exactly what current agents most easily miss.
- Permissions and isolation: verify item by item whether resource ownership checks take effect on the server side, and whether there is a path that can be read with only an identifier.
- Input and files: whether type, size, content sanitization, storage location, and access method are controlled.
- Errors and degradation: whether exception paths return a unified structure and whether internal details are leaked.
- Observability: whether key paths have logs and metrics, and whether a failed request can be located.
- Data compatibility: whether new fields and indexes affect existing data and existing queries.
- Rollback-ability: whether changes can be revoked in batches and whether configurations can be gradually rolled out.
7. Conclusion
To evaluate this generation of long-horizon code agents, the main yardstick should be “whether it can continuously advance cross-module changes and deliver runnable output,” while permissions, security, and final acceptance remain human gates. The correct engineering posture is to let it take on long-chain implementation and the first layer of static review, with humans responsible for constraint definition, risk judgment, and launch approval. For private validation, you can build an isolated evaluation environment using common cloud capabilities such as object storage, container platforms, log services, and monitoring and alerting, reproduce the two task types above on your own codebase, and obtain a capability baseline for your own team.
