Capability Boundaries and Acceptance Practices for Long-Horizon Coding Agents
This article examines why benchmark scores alone cannot measure long-horizon coding ability, and proposes a practical evaluation approach based on two contrasting tasks: modifying a legacy system under security constraints and building a learning game from scratch. It covers the technical logic behind base-model stability plus post-training environment scaling, key risks such as permission isolation in asset import, a five-dimension scoring framework, and a clear division of labor between agents and human reviewers for safe delivery.
1. Why Benchmark Scores Are Not Enough
In real software engineering, a coding agent does not face isolated function completion. It works across a long chain: requirement understanding, contract design, data models, service interfaces, asynchronous tasks, frontend interaction, and rendering output. One representative observation: a model can already work continuously in a repository of meaningful size, spending roughly seventy minutes on the first implementation pass and then about another hour on browser-side verification and fixes. This shows a clear gap between “it runs” and “it is deliverable.”
Evaluating long-horizon coding ability therefore requires three dimensions:
- Depth of context understanding: Can it read the implicit conventions in existing code, instead of rewriting aggressively according to “best practices”?
- Cross-module progress: Can it stay consistent across contracts, storage, task state, interfaces, background execution units, and the UI?
- Verifiable completion: Can it bring the task to a runnable, testable state and proactively supply verification evidence?
2. The Technical Logic of Capability Evolution: Stable Base, Expanded Post-Training Environments
A common model upgrade path keeps the base parameter count unchanged and invests resources in post-training: substantially expanding the scale and variety of long-horizon task environments and extending training time, so the model forms more stable execution strategies in settings that are multi-step, long-context, and feedback-driven. As publicly described, one recent coding model keeps the same 753B base as the previous generation, with the upgrade coming mainly from post-training environment expansion.
This route produces three observable directions of change:
- Coding and engineering: More emphasis on long-horizon tasks and production-grade software engineering, keeping an open-source lead in terminal-style tasks and software engineering evaluations.
- Extended safety capability: From “generating code” to white-box code review and vulnerability reasoning; basic security tasks approach frontier closed-source levels, though complete exploitation chains remain a gap.
- Open-weight cadence: Weights are typically released after safety evaluation and model hardening, which makes deployment, verification, and further improvement easier.
These are capability tendencies, not delivery guarantees. In engineering practice, treat them as priors and replace parameter worship with task verification.
3. Experiment Design: Two Task Types Covering Different Capability Surfaces
To make the evaluation more credible, the tasks should be deliberately different to avoid coincidence from a single scenario.
Task A: Legacy System Modification (with Security Constraints)
In a project with a large amount of legacy code, add the ability to “securely import user image assets and reference them in HTML animation scenarios.” The test points include understanding the existing architecture, path and content validation, permission boundaries, resource lifecycle, and backward compatibility.
Task B: Product Delivery from Zero
Given only a learning resource and a product requirements document, implement from scratch a knowledge-learning game that can be fully completed. The test points include resource extraction, level and state machine design, progress persistence, a completable loop, and test coverage.
The results matched the expected layering: both ran, but Task A exposed a P1-level permission isolation defect during manual acceptance. This confirms one conclusion: long-horizon coding agents are worth bringing into real projects, but humans cannot let go of permissions, security, and final acceptance.
4. Task A’s Key Risk: Why Permission Isolation Fails Easily
Importing image assets looks simple but involves multiple trust boundaries. Common failure patterns include:
- Validating only the extension, not the actual content type;
- Missing resource and layer limits during decompression or transcoding;
- Generated access URLs that can be enumerated, with no ownership check;
- No source allowlist when animation scenarios reference external resources.
A minimal server-side validation sketch (illustrating the idea only, not a specific product API):
public ImportResult importAsset(MultipartFile file, UserContext ctx) {// 1. Ownership and quotaQuota q = quotaService.reserve(ctx.userId(), file.getSize());// 2. Content sniffing instead of extension onlyContentType type = contentSniffer.detect(file.getInputStream());if (!type.isAllowedImage()) throw new BizException("UNSUPPORTED_TYPE");// 3. Decode and size limits to prevent decompression-bomb style risksImageMeta meta = imageProcessor.inspect(file, q.maxPixels());// 4. Private storage plus short-lived signed URL to avoid enumerationString key = storage.putPrivate(ctx.userId(), meta, file);String signed = storage.sign(key, Duration.ofMinutes(10));return new ImportResult(key, signed, meta);}
The acceptance checklist should include at least: accessing another user’s assets without authorization, forged content types, oversized or malformed images, expired signatures, and references to untrusted external sources. Any single failure should be treated as a P1 issue that blocks delivery.
5. Task B’s Key Points: From Material to a Completable Loop
Building a learning game from zero is difficult not in the interface but in mapping “knowledge modeling to gameplay loop.” It helps to split this into four layers:
- Knowledge layer: Extract concepts, relationships, and common mistakes from the material into structured entries;
- Level layer: Use a state machine to define unlock conditions and judgment rules, ensuring the game is completable and levels cannot be skipped;
- Progress layer: Persist locally or in the cloud, supporting resume-from-breakpoint and cross-device consistency;
- Verification layer: Use automated cases to cover the “shortest completion path” and “error paths are recoverable.”
A schematic state machine definition:
state: INTRO -> BASICS -> TOOLS -> AGENT_LOOP -> EVAL -> FINALtransition guard: score >= threshold && prerequisiteCompletedonComplete: unlockNext(); persistProgress();
This type of task tests whether the model can abstract from vague material to definite rules, and it also exposes weaknesses in test design: many implementations pass the main path but lack exception-recovery cases.
6. A Reusable Evaluation Framework: Turning Subjective Experience into Comparable Metrics
Replace “feels good” with five-dimension scoring:
- Plan quality: Does it read the code and list the change surface before acting?
- Consistency: Do contracts, storage, interfaces, and UI evolve together?
- Runnability: First-start success rate, completeness of dependencies and configuration;
- Testability: Does it include cases, logs, and diagnostic information?
- Security and compliance: Are permissions, input validation, and key management up to standard?
Score each dimension from 0 to 5; if any security item is below 3, the whole result fails. This quantifies “long-task performance” and makes it easy to compare models or prompt strategies side by side.
7. Delivery Red Lines: A Clear Division of Labor
Based on the observed results, the division can be explicit:
- Safe to hand off: scaffolding, cross-module boilerplate, test completion, documentation generation, repetitive refactoring;
- Needs review: permission models, data isolation, encryption and keys, external resource references, billing and quotas;
- Must be human: final acceptance, security review, staged rollout and rollback plans.
The recommended flow is “agent output + automated gates + human spot checks”: first use static checks and tests as gates, then have humans do targeted spot checks on permissions and security, and finally keep staged rollout and fast rollback available.
8. Conclusion
The value of long-horizon coding agents lies in significantly compressing the time cost of cross-module changes, letting engineering teams focus on architecture decisions and risk control. When evaluating them, de-emphasize leaderboard narratives and strengthen task design and acceptance evidence. Keeping humans in charge of permissions, security, and final delivery is the prerequisite for turning this capability into real productivity.
