feat(v4): Phase 7 Task 3 -- the heartbeat snapshot; the loops complete (#189)
Each cycle publishes v3's HeartbeatSnapshot: the tick, the window's width and fill, the decay slope, and the dictionary's heat as inference last counted it (words over 50, cooling, the heat in all). One copy, not v3's two, which are for its heartbeat thread. With it every loop v3 runs before its prompt runs on v4's word records on every node. Test first: test_mesh_boot.c 73 checks, 81 on. Not pushed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -179,6 +179,13 @@ typedef struct {
|
||||
uint8_t inference_early_exited;
|
||||
uint64_t inference_runs, inference_early_exits;
|
||||
uint64_t tick_target_ns; /* v3's tick_target_ns: HEARTBEAT_TICK_NS, a quarter to four times it */
|
||||
/* the dictionary as inference last counted it (v3's *_at_check): words over heat 50, words cooling (heat
|
||||
* 1..9), the heat in all; and the snapshot each cycle publishes (v3's HeartbeatSnapshot) */
|
||||
uint64_t hot_at_check, stale_at_check, total_heat_at_check;
|
||||
struct {
|
||||
uint64_t tick, decay_slope_q48, hot, stale, total_heat;
|
||||
uint32_t window_width, fill;
|
||||
} snapshot;
|
||||
} v4_mesh_physics;
|
||||
|
||||
typedef struct v4_mesh v4_mesh;
|
||||
|
||||
Reference in New Issue
Block a user