FrankenMining

What the mining software stack gets wrong, and what FrankenMining is

1,788 words6 subsections1 tablePlan version 0.1

On this page6
1.1 The fossils1.2 What is already solved, and what nobody has composed1.3 The one-paragraph pitch (for a CEO)1.4 What is new here (claims of novelty, kept honest)1.5 Alongside the systems of record, never instead of them1.6 The agentic nerve centre

1.1 The fossils

Today's stack is a chain of capable tools held together by one epistemic habit: each stage hands the next a single number and throws away how it knows it. The tools support better practice; the habit is the industry's. Documented practice is marked FACT (R7 §9.1). Product-specific characterizations are HYPOTHESIS, because there is no authoritative public critique of named products (R6 §5.1).

Stage Fossil Consequence
Estimation (Leapfrog, Vulcan, Datamine, Surpac) One estimated block model. Uncertainty survives only as a resource-class label assigned afterwards. Conditional bias is reported as kriging efficiency and slope of regression where it is reported at all, and then against the estimate, not against grade-control outcomes. NGM's NI 43-101 reports for Carlin, Cortez and Turquoise Ridge report neither and classify by drill-spacing geometry (FACT, E158, E162, E163). In one published case, Localised Uniform Conditioning (LUC) estimates regressed on grade control with a slope ≈ 0.1 (FACT[U], single study, page not pinned in the corpus; E029). Capping and domaining are hidden choices.
Strategic planning (Whittle, Deswik, XPAC, Evolution) One shell at one price; a deterministic schedule. Spatial schedule compliance is reported as low as 30% (FACT, E026). No plan states how far it is from optimal, nor how wrong its inputs have historically been.
Fleet and operations (DISPATCH, MineStar, FrontRunner, Pitram) Telemetry owned by the company that sold the machine (E027). One-way integrations. Cycle-time truth is siloed from the plan that assumed it.
Reconciliation (Reconcilor, spreadsheets) F-factors as retrospective fudge multipliers. F1 and F2 errors compensate each other. Mill head grade, itself a back-calculation, is treated as truth. Nothing feeds back into the next estimate (FACT, R7 §4.3).
Plant metal accounting (historians, AMIRA P754 balances) Rigorous, but it stops at the plant gate. Disconnected from the model that predicted the feed.
Finance (S/4HANA, XERAS, spreadsheets) Cost centres, not material flows. The sustaining vs non-sustaining split in AISC is a spreadsheet judgment (R6 §4.1). The same pay metric appears on different bases in one disclosure: Barrick's 2026 Circular gives 2023–25 reserve replacement as ~190% (gold ounces) and 504% (gold-equivalent ounces), and 2025 gold AISC as $1,423/oz (pay scorecard) and $1,637/oz (non-GAAP table) (FACT, E603, E604, E605, E607).
Capital allocation Spreadsheet DCF. One-at-a-time sensitivities; risk buried in the discount rate. Capex overruns average +14% and about half fall outside the claimed ±15% (FACT, Bertisen & Davis, R7 §9.1), with no institutional learning. The fiscal, security, JV and entity-perimeter shocks that actually moved capital in 2025–26 are absent from single-entity DCF models: Loulo-Gounkoto's loss and return of control, the Hemlo and Tongon exits, and a North American IPO carve-out beside the 61.5%/38.5% NGM JV (R6 §6.6; §23.2, §23.4).
Exploration Uncalibrated scores validated by random cross-validation. Absence of evidence is read as absence. "Not looked" and "looked and found nothing" are the same zero (FACT, E028).
Tailings Conformance checklists. An offline piezometer reads as "normal" (R7 §8.4).
AI operating layers (knowledge graph plus agents; the 2025–26 wave) Reasoning over inputs that carry no reconciliation state or version. An answer cannot cite the reconciled figure it used, and its forecasts are not scored against a published baseline (HYPOTHESIS, from B5 W1–W2).

1.2 What is already solved, and what nobody has composed

Every hard sub-problem has been solved somewhere in isolation:

  • geostatistical conditional simulation;
  • AMIRA P754 metal accounting;
  • Bayesian data reconciliation;
  • reference-class forecasting;
  • proper scoring rules and conformal coverage;
  • Bayesian search theory;
  • thinned point processes from ecology;
  • pseudoflow for ultimate pits;
  • the draft JORC requirement for mandatory reconciliation (E031).

No shipping system composes them into one ledger where:

  • every number carries its support, evidence class, calibration flag and unknown-unknown term;
  • every forecast is frozen before its outcome and scored after;
  • every material decision cites both, with its alternatives and the conditions that would flip it.

FrankenMining is that composition. It is built on the frankensuite's evidence and runtime substrate:

  • asupersync's structured concurrency, cancellation, obligations and deterministic lab runtime;
  • fs-evidence's no-laundering colours and flip margins;
  • franken-evidence and franken-decision;
  • franken_accounting as the book of record;
  • frankenscipy, franken_numpy, frankenpandas, frankenjax and frankensympy for numerics;
  • frankensim's geometric primitives, sparse solvers and materials-database discipline.

1.3 The one-paragraph pitch (for a CEO)

A miner's numbers are produced by a dozen systems that each pass along a single value and discard how sure they were. The result is guidance that misses, reserves that reconcile badly, capital projects that overrun by a predictable amount, and exploration budgets that cannot say what they have ruled out. FrankenMining is a system of record for how the company knows what it knows. It reproduces every published metric from cited sources. It turns reconciliation into a calibrated attribution of where metal goes. It freezes every forecast and scores it. It puts a one-page DecisionCard in front of every material capital, reserve or dam decision, showing the alternatives, the probability-weighted outcomes, the unknowns that would flip the call, and the cheapest way to learn more. It never classifies a reserve, never signs a dam and never drives a truck. It makes the people who do those things faster, better evidenced, and accountable to a track record. It reads the systems the company already runs (the ERP, fleet, plant, laboratory and geology tools) and replaces none of them, and it gives people and AI agents one checked, cited view across all of them (§1.5, §1.6).

1.4 What is new here (claims of novelty, kept honest)

The individual methods are known (checked null on novelty, B2 §2.6, B3). The contributions this plan claims, each testable:

  1. A universal Claim object that carries an admissible unknown-unknown term. There are exactly three admissible forms: a reference-class ε-contamination, a catch-all hypothesis with a reset floor, or a flip margin whose probability is typed as not stated (§9.3).
  2. Typed absence classes (A0–A4) and two typed Bayesian-search modes (Cox vs single-target) for exploration, with partial-identification (Manski) bounds where effort is unrecorded (§11).
  3. Regenerable, certified subsurface projections. Realizations are keyed random streams, rebuilt bit-identically, with support as a type and averaging refusals for non-additive attributes (§13).
  4. The three-gap plan certificate (optimization, sampling, calibration) on every plan (§15).
  5. Reconciliation as a joint posterior. It feeds hierarchical bias priors back into estimation and refuses non-identifiable attributions (§20).
  6. Merkle-folded accounting. Each FA summary row carries the MMR root of the FrankenMining ledger slice that folds to it, so an auditor descends from a ledger leg to a truck ticket by digest (§21).
  7. One comparable capital decision object (CapitalProgram) over a shared scenario index. Pay metrics are constraints with published shadow prices, and buybacks and streams are candidates (§23).

1.5 Alongside the systems of record, never instead of them

DESIGN. A major miner has spent years and, at group scale, often hundreds of millions of dollars (owner's estimate, 2026-10-29) on its ERP (SAP S/4HANA, Oracle, JD Edwards, Pronto), fleet management, historians, laboratory systems and geology and planning tools. Those systems run the transactions, the fleet and the plant. Auditors rely on them, and the company's people know them. No such company will rip them out for a newcomer, and it should not have to. FrankenMining is designed to add the layer they lack, not to replace any of them (NONGOAL-001).

  • It reads; it never takes over. Every connector is read-only. The ERP supplies flat-file, IDoc or OData extracts. Fleet and historian systems supply content-hashed snapshots. Modelling and planning tools supply exports (§32.2). Nothing writes back to a transactional or control system (§31.3). Nothing changes how those systems are run, audited or upgraded.
  • The ERP stays the statutory ledger. At a company that runs an ERP, the ERP's general ledger remains the ledger of record. FA (§21) runs beside it as a reconciling analytical book: it rebuilds the ERP's trial balance from extracts and must agree with it, and every difference is a cited register item. Estimates that move money (NRV, depletion, ARO, royalties, survey true-ups) reach the controllers as Workpapers. The controllers post the entries in their own ERP.
  • What it adds is the evidence layer. Each existing system passes along one value. FrankenMining keeps the rest:
    • where the number came from;
    • how sure it is;
    • how it reconciles with the other systems' figures;
    • how good past forecasts of it were (§1.1–§1.4).
  • Adoption is incremental. The M0 lane needs no system access at all (§31.1, §37). The first private pilot needs a handful of read-only extracts, not an integration programme. Each further source is one more dialect in registries/io_dialects.toml, never a migration.

1.6 The agentic nerve centre

DESIGN; capabilities are TARGET until their gates pass. An AI agent at a mining company today faces a dozen systems. They give different names to the same ore, the same truck and the same dollar, and the agent cannot tell a measured figure from a guess. FrankenMining is designed to be the one place every agent reads the operation from. It is a business operating system for analysis and decision support, running on top of the systems that execute the business.

  • One typed model of the business. Sites, ventures, ore, metal, costs, plans, forecasts and decisions are typed Claims with stable ids, units, ownership basis and provenance (§8). An agent that asks for an attributable cost per ounce gets the figure with its cells, its rounding state and its knowledge state.
  • A robot-first surface. Every verb answers in one JSON envelope with typed refusals, next_actions and stable schema ids. robot-docs lets a fresh agent learn the surface from the tool, and the MCP server exposes the same verbs (§30.1–§30.3, GATE-ROBOT-01).
  • Safe by construction. Agents read and prepare; humans authorize. Agent output enters quarantine as evidence, never as authority. Walls and confidentiality bind agents unchanged, and no conduit reaches control systems (§30.4, §31.3).
  • Trust earned on the record. Agent forecasts are frozen and scored like anyone's (§10), so the company learns which agents to rely on, and for what.
  • Vendor-neutral. Avathon or any other AI platform reads anchored export projections (§32.3), so every agent's answer can cite the same FrankenMining anchor.

The ERP keeps running the transactions. People and agents get one legible, checked and cited view of the whole operation.