Skip to content

docs(adr): rewrite the decision records by hand - #2373

Merged
vastsa merged 1 commit into
mainfrom
docs/adr-handwritten-rewrite
Nov 16, 2026
Merged

vastsa merged 1 commit into
mainfrom
docs/adr-handwritten-rewrite

Conversation

@vastsa

@vastsa vastsa commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Replaces the mechanically compressed ADR text from #2369 with hand-written short records.

#2369 shrank the catalog by keeping a fixed number of leading sentences per section. It hit the size target but produced fragments: cut mid-argument sentences, dangling "See also" references, and records whose reasoning disappeared while implementation detail survived.

Every one of the 392 records and every ADR-backed entry in spec/08-meta/decisions-log.md was read and rewritten deliberately:

  • ## Context: one paragraph on the problem.
  • ## Decision: one paragraph, or one sentence per numbered heading so ADR NNNN §N citations still resolve (all 27 §-citations in the docs tree verified).
  • ## Consequences: at most three bullets; one line per rejected alternative.
  • Fully superseded records: short stubs. Metadata keeps every ADR id, D-id and issue/PR number.
  • Decisions-log entries backed by an ADR now state the decision in one sentence and point at the ADR; entries without one keep their full text.

Result: docs/adr 1713 KB -> 931 KB (54%), decisions log 806 KB -> 500 KB (63%).

Checks: docs:check (521 pages), locale pairs, docs script tests, vitepress build (no dead links), check-pr-base, plus a scripted audit that no ADR id or D-id was dropped and no ADR NNNN §N citation lost its anchor. Docs-only; no application code changed.

The previous pass shortened ADR and decisions-log text mechanically, by
keeping a fixed number of leading sentences. It reached the target size
but left truncated arguments, cut sentences and dangling references, and
several records lost the reasoning that made the decision worth keeping.

Rewrite all 392 records and the ADR-backed decisions-log entries by
reading each one and writing the short form deliberately: one paragraph
of context, a decision of one sentence per numbered heading (so
`ADR NNNN §N` citations still resolve), at most three consequences, and
the rejected alternatives in one line each. Fully superseded records
become short stubs. Adr: 1713 KB -> 931 KB, decisions log 806 KB -> 500 KB.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: d573601
Status: ✅  Deploy successful!
Preview URL: https://bd2f0b1e.pi-desktop.pages.dev
Branch Preview URL: https://docs-adr-handwritten-rewrite.pi-desktop.pages.dev

View logs

@vastsa
vastsa merged commit 29043af into main Nov 16, 2026
3 checks passed
@vastsa
vastsa deleted the docs/adr-handwritten-rewrite branch November 16, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant