Skip to content

S6 — Doc-accuracy guardrail (prevent silent re-staling) #76

Closed

Description

@Polichinel

Epic: #70 · S6 · testing · depends on #72, #73, #74, #75

Background

The docs went stale silently because nothing checks them against the code — that is the root cause this epic is fixing, so the fix must include a guard against recurrence. docs/validate_docs.sh already exists; extend it (or add a test) into a real guardrail so this refresh stays true.

Work

  • A check that fails if docs reference deleted symbols: PriogridCountryMapper, mapping.py, geopandas, cachetools, shapefiles/, and disk/memory "cache" presented as a feature. (Scope the scan to docs/, README.md, and module README.mds — not the risk register / postmortems, which legitimately mention them historically; allow an explicit opt-out marker for intentional historical references.)
  • A check that internal doc links resolve (no dead relative links).
  • Wire it into CI (the existing workflow under .github/workflows/) or docs/validate_docs.sh, and document how to run it.

Acceptance criteria

  • Guardrail fails on a reintroduced deleted-symbol reference and on a broken doc link (prove with a temporary negative case, then revert).
  • Guardrail runs in CI or via a documented command, and is green on the refreshed docs (post S2–S5).
  • False-positive handling exists for legitimately-historical mentions (register, postmortems, superseded-ADR historical context).

Validation / testing

  • Run on the post-S5 tree → green.
  • Temporarily reintroduce a banned token in a doc → red; revert → green.

Dependencies

  • Depends on S2, S3, S4, S5 — the docs must be correct before the guardrail is switched on (otherwise it lands red).

Notes

  • Files: docs/validate_docs.sh, .github/workflows/ (the lint/test workflow). Keep it lightweight — a grep-based check + a link checker is sufficient; no heavy doc-build tooling.

Activity

  1. added
    story
    testing
    on Jun 27, 2026
  2. added a commit that references this issue on Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    storytesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions