ChimeraBot_garage: M3.5+M4 — kernel library v0.2, live G4 re-bench, twinsim rollout + G5 eval

This commit is contained in:
2026-10-07 00:21:48 +02:00
parent 7e2dd3f559
commit da5f53c53f
12 changed files with 657 additions and 42 deletions
+17 -5
View File
@@ -23,10 +23,22 @@ cd ChimeraBot_garage/src && nimble test # unit tests
`SERVER_URL` / `SERVER_SECRET` come from the environment; an optional `.env`
beside the `.nimble` is loaded without ever overriding a preexisting variable.
## CHIMERA modules (M2)
## CHIMERA modules (M3.5 + M4)
`src/ChimeraBot/chimera/` holds the inert CHIMERA libraries implemented at M2 —
`src/ChimeraBot/chimera/` holds the CHIMERA libraries —
`physics.nim` (server-math mirror), `ledger.nim` (intent ledger), `dsl.nim` (the
v0 kernel library), `hedge.nim` (Hedge posterior) and `oracle.nim` (G1 harness).
They are **not wired into the run loop**: the bot still runs the exact
DevControlBot copy unchanged. They become live at M3.
v0.2 kernel library, **12 kernels**: the M2 set plus `STATIC_CORNER`, the STATIC
corner-park mode, and adaptive/heat-gated v0.2 params), `hedge.nim` (Hedge
posterior), `oracle.nim` (G1 harness), `observer.nim` (observation sidecar) and
`twinsim.nim` (offline counterfactual rollout, M4).
`observer.nim` is wired into `ChimeraBot.nim` as an **observation-only** sidecar:
it folds the scan stream into the ledger + Hedge and writes JSONL telemetry to
`/tmp/chimera_twin` — it never issues a command, so the bot's behaviour is
byte-identical with or without it. `twinsim.nim` is **offline analysis only** at
M4 (nothing is wired into commands); it replays that telemetry and rolls the
posterior mixture forward under a candidate plan.
Benchmarks: `tests/bench_g4.nim` (live identification, G4) and
`tests/bench_g5.nim` (offline twin-vs-persistence rollout, G5). Both write only
to `/tmp`.