feat(v4): Phase 7 Task 1 -- v3's physics fields on the word records, and each node's physics state (#189)

v4_mesh_account gains v3's DictPhysics: heat (execution_heat), last_decay_tick, temperature_q8, and the
kernel's own state flags (pinned, frozen); v4_mesh_physics gives each node v3's VM fields -- its tick,
the decay slope (v3's initial 21845, Q48.16), L8's gate on Loop #3. v4_mesh_state_flags derives a word's
flags as v3 does, immediate and hidden read from the node's header when asked. Test first:
test_mesh_boot.c, 48 checks. The kernel gives each of its 16 places its physics. Not pushed (held,
Captain Bob 2026-11-13: "Hold it, go ahead with Task 1").

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 20:00:28 +00:00
parent 41f8c1ec28
commit 922451cf52
5 changed files with 69 additions and 0 deletions
@@ -76,6 +76,14 @@ Phase 4).
Mama and the C modules ruled (above).
### Task 1: the records' physics fields, and the per-node state
- [x] Test first (`test_mesh_boot.c`): a new word's heat, temperature, last decay tick and state flags
are 0; each node starts with v3's decay slope (21845, Q48.16) and Loop #3 on; a word's state
flags as v3 derives them (IMMEDIATE read from its header).
- [x] `v4_mesh_account` gains `heat` (v3's `execution_heat`), `last_decay_tick`, `temperature_q8`,
`state_flags` (the kernel's own: pinned, frozen); `v4_mesh_physics` per node (tick, decay slope,
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 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