arXiv:2610.20003cs.AIOct 2026

Manuscript Offprint

arXiv:2610.20003

What Coding Agents Leave Unsaid: Measuring Task-State Gaps Between Execution and Reports

Guoyang Xu, Rui Zhang, Xiuyu Wu, Hao Chen

Abstract

Human supervisors rely on coding agents' reports to assess progress, verify repairs, and decide when to intervene. But a supervisor cannot investigate a failure they were never told occurred. Failed attempts, workarounds, and unresolved risks may disappear from routine reports, leaving supervisors unaware of issues that warrant scrutiny. We conduct CTXGAP, a measurement study quantifying the gap in task-state recoverability between agents' accumulated user-facing reports and their full recorded execution contexts. Across 37 coding tasks and 4,799 valid probes, agents answer 93.6%93.6\% of task-state questions on demand; full-context readers recover 92.7%92.7\%, while report-only readers recover 52.0%52.0\%, a 40.7-point gap. At the final checkpoints of 30 verified fixes, the gap remains 34.8 points. Human annotation identifies states mentioned without enough supporting detail as the largest category of unrecovered information, and model-assessed supervision-relevant states retain substantial gaps. Full terminal scrollback improves recovery to 73.6%73.6\% but still trails full context. Under matched report lengths, context-informed rewrites improve recovery by about eight points, without a detectable targeted-over-natural advantage. Positive gaps persist across harnesses and independent DeepSeek execution and measurement. CTXGAP establishes report-based task-state recoverability as a complementary evaluation dimension. Benchmark and code: https://github.com/Kaguraaaaaa/Ctxgap.

1 Introduction

A supervisor cannot investigate a failure they were never told occurred. Human supervisors increasingly delegate long-running tasks to coding agents, relying on their reports to assess progress, verify outcomes, and decide whether to intervene. During execution, however, agents may encounter failed attempts, adopt workarounds, or deviate from initial task requirements. These events can be consequential for supervision, yet may be omitted or insufficiently explained in subsequent reports. A supervisor—or another language model asked to review the work—may therefore lack the information needed to recognize potential problems, even when the agent reports successful completion.

This raises a fundamental question: how much task-state information recoverable from an agent's full execution context remains recoverable from its user-facing reports? We introduce CTXGAP to quantify this gap using identical task-state probes evaluated against accumulated reports and recorded execution contexts. In one archived Django trajectory, the agent identified a compatibility risk: with certain custom user models, a password change followed by access from another device could trigger HTTP 500 rather than a normal logout. Its accumulated progress reports did not convey this condition. An observer reading the execution context recovered the trigger; an observer reading only the reports did not (Appendix A.3). The agent encountered the condition, but its reporting channel

View / settingAccuracyAcc(T)Gap95% CI
Main measurement (37 tasks; 4,799 probes)
Reports U.520.927.407[.373, .438]
Scrollback V.736.927.191—
Actor fork (aux.)Acc(A) = .936 [.929, .944]
Fixed at k=4†k = 4^{\dagger}.571.919.348[.282, .413]
Cross-harness check (12 shared issues)
Claude Code.525.932.407[.336, .478]
Pi.550.940.390[.289, .491]
DSH.429.919.490[.417, .563]

Table 1: Execution–report task-state recoverability. U: accumulated reports; V: full terminal scrollback; T: full recorded execution context. Gap is Acc(T)−Acc(view)\text{Acc}(T) - \text{Acc}(\text{view}) ; actor self-answering is auxiliary. †\dagger Final checkpoints of 30 hidden-test-fixed tasks (1,172 probes). Main estimates use category-weighted probes and issue-cluster bootstrap CIs; cross-harness rows use task-equal means, distinct trajectories/probes, and per-issue t intervals. The scrollback gap is a point estimate; reading-view intervals are in Appendix B.

Figure

Figure 1: CTXGAP overview. Execution-grounded task state can be unrecoverable from accumulated reports; paired probes quantify the 40.7-point main-sample gap between TfullT_{full} and U (37 tasks; 4,799 valid probes). Panel 4 illustrates two archived cases—an unreported Django compatibility risk and an earlier pytest verification failure—with original probe judgments U: 0/3 and TfullT_{full}: 3/3 (Appendix A.3). Panels 1–3 illustrate the paired-view measurement; Panel 5 shows the evaluated application settings.

did not preserve it.

Task success, on-demand answerability, and supervisory visibility are distinct. A coding agent may complete a repair and answer execution-specific questions when asked, yet omit the states that would prompt a supervisor to ask them. Issue-resolution benchmarks measure outcomes; they do not reveal how much task state reaches supervisors through routine reports. CTXGAP measures this reporting dimension without requiring supervisors to inspect entire execution logs.

Checkpoint-aligned measurement. At checkpoint kk, UkU_k contains accumulated user instructions and agent reports, while TfullT_{full} contains the recorded execution context. CTXGAP extracts trajectory-grounded task-state atoms, constructs probes, and evaluates identical questions with the same observer under each view. Category-aware weighting and independent grading, evidence-support, and cross-model audits test the instrument. Repeated checkpoints trace recovery over time (Figure 1).

Finding 1: routine reports expose far less state than direct queries. Across 37 tasks and 4,799 valid probes, actors answer 93.6% correctly when directly queried at isolated checkpoint forks; a full-context observer recovers 92.7%, but accumulated reports support only 52.0% recovery (a 40.7-point view gap, 95% CI [37.3, 43.8]). The reporting channel leaves much of the state recoverable on demand unavailable to a supervisor who relies on routine reports. At the final checkpoint of 30 hidden-test-verified repairs, the gap remains 34.8 points [28.2, 41.3], with positive task gaps in 28/30 cases.

Finding 2: the gap includes supervision-relevant states. States independently labeled useful for supervisory decisions by HY4-preview and DeepSeek retain report-context gaps of 35.3 and 36.4 points; their jointly relevant subset retains 36.1 points (Section 4.4). The information deficit is also not limited to completely unmentioned events: two human annotators identify mentioned but insufficiently specified as the largest category among sampled unrecovered states (55.4% and 59.2% weighted estimates). A separate mention-only intervention provides no detectable recovery gain ( Δ=−.002\Delta = -.002, 95% CI [-.027, .025]). Merely mentioning an event does not communicate enough evidence to answer questions about it.

Finding 3: more terminal visibility reduces but does not close the gap. On the same 4,799 probes, full terminal scrollback V yields 73.6% recovery, versus 52.0% from accumulated reports U and 92.7% from full execution context TfullT_{full}. Reading terminal-visible content therefore improves recovery by 21.5 points, but leaves a 19.1-point residual context gap. U represents report-mediated oversight and handoffs; V measures access to the fuller rendered execution history, not what a person necessarily reads or remembers (Section 4).

Reporting and robustness checks. With matched total-report lengths, context-informed natural and targeted rewrites raise recovery by 8.3 and 8.5 points over original reports, without a detectable targeted–natural advantage (Section 5.1). Positive gaps also recur across three harnesses (.390–.490), an independently executing DeepSeek model (.527 on 12 issues), and a fully independent DeepSeek atom-to-grade measurement chain (.398 [.348, .456] on the original 37 trajectories; Section 6).

Our contributions are threefold. (1) A measurement target: task-state recoverability through routine reports, separately from task success and on-demand answerability. (2) A paired-view measurement: identical execution-grounded probes evaluated from reports and full context, with explicit terminal-visibility and relevance checks. (3) Empirical evidence: a large report-context gap persists after successful repairs, for supervision-relevant states, and even with terminal scrollback; independent execution and measurement checks support its recurrence.

References (49)