From 0ec8a850fe63a477aeb5d82f3dc05592d32576b7 Mon Sep 17 00:00:00 2001 From: gravermistakes Date: Mon, 19 Oct 2026 20:45:07 -0700 Subject: [PATCH] docs: add M3b V1 runtime contract --- core/src/economy/sims/sociological/README.md | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 core/src/economy/sims/sociological/README.md diff --git a/core/src/economy/sims/sociological/README.md b/core/src/economy/sims/sociological/README.md new file mode 100644 index 0000000..6b6dbd3 --- /dev/null +++ b/core/src/economy/sims/sociological/README.md @@ -0,0 +1,26 @@ +# M3b — sociological simulator + +M3b V1 is the ECLiPSe-Prolog population simulator behind the stomach's `sociological` prediction type. + +V1 contains five abstract archetypes: retail herd, contrarian whale, MEV searcher, passive LP, and manipulator. It implements replicator dynamics, UCB bandit-replicator adaptation, adaptive Hegselmann–Krause bounded confidence, heterogeneous complex contagion, a one-dimensional HJB/Fokker–Planck mean-field equilibrium with damped Newton iteration, bounded-rationality pump/dump dynamics, opinion clustering, and nine public prediction types. + +The live boundary is: + +`M2 rss_news + price_tick → SociologicalRunner (Tcl) → ECLiPSe → SimsHub → Marketplace` + +Population state persists per ticker. Each query advances that state through ECLiPSe's native bandit-replicator relation before the requested prediction is evaluated. MFG stability is also computed by ECLiPSe, not reimplemented in Tcl. + +`correctness` is empirical: confidence/engagement-weighted social direction is compared walk-forward against the next realized price move. It is therefore usable as evidence for later cross-sim gating rather than as a source-count heuristic. + +The nine prediction types are `sentiment_index`, `herd_threshold`, `strategy_distribution`, `cascade_probability`, `coordination_stability`, `opinion_cluster_count`, `pump_dump_phase`, `mfg_equilibrium_stability`, and `narrative_regime`. + +No pop represents a literal person. M3b has no trading, signing, broadcasting, or transaction surface. + +Verification: + +```sh +eclipse -b core/src/economy/sims/sociological/test.ecl -e run_tests +tclsh core/src/economy/sims/sociological/integration.test +``` + +Dedicated CI enforces the native ECLiPSe suite and `6 passed / 0 failed` at the M2→M3b→Hub boundary.