The Capability Boundaries of Long-Horizon Coding Agents: Practice and Lessons
Why benchmark scores fail to predict real delivery, how post-training drives long-horizon gains, and where human review remains mandatory. This article uses a two-task comparison (legacy system hardening versus greenfield product delivery) to map what long-horizon coding agents can handle autonomously, where review is required, and how to place them inside a controlled pipeline with automated gates and human sign-off.
1. Why Benchmark Scores Are Not Enough to Evaluate Coding Agents
When assessing a new generation of coding agents, the easiest mistake is treating public benchmark scores as equivalent to delivery capability. Leaderboards measure single-task completion rates in controlled environments, while real engineering delivery involves legacy code, implicit constraints, cross-module dependencies, and final acceptance. One key observation is worth generalizing: the metric that actually carries information is not “can it write a correct piece of code,” but “can it read complex context, keep driving cross-module changes forward, and bring the task to a runnable, testable state.”
Evaluating a long-horizon coding agent therefore requires at least three dimensions:
- Depth of context understanding: can it identify existing conventions, directory structure, and implicit norms;
- Long-horizon progress: can it keep the goal from drifting across dozens of consecutive steps;
- Delivery completeness: does it produce runnable, testable, reproducible results rather than code fragments.
2. Reading Version Evolution: Post-Training Gains With an Unchanged Base
The source material notes that a new-generation model shares the same base scale as the previous generation, with the upgrade coming mainly from scaling the post-training stage: larger long-horizon task environments, more environment types, and longer training time. This pattern is general — when base parameter count stays fixed, capability gains come more from “environment diversity + interaction steps + feedback density” than from simply adding capacity.
The three directions summarized by the vendor can also be abstracted into general capability coordinates:
- Coding capability: emphasis on long-horizon and production-grade software engineering rather than one-shot code generation;
- Safety capability: extending from “generating code” to white-box review and vulnerability reasoning, with foundational security tasks approaching the frontier, though complete exploit chains still show a gap;
- Open policy: weights released after safety evaluation and hardening, which makes self-hosting, self-verification, and further improvement easier.
Note that these are vendor claims and public benchmark framing. Engineering teams should treat them as hypotheses, not conclusions.
3. Experiment Design: Two Contrasting Tasks Covering Two Extremes
A single task is not enough to test long-horizon capability. The original practice used a set of deliberately contrasting experiments, a design worth reusing:
- Task A (legacy system modification): in a project with a large body of historical code, add “secure import of user image assets + HTML animation scene referencing.” The focus is legacy system understanding, adherence to security constraints, and consistency of cross-layer changes.
- Task B (greenfield product delivery): given only learning materials and one product requirements document, implement from scratch a knowledge-learning game that can be completed end to end. The focus is material analysis, requirement decomposition, product closure, and playability verification.
The two tasks correspond to “increment under constraints” and “increment in a blank space,” and they clearly separate “can write code” from “can deliver a system.”
4. Task A Review: Security Red Lines in a Legacy Project
In the legacy project, the agent got the chain working on the first round: asset upload, storage, referencing, rendering, and state transitions all functioned. Manual acceptance then exposed a P1 permission isolation defect — users and tenants could access each other’s asset resources across boundaries. Such problems are usually invisible when all automated tests are green, for three reasons:
- Test cases typically cover functional paths, not unauthorized-access paths;
- Permission checks are often scattered across the gateway, service layer, and storage layer, so single-point tests cannot connect them;
- The implicit assumption in legacy code that “internal calls are trusted by default” gets inherited by the new chain.
An actionable hardening checklist:
1. Resource ownership checks: validate that owner/tenant matches the current principal on every read and write2. Least privilege at the storage layer: use short-lived credentials for object storage, disallow public reads3. Unified authorization middleware: avoid each endpoint implementing its own checks4. Negative test cases: explicitly cover unauthorized access, forged IDs, and cross-tenant enumeration5. Audit logs: record the accessing principal, resource identifier, and result
Conclusion: runnable does not equal deliverable. Permissions and security must be independent acceptance items, and a human must sign off on them.
5. Task B Review: Completeness of a Greenfield Delivery
In the greenfield task, the agent showed strong material summarization and structure generation: it broke the learning materials into knowledge modules, generated levels, question banks, progress tracking, and settlement logic, and produced something that could be completed end to end. This suggests long-horizon coding agents maintain goal consistency more easily in greenfield projects, where there is no legacy baggage or implicit conflict.
Typical gaps still appeared:
- Vague statements in the requirements document were filled in by “reasonable guesses” that need human confirmation;
- Game-experience metrics such as difficulty curve and playability are hard to verify automatically;
- Boundary states (corrupted saves, repeated completion, abnormal exits) require additional test cases.
6. Drawing the Capability Boundary: What to Delegate and What Not To
Combining both tasks, a clear division of responsibility can be proposed:
- Safe to delegate: scaffolding, cross-module boilerplate, test skeletons, first drafts of documentation, repetitive refactoring;
- Requires review: data models and interface contracts, state machines and concurrency handling, error handling strategy;
- Never delegate: permission isolation, key and credential management, security review, final manual acceptance, and production release decisions.
A practical criterion is a “three questions” check: does it run? is it testable? is it traceable to requirements and the risk list? Only when all three pass does it move to manual acceptance.
7. Engineering Practice: Put the Agent Inside a Controlled Pipeline
Stable output from a long-horizon coding agent requires external constraints rather than reliance on its own judgment:
- Task decomposition: split large tasks into verifiable small steps, each with acceptance conditions;
- Contracts first: define interfaces and data structures before letting the agent fill in implementations;
- Automated gates: unit tests, static checks, dependency scanning, and negative permission cases all belong in the pipeline;
- Environment isolation: run in a containerized sandbox with restricted network and credential scope;
- Human gates: security, permissions, and release gates must be confirmed by a person.
Illustrative flow:
requirements → contracts → stepwise implementation → automated tests → negative security cases → manual acceptance → release
8. Conclusion
A reasonable assessment of the new generation of long-horizon coding agents is that they are already worth testing on real projects, and are especially suited to long-cycle, cross-module coding tasks; but at the permission, security, and final acceptance stages, humans cannot step back. Treat benchmark scores as reference hypotheses, use a two-task comparison to test real delivery capability, and back everything with pipeline gates and human sign-off — that is the sustainable path to engineering adoption.
