What coding agents leave unsaid: measuring the task-state gap between execution and reportingWhat Coding Agents Leave Unsaid: Measuring Task-State Gaps Between Execution and Reports
The authors use CTXGAP to measure the information recoverability of coding agent reports: on 37 tasks, the report view is 52.0% and full context is 92.7%.
- Supervisors rely on coding agents' routine reports to judge progress and when to intervene, but failed attempts, workarounds, and remaining risks may not enter the reports. Task completion and being able to answer follow-up questions do not mean a supervisor can recover these task states from reports.
- CTXGAP extracts task state atoms from execution records and generates probes, having the same observation model answer separately based on cumulative reports and the full execution context, then compares recovery rates with category weighting; it additionally measures the terminal view, human annotation, report rewriting, and cross-execution and cross-measurement chains.
- On 37 tasks and 4,799 valid probes, the report recovery rate is 52.0% and full context is 92.7%; the final checkpoints of 30 hidden-test fixed tasks still show a 34.8-point gap. Positive gaps also remain in terminal scrollback, the supervision-relevant state subset, and the independent DeepSeek measurement.
- The authors note that the main measurement chain depends on HY4-preview, relevance is assessed by models, and the intervention measures offline recovery rather than human actions or code outcomes; the 37 tasks are a non-random Python sample. The public text benchmark does not include private reasoning and original execution records, so the original full-context input cannot be reproduced.
- Evaluated models
- HY4-previewDeepSeek-v4-flash
- Benchmarks
- SWE-bench VerifiedCTXGAP
- Metrics
- Acc(U)Acc(Tfull)GapviewGapactornon-inferable state recovery
Tencent researchers propose the CTXGAP measurement method, quantifying the task-state gap between coding agents' routine reports and the full execution context: on 37 SWE-bench Verified tasks and 4,799 valid probes, an observer reading only the cumulative report could recover only 52.0% of task states, while reading the full execution context could recover 92.7%, a gap of 40.7 percentage points, whereas the agent, when asked directly, answered correctly 93.6% of the time. At the final checkpoint of 30 tasks verified as successfully fixed by hidden tests, the gap was still 34.8 percentage points, and states that the model labeled as supervision-relevant also retained a gap of 35.3 to 36.4 percentage points. Human annotation showed that mentioned but insufficiently detailed was the largest category of unrecovered information; merely adding mentions produced no detectable improvement in recovery; reading the full terminal history output raised the recovery rate to 73.6%. When matching the total report length, context-based rewriting improved it by about 8 percentage points; the gap existed across the three harnesses Claude Code, Pi, and DSH, as well as in independent DeepSeek execution and measurement.
Why it was selectedThe paper uses the same set of task-state probes to compare reports with the full execution context, quantifying a 40.7 percentage point recoverability gap, adding a reproducible evaluation dimension for human oversight of agents.
Paper analysis
What problem does this paper attempt to solve?
CTXGAP measures how much recoverable task state is lost from a coding agent's routine reports relative to the complete execution record.
The core issue is: a coding agent completing a task and being able to answer follow-up questions does not mean a supervisor can recover task states such as failures, workarounds, and risks from its routine reports.
- Supervision scenario: The authors note that humans rely on reports to assess progress, verify fixes, and decide when to intervene; problems that are not reported may therefore fail to enter the supervisory view.
- Gap in existing evaluations: The authors argue that issue-resolution benchmarks measure task outcomes and on-demand question answering measures answerability, and neither directly measures how much state routine reports convey to a supervisor.
- Core distinction: CTXGAP separates task success, on-demand answerability, and report-mediated supervisory visibility, comparing different information views with the same probes rather than only counting whether events are mentioned.
- Proposed tool: The authors propose the measurement study CTXGAP, which extracts execution-grounded state atoms from trajectories, generates questions and reference answers, and compares cumulative reports, terminal scrollback, and full execution context.
- Supervision relevance and interventions: It additionally uses models to label decision-relevant states, human review of mention and evidence sufficiency, and comparisons of report rewrites and simulated supervisory instruction changes; these remain model probes and offline interventions, not human supervision outcomes.
What related research exists?
Related work covers agent reports, question-answering-style evaluation, omission interventions and coding agent evaluation; CTXGAP focuses on paired-view recovery.
Agent reports and observability for supervision
- Kraishan and Jitkajornwanich (2026): Analyzes 5,851 coding agent sessions, measuring how executed actions appear in self-reports and to what extent logs can be reconstructed from reports.
- Wang and Wang (2026): Studies the difficulty of diagnosing code failures from rendered Blender output.
- Te’eni and Katz (2026); Tang et al. (2026): Discuss the human–AI context gap and large-scale developer–agent misalignment, respectively; the authors use these to extend the focus to the task state that reports actually convey.
Question- and fact-support-based evaluation
- QAEval, QuestEval (2021): Evaluate summaries via question answering; FActScore (2023) checks atomic fact support, and KnowledgeGain (2026) measures reader learning.
- AMA-Bench (2026): Studies long-term memory over agent trajectories.
- Positioning of this paper: The authors state that CTXGAP uses question answering as a measurement instrument rather than proposing a new QA metric; it compares the recoverability of the same execution-grounded probes under report and execution views at consecutive checkpoints.
Decision-relevant omissions and report interventions
- MED-OMIT (Schumacher et al., 2025): Connects missing facts in medical summaries to simulated downstream decisions.
- Corresponding design in CTXGAP: Compares subsequent instructions produced under report-only, fact-restored, and matched-known views, and evaluates reports under added-text and total-length budgets separately.
Coding agent evaluation and runtime environments
- SWE-bench (2024): Measures issue-resolution outcomes; SWE-agent, OpenHands (2024) build tool-using software agent runtimes.
- ContextBench, AgentLens (2026): Study code context retrieval and agent trajectories and communication, respectively; Ning et al. (2026) discuss the effect of harness design on execution.
- Experimental subjects rather than comparison baselines: Tasks come from SWE-bench Verified, and the execution harnesses are Claude Code, Pi, and DSH; the paper does not set up an existing measurement baseline competing with CTXGAP on recovery rate—the main comparison is between different information views under the same probes.
How does the paper address this problem?
CTXGAP uses checkpoint-aligned state probes to compare reports, terminal, and full context under the same observation and scoring procedure.
The overall approach is to construct state probes from the same execution checkpoints, then change only the information view readable by the observer. The main result is the difference in weighted recovery rate between the report view and the full-context view; the tool itself is additionally checked with executor self-answers, human audits, and an independent measurement chain.
Checkpoints, tasks, and information views
- Task unit: A canonical task corresponds to a unique SWE-bench Verified issue, and a trajectory corresponds to one selected run; the 76-task list selects one trajectory per issue, and the main sample is 37 unique issues, 37 trajectories, and 148 checkpoints.
- Execution flow: Four checkpoints successively require investigating without changing code, implementing a fix, running tests and reporting, and assessing remaining risk (Table 6); each step saves the trajectory prefix and a workspace snapshot.
- View definitions: Uk contains cumulative user instructions and agent reports; full Tk additionally contains tool interactions, narration, and reasoning. Vk is the default visible terminal scrollback, where long output may be collapsed or truncated; full context is not equivalent to the terminal rendering record.
- Reading gradient: Narration, execution headers, and tool output are successively added to the report, then full scrollback; there is also a context with reasoning removed. The views are not necessarily literally nested text, so the decomposition is not a causal partition of information location.
State atoms, probes, and weighting
- Atoms and screening: An atom is a factual proposition with a task-state category, source, and extractor importance; only importance 2 or 3 enters sampling. Importance 3 means omission could change user instructions or judgment, and 2 is used to explain progress; this is not human-verified decision relevance.
- Probe generation: Questions, reference answers, and distractor structure are generated; of 4,855 candidates, 4,799 are retained, conditional on the full-context score being greater than 0 and not full marks from the task description alone. This screening uses already-scored answers and is a post-selection analysis population.
- Category weights: The probe weight is wi=Nrkc/nrkc, i.e., the number of eligible atoms in a given run, checkpoint, and category divided by the number of sampled probes, used to compensate for category-dependent sampling.
- Repetition and boundaries: The same event can produce different probes at different checkpoints, with archive keys (run,k,atom_id) and (run,k,qid); the authors do not claim that the recording unit is the deduplicated full set of real events.
Observation, scoring, and gap definition
- Paired observation: The report and full-context observers are new readers who receive only the assigned material, using the same model and scoring procedure; each probe is answered 3 times per view, with thinking mode off (Table 7).
- Scoring: An independent judge scores correct=1, partial=0.5, wrong or unknown=0 against the reference answer, averaging repeated samples before weighting; failed calls and unparseable answers are recorded as reading or measurement failures.
- Main metric: Gapview=Acc(T)−Acc(U), where T is the full-context observer and U is the report observer. The auxiliary Gapactor=Acc(A)−Acc(U), where A is the executor self-answering in an isolated checkpoint fork.
- Fork check: The self-answer fork does not call tools or modify the workspace; records show that 86/86 tested fork prefixes pass validation, with tool calls and modifications both 0/0 (Table 7).
Validity, relevance, and statistical units
- Conveyance audit: A semantic judge classifies atoms as explicit, implicit, or absent; in addition, two humans separately annotate 195 stratified atoms for whether they are mentioned and whether the report evidence is sufficient to fully answer the probe.
- Supervision relevance: HY4-preview and DeepSeek independently label whether 200 probes are useful for supervisory decisions, without seeing report-observer scores or gaps; disagreements are retained and not resolved by voting.
- Uncertainty: The main sample is clustered by canonical issue, with 95% intervals computed from 10,000 bootstrap resamples; cross-harness uses the task-equal mean of 12 shared issues and per-issue Student t intervals with df=11.
- Outcome verification: Hidden tests restore snapshots, apply benchmark test patches, and run FAIL_TO_PASS and PASS_TO_PASS to determine fixes and regressions; this is a different endpoint from probe recovery rate.
Report and simulated supervision interventions
- Equal total length replay E2: Original reports, natural rewrites, and targeted rewrites are compared on 129 paired checkpoint units; both rewrites can access the full execution context and are counterfactual reports, not strategies generated autonomously by the agent.
- Appended summary experiment: The original report is retained, and natural, fixed-schema structured, and targeted summaries selected by development-set gap category are appended separately; targeted generation does not access held-out answers, probes, atom text, or hidden test results.
- Simulated supervision: A model supervisor sees report-only, omitted atoms restored, or known atoms restored, and then generates the next instruction; the endpoint is whether the instruction changes, with fact targeting and subsequent code outcomes recorded separately.
What experiments did the paper conduct?
On the main sample, report recovery was 52.0% and full-context 92.7%; gaps remain after repair, in supervision-relevant state and in independent measurement.
Experimental setup
- Execution models and harnesses: The executor for the main sample and the cross-harness experiments is HY4-preview; Claude Code (version 2.1.154), Pi, and DSH each produce trajectories on 12 shared issues. The cross-executor experiment switches to DeepSeek-v4-flash on a fixed DSH.
- Measurement models: The main pipeline uses HY4-preview for atomic extraction, probe/reference generation, observation, and most scoring; an independent chain rebuilds these stages with DeepSeek-v4-flash. The four-cell crossover experiment is scored uniformly by GLM-5.3-flash, and the evidence intervention additionally includes a GLM observer.
- Tasks and sample: From the 76-task list of SWE-bench Verified, the frozen main sample is 37 non-randomly selected Python tasks, 148 checkpoints, and 4,799 valid probes; of these, 23 are development and 14 are held-out.
- Metrics: Acc(U), Acc(V), and Acc(Tfull) are the weighted probe recovery rates under the report, full terminal scrollback, and full execution context, respectively; Gapview=Acc(T)−Acc(U), and Gapactor additionally uses the executor's self-answer in an isolated fork.
- Scoring and repetition: correct/partial/wrong/unknown are scored as 1/0.5/0/0, with typically 3 answer samples per view; the main intervals use bootstrap 10,000 times clustered by the 37 issues. Hidden tests at k4 determine 30 tasks as fixed and 7 as not fixed.
- Human audit: Two people annotate mention and evidence sufficiency for 195 stratified gap atoms; the final two-person answer audit includes 360 non-forced probes and 810 condition-blinded answers. Relevance labels come from models, not human ground truth.
Main results
Swipe horizontally to read the table
Measurement/view Acc(U) Acc(T or V) Gap Conditions and source Report U vs full context Tfull .520 .927 .407 [.373,.438] 37 tasks, 4,799 probes, Table 1 Terminal scrollback V vs Tfull .736 .927 .191 Same main sample, Table 1; the V column is placed at the Acc(U) position for layout correspondence only Final checkpoint of fixed tasks .5705 .9185 .3479 [.2816,.4126] 30 fixed tasks, 1,172 probes, Table 10 Claude Code .525 .932 .407 [.336,.478] 12 shared issues, HY4 execution, Table 52 Pi .550 .940 .390 [.289,.491] 12 shared issues, HY4 execution, Table 52 DSH .429 .919 .490 [.417,.563] 12 shared issues, HY4 execution, Table 52 HY4-preview, fixed DSH .4264 .9487 .5223 12 tasks, single-sample task-equal, Table 54 DeepSeek-v4-flash, fixed DSH .4212 .9482 .5270 12 tasks, single-sample task-equal, Table 54 - Interpretation of the main sample: The executor's on-demand self-answer gives Acc(A)=.936 [.929,.944] (Table 5), but the authors treat it as an auxiliary diagnostic; the main conclusion is the report–context gap of paired observers, not treating self-answers as an upper bound on supervisory visibility.
- Persistence after fixing: Among the 30 finally fixed tasks, 28/30 have a positive gap at the final checkpoint; Gapview across all checkpoints of these tasks is .4118 [.3716,.4478] (Table 10), and early checkpoints do not all represent completed fixes.
- Terminal view: The authors report that scrollback improves recovery relative to reports but remains below full context; Table 13 attributes 53.0% [47.6,57.8] of the report-to-full-context gap to the accuracy increment from U to V. The authors explicitly state that this does not mean users actually read or remembered the terminal content.
Why information was not recovered: human mention and evidence audit
- What was measured: Two annotators independently review the original report view of 195 stratified gap atoms, distinguishing "not mentioned," "mentioned but insufficient evidence," and "sufficient but not recovered"; reader recovery rates follow the existing machine scores.
- Results: Inter-annotator agreement on mention is 85.6% with κ=.632, and on sufficiency 81.5% with κ=.638. In weighted gap mass, "mentioned but insufficient" accounts for 55.4% and 59.2%, respectively, and "not mentioned" for 42.1% and 33.7% (Table 22); although the point estimates for the two "mentioned but insufficient" intervals are high, both 95% CIs include 50%.
- Authors' interpretation: The authors state that literal mention does not equal being able to answer a probe, and the automatic "not conveyed" category cannot be read as "never mentioned." The two annotators' estimates are reported separately and are not combined into an adjudicated label.
Report design and evidence supplementation
- Equal total length E2: On 129 paired units and 4,175 valid probes, the Acc of the original report, natural rewrite, and targeted rewrite are .6716, .7545, and .7566, respectively (Table 39). Relative to the original report, these improve by 8.29 points [+5.72,+10.42] and 8.50 points [+6.34,+10.58], respectively; targeted minus natural is only +0.20 points [−1.48,+1.78], and the authors state that no targeted advantage was detected.
- Held-out appended summaries: Recovery of non-inferable states goes from .017 for reports only and .031 for natural to .281 for structured and .602 for targeted; the corresponding nNI are 54, 54, 54, and 50 (Table 3). Matched-budget targeted is .110 (50 units), an advantage of +.077 [.030,.133] over natural; these use different budgets and populations from E2.
- Adding mentions alone is not enough: On 99 human-screened "mentioned but insufficient" candidates across 33 tasks, mention-only versus the original report gives ∆=−.002 [−.027,+.025]; reference-guided execution evidence versus mention-only is +.189 [+.137,+.241] (Table 25 reports the three-observer results). The authors note that evidence addition is answer-guided and cannot identify an independent causal effect of evidence sufficiency.
Cross-model, supervision relevance, and simulated supervision
- Independent measurement chain: DeepSeek-v4-flash builds its own atoms, probes, observations, and scoring on the original 37 frozen trajectories, giving Gapview=.3985 [.348,.456], versus .4066 [.373,.438] for the frozen HY4 chain (Table 49). The two chains construct different questions, and the authors do not interpret their difference as an independent effect of a single model role.
- Cross-generation and observation: On 413 fully paired original atoms, the four combinations of HY4/DeepSeek as generator/observer give Gapview of .3450–.3995 (Table 45), scored uniformly by GLM-5.3-flash; the subset of 374 pre-labeled same_state=yes also all show positive gaps.
- Supervision-relevant states: The 151 probes labeled relevant by HY4 have Gapview=.353 [.266,.435], the 135 labeled relevant by DeepSeek have .364 [.259,.463], and the 125 labeled relevant by both have .361 [.260,.462] (Table 24). This is model-assessed relevance, not a human-verified proportion of useful omissions.
- Simulated supervision: The paired difference in instruction change for restoring omitted facts versus matched-known reminders is +18.9 points [+10.2,+28.0] (Figure 6). In Table 38, the fact-targeted check is 1/7, and the behavioral comparison has informed wins of 4/14 and control wins of 0/14; the authors emphasize that instruction change does not equal improved final task success.
Other ablations and analyses
- Reading depth: In Table 14, latest report is .239; adding narration gives .545, execution header .639, and full scrollback .736; removing reasoning context gives .890, and full context gives .927.
- Checkpoint accumulation: The number of unaligned atoms at k1–k4 is 9.436, 19.027, 21.041, and 22.280; Gapactor is .426, .472, .436, and .359, respectively (Table 15), and the absolute counts and normalized gap trends differ.
- Reference paraphrase: With observer answers fixed for 300 stratified probes and only the reference rewritten, Gapview changes from .4017 to .3917, a paired change of −.0100 [−.0417,+.0236]; 18.3% of U and 11.7% of Tfull individual scores change (Appendix E).
- Alternative scoring and two-person audit: The gap change under question-aligned rescoring is +.011 [−.013,+.036] (Table 35); the machine-minus-two-person-average gap for 360 probes is ∆task=+.0139 [−.0137,+.0454] (Table 36), and both intervals include zero.
- Sample and binding sensitivity: Gapview for the extended 76 tasks and 10,186 probes is .4378 (Table 9); after removing category-binding anomalous runs it is .4141 [.3824,.4439], and after removing 86 mismatched probes it is .4110 [.3796,.4404] (Table 11).
- Non-literal probes: On 74 probes and 19 tasks consistently labeled non-literal by both models, Gapview=.3690 [.2902,.4436] (Table 48); the authors state that this supports the existence of a gap in this subset but cannot decompose the 40.7-point gap of the main sample.
What are some points that can be further explored?
The authors list model dependence, non-random sampling, and offline interventions as limitations, and recommend follow-up with human supervision studies.
Limitations and future directions noted by the authors
- Measurement construction depends on models: Limitations notes that the main pipeline uses HY4-preview for extraction, generation, observation, and most scoring, which may favor execution details and exact identifiers; the two independent chains also sample different states, and the estimates remain recovery rates under model-generated questions and references.
- Relevance and intervention endpoints: Limitations notes that decision relevance and probe answers are assessed by models, and that the fact-specific uptake of simulated instruction changes is limited; checkpoint report interventions measure offline recovery, not human actions or code outcomes.
- Rewrites are not autonomous report effects: Limitations notes that E2 observes only 129 paired units, both rewrites use the full execution context, and the roughly eight-point gain is not an effect of an autonomous reporting strategy; the remaining 19 units were not observed, so a sensitivity analysis over all 148 units cannot be formed.
- Future research direction: Limitations explicitly states that human-supervision studies with a distinct evaluation target should be conducted.
- Sample transfer: Limitations notes that the non-random 37-task Python SWE-bench Verified sample underrepresents difficult issues relative to the 76-task list; the hardest category accounts for 10.8% of the main sample versus 25.0% of the 76-task list (Appendix A.4).
- Reproduction and release boundaries: Limitations notes that the original v3.0 source revision is unavailable; release of full reports and execution text, especially private reasoning, requires separate review. Appendix A.10 states that Tpublic from the public text benchmark is not the original Tfull, and new evaluations must be reported separately from the historical 40.7-point result.
Scope of experimental coverage
- Execution coverage: The main measurement is 37 HY4-preview trajectories; cross-harness is 36 trajectories from Claude Code, Pi, and DSH on 12 shared issues, and cross-executor is 12 trajectories each for HY4-preview and DeepSeek-v4-flash on a fixed DSH (Table 4, Appendix L).
- Task outcome coverage: All 37 main-sample runs have k4 hidden-test status, with 30 fixed and 7 not fixed; the cross-executor analysis does not compare downstream issue-resolution outcomes (Appendix A.5, L.2).
- Human evidence coverage: The mention/sufficiency audit has n=195, and the two-person answer audit covers 360 non-forced probes and 810 answers; decision relevance is labeled by HY4-preview and DeepSeek, and Appendix C states that independent human relevance verification remains incomplete.
- Intervention coverage: E2 covers 129 observed paired units; the simulated supervision matched-known comparison covers 284 probe-linked units across 72 tasks, the human fact-targeting check covers only 7 instructions, and the behavioral comparison covers only 14 pairs (Appendix H, I).
- Measurement chain coverage: The independent DeepSeek chain reuses the original 37 frozen execution trajectories but builds its own atoms and probes; the fixed-probe judge swap and the four-cell crossover experiment use different samples and protocols and cannot be directly equated with the 4,799-probe main estimate (Appendix K).
Summarize the main content of the paper
CTXGAP establishes report recoverability as a separate evaluation dimension for coding agents and provides cross-view and cross-model evidence.
CTXGAP is a measurement study of coding agent reports: it does not ask whether a task was completed or whether the executor can be queried for an answer, but how much task state already present during execution a supervisor can recover from routine reports alone.
- Measurement design: At four checkpoints in SWE-bench Verified trajectories, state atoms were sampled and probes generated; under the same observation and scoring procedure, cumulative reports U, terminal scrollback V and the full execution context Tfull were compared, with sampling weights corrected by state category.
- Main results: On 37 tasks and 4,799 valid probes, Acc(U)=52.0% and Acc(Tfull)=92.7%, with Gapview of 40.7 points [37.3,43.8]; an executor-isolated fork answering on demand scored 93.6%, but this metric serves only as an auxiliary diagnostic (Table 1, 5).
- Gap after success: The 30 tasks judged fixed by hidden tests still showed a 34.8-point gap [28.2,41.3] at the final checkpoint, with positive gaps on 28/30 tasks (Table 10).
- Information content: In a two-person audit of 195 atoms, "mentioned but insufficient evidence" accounted for 55.4% and 59.2% of weighted gap mass; the common subset marked supervision-relevant by the models retained a 36.1-point gap (Table 22, 24).
- Visibility and rewriting: Full terminal scrollback recovered 73.6%, still below full context; in equal-total-length E2, natural and targeted full-context rewrites were 8.29 and 8.50 points higher than the original reports respectively, but the difference between the two was +0.20 points with an interval containing zero (Table 13, 39).
- Robustness and boundaries: Three harnesses showed gaps of .390–.490 on 12 shared issues, and the independent DeepSeek measurement chain showed 39.8 points [34.8,45.6] on the original 37 trajectories. The authors accordingly argue for evaluating report recovery rate alongside task success, while explicitly noting that main-chain model dependence, the non-random sample and the offline intervention endpoint limit the scope of the conclusions.