FrankenMining

Suite consumption: what FrankenMining takes from its siblings, and how

2,687 words7 subsections7 tables1 listingPlan version 0.1

On this page7
27.1 frankensim: lift-only until re-convergence27.2 franken_accounting: subprocess, never a crate27.3 Numerics: the frankenscience stack (R8)27.4 Storage and search foundations: projections only27.5 Runtime, surfaces and shared schemas27.6 Patterns imported without code27.7 Open questions

Doctrine. Consume, never fork (§0.4, sentence 9). A sibling is used in exactly one of five postures:

Posture Meaning Example
Consume Cargo dependency at an exact pin, default features off unless listed fsci-* =0.4.0
Subprocess A robot CLI or daemon over a local socket; no crate in the graph FA through fad + fa --json
Lift Copy with a provenance header, registry row and golden test; re-owned under fmine-* frankensim VdbGrid
Oracle Dev or lab only; never in the runtime or CI dependency graph of production crates fsym, PROJ, fnp-linalg
Pattern Copy the design, not the code FSS anchors, FTX lift headers

Each consumed foundation passes an INT-* admission gate before its first production use (§34.2). Every foundation has an FD- row in the dependency ledger (Appendix F) with its pin, posture, owner and switch-over rule. No executive deliverable may be blocked by an unconverged sibling: each FD- row has a fallback that keeps the product shippable and honest.

27.1 frankensim: lift-only until re-convergence

Verdict (B4 SQ3). Lift-only in every production posture. A path or git dependency is refuted today:

  • it would link asupersync 0.6.0 beside the 0.5.0 of fgdb, FA and fastmcp, giving two asupersync packages, two Budget types and two runtimes (B4 S2);
  • frankensim needs nightly-2026-07-06 for generic_const_exprs, against the suite's nightly-2026-08-31;
  • cargo check --workspace --all-targets exits 101 on 15 targets (E001);
  • a git dependency hits out-of-repo ../../../asupersync paths.

"Reimplement everything" is also refuted, on cost: exact predicates, sparse LDLᵀ/AMG, deterministic transcendentals, Philox and e-processes are already written, tested and contracted upstream.

Lift waves. The full per-crate disposition is in §13.9.

Wave Source (frankensim @ pinned commit) Target Guard
0 fs-math/src/det.rs (deterministic transcendentals) fmine-core::det Golden hash of 10⁴ fixed inputs
0 fs-rand Philox + Sobol/Owen fmine-core::rand Known-answer vectors
0 fs-evidence (closure of 3 modules), types only, with a stable-Rust QuantitySpec shim fmine-evidence Property test: compose never promotes
0 fs-ivl predicates/expansions, fs-math/eft.rs fmine-geom::exact Adversarial predicate corpus
0 fs-sparse (CSR/COO, supernodal LDLᵀ + AMD, PCG, smoothed-aggregation AMG) fmine-numerics::sparse Residual known-answers
0 fs-eproc, fs-voi, fs-robust (CVaR), fs-tropical fmine-numerics::{eproc, voi, risk, tropical} Per-module known answers
0 fs-assimilate/src/nonlinear/ensemble.rs (EnSRF core, Cx-free) fmine-numerics::enkf Known-answer filter runs
0 fs-blake3 fmine-core::hash Official test vectors
1 fs-rep-sdf/src/vdb.rs (VdbGrid<T: Copy>, 310 lines, std-only) fmine-geom::vdb Golden iter_active order digest; GATE-BM-01
1 fs-rep-mesh/src/winding.rs (atan2 → det::atan2) fmine-geom::winding Differential corpus vs upstream vectors
— fs-qty Not lifted (nightly); fmine-units is built on stable Rust (§25) —

Header contract (from FTX). Every lifted file starts with:

//! Provenance: frankensim <path> @ <commit>; licence <id>; Changes: <list>; Left out: <list>
  • registries/lifts.toml holds one row per file: {source, commit, sha256_at_lift, target, guard_test}.
  • xtask check-lifts fails CI on any mismatch between header and registry.

Re-convergence gates.

  • GATE-FSIM-DRIFT (quarterly):

    • Diff each lifted source at frankensim HEAD against its pinned commit.
    • Any upstream change inside a lifted region opens a bead within 10 working days.
    • The decision (re-lift, or no-op with a reason) is recorded.
  • GATE-FSIM-RECONV is the precondition for any Cargo dependency on frankensim. All of the following must hold:

    1. frankensim pins asupersync by exact revision, equal to the suite pin;
    2. cargo check is green on the consumed crates at that commit;
    3. the consumed crates' toolchain matches FrankenMining's;
    4. the INT-FSIM-001 spike (a separate clone) produces a posture closure with one asupersync package id. Today it is expected to fail.

    Only then may fmine-simbridge be created, and only for capabilities with no lifted equivalent:

    • the fs-airflow network solve (§16.6);
    • the fs-conduction seepage operator (§14.5, §18);
    • fs-solid, once Mohr–Coulomb exists upstream.
  • ✖ KILL-3 (frankensim dependency). INT-FSIM-001 fails, or RECONV never holds. Fallback: lift-only, permanently, and say so. Engineering consumers that need a bridge (seepage, ventilation network, FEM) stay on in-house limit-equilibrium and correlation-card methods, with that limitation recorded in their ModelCards.

27.2 franken_accounting: subprocess, never a crate

  • The full contract is in §21.3. In summary:
    • posting goes through fad plus the fa --json robot CLI, from one fmine-fa-bridge at the enterprise finance node;
    • a signed intent outbox is the deterministic fallback;
    • no FA crate appears anywhere in the FrankenMining graph (L-4, §28.5);
    • embedded fa::Book is used only in an isolated conformance workspace for FA-ACC tests.
  • Admission: INT-FA-001 = FA-ACC-01…13 green at the pinned FA revision.
  • FA's HEAD moved three commits during the survey (53c6e953 → 3323cf0c, B4 S6). The pin is re-read at every GATE-PIN-* review, never assumed.

27.3 Numerics: the frankenscience stack (R8)

What was found.

  • There is no shared array type across fsym, fnp, fp, fsci and fj (R8 §7.1). FrankenMining builds one (fmine-array) plus adapters.
  • frankensympy is a design-time oracle, not a runtime dependency.
  • franken_numpy's memmap is not a memory map, and its UFuncArray stores values as f64 with an exact i64/u64 sidecar for integers.
  • frankenscipy is the backbone, with real gaps:
    • no sparse Cholesky;
    • CG is ILU-preconditioned only (pcg), with no AMG or generic preconditioner hook, and MINRES is unpreconditioned;
    • its linprog "Highs" variants are a dense revised simplex or IPM, not a HiGHS port;
    • no censored MLE;
    • RbfInterpolator is capped at 4,096 points.
  • frankenjax has grad, vmap and hvp, but its "jit" is interpretation, so NUTS must be built. FrankenMining consumes fj-ad directly (vjp, compile_value_and_grad_jaxpr_for_repeated_eval) because fj-api pulls fj-ffi; Hessian-vector products are composed from fj-ad.

Consumption table (exact pins; numeric crates always with their asupersync features off).

Repo Crates Pin Posture Use
frankenscipy fsci-linalg, fsci-sparse, fsci-opt, fsci-stats, fsci-spatial, fsci-interpolate, fsci-integrate, fsci-signal, fsci-fft, fsci-special, fsci-ndimage crates.io =0.4.0, default features off Consume Distributions, KDTree, NLLS, ODEs (leach/flotation/CIL kinetics), signal processing (vibration), root finding (IRR), Sobol/LHS sampling, small QPs
frankenpandas fp-frame, fp-columnar, fp-types, fp-index, fp-join; not fp-io (arrow/parquet, OPEN-SUITE-4 closed) git 37bb94101, default-features = false (no sql-sqlite, no hdf5). crates.io fp-frame 0.6.0 exists but predates the pin by 68 commits and about 7,300 changed lines in the consumed crates, so it is not an alternative (R7-C165) Consume Telemetry rolling/resample/merge_asof, grade bins (cut/qcut), report tables. Not money (no decimal dtype) and not interval algebra (linear-scan IntervalIndex).
franken_numpy fnp-random, fnp-io git d32c4e04; never fnp-python Oracle (fnp-random); consume (fnp-io for .npy/.npz interchange) RNG known-answer cross-checks; array interchange with Python users
frankenjax fj-core, fj-lax, fj-ad git fa93fb77. Not fj-api, fj-dispatch or fj-interpreters, which depend on fj-ffi unconditionally; no fj-backend-gpu Consume Gradients and Hessian-vector products for NUTS (fmine-infer), and sensitivities
frankensympy fsym-core, -calculus, -matrices, -solvers, -simplify, -printing 9d785d0, vendored or per-crate git Oracle / build-time only, inside fmine-derive Golden formulas (two-product balances, Lane's cut-offs, fiscal terms), symbolic Jacobians for tests, LaTeX for reports. Never on a runtime path until an fsym compatibility profile is certified.

One RNG (ADR-RNG-01).

  • Production randomness comes from one generator: lifted frankensim Philox in fmine-core::rand, keyed (seed_root, partition, domain, var_group, r, brick).
  • R8 proposed consuming fnp-random instead. Two production RNG families would double the golden-stream surface and the determinism argument, so fnp-random is an oracle. Its Philox stream is a known-answer cross-check if the variant and counter layout match (OPEN-SUITE-2), and golden vectors otherwise.

Admission. The consumed numerics crates (fsci, fp without fp-io, fnp-io, fj) pass INT-NUM-001 (§34.2; BD-308) before their first production use. fsym and fnp-random are oracles: they need only a pinned dev-workspace record.

The "build in fmine-*" list. R8's names are mapped onto this plan's crate map (§28).

Pri R8 name FrankenMining home Scope Builds on
P0 fm-array + bridge fmine-array (S0) + fmine-numerics::bridge Typed contiguous grid (Arc<[T]> + dims + strides, T ∈ {f64, f32, i64, u8, bitset}); zero-copy views into &[f64] consumers; copying adapters to &[Vec<f64>] fnp stride calculus (reference)
P0 fm-rng fmine-core::rand Keyed streams; golden streams Lifted Philox (ADR-RNG-01)
P0 fm-units fmine-units §25 none
P0 fm-drillhole fmine-drill Desurvey; sweep-line from/to overlap join per hole; length-weighted compositing fp I/O; fmine-array
P0 fm-geostat fmine-geostat Variography; SK/OK/block kriging; numeric gamma-bar (Gauss–Legendre); anisotropic search fsci KDTree, least_squares, fsci-special; lifted batched Cholesky
P0 fm-pseudoflow fmine-optimize::pitflow HPF on i64 CSR; precedence templates; nested pits (§15) Oracles: fsci maximum_flow, fnx preflow_push
P1 fm-recon fmine-recon WLS and bilinear reconciliation; gross-error tests (§20) fsci-linalg, fsci-opt trust_constr, fsci-stats χ²; fsym-derived Jacobians in tests
P1 fm-fiscal + fm-kernels fmine-econ::fiscal + fmine-derive (build-time codegen) NSR, NPI, sliding-scale royalty and tax as an AST; canonical hash and LaTeX through fsym fsym Expr, TermDag, latex, to_rust_code
P1 fm-lp fmine-lp PDLP first-order LP on CSR; QP; MPS I/O; decomposition (§15) fsci-sparse CSR; oracle fsci linprog/milp
P1 fm-mcmc fmine-infer::nuts NUTS with adaptation, bijectors, R-hat/ESS diagnostics (≈ 3–5k lines) fj value_and_grad; fmine-core::rand
P1 fm-gmrf fmine-numerics::gmrf SPDE precision assembly, sparse LDLᵀ, log-determinant, selected inverse, AMG-PCG, sampling Lifted fs-sparse; fsci cg as oracle
P1 fm-sgs fmine-geostat::sim SGS and turning bands; post-processing fmine-geostat, fmine-core::rand
P2 fm-geochem fmine-qaqc::censored Left-censored lognormal MLE, ROS, CLR/ILR (§12.2) fsci-stats, fsci-opt
P2 fm-implicit fmine-belief::implicit Partition-of-unity or local RBF at 10⁵–10⁶ points fsci RbfInterpolator as small-case oracle
P2 fm-blockstore fmine-geom::bricks Chunked out-of-core block storage with .npy-compatible tiles fnp-io header codec
P2 fm-cutoff fmine-plan::cutoff Lane's limiting and balancing cut-offs; DP over the life of mine (§15.6) fsci brentq; fsym-derived goldens
P2 fm-sensitivity / fm-uq fmine-decide::sens Tornado charts, elasticities, delta method, Sobol indices fj jvp/hessian; fsci SobolSampler
P2 fm-libm fmine-core::det (lifted, Wave 0) Fixed-algorithm transcendentals for cross-ISA reproducibility (§29) Lifted fs-math/det.rs

Oracles, never production kernels: fsci maximum_flow and fnx preflow_push for pitflow; fsci linprog/milp for fmine-lp; fnp-linalg for fmine-geostat solves; fsym for closed-form formulas; fs-uq KlExpansion and fs-bo Gp for kriging (§13.9).

Hot-path rule. Hot loops never round-trip through Vec<Vec<f64>>. Where fsci only offers that signature, flat-slice overloads are an upstream ask (Appendix F), and a copying adapter is used until then.

27.4 Storage and search foundations: projections only

Foundation Pin (FACT, R2) Role in FrankenMining Admission gate Kill
frankensqlite (fsqlite) v0.4.12 (mature, released) Primary projection store: relational tables, R-tree over 3-D interval boxes and geofences, FTS5, segment catalog, Z-order keys INT-FSQL-001: the FSS-DD ten criteria in the projection role; bbox query p99 ≤ 50 ms over 10⁷ intervals KILL-4 promotes it to persistence rung L2 (§26.5), never to authority
frankengraphdb (fgdb) rev pinned with the suite (asupersync 0.5.0) Optional evidence-lineage projection: GQL, execute_certified, FOR SYSTEM_TIME AS OF SEQ, CALL fnx.* INT-FGDB-001: one high-water mark; certified replay; measured benefit over fsqlite + in-memory fnx on 3 named queries ✖ KILL-2: no measured benefit → drop the fgdb projection; fsqlite tables + in-memory fnx serve the evidence graph
frankensearch facade 0.7.1 Document search over reports, logs and correspondence (quill BM25 + hash/model2vec embeddings) INT-FSEARCH-001: no ort/fastembed in the closure; wall-scoped indexes only (§31.1) Drop to fsqlite FTS5
franken_networkx (fnx) git 9d710b1c (fgdb-prism's pin; fnx-classes 0.2.0) while fgdb is in the graph. preflow_push exists only at fnx HEAD (0.3.1), so that oracle runs in a separate dev-only oracle workspace until fgdb bumps fnx (upstream ask, Appendix F) Precedence graphs, critical paths, flow-graph analytics; oracle for pitflow INT-FNX-001: scale benchmark on synthetic precedence graphs (10⁶–10⁷ arcs) In-house graph code in fmine-optimize

Why fgdb is a projection, even though FA uses it as authority. fgdb cannot index Point properties by constitution (B4 S8). Its replication (Aegis) is a Raft kernel, which needs quorums and suits intermittently linked writers poorly (HYPOTHESIS; unbenchmarked). FrankenMining's facts are spatial and federated, while FA's are neither.

27.5 Runtime, surfaces and shared schemas

Foundation Pin Confined to Gate
asupersync 0.5.0: asupersync rev 78b64636e (tag v0.5.0, the revision fgdb and FA pin; fgdb itself at FA's pin b323bd17), plus a [patch.crates-io] that keeps one Cx type fmine-runtime and above; K crates see only Cx<cap::None>, Budget and checkpoint INT-AS-001, INT-AS-SEC-001 (§31.4), GATE-PIN-06
franken-evidence, franken-decision, franken-kernel (asupersync workspace) Same asupersync revision fmine-decide only (L-4) Part of INT-AS-001. The APIs exist at v0.5.0 (EvidenceLedger, LossMatrix, DecisionContract, DecisionAuditEntry, render; OPEN-SUITE-1 closed). They depend on serde, so they never enter S0: fmine-evidence (S0) owns schema-compatible types, and fmine-decide is the single round-trip-tested converter and renderer.
fastmcp (crates.io package fastmcp-rust; the crates.io name fastmcp is an unrelated project, R7-C163) =0.13.0 (every release from 0.11.0 pins asupersync =0.5.0; release 0.5.0 would bring a second asupersync, 0.4.5; toolchain nightly-2026-08-25, drift recorded) fmine-mcp only INT-FMCP-001 (parity gate)
frankentui (ftui) =0.9.0 (0.8.0 and later pin asupersync =0.5.0; 0.7.x would bring 0.4.9), asupersync lane fmine-tui only INT-FTUI-001
franken_markdown library, pinned fmine-report only INT-FMD-001 (deterministic by digest)
frankenmermaid default features only (its optional HiGHS backend needs C++/CMake) fmine-report only INT-FMERM-001

Three Cx types (B4 S1). asupersync::Cx is the runtime authority. franken_kernel::Cx and fs_exec::Cx are different types. Plan prose and code always say which is meant:

  • fs_exec::Cx may appear only in fmine-simbridge, which does not exist yet;
  • franken_kernel::Cx does not appear at all.

Version split (B4 S2). asupersync 0.5 and 0.6 are semver-incompatible, so Cargo links both without complaint. That is why the one-package-id check (L-5) is a CI gate, not a convention.

Toolchain. Pin nightly-2026-08-31 with the suite. It is OPEN whether the fsym crates compile on it (OPEN-SUITE-3). Since fsym is build-time only, a failure costs a separate pinned toolchain for fmine-derive, not a runtime risk.

27.6 Patterns imported without code

Pattern Source Where used
Anchors, the knowledge-state lattice, the cognition/authority/effect plane split FSS §6, §7, §26
Lift headers, golden-hash guards, budget-overrun discipline FrankenTextiles (FTX) §27.1, §28.4
Typed refusals Violation{code, what, fix} frankensim fs-scenario §8.4
Posture closures, franken-stack.lock, foundation dependency rows FA §28, Appendix F
Robot envelope, exit-code superset, doctor/repair FA, fgdb §30
Sealed corpora and matdb manifests frankensim fs-matdb §13.10

27.7 Open questions

  • OPEN-SUITE-1 (closed by the suite-fit audit). franken-evidence, franken-decision and franken-kernel exist at v0.5.0 with EvidenceLedger, DecisionContract, LossMatrix, DecisionAuditEntry and render. The INT-AS-001 spike (BD-257) re-confirms at the pinned revision.
  • OPEN-SUITE-2 (closed: no). fnp uses Philox4x64-10 and frankensim Philox4x32-10, so cross-checks use golden vectors, never stream equality (ADR-RNG-01 is unchanged: the lifted 4x32 is the one RNG).
  • OPEN-SUITE-3. Do the fsym crates compile on nightly-2026-08-31 when pulled individually?
  • OPEN-SUITE-4 (closed: yes, and worse). fp-io depends on arrow, parquet and chrono unconditionally, and read_parquet decodes a whole file as one Arrow batch. fp-io is therefore replaced by FrankenMining's own CSV/Excel readers in fmine-io plus the minimal Parquet subset of §32 (KILL-6 path, taken).
  • OPEN-SUITE-5. KDTree throughput at 10⁶–10⁷ samples, and which fsci/fnp kernels give thread-count-dependent results (§29).