Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

16. Keep ADR records in adr-tools compatible mode

Date: 2026-10-23

Status

Accepted

Context

The repo carries two ADR tool configs. adrs.toml sets mode = "compatible" and adr_dir = "docs/decisions", producing plain Nygard markdown with no YAML frontmatter. The rust-standard (docs/standard/prose.md) assumes NextGen mode with YAML frontmatter, tags, and link metadata, and puts records inside the mdBook source tree via adr_dir = "docs/adr".

Cerebro diverges from the standard on both axes: it uses compatible mode, and its ADR directory (docs/decisions) already sits inside the mdBook source and is wired into docs/SUMMARY.md under the Decisions section. All fifteen existing records (0001-0015) are compatible-mode Nygard markdown already linked from the book. The rust-standard’s .adr-dir legacy marker is also present, kept for adr-tools-compatible consumers.

The open question from the gap analysis: should cerebro migrate to the standard’s NextGen mode and relocate to docs/adr, or stay as it is? Migration would add YAML frontmatter to every existing record and force a SUMMARY rewrite, for metadata (tags, structured links) that cerebro does not currently use.

Decision

Keep compatible mode. ADR records stay as plain Nygard markdown in docs/decisions/, with no YAML frontmatter and no tags. The .adr-dir file remains for adr-tools consumers. Cerebro does not adopt the standard’s NextGen mode.

The docs/decisions location is retained rather than renamed to the standard’s docs/adr, because the directory is already the mdBook source location and is already enumerated in docs/SUMMARY.md under the Decisions section. Relocating would break existing SUMMARY links and the Pages build for no functional gain.

Where cerebro needs structured links (Supersedes, Amends, Relates to), it uses the standard Nygard convention of a ## Links section with plain markdown bullets, since compatible mode cannot carry link metadata in frontmatter.

Consequences

The existing fifteen records stay valid without editing their headers or rewriting the SUMMARY. The book’s Decisions tree and Codeberg Pages deploy are unaffected.

Cost: cerebro cannot use the adrs MCP update_tags, suggest_tags, or the frontmatter-backed link_adrs graph. Cross-references must be hand-written in a ## Links section. New records follow the Nygard full variant the command-line tool emits by default, keeping the corpus uniform.

The divergence from the rust-standard’s prose section is deliberate and is itself a deviation from the standard; the standard’s NextGen defaults do not apply to this repo. Future template-sync work must not force-migrate the directory.