From 5fcae16a0542903160488e4ab2e313d0ff4cc2da Mon Sep 17 00:00:00 2001 From: gravermistakes Date: Mon, 19 Oct 2026 20:44:56 -0700 Subject: [PATCH] docs: mark M3b V1 implemented --- core/docs/plans/M3b-sociological-sims.md | 51 +++++++++++++++++------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/core/docs/plans/M3b-sociological-sims.md b/core/docs/plans/M3b-sociological-sims.md index 13ef44d..5618a40 100644 --- a/core/docs/plans/M3b-sociological-sims.md +++ b/core/docs/plans/M3b-sociological-sims.md @@ -10,11 +10,17 @@ pressure across **six concurrent time horizons**. Grounded in evolutionary conse MFG theory (Lasry & Lions 2007), and crypto manipulation ABMs. ## 2. Status / certainty -KERNEL IMPLEMENTED · ECLiPSe Prolog. `core/src/economy/sims/sociological/engine.ecl` -implements replicator dynamics, Hegselmann-Krause bounded-confidence updates, heterogeneous -complex-contagion thresholds, and four-phase pump/dump classification. Native tests live beside -the engine. UCB/Thompson bandit coupling and the HJB/Fokker-Planck MFG layer remain incremental. -Foundations C4/C5 as previously stated; implementation C2; calibrated pop models C1. +IMPLEMENTED · M3b V1 · ECLiPSe Prolog. `core/src/economy/sims/sociological/engine.ecl` +implements five abstract behavioral archetypes, replicator dynamics, Hegselmann–Krause bounded +confidence, heterogeneous complex contagion with a multiple-exposure requirement, UCB +bandit-replicator learning, a large-population HJB/Fokker–Planck mean-field equilibrium solver +with damped Newton updates, bounded-rationality pump/dump population dynamics, adaptive +confidence bounds, opinion clustering, and all nine bounded prediction types. The Tcl runner +calibrates from M2 `rss_news` + `price_tick`, preserves per-ticker population state across +queries, advances that state through the native bandit-replicator kernel, evaluates native MFG +stability, and scores correctness by walk-forward social→price agreement. Dedicated CI verifies +both the ECLiPSe kernel and M2→M3b→Hub boundary. Foundations C4/C5; implementation C3; +population parameterization remains evidence-driven rather than hardcoded to literal persons. ## 3. Language & location **ECLiPSe Prolog 7.2** · `src/economy/sims/sociological/`. Libraries: **ic** (interval @@ -77,9 +83,14 @@ mutation, PDE solvers for MFG (HJB + Fokker-Planck), and bandit algorithms (UCB/ `pump_dump_phase`, `mfg_equilibrium_stability`, `narrative_regime`. - Calibration: ingests `rss_news` (sentiment signal) and `price_tick` (realized behavior) from M2. -## 6. Dependencies & stubs -- M2 Data Feeds — sentiment and price data for calibration; *stub:* canned sentiment series. -- M3 Sims hub — lifecycle management; *stub:* manual init. +## 6. Dependencies & runtime boundary +- M2 Data Feeds — normalized `rss_news` carries aggregate source type, sentiment, engagement + and confidence; `price_tick` supplies realized behavioral response. +- M3 Sims hub — every M3b result is published as the common bounded-prediction schema and read + by Traders through Marketplace. Categorical phase/regime results retain a label beside their + bounded numeric code. +- ECLiPSe CLP — installed by the repo toolchain hook and exercised directly by dedicated CI. + M3b has no individual-profile ingestion and no trading/execution surface. ## 7. Invariants / laws - **L1 (C5):** pops are **archetypal individuals, not literal living persons** — no attempt to model or track real @@ -116,10 +127,20 @@ produces adapting populations. MFG: equilibrium converges for large N; matches d small N. Pump-dump: 4-phase cycle detected on synthetic manipulation data. Bounds: all outputs include upper/lower. -## 10. Open items -- Pop archetype catalog (which behavioral types? how many?). -- Network topology for sentiment contagion (small-world? scale-free?). -- Calibration from real market data — how to infer pop distribution from observable price action. >>>We actually use blogs, reddit, and social networks to infer pops<<< -- MFG tensor-train rank $r$ (>>>accuracy<<< vs. compute tradeoff). -- Hegselmann-Krause confidence bound $d$ — fixed or >>>adaptive<<