TraceWitness checks agent reasoning against the actual run
TraceWitness checks reconstructed reasoning against the actual agent run, finding fluent accounts can recover few original steps. See how the test works.
Source: Grafy Research LabQi Wang, Han Zheng, Chengcheng Wan and YuYang Zhao have presented TraceWitness, a benchmark and evaluation framework that checks whether a reconstructed chain of thought matches the specific tool-using run it claims to explain. The paper matters because, according to the authors, a fluent retrospective account can resemble the original reasoning in wording while misrepresenting what an agent did, saw, or knew before it acted.
Existing checks, the authors argue, usually examine reasoning quality, semantic similarity, or executed trajectories in isolation. TraceWitness instead binds each reconstruction to one designated execution and asks whether its steps, tool facts, and timing match evidence from that run.
What problem does TraceWitness address?
A completed run produces a public answer and interaction log, but access to native chain-of-thought reasoning varies across models and APIs, according to the paper. Post-hoc reconstruction methods create retrospective accounts for inspection and student training, yet those accounts are not necessarily the reasoning that produced the original actions.
The authors identify three challenges. First, different runs can reach the same answer through different tool calls, so a reconstruction may attribute observations from another run. Second, without native chain of thought, several explanations can fit the same logged action even though logs limit what was observable beforehand. Third, a plausible account can fabricate a check or cite a tool result before it arrived, which surface similarity and fact counting may miss.
Existing evaluations cover complementary facets rather than joint alignment on a single run, the paper notes.
How does the two-track evaluation work?
Each TraceWitness instance pairs a candidate reconstruction with a target run and records its construction protocol, according to the authors.
When native chain of thought is present, the native-reference track measures recovery of annotated reasoning steps. When native reasoning is unavailable and only observable execution logs exist, the observable track tests whether decision explanations connect each action to evidence available beforehand. Both tracks evaluate tool-fact coverage, tool-evidence precision, and critical errors.
A deterministic verifier checks verbatim quotations, event references or anchors, and event ordering. Figure 2 shows the evaluator pipeline, from frozen evidence through review against the same execution to scoring and audit.
Matched and crossed executions test that binding: a reconstruction is scored against its own execution and a different one, and the gaps should favour the matched pairing:
Larger positive gaps indicate stronger discrimination of the true execution, according to the paper.
What did the authors find when methods moved to tool-using tasks?
Across non-agentic question-answering tasks without external tools, the authors report that reconstruction methods achieve relatively close scores. Once tasks shift to multi-turn tool-using execution, gaps widen markedly and semantic resemblance diverges from execution fidelity.
Across seven methods evaluated on multiple benchmarks, six produced scorable reconstructions, while one could not be reproduced on current models because of time-sensitive applicability, according to the abstract. The contrast is sharpest in the Web-Bench result highlighted by the authors: Trace Inversion reaches 71.75 out of 100 in semantic similarity to native chain of thought, yet recovers only 16.21% of annotated steps on average.
A reconstruction can therefore sound close to the reference while missing most annotated steps. For inspection or student training, semantic resemblance alone is not a reliable proxy for explaining the run that actually happened, the authors' results suggest.
What data and evaluator did the authors release?
The authors state that they release the TraceWitness dataset on Hugging Face and make the evaluator available through a GitHub repository. It links executions, reconstructed traces, scoring criteria, and cited evidence for evidence-alignment work and judge training and evaluation, the authors say.
The engineering evaluation spans Web-Bench and MiniApp-Bench across four model settings. DeepSeek-v4.1-flash-1017 and Claude-Opus-5.5 share 100 planned Web-Bench tasks from 48 projects, Kimi-K3.1-Pro evaluates six methods on 50 Web-Bench tasks for 300 method-task instances, and GPT-6.2-Astra evaluates RECAST and Global CoT on 100 MiniApp-Bench tasks.
The non-engineering evaluation tests six methods on DeepSeek across 500 tasks from 10 datasets and nine domains, for 3,000 instances. Across all five cohorts, the paper reports 4,300 planned instances yielding 4,010 reconstructions and 3,914 complete quality scores across 13 core metrics covering reasoning alignment, execution evidence, semantic correspondence, and relative trace length.
For the non-engineering portion, the dataset includes 42,556 fine-grained annotations: 17,233 native-step labels, 22,410 directional semantic metric scores counting both presentation orders separately, and 2,913 candidate-level judgments.
How could readers apply these checks in Grafy?
TraceWitness is the authors' benchmark and evaluator, not a Grafy feature. Readers can explore the same question in Grafy by separating a run's log from any later explanation of that run.
For example, a reader could run a web task with Grafy Operator, save the log, and ask several models in Grafy Chat to reconstruct reasoning from the final answer and log. Comparing them side by side helps spot unsupported tool facts, quotations absent from the log, or explanations using evidence that arrived after the action.
Grafy Graph can keep branching prompts, outputs, and model history for such a comparison in one place, while Grafy Reader can be used to read the paper alongside logs and reconstructions. The useful habit from TraceWitness is to freeze the evidence first, then judge every explanation against that same execution.
Frequently asked questions
What is TraceWitness?
TraceWitness is a benchmark and evaluation framework from Wang, Zheng, Wan and Zhao for checking reconstructed chains of thought against a designated agent execution. It pairs each reconstruction with its target run and scores native-step recovery or alignment with pre-action evidence, alongside tool-fact coverage, tool-evidence precision, and critical errors.
How does TraceWitness differ from semantic similarity alone?
Semantic similarity can be high even when annotated steps are missing, as the authors report for Trace Inversion on Web-Bench. TraceWitness adds execution-grounded checks for recovered steps, tool facts, evidence precision, critical errors, verbatim quotations, event references, and event order, so a plausible account is tested against what happened in that run.
Can TraceWitness be used when native chain of thought is unavailable?
Yes. When native chain of thought is unavailable, the observable track uses execution logs instead. It tests whether the reconstruction explains logged decisions using evidence available before each action, and both tracks still evaluate tool-fact coverage, tool-evidence precision, and critical errors with a deterministic verifier for quotations, references, and order.
Source: Grafy Research Lab — TraceWitness: Evidence-Grounded Evaluation of Chain-of-Thought Reconstructions


