feat(v4): Phase 7 Task 2a -- decay, heat, temperature and the rolling window at every call (#189)
As v3's physics_pre_execute, in its order (Captain Bob, 2026-11-13: "Every call, as v3"): a word's heat decays by the ticks since its last touch at the node's decay slope (Q48.16, v3's arithmetic), unless frozen or L8 has Loop #3 off; +1; its temperature smoothed 3:1; its ID into the node's Rolling Window of Truth (4096, warm at 1024, a diversity check due every 512). The kernel's heartbeat is read at each call. Pipelining and the hot-words cache ruled "Built, off as v3" (Task 2b). Test first: test_mesh_boot.c, 56 checks. amd64 boots, RESULT: PASS, 146 s against Phase 2's 142 s. Not pushed (held). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -31,6 +31,12 @@
|
||||
5. **Mama's 20 cases** run as they are, on v4 words with v3's names mapped to v4's equivalents; **the
|
||||
C modules** (ACL, break_me) are rewritten for v4. Inventory and rulings: `docs/v4.0.0/POST-PARITY.md`.
|
||||
|
||||
6. **Pipelining and the hot-words cache: "Built, off as v3"** (2026-11-13). Asked first "Build a
|
||||
hot-words cache" (in front of FIND, in F18/StarForth, as v3 promotes into its own); then it was found
|
||||
that v3 as built has both off (`ENABLE_PIPELINING`, `ENABLE_HOTWORDS_CACHE`: `n` in
|
||||
`Kconfig.physics` and `kernel/Makefile`), so v3's boot records no transitions and uses no cache.
|
||||
Ruled: both written and tested, behind the same two build options, off by default as in v3.
|
||||
|
||||
## What ruling 3 brings in
|
||||
|
||||
v3's POST is 26 modules (`v3/src/test_runner/modules/`, about 1,050 cases; v3's bare-metal boot says
|
||||
@@ -84,7 +90,14 @@ Phase 4).
|
||||
L8's Loop #3 gate); `v4_mesh_state_flags`. Immediate and hidden are read from the node's header
|
||||
when asked, so they are never stale. v3's `mass_bytes` is only ever set, never read, in v3: not
|
||||
kept until a word reads it.
|
||||
### Task 2: the per-call loops at `call` (decay on touch, window, transitions) -- measured
|
||||
### Task 2a: the per-call loops at `call` -- decay on touch, heat, temperature, the rolling window -- measured
|
||||
- [x] Test first (`test_mesh_boot.c`, 56 checks): heat +1 a call; decay by the ticks since at v3's
|
||||
slope and arithmetic (6 ticks: 1; 3 ticks: 0); none for a frozen word, none while L8 has Loop #3
|
||||
off; the temperature; the window.
|
||||
- [x] `mesh.c`'s call hook, in v3's order; the kernel's heartbeat read at each call (`ticks`). Until
|
||||
Task 3 brings L8, Loop #2 and #3 are on (v3's boot sets both off and lets its card decide).
|
||||
- [x] Measured: amd64 boot 146 s, against Phase 2's 142 s (about +3%).
|
||||
### Task 2b: pipelining (transitions, the likely next word, speculation) and the hot-words cache in front of FIND, behind `ENABLE_PIPELINING` and `ENABLE_HOTWORDS_CACHE`, off as v3
|
||||
### Task 3: the per-tick loops (tuner, slope, background decay, L8, inference, 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
|
||||
|
||||
Reference in New Issue
Block a user