Architecture
How the engine is organized: what is frozen, what evolves, and why.
The K4 engine separates truth from computation from display.
The frozen algebraic core can never be edited. The numeric plant can evolve but is constrained by the kernel. The visualization layer only reads artifacts — it never computes field values or modifies state. Every result carries a claim record that traces back to its assumptions, regime, and frozen digest.
Immutable algebraic core. Incidence matrices, Hodge projectors, F₀·G identity. 182 consistency checks. Never edited after freeze.
M (6×4 incidence), L (graph Laplacian), P_cycle, P_cut projectorsF₀ field operator, G cut projector, F₀·G = 0 proofverify_all.py— runs 182 checks in < 1 secondFrozen digest tracked in every artifact manifest
Exploration layer. Solver, geometry builders, physical realization, vertex coils, atlas, contracts. May evolve — truth kernel constrains it.
solver.py— Hodge-aware least-norm current solvergeometry.py— filament, bundle, solenoid, variable-apex wire modelsvertex_coils.py— magnetic dipole model, κ conditioningcontracts.py— PhysicalRealization, AtlasEntry, EdgeModel, ClaimRecordatlas.py— 20-entry field atlas with model declarationsvc_degradation.py— κ contour mapping across full volume
Read-only consumer of artifacts. Never imports frozen code directly. Renders precomputed results into interactive views.
Next.js 15 static export— no server requiredThree.js tetrahedron with interactive hover zonesArtifact inspector for provenance and claim recordsFigures stub— Phase 6 milestone
Command-line interface. Runs presets, writes artifact bundles, exports to web. The bridge between engine and visualization.
k4_cli.run— execute preset, write artifact bundleArtifact bundles: manifest + spec + drive + observables + claimexport-artifact.ts— converts bundles to web-ready JSONEvery artifact includes frozen digest for reproducibility