Manuscript Offprint

arXiv:2610.10961

Cross-Provider Review as a Runtime Contract for Coding Agents: A Controlled Pilot and Fault-Injection Study

Bowen Xu, Boyu Chen

Abstract

Coding agents increasingly share a workstation while drawing on separate providers and subscription allowances. A second agent can inspect a completed answer, but the call spends another pool and may provide no substantive finding. We describe an advisory cross-provider review contract: distinct resource pools, bounded execution, restricted reviewer capabilities, complete input delivery, usable semantic output, explicit failure states and durable per-attempt evidence. In a controlled, agent-authored pilot of 20 paired development turns, eight had a material reviewer finding (95% exact interval 19.1–63.9%). A boundary-condition scan across both reviewer backends reproduced a previously discovered false success on partial input: four truncation levels passed historically and failed after repair. The scan also found and repaired cancellation during process reaping. In real CLI probes, Claude had no writing tools; Codex attempted writes in five of five read-only trials, each write tool failed, and no disposable repository changed. These tests cover specified paths and versions, not field reliability. A preregistered shadow study of metadata-only review allocation accrued 25 formal observations before an exact-runtime regression found a third defect: a reviewer exiting nonzero with a well-formed verdict was counted as complete. Exit status was not recorded per attempt, so exposure cannot be resolved retrospectively. The 25 formal and two pending records remain an audit cohort; the measurement-valid cohort restarted at zero and collection has begun. No gate result is reported.

1 Introduction

A coding agent can read a repository, run commands, change files and tell a developer that a task is done. A second model from another provider may notice a consequential mistake in that answer. In a workstation with several subscriptions, however, the second call draws on a distinct, exhaustible allowance. A fixed policy that reviews every completed turn pays this cost even for status updates, direct questions or refusals. A policy that never reviews loses the chance to catch important errors. A practical system needs both a reliable way to obtain an independent review and evidence about where the review can be spared.

The first step is easily understated. Calling another model is not a trustworthy review unless the system can show that the reviewer received the complete material, produced a usable response, and was actually independent in provider and resource pool. Process exit code alone does not establish those properties. The review also needs an explicit relationship to the primary answer: in our setting it is advisory, returned after the answer has been delivered, and cannot silently rewrite the repository. The resulting outcome is a reviewer finding, not observed improvement in final software quality.

Testing that contract exposed defects in its own implementation. A synthetic scan found that cancellation during process reaping could still be counted as a completed review. Later, after preregistered collection had begun, an exact-runtime regression found that a nonzero reviewer exit accompanied by a well-formed verdict was also counted as complete. A zero exit status does not establish a review, and a well-formed verdict does not redeem a failed process: both are necessary and neither is sufficient. Because exit status had not been recorded per attempt, the affected observations could not be scoped after the fact.

We study this setting in OpenTerminalAgent (OTA), 1^{1} a terminal-agent runtime developed by Bowen Xu that runs Codex, Claude, Kimi and other coding CLIs behind one interface while each draws on its own provider allowance. The paper makes three bounded contributions:

  1. A cross-provider advisory review contract for completed coding-agent turns that makes pool disjointness, execution bounds, input delivery, non-mutation, typed failure and durable per-attempt evidence part of the measurable interface.

  2. A completed controlled pilot of 20 paired coding-agent turns, with two provider directions and turn-level blinded source checking. It demonstrates review can surface material issues in this workload and measures how often a uniform policy yielded no material finding.

  3. A deterministic fault-injection case study of this reviewer lifecycle, with repair-before/after comparisons for three implementation-specific false-success paths, one discovered during a live preregistered collection, plus a preregistered shadow allocation protocol. Neither is a claim that selective gating already works.

This is a systems-and-evaluation contribution. We do not claim a new routing algorithm, a calibrated risk model, or broad generality from 20 turns.

References (21)