Documentation, Knowledge and Onboarding With AI
An assistant can draft a page for every service by Friday, and some of those pages will be quietly wrong by spring unless someone owns them. Documentation stays useful only when each page has an owner, a verified date and an automatic check against the code, and when readers, human or agent, know which pages to trust. A manager who sets that rule turns cheap drafting into knowledge the team can rely on.
After this chapter you can
- Separate reference, how-to, tutorial and explanation pages, and say which kinds an assistant can draft reliably.
- Give each page a named owner, a verified date and a trust tier that readers and agents can see.
- Audit a random sample of pages against the code before approving any AI documentation effort.
- Add automated freshness checks, such as running documented setup commands in a clean environment.
- Treat each point where a newcomer or agent gets stuck as a documentation bug.
Your team can have an assistant write a README for every service before Friday. That is not the hard part. The hard part is what happens in March, when a new engineer follows the setup page, an agent reads the same page to plan a change, and the page describes a database that was replaced in November. The question for this chapter is how to keep team knowledge accurate and useful for people and agents alike.
Level 1’s chapter AI in Knowledge Management made the executive case: knowledge has to move, and someone must say which source may answer and who owns it. This chapter turns that into team practice, for the pages your engineers actually write and read.
What kinds of knowledge the team keeps
“Documentation” bundles several different jobs. Diátaxis, a framework many documentation teams use, separates four needs: tutorials for learning, how-to pages for accomplishing a task, reference for looking up details, and explanation for understanding why1. The split matters to a manager because an assistant does not handle the four equally well, and a team that treats them as one pile ends up trusting the wrong pages.
The last row is the one to protect. Code records what the system does. The reasons it does it, the alternatives rejected and the incident that forced a design are in people’s heads and in old chat threads. An assistant reading the repository can describe the first and will guess at the second, fluently. Decision records, short and owned by the person who made the decision, are the most valuable pages a team writes, and the least suitable for generation.
Living documentation: how the practice works
Pages that decay are usually pages kept outside the code, edited by whoever remembers, and checked by nobody. The remedy that documentation practitioners call docs as code is to write documentation with the same tools as code: version control, plain text, issue trackers, code review and automated tests2. Write the Docs also notes that teams can block a merge when a change arrives without its documentation. With an assistant in the loop, that practice gets cheaper to follow:
The assistant does the part that used to be skipped, writing the first draft of an update at the moment of the change. The owner does the part that cannot be delegated, being accountable for it. The pipeline does the part people forget, testing the page. And the stamp makes the page honest about its age.
Ownership and the rule for trusting a page
Every page needs a named person, not a team alias, because an unowned page has no one who notices when it goes stale. Ownership can cover a set of pages by service, and the manager’s job is to make sure no service is without one.
The second half is a rule for trust, because AI makes it possible to have thousands of pages of uneven standing. Label each page with how it came to be and how far to rely on it. The labels below are a suggested starting set, to adapt to your team:
The practical rule is simple to state. People may read any tier but must see the label. Agents that plan or change code should read the first three tiers by default, and the fourth only when the task says so. When an answer from the knowledge base disagrees with the code, the code wins and the page becomes a bug.
Two findings worth knowing
Two bodies of evidence bear on this, and each cuts in more than one direction.
AI-written context for agents is not a free win
In February 2026, researchers posted a study of repository context files such as AGENTS.md, which tell coding agents about a codebase3. The abstract’s central result is that providing context files does not generally improve task success, while increasing inference cost by over 20 percent on average. The study used two settings: 300 tasks from SWE-bench Lite across 11 Python repositories, with LLM-generated files, and a new set of 138 instances from 12 repositories that already contained developer-committed files.
The details matter for a manager. In the HTML version of the paper, LLM-generated files changed the average resolution rate by minus 0.5 percent on SWE-bench and minus 2 percent on the new set, with no significant effect. Developer-written files improved performance by 2.4 percent on average, which the authors say significantly outperformed the generated ones. Agents took more steps in every setting, 2.45 and 3.92 on average, and that accounts for the cost rise of 20 and 23 percent. The authors also found that repository overviews, a popular section, did not help agents find the relevant files sooner. And one result cuts the other way: when all other documentation was removed from the repository, generated context files tended to outperform the developer-provided ones, which suggests they help mainly where documentation is missing.
What this supports is narrow: for one set of coding agents and Python repositories, more text was not better, and hand-written content that tells an agent something it cannot discover itself did best. It does not show that documentation is unimportant to people or that all generated pages are bad. The sensible reading for a team is to put agent-facing instructions through the same ownership and review as other pages and to keep them short. How to configure such files is the subject of Giving Agents the Right Context.
Documentation quality amplifies other practices, and AI adoption moves it a little
DORA, the long-running research program on software delivery, measures documentation quality with eight metrics covering attributes such as clarity, findability and reliability. Its 2022 data showed documentation amplifying technical practices: trunk-based development was associated with a 36 percent lift for teams with below-average documentation and a 1,525 percent lift for those with above-average documentation4. DORA’s own page also says documentation must be actively created and maintained, which takes work. These are survey associations, not proof of cause.
On the AI side, the 2024 report found that a 25 percent rise in AI adoption went along with a 7.5 percent gain in documentation quality5. The same report associated that adoption with an estimated 1.5 percent slowdown in throughput and a 7.2 percent drop in stability; the report’s stated reading is that small batches and robust testing remain essential, not a measured cause. Coverage of the report also gives 39 percent of respondents as having little or no trust in AI-generated code. Documentation may be where AI helps most and where it still needs people, but all of this is self-reported and associational. It tells you where to look, not what your team will get.
Freshness checks that run without anyone remembering
A freshness check turns “we should keep docs current” into something a pipeline can fail. These are starting points, not standards, and each should be set from your own baseline.
The stuck-moment log connects to onboarding, which is the most honest test of your documentation. A new engineer follows the pages without the context that veterans carry in their heads. Wherever they ask a person, the pages failed. An onboarding assistant that answers new-hire questions from the documentation is useful for the same reason it is risky: it makes gaps invisible if it answers confidently from stale pages. So log the no-answer and low-confidence cases, and let a new hire’s first two weeks produce a list of fixes. Track one outcome measure, such as working days from start to first merged change, and compare it against your own history rather than an outside benchmark.
A team-sized worked example
Every count here is made up to illustrate the arithmetic; none comes from a real team. A team of nine engineers owns fourteen services and a documentation set of 120 pages. A new hire has just lost several days to a setup page that no longer works, and the manager asks for an audit before approving an assistant-written refresh. The team samples 40 pages and a senior engineer checks each against the code.
The arithmetic: 22 plus 11 plus 7 is 40, and 55, 27.5 and 17.5 percent sum to 100. The effort column applies to the sampled pages: 11 pages at 20 minutes is 220 minutes, 7 pages at 60 minutes is 420 minutes, and 640 minutes is about 10.7 hours. If the sample is representative, which depends on how it was drawn, the full set would hold about 33 stale and 21 wrong pages, so the manager treats the 10.7 hours as the first slice of a larger job and not a total.
Then the team sets the recurring cost. Verifying all 120 pages every 90 days, about 12.9 weeks, means roughly 9.3 pages a week. At 15 minutes each, that is about 2.3 hours a week for the whole team, around 16 minutes per engineer. The assistant drafts updates from merged changes; owners review them; the pipeline runs the setup commands. The manager sets the thresholds from the table above, adds the onboarding measure, and revisits after one quarter. In this invented audit, all 7 wrong pages were how-to pages written by hand a year earlier, which would suggest the command check will pay for itself first.
What this means for engineering managers
Your Monday action (you do the first one, then hand each service’s owner role to a named engineer): pick one service, list its pages, assign an owner, and add the verified date and tier to each. Copy this page header:
Owner: name. Verified: date, by name. Tier: owner-verified, AI-drafted and reviewed, generated or unreviewed. Check: which command or drift test covers it. Stale after: date.
Check yourself
- An assistant can write the explanation of why a system was designed a certain way as reliably as it can write reference material.
- A page with a named owner and a verified date is more trustworthy than a page with neither.
- In the 2026 context-file study, adding context files raised the success rate of coding agents across the board.
- Documentation that is checked automatically, such as by running its setup commands, can fail the pipeline like a test.
- DORA’s data prove that better documentation causes better delivery performance.
- A new hire’s stuck moments are a useful list of documentation bugs.
Reflection
What comes next
With documentation and knowledge in order, the lifecycle has its controls from specification to sustainment. The next module, Coding Assistants and Agentic Coding, turns to the tools themselves, starting with the assistant landscape organized by mode.
Laws referenced
Not legal advice. Laws change; verify before relying on this, and consult counsel for decisions.
General Data Protection Regulation · EU
Regulation (EU) 2016/679
Personal data is any information relating to an identified or identifiable person, directly or indirectly, including by an identifier such as an online ID (Art. 4(1)). Lawful basis and purpose limitation (Arts. 5-6); processing special-category data, including biometric data used to identify a person, health data and data revealing ethnicity, is prohibited unless a specific exception applies (Art. 9); data protection by design and by default (Art. 25); processors such as AI vendors may act only under a written contract with required terms and sufficient guarantees (Art. 28); transparency to data subjects (Arts. 13-14); right not to be subject to a decision based solely on automated processing with legal or similarly significant effects (Art. 22); breach notification to the supervisory authority within 72 hours (Art. 33) and to individuals without undue delay when the risk is high (Art. 34); data protection impact assessment for high-risk processing (Art. 35). Fines up to EUR 20 million or 4% of global turnover.
- 2018-05-25 — Applies
Last verified 2026-10-08 · official text
References
- Diátaxis. Diátaxis, a systematic approach to technical documentation. diataxis.fr. 2026.
- Write the Docs. Docs as Code. Write the Docs. 2026.
- Thibaud Gloaguen, Niels Mündler, Mark Niklas Müller, Veselin Raychev and Martin Vechev. Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?. arXiv 2602.11988. 2026.
- DORA. Capabilities: Documentation quality. dora.dev. 2026.
- DORA (Google Cloud). Accelerate State of DevOps Report 2024. Google Cloud. 2024.
Further reading
- Thibaud Gloaguen, Niels Mündler, Mark Niklas Müller, Veselin Raychev and Martin Vechev. Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?. arXiv 2602.11988. 2026.
- DORA. Capabilities: Documentation quality. dora.dev. 2026.
- DORA (Google Cloud). Accelerate State of DevOps Report 2024. Google Cloud. 2024.
Sources last verified 2026-10-12.