ACN · Presented by Levr
ACN WIRE

Research

Microsoft test: stale docs misled coding agents

Claude wrote code for dead endpoints in 10 of 15 runs

Written with AI assistance, reviewed by the ACN desk.

“Inconsistent docs do hurt AI coding agents, and in our runs the harm showed up mostly as extra tokens and steps.”
Waldek Mastykarz, Principal Developer Advocate, Microsoft
0:00 / 0:00

Image: Microsoft for Developers

The quick hit

  • Microsoft has published a test of how contradictory documentation affects AI coding agents.
  • Given an outdated page, Claude Sonnet 5.5 wrote code for dead endpoints in 10 of 15 runs.
  • The test covered 3 contradictions and about 140 agent runs, Microsoft says.

Microsoft has published a test of how contradictory documentation affects AI coding agents. The post on Microsoft’s developer blog, by principal developer advocate Waldek Mastykarz, is dated November 25.

The test used three contradictions from the documentation of Dev Proxy, which is published on Microsoft Learn. A review of 193 pages had found 79 places where two pages disagreed, Mastykarz writes. The team ran about 140 agent runs in VS Code with GitHub Copilot Chat. The models were Claude Sonnet 5.5, Claude Haiku 5.5 and GPT-6.1 Terra. Each run got either a page with the outdated statement or the fixed page.

Results differed by model, according to the post. With the outdated page, Claude Sonnet 5.5 wrote outdated API endpoints in 10 of 15 runs and Claude Haiku 5.5 in 5 of 14. GPT-6.1 Terra wrote them in 0 of 15 runs. Mastykarz writes that GPT-6.1 Terra checked a second source first. When the error produced a visible failure, every agent recovered. The detour added as much as 38% to the tokens used, the post says. “Agents that checked a second source before writing code weren’t misled at all,” Mastykarz writes.

The post lists its limits. Only 3 of the 79 contradictions were tested. Only the outdated endpoints produced a difference too large to be chance, Mastykarz writes. He recommends fixing contradictions even when agents recover from them.

“Inconsistent docs do hurt AI coding agents, and in our runs the harm showed up mostly as extra tokens and steps.”
Waldek Mastykarz, Principal Developer Advocate, Microsoft
“Agents that checked a second source before writing code weren't misled at all.”
Waldek Mastykarz, Principal Developer Advocate, Microsoft

Sponsor

Sources

  1. Microsoft for Developers · Nov 25, 2026

Spot an error? Email corrections@aicodingnews.si. Fixes are logged on the corrections page.

From our sponsors

Sponsor

Sponsor

Also in

Sponsor

Sponsor