Agent Wranglers

DOC-48Recommended

Give every doc an owner and a review date

Give every guide and runbook an owner and a last-reviewed date, and flag any doc not reviewed in 6 months.

How to do it

Put owner and reviewed in each doc's front matter. List the docs folders in the code owners file, so the owner reviews changes. A scheduled job opens a ticket for the owner when a doc passes 6 months. Reviewing means reading it, fixing it and updating the date. Delete docs nobody owns. Runbooks need this most, as Write the restore runbook says. Policies follow Keep every policy short and owned.

Examples

JavaScript example

const MAX_AGE_DAYS = 183;
const DAY_MS = 86_400_000;

export const isDocStale = (frontMatter, today) =>
  !frontMatter.owner || (today - new Date(frontMatter.reviewed)) / DAY_MS > MAX_AGE_DAYS;

Python example

from datetime import date

MAX_AGE_DAYS = 183

def is_doc_stale(front_matter: dict, today: date) -> bool:
    reviewed = date.fromisoformat(front_matter.get("reviewed", "1970-01-01"))
    return not front_matter.get("owner") or (today - reviewed).days > MAX_AGE_DAYS

How to check

A script reads the front matter of every doc. Each has an owner and a reviewed date under 6 months old, or an open ticket for it.

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/documentation/keeping-docs-current/doc-ownership">Agent Wranglers documentation playbook</a>. In code you write, add a comment next to it with the same link.