FrankenMining

Semantic truth model

1,269 words5 subsections2 tables1 listingPlan version 0.1

On this page5
6.1 Planes (after FSS)6.2 The value chain as a claim graph6.3 Time6.4 Identity, generations and supersession6.5 Core invariants

6.1 Planes (after FSS)

FrankenMining separates four planes. Most category errors in mining software come from collapsing them (DESIGN).

Plane What lives there Who may write Examples
Authority plane Facts the company is accountable for: observations, attestations, decisions, approved plans, posted summaries. Single-writer authority cells (§26) and content-addressed objects. Writers holding a cell lease, after laws and witnesses pass An assay result, a QP attestation, an approved LOM plan version, a reconciliation close, an FA EntryRef receipt
Cognition plane Everything inferred: belief projections, realizations, posteriors, forecasts, scores, rankings, agent analyses. Always derived and rebuildable from the authority plane plus recipes. Engines and agents, as Claims citing authority A block-model projection, P(≥1 deposit in tract T7), an NPV distribution, a drill-target ranking
Effect plane Prepared actions on the world: work orders, dig-line advice, blast designs for approval, posting intents, data releases. Never actuated by FrankenMining. Engines prepare; a human authority token releases (§31.3) EFFECT-blast-design, EFFECT-shipment-release, EFFECT-fa-post
Packet plane High-rate raw streams: fleet telemetry, plant historian tags, piezometers, GNSS, vibration. Site-sovereign, columnar, segment-sealed. Ingest regions Truck payload events, mill power at 1 Hz, piezometer readings

Agents are not a fifth plane. An agent is a principal that reads the cognition plane, proposes Claims (as Assertion or Elicited), opens investigations and drafts effects. It never writes authority directly and never upgrades evidence (§30.4).

6.2 The value chain as a claim graph

            ┌──────────────── Helm: CapitalProgram / DecisionCards (§22–23) ────────────────┐
            │                                                                               │
 Lodestar ──► Corebox ──► Strata ──► Pushback ──► Headframe ──► Crucible ──► sales/refinery │
 (prospect)   (drill,     (belief    (shells,     (blast,       (plant,      (Bullion §21)  │
  §11          assay,      ledger     schedules,   load-haul,    recovery,                   │
               QAQC §12)   §13)       cut-off §15) twin §16)     §17)                        │
                  ▲           ▲  ▲          ▲           │             │                       │
                  │           │  └─Highwall §14──┘      ▼             ▼                       │
                  │           │                     Freeboard §18 (tailings, water, closure)  │
                  │           └──────── Touchstone §20: reconciliation posterior ◄────────────┤
                  │                     (F-factors → bias priors back into Strata & Pushback) │
                  └── Hallmark §24 (register, attestations) ◄── Plumb §7–10 (claims, calibration)
                                                Muster §19 (people, CCV, budgets) feeds all ──┘

Every arrow is a set of Claims with provenance. The reconciliation loop is the system's spine, because it is the only place where predictions from Strata, Pushback, Headframe and Crucible all meet measured reality. Its posterior updates the bias priors of every upstream model (§20.5).

6.3 Time

  • Quad-temporal records (DESIGN). Valid time and record time (the bitemporal core) are not enough in mining. A blasthole is sampled before the blast, assayed hours to days later and released after QA/QC; a core interval's umpire check can arrive weeks later. Collapsing these instants leaks assays into backtests that the decision-maker could not yet see (§15.7), or puts metal in the wrong accounting period (§20). Every observation and Claim therefore carries a QuadTemporalStamp (§25.4):

    1. physical_valid_time: the interval over which the physical state held (in-situ grade until extraction; a truck movement at its instant);
    2. collection_time: when the sample, survey pickup or sensor frame was taken;
    3. availability_time: when the certificate, QA/QC disposition or processed reading became visible to a site decision-maker (availability_time ≥ collection_time);
    4. record_time: when the ledger committed it, as (cell, seq) under an anchor.

    Typical lags are a HYPOTHESIS to be measured per site lab: blasthole fire assay 1–3 days, umpire and leachwell checks 2–3 weeks. Ownership, tenure and fiscal records have no sampling lag and carry only the bitemporal core.

  • Two query modes (DESIGN).

    • as_of_decision(t_dec, anchor) serves hindcasts (§10, §11.6), dig-line backtests (§15.7), retrospective DecisionCards (§22) and MNPI release reasoning (§31.1). It keeps a record only if availability_time ≤ t_dec and record_time ≤ anchor(t_dec) (INV-016, G-TIME-2). An assay collected before t_dec whose certificate arrived after it is excluded.
    • for_physical_period([t₀, t₁), anchor) serves period reconciliation (§20) and the monthly close (§21). It groups movements, and assays that arrived after the period, by physical_valid_time, as known at the anchor.
    • Elsewhere in this plan "bitemporal" names the valid/record core, and "as known at T" means as_of_decision(T).
  • Anchors. An anchor is a vector of (cell, seq, digest) high-water marks (FMT-ANCHOR-1, adopted from FSS LedgerAnchor with cell_id and residency_epoch). Every Claim, report and certificate names the anchor it was computed at. A consumer that cannot resolve a cross-cell reference at its anchor reports stale or not_observable, never a guess (INV-012).

  • Calendars are first-class (fmine-time): fiscal periods, production months, shift patterns, fly-in/fly-out (FIFO) rosters, blast windows and lab turnaround clocks.

6.4 Identity, generations and supersession

  • Observations are immutable. A correction is a new record with a supersedes link and a reason code. History is never edited (INV-003).
  • Derived objects are content-addressed (BLAKE3 for claim bodies, SHA-256 for ledger chains and CAS chunks, which aligns with ATP). Identity is content, plus the anchor and recipe that produced it.
  • Generations: a belief specification, plan, price deck or metric definition has a version. Every Claim names the versions it depends on, and staleness is computed, not remembered (INV-013).

6.5 Core invariants

ID Invariant Enforced by
INV-001 No number crosses a crate boundary except as a Claim, or as a typed quantity inside a Claim-producing engine's private API. Type system; xtask check-claims lint on public signatures
INV-002 The four flags reserve_disclosure_claim, execution_authorized, geotechnical_signoff and regulatory_compliance_claim are false in every envelope. No code path can set them. Envelope type has no setter; golden test
INV-003 Authority records are append-only. Corrections supersede; nothing is edited in place. Ledger API; hash chain
INV-004 Each authority cell has exactly one writer per epoch, and lower-epoch batches are refused. Lease and fencing (§26.3)
INV-005 Conservation holds at commit for every material-flow node and period within the registered measurement tolerance; otherwise the commit is refused, never plugged. fmine-flow laws (§20.2)
INV-006 Evidence class, colour, knowledge state and calibration never upgrade through derivation (NL-1…NL-8). fmine-claim algebra; property tests
INV-007 Confidentiality is monotone: derived ≥ join of inputs. MNPI-derived bytes never reach a public export. Taint lattice; export fuzzing
INV-008 Every registered forecast has record time strictly before its outcome's valid time. Ledger check at registration and at scoring
INV-009 A Refused value never becomes a number downstream without a declared fallback. Type-level plus tests
INV-010 The same inputs, seed, code revision and determinism class produce the same certificate digest. Determinism lanes in CI
INV-011 No FrankenMining process holds a write path to ISA-95 Levels 0–2. Architecture; check-deps; deployment review
INV-012 Cross-cell references resolve at the consumer's anchor or yield stale/not_observable. Gluing checker on anchor publish
INV-013 A Claim whose dependency version (belief spec, price deck, metric definition, calibration record) is superseded is marked stale on read. Dependency index
INV-014 Support is part of a quantity's type. Averaging across supports, or averaging non-additive attributes, is refused. fmine-units and fmine-geostat support types (§13.4)
INV-015 A decision-facing Claim carries exactly one admissible UU term (§9.3). Guard G-UU
INV-016 No operational hindcast, forecast registration or short-term decision backtest (as_of_decision(t_dec)) may condition on an observation whose availability_time > t_dec, even if its physical_valid_time <= t_dec. QuadTemporalStamp filter; guard G-TIME-2; PO-TIME-2