Repository Public BSD-3-Clause
1# ADR 0007 — `.orixmap`: a signed container of standard components23Date: 2026-11-25 · Status: accepted45**Context.** A region is several files (tiles, search index, routing graph, later terrain) that must be downloaded,6verified and installed as one unit (§5).78**Options.** ZIP (path names inside the archive are an attack surface; signature would be an add-on), a tar, or a9minimal purpose-built container.1011**Decision.** A 64-byte little-endian header, a JSON manifest, an Ed25519 signature over the manifest bytes, then the12components at 4096-byte aligned offsets. The manifest lists each component's offset, length and SHA-256, so the13signature covers the whole file. Components are standard formats used as they are after extraction (PMTiles v3, SQLite,14`.orixgraph`). Installed file names come from a fixed table keyed by component id: the package cannot choose a path.15The preamble size is known from the first 64 bytes, so a client can fetch and verify the manifest alone by Range.1617**Measured (Mac M5 Max).** Container overhead 4 185 bytes for the Montréal package (221.6 MB); verification 0.08 s,18installation 0.13 s, peak memory under 14 MB whatever the package size.1920**Consequences.** Packages are not byte-reproducible (randomized signatures): a published artefact is never21overwritten; new data means a new data version.22