ADR 0004: Keep rule pages rule-specific and move shared rollout guidance to dedicated guide pages
- Status: Accepted
- Date: 2026-02-25
Contextβ
Rule documentation had repeated prose across a large set of files (docs/rules/prefer-*.md), including:
- generic rollout/adoption checklists,
- repeated FAQ-style explanations,
- repeated boilerplate comments in additional examples.
This made rule pages noisy and reduced the amount of space available for rule-specific behavior, migration boundaries, and edge-case guidance.
Decisionβ
Adopt a split documentation model:
- Rule pages (
docs/rules/prefer-*.md) contain only rule-specific details:- exact match/report scope,
- semantics and caveats,
- focused examples,
- precise βWhen not to use itβ.
- Shared guidance (checklists, rollout strategy, fix safety) is centralized in dedicated guide pages under:
docs/rules/guides/adoption-checklist.mddocs/rules/guides/rollout-and-fix-safety.md
Rationaleβ
- Higher signal in rule docs: readers can quickly understand what a specific rule does and where it may not apply.
- Lower maintenance cost: update shared operational guidance in one place instead of duplicated rule pages.
- Less drift risk: avoids inconsistent repeated wording across rule pages.
Consequencesβ
- Rule pages are shorter, more concrete, and easier to review.
- Shared process content is maintained centrally and linked from docs navigation.
- Future rule-doc additions must avoid reintroducing shared checklist/rollout boilerplate.
Revisit Triggersβ
Re-evaluate if:
- users report discoverability issues for shared adoption guidance,
- or Docusaurus navigation changes make shared guides hard to find from rule pages.