Evaluating Long-Horizon Coding Agents: Capability Boundaries and Acceptance Practices
Public benchmark scores are often mistaken for a complete picture of a coding agent's ability, yet real engineering work involves scattered context, implicit constraints, and acceptance criteria defined by humans. This article examines how a model generation upgraded mainly through post-training scaling behaves on two long-horizon tasks: adding a security-sensitive feature to a legacy codebase, and building a complete learning application from documentation alone. It summarizes the observed failure modes—security boundary illusions, context drift, and missing acceptance criteria—and translates them into practical pipeline controls such as executable assertions, security gates, environment isolation, observability, and human sign-off. Readers will learn why "tests passing" does not equal "ready to ship," and where human oversight remains necessary.
1. The Problem: Why Benchmark Scores Are Not Enough
When evaluating a new generation of coding agents, the easiest mistake is treating public benchmark scores as the full picture of capability. Benchmark tasks usually have clear boundaries, controlled dependencies, and a single acceptance standard. Real engineering environments are the opposite: context is scattered across directories and commit history, constraints exist implicitly, and acceptance criteria must be defined by people. A more reliable approach is to observe how a model behaves on long-horizon tasks—whether it can read complex context, keep driving cross-module changes forward, and bring work to a runnable, testable state.
This article uses a paired-task method to observe that capability: one task adds new functionality to a legacy project with existing code history and security constraints; the other builds a complete, end-to-end learning application from scratch given only reference material and a requirements document. The first examines legacy system understanding and security constraint handling; the second examines the full path from material analysis to a working product.
2. Where the Upgrade Comes From: Post-Training Scaling, Not a New Base Model
One notable engineering fact: this generation did not change the base model. It reuses a base of the same scale as the previous generation, and the upgrade comes mainly from expanded post-training—long-horizon task environments scaled up by tens of times, more diverse environment types, and significantly longer training duration. This path produces capability changes in three directions.
- Coding capability: stronger emphasis on long-horizon tasks and software engineering close to production, staying at the leading open-source tier in terminal and software engineering evaluations;
- Security capability: extended from “generating code” to white-box code review and vulnerability reasoning, approaching frontier closed-source levels on basic security tasks, though still behind in complete exploitation-chain scenarios;
- Open policy: full weights are typically released after security assessment and model hardening are complete, making self-deployment, verification, and further improvement easier.
This matters: the capability gains come mainly from “environment diversity + long-horizon interaction.” Evaluation must therefore provide engineering environments that are long enough, messy enough, and realistic enough; otherwise the differences will not be observable.
3. Evaluation Design: Two Tasks, Two Kinds of Pressure
Task A: Extending Security Capability in a Legacy Project
The goal is to add a capability to an existing system: securely importing user image assets and referencing them in animation scenarios. This task carries multiple layers of pressure by nature: inconsistent legacy code style, a data flow that crosses storage and rendering, and security constraints that must be built in rather than patched on afterward.
Acceptance points include: dual validation of file type and content; size and count limits; protection against path traversal and duplicate-name overwrites; access control and tenant isolation; failure rollback and idempotency; and traceable audit logs. Illustrative validation logic:
// Pseudocode: unified validation and isolation before importif (!isAllowedMime(upload.getMime()) || !magicMatches(upload)) {throw new BizException("UNSUPPORTED_IMAGE");}String key = storageKeyBuilder.tenantScoped(tenantId).randomUUID().withExt(safeExt(upload)).build();storage.putPrivate(key, upload.getStream()); // private read, signed URL expiresaudit.log("asset.import", tenantId, key, operatorId);
Task B: Building a Learning Application from Scratch
The task provides only one piece of learning material and one requirements document, and asks for an application that can truly be completed end to end. The pressure points: the material must be structured, levels and judgment rules must be designed, the state machine and save data must stay consistent, and the result must run end to end rather than stop at a UI prototype.
4. Observed Results: Long-Horizon Behavior and Failure Modes
Both tasks eventually ran through, but the conclusions differ. During manual acceptance of the legacy project, a P1-level permission isolation defect surfaced: the feature worked and all tests were green, yet assets could be read across tenants. This kind of problem falls exactly into the gap where “tests passing” does not equal “ready to deliver.”
Three typical failure modes can be summarized:
- Security boundary illusion: the model tends to implement “functionally correct” behavior and treats authentication as something that can be deferred;
- Context drift: early constraints get diluted by later changes in long-horizon tasks, especially during cross-module refactoring;
- Missing acceptance criteria: when acceptance conditions are not written as executable assertions, the model lowers the bar on its own.
The corresponding engineering countermeasure is to move constraints forward as machine-verifiable rules: express the permission matrix as test cases, wire the security baseline into the pipeline, and explicitly list “non-negotiable items” in the requirements document.
5. Practical Recommendations: Put Agents in a Constrained Pipeline
- Task decomposition: use “runnable, testable” as the smallest delivery unit; avoid one-shot long instructions;
- Constraint hardening: express security, permissions, and compatibility as assertions and gates, not comments;
- Environment isolation: apply least privilege and signed access in containers and private storage;
- Observability: connect logging services and monitoring alerts, and add tracing on critical paths;
- Manual acceptance: keep human gates for anything involving permissions, security, and final delivery.
The conclusion is clear: this generation of long-horizon coding agents is already worth validating in real projects, especially for driving long tasks across modules. But on permission isolation, security baselines, and final acceptance, humans cannot step back entirely. For more stable support, you can combine general-purpose capabilities such as the container platform, object storage, logging service, and monitoring alerts offered by Baidu AI Cloud to build a reproducible, auditable evaluation and delivery pipeline.
