Evidence platform and governance
ADR-0017: MineralSystem and GeologicalFluid as entity types — and the four types Phase 3 refused
- Repository path
- docs/decisions/ADR-0017-mineral-system-entity-types.md
- Size · SHA-256
- 4.3 KB · 11f1615f007e693317b462073a417aba617f2b1c14ac558c14e6830604d60983
Status: accepted (2026-09-07)
Context
Phase 3 had to make the mineral system a first-class, machine-readable concept: a chain of source, mobilisation, transport, pathway, trap, modification and preservation, each limb addressable, queryable and individually evidenced. The temptation at this point in a project like this is to add an entity type for every noun that appears in a deposit model. That is how an ontology becomes a taxonomy of vocabulary rather than a model of the world.
Decision
Add exactly two entity types.
MineralSystem — the system, not the deposit. It carries a systemClass
(magmaticHydrothermal, magmatic, seafloorHydrothermal, basinal, metamorphic, surficial,
sedimentary) and a modelProvenance of publishedModel or lithoenSynthesis. The second
value exists so that a synthesis can never be mistaken for a published model, and the
mineral-system validator requires a synthesis to cite at least two sources in its
provenance claim.
GeologicalFluid — because what a fluid can carry is a property of the fluid and its
conditions, not of the element. Without a fluid record, a transport edge would have to
imply its medium, and "transported in solution" would be doing the work of a claim. It
carries fluidOrigin and phaseState. A sulfide liquid is recorded here with
phaseState: silicateMelt, because it is a mobile metal-carrying phase even though it is
not aqueous, and the phase state keeps the distinction visible rather than hiding it.
The four types deliberately NOT created
DepositType. A deposit type is a name for a cluster of systems that resemble one
another. Modelling it separately would create two parallel hierarchies — system and type —
that would immediately drift apart, and it would invite a catalogue of deposits, which
Phase 3 explicitly does not build. The system carries the class; the type is the model's
name for it, recorded in the model-provenance claim.
AlterationType. Alteration is a process that acts on a rock. Potassic, sericitic,
propylitic, advanced argillic, argillic, dolomitisation and serpentinisation are recorded
as GeologicalProcess entities, which is what they are, and are attached to systems
through the same pathway relation as any other process. A separate type would have gained
nothing but a second place to look.
MineralisationStyle. Style — disseminated, stockwork, massive, replacement, vein —
is a description of the form mineralisation takes in a particular system. It is carried in
claims under the mineralisationStyle predicate, where it can be evidenced and qualified.
As an entity type it would have become a set of labels with nothing to say for themselves.
ExplorationIndicator. This is the most important refusal. An indicator is not a
thing; it is a relation between an observation and a system, and it is exactly the place
where a corpus turns into a targeting tool. Making it an entity would have created a
standing list of "indicators" that reads as a checklist. It is instead the MAY_INDICATE
edge, which the validator refuses unless it carries a nonUniqueness qualifier saying what
else produces the same observation, and refuses to record as ESTABLISHED at all.
Sample, Measurement and Observation remain unnecessary for the same reason as in
ADR-0014: the corpus records values that come from published models and compilations, and
a claim's method qualifier already says how a value was obtained. A sample entity would be
a container with no contents until Lithoen holds primary analytical data of its own.
Consequences
- Entity types: 23 → 25. The count is asserted in
tests/domain.test.ts, together with an assertion that the four refused names are absent, so re-adding one requires editing the test and reading this ADR. MineralSystemgets a dedicated projection (systemArchitecture) and a page section that renders the chain in order and omits any limb Lithoen has not sourced. An empty heading would read as "this system has no source" rather than "no source was retrieved".- Nine relation pairs were added for the limbs. Every one of them is authored in the direction that puts the required qualifier on the record that makes the claim.