Manuscript Offprint

arXiv:2609.31381

Completed Pairs Hide Capped Failures: A ReVerPi Case Study of Selective Context Projection

Guangzhe Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Context projection replaces older tool observations with compact, addressable excerpts, reducing repeated input while potentially adding evidence-retrieval turns. We study this trade-off in ReVerPi, a Pi extension with archived observations and matched full/projected continuations. In an 86-run source-reading campaign with 641 model requests, the 15 completed pairs show identical success: 12/15 per arm. Twelve further boundary runs stop, with the runner suppressing the companion whenever the first arm fails to complete. Restoring all 27 boundary runs bounds projected-minus-full success between -9 and +1 tasks. One omitted, selector-chosen projected continuation successfully retrieves archive text yet exhausts twelve requests; its full counterpart answers in three. The eleven jointly correct pairs form a fully observed success stratum within this recorded frame: projection reduces aggregate logical tokens by 25%, while increasing the median pair's tokens by 29% and total suffix requests from 35 to 55. Separating fitting from evaluation changes the selector's apparent tie: outside its four fitting pairs, it incurs one extra failure and 8.6% more logical tokens over thirteen comparable runs. This methodological case study connects stopping rules, known bounded failures, unexecuted companions, and resource aggregation. Its findings concern the recorded campaign, rather than population noninferiority or superiority over unrestricted Pi. Evaluations should retain every intervention boundary, execute both allocated arms independently of the first arm's completion, and report completion alongside interaction and token expenditure.

1 Introduction

A coding agent can send less information per request and still consume more work before producing an answer. Replacing an old observation may require the agent to search an archive, read an interval, and spend another model turn interpreting it. If that continuation reaches a resource limit, reporting only tasks that finish can remove the very cases in which projection is costly. The relevant question is therefore not merely how much input is removed, but how the changed interaction completes under a fixed allowance.

We examine this question in ReVerPi, an extension to Pi, a minimal terminal coding harness with public TypeScript extension interfaces and an RPC execution mode [1]. ReVerPi preserves the recorded history and replaces eligible tool observations only in outgoing requests. A content-addressed archive supports literal search and exact reading. Its controlled, read-only adapter seals a common prefix and compares full and projected continuations at the same first request boundary. These mechanisms build on established agent interfaces, observation management, and paired continuation [2–5].

The empirical basis is an adaptively developed source-reading campaign: 76 paired-or-capture submissions and ten single-arm integration runs. Fifteen runs complete both arms, and each arm is correct in twelve. Taken alone, this completed-pair view looks balanced. However, twelve additional runs reach the intervention boundary and stop. The controller aborts the pair when an arm fails to complete, so first-arm caps deterministically suppress companion execution. A frozen selector chooses projection in an omitted example, pathspec-util: full observations yield a correct answer after three suffix requests, whereas projection reaches its twelve-request cap despite successful retrieval of archived text.

Three distinctions change the interpretation. First, a cap without an answer is a known failure of completion by that cap; an unexecuted arm has an unknown result. Second, the eleven jointly successful pairs are completely identified within the 27 recorded boundary runs, because every other run has at least one known failure. Their cost contrast is meaningful for this stratum, even though it does not describe the whole frame. Third, the selector's equal failure count on seventeen comparable runs includes its own fitting cases. On the thirteen runs outside fitting, it incurs an additional failure and higher expenditure. These distinctions concern the same evidence, not new tasks, new model calls, or a returned method.

Position and contributions. This is a methodological case study of selective context projection. It contributes (i) a reconstruction of the stopping and observation process that explains why completed pairs omit relevant capped outcomes; (ii) a stratified analysis of fitting cases, first-arm outcomes, joint success, and request-level resource use; and (iii) an application

ReVerPi

of established partial-identification and stratification tools to an executable agent protocol. The result is a concrete account of how a resource-saving intervention is measured. The scope of supported claims is consolidated in Table 6; implementation history and administrative provenance are kept in the appendix.

Code and data. Project code is hosted at https://github.com/timwhitez/ReVer_Pi. The source archive accompanying this article includes an anc/ directory with analysis data, reproduction scripts, and the full displayed observation; Section E specifies its contents and the historical implementation identity.

References (22)