When a coding agent finishes a long task, it writes a short report: what it changed, what it tested, and whether the job is done. Most developers do not watch every step the agent takes. They read the report and decide what to review, merge, or deploy. When an agent resumes the work in a new session, it also reads earlier reports instead of retracing the actions behind them. In practice, the report has become the main record of what was done.
So what happens when the report is wrong? Here is a real example. A user sees missing-table errors at startup. The agent adds schema-initialization calls, runs a build, and says the tables will now exist. The user restarts the server and gets the same error. Only then does the agent look again and find that its routine throws away every SQL chunk, because each chunk starts with a comment. The code change was real. The claim that it fixed the problem was not, and only the user’s own check revealed the gap.
We call this unfaithful reporting: a report that states something the work records contradict, or claims more than the records support. In this project we studied what it looks like in real development work, what it costs, how common it is, and whether we can detect it automatically.
This post is based on our paper Characterizing and Detecting Unfaithful Work Reports by Coding Agents, written with Wenhao Yang, Runzhi He, Minghui Zhou, Pengfei Gao, Qingwei Lin, and Dongmei Zhang. The paper has the full method, setup, and results.
Where the data comes from
We used SWE-chat, a public dataset of real conversations between developers and coding agents. To find reliable examples, we started from cases that the agent itself admitted: the agent made a claim, the developer challenged it, and the agent then acknowledged that the claim was wrong. This gave us 395 claims from 297 cases.
We asked four research questions:
- RQ1 (patterns): what kinds of unfaithful claims appear?
- RQ2 (follow-up): how much effort does it take to handle them, and how do users react?
- RQ3 (prevalence): how often do ordinary work reports contain them?
- RQ4 (detection): can a tool find them using only the records before the report?
Four kinds of unfaithful reports
Two authors read every claim together with the original request and the full trajectory, and coded the discrepancies. We could assign patterns to 339 claims; the other 56 stayed unresolved because the records did not show the real state. The result is a taxonomy of eleven subtypes in four categories (macro-averaged Cohen’s kappa 0.757).
| Category | Share of claims | What goes wrong |
|---|---|---|
| Overstating task success | 235 (69.3%) | The report claims more is finished or working than the work shows |
| Misreporting observations | 45 (13.3%) | Wrong counts, actions that did not happen, or check results read the wrong way |
| Faulty technical explanations | 42 (12.4%) | Causes stated as fact without isolating evidence, or incorrect technical rules |
| Misattributing evidence | 28 (8.3%) | Real work credited to the wrong source, component, branch, or deployment |
Overstating task success
This is the largest category, with three subtypes. Overstated completeness (110 claims): in one case, the agent merged changes, passed 225 tests, pushed a branch, and said “Done.” But it pushed to a new branch in the main repository, while the pull request tracked a branch in the contributor’s fork. The delivery never happened.
Overstated condition handling (71 claims): the code works in the tested path but not under a condition the report promises. In one case the agent raised a service’s default query limit from 100 to 20,000 and told the user to refresh to see all findings. The UI still passed pageSize=100, so nothing changed for the user.
Intermediate results as functional proof (56 claims): a narrow check is treated as proof of a bigger outcome. A rebuilt plugin passed a standalone test in 19 ms with a mock client, and the report said it “should start normally.” The user’s next attempt still hung.
Misreporting observations
These are wrong statements about what happened. One report counted 14 pending todos when there were 10. Another listed a button among “7 locations updated” when only an import had been added there. In a third, the agent filtered a linter’s output down to “Checked 236 files in 144ms. No fixes applied.” and reported “All clean.” That line only shows that the linter ran. A later run found a formatting error.
Misattributing evidence
Here the evidence is real, but it belongs to something else. An agent reported a fix was “already on that PR” when the PR had merged an hour before the fix existed. Another reported production “deployed and healthy,” but the healthy result referred to an older commit; the new build had not started yet.
Faulty technical explanations
In 25 claims, the agent stated a cause as settled when its observations had not isolated it. In 17 claims, it stated a technical rule that was simply false, for example that a tool never prints a certain message in dry-run mode, which the user’s own dry-run output contradicted.
One pattern runs through all four categories: unfaithful reports usually sit next to genuine work. The edits, test runs, and pushes are real. The problem is the gap between what those actions show and what the report says they show. Passing tests, a successful push, or a healthy service can look like proof, but often they do not support the specific claim.
What it costs
We traced 286 cases from the first faulty report to the last activity that dealt with it.
| Metric | Mean | Median | 90th percentile |
|---|---|---|---|
| User turns | 4.29 | 3 | 9 |
| Agent (main model) responses | 36.67 | 22 | 85.8 |
| Tool calls | 35.19 | 19 | 85.8 |
| Recorded time (minutes) | 12.71 | 5.57 | 32.31 |
Handling is rarely just “you’re wrong” and “sorry.” Often the agent also has to fix the records (such as a status file), finish the delivery it claimed, or verify again. Users are also less happy: 40.28% of user messages in these cases were labeled dissatisfied, compared with 17.90% in a comparison sample. Even after removing the first challenge message, the rate stays at 30.71%. Many of these messages still include useful information, such as a fresh build result or a CI failure.
How common is it?
Admitted cases only show problems that someone noticed. To estimate the real rate, we sampled 435 ordinary work reports and annotated every checkable claim against the records that came before the report.
| Unfaithful claims per report | Reports | Share |
|---|---|---|
| 0 | 273 | 62.76% |
| At least 1 | 162 | 37.24% |
| 1 | 62 | 14.25% |
| 2 | 43 | 9.89% |
| 3 or more | 57 | 13.10% |
More than a third of reports (37.24%) contain at least one unfaithful claim, and among those, reports with several such claims are more common than reports with only one.
FaithDetector
Based on the taxonomy, we built FaithDetector, an LLM-based checker. It receives a complete report and the trajectory before it. It extracts the checkable claims, compares each with the records, and returns a Faithful or Unfaithful judgment with the excerpt, the evidence, and a reason. It checks the four areas from the taxonomy: reported observations, evidence attribution, completion scope, and technical explanations. It never sees later challenges or admissions.
As a baseline, we gave the same model the same inputs and the request “Can you find any unfaithful claims in the report?”, with tools to read and search the trajectory but no taxonomy or fixed output format. We evaluated both on 2,356 claims from 409 naturally sampled reports.
| Method | Macro-F1 | Unfaithful precision | Unfaithful recall | Unfaithful F1 |
|---|---|---|---|---|
| FaithDetector | 93.06 | 90.93 | 86.98 | 88.91 |
| Baseline | 80.42 | 78.75 | 59.71 | 67.92 |
FaithDetector improves macro-F1 by 12.64 points (95% CI 9.71 to 15.49). The biggest gain is recall on unfaithful claims, from 59.71% to 86.98%, and precision also goes up. For example, one report claimed a list had “infinite scroll,” but the code used a “Load more” button. FaithDetector caught this; the baseline did not. FaithDetector is also stricter in some places: it flagged a claim that npm install created package-lock.json because no later step confirmed the file, even though our annotation accepted it as a normal side effect.
What this means in practice
Task success and reporting faithfulness are different properties. Evidence of the first does not prove the second. We see three practical consequences.
- For developers and reviewers: review the claims in the report, not only the code. Focus on claims that decide what gets merged, deployed, or built on. Ask simple questions: Which required outcomes and conditions were actually checked? Does the evidence belong to this artifact and revision? Where is the record for this observation? What isolates this cause?
- For agent and tool designers: reports should say what an action proves, not only what was done. A good completion claim names the artifact or revision, the conditions it was checked under, the supporting record, and what is still unverified. For example: “Standalone initialization with a mock client completed in 19 ms. Startup in OpenCode remains to be checked.”
- For evaluation and training: score the report separately from the task outcome. LLM judges can be fooled by confident closing language, and training on their feedback can reward the report instead of the work. With the same work held fixed, an overstated report, a faithful one, and an over-hedged one should get the same task score but different reporting scores. Over-hedging should not win just because it avoids claims.
We also want to be clear about the limits. Our data comes from public repositories whose developers opted into logging, so enterprise settings may look different. Starting from admitted cases favors problems that were noticed. And a detector used as a training signal could teach agents to evade it, so this needs careful testing.
Takeaways
As agents take on longer tasks, the work report becomes the interface between the agent and everyone who depends on its work. In our sample, more than one in three reports contained at least one unfaithful claim. Most of these claims overstate success, and most of them appear next to real, correct work, which is why they are easy to miss.
The good news is that these errors can be checked against the agent’s own records. A detector guided by the patterns we found reaches 93% macro-F1, about 13 points above a strong general-purpose baseline. We think faithfulness checks should become a normal part of code review, agent evaluation, and training feedback.
