feat(physics): GeoSync Physics Engine v2 — 7 derived modules + 94 tests#128
Merged
neuron7xLab merged 2 commits intomainfrom Apr 4, 2026
Merged
feat(physics): GeoSync Physics Engine v2 — 7 derived modules + 94 tests#128neuron7xLab merged 2 commits intomainfrom
neuron7xLab merged 2 commits intomainfrom
Conversation
…ne + 94 tests
T1: Gravitational Coupling Matrix — Newton's gravity as Kuramoto adjacency
T2: Newtonian Inertial Dynamics — F=ma with Euler integration + TACL free energy gate
T3: Portfolio Energy Conservation — kinetic + potential energy with violation detection
T4: Thermodynamic Risk Gate — Tsallis entropy + Ricci curvature temperature coupling
T5: Coulomb Interaction — market-sign-flipped electrostatics for dynamic adjacency
T6: Graph Diffusion Engine — Fokker-Planck on Laplacian via matrix exponential
T7: Landauer Inference Profiler — physical bound tracking with honest 9-OOM documentation
Integration: GeoSyncPhysicsEngine unified pipeline, 94 tests all green, 0 ruff errors.
AUDIT: Every formula has derivation comment. Every free parameter documented.
Verlet replaced by Euler (OFI non-conservative — honest).
Coulomb sign flipped (same-direction OFI = attraction — empirical).
Maxwell replaced by Fokker-Planck (graph diffusion — honest).
E=mc² NOT used. Landauer IS physical.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
T3: Forman-Ricci curvature O(E) fragility monitor + DualTrackRicciMonitor
κ_F(i,j) = 4 - d_i - d_j + 3·T_ij. Herding detection + margin multiplier.
T1: Liquidity-weighted Kuramoto coupling
A_ij = C_ij·√(m_i·m_j)/max(m). Benchmark framework vs uniform coupling.
T2: Explosive synchronization proximity detector + ESCircuitBreaker
Hysteresis sweep forward/backward. Kim et al. PNAS 2025 framework.
T5: Tsallis entropy risk gate with empirical q thresholds
Rolling q-fit via kurtosis. q<1.35=normal, 1.35-1.55=elevated, q>1.55=crisis.
Position gate: f(q) = max(0, 1-(q-1.35)/0.20).
T6: dF/dt≤0 trading gate with LOB temperature calibration
F = U - T_LOB·S_q. Trade admitted only if ΔF≤0. Gate statistics tracking.
T4: Higher-order Kuramoto with triadic interaction (σ₁ pairwise + σ₂ triadic)
Triangle detection + RK4 integration. First financial application.
T7: Graph diffusion volatility front predictor
ρ(t) = exp(-D·L(κ)·t)·ρ₀. Backtest with ROC-AUC evaluation.
97 new tests, all green. 0 ruff errors. 227 baseline preserved.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GeoSyncPhysicsEngineunified pipeline — singlerun()call through all 7 modules.AUDIT Sign-Off
Test plan
pytest tests/unit/physics/test_T{1..7}*.py -v— 86 unit tests passpytest tests/integration/test_physics_engine_full_pipeline.py -v— 8 integration tests passpytest --tb=no— 227 baseline tests: no regressionruff check core/physics/— 0 errors🤖 Generated with Claude Code