Evidence platform and governance
The Lithoen spatial architecture (Phase 4)
- Repository path
- docs/architecture/SPATIAL_ARCHITECTURE.md
- Size · SHA-256
- 6.0 KB · b5df83871bf1165fa74453354c565dec50e6d4883ebf24f42648e3074ada281b
Phase 1 explained how Earth works. Phase 2 explained what it is made of. Phase 3 explained how the uneven distribution of what it is made of occasionally becomes extreme. Phase 4 connects all three to real places — and spends most of its effort on the ways that connection can lie.
The one rule everything else follows from
Entity identity and spatial representation are separate records.
A craton is not a polygon. A polygon is one published opinion about where a craton is, drawn at one scale, by one group, from one kind of evidence, on one date. Two such opinions may disagree, and Lithoen holds both rather than averaging them into an outline nobody published.
entity:kaapvaal-craton ← identity: the name, the rocks, the history
▲
│ entityId
│
spatial:…-extent-a spatial:…-extent-b ← two opinions, both kept
role role
boundaryCertainty boundaryCertainty
epistemicStatus epistemicStatus ← the geometry's own status
sourceCrs / storedCrs sourceCrs / storedCrs ← never conflated
provenance{dataset, feature, scale, accuracy,
derivation, transformations,
inheritedTransformations}
preferredForPublication + preferenceBasis ← at most one, and it must say why
The pipeline
SOURCE ARTEFACT data/internal/spatial/raw/ INTERNAL, canary-protected
↓ checksum verified against the dataset record
RIGHTS CHECK dataset.rights.derivativePublication
↓ refuses before writing anything
NORMALISED merge, simplify, round — each recorded
↓
VALIDATED structural validity, or the feature is refused
↓
PUBLIC DERIVATIVE data/public/spatial/
Run by scripts/ingest-spatial.ts from a committed plan in tools/spatial/plans/. The tool
writes records; it does not review them. A caption, a boundary certainty and an epistemic
status are judgements and they come from the plan, where a human wrote them.
What a geometry has to say before it says where
| Field | Refuses |
|---|---|
role |
a representative point presented as an extent; an approximate outline labelled authoritative |
boundaryCertainty |
every edge rendering as equally well known |
epistemicStatus |
one entity-level status hiding geometry-level uncertainty |
sourceCrs vs storedCrs |
projected coordinates relabelled as longitude and latitude |
provenance.transformations |
an unrepeatable simplification, or a silent one |
provenance.inheritedTransformations |
disclosing only one's own edits |
antimeridian |
a Pacific feature rendering as a band across the planet |
preferredForPublication + basis |
"it looked cleaner" |
positionCount, checksumSha256 |
a record edited without re-deriving what describes it |
The antimeridian, resolved
Phase 0 documented that a bounding box could not cross ±180. Phase 4 removed the limitation: west greater than east now MEANS a box crossing the antimeridian, per RFC 7946 §5.2, and the box is chosen by finding the widest gap between a feature's longitudes and taking everything outside it. A cluster of features around the dateline gets a 4° box, not a 358° one.
A fourth disposition, poleClosure, was added after the Antarctic plate outline was
misreported. A circumpolar ring closes by running along latitude ±90 from one edge of the map
to the other; every longitude meets at the pole, so that step is a seam in the projection and
not a feature crossing the dateline. Reporting it as a crossing would have made the field
useless for the case it exists to flag.
Maps
Generated, never drawn. scripts/generate-maps.ts reads the published spatial records and
emits SVG: the same records, style version and generator produce the same file. There is no
map library, no tile server, no API key and no external request — a scientific figure that
stops rendering when a third party changes its terms is not a scientific figure.
Each map records its input spatial records, the datasets behind them, the generator and style versions, the projection, the bounds, a legend in which no class is distinguished by colour alone, and a checksum over its inputs. Attribution is composed from the dataset records verbatim rather than typed by hand, and the visual-rights gate checks it literally: drawing a figure does not end somebody else's licence.
No political boundary appears on any Lithoen map.
What no page ships
No coordinates. spatialFor() omits geometry by construction, so an entity page describes
where something is in words; atlasGeometry() is the only way to ask for coordinates, and
nothing currently calls it. Measured at the end of Phase 4: no page HTML contains a coordinate
array, and client JavaScript is unchanged from Phase 3.
Honest omissions
- No bedrock geology. The USGS-hosted GSC "Generalized geology of the world" is available as a WFS service, and its metadata page 404s. Unknown rights mean no geometry, so it is not used at all — not even as a citation.
- No craton, orogen or basin polygons. Regions here carry no geometry, because Lithoen retrieved no openly licensed dataset delimiting them. They are named, described and related from Tier A text, and the absence is visible on the page rather than filled with an outline.
- No orogenic belt records. Phase 4 holds no source that delimits or dates one. The thirteen PB2002 "orogens" are recorded as diffuse deformation zones, which is what they are.
- No palaeogeography. A published geometry carrying a geological interval fails validation. Lithoen holds no reconstruction model and will not present a modelled past position as present-day geography.
- No petroleum province polygons. The USGS World Petroleum Assessment publishes province outlines, and they are assessment units defined for petroleum assessment. Using them as "geological provinces" would be exactly the conflation of basin with hydrocarbon basin the phase set out to avoid.