From db568b1bc176d43f8efc850ead66ce5c43b3c4b8 Mon Sep 17 00:00:00 2001 From: gravermistakes Date: Sun, 18 Oct 2026 22:54:50 -0700 Subject: [PATCH] docs: describe built-in M3 simulator family --- core/src/economy/README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/core/src/economy/README.md b/core/src/economy/README.md index 115b83c..ee69cb9 100644 --- a/core/src/economy/README.md +++ b/core/src/economy/README.md @@ -6,7 +6,7 @@ Executable scaffold for M0–M7. The stomach is an OUTER organ: its only organis - **M1 Marketplace** — single action ingress; wallet-first admission; deterministic action/chain law; wallet brake; Conductor veto after law; simulated execution only. - **M2 Feeds** — normalized datum history with explicit backpressure instead of silent eviction. -- **M3 Sims hub** — bounded-prediction validation and current-state publication/query. Native M3a–M3g engines and 90:1 scheduler are not built yet. +- **M3 Sims** — all seven native engine trees are now built in: M3a R statistical, M3b ECLiPSe sociological, M3c Solidity AMM, M3d Fortran MEV, M3e Fortran tokenomics, M3f ECLiPSe consensus, and M3g Fortran microstructure. A live Tcl event-loop clock runs all six horizons at 90:1 or faster; the registry exposes source/runtime status through M0. - **M4 Wallets** — permanent 1:1 trader binding plus per-action/session exposure brakes. No private-key field, signer, or RPC surface exists yet. - **M5 Traders** — trader registry and mechanical pause state. AI trader inference is not implemented here. - **M6 Conductor** — veto-next, pause/resume, SAE alert intake, append-only in-memory decision log. Specialist inference is not implemented yet. @@ -21,10 +21,18 @@ There is deliberately no live transaction broadcaster. A successful action retur tclsh core/src/economy/tests/stomach.test ``` -Expected: `Total 13 Passed 13 ... Failed 0`. +Expected: `Total 17 Passed 17 ... Failed 0` once the current branch is checked out. + +The simulator family also has its own polyglot driver: + +```sh +tclsh core/src/economy/sims/run_tests.tcl +``` + +It executes Tcl + every native suite whose runtime is installed. Use `--strict` to make missing R/ECLiPSe/Foundry runtimes a failure rather than an explicit skip. ## Public scaffold API -`::stomach::Economy` exposes `register_trader`, `bind_wallet`, `submit_action`, `feed_publish`, `feed_history`, `sim_publish`, `query_predictions`, `conductor_veto_next`, `conductor_pause`, `conductor_resume`, `sae_alert`, `tax_event`, and `secretion`. +`::stomach::Economy` exposes `register_trader`, `bind_wallet`, `submit_action`, `feed_publish`, `feed_history`, `sim_publish`, `query_predictions`, `sim_engines`, `sim_engine_status`, `sim_horizons`, `sim_running`, `sim_advance`, `conductor_veto_next`, `conductor_pause`, `conductor_resume`, `sae_alert`, `tax_event`, and `secretion`. `secretion` returns the envelope-compatible metadata `source stomach`, `destination ada_border`, `provenance organ_secretion`. The runtime Pony↔Tcl bridge is still an integration task; no code may shortcut D1 while that bridge is built.