v4: acceptance asserts the loops -- L1, L3, L2 with L5, L8 -- and WORD_PHYSICS (#189, Phase 7 Task 9)
Build / Image RASPI (push) Successful in 6m16s
Build / Image PC (push) Successful in 6m19s
Build / Image MILKV (push) Successful in 8m30s
Build / v4 tests (32- and 64-bit cells) (push) Successful in 16m7s

The acceptance session's loops(), at every v4 boot's prompt: a word's
heat (L1), its decay from a set heat (L3), INFER-RUN's variance and
width with L8 held on card 18 (L2, L5), and L8's changes. L8-HOLD
( card -- ), request -42, beside L8-CARD@, with its POST case: POST 992.
WORD_PHYSICS (Kconfig.physics, default y) turns the word loops off: a
boot with it off fails acceptance at POST (ruled 3a). Measured on amd64:
heat 6, 1000 cooled to 0 in 40 s, width 455, 66 changes. L8 unheld
settles on card 11, with the window off, so L2/L5 hold a card (ruled).
test_mesh_boot: L8-HOLD failed first, 144 checks now. V3-PARITY.md 2.2
corrected, dated. Gates pass, POST 992/992.

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-20 18:06:09 +00:00
parent 43f8687f70
commit a9a8687fa5
31 changed files with 3767 additions and 17 deletions
+15 -6
View File
@@ -675,13 +675,15 @@ static void inference_tick(unsigned place, v4_mesh_physics *p)
static void heartbeat_cycle(unsigned place, v4_mesh_physics *p)
{
p->tick = the->tick; /* the one heartbeat's: every node the same */
if (p->tick - p->last_inference_tick >= V4_MESH_INFERENCE_EVERY) inference_tick(place, p);
background_decay(place, p);
window_service(&p->win);
if (WORD_PHYSICS) { /* Task 9's revert: off, none of the words' loops */
if (p->tick - p->last_inference_tick >= V4_MESH_INFERENCE_EVERY) inference_tick(place, p);
background_decay(place, p);
window_service(&p->win);
}
#if OPCODE_PHYSICS
opcodes_cycle(p);
#endif
l8_update(p);
if (WORD_PHYSICS) l8_update(p);
/* the snapshot (v3's heartbeat_publish_snapshot) */
p->snapshot.tick = p->tick;
p->snapshot.window_width = p->win.effective_window_size;
@@ -731,7 +733,7 @@ static v4_cell on_call(void *ctx, v4_node *n, v4_cell target)
id = n->mem[target - 4];
if (id < 0 || id >= (v4_cell)V4_MESH_WORD_IDS) return target;
a = &accounts_of(place)[id];
if (the->physics) {
if (WORD_PHYSICS && the->physics) {
v4_mesh_physics *p = &the->physics[place];
decay(a, p, p->tick - a->last_decay_tick);
a->last_decay_tick = p->tick;
@@ -986,7 +988,14 @@ static int physics_serve(unsigned place, v4_node *n, v4_cell value)
v4_cell u, a, xt;
v4_mesh_account *r;
const uint64_t *d;
if (value > V4_REQ_FREEZE_WORD || value < V4_REQ_L8_CARD) return 0;
if (value > V4_REQ_FREEZE_WORD || value < V4_REQ_L8_HOLD) return 0;
if (value == V4_REQ_L8_HOLD) { /* ( card -- ), for acceptance (Task 9) */
if (n->ds.depth < 1u) return 0;
u = v4_dstack_pop(&n->ds);
if (p && u >= 0 && u < (v4_cell)V4_L8_CARDS) v4_mesh_l8_force(the, place, (unsigned)u, 1);
else if (p && u == -1) v4_mesh_l8_force(the, place, p->l8.current_card, 0);
return 1;
}
if (value == V4_REQ_L8_CARD) { /* ( -- card changes ), for acceptance (Task 9) */
if (n->ds.depth + 2u > V4_DATA_DEPTH) return 0;
v4_dstack_push(&n->ds, p ? (v4_cell)p->l8.current_card : 0);