FrankenMining

Testpit: verification

1,077 words6 subsections5 tablesPlan version 0.1

On this page6
33.1 Four claims, never conflated33.2 Oracles: pinned, separate, never regenerated from the candidate33.3 Synthetic truth (fmine-gen)33.4 Property, metamorphic and replay tests33.5 End-to-end scripts and logging33.6 The offline verifier (fmine-verify)

33.1 Four claims, never conflated

A result may be described only by the claim its evidence supports. Each claim type has its own evidence, gate family and permitted wording.

Claim What it proves What it does not prove Evidence Permitted wording
Parity FrankenMining reproduces a reference tool or a published number from the same inputs That either is right Pinned oracle fixtures (§33.2); public filings "reproduces X to tolerance t"
Known answers FrankenMining recovers seeded truth on synthetic data, with calibrated intervals That real deposits behave like the generator fmine-gen replicates, SBC, coverage (§33.3) "recovers injected biases with c% coverage over n replicates"
Reconciliation Forecasts agree with mined and processed reality, scored after the fact That the next period will The calibration ledger (§10); hindcasts; reconciled outcomes (§20) "80% intervals covered k of n outcomes"
Performance Speed and scale targets are met on named hardware Correctness Benchmarks with hardware, data size and seed recorded "p99 = x on host H at size N"
  • A gate names exactly one claim type.
  • A demo, a slide or a report that mixes them, for example by citing a performance number as evidence of correctness, fails review.

33.2 Oracles: pinned, separate, never regenerated from the candidate

  • The rule. An oracle fixture is produced by a pinned external tool or a published source, in a separate lab runner. It is content-addressed and never regenerated from FrankenMining output. Regenerating a fixture needs a bead, a reason and a reviewer who is not the author of the code under test.
  • No oracle appears in the runtime or CI dependency graph of production crates (GATE-ORACLE-01).
Domain Oracle(s) Used for
Pit limits and scheduling MineFlow, MineLib instances (UPIT, CPIT, PCPSP); fsci maximum_flow; fnx preflow_push GATE-PUSH-PIT1, KILL-PUSH-*
LP, MILP, QP HiGHS (lab lane only); fsci linprog/milp GATE-PUSH-BLEND, KILL-PUSH-PDLP
Geostatistics GSLIB-style reference implementations; fs-uq KlExpansion, fs-bo Gp; fsym-derived gamma-bar integrals GATE-STRATA-G1
Exploration USGS three-part assessments and MapMark4 GATE-LODE-P2
Reconciliation and metallurgical accounting AMIRA P754 worked examples; published two-product formula cases; fsym-derived balances GATE-TOUCH-01, GATE-CRUC-01
Metrics World Gold Council AISC/AIC guidance examples; issuer filings GATE-BULL-01/02
Geotechnics Published slope-stability benchmark problems GATE-HIGH-01
Formats and CRS PROJ, GDAL, PDAL/LAStools, libE57Format, ezdxf GATE-PORT-01, PO-CRS-1
Numerics fnp-linalg, fsci, fsym exact rationals Kernel known-answer tests
Accounting FA conformance workspace (fa::Book embedded, isolated) INT-FA-001

Fixture capture record. {oracle, version, platform, inputs digest, outputs digest, command, captured_by, date, licence}, stored next to the fixture in fixtures/ and counted against the fixture-bytes budget (§28.4).

33.3 Synthetic truth (fmine-gen)

The generator builds worlds whose truth is known and sealed: the engine under test never sees it, and only the scoring harness opens the seal.

World Seeded truth Exercises
Open-pit Au mine Geology, grades, density; biases in resource model, dilution, survey, sampler, density, moisture Strata, Touchstone, Bullion, Pushback
Open-pit Cu–Au mine with flotation Plus recovery-geomet transfer and concentrate custody Crucible, Touchstone, metrics with by-products
Underground stoping Au mine Stope geometry, overbreak, ventilation demand Headframe, Highwall, underground scheduling
Heap leach Leach kinetics and a latent inventory GB-20 style inventory posteriors
Synthetic district A thinned marked point process with known deposits, effort and detectability Lodestar SBC and coverage (GATE-LODE-P1)
Synthetic company Several sites, ventures, walls and an FA book Bedrock sync, walls, the FA bridge, group metrics

Control and misspecification conditions.

  • Correctly specified control. Monitors must raise false alarms at ≤ α, with sharpness loss < 10% (GATE-PLUMB-E5, KILL-PLUMB-6).

  • Misspecified variants:

    • wrong variogram;
    • wrong domain boundary;
    • an out-of-model fault;
    • non-stationary grade;
    • a biased capex process.

    The layered epistemic stack must restore coverage after an alarm (GATE-PLUMB-E3).

  • Identifiability probes. Pairs of biases that cannot be separated must produce FMINE-REF-104, not a number (GATE-TOUCH-02).

33.4 Property, metamorphic and replay tests

Family Examples
Property No-laundering (compose never promotes); conservation at commit; taint monotonicity; exact unit round-trips
Metamorphic Splitting or merging stockpiles and lots leaves balances unchanged; permuting input order leaves digests unchanged; changing units or CRS and back is the identity; adding a zero-length interval changes nothing
As-of replay A query at a past anchor returns bit-identical answers before and after later data arrives (GATE-PLUMB-E2)
Hindcast Rolling-origin evaluation with as-known-at inputs only; no hindsight (§22.6)
Lab LabRuntime schedules, chaos and crash points for every protocol (§26.7)
Fuzz One target per decoder; the envelope; the verb parser (§32.4)

33.5 End-to-end scripts and logging

  • Every milestone acceptance criterion has an e2e script under tests/e2e/ that runs against real binaries (fmine, fmined) on generated worlds. There are no mocks of FrankenMining components.
  • Scripts log structured NDJSON: step, command, anchor before and after, exit code, refusals, certificate digests and timings. A failing run leaves a CrashPack that reproduces it.
  • A human-readable summary is rendered from the log. The log, not the summary, is the evidence.

33.6 The offline verifier (fmine-verify)

An auditor, partner or regulator can verify, offline and without FrankenMining's services:

  • certificate chains (inputs closure, code revision, seed, determinism class, output digest);
  • MMR consistency proofs for cell ranges;
  • CAS object Merkle roots;
  • Merkle-folded posting detail against FA rows;
  • that a BitwisePortable result regenerates bit-identically from its snapshot.

It is std-only, small (budget 12k) and has its own conformance fixtures.

Gate Threshold When
GATE-ORACLE-01 No oracle crate or tool in any production posture closure; every fixture has a capture record From commit 1
GATE-GEN-01 The sealed-truth harness: a test that reads truth outside the scoring harness fails CI M1
GATE-E2E-01 Every milestone acceptance criterion has a passing e2e script with structured logs Each milestone