Evaluating Long-Horizon Coding: From Running Code to Deliverable Software
A practical evaluation of long-horizon coding in general-purpose LLMs, based on two contrasting real-world tasks. It explains why benchmark scores fall short, where the latest gains come from, and how a P1 permission-isolation flaw slipped past green tests. The article also provides a five-stage acceptance checklist and a clear division of labor between AI and human engineers.
1. The Bottom Line: The Ceiling Is Rising, but Humans Still Own Acceptance
The latest generation of general-purpose LLMs is pushing the boundaries of what can be automated in software delivery. After running two very different real-world tasks end to end, the conclusion is less romantic than the hype: these models are now qualified to work in real codebases, but not yet qualified to be trusted unconditionally.
A more precise framing: the model moves a task to a “runnable and testable” state, while humans move it to a “deployable and accountable” state. The gap between the two is still filled only by engineering standards and human acceptance.
2. Don’t Judge Models by Leaderboards Alone: Long-Horizon Tasks Are the Real Test
Leaderboard scores measure short-chain, single-point, easily verifiable capabilities. Real development is a long-chain, multi-constraint, stateful engineering activity. The correlation between the two is limited.
To judge whether a coding model has genuinely improved, look at four dimensions:
- Depth of context understanding: Can it read the implicit conventions in existing code, rather than rewriting everything according to “best practices”?
- Cross-module progress: Can it stay consistent across the contract layer, data layer, API layer, task scheduling layer, and rendering layer?
- State convergence: Can it recover after an interruption and self-diagnose failures?
- Constraint compliance: Are hard constraints such as security, permissions, and compatibility treated as first-class citizens?
A useful historical baseline: adding a “material import + animated rendering” pipeline to an existing project once spanned seven layers—contract definitions, database, task state machine, APIs, background executor, frontend, and renderer. The first working implementation took about seventy-plus minutes, with another hour spent on browser verification and fixes. This shows models could already work continuously in multi-package projects; the significance of later upgrades must be measured against that baseline.
3. Where the Upgrade Comes From: Scaled Post-Training, Not a New Base Model
The technical path behind this round of gains is notable: the base model parameter count stays the same, and the improvement comes mainly from scaled-up post-training—a several-dozen-fold increase in long-horizon task environments, more diverse environment types, and significantly longer training time.
The official summary groups the changes into three directions:
- Coding: A focus on long-horizon tasks and production-grade software engineering, keeping the open-source camp ahead in terminal and software-engineering evaluations.
- Security: Extending from “generating code” to white-box code review and vulnerability reasoning; basic security tasks approach frontier closed-source levels, though full exploit-chain scenarios still lag.
- Openness: Weights will be released after security evaluation and model hardening, enabling self-deployment, verification, and further improvement.
For engineering teams, the implication is direct: this kind of upgrade is more an improvement in “engineering habits” than a leap in “intelligence.” Evaluation should therefore focus on process fit, not capability worship.
4. Validation Design: Two Tasks That Cross-Check Capabilities
A single task cannot expose capability boundaries. Construct an orthogonal pair instead:
- Task A (existing system + hard constraints): Add a “secure user-material import + scenario-based animated reference” capability to a project with a large body of legacy code, testing legacy-system understanding and security protection.
- Task B (zero materials + product closure): Given only one learning resource and one requirements document, build from scratch a knowledge-learning application that can be fully completed, testing the path from material analysis to product delivery.
A tests “following the rules”; B tests “closing the loop.” Only when both pass can you conclude the model is more than a snippet generator.
5. Key Issue Exposed in Testing: A P1 Permission-Isolation Flaw
Both tasks eventually ran, but Task A exposed a P1 issue during human acceptance: broken permission isolation—a user with ordinary permissions could reach other users’ material resources they should never see.
The typical signature of this defect: functional tests all green, unit tests all green, even end-to-end flows all green—because it doesn’t affect “whether it works,” only “who can use it.” Automated tests are naturally insensitive to it.
A minimal self-check is to write “cross-user access must fail” as an assertion:
def test_cross_user_access_must_be_denied(client, user_a, user_b):asset = create_asset(owner=user_a)resp = client.get(f"/assets/{asset.id}", auth=user_b)assert resp.status_code in (401, 403)assert "url" not in resp.json()
Three supporting engineering constraints:
- Enforce resource-ownership checks on the server, with “deny by default” as the baseline;
- Use short-lived credentials for object storage; never expose long-lived accessible links;
- Validate uploads by both type and content to prevent disguised extensions from bypassing checks.
6. A Reusable Staged Acceptance Checklist
- Stage 1 — Runnable: Build passes, services start.
- Stage 2 — Testable: Key paths are tested, exception branches are covered.
- Stage 3 — Isolatable: Cross-user and cross-tenant access tests are all denied.
- Stage 4 — Observable: Logging, monitoring/alerting, and tracing are in place; failures are diagnosable.
- Stage 5 — Deliverable: Human review, security review, and rollback plans are complete.
The model can independently complete the first two stages; the last three must be led by humans. Drawing this line clearly actually improves team efficiency.
7. Implementation Advice: The Boundary of Human-Machine Division
- Treat the model as a “high-intensity executor,” not the “final owner”;
- Require mandatory human review for changes involving permissions, security, and data boundaries;
- Make implicit constraints explicit with contract tests and a permission matrix to reduce model misjudgment;
- Break complex tasks into verifiable small steps, each with a rollback-ready commit;
- Use general cloud capabilities such as object storage, logging, monitoring/alerting, and container platforms (for example, those offered by Baidu AI Cloud) to fill gaps in observability and permission governance.
In one sentence: progress in long-horizon coding is real and worth validating on real projects; but the illusion that “all tests green means ready to ship” must be broken—the red line of permissions and security should still be held by humans for the foreseeable future.
