Portal: industry interoperability inside a closed universe
1,170 words4 subsections2 tablesPlan version 0.1
On this page4
32.1 The rule
Production code is either lifted (with provenance and a licence check) or reimplemented. Foreign tools are pinned lab oracles: they capture fixtures, and those fixtures are never regenerated from the candidate (§33.2).
Quarantine-on-import. Every import follows the same pipeline:
- bytes land in a read-only staging area inside
ImportQuarantineRegion(no TIME, no RANDOM, no REMOTE); - a pure-Rust parser decodes them under a byte and time budget;
- a dialect row declares the unit, basis, support and CRS of every column, or the column stays
UNREGISTERED(FMINE-REF-106/107); - the parsed records become evidence in a cell, citing the original file's CAS digest;
- the import report lists rejected rows with reasons. Nothing is silently dropped.
Import rules from the corpus.
- Header text is not semantics. A column's basis (contained vs recovered; 100% vs attributable) is asserted in the dialect row and checked by an identity test (Kibali's "Contained Gold" column holds recovered ounces; E240).
- Workbooks are label-anchored. Spreadsheet rows drift between releases (E121), so xlsx tables are located by
label, not by row number, and
#REF!residue is excluded (E120). - Textbook guideline tables are imported with column names mapped to neutral terms (e.g. "guideline cut-slope angle"); the word "safe" never reaches a rendered label (E398; G-FREE-1).
- Draft documents. Every
DocLocatorcarriesDocApproval; cells sourced from an unapproved revision cap atconflictedorstale(RISK-29). - Rights. The corpus textbooks (Abzalov, Applied Mining Geology; Waltham, Foundations of Engineering Geology; Lacy; a lecture note) are reference-only. The plan cites their pages. Shipped fixtures are synthetic and re-derived from the cited method; a textbook's own tables and worked numbers are used only as a private cross-check and are never shipped (C6).
32.2 Formats and systems
| Format / system | Posture | Oracle | Note |
|---|---|---|---|
| OMF v2 | Reimplement a minimal Parquet subset (audit done, E858). The omf-rust (MIT) schema/JSON layer is built on serde, serde_json, schemars and chrono, so it is not lifted as is: BD-194 rewrites it unless the owner admits serde |
Pinned omf-rust build, lab lane only | FACT (E858): OMF v2 stores arrays as Parquet inside a zip of stored members. omf-rust needs parquet for every array and imports chrono directly (both banned, L-5). Its writer uses Parquet 2.0 pages, GZIP, PLAIN, no dictionary and no repeated fields. The subset reads that profile and refuses the rest. OPEN-B4-06 closed. |
| LAS 1.4 | Reimplement (fixed binary layout) | PDAL / LAStools | — |
| LAZ | Lift a pure-Rust laszip decoder after a licence check, or defer | LAStools | Decode first, encode later |
| E57 | Reimplement a subset (XML + CRC'd binary pages; cartesian, intensity, pose) | libE57Format | — |
| GeoTIFF / DEM | Reimplement TIFF baseline + GeoKeys (none/deflate/LZW) | GDAL | — |
| DXF | Reimplement an ASCII subset (LINE, (LW)POLYLINE, 3DFACE, POINT, layers) | ezdxf / ODA | DWG is out of scope |
| CRS | fmine-crs (§25.5) |
PROJ | — |
| acQuire, Datamine, Surpac, Leapfrog, Deswik | Dialect registry registries/io_dialects.toml over their CSV, OMF, DXF and string-file exports. Surpac .str text is reimplemented; Datamine .dm enters only through export. |
Vendor exports as fixtures | Units and CRS declared or UNREGISTERED |
| SAP S/4HANA | Read-only flat-file or IDoc extracts, or OData JSON over asupersync HTTPS. No RFC SDK. | Sample extracts | SAP remains the ERP and the statutory ledger. FA runs beside it as an analytical book that rebuilds SAP's trial balance from extracts and must agree with it (§1.5). FM↔SAP is snapshots (work orders and spares in §16.5). |
| Fleet management (DISPATCH, MineStar, FrontRunner/Modular, Wenco, Pitram) | External collectors publish content-hashed immutable snapshots into quarantine. Engines read snapshots only. | Vendor exports | FrankenMining never writes back to dispatch or autonomous haulage (§31.3) |
| Historians (AVEVA PI and others) | Exported snapshots, or a read-only OPC UA client on a DMZ relay, outbound-only | Recorded sessions | Tag maps are versioned registry rows (§16.9) |
| Public filings (SEDAR+, EDGAR, issuer releases) | fmine-public parses filings into Public-basis Claims |
Hand-checked fixtures | The M0 lane (§31.1) |
✖ KILL-6 (OMF purity). If omf-rust needs banned dependencies and the Parquet subset exceeds 8k LOC: exchange
OMF through lab-oracle conversion to CSV/DXF in the interim, and say so. Evaluated 2026-11-01 (BD-190, E858): the
first condition holds, and the second is estimated not to (2,000–3,000 lines of code; INFERENCE), so KILL-6 has not
fired. Measured at BD-194 (2026-11-03), the Parquet subset is 923 lines without its tests and the whole OMF reader
2,877, so KILL-6 still has not fired (fmine-io CONTRACT §8).
32.3 Coexistence with Avathon
Barrick has an AI operating-layer partner (Avathon, E024). Three postures were tested (B4 SQ7):
- Replace Avathon is refuted: FrankenMining does not compete with AI operating platforms (NONGOAL-005).
- Feed Avathon blindly is refuted, because blind feeds would make Avathon a second authority without anchors.
- Verdict C: FrankenMining is the anchor-pinned system of record, and Avathon is a cognition-plane consumer.
The five-point contract.
- Avathon reads per-venture export projections (
FMT-EXPORT-1), with an anchor and certificate on every row. Every Avathon answer can therefore cite a FrankenMining anchor. - Avathon writes back only as evidence submissions, graded
AgentUploador elicited,REVIEW_REQUIRED, intoCELL-QUAR. It never writes authority cells. - MNPI and venture walls apply unchanged.
- Avathon has no effect path.
- When Avathon and FrankenMining disagree, the knowledge state becomes
conflicted(E033). It is surfaced, not merged.
Under this contract an AI platform's answers become more defensible by citing FrankenMining, and Avathon's forecasts can be registered and scored like anyone's (§30.4). Whether Avathon accepts anchor-pinned feeds and evidence-only write-back is OPEN-B4-08.
32.4 Proof obligations, gates and open questions
| PO / Gate | Statement | Verification / threshold |
|---|---|---|
| PO-PORT-1 | Every decoder survives 24 h of fuzzing with no panic, no unbounded allocation and no budget overrun | Fuzz targets per decoder |
| PO-PORT-2 | Re-exporting an imported file and re-importing it yields identical records (for formats with writers) | Round-trip property tests |
| PO-PORT-3 | Every imported column has a declared unit, basis, support and CRS, or is UNREGISTERED |
Import report check |
| GATE-PORT-01 | Oracle agreement on fixture corpora: LAS/E57 point counts and bounds exact; GeoTIFF values exact; DXF entities exact; CRS within §25.5 tolerances | M1 (LAS, DXF, CSV dialects), M2 (E57, GeoTIFF) |
| GATE-PORT-02 | One full acQuire/Datamine export set from the pilot site imported with ≤ 0.1% rows rejected, every rejection explained | M2 |
- OPEN-B4-06 (closed: yes, banned). omf-rust's actual dependency closure:
parquetfor every array, andchronoimported directly (E858). KILL-6 has not fired (§32.2). - OPEN-B4-08. Will Avathon consume anchor-pinned feeds and accept evidence-only write-back?
- OPEN-PORT-1. Which pilot-site systems export what, and how often. This is a data-acquisition gate input (§34.4).