Relational Substrate is a browser-based sandbox and analysis bench for a substrate grammar — route, closure, phase, charge, and continuity.
Its current, evidence-backed standing is a directional / conceptual lens: it predicts the direction of coherence effects across molecular, material, optical, and interface orderings — and one distinctive prediction has now been corroborated on real-world data — but it is not a quantitative predictor (see Validation status below).
New here, or non-technical? Start with the plain-language explainer — what we tried, how we tested it honestly, and what it does and doesn't mean.
It does not simulate T0 directly and does not treat rendered curves, molecules, lattices, materials, or interfaces as substrate objects. It is a browser-based conceptual model for:
open transient order
meeting
closed stable order
under admissibility conditions
The RS grammar is best understood as a coherent, directional / conceptual lens — not a quantitative predictor. It organises coherence phenomena and predicts the direction of effects across molecular, material, optical, and interface orderings; on current evidence it does not beat established domain theories on magnitude.
One distinctive, pre-registered RS prediction — a path-dependent order effect (gentle-first "coaxing" protects survival) — has been corroborated on real data (open fatigue data), in both directions, against the order-independent linear-damage baseline. That is the first real-data corroboration of a distinctive RS prediction. The same directional law has since been recorded across four unconnected domains with different mechanisms and even different endpoint types — metal fatigue, cardiac ischemic preconditioning, wildfire ecology, and behavioral stress-resilience — in a cross-domain directional ledger (10/10 entries, order-independent null rejected in all four). That is the strongest honest support for the lens's cross-domain reach — but it is directional, not decisive: a magnitude test (including a graded-survival variant) shows the grammar predicts the direction but not the size of the effect, so it does not displace established quantitative models. Confidence stays capped; the unification thesis is coherent and directionally corroborated, not quantitatively validated.
Full reasoning and evidence: docs/relational-substrate-validation-status.md.
This concerns the modelling/validation layer only; the conceptual framework in books/
is unaffected.
npm install
npm run devWhere the project is now (2026-06). Beyond the browser UI below, the repository has grown a substantial modelling/validation layer under analysis/ and docs/: source-locked, pre-registered held-out tests across refractive index, surface roughness, peroxide torsion, and the grammar's own path-dependent order effect — the last corroborated on real fatigue data. The honest result of that work is the lens standing described under Validation status; confidence is deliberately held and capped. The canonical statement is docs/relational-substrate-validation-status.md, and the full chronological state lives in .restart.md. The browser sandbox itself remains at:
Version 0.1 includes:
- light, e-ink-friendly theme
- selectable closed forms
- selectable open transient forms
- A/B/C scenario presets
- sliders for boundary compatibility, route continuity, storage, scattering, reseating, phase alignment, and charge tension
- outcome fractions: admitted, returned, stored, scattered
- closure stress readout
- closure gate metrics: closure, returnability, boundedness, coherence, reseating, leakage, identity score
- explicit grammar state exposed (continuity, phaseMatch, chargeTension)
- identity preserved / at risk readout
- live 8-step resilience / durability horizon (updates with every control change)
- route-split visualisation for admitted, returned, stored, and scattered portions
Grammar advance (v0.2 of the abstract model): The core calculateOutcome now treats the five substrate grammar elements (route, closure, phase, charge, continuity) as first-class inputs/factors. Coherence is computed as a richer combination that rewards alignment across the grammar while penalising tension and scatter. See src/model.js and the pure-logic explanation in ~/relational-substrate-coherence-logic.md. The UI and coherence sweep have been updated to drive and record the expanded state.
Next-step modelling pickup (June 2026): Added explicit deriveGrammar helper, a named grammarAlignment term inside coherence, and simulateSequence(base, n) for multi-step traces with simple memory carry (accumulated continuity + stress) and consumption. The coherence sweep now reports grammar signatures, high/low-grammar region preservation rates, identity-gate flip sensitivity under small perturbations, and example sequence traces. Browser UI has a grammar-health composite and a live "Run 3-step trace" demo. This moves the pure-logic core from single-interaction snapshots toward "does identity survive a short history of encounters?" while staying strictly abstract.
Run the rule-model sweep with:
npm run sweepOutputs are written under:
analysis/out/
The sweep iterates closed forms, transient forms, A/B/C scenarios, and sampled slider settings. It is useful for finding coherent, fragile, and high-stress pattern regions inside the current toy rule model. It is not physical validation.
The browser UI and the sweep share the same rule model from src/model.js, so the screen and batch search now use the same closure, route, storage, scattering, reseating, and identity thresholds.
Run the first secondary-regime molecule bench with:
npm run moleculesOutputs are written under:
analysis/out/
This bench uses known simple molecular geometries as calibration data. It checks whether a transparent topology-and-constraint score ranks reference candidates above strained or incoherent variants. It does not treat atoms as vorton species.
Run the generated molecule perturbation sweep with:
npm run molecule:sweepThe perturbation sweep reports total iterations tried and change counts by category and severity. This gives a scale marker for how much of the candidate space has actually been tested.
Run the geometry-derived molecule sweep with:
npm run molecule:geometryThis sweep perturbs explicit geometry fields such as bond length, bond angle, torsion, ring closure distance, polarity vector, steric clearance, and valence mismatch. Coherence variables are then derived from those geometry fields.
Run the coordinate-derived molecule sweep with:
npm run molecule:coordinatesThis sweep perturbs atom coordinate sets first, derives coordinate-feature distributions, and then derives coherence variables from those distributions. Current coordinate cases are H2, HCl, F2, H2O, H2S, SO2, CO2, HCN, OCS, CH4, SiH4, CF4, BF3, BCl3, H2CO, H2CS, NH3, PH3, O2, N2, CO, C2H2, C2H4, C2H6, H2O2, NO2, NaCl, LiF, benzene, and pyridine.
Coordinate scoring uses the same coherence variables across all cases, with family-aware weights for diatomic covalent, bent polar, trigonal pyramidal covalent, linear triatomic, linear unsaturated covalent, trigonal planar covalent, asymmetric planar covalent, tetrahedral covalent, rotatable covalent, aromatic ring, and ionic-pair cases.
Coordinate references include provenance metadata for the classical geometry anchors. These anchors calibrate the bench; they are not claims derived from the Relational Substrate grammar.
The coordinate sweep also writes decoy-control results for deliberately wrong or strained geometries such as linear water, bent carbon dioxide, planar ammonia, pyramidal boron trifluoride, eclipsed ethane, and warped benzene. These controls are not calibration anchors; they test whether the current score rejects familiar failure modes.
Run the calibration interpretation report with:
npm run molecule:calibrationThis reads the coordinate sweep output and classifies envelope width, failure rate, and dominant constraint character by molecule. It also writes a per-family validation rollup showing whether family weights still rank reference coordinates first without per-molecule tuning.
Run the focused ethane torsion diagnostic with:
npm run molecule:ethane-torsionThis isolates the weak eclipsed C2H6 decoy by scoring staggered-like, intermediate, and eclipsed-like ethane torsion angles without changing molecule-family weights.
Run the focused peroxide torsion diagnostic with:
npm run molecule:peroxide-torsionThis checks whether the same rotatable-group steric feature behaves sensibly for peroxide, where torsion also shifts polarity and H-H separation.
Run the focused peroxide nonlocal refinement with:
npm run molecule:peroxide-refineThis uses a denser torsion grid to separate near-reference tolerance, transition shoulder, and true nonlocal peroxide torsions. It is still a diagnostic report, not a calibration anchor.
Run the focused ionic lattice diagnostic with:
npm run molecule:ionic-latticeThis checks whether a tiny alternating-charge lattice grammar separates NaCl and LiF reference order from same-charge layers, clustered charges, and pair-collapse decoys. It is a topology/control diagnostic only; it does not add bulk crystal physics to the molecule calibration.
Run the focused silicate network diagnostic with:
npm run material:silicate-networkThis checks whether a graph-level tetrahedral network grammar separates fused-silica, sodium-silicate, and aluminosilicate reference order from fragmented, modifier-clustered, and charge-uncompensated decoys. It is not a glass, crystal, or melt simulator.
Run the focused mixed-modifier diagnostic with:
npm run material:mixed-modifierThis checks whether route-level mixed modifier order separates distributed compensated transport paths from single-modifier dominance, clustered modifier islands, depleted corridors, and overcompensated field traps. It is not a diffusion, conductivity, or durability simulator.
Run the material NBO/T stoichiometry diagnostic with:
npm run material:nbo-stoichiometryThis checks exact non-bridging-oxygen-per-tetrahedron accounting for simple silicate and aluminosilicate compositions. It is a quantitative composition diagnostic, not a material-property simulator.
Run the focused boundary transition diagnostic with:
npm run interface:boundary-transitionThis checks whether route-level boundary order separates ordered entry/release transitions from diffuse scattering, trapped release loops, wrong-way return dominance, and phase-broken transmission. It is not an optics, roughness, or crystallography simulator.
Run the focused phase-continuity diagnostic with:
npm run interface:phase-continuityThis isolates the tight phase-broken transmission decoy by testing whether route continuity carries phase memory, not merely apparent transmitted amplitude. It is not a wave-optics simulator.
Run the held-out roughness scatter diagnostic with:
npm run interface:roughness-scatterThis checks whether interface route order changes with roughness regime: smooth boundaries should preserve coherent specular order, high roughness should favour diffuse scatter, and false-specular rows with broken phase memory should not win. It is not an optics solver.
Run the T1 coupling descriptor report with:
npm run t1:couplingThis reads the coordinate and calibration outputs, then writes candidate T1 coupling-pattern descriptors for each T2 molecule family. These descriptors are mechanism-facing hypotheses only: they do not prove the Relational Substrate theory and do not introduce cells, particles, lattices, or material components between T0 substrate and T1 vortons.
Run the T1 coupling parameter sweep with:
npm run t1:sweepThis turns the qualitative T1 coupling descriptors into bounded numeric candidates, derives target envelopes from the current T2 family calibration, rejects incoherent candidates by guardrail rules, and ranks admissible candidates. Descriptor priors are still used for broad family features that the T2 metrics do not directly contain.
Run the T1 target stability report with:
npm run t1:stabilityThis reads the latest T1 sweep output and reports residuals between each T2-derived target envelope and the best admissible T1 candidate. Use it to see whether mismatch is likely coming from the target formula, the parameter grid, or the guardrails.
Run the T1 local refinement sweep with:
npm run t1:refineThis searches a narrower local parameter grid around each current best T1 candidate and reports whether residuals improve. Use it to distinguish coarse-grid error from a genuine weakness in the target formula or guardrails.
Run the assumptions report with:
npm run model:assumptionsThis writes the current modelling assumptions, risks, and limitations across ontology boundaries, reference data, T2 scoring, T1 descriptors, numeric parameters, and sweep mechanics.
Run one-at-a-time parameter experiments around the current scenario presets with:
npm run model:parameter-experimentsThis writes a practical sandbox report showing how boundary, route, storage, scatter, reseat, phase, and charge alter identity, stress, coherence, and preservation near the current presets. It is exploratory only and must not be used as target-after-the-fact validation tuning.
Run a configurable parameter recipe file with:
npm run model:recipe -- analysis/parameter-recipe.example.jsonThis applies custom parameter moves to selected seeds and writes a named report under analysis/out/. Use it for exploration; freeze recipes before target lookup if a future workflow is meant to be evidence-bearing.
The runner also emits a deterministic recipe hash and a normalized .lock.json copy of the exact seeds and moves used.
Run the frontier report with:
npm run model:frontierThis ranks the weakest current decoy separations and T1 residuals across the molecule, material, interface, and focused diagnostic reports. Use it to choose the next modelling target without tuning blindly.
Run the external benchmark roadmap with:
npm run model:external-roadmapThis records the current completion/confidence status and converts the frontier into external benchmark targets with pass/fail criteria. Use it before raising confidence in the substrate theory itself.
Run the first external peroxide benchmark with:
npm run benchmark:h2o2This compares the peroxide torsion diagnostic against source-backed qualitative facts about the H2O2 equilibrium angle and cis/trans torsional barrier ordering. It is an external anchor, not a fitted quantum chemistry model.
Run the external peroxide quantitative benchmark with:
npm run benchmark:h2o2-quantThis checks the H2O2 equilibrium torsion angle as a non-scaled numeric target and reports cis/trans barrier-ratio compression as a quantitative caveat.
Run the external H2O2 absolute barrier transfer benchmark with:
npm run benchmark:h2o2-absoluteThis applies the ethane quantitative energy scale to H2O2 trans/cis barriers without fitting either H2O2 endpoint. It is a falsification pressure test for the prior barrier-ratio compression; hydrazine cation is the follow-up held-out anti-planar transfer check.
Run the held-out hydrazine cation torsion benchmark with:
npm run benchmark:hydrazine-cationThis applies the same ethane scale and anti-planar release grammar to NIST hydrazine cation internal-rotation barriers without fitting hydrazine endpoints. It tests held-out torsion ordering and ratio transfer, not a calibrated hydrazine quantum-chemistry surface.
Run the external ethane benchmark with:
npm run benchmark:ethaneThis compares the ethane torsion diagnostic against source-backed qualitative facts about staggered/eclipsed ordering, threefold periodicity, and the roughly 2.9 kcal/mol torsional barrier. It is an ordering benchmark, not an energy fit.
Run the external ethane quantitative tolerance benchmark with:
npm run benchmark:ethane-quantThis maps the model's eclipsed penalty onto the external ethane barrier, then tests the normalized torsion shape against a predeclared broad tolerance around a simple threefold reference curve. It is a quantitative tolerance check, not a fitted energy model.
Run the external ionic lattice benchmark with:
npm run benchmark:ionicThis compares the ionic lattice diagnostic against source-backed qualitative facts about rock-salt unlike-neighbour ordering for NaCl and LiF. It is an ordering benchmark, not a lattice-energy or crystal-physics model.
Run the external boundary blind-style benchmark with:
npm run benchmark:boundary-blindThis records a pre-comparison boundary/phase ordering prediction, then compares it against source-backed qualitative optics expectations about boundary continuity and rough-surface scattering. It is not a full historical blind test.
Run the external electromagnetic ordering benchmark with:
npm run benchmark:em-orderingThis tests qualitative charge-polarity, magnetic closure, and EM-wave propagation ordering outside the molecular/material benchmarks. It is not a Maxwell solver, Coulomb-force calculation, or derivation of c.
Run the external EM-02 Coulomb comparator with:
npm run benchmark:em-coulombThis compares charge-sign direction and relative inverse-square/product-of-charge ordering against Coulomb-law expectations. It is an equation-level relative comparator, not an absolute electrostatics solver.
Run the external EM-03 superposition comparator with:
npm run benchmark:em-superpositionThis compares fixed two-charge field geometry against electric-field superposition expectations: symmetry cancellation, vector addition, and dipole direction reversal. It is a finite static-field comparator, not a continuous field-line or Maxwell-equation solver.
Run the external EM-04 three-source comparator with:
npm run benchmark:em-three-sourceThis compares non-symmetric three-charge field geometry against predeclared electric-field vector targets: net components, magnitude, angle, third-source contribution, and charge-scale linearity. It is still a finite static-field comparator, not a continuous field-line or Maxwell-equation solver.
Run the external EM-05 field-line topology comparator with:
npm run benchmark:em-field-linesThis compares qualitative continuous field-line topology: electric source-line divergence versus magnetic closed-loop continuity under one line-integration grammar. It is a topology comparator, not a Maxwell-equation solver, calibrated field model, or derivation of light speed.
Run the external EM-06 equipotential geometry comparator with:
npm run benchmark:em-equipotentialThis compares scalar potential superposition, dipole zero-potential symmetry, field/equipotential perpendicularity, and the field-as-negative-gradient relation. It is an electrostatic geometry comparator, not a conductor, propagation, calibrated SI, or Maxwell-equation solver.
Run the external EM-07 field magnitude comparator with:
npm run benchmark:em-field-magnitudeThis compares absolute SI point-charge electric-field magnitudes, inverse-square scaling, charge linearity, and vector components using the published Coulomb constant. It is a calibrated static-field comparator, not a derivation of the Coulomb constant, conductor model, material-media model, propagation model, or Maxwell-equation solver.
Run the external EM-08 dielectric media comparator with:
npm run benchmark:em-dielectric-mediaThis compares ideal parallel-plate capacitance scaling, dielectric field reduction, conductor interior screening, and dielectric energy-density consistency. It is an electrostatic media comparator, not a permittivity derivation, molecular polarizability model, propagation model, or Maxwell-equation solver.
Run the external EM-09 wave propagation comparator with:
npm run benchmark:em-wave-propagationThis compares vacuum plane-wave speed, E/B coupling, transverse field geometry, Poynting direction, impedance, and phase translation continuity. It is a calibrated propagation-relation comparator, not a derivation of c, radiation-generation model, or Maxwell-equation solver.
Run the external EM-10 boundary propagation comparator with:
npm run benchmark:em-boundary-propagationThis compares normal-incidence dielectric-boundary reflection, transmission, phase inversion, speed change, and ideal energy balance. It is a narrow imported-index boundary comparator, not a full Fresnel, rough-interface, absorption, or Maxwell-equation solver.
Run the external EM-11 oblique Fresnel comparator with:
npm run benchmark:em-oblique-fresnelThis compares s/p oblique-incidence reflectance, Brewster-angle cancellation, grazing trend, critical angle, and total internal reflection. It is an ideal lossless Fresnel comparator, not a rough, absorbing, multilayer, diffraction, or Maxwell-equation solver.
Run the external EM-12 multilayer interference comparator with:
npm run benchmark:em-multilayer-interferenceThis compares ideal thin-film phase thickness, quarter-wave anti-reflection cancellation, off-design wavelength degradation, half-wave recurrence, and nonideal coating-index partial improvement. It is a lossless imported-index multilayer comparator, not rough, absorbing, broadband coating, or Maxwell-equation optics.
Run the external EM-13 absorbing media comparator with:
npm run benchmark:em-absorbing-mediaThis compares complex-index reflectance, extinction-coefficient absorption, Beer-Lambert attenuation, thickness scaling, transparent-limit recovery, and single-entry energy accounting. It is a narrow analytic absorbing-media comparator, not roughness scattering, lossy multilayer transfer, broadband material spectra, nonlinear response, or Maxwell-equation optics.
Run the external EM-14 rough-surface scatter comparator with:
npm run benchmark:em-rough-surface-scatterThis compares Bennett-Porteus style total integrated scatter, specular-loss factor, RMS roughness scaling, wavelength scaling, incidence-angle scaling, smooth-limit recovery, small-roughness approximation, and reflected-energy budgeting. It is a smooth-surface analytic roughness comparator, not a BRDF, PSD, deep-roughness, broadband, diffraction, or Maxwell-equation surface-scatter model.
Run the external EM-15 diffraction grating comparator with:
npm run benchmark:em-diffraction-gratingThis compares the grating equation, first-order red/violet angular dispersion, central-order non-dispersion, positive/negative order symmetry, order cutoff, and screen-position scaling. It is a scalar grating-equation comparator, not a finite-envelope, blaze-efficiency, broadband-intensity, vector-diffraction, radiation-generation, or Maxwell-equation optics model.
Run the external EM-16 single-slit envelope comparator with:
npm run benchmark:em-single-slit-envelopeThis compares single-slit minima, the sinc-squared intensity envelope, central maximum, side-lobe relative intensity, wavelength scaling, slit-width scaling, symmetry, and screen-position mapping. It is a scalar Fraunhofer single-slit comparator, not double-slit interference, grating combs, vector diffraction, broadband intensity prediction, radiation generation, or Maxwell-equation optics.
Run the external EM-17 double-slit envelope comparator with:
npm run benchmark:em-double-slit-envelopeThis compares double-slit fringe spacing, constructive/destructive conditions, finite-slit envelope modulation, missing orders, slit-separation scaling, wavelength scaling, symmetry, and screen-position mapping. It exercises route, closure, phase, and continuity but does not exercise charge in a non-trivial way. It is a scalar Fraunhofer two-aperture comparator, not full vector diffraction, broadband intensity prediction, resolving power, radiation generation, or Maxwell-equation optics.
Run the external silicate held-out benchmark with:
npm run benchmark:silicate-heldoutThis evaluates a held-out material-family prediction against source-backed qualitative facts about silicate network continuity, non-bridging oxygen/modifier structure, and aluminium charge compensation. It is a graph-level ordering benchmark, not a glass-property simulator.
Run the external roughness held-out benchmark with:
npm run benchmark:roughness-heldoutThis evaluates a held-out interface prediction against source-backed qualitative facts about roughness-controlled specular and diffuse scattering. It is an ordering benchmark, not a calibrated scatter model.
Run the external roughness calibrated scatter benchmark with:
npm run benchmark:roughness-calibrated-scatterThis compares Bennett-Porteus total integrated scatter, specular fraction, roughness scaling, wavelength scaling, qualitative sweep consistency, and reflected-budget closure. It is a smooth-surface calibrated TIS comparator, not a BRDF, PSD, broadband surface-response, radiation-generation, or Maxwell-equation optics model.
Run the external material NBO/T quantitative benchmark with:
npm run benchmark:material-nboThis compares exact NBO/T charge-balance accounting against source-backed material-structure expectations for simple silicate and aluminosilicate compositions. It is quantitative composition accounting, not measured property prediction.
Run the external material refractive-index challenge with:
npm run benchmark:material-refractive-indexThis checks source-anchored SiO2, Na2SiO3, held-out NaAlSi3O8, fresh-validation CaAl2Si2O8, and second-generation held-out KAlSi3O8 refractive-index targets against a first-pass topology-only refractive-index proxy. It also records a target-implied slope/framework-Al repair candidate that fails fresh anorthite validation, plus a second-generation modifier-identity candidate that fails fresh orthoclase validation. It is not a Sellmeier, density, polarizability, dispersion, or ab initio optical-property model.
Run the external benchmark summary with:
npm run benchmark:summaryThis rolls up external benchmark coverage and updates the confidence posture after generated benchmark reports exist. It keeps inferential convergence separate from internal model coherence.
Run the external review milestone summary with:
npm run milestone:external-reviewThis generates a detailed milestone report for outside review, including the sandbox intent, ontology boundaries, evidence, confidence posture, non-claims, remaining gates, source anchors, and reviewer questions. It should be regenerated before any next-stage modelling work.
Run the Claude drift/completeness review packet with:
npm run review:claude-drift-completenessThis generates a focused review brief for checking benchmark drift, scope creep, completeness, evidence independence, non-claim discipline, and remaining validation gaps. It writes the generated artifact to analysis/out/claude-drift-completeness-review.md and a tracked review copy to docs/claude-drift-completeness-review.md.
For a fresh clone, regenerate the full report chain with:
npm run reportsThis rebuilds the ignored analysis/out/ artifacts in dependency order, ending with the benchmark summary, milestone summary, and AI review prompt.
The geometry is a visual grammar only.
No mesh, curve, tube, point, or rendered object should be read as a literal substrate cell.
The primary texts of the framework are maintained in the books/ directory:
books/relational-substrate.md— Technical ontology volume (The Relational Substrate)books/coherent-biblical-ontology-bachelors.md— Coherent Biblical Ontology (Bachelor's Edition)
These contain the full current statements of the RS (Relational Substrate) framework, including the rename from the earlier AMS terminology and the explicit transformation tier.
See books/README.md for details and reading guidance.
The conceptual work is developed alongside this sandbox implementation. The topology-sandbox (in src/) and analysis outputs provide the modelling and validation layer for the ontology described in the books.
A machine- and human-readable knowledge map of the model's concepts and components
is published as an Open Knowledge Format
bundle under okf/ — markdown with YAML frontmatter, linked into a
concept graph.
- Grok (built by xAI) — 2026 pure-logic modeling advances to the abstract coherence model, including memory inertia dynamics (feed-forward, core modulation, live Path Inertia meter, amplification of reinforcement/consumption, rescuer for marginal identity in traces), adaptive policy enhancements (imm weighting, commitment lookahead boost), durability/stability primitives, regime transitions, sweep analysis/stats, UI trace feedback, and associated documentation updates.