docs: harden economy contributor runtime boundaries

This commit is contained in:
2026-10-24 03:27:42 -07:00
parent e826296238
commit 11fb58d37a
+15 -2
View File
@@ -10,13 +10,26 @@ Local guide for `core/src/economy`. The design source of truth is `core/docs/pla
- M4 wallet brakes are independent of M1/M6. Keep 1:1 trader↔wallet binding literal.
- M7 observes and reports. Enforcement belongs to M6/M1/M4, not the monitor.
- Live key custody and chain broadcast are intentionally absent until the M4 key-storage specification is ratified. Do not smuggle them in as convenience helpers.
- Registry/source presence is **not** runtime wiring. M3a/M3b/M3c/M3e have tested native query
bridges; M3d/M3f/M3g do not yet.
- The M3 horizon clock is live, but it does not yet dispatch/refresh all native engines
automatically. Do not document or code-review it as continuous native execution until that loop
exists and has an explicit test.
- M5 identity state is not Trader inference, M6 veto state is not Conductor inference, and M7
logging is not SAE inference. Keep those boundaries literal.
## Build/test
Tcl 8.6, standard library only:
Tcl 8.6 orchestration, plus native simulator runtimes:
```sh
tclsh core/src/economy/tests/stomach.test
tclsh core/src/economy/sims/tests/hub_runtime.test
tclsh core/src/economy/sims/run_tests.tcl
```
Use test-first changes. Keep `stomach.tcl` as composition/facade; put component behavior in the M1–M7 module that owns it.
Dedicated CI owns the end-to-end native boundary for M3a, M3b, M3c, and M3e. Fortran kernels are
compiled under `-std=f2018 -Wall -Wextra -Werror -pedantic`.
Use test-first changes for behavior. Keep `stomach.tcl` as composition/facade; put component
behavior in the M1–M7 module or M3 native runner that owns it.