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

Decision records

An architecture decision record (ADR) captures one significant design choice: the context, the decision, its consequences, and the alternatives that were considered and rejected. ADRs are never rewritten after acceptance. A changed decision gets a new ADR that supersedes the old one, so the history of the reasoning is kept.

Write an ADR when a choice is expensive to reverse, or when a reader would reasonably ask why it was done this way. Examples: adding an external dependency to an engine crate, choosing a numerical method, or changing a convention. Start from the template and number it sequentially.

ADRDecisionStatus
0001Hand-written, frame-typed math; no third-party math or physics crates in the engineAccepted
0002Fixed-step integration behind a trait, with RK4 and a Lie-group method for attitudeAccepted
0003Sequential impulses with warm starting and soft constraints for contactAccepted
0004Rust physics compiled to WebAssembly, drawn by three.js with WebGPUAccepted
0005GitHub-native math syntax, rendered in the book by KaTeXAccepted
0006One engine error type in mjk-core; configuration parsed from TOML text with exact field pathsAccepted
0007Operator-grade interface rules for the viewer and the book; the 3D scene and README hero are exemptAccepted

Status values: Proposed, Accepted, Superseded by ADR NNNN, Rejected. An accepted ADR may also say extended by ADR NNNN when a later record adds to it without changing what it decided; that note is the only edit an accepted ADR receives.