Files
LithosAnanke/logs/20261112-185530/kernel-tests/test_heartbeat_export.log
T
Claude e453fde3d4 fix(v3): the DoE row's cache and bucket hits are measured, not written as 0 (#142)
Captain Bob, 2026-11-12: "correct deficiencies". heartbeat_capture_tick_snapshot
wrote cache_hits_delta and bucket_hits_delta as 0 ("TODO: wire ..."), though
physics_hotwords_cache.c counts both. Now each is read from the VM's hot-words
cache as a delta since the previous tick, the way word_executions_delta is
(and after the cache's stats are reset, the count since then); a VM with no
cache has 0. word_executions_delta was measured already: doe_log.c's "TODO: 0"
for it was stale, and its three column notes are corrected.

kernel/tests/test_heartbeat_export.c, 4 checks: a VM in memory with a cache
whose counters the test sets, captured tick by tick. Against the code as it
was: 3 failures (the hits 0 where the cache counted 5 and 3, then 7 and 7).
Now: 0. Built for amd64, aarch64, riscv64 and the hosted v3. Shared v3 code,
under the ruling. v3 is not part of acceptance; no DoE has run since 2026-09-16.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
2026-11-12 18:55:30 +00:00

11 lines
662 BLFS
Plaintext

=== test_heartbeat_export against heartbeat_export.c as it was
test_heartbeat_export
FAIL /home/user/LithosAnanke/kernel/tests/test_heartbeat_export.c:25: #142: the first tick: 5 cache hits, 3 bucket hits, 40 words (0, 0, 40)
FAIL /home/user/LithosAnanke/kernel/tests/test_heartbeat_export.c:30: #142: the next tick: the deltas, 7, 7 and 60 (0, 0, 60)
FAIL /home/user/LithosAnanke/kernel/tests/test_heartbeat_export.c:35: #142: after the stats are reset, the count since then, as words_executed is (0, 0)
4 checks, 3 failures
make: *** [Makefile:44: run-test_heartbeat_export] Error 1
=== test_heartbeat_export now
test_heartbeat_export
4 checks, 0 failures