feat(v4): Phase 7 Task 3 -- L8, v3's Jacquard selector, in each node's heartbeat cycle (#189)

v3's vm_heartbeat_update_l8 with its table (ssm_jacquard.c, compudynamics.c), rewritten in integers: the
regime from the window's entropy, the prediction CV and the locality of the last 32 calls; the current card
scored (ANOVA from inference, joint convergence under L5/L6), decayed 0.99, the next chosen by UCB1 over 64
cards; its gates L1-L7 applied to the loops, L1 and L4 within the build's ceilings. Every gate off and card 8
at the start, as v3's kernel boot. Applied through card_bits: v3 applies the card's number, one bit off --
filed #196, ruled "v4 correct, v3 as is". v4_mesh_l8_force as v3's ssm_l8_force_config; the exact decay
and window tests hold a card. Test first: test_mesh_boot.c 67 checks, 75 on. amd64 PASS, 156 s.
Not pushed (held to the end of Phase 7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
Claude
2026-11-13 22:38:36 +00:00
parent 2379503900
commit d09eee9a08
7 changed files with 205 additions and 12 deletions
@@ -129,7 +129,13 @@ Phase 4).
`rolling_window_run_adaptive_pass`): diversity against the last; halve to 256, double to 4096.
Test first (`test_mesh_boot.c`: 62 checks; 70 on).
- [ ] Inference every 1000 ticks (v3's `vm_tick_inference_engine`, `inference_engine.c`).
- [ ] L8's update (v3's `vm_heartbeat_update_l8`: its metrics; the table of 64 cards, #188; the gates L1-L7).
- [x] L8's update (v3's `vm_heartbeat_update_l8` with its table, `ssm_jacquard.c`, `compudynamics.c`): the
regime (window entropy >= 0.75, prediction CV >= 0.15, locality >= 1/2, as exact integer
comparisons), the card scored (ANOVA from inference; joint convergence when L5 or L6), the next by
UCB1, its gates applied. Every gate off and card 8 at the start, as v3's kernel boot. Applied
through `card_bits` -- v3 applies the card's number, one bit off (#196; ruled "v4 correct, v3 as
is"). `v4_mesh_l8_force` as v3's `ssm_l8_force_config`. Test first (67 checks; 75 on). amd64 PASS,
156 s.
- [ ] The snapshot.
### Task 4: the words that read and set them (`FREEZE-WORD`, the inference words, ...), and their POST
### Task 5: the StarForth words (Phase 3's: `init.4th`, `starforth.4th`), and their POST