AI NewsProductivityAnnouncement

Microsoft tested AI coding agents against three contradictory doc pages

Waldek Mastykarz at Microsoft ran about 140 agent runs through three real Dev Proxy doc contradictions. Token use rose up to 38 percent when agents had to recover.

AI News

Editorial3 min read

LinkedInX

Why it mattersA team that writes product docs for AI coding agents pays for every contradiction twice. Once in extra tokens, and once in silent failures that reach production.

A team pointing a coding agent at its product docs has a question nobody had measured: do contradictions in those docs cost anything, and if so how much. Microsoft's developer blog has an answer.

Waldek Mastykarz is a Principal Developer Advocate at Microsoft. He ran three AI coding agents through three real contradictions pulled from Dev Proxy's own documentation. The models were Claude Sonnet 5.5, Claude Haiku 5.5 and GPT-6.1 Terra. About 140 agent runs in total. Dev Proxy's own MockResponsePlugin served the outdated pages at their real URLs. The agent could not tell them apart from a live site.

The three contradictions

Each one is the kind of mistake any mature product has sitting in its docs. Microsoft ran a consistency tool over 193 pages of Dev Proxy docs and it flagged 3,827 facts and 79 contradictions. Mastykarz picked three for the study.

The first was an outdated API endpoint. A CI and CD page documented /proxy/record and /proxy/stop. The Proxy API reference documented POST /proxy and POST /proxy/stopproxy. The second was a rate parameter. One page put it at the top level of the config. Another page nested it inside a plugin section. The third was a version string. The CI page showed version: 0.29.2, which ran but did nothing. The current prefix is v4.0.0. A missing prefix fails silently.

What each model did

Claude Sonnet 5.5 followed the outdated endpoints in 10 of 15 runs. Eight of those produced 404 errors. Every run recovered in the end. The token bill rose from 1.16 million to 1.60 million tokens. That is a 38 percent increase, with a median of 12 extra steps. In all 15 runs the model noticed the contradiction. It still picked the wrong value in 67 percent of them.

Claude Haiku 5.5 dropped the version prefix in 3 of 12 runs that saw the outdated docs. It made no such error on the 5 runs that saw the corrected docs. GPT-6.1 Terra was different. Microsoft reports it checked a second source, the CLI output or the API reference, before writing any code. It never followed an outdated statement across any of the scenarios.

What to do about it

Mastykarz writes that "inconsistent docs do hurt AI coding agents". In his runs the harm was mostly extra tokens and extra steps. The harm has a shape worth naming. An agent that hits an error can usually recover, at a cost. An agent that writes a value which does nothing cannot recover. The missing version prefix is the dangerous case because CI did not fail on it. The pipeline ran. Nothing happened. A reviewer who skims the diff sees a version field and moves on.

A product team can run a consistency check over its own docs this quarter. Then sort the contradictions by failure mode. The ones where an agent will see an error are a token problem. The ones where the wrong value runs quietly are a release problem. Fix the quiet ones first.

A longer fix is product-shaped. Mastykarz recommends treating CLI commands, default configs and other outputs an agent can read as a second source of truth. An agent that disagrees with a page can then check the live tool. GPT-6.1 Terra did that on its own, and avoided every contradiction.

Source

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project