A colorful developer workstation displays code, AI-assisted editing, and software test results across two monitors.
Every developer knows the silent betrayal of stale documentation. You follow a quickstart guide step by step, paste a command into Windows Terminal, hit Enter, and watch your screen light up with an error that makes you question your career choices. Usually, the reference manual was updated three releases ago while the tutorial page stayed frozen in amber. Now that AI coding agents are reading those exact same Microsoft Learn pages inside Visual Studio Code, a natural question arises for engineering teams and toolmakers alike: do contradictory docs actually trip up AI agents, or are modern models smart enough to sort out the mess?

According to controlled testing published on Microsoft Developer Blogs on November 25, 2026, by Microsoft Principal Developer Advocate Waldek Mastykarz, inconsistent documentation does hurt AI coding agents—just not always in the way you might expect. Across roughly 140 controlled agent runs examining three real-world contradictions from Microsoft’s open-source Dev Proxy documentation, agents frequently noticed that two pages disagreed and still followed the outdated instructions anyway. When an error broke loudly right in front of the agent, it recovered—at a steep cost in extra tokens and execution steps. When an error stayed silent until a CI/CD pipeline ran remotely, an agent could hand back a broken configuration and cheerfully declare the job done.

A colorful developer workstation displays code, AI-assisted editing, and software test results across two monitors. Inside Microsoft’s Agent Experiment on Windows​

To move past anecdotes, Mastykarz needed real contradictions with verifiable ground truth rather than contrived synthetic puzzles. Dev Proxy—an API simulator developers use to mock responses and test app resilience—proved an ideal testbed because it raced from version 0.29 to version 4.0 in roughly a year and a half, leaving a trail of legacy snippets behind fast-moving features.

Before running the agent trials, an automated consistency audit of Dev Proxy’s documentation on Microsoft Learn scanned 193 pages, extracted 3,827 individual facts, and flagged 79 contradictions against the actual codebase. Because most of those bugs were subsequently patched, the team had clean "before and after" pairs for identical documentation URLs.

The test environment mirrored a typical Windows developer workstation rather than an artificial sandbox:

  • Client and Agent: Visual Studio Code running GitHub Copilot Chat with zero extra extensions and no custom instructions.
  • Local Environment: Windows machines with Dev Proxy v4.0.0 installed normally, without placing documentation files inside the project workspace.
  • Models Tested: Claude Sonnet 5.5, Claude Haiku 5.5, and GPT-6.1 Terra, evaluated across up to 15 runs per page version for each contradiction.
  • Traffic Interception: Using Dev Proxy’s own MockResponsePlugin in front of VS Code—a pre-release testing technique Mastykarz and Senior Developer Advocate Garry Trinder previously detailed in July 2026—the setup served either the fixed Microsoft Learn page or the exact same live page with only the single outdated statement restored.

Crucially, every prompt included a direct link to the target documentation page. In preliminary runs without links, agents rarely stumbled onto the flawed pages at all, preferring instead to query devproxy --help or inspect locally installed files, while guessed Learn URLs frequently hit 404 errors. Linking the page isolated content effects (what happens when an agent reads a contradiction) from documentation discovery (whether an agent finds the page on its own).

Section Summary​

Microsoft evaluated GitHub Copilot Chat in VS Code on Windows against live versus pre-fix Microsoft Learn pages using Dev Proxy v4.0.0. By swapping only one contradictory statement per page across ~140 runs, the experiment isolated how three frontier models behave when official documentation disagrees with itself.


Case 1: Loud Failures Burn Tokens and Steps​

The sharpest measurable penalty appeared when a documentation mismatch caused an immediate, visible error. When Dev Proxy’s control API evolved, its Proxy API reference was updated, but the CI/CD overview how-to page continued listing obsolete endpoints (/proxy/record and /proxy/stop). Today’s corrected Microsoft Learn CI/CD and API documentation specifies bearer-token authentication alongside POST /proxy (passing {"recording": true} or {"recording": false}) to manage recording and POST /proxy/stopproxy to shut down the proxy.

In the experiment, agents were asked to create a CI script that starts Dev Proxy, toggles recording, executes npm start -- microsoft, stops recording, shuts down the proxy, and verifies that the script works. An agent copying the stale CI/CD page hits an immediate 404 on execution.

ModelOutdated Endpoints (Old Page)Outdated Endpoints (Fixed Page)Median Tokens (Old Page)Median Tokens (Fixed Page)
Claude Sonnet 5.510 / 150 / 151.60M1.16M
Claude Haiku 5.55 / 140 / 142.16M2.55M
GPT-6.1 Terra0 / 150 / 151.00M0.91M

The numbers reveal a striking behavioral divide across models:

  • Claude Sonnet 5.5 wrote first and paid later: On the outdated page, Sonnet acknowledged the contradiction in all 15 runs—yet still wrote the obsolete endpoints in 10 of them. Eight of those runs crashed into a 404 during verification, and while every single run eventually fixed the script, the detour inflated median token consumption by 38% (from 1.16 million to 1.60 million tokens) and added 12 steps to the median run. Recovery alone consumed a median of 19 steps and 0.66 million tokens—roughly 40% of the entire session. Even the five Sonnet runs that avoided writing bad endpoints burned a median 1.53 million tokens untangling which page to trust.
  • Claude Haiku 5.5 recovered noisily: Haiku fell for the stale endpoints in 5 of 14 runs and successfully repaired each one after hitting the 404. Because Haiku’s token usage swung wildly between 1.2 million and 3.8 million tokens regardless of page version, the recovery overhead blended into its normal variance.
  • GPT-6.1 Terra verified before typing: Terra never wrote an outdated endpoint on either version. Within its first few actions in all 15 old-page runs, it opened the Proxy API reference and executed devproxy api show, the built-in CLI command that prints the local instance’s exact base URL, authentication rules, and active REST endpoints.

Section Summary​

When stale endpoints triggered an immediate 404 and the prompt required verification, every tested model eventually produced a working script. However, models that trusted the linked how-to page before checking a second source paid a heavy toll—driving a 38% median token increase for Claude Sonnet 5.5.


Case 2 & Case 3: When Mistakes Hide Until Production or CI​

If a 404 error acts as a noisy smoke alarm, configuration typos and CI syntax mismatches are carbon monoxide: completely silent until something breaks downstream.

The Misplaced Failure Rate​

Dev Proxy simulates unreliable APIs using GenericRandomErrorPlugin, where the rate property sets the percentage of requests to fail (defaulting to 50%). Microsoft Learn’s current plugin reference and failure-rate guide confirm that rate must sit inside the genericRandomErrorPlugin configuration object (or be supplied via -f / --failure-rate). Before the fix, a general configuration page showed "rate": 80 at the top level of devproxyrc.json, which Dev Proxy silently ignores while falling back to its 50% default.

Surprisingly, neither Claude Sonnet 5.5 (8/8 runs) nor GPT-6.1 Terra (10/10 runs) took the bait. Every Sonnet run inspected a second source before generating JSON—three checked the default devproxyrc.json shipped in Dev Proxy’s installation folder, and five read the plugin reference. Because the product’s own local files demonstrated the right schema, the bad doc sample was neutralized.

The Missing v in GitHub Actions​

The third test hit closer to a real-world DevOps headache. Dev Proxy’s dev-proxy-tools/actions/setup@v1 GitHub Action accepts a version input that Microsoft Learn explicitly warns must match a release tag including the v prefix, such as v3.3.1. An older version of that page showed version: 0.29.2 without the v.

Because an AI agent editing a repository on Windows cannot execute a GitHub Actions workflow locally, omitting the v passes every local check and only explodes in GitHub CI with a 404 download failure. Claude Sonnet 5.5 checked the action’s setup/action.yml metadata or release tags in all four test runs and correctly pinned v4.0.0. Moving to Claude Haiku 5.5, however, exposed the danger of deferred failures:

  • With the outdated page, 3 of 12 Haiku runs dropped the prefix—writing version: 4.0.0—and confidently told the user the workflow was finished.
  • With the fixed page, 0 of 5 Haiku runs omitted the prefix.

Mastykarz appropriately notes that with a small sample (3 out of 12 versus 0 out of 5), luck cannot be ruled out. Still, the structural lesson stands: recovery depends heavily on whether the task environment lets the agent trip over its own mistake locally.

Section Summary​

Silent configuration errors were thwarted whenever models inspected locally installed defaults or upstream action manifests. When errors could not be executed locally—as in remote GitHub Actions workflows—a smaller model like Claude Haiku 5.5 occasionally shipped broken YAML as complete.


Why "Check Twice" Separates Resilient Agents from Expensive Ones​

Tracing the tool calls before any code hit disk explains almost everything about the results. On the outdated CI/CD API task:

  • GPT-6.1 Terra read the Proxy API reference in 15/15 runs and ran devproxy api show in 15/15 runs before writing code.
  • Claude Haiku 5.5 read the reference in 11/14 runs and ran devproxy api show in 4/14 runs.
  • Claude Sonnet 5.5 read the reference before coding in 7/15 runs and ran devproxy api show in just 2/15 runs. In all 8 runs where Sonnet wrote the script before opening the reference, it wrote the obsolete endpoints.

Even when an outdated how-to page contains a hyperlink to the authoritative API reference, that link only protects an agent that follows it before generating code. Notably, none of the agents dug into Dev Proxy’s C# source code or JSON schema files; they relied strictly on sibling docs, CLI introspection (devproxy api show), installed default configs, and GitHub Action metadata. If an agent encounters a fact that exists only in documentation with no local CLI or config truth to cross-check, any model becomes vulnerable.

Industry-wide, this lines up with what engineering teams are discovering as Agent Experience (AX) matures alongside Developer Experience (DX). Models exhibit different "tool-use personalities"—some verify environment state aggressively, while others optimize for fast initial generation and lean on iterative debugging loops.

Section Summary​

Cross-referencing a second source before writing code eliminated documentation traps across all three tasks. Agents relied on sibling documentation, CLI help/inspection commands, and installed defaults rather than reading source code.


Actionable Playbook for Docs Teams, DevOps, and Windows Developers​

Whether you maintain public developer documentation, build internal platform tooling, or simply rely on GitHub Copilot Chat to scaffold Windows scripts and CI pipelines, these findings translate directly into practical guardrails.

For Documentation and Product Maintainers​

  1. Hunt down every stale sample, not just the reference: Updating an API reference page isn't enough when tutorials, quickstarts, and code snippets keep old syntax alive. Whenever an endpoint, config key, or tag convention changes, grep the entire docs repo for the deprecated pattern.
  2. Triage silent and remote failures first: Prioritize fixing contradictions that fail quietly (ignored JSON properties) or remotely (CI/CD YAML, cloud templates), especially where the product provides no local CLI check.
  3. Make the installed product a source of truth: Commands like devproxy api show, --help, strict schema validation, and well-commented default config files act as a safety net when online docs drift. Never let CLI defaults or action.yml examples contradict your docs.
  4. Automate consistency audits with an agent: Mastykarz shared the exact five-step prompt used to uncover all 79 inconsistencies in Dev Proxy’s 193 Learn pages: instruct an agent to read every markdown file, inventory every fact with source citations, flag contradictions with page fragments, verify findings against the product source repo (accounting for stable docs versus beta code), and output a filterable HTML report.
  5. Audit your evals carefully: Separate content evaluations (linking a page in the prompt) from discovery evaluations (letting the agent search). Furthermore, inspect run traces and final artifacts rather than relying blindly on an LLM judge—Microsoft noted its automated judge falsely failed runs that successfully recovered from a 404 and produced valid final configs.

For Developers Using AI Coding Agents​

  • Demand local verification—and know its limits: Asking an agent to "make sure the script works" forced recovery on local API scripts, but could not catch a remote GitHub Actions bug. For CI/CD files, explicitly instruct your agent to inspect the target action’s action.yml or latest release tags before finalizing YAML.
  • Point agents at local CLI truth: In Copilot Chat or custom workspace instructions, remind agents to run --help or product inspection commands (such as devproxy api show) and read locally installed default configs rather than trusting a single web tutorial.

What Remains Unanswered​

As Mastykarz outlines for future testing, this study intentionally left key variables on the table: how often agents hit stale pages without a prompt link, what happens when prompts omit "make sure it works," whether subagent-summarized doc fetching (like Claude Code’s approach) masks contradictions, and how badly agents fail when no second source exists anywhere in the product.

Even with those caveats, the takeaway for IT leaders and developers is clear. Inconsistent documentation is no longer just a minor annoyance that wastes five minutes of a human engineer’s afternoon. In an era of token-metered coding agents, every stale tutorial page acts as a quiet tax on inference budgets—and occasionally, a silent landmine waiting in your next CI build.

 

References

  1. Do inconsistent docs hurt AI coding agents? Microsoft Developer Blogs 2026-11-25T11:46:06+00:00
  2. microsoft.com developer.microsoft.com
  3. Use Dev Proxy in CI/CD scenarios - Dev Proxy | Microsoft Learn learn.microsoft.com