1.1 KiB
[Reviewed]
ADR-0009: Units and spatial frames
Status
Minimal proof units adopted; dimensional library and planet mapping deferred.
Context
Microscopic and planetary scales cannot share unqualified float positions.
Decision
Named millimetre/tick/ID values and explicit conversions. Proof domain1024mm and quantum50000us are synthetic fixtures. Target local frames right-handed +Z up, tied to stable region addresses; microdomains have separate frames/ecological coupling.
Alternatives Considered
Aliases cannot distinguish quantities; mp-units provides compile-time dimensional safety under MIT; homemade units algebra duplicates specialized work.
Benefits
Visible dimensions/ranges and bounded local precision.
Costs
Explicit conversions and frame transforms.
Risks
Wrapper proliferation, overflow, confusing proof torus with planet geometry.
Consequences
Evaluate mp-units compiler support/diagnostics/compile time before biology. Specify J/kg/mol/m/s ranges and residuals. Prototype seams/poles/depth before global mapping. mp-units.