Pre-Registering Refutation: Adding Jeffreys, Popper, and ACID Provenance to Rule 08
Two days ago, initializing project-governance translated four philosophical lenses—Potochnik, Longino, Thurston, and Kuhn—into baseline repository structure. Almost immediately, a sharper gap surfaced across my active computational physics codebases. Code hygiene and separated review catch sign bugs and sloppy prose, yet they say almost nothing about how an automated numerical workflow decides whether a scaling law holds or breaks. Ask a coding agent to test a conjectured power law against lattice data, and left unchecked it will politely commit computational \(p\)-hacking: loosening tolerances until pytest goes green, adding free fitting parameters without complexity penalty, treating correlated lattice sites as independent draws, or quietly rewriting a failed conjecture as if a refutation were an engineering defect.
Today's commit 68a74f3 in project-governance closes that loophole by adding a fifth pillar to MODERN_GOVERNANCE_AND_EPISTEMOLOGY.md—Harold Jeffreys and Karl Popper—and encoding it mechanically in Rule 08 (08_living_hypothesis_contracts.md) together with dedicated Python and Julia metrology packs (pack_python_numerics.md, pack_julia_numerics.md).
The centerpiece is the Living Hypothesis Contract (doc/hypotheses/HC-XX.yaml). Every physical conjecture, phase-boundary claim, or theorem target carries pre-registered support_if and refute_if thresholds left as TODO(owner) until locked by the human Principal Investigator. Autonomous agents are forbidden to invent or relax thresholds to force a pass. Crucially, refutation is promoted to a first-class scientific discovery: a falsified contract transitions cleanly to refuted and journals its mechanism in LOG_DISCOVERY_AND_PIVOTS.md, while intermediate constraints accumulate in learning_log and daughter conjectures branch via from: HC-XX. Before any proof or sweep starts, two anti-vacuity gates apply uniformly across formal and numerical work: F1 checks that the specification matches the intended physical identity, and F2 demands a non-degeneracy witness or solvable limit so tautological tests cannot masquerade as confirmation.
To give Popperian falsification quantitative teeth, pack_python_numerics.md pairs solver conditioning (\(\kappa(\mathbf{A})\), KKT stationarity residuals, projector idempotency \(\|\mathbf{P}^2 - \mathbf{P}\|_F / \sqrt{N}\)) with Jeffreys-style Bayesian model selection using autocorrelation-corrected effective sample sizes:
When \(n_{\mathrm{eff}}/k < 40\), small-sample \(\mathrm{AICc}\) must be reported alongside \(\mathrm{BIC}\). Discrete basin survival uses 95% Wilson score intervals; continuous observables require non-parametric bootstrap 95% intervals (\(N_{\mathrm{samples}} \ge 50\), \(B \ge 1{,}000\)); finite-size extrapolations must survive two-sided holdouts (leave-\(L_{\min}\)-out and leave-\(L_{\max}\)-out) plus exact-diagonalization calibration; and every benchmark table is written atomically via os.replace with machine-parseable # provenance headers (git_sha, config_sha256, rng_seed).
Nothing in Rule 08 arrived from abstract dogma. F1/F2 anti-vacuity grew directly out of Lean 4 signature locks in bosonize-lean; two-sided holdouts and conditioning bounds distilled lessons from Kitaev finite-torus numerics in kitaev-mf and kitaev-walk-geometry; and insisting on explicit finite-size checks echoes the \(L = 2\) counterexample trap in jw-and-gauge-field. Pre-registering what would prove you wrong is what turns fast computation back into science.