Microsoft tests coding agents on API styles
Docs, not REST, decided success
Research
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.”
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.”
“Agents that checked a second source before writing code weren't misled at all.”
Sponsor
Spot an error? Email corrections@aicodingnews.si. Fixes are logged on the corrections page.
Sponsor
Sponsor
Docs, not REST, decided success
An independent tracker of reward hacking
Agents control part of the lab's compute
An update to AI's time horizon graph
Sponsor
Sponsor