FrankenNetworkX

Guide/Reference

Glossary

2 min readFrom the README

  • CGSE (Canonical Graph Semantics Engine). The Rust crate (fnx-cgse) and runtime policy machinery (fnx-runtime) that pin tie-break policy and emit complexity witnesses.
  • Complexity witness. A ComplexityWitness { n, m, dominant_term, observed_count, policy, seed, decision_path_blake3 } receipt emitted per algorithm execution, drainable from a WitnessLedger for audit.
  • Compatibility mode (Strict vs Hardened). Two-mode runtime contract: Strict fails closed on malformed input; Hardened applies bounded recovery and records every recovery as a DecisionRecord.
  • Conformance harness. The fnx-conformance crate; replays curated graph fixtures through fnx and the legacy NetworkX oracle, emitting a structured report under artifacts/conformance/latest/.
  • Coverage matrix. The docs/coverage.md ledger, auto-generated from pinned NetworkX 3.6.1 by scripts/generate_coverage_matrix.py. It classifies 4,926 qualified paths as present, partial, missing, n/a, or reasoned excluded, reports per-family strict coverage, and retains the franken_networkx.__all__ route analysis as an appendix.
  • Decision-path hash (decision_path_blake3). A length-prefixed Blake3 hash of the sequence of tie-break decisions an algorithm made. Used to detect non-determinism.
  • Delegation ledger. docs/delegation_ledger.md; enumerates every _call_networkx_*_for_parity route (public exports that intentionally fall back to NetworkX for specific argument shapes).
  • Fail-closed. A policy choice in fnx-runtime: on uncertain input, raise rather than guess. The default in Strict mode.
  • PY_WRAPPER / RUST_NATIVE / NETWORKX_HELPER. The three runtime-route categories in the coverage matrix's runtime ledger.
  • RaptorQ sidecar. An RFC 6330 erasure-coded shadow file written alongside a long-lived artifact (conformance bundle, perf baseline, migration manifest). Combined with a scrub report and a decode-proof receipt to make the artifact self-healing.
  • TieBreakPolicy. The 13-variant Rust enum in fnx-cgse that pins how an algorithm resolves equally-correct choices.
  • Upstream divergence ledger. docs/upstream_divergence_ledger.md; unified record of native-parity, wrapper-patched, intentionally-delegated, raw-known-gap, and owner-acknowledged-limitation rows.
  • Witness ledger. A scoped collector inside fnx-cgse; you push an algorithm execution into it and drain ComplexityWitness receipts at the end of a scope.