Evaluating Long-程 Coding Agents: Capability Boundaries and Security Acceptance Testing
As coding agents move beyond single-turn Q&A, developers need a practical way to measure long-horizon coding ability in real projects. This article introduces a four-dimension evaluation framework, describes two hands-on tasks (adding a feature to a legacy codebase and building an app from scratch), and explains why passing tests does not equal release readiness. It also covers a P1 permission isolation defect found during manual acceptance and recommends layered acceptance gates for safe adoption.
1. Background: Measuring Long-Horizon Coding Beyond Benchmark Scores
As AI coding tools iterate quickly, developers care less about single-turn accuracy and more about whether a model can handle “long tasks” in real engineering work: reading large historical contexts, advancing changes across multiple modules, and bringing a task to a runnable, testable state. Static benchmark scores cannot fully capture this ability; it has to be tested in real projects.
This article does not focus on any specific product. Instead, it abstracts an evaluation framework for long-horizon coding agents and uses two very different tasks to show how to design hands-on tests, set acceptance thresholds, and explain why “all tests green” does not mean “safe to ship.”
2. Evaluation Framework: Four Dimensions of Long-Horizon Coding
To judge whether a coding agent is production-ready, observe these four dimensions:
- Depth of context understanding: Can it identify implicit project constraints, such as historical code style, existing abstractions, database migration conventions, and security boundaries?
- Cross-module progress: Do changes cover the full chain—contract layer, data layer, task state, API layer, execution layer, and frontend rendering—rather than a single point?
- Runnable and testable: Can the output pass the build, start up, run through key paths, and include reproducible verification?
- Risk self-control: Does it proactively identify high-risk areas such as permissions, security, and data isolation, and stop to ask when uncertain rather than proceeding on its own?
The first three determine whether it “can be used”; the fourth determines whether you “dare to let it run.”
3. Hands-On Task Design: One Legacy, One Greenfield
To make the evaluation more discriminating, I prepared two types of tasks.
Task A: Incremental capability in a legacy project. In an existing project with a large amount of historical code and explicit security constraints, add the ability to “securely import user image assets and reference them in animation scenarios.” This tests three things at once: understanding a legacy system, following security constraints, and integrating a new capability into the existing chain.
Task B: Build a learning app from scratch that can be completed end to end. Given only a learning material and a requirements document, implement a knowledge-learning app from scratch that can run through the full flow and be fully completed. This tests completeness from material analysis and information architecture to state design and product delivery.
One is “transformation under constraints,” the other is “creation in a blank space.” Together they expose capability gaps more comprehensively.
4. Observing Generational Improvements: Changes from Post-Training Scaling
When comparing different model generations, a common pattern is that the base stays unchanged while capability gains come mainly from scaling the post-training stage: longer task environments, more diverse environment types, and more training time. Official summaries usually group improvements into three directions:
- Coding capability: Emphasis on long-horizon tasks and production-grade software engineering, staying open-source leading in terminal and software engineering evaluations.
- Security capability: Extending from “code generation” to white-box code review and vulnerability reasoning; basic security tasks approach frontier closed-source levels, but complete exploit chains still lag.
- Open strategy: Opening weights after security evaluation and model hardening, making self-deployment, verification, and further improvement easier.
Note: these are vendor statements and public evaluation criteria; for your own project, hands-on testing remains the standard.
5. Hands-On Results: Running Through Is Not Acceptance
Both tasks ran through: the legacy project’s new capability could build, start, and run through key paths; the greenfield project could be fully completed. But during manual acceptance, the legacy project exposed a high-risk issue—a permission isolation defect (P1): access boundaries for asset resources between different users were not strictly enforced, creating a risk of unauthorized reads.
Typical causes include:
1. Only checking "is logged in," not "does the resource belong to the current user";2. Object identifiers exposed directly and enumerable, lacking ownership checks;3. Temporary access links valid too long and scoped too broadly;4. Error handling returning internal details, aiding information probing.
The hardening directions are: enforce ownership checks on every resource on the server side, use non-enumerable identifiers, shorten temporary credential validity and limit scope, and unify error output.
6. Why “All Tests Green” Is Still Not Enough to Ship
Automated tests cover “known paths,” while permission and security issues often hide in “unwritten constraints.” Agents tend to push tasks to “runnable” but do not necessarily fill in security boundaries proactively. Therefore, layered acceptance is recommended:
- Build and unit tests: Ensure basic correctness.
- End-to-end key paths: Ensure the main flow works.
- Security test suite: Negative cases such as unauthorized access, enumeration, injection, and out-of-bounds access.
- Manual review: Focus on the permission model, data isolation, and final experience.
7. Practical Recommendations: Put Agents in the Right Place
Overall, long-horizon coding agents are worth testing on real projects, especially for long-horizon, cross-module coding tasks; but in permission, security, and final acceptance, humans cannot let go. Practical steps:
- Let the agent handle the “0 to 1 runnable” draft and “cross-module transformation” draft.
- Include security cases in continuous integration as a mandatory gate.
- For changes involving multi-tenancy or sensitive data, keep manual review and the principle of least privilege.
- Use reproducible verification scripts to solidify acceptance criteria and reduce subjective judgment.
8. Conclusion
Evaluating long-horizon coding ability is not about whether it can “run,” but whether it can keep advancing correctly under constraints and remain cautious about high-risk areas. Designing hands-on tasks as one legacy and one greenfield, and splitting acceptance into layered gates, lets you enjoy efficiency gains while holding the line on security and delivery.
