PROJECT FILE / Under review
ProContract
The model sets the ceiling. Keeping the task intact sets the floor.
ProContract: Decoupling Responsibility and Progress from the Harness in Long-Horizon Agents
Under review. arXiv coming soon · Code coming soon · Prototype
A long run fails by losing the task
A long-horizon agent already has a strong model. The failures that remain are about the record of the work. A requirement drops out while the agent delegates, compacts, or restarts. A check the agent ran on itself gets remembered as completion. Both happen for the same reason: the responsibility and the progress live in the execution state the harness keeps rewriting.
The kernel is a small deterministic program. It runs no model. A contract stores one task’s requirements, deadline, and budget, and only the user can change the requirements. The harness can forget a requirement in its own context. It cannot delete the requirement, because every acceptance is judged against the copy the kernel holds, and the task stays open until that judgment lands. A delegated subtask gets its own contract. The parent may rely on the subtask’s acceptance, and may not treat the subagent’s own report as progress.
The same model, a higher floor
Separating the contract from the harness has two distinct effects: first, the deterministic kernel raises the pass-rate floor of a fixed harness; second, it makes later self-modification of that harness safe. The pass-rate comparison below isolates the first effect by running the base kernel with the unmodified starting harness against the public mini-SWE-agent run of the same model.
On 200 ProgramBench tasks with GPT-5.6 Terra, that public run averages 72.35%. The base kernel averages 77.24%. On the 197 tasks both score, the paired gain is 5.33 points, with a 95% interval from 2.90 to 7.95. The gain is concentrated where the public run collapses: 23 tasks score below 50% instead of 39, and 5 score below 10% instead of 10. At the top the two runs meet. Twenty-eight tasks pass at least 95%, against 30.
Those floor tasks are tasks the model can already do. Eight of the ten public-run collapses score exactly zero. On five of the six that are not broadly hard for every system, the kernel run scores between 76% and 93%. The contract did not teach the model the task. It kept the task in front of a model that could finish it, because the kernel treats an agent’s self-check as evidence rather than completion and keeps the contract open until an authorized verifier accepts a submitted artifact.
Holding the task open in an uncompacted harness has a price. The base kernel run costs 5.38 for mini-SWE-agent, because the agent keeps working while carrying its full history in context: a fifth of its requests cross the 272K-token long-context price tier. Because the kernel holds the task externally, that context history is no longer needed to remember the requirements.
The harness can change because it does not own the task
Once responsibility and progress sit outside the harness, rewriting the harness is an ordinary task. Version 0 writes version 1. Version 1, running its own code, writes version 2. Both edits attack the cost bottleneck above: they move raw execution evidence out of the context window and teach the agent to work from the stored record. Without the kernel, the context window is the only copy of the task, and whatever compaction drops is gone. With the kernel, compaction cannot drop a requirement.
Exploration and adoption are different decisions, and the kernel keeps adoption outside the version being judged. On the six development tasks that choose the next research parent, version 2 gains 6.37 points over version 0. On the three confirmation tasks that gate deployment, it loses 0.23 points. Version 0 stays the incumbent; version 2 becomes the next research parent without adopting itself.
Evaluated across all 200 Terra tasks, that generated harness keeps every contract intact and cuts the cost per task in half, from 7.22, as requests above 272K input tokens fall from 8,481 to 898. The catastrophic-failure floor holds: tasks below 10% go from 5 to 4. At the same time, the mean score on shared tasks falls by 2.16 points, and that loss sits in the quartile of tasks whose context shrank the most. The result separates two roles that standard harnesses conflate: the context window was storing working capability, while the contract was storing the task.
Run-level audit logs across those 200 tasks make the kernel’s invariants concrete. All 420 passing self-checks left their tasks open, and 145 of the 199 tasks that ran a self-check went on to submit a later artifact; scored against the first artifact whose own check passed, the final accepted artifact is better on 65 of 140 scored tasks and worse on 14. Across all 198 deliveries, the submission, the verifier’s report, and the exported archive name the exact same object, and three tasks that resumed inside a restarted harness kept their requirements, deadline, and delivery intact.
A second model, and tasks from after the model’s cutoff
On the official ProgramBench leaderboard every published entry uses mini-SWE-agent. GPT-5.6 Sol at xhigh averages 69.89% there. ProContract with the same model and effort averages 75.25%, a paired gain of 5.36 points (95% interval 2.46 to 8.39). The shape repeats: 3 tasks below 10% instead of 15, and 30 tasks at or above 95% instead of 31. Across the plotted leaderboard this is the highest mean pass rate. The same model resolves five tasks instead of two. The only entry that resolves more, Claude Opus 5 at xhigh, costs about sixteen times as much per task.
Terminal-Bench 2.0 was released after GPT-5.2’s published knowledge cutoff, and that model has the most public harnesses on the leaderboard. ProContract (paired with the compacted harness) passes 65.7% ± 1.1 of the 89 tasks over two trials, ahead of the public GPT-5.2 harnesses: 64.9% (Droid), 62.9% (Codex CLI), 60.7% (Mux), and 54.0% (Terminus 2).
What the kernel does not decide
The kernel decides who may record progress. It does not decide whether the specification is complete or the verifier is right, so a stronger harness can no longer hide a weak judge. The self-improvement run is controlled self-modification: a generated version rewrote its own harness and could not adopt itself. The prototype withdraws support at the level of a whole contract, which reopens more tasks than a finer record would. That is the conservative side of the design.
Cite the paper
@misc{zhou2027procontract,
author = {Zhou, Duo},
title = {{ProContract}: Decoupling Responsibility and Progress from the Harness in Long-Horizon Agents},
year = {2027},
note = {Under review},
url = {https://www.duo-zhou.com/projects/procontract/}
}