Touchstone: reconciliation, the truth signal
3,760 words12 subsections8 tablesPlan version 0.1
On this page12
Reconciliation is the one place where every model in a mine meets reality. FrankenMining treats it as a joint state estimate with uncertainty over the material-flow graph, not as a ratio of two estimates. It is the wedge's engine (B5 H-f; §37 M1–M2).
Crates:
fmine-flow: the material-flow graph and conservation laws.fmine-recon: the estimation engine. It usesfmine-infer(NUTS, Kalman smoothing) and lifted sparse linear algebra.
20.1 The material-flow graph (mine to market)
| Node class | Examples | Quantities | Typical measurements (error model from §12.5) |
|---|---|---|---|
| In-situ volumes | Resource-model and GC-model projections over the as-mined solid (§13.7, §16.2) | Tonnes, metal per element (model claims at their supports) | Survey volumes, density field |
| Blasted and dug | Blast polygons shifted for movement (§16.3), dig blocks | Tonnes, metal | Truck counts × payload, bucket counts |
| Transport | Truck loads by destination | Tonnes (wet), assigned polygon probabilities | Payload weighing, FMS cycles |
| ROM pads, stockpiles, heaps | Grade-binned stockpiles, long-term low-grade, leach pads | Tonnes, metal, latent inventory | Periodic surveys, reclaim records, leach curves |
| Plant | Crusher feed, mill feed, intermediate streams, concentrate, tails, doré, cathode | Dry tonnes, metal, water | Weightometers, samplers, slurry analysers, stocktakes |
| Products and market | Shipments, refinery outturn, smelter settlement | Payable metal | Draft surveys, assay exchange, outturn statements |
| Cross-complex and third-party sources | Ore from another complex, purchased concentrates, toll feed | Tonnes, metal, owner | Back-allocation only; Carlin plants take Cortez ore and third-party concentrates, and "it is not possible to break out individual sources beyond what is back allocated" (FACT, E157), so source attribution is a §20.6 identifiability question |
| Waste and tailings | Dumps by class (PAG, NAF), TSF | Tonnes, S, metal losses | Surveys, tailings samplers |
- Edges are typed transfers with valid time.
- Time alignment is explicit:
- stockpiles, pads and plant inventories decouple mining time from processing time;
- the graph is a state-space model over periods, not one static balance;
- a period's reconciliation is never computed as "mined this month ÷ milled this month" across a stockpile (guard G-TOUCH-3).
20.2 Conservation laws (INV-005)
- The law. For every node, period and extensive quantity q (dry tonnes, water, metal per element): Σ in − Σ out − Δ inventory = 0, within the registered measurement tolerance.
- Reconcile extensive quantities only. Tonnes and metal are reconciled as extensive variables, which keeps the constraints linear. Grades are derived (metal ÷ tonnes) after reconciliation and never reconciled directly. This mirrors Strata's remap rule (§13.4).
- Commit refusal. A period whose reconciled residuals fail the gross-error test is not committed (FMINE-REF-101). It becomes an InvestigationCase with the suspect measurements ranked.
- No plugs. A survey true-up, stocktake or outturn adjustment is a measurement with an error model and evidence, never an unexplained balancing figure. "Unaccounted metal" is a posterior quantity with an interval, attributed where identifiable (§20.6) and explicitly unattributed where not.
- Published balancing rows are latent terms. NGM's "GC adjustment" line sits between theoretical feed (mined − feeder-pad change) and GC call: −49, +20 and +25 koz across three plants (INFERENCE, C2 §4.2b). Kibali's "GC Adjustment" row carries −10,466 t at −31.15 g/t (FACT, E207); Loulo's stockpile-change row carries a negative grade (E208). Touchstone models each as an explicit latent term (feeder-pad survey and grade error).
- Import rule. Importers store printed reconciliation cells verbatim, recompute every ratio and t·g → oz
identity, and file mismatches beyond rounding as
DiscrepancyRecords citing both pages. A residual row is imported as (Δt, Δoz) with grade =NOT_DEFINED. Fixtures: Kibali's 2024 MCF row recomputes to 107.1/94.6/101.2% against a printed 100/96/95% (E206); Kibali Tables 6-2 and 15-27 disagree for the same years (E241); Loulo's RCF plant ounces print 683,184 against 753,220 elsewhere (E209).
20.3 Reconciliation as joint state estimation
| Level | Method | Purpose | Status |
|---|---|---|---|
| R0 Parity | Reproduce the site's own monthly reconciliation pack (F1/F2/F3, tonnes/grade/metal) from the same inputs and conventions | Trust: "we get your numbers first, and every difference is explained" (B5 M2 acceptance 1) | DESIGN; mandatory |
| R1 Linear data reconciliation | Weighted least squares on the linear constraints: x̂ = x − ΣAᵀ(AΣAᵀ)⁻¹Ax, with posterior covariance Σ − ΣAᵀ(AΣAᵀ)⁻¹AΣ; global χ² and per-measurement tests (FACT[U], R7 §7.6) | Closes balances with honest uncertainty; finds gross errors | DESIGN; P0 |
| R2 Hierarchical Bayesian state-space | Latent inventories over periods (Kalman smoother in the linear-Gaussian case); bias terms per measurement node and per domain-period with hierarchical priors; Student-t likelihoods for gross-error robustness; stockpile mixing model (well-mixed vs layered vs FIFO) as a model choice with evidence | F-factors as bias posteriors; learning across periods; attribution | DESIGN; P1, NUTS via fmine-infer |
| R3 Model-integrated | Strata realizations at T_resource and T_gc projected over the as-mined volume give prior predictive distributions for in-situ nodes; Crucible cards give plant node priors | The posterior is consistent with the belief ledger, so its residuals become Strata's bias priors | DESIGN; P2 |
Why R2 rather than ratio factors:
- F1 and F2 errors can cancel and hide problems ("mutual compensation"; FACT, R7 §4.3).
- The mill head grade is itself an estimate back-calculated through metallurgical accounting, not truth (FACT, R7 §4.3).
- Stockpiles decouple mining from milling in time.
- Factors applied as fudge multipliers creep (FACT, R7 §4.3).
A state-space posterior handles all four by construction, and it says when the data cannot separate two explanations.
20.4 F-factors as posterior quantities
-
Definitions are registry data, because variants differ by company (FACT, R7 §4.3; R6 §6.1):
- F1 = GC model ÷ depleted resource (or reserve) model over the mined volume;
- F2 = mill received ÷ mine delivered (GC model);
- F3 = F1 × F2;
- F0 (reserve ÷ resource), F2′ (post-blast, accounting for swell; FACT, R6 §6.1, AusIMM 2022) and the South African mine call factor (MCF) are also defined.
Each definition is versioned and named in every output.
-
Site-specific definitions registry (FACT; C2 §4.2, C3 §3.1). At Barrick's own sites the same names mean different numerators and denominators:
Registry key Numerator Denominator Support Source F1.barrick_kibali.conversionShort-range (GC) model Long-range model Areas converted Ind→Meas, year on year (not the mined volume) E203 MCF_out.barrick_africaMill check-out (bullion + inventory change) GC call Plant year or month E204 MCF_in.barrick_africaMill check-in (grade reconstituted from CIL and gravity sampling) GC call Plant year E210 MCF_t.barrick_loulo/MCF_g.barrick_louloTails tonnes / check-out grade GC call tonnes / grade Plant year E205 RCF.barrick_louloPlant check-out Resource model over the 3D mined volume Plant year E209 MCF_out.ngmMill check-out GC call (tonnes, grade, metal) Plant year E154–E156 NGM's MCF out sits closer to F2 than to F1, and no NGM F1 is public (DATA-GATE). Kibali's "F1" is a model-to-model conversion factor, not the plan's F1, so G-TOUCH-4 renders the registry key, never the bare label.
-
Each factor is reported as a posterior for tonnes, grade and metal, with an interval, per domain and period, together with the bias decomposition behind it.
-
Compensation detector. When F3 ≈ 1 while F1 and F2 each deviate in opposite directions beyond their intervals, the period is flagged "compensating errors" and opened as an InvestigationCase. The good-looking F3 is not reported alone. Reconciling against production "must be used strictly together with" reconciling against grade control (E385).
- The detector also runs inside one factor, tonnes against grade: the Goldstrike Roaster's tonnes 109% and grade 94% net to metal 102% (FACT, E154).
- Public case and known answer
KA-TOUCH-KIBALI-2016-2025(100% basis; Barrick 45%): Kibali's open-pit GC call held fewer ounces than the raw GC model in every year (−2% to −13%), with more tonnes and lower grade from 2022, while the 2025 mill MCF (out) read 100/101/101, with +2.6% check-out over check-in (FACT, E210–E212). It supplies ten years to fit a signed bias prior.
-
Tolerance bands. No published industry benchmark for typical F1/F2/F3 tolerance bands exists; the ±5–10% figure is practitioner lore (INFERENCE: a checked null in R6 §6.1). FrankenMining therefore reports intervals, not band compliance. Bands, where a company has them, are policy data.
20.5 Bias priors back upstream (the learning loop)
| Posterior residual | Updated object | Mechanism |
|---|---|---|
| In-situ metal bias by domain and period (resource vs GC vs mill) | Strata L2 bias_prior per domain (§13.3) |
Hierarchical update; the next estimate carries the learned bias with its uncertainty |
| Density bias | Strata density field and regression card | Card refit through an InvestigationCase |
| Payload and truck-factor bias | Headframe per-truck payload model (§16.4) | Hierarchical per-truck and fleet bias |
| Sampler and weightometer bias | Crucible measurement node models (§17.5) | Bias term with an eproc drift monitor |
| Stockpile survey and bulking bias | Headframe survey-epoch model (§16.2) | Bulking factor posterior |
| Dilution and ore loss beyond plan | Pushback dig-line and blast-movement models (§15.7, §16.3) | Card refit; registered before/after test |
| Recovery card residuals | Crucible cards (§17.3) | Refit through an InvestigationCase |
| Source-specific bias (open pit, underground, stockpile) | Bias priors keyed by mining source | Porgera 2007–2011 shows opposite signs: underground declared ore +36% oz against reserve, open pit −8% (FACT, E298) |
-
Dilution attribution. Residual dilution and ore loss are attributed to internal, planned, accidental and geologic sources (E399; §15.5).
-
Safeguards. Every update is a logged event with the evidence cut. A surprise monitor alarm (§10.4) routes the update through an InvestigationCase; there is no silent retraining (anti-goal, §4.3).
-
The difference from factor multipliers:
- a factor multiplier says "multiply next month's GC estimate by 0.93";
- a bias posterior says "the GC model in domain 12 has over-estimated metal by 7% ± 2% over 9 periods, the bias does not depend on bench, and here is the evidence".
The latter can be audited, tested and retired.
20.6 Identifiability, attribution and the value of measurement
- Identifiability analysis. Before any attribution, the engine computes posterior correlations among bias terms. It also checks the rank of the observation operator restricted to the bias parameters.
- Refusal FMINE-REF-104. When two biases are not separately identifiable (posterior |correlation| > 0.8 and the split is prior-dominated), the engine refuses to attribute. It reports what is determined (their difference or sum) and what measurement would separate them (GB-25).
- Measurement VOI. For each non-identifiable pair, the engine estimates the posterior-variance reduction and
decision value of candidate measurements, using the Helm VOI machinery (§22):
- a sampler audit;
- a cross-belt analyser campaign;
- a stockpile resurvey;
- check-assay round-robins;
- density programmes;
- a reconciliation-grade sample of grade-control holes.
- Detection power is stated. For each measurement node, the bias size detectable over one quarter at the declared power and false-alarm rate is computed and published (B5 M1 acceptance).
20.7 Forecast registration and disclosure-grade reconciliation
- Registered forecasts. Before each period, the resource-model, GC-model and plant forecasts of tonnes, grade and metal for the planned volumes are registered (§10). After the period, they are scored against the reconciliation posterior, not against a single measured number.
- Reporting codes. The JORC exposure draft proposes a mandatory reconciliation section (final wording and commencement unverified; JORC 2012 remains in force; E031). Touchstone produces the reconciliation evidence package and a draft reconciliation section for the CP's review (§24). The CP writes and signs the disclosure.
20.8 Stockpiles, heaps and inventory as latent states
-
Stockpile states. Tonnes and metal per element are posteriors updated by inflows (with their GC grade uncertainty), reclaims and surveys. Surveys reset the tonnage uncertainty but not the grade uncertainty.
- Parcel provenance (
StockpileVoxelTwin; DESIGN). Where FMS dump events and loader GPS exist,fmine-flow::stockpilekeeps a voxel model (2.5–5 m, on the liftedVdbGrid). Each dump places a parcel with its source polygon and angle-of-repose spreading; each reclaim cut removes voxels and passes their parcel mix and age to the crusher feed; each voxel integrates its oxidation exposure θ_ox(v, t) = ∫ r_ox(T, O₂, S²⁻) dτ since dumping, which indexes Crucible's degraded-recovery card and Freeboard's ARD source term (§18.5). - Plant cone and surge inventory. The cone between crushers and mills is a latent inventory, not a constant. Pueblo Viejo's 2025 MCF reconciliation opens with 281.7 kt at 2.41 g/t and closes with 352.1 kt at 2.44 g/t (FACT, E666), a 70 kt swing that the monthly balance must carry.
- Mixing model. Without dump and reclaim positions, stockpile grade at reclaim depends on a declared mixing model (well-mixed, layered/FIFO, or campaign-separated). The reconciliation compares the candidates' predictive performance, and the voxel model is one more candidate where its data exist.
- Parcel provenance (
-
Stockpile tracking practice (FACT, E194). Cortez records each truck's majority block ID, grade and constituents, corrects tonnage to survey, scores each pile annually, and sonic-drills piles on a 15–18 m grid. These are the observations the stockpile state consumes; sonic-drill intercepts also condition voxel grade and oxidation state.
-
Stockpile metallurgical state (DESIGN; C4 P3). Per pile, lift or voxel, carry Stot, S²⁻, Ctot/Corg and exposure age as posteriors, with a declared degradation model. Crucible's recovery card is indexed by that state, and the same oxidation latent feeds ARD (§18.5). Pueblo Viejo: stockpiles hold 6.0 of 20 Moz of reserves and supplied 70.6% of 2025 crusher feed; recovery falls to 74% for one ore type above 8.5% Stot; the stockpiles are Probable only because sulphur degradation affects recovery (FACT, E252–E255, E258). The §24.4 support pack shows the degradation uncertainty; the class remains the QP's call.
-
Heap leach and gold-in-circuit inventories are latent states with leach-curve dynamics (§17.3, GB-20). A multi-lift pad (Veladero, Cortez, Carlin, Zaldívar) is discretized by lift ℓ and irrigation panel c (DESIGN): ṁ_PLS(t) = Σ_{ℓ,c} M_ℓc · R∞(domain_ℓc, P80_ℓc) · h_ℓc(t − t_irrig,ℓc; Z_ℓ, q_ℓc(t), κ), with Z_ℓ the drainage depth through the lifts below, q_ℓc the application flux (L/h/m²) and κ a channelling parameter. PLS flow and grade update the posterior over (κ, R∞) and the recoverable inventory per cell. The site book is usually a recoverable-basis roll-forward (E275), stored as
MetalStage::Recoverable(§25.2), and Touchstone reconciles the cell posterior against it every month. -
Accounting hand-off (§21.5). Inventory posteriors feed FA through Bullion:
- quantity and cost layers;
- NRV tests at a price basis set per inventory class by policy (expected selling price for doré, concentrate and metal in circuit; long-term price only where the book's policy allows it for long-term stockpiles); a degrading long-term stockpile is valued at the recovery expected at its scheduled reclaim date, not today's;
- current vs non-current classification of long-term stockpiles.
A true-up is posted as an
Adjustingentry with the survey or reconciliationWorkpaperas evidence (FACT, R4 §7: FA records, FrankenMining computes).
20.9 The reconciliation certificate
Every committed period produces a ReconciliationCertificate. It extends the ReconciliationWitness of §13.11:
| Field | Content |
|---|---|
| Inputs | Evidence cut; measurement set with error-model versions; F-factor definition versions |
| Parity | R0 differences from the site's pack, each explained or refused |
| Balance | Pre- and post-reconciliation residuals per node; χ² statistics; gross errors detected and their disposition |
| Posteriors | Node quantities, F-factors, bias terms (mean, interval), latent inventories |
| Identifiability | Pairs refused attribution, with the separating measurement and its VOI |
| Forecast scores | Registered forecasts for the period and their scores |
| Attestation | The site reconciler or metallurgical accountant signs (Reviewed{against}); FrankenMining never signs |
| Determinism | Replay digest (same inputs and seed ⇒ same certificate digest) |
20.10 Synthetic truth, known answers and gates
The synthetic-truth generator (fmine-gen, §33.3) builds open-pit Au and Cu–Au mines with seeded biases in:
- the resource model;
- dilution and ore loss;
- stockpile survey and bulking;
- mill sampler;
- density;
- truck payload.
The generator produces every measurement the real graph has, with known error models.
| Gate / kill | Threshold (TARGET) | When | Fallback |
|---|---|---|---|
| GATE-TOUCH-01 (R1 known answers) | Linear reconciliation unbiased with the stated covariance on synthetic flowsheets; gross errors of stated size detected at stated power | M1 | — (must pass) |
| ✖ GATE-TOUCH-02 (bias recovery) | Over ≥ 200 replicates, 90% intervals on each injected bias cover truth 85–95% of the time; the metal balance closes within stated uncertainty; non-identifiable pairs return FMINE-REF-104, not a number; detection power for a 5% sampler bias over one quarter stated | M1 (B5) | Kill if coverage is outside 80–97% after one fix cycle, or identifiability is not characterised. Fallback: no site proposal on reconciliation; lead with the metric engine (§21.6) and capital (§23) |
| GATE-TOUCH-03 (parity) | Site pilot: the site's F1/F2/F3 reproduced from the same inputs, every difference explained | M2 | Parity-only deliverable |
| ✖ GATE-TOUCH-04 (material finding) | ≥ 1 material finding (pre-registered as ≥ 1% of contained metal or ≥ a $M/yr threshold set with the sponsor) attested Reviewed{against} by the site QP or metallurgist as new and plausible |
M2 (month 12) | B5 F8 "checked null": a well-reconciling site yields a certified clean bill, the second pilot site is engaged, and the program gate at month 12 weighs it (§37) |
| GATE-TOUCH-05 (hindcast) | 8–12 historical quarters run rolling-origin; coverage reported with a small-sample caveat | M2 | — |
| GATE-TOUCH-06 (public known answers) | The §20.4 registry reproduces the published Kibali 2016–2025 MCF series, the Pueblo Viejo 2025 stock-and-flow table (stockpile additions inferred at about 4,560 kt; E258, E259) and the Porgera 2007–2011 source tables, with every irreproducible cell filed as a DiscrepancyRecord |
M1 | Fixtures only |
20.11 Guards and proof obligations
| Guard | Condition | Action |
|---|---|---|
| G-TOUCH-1 | Grade reconciled directly instead of tonnes and metal | FMINE-REF-103 |
| G-TOUCH-2 | Attribution requested for a non-identifiable pair | FMINE-REF-104 |
| G-TOUCH-3 | Period ratio computed across a stockpile without the latent-inventory model | Refuse; require the state-space form |
| G-TOUCH-4 | An F-factor rendered without its definition version and interval | Refuse the render |
| G-TOUCH-5 | A factor applied as a multiplier to a future estimate | Refuse; require a bias prior through Strata (§20.5) |
| G-TOUCH-6 | A grade is imported or rendered on a residual (difference) row | Store (Δt, Δoz) with grade NOT_DEFINED; file a DiscrepancyRecord |
| G-TOUCH-CAVE | Block-cave draw-point samples used as the grade-control term of F1 for reserve verification | Refuse; they are admissible only as observations of cave-draw grade (E386) |
| PO | Statement | Verification |
|---|---|---|
| PO-TOUCH-1 | R1 reconciled estimates satisfy every constraint exactly (to 1e-9 relative) | Property test |
| PO-TOUCH-2 | R1 posterior covariance matches Monte Carlo on synthetic flowsheets | Statistical test |
| PO-TOUCH-3 | The R2 Kalman smoother equals the batch Gaussian posterior on linear-Gaussian cases | Known-answer test |
| PO-TOUCH-4 | NUTS posteriors match conjugate known answers within Monte Carlo error; R̂ < 1.01 and ESS above the threshold are required for publication | Diagnostic gate |
| PO-TOUCH-5 | Bias recovery coverage (GATE-TOUCH-02) | Synthetic replicates |
| PO-TOUCH-6 | Certificate digest is replay-stable | LabRuntime replay |
20.12 Galaxy-brain cards (illustrative values)
GB-24 · One month of tonnes, reconciled.
- Measurements.
- Truck tonnes: 1,000,000 t, σ = 3%.
- Mill weightometer: 960,000 t, σ = 1%.
- Stockpile change from survey: +25,000 t, σ = 15,000 t.
- Imbalance. r = 1,000,000 − 960,000 − 25,000 = 15,000 t.
- Equation. x̂ = x − ΣAᵀ(AΣAᵀ)⁻¹r, with AΣAᵀ = 1.217×10⁹.
- Reconciled.
- Trucks 988,909 t (−11,091).
- Mill 961,136 t (+1,136).
- Stockpile +27,773 t (+2,773).
- χ² = 0.185 (p ≈ 0.67): no gross error.
- Metal.
- Mine-claimed 988,909 t × 1.20 g/t = 38,153 oz.
- Mill-received 961,136 t × 1.10 g/t = 33,991 oz.
- Stockpiled 536 oz.
- Unexplained 3,626 oz (9.5%), so F2(metal) = 0.904.
- Intuition. The least precise measurement (truck counts) absorbs most of the tonnage correction. Over many months that becomes a payload-bias posterior. The 9.5% metal gap is the real question, and GB-25 asks who owns it.
- Assumptions. Independent Gaussian errors; one period; the stockpile grade is known (it is not; R2 makes it a latent state).
- Flip. A χ² p-value < 0.01 → gross-error InvestigationCase before any F-factor is published.
GB-25 · Whose fault is the missing 9.5%? (identifiability and the value of an audit)
- Model.
- The observed F2 log-ratio y = b_gc − b_mill + ε = −9.6%, with σ_ε = 1.5%.
- Priors: b_gc and b_mill ~ N(0, 5%) each.
- Posterior from F2 alone.
- b_gc − b_mill = −9.6% ± 1.5% (determined).
- Individually, b_gc = −4.6% ± 3.6% and b_mill = +4.6% ± 3.6%, with correlation 0.92.
- The even split simply mirrors the equal priors, so attribution is refused (FMINE-REF-104).
- After a mill-sampler audit. An audit measures b_mill = +1.0% ± 2.0%. Then:
- b_gc = −7.1% ± 2.2% (95% interval excludes 0);
- b_mill = +1.8% ± 1.8%.
- Intuition.
- Without an independent measurement, any "it's the grade-control model" story is a prior dressed as a finding.
- One audit turns a ratio into an attributable, ≥ 1%-of-metal finding: the kind GATE-TOUCH-04 requires.
- Assumptions. Linear-Gaussian; no stockpile or density terms (R2 includes them, which widens the posterior).
- Flip. The audit shows b_mill ≈ −9% → the mill sampler owns the gap, and the GC model is exonerated. Either way, the decision is which party fixes what, and that is a DecisionCard.
Open questions.
- OPEN-TOUCH-1. The pilot site's F-factor definitions and pack conventions (R0 parity depends on them).
- OPEN-TOUCH-2. Whether the GC model is produced in other software and must be ingested as an observation (OPEN-STRATA-3).
- OPEN-TOUCH-3. Stockpile mixing-model evidence at the pilot (reclaim sampling).
- OPEN-TOUCH-4. Whether the CP will accept a reconciliation-section draft for JORC 2026-style disclosure.