TL;DR
As software development accelerates through AI, technical documentation is increasingly left in the dust, leading to "documentation drift" that misleads both humans and LLM agents. This paper introduces a multi-agent system that treats resolved support tickets as a continuous supervision signal to automatically detect, draft, and—after human approval—merge fixes for documentation gaps, significantly improving the accuracy of automated support.
What Problem Does This Paper Address?
In the "AI revolution," code evolves at an unprecedented velocity, but customer-facing documentation rarely keeps pace. This creates a "documentation gap" where stale or missing information becomes a bottleneck. This is particularly problematic because LLMs—which many users now use as their primary interface to services—rely on this documentation as their "ground truth." When the documentation is wrong, the AI agent is confidently wrong.
The authors argue that documentation maintenance shouldn't be a manual, reactive chore. Instead, they frame it as an inference problem. Every time a human support engineer resolves a ticket with information not found in the manual, they have implicitly labeled a documentation gap. The challenge is building a system that can extract these signals from the noise of daily operations and proactively repair the knowledge base.
Methods
The authors deployed a multi-agent system built on a "shadow-mode" triage loop. The architecture (shown in Figure 1) coordinates several specialized agents:
- TriAgent: The first responder that drafts a documentation-grounded answer for every incoming ticket.
- Feedback Loop Agent: Compares the TriAgent’s response to the eventual human resolution. If the human provides a different or more complete answer, this agent isolates the missing knowledge and logs a "gap" in an Improvement Tracker.
- Student & Code-Merge Watcher: Proactive agents that look for gaps before a user even asks. The "Student" generates synthetic probes to test coverage, while the "Watcher" monitors code commits to detect drift at the source.
- Documentator: The "fixer" agent. it drains the Improvement Tracker, researches the codebase, drafts a documentation update, and subjects it to a "self-review" for factual consistency.
Crucially, the system maintains a human-in-the-loop requirement: every AI-generated documentation fix must be approved by a human via a standard code review before being merged.
Datasets
The system was evaluated during a 43-day production pilot at Amazon, specifically targeting a support queue for a large-scale A/B testing service.
- Scale: 499 tickets were triaged during the pilot.
- Evaluation Set: 192 "answered pairs" where both an agent and a human provided substantive responses.
- Judges: A panel of three LLMs from independent model families (to avoid "family bias") was used to grade factual correctness and usefulness.
Key Insights and Ideas
- Tickets as Implicit Supervision: The most powerful idea here is that resolved tickets are "free" training data. The delta between the documentation and the human expert's answer is the exact signal needed to close the gap.
- Complementary Strengths: The study found that agents and humans are complementary. Agents are great at surfacing buried documentation, while humans excel at providing "operational knowledge" (e.g., transient system states or permission issues) that is often missing from formal docs.
- The Self-Improvement Flywheel: By fixing the documentation, the system measurably improves its own future performance. This creates a virtuous cycle where the system gets smarter the more it fails and is corrected.
- Gap Taxonomy: The authors categorized gaps into five types: missing, stale, contradictory, ambiguous, and broken_xref. Interestingly, over 90% of gaps were simply "missing" content rather than outdated info.
Key Results
The pilot demonstrated that the system is both scalable and effective:
- Gap Discovery: The system surfaced 92 documentation gaps over 43 days (see Figure 2).
- Factual Accuracy: 81.1% of the agent's verifiable assertions were confirmed correct by the human resolution.
- Preference: In blinded head-to-head comparisons of length-comparable responses, LLM judges preferred the agent's response 70.5% of the time over the human's (see Table 3).
- Measurable Improvement: When the agent re-answered a ticket after the documentation was fixed, judges preferred the post-repair answer 71.4% of the time.
- Efficiency: While a human response might take hours or days, the agent drafts a candidate fix in under five minutes.
Limitations and Future Work
- Domain Specificity: The pilot was conducted on a single, technically sophisticated service. Whether these heuristics translate to less structured domains remains to be seen.
- Operational Boundary: Currently, the agent can only suggest documentation changes. It cannot perform "tool-use" actions like clearing caches or granting permissions, which are often part of a human's resolution.
- Human Review Bottleneck: While drafting is fast, the paper doesn't quantify the time humans spend reviewing those drafts. If the volume of suggested fixes is too high, it could overwhelm the maintainers.
- Proactive Detection: The "Code-Merge Watcher" recorded zero gaps during the pilot, suggesting that catching drift at the moment of code-merge is significantly harder than catching it via user friction.
Summary updated