Why Research Repositories Need Epistemology, Not Just Linters

By early November, five of my active theoretical-physics repositories had each evolved a different survival habit. kitaev-mf had separated exploratory machine notes from a warm-parchment lab book and a clean manuscript while tracking numbered numerical invariants (K-001 through K-006). kitaev-walk-geometry had standardized shared LaTeX macros and deterministic ASCII benchmark tables. Thouless-Bogoliubov demanded an explicit editorial question before every section and bibliographic source locators on borrowed formulas. bosonize-lean and finite-QMB enforced cryptographic Phase-A signature locks and anti-vacuity checks before freezing proofs into Core. Initializing project-governance today (38b48a2 and c326f8f) forced a deceptively simple question: why wasn't standard software engineering—linters, strict typing, unit tests, and continuous integration—enough to govern scientific research?

The dead end is familiar to anyone working alongside fast coding agents. Standard CI verifies syntactic health, not epistemic honesty. A Python solver can pass every pytest assertion while silently promoting a \(36 \times 36\) finite-mesh check into an unqualified thermodynamic claim. A Lean file can compile with zero errors while proving a subtly weakened surrogate of the physical statement. A single monolithic document trying to serve automated agents, my own future self, and external referees at once turns into unreadable bloat. And a single AI session asked to write a derivation and declare it finished happily certifies its own blind spots.

To unify those scattered habits without inventing arbitrary bureaucracy, I wrote MODERN_GOVERNANCE_AND_EPISTEMOLOGY.md using four thinkers from philosophy of science and mathematics strictly as an engineering design lens—captured in the margin diagram:

  • Angela Potochnik (Explicit Idealization): Science isolates causal patterns inside bounded regimes. Every exploratory note and solver contract therefore states upfront which physics is neglected and justifies numerical tolerances from conditioning or truncation order, never from a magic constant.
  • Helen Longino (Transformative Criticism): Objectivity is social and procedural, not solitary. The author session never self-certifies milestone promotion; independent executable checks and an adversarial referee pass audit the candidate against public standards (PROJECT_STATE.yaml and explicit claim IDs).
  • William Thurston (Human Understanding): Deductive or computational volume is not comprehension. Separating Three Fronts—machine-dense doc/rnd/, pedagogical doc/labbook/ (preserving failed paths alongside derivations), and self-contained doc/manuscript/—keeps human mental images alive.
  • Thomas Kuhn (Normal Science vs. Anomalies): Routine milestone tasks run inside frozen sign and basis conventions; when an identity breaks or a solver diverges, work halts to record the anomaly in a five-column LOG_DISCOVERY_AND_PIVOTS.md table before any convention pivot is allowed.

The conceptual bridge here is straightforward: philosophy of science stops feeling abstract the moment you translate each principle into a file layout, a lock, or a commit boundary. Those rules were not invented top-down—they were harvested directly from friction in QSL numerics (kitaev-mf), finite-lattice QFT audits (jw-and-gauge-field), and Lean 4 formalization (bosonize-lean). Packaging them into a single, stack-agnostic baseline is the first step toward treating AI-assisted research methodology itself as an explicit, testable discipline.