Google Reports Unprompted Detours to TODO Bug References Added 70% More Steps and 77% More Tokens per Session in Its Agent Traces
Google's developer blog says agents ignored inline TODO bug references in 94% of encounters, and that unprompted detours to them added 70% more steps per session.
Editor's Note ·
- Clarification:
- The article says 83% of the actions that targeted a bug ID were unprompted. The Google post's wording is "Over 4 in 5 of those actions (83% sessions)", so it describes the same 83% as actions and, in its parenthetical, as sessions; neither the post nor InfoQ clarifies which unit is meant.
- Clarification:
- The article says unprompted detours made "the affected sessions" longer and costlier, with 70% more steps, 77% more tokens and 105% more wait time. The Google post says only "Per session" and does not state what these increases are measured against (for example, sessions without such a detour); the article notes the missing baseline counts but not this missing comparison group.
Overview
A Google Developers Blog post dated November 6, 2026 reports that AI coding agents sometimes act on inline TODO(bug/...) comments in the code they read, including some tied to bugs that are already closed, and that unprompted detours of this kind made the affected sessions longer and costlier. The post is by Sam Saccone, a senior staff software engineer, and Madhuri Garikapati, a senior staff data scientist. It frames the problem this way: “What is easy for humans to skim past in code, agents see as a call to action.” InfoQ reported on the post on November 10, 2026. Every figure below is Google’s, drawn from its own traces; neither cited source names the agent or the model involved.
How Google measured it
The authors say inline TODO(bug/...) comments “provide the perfect proxy” for stale context, because TODOs “tend to be left behind long after the underlying bug is resolved or abandoned”, while the linked ticket is the canonical record. By cross-referencing each TODO an agent encountered against the bug’s status and the user’s prompt, they separated work the developer wanted from detours. The post says the data came from distributed traces of agent interactions across thousands of engineers and over hundreds of millions of individual agent steps.
What the traces showed
According to the Google post:
- 13% of file-reading sessions exposed the agent to an inline
TODO(bug/...)orFIXME(bug/...)reference. - Agents ignored the comment in 94% of encounters. In 6% they took action targeting that bug ID, and 83% of those actions were unprompted, meaning the developer had not asked for the bug.
- Of the unprompted detours, 41% chased tickets that were already closed (32% fixed or verified, 9% obsolete or won’t-fix), and a further 2% hit duplicate or restricted tickets. In 57% the bug was still open; in those cases the agent only looked the issue up in 61% and edited code in 39%.
InfoQ describes the same data as approximately 13% of sessions exposing agents to the references, “leading agents to take action targeting the reference bug in 6% of those cases”. The post gives the 94% as a share of “encounters”. Neither source reconciles the two units, and nor does the Herald.
What the detours cost
The authors controlled for developer, codebase complexity, task type, model tier, number of files read, initial prompt length and the step where the bug reference appeared, using a multi-way fixed-effects regression with developer-clustered standard errors. Per session, they report, unprompted bug detours added 70% more steps, 77% more tokens and 105% more wait time, all with p<0.0001 (Google; InfoQ repeats the three percentages). The post gives two example trajectories. In one, an agent investigating an unrelated bug opened SurfaceControlTest.java, saw a reference to a bug that was fixed in 2023, and dug into it. In the other, an agent changed ModelDownloaderV1 code and the human later challenged the scope creep. The authors call both “only trivial to minor detours”.
What Google did about it
The company built agents that scan its codebases for bug references marked fixed or obsolete. Because that was not enough to show a TODO was not load-bearing, the post says the agents also read the history of the bug, the file and related changes, at times spanning years, and sent a deletion for review only when they confirmed that both the TODO and its intent were obsolete. Over the last six months, Google says, this “todo cleaner” removed thousands of obsolete references, with human-reviewer acceptance “exceeding 95%”. The authors point to presubmit analyzers, whole-corpus scanners and automated coding agents as ways to clear such references. InfoQ relays a social-media reaction from a user named Tulasiram, who called the result “a useful reminder that comments are context too”.
What the sources do not say
Among the two cited sources, neither gives the baseline step, token or time counts behind the percentage increases, names the agent product or model, or reports a measurement from outside Google. The measurement covers only TODO and FIXME bug references, although the post also names outdated specs and lagging documentation as part of the problem. InfoQ is an independent outlet but its report restates the post. The Herald did not test any agent.