Documentation and Knowledge Management Questions
Governing how teams capture and keep knowledge usable: documentation standards, ownership models (centralized, federated or dedicated team) and review cadences, incentives and culture change that get engineers to document, decision records and assumption logs, post-project reviews that preserve lessons, and knowledge-base strategy so organizational knowledge stays findable and attributed. Includes building or buying a knowledge platform, migration and consolidation plans, taxonomy, tagging and search quality, linking docs to code, capturing tacit expertise into the knowledge base, detecting and remediating stale docs across a documentation estate, and versioning and change policies for shared reports and metric definitions. Covers the governance and lifecycle of a body of documentation, not the craft of writing any single document.
What documentation standards would you set for an engineering team, and how would you get people to follow them without turning it into bureaucracy? Cover how the standards are kept up to date as the work changes.
Sample Answer
Direct answer
Set a small, tiered minimum standard (a few artifacts every service, pipeline or model must have), keep the docs in the same repository as the code and change them in the same pull request (PR), and enforce the standard with automation and defaults rather than meetings and sign-offs. Freshness comes from ownership plus a review date on every doc, not from goodwill. The test of "not bureaucracy" is that following the standard is the easiest path and the checks are run by tooling.
Structured elaboration
1. The standard itself: small and tiered
- Tier 1 (anything on-call, customer-facing or shared): a README (the front-page file of a repo: what it is, who owns it, how to run it, where to ask), a runbook (step-by-step instructions for responding to an alert or failure), and a decision record (a short note recording what was chosen, the options rejected and why) for hard-to-reverse choices.
- Tier 2 (internal tools, experiments): README only.
- ML and data assets: a model card (short document stating what a model is for, its training data, known limits and owner) or a dataset datasheet, plus a data dictionary (what each column means, its unit and source). For analytics projects add required metadata: owner, refresh schedule, source tables and last-reviewed date.
- One template per artifact, pre-filled, with the required fields marked. Templates are what stop inconsistent deliverables and the rework that follows.
- The ML and data items are optional add-ons for teams that ship models or datasets, not part of the core README, runbook and decision record set.
A minimal template skeleton, so the required fields are concrete (the CI check simply fails if a heading is missing):
README.md RUNBOOK.md decision record
# <service> # Alert: <alert name> # Decision: <statement>
Owner: <team> Severity: <P1-P3> Status: proposed | accepted | superseded
Last reviewed: <d> Symptoms: <what you see> Context / Options / Consequences
## What it does Diagnosis: <steps> Owner and review date
## Run locally Fix or rollback: <steps>
## Ask for help Escalate to: <who>
2. Governance as one framework (owners, templates, review cadence, tooling, incentives)
- Templates: the pre-filled skeleton above is the only format accepted for each artifact, stored in one template repository, so the CI check has a fixed set of required headings to test.
- Owners: every doc names a team owner (a CODEOWNERS file, which routes PR review to the named owners, plus a service catalog entry, meaning a central list of every service with its owner, docs link and on-call contact). An unowned doc is treated as deletable.
- Review cadence: each doc carries a
last_revieweddate. Tier 1 is reviewed at least every 6 months, and also whenever the system changes shape. - Tooling: docs-as-code (markdown in the repo, reviewed like code), a CI (continuous integration) job that checks required headings, broken links and stale dates, and one searchable site built from all repos.
- Incentives: doc work counts in performance and promotion criteria, authors are credited by name, and "a new hire followed the README and it worked" is celebrated. Punishment alone breeds checkbox docs.
3. Keeping standards current as work changes
- A PR template asks "docs updated or not needed, and why". Changes to alerts, APIs or schemas require touching the linked doc (a CI rule can map code paths to doc paths).
- A bot opens a ticket on the owner when
last_reviewedpasses its limit. Two missed cycles moves the doc toarchivedrather than leaving a confident but wrong page. - The standard itself is versioned and reviewed twice a year by a small docs working group (a few volunteers from different teams who own the standard), and any rule that nobody can justify with an incident or onboarding pain is removed.
4. Measuring compliance and handling non-compliance
- Coverage = Tier 1 assets with all required docs / all Tier 1 assets. Freshness = docs reviewed inside their window / docs required.
- Escalation ladder: bot nudge, ticket on the owner, visible on the team's monthly ops review, and only for Tier 1 a launch-readiness blocker, meaning the service cannot go live until its Tier 1 docs exist. Nothing else is gated.
Worked example
One team owns 15 Tier 1 services. The dashboard shows 12 have a README and runbook, and 9 of those are inside the 180-day review window.
coverage = 12 / 15 = 80%
freshness = 9 / 15 = 60% (9 of the 15 required sets are fresh)
The team lead sees two numbers and six named services to fix (three with no docs, three with docs past their review window), not a lecture. The runbook and decision record carry the same Last reviewed field as the README, so the CI stale-date check and the 6-month cadence apply to every Tier 1 artifact, not only the README. Note freshness is computed against the required 15, so a missing doc cannot hide behind a fresh one.
Rollout at scale (500 engineers, ten teams, two regions), phased over 12 months
- Months 1-2: pilot with two willing teams, build templates and the CI check, fix what the pilot hates.
- Months 3-5: add four teams, stand up the single search site and the service catalog, run a 2-hour training per engineer (500 x 2 hours = 1,000 engineer-hours, which is 25 engineer-weeks at 40 hours, a small fraction of the organization's yearly capacity).
- Months 6-9: remaining four teams; migrate only Tier 1 legacy docs (archive the rest, do not migrate everything).
- Months 10-12: switch on the launch-readiness gate for Tier 1, publish the first compliance report, review the standard.
- Rough cost, in people rather than invented dollars: a docs platform owner and a tooling engineer (about 2 full-time), plus one steward per team (the team's named docs champion who helps peers and chases reviews) at about 10% time (ten teams is about 1 full-time equivalent). Two regions: one site, async PR review so no time zone waits on another, and one regional steward each.
Trade-offs and pitfalls
- Too many required docs produces empty template filling. Cut the list until each item has a story of an incident or onboarding delay it prevents.
- Central mandate without team stewards makes the standard feel imposed. Stewards give teams a peer to ask.
- Gating everything on compliance encourages gaming (docs written to satisfy a linter). Gate only Tier 1 and spot-check quality by having a new joiner try the README.
- What would change my approach: for a 15-person team I would skip the catalog and the phases and adopt README, runbook and a PR checkbox in one week.
You lead a team where documentation is poor and engineers resist writing it. Propose a multi-quarter plan to change the documentation culture. What do you do first, how do you handle cross-team governance, and how do you show progress each quarter?
Sample Answer
Direct answer
Do not start with a mandate or a big tool migration. Spend the first quarter finding out why engineers do not write docs (usually: no time, no clear owner, docs nobody reads, and no credit), fix the cheapest of those causes, and prove value on one high-pain area. Then add ownership and light governance in quarters two and three, and report progress with a small set of outcome metrics, not page counts.
Quarter 1: diagnose, then win one thing
- Interview 8-10 engineers across teams and read the last few months of onboarding questions and repeated Slack questions. Group them: "could not find it", "found it but wrong", "does not exist".
- Pick ONE painful area (typically on-call runbooks or service onboarding) and make it good, with the team's leads. A visible win before any policy is what buys credibility.
- Lower the cost of writing: a short template, docs stored next to code, and writing time budgeted in sprint planning as real capacity (meaning the team plans fewer feature points so writing is not unpaid overtime). A filled-in template for a service runbook is only four lines:
Purpose: Restart and drain the invoice worker when the queue backs up
Owner: payments team (#payments-oncall)
How to operate: 1) check queue depth on the dashboard 2) run the drain command 3) confirm depth falls
Known failure modes: drain hangs if the database is read-only; escalate to the database team
- Record a baseline: median time for a new hire to make a first merged change, and the count of repeat questions in the help channel. For example, the baseline might be 21 days and 30 repeat questions a month (illustrative), so later quarters have something to be compared against.
Quarter 2: ownership and governance across teams
- Every doc has an owning team (a field in the doc header plus a CODEOWNERS file, a repository file naming who must review changes in a path). No owner means it is archived after a notice period.
- A lightweight cross-team docs guild (a group with one rep per team, meeting monthly) owns the template, the style guide and the definition of "done" (the team's checklist of what must be true before a piece of work counts as finished). Teams keep autonomy on content; the guild owns only standards. This is a hybrid between central control and free-for-all.
- Add CI checks (automated checks on each pull request): broken links, missing owner, doc past its review date. Warn first, block later.
- Make docs part of the "definition of done" (the checklist a piece of work must satisfy before it counts as finished) for new services and for changes to public interfaces, and reflect it in review, not in a separate approval board.
Quarter 3: reinforce and scale
- Recognition: docs work counts in promotion and performance packets (the written evidence engineers submit when they are reviewed for a raise or promotion), and a short "doc of the month" is shared. Incentives beat exhortation.
- Onboarding curriculum: a 30-day reading path made of the docs that exist, where the new hire files an issue for each gap, and fixing it is their first contribution.
- Retire or merge stale docs so trust in what remains rises.
How to show progress each quarter (worked example)
A leading indicator is an early signal of behavior you control (services with owners); an outcome indicator is the result you actually want (faster onboarding), which moves later.
| Quarter | Leading indicator | Outcome indicator |
|---|---|---|
| 1 | Baseline recorded (for example 21 days to first accepted pull request, 30 repeat questions a month); pain area chosen | Repeat questions in that area (count) |
| 2 | Share of services with an owner, for example 40 of 50 = 80% | Docs past review date, falling |
| 3 | Share of new services shipped with a runbook | New-hire time to first merged change vs the Q1 baseline (for example 21 days down to 14, a one-third drop; illustrative) |
Report the trend against the baseline, and never celebrate volume (pages written), because it rewards padding.
ML organization variant (reproducibility as the goal)
In a machine learning (ML) team, the doc that matters most is whatever lets someone else reproduce a result. Replace the generic template with: a model card (a short standard doc stating what a model is for, its training data, evaluation results and known limits), the exact dataset version, code commit, random seed (the fixed number that makes random steps in training repeat identically) and environment, and the metrics table. A minimal model card reads: "Purpose: rank support tickets by urgency. Training data: tickets Jan to Jun, dataset v4. Evaluation: 0.82 accuracy on held-out tickets (illustrative). Limits: not tested on non-English tickets." CI checks verify the card exists and its links to data and code resolve before a model can be promoted. Ownership is per model, and the curriculum includes re-running one past experiment from docs alone; failure to reproduce it is a documentation bug to fix. Quality over time is measured by the share of promoted models whose results a second person reproduced from the docs.
Pitfalls
- Mandating with no time budget produces low-quality docs and resentment.
- Central review boards become bottlenecks; keep standards central and content federated.
- Measuring page counts, or reading only engagement, hides whether docs are trusted.
- What would change the plan: if the survey shows the problem is findability, not absence, invest in search and structure before asking anyone to write more.
An internal wiki and search platform saw heavy use for a month after launch and then usage fell sharply. How would you diagnose why, and what prioritized plan would you set to bring adoption back, including quick fixes, governance and how you would measure success?
Sample Answer
Direct answer
A month of heavy use followed by a sharp fall is usually a novelty spike hitting a product that does not fit people's daily work: the content was thin or stale, search did not find things, or nothing sent people back. So diagnose from data first (search behaviour, who left, what they wanted), then interview a handful of lapsed users, and only then choose fixes. Plan in four steps: quick fixes within two weeks, habit hooks within six weeks, governance within a quarter, and a review of the platform choice last, with metrics defined before you start so success is not just "more page views".
Terms
- Novelty spike: a burst of use because something is new, not because it is useful.
- Launch cohort retention: of the people who used it in the launch month, the share still using it now.
- Zero-result search: a search that returned nothing.
- Habit hook: a place in people's normal daily tools that sends them to the wiki without them having to remember it.
- Chat link previews: when a wiki link pasted in chat expands to show the page title and first lines.
- Bounce: a visit where the person leaves after one page without doing anything else.
- Synonyms (in search): telling the search engine that different words mean the same thing.
Step 1: Diagnose (week 1)
| Question | Evidence |
|---|---|
| Who left: everyone, or one team? | Weekly active readers by team, launch cohort retention |
| Did people find what they searched for? | Zero-result searches, searches with no click |
| Was content missing or wrong? | Top queries versus existing pages, page last-verified dates |
| Is there a habit hook? | Are there links to the wiki from the tools people use all day (chat, alerts, code repos)? |
| Do people trust it? | Five to eight short interviews with people who stopped: "the last time you needed X, where did you go?" |
Metric definitions (numerator, denominator, window)
- Weekly active readers = distinct engineers who opened a page or searched in a 7-day window, divided by engineers eligible to use it.
- Search success rate = searches followed by a click on a result within the same session, divided by all searches.
- Zero-result rate = searches returning nothing, divided by all searches.
- Freshness = pages viewed in the window that were verified within their review interval, divided by pages viewed.
Illustrative worked example. Suppose 200 engineers. Launch month: 150 weekly active (75 percent). Now: 60 (30 percent). Of 1,000 searches last week, 320 returned nothing (32 percent) and 400 led to a click (40 percent). Sort the 1,000 searches into three groups: 320 returned nothing (32 percent), 280 returned results but nobody clicked (28 percent), and 400 led to a click (40 percent). So 600 searches, six in ten, ended without a click, and only 40 percent succeeded. Roughly half of the failures (320 of 600) mean missing content or a vocabulary mismatch, and the other 280 mean results were shown but looked irrelevant or stale. Both are search problems, so search is the main leak and search fixes come before governance.
Step 2: Prioritized plan
- Quick fixes (weeks 1-2): create or redirect pages for the top zero-result queries, add synonyms (for example "on-call" and "pager"), fix or archive the 20 most-viewed stale pages, and add chat link previews so wiki links are useful where people already talk.
- Habit hooks (weeks 2-6): link runbooks from alerts, link onboarding checklists, and make "put it in the wiki" the default answer in team channels.
- Governance (weeks 4-12): each space has an owner, each page a review-by date, stale pages get a visible "unverified" banner then archive, and there is a simple contribution guide with a page template.
- Review the platform choice last. Replacing the tool is expensive and rarely the root cause; only reopen it if search relevance cannot be fixed.
Measuring success
Target weekly active readers recovering to a stated level (say back toward 60 percent: that is a judgment call, not a law. Launch was 75 percent, and part of that was curiosity, so recovering about half of the gap between today's 30 percent and the launch peak of 75 percent (a 45-point gap, so about 22 points back), roughly 52 percent, is the floor and 60 percent is a stretch. Agree the number with the sponsor up front) sustained for eight weeks, search success rising, zero-result rate falling, and the freshness ratio rising. Also track contribution (pages edited by non-authors).
Pitfalls
- Raw page views are easy to game and inflated by bots or bounces, so pair them with search success and freshness.
- A mandate ("everyone must use the wiki") gets compliance, not trust.
- What would change my call: if interviews show the content lives in a different tool people already prefer, integrate with that instead of competing.
Documentation for services keeps becoming undiscoverable when code is refactored or renamed. Design a way to link documentation to the code it describes so that the links survive change: what metadata you record, where checks run, and how broken links are detected and repaired.
Sample Answer
Direct answer
Link docs to code through stable identifiers (a service name and the paths or symbols it owns), not through line numbers or pasted URLs. Store those identifiers as metadata in each doc, run a check in CI (continuous integration, the automated build that runs on every pull request) that fails when a link no longer resolves, and run a scheduled sweep for links that rot without a PR touching them. When a break is found, the tooling proposes the repair (for example the renamed path) so a human only approves.
1. What metadata you record
Put it in the doc's front matter (a small YAML header at the top of a Markdown file), so it travels with the doc in the same repository ("docs-as-code": docs live in version control and go through review like code).
---
service: billing
owner_team: payments
covers:
- src/billing/
last_verified_commit: abc1234
review_by: 2026-12-01
---
covers: paths (or symbol names for API docs, where a symbol is a named code element such as a function or class) the doc describes. This is the forward link, doc to code.owner_teamplus a CODEOWNERS file (a repository file mapping paths to the people who must review changes there) gives the reverse link and someone to notify.last_verified_commitandreview_by: when a human last confirmed the doc matched the code. A commit SHA (the unique hash Git gives every commit, such asabc1234) records exactly which version of the code was checked.- The
service: billingvalue is an identifier from a service catalog (an internal registry listing each service, its owning team and where its code lives). If the code moves from one repository to another, only the catalog entry (billing -> repo: platform-monorepo, path: services/billing/) is updated, and every doc that saysservice: billingstill resolves. Docs that hard-code a repository URL would all break. - Links from doc prose to code use a stable anchor (a symbol or section name). A permalink pinned to a commit SHA never breaks but shows old code, so use it only as evidence ("this was true at abc1234"), and use the live path for navigation.
2. Where checks run
- On every pull request: compute the files changed; find docs whose
coversoverlap; require either a doc edit or an explicit "docs not needed" label. Also run the link resolver below on the whole docs folder. - Nightly sweep: catches external links, docs past
review_by, and services whose owner team no longer exists. - Reverse index: a generated page listing each service and its docs, so engineers finding code can find docs.
3. Detecting and repairing broken links (worked example)
A PR renames src/billing/ to src/invoicing/. The check below reads each doc's covers, confirms each prefix still matches a tracked file, and uses git diff -M (which detects renames) to suggest the new location. Setup: pip install pyyaml; a repo with src/billing/charge.py, src/billing/refund.py and the doc above (saved as docs/billing-runbook.md) committed on branch main; then create a branch, run git mv src/billing src/invoicing and commit.
import subprocess, sys, pathlib, yaml
def front_matter(path):
text = path.read_text()
if not text.startswith("---\n"):
return None
return yaml.safe_load(text.split("---\n", 2)[1])
def git(*args):
return subprocess.run(["git", *args], capture_output=True, text=True, check=True).stdout
base = sys.argv[1] # e.g. origin/main
tracked = git("ls-files").splitlines()
renames = {}
for line in git("diff", "--name-status", "-M", base, "HEAD").splitlines():
parts = line.split("\t")
if parts[0].startswith("R"):
renames[parts[1]] = parts[2]
problems = 0
for doc in pathlib.Path("docs").rglob("*.md"):
meta = front_matter(doc)
if not meta:
print(f"{doc}: MISSING front matter"); problems += 1; continue
for prefix in meta.get("covers", []):
if any(f.startswith(prefix) for f in tracked):
continue
hint = next((new for old, new in renames.items() if old.startswith(prefix)), None)
msg = f"{doc}: covers '{prefix}' matches no file"
if hint:
msg += f" (renamed to {hint.rsplit('/', 1)[0]}/)"
print(msg); problems += 1
print(f"{problems} problem(s)")
sys.exit(1 if problems else 0)
Run as python3 check_doc_links.py main (the argument is the branch to compare against). Output:
docs/billing-runbook.md: covers 'src/billing/' matches no file (renamed to src/invoicing/)
1 problem(s)
How it works, block by block: front_matter reads the YAML header of a doc. renames is a dictionary built from git diff -M (the -M flag makes Git detect that a file was moved rather than deleted and re-added), mapping old path to new path, for example src/billing/charge.py to src/invoicing/charge.py. For each doc and each covers prefix, the loop asks whether any tracked file still starts with that prefix (startswith). If none does, the link is broken, and the loop looks for a renamed file whose old path started with that prefix to suggest the repair.
The CI job exits non-zero, so the rename PR cannot merge until the doc's covers is updated. A bot can open that one-line fix automatically, because the rename target is already known.
4. Trade-offs and pitfalls
- Strict blocking on every code change creates label-spam ("docs not needed" clicked reflexively). Start warn-only for a quarter, then block only for services tagged tier-1 (the most business-critical services, for example those that can page someone at night).
- Path prefixes are coarse: a rename inside the folder is not detected. Symbol-level links are more precise but need per-language tooling, so reserve them for public API docs.
- Metadata rots too.
review_bywith a nightly report of expired docs is the guard. - Docs living outside the repo (a wiki) cannot get a PR check. Either move the ones that matter into the repo, or accept only the nightly sweep for them.
How would you measure whether an SRE team's documented procedures are going stale or being forgotten? Define the inputs and how you would combine them, when a score should trigger action, and how you would avoid alert fatigue.
Sample Answer
Direct answer
Treat "stale or forgotten" as several independent signals, score each 0 to 1, combine them with fixed weights into a 0 to 100 staleness score per runbook, and set the action threshold by how critical the service is. Add a hard override: if a real incident said the procedure was wrong, act regardless of the score. Avoid alert fatigue by sending weekly digests by default and opening a ticket only past the threshold, capped per owner.
Terms. A runbook is a step-by-step procedure for an operational task. An SRE (site reliability engineer) team runs production and relies on runbooks during incidents. A tier ranks a service's criticality (tier 1 is paging or revenue-critical). A paging alert is an alert that wakes someone up. Drilled means rehearsed on purpose before a real emergency. A dry run executes the steps against a safe copy with no real effect. The inventory is the current list of live hosts and services (from your configuration database). A digest is one summary message instead of many alerts. To snooze is to silence a reminder until a set date. An archive candidate is a runbook that looks safe to retire. To deduplicate is to keep one item where there would be several.
Inputs (each scaled 0 to 1, where 1 is worst)
| Signal | Definition | Weight |
|---|---|---|
| Age | Days since last review divided by the tier's review interval, capped at 2, then halved | 0.25 |
| Unexercised | Same calculation using days since the runbook was last used or drilled | 0.15 |
| Proved wrong | Incidents in 90 days where responders flagged it wrong, divided by incidents that used it | 0.30 |
| Dead references | Links, hosts or commands that no longer exist, divided by total references (found by a nightly check against the inventory) | 0.20 |
| Owner gone | 1 if the owner left or the team was reorganized, else 0 | 0.10 |
Why these shapes and weights:
- Capped at 2, then halved. Age is measured against the review interval. A runbook exactly at its interval scores 1 before halving, so 0.5 after. Capping at 2 means anything more than twice overdue is simply maximally stale (1.0 after halving) rather than letting a 10-times-overdue page dominate the score.
- Proved wrong weighs most (0.30) because it is direct evidence from a real incident. Dead references (0.20) are hard, checkable facts. Age and unexercised (0.25, 0.15) are only proxies. Owner gone (0.10) is a flag more than a measurement.
Weights are a judgement. Calibrate them by backtesting, meaning you replay the past: compute scores as they stood last quarter, then check them against what actually went wrong afterwards. Illustrative example: 4 runbooks were flagged wrong in this quarter's incidents. If 3 of those 4 were among last quarter's top-scoring runbooks, the score caught 75%. If only 1 of 4 was, raise the weight on dead references or add a signal, and re-check.
When to act
Tier 1 opens a ticket at 45 or above, tier 2 at 60, tier 3 at 80. Tier 1 opens earliest because a stale runbook there costs the most during an outage, and its review interval is shortest (90 days, versus 180 and 365). These numbers are starting values you tune from the backtest, not laws. Below the threshold the runbook appears only in the weekly digest. Override: one or more "proved wrong" flags opens a ticket whatever the score.
Runnable computation (pinned data, prints the result)
from datetime import date
TODAY = date(2026, 9, 28)
WEIGHTS = {"age": 0.25, "unexercised": 0.15, "wrong": 0.30, "dead_refs": 0.20, "owner": 0.10}
# tier -> (score that opens a ticket, review interval in days)
TIERS = {1: (45, 90), 2: (60, 180), 3: (80, 365)}
# name, tier, last_reviewed, last_exercised (used or drilled), uses_in_90d, flagged_wrong_in_90d,
# dead_refs, total_refs, owner_active
RUNBOOKS = [
("db-failover", 1, date(2026, 2, 10), date(2026, 3, 1), 1, 1, 3, 10, True),
("cache-flush", 2, date(2026, 8, 20), date(2026, 9, 10), 2, 0, 0, 6, True),
("legacy-batch-job", 3, date(2025, 6, 1), date(2025, 6, 1), 0, 0, 4, 5, False),
("cert-rotation", 1, date(2026, 8, 30), date(2026, 9, 1), 0, 0, 1, 12, True),
("queue-backlog", 2, date(2026, 3, 15), date(2026, 8, 2), 3, 0, 1, 8, True),
]
def score(tier, reviewed, exercised, uses, wrong, dead, total, owner_active):
interval = TIERS[tier][1]
parts = {
"age": min((TODAY - reviewed).days / interval, 2) / 2,
"unexercised": min((TODAY - exercised).days / interval, 2) / 2,
"wrong": (wrong / uses) if uses else 0.0,
"dead_refs": dead / total,
"owner": 0.0 if owner_active else 1.0,
}
return 100 * sum(WEIGHTS[k] * v for k, v in parts.items()), parts
def action(tier, s, wrong):
if wrong >= 1:
return "OPEN TICKET (incident said it was wrong)"
return "open ticket" if s >= TIERS[tier][0] else "weekly digest only"
print(f"{'runbook':<17}{'tier':>4}{'score':>7} action")
for name, tier, rv, ex, uses, wrong, dead, total, owner in RUNBOOKS:
s, _ = score(tier, rv, ex, uses, wrong, dead, total, owner)
print(f"{name:<17}{tier:>4}{s:>7.1f} {action(tier, s, wrong)}")
Output:
runbook tier score action
db-failover 1 76.0 OPEN TICKET (incident said it was wrong)
cache-flush 2 3.5 weekly digest only
legacy-batch-job 3 52.5 weekly digest only
cert-rotation 1 7.9 weekly digest only
queue-backlog 2 18.6 weekly digest only
Check one by hand. db-failover (tier 1, interval 90 days): reviewed 230 days ago, so age is capped at 1.0. Last exercised 211 days ago, also capped at 1.0. It was used once and flagged wrong once, so wrong is 1.0. Dead references are 3 of 10, so 0.3. Owner is active, so 0.
100×(0.25×1+0.15×1+0.30×1+0.20×0.3+0.10×0)=76.0
Now a low row. cache-flush (tier 2, interval 180 days): reviewed 39 days ago, so age is 39/180 = 0.217, halved to 0.108. Last exercised 18 days ago, so 18/180 = 0.1, halved to 0.05. It was used twice with no wrong flags, has no dead references and an active owner, so those are 0.
100×(0.25×0.108+0.15×0.05)=3.5
Recent review plus recent use gives a near-zero score, so it stays out of the ticket queue.
Also note legacy-batch-job scores 52.5, which is below tier 3's threshold of 80, so it stays in the digest. Its dead references and missing owner make it an archive candidate, not something to nag anyone about.
Avoiding alert fatigue
- Default channel is one weekly digest per team, sorted by score.
- Tickets, not pages: a stale runbook is never a 3 a.m. alert.
- Cap open stale-runbook tickets per owner (for example three) so a backlog does not flood them.
- Deduplicate: one ticket per runbook, updated, not re-created.
- Snooze with a reason and an expiry date, so silence is a decision.
How it gets gamed, and the guard
- Rubber-stamp reviews: someone bumps the date without reading. Guard: a review counts only if it includes a checked step (a dry run or a drill signed by someone other than the author).
- Deleting dead links to zero the reference score: guard by tracking the reference count as well.
- Archiving a runbook to remove it from the list: guard by requiring that a paging alert never points to an archived page.
Pitfall. A single number hides the reason. Show the top contributing signal next to the score so the owner knows what to fix.
Unlock Full Question Bank
Get access to all 20 Documentation and Knowledge Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.