self-review 2026-07-31: strip emb from consumer API JSON; cumulative eviction/breakthrough counters

Every node object on consumer read routes (/api/nodes, /api/search,
activation results, neighbors, compiled context) carried the full ~5.7KB
emb vector — responses 10-50x oversized, blowing MCP token limits.
engram_emit_node_json now takes include_emb; only engram_save passes 1,
so persistence and the /api/sync//api/edges replication paths (which
serve engram_save output) keep embeddings intact.

_eg_act_wm_evicted/_eg_act_breakthroughs were reset at the top of every
engram_activate, so act_stats reported only the last call and the 60s
heartbeat missed nearly all events (curiosity runs 2 activates per 30s).
Both are now monotonic process-lifetime totals; consumers diff readings.
This commit is contained in:
2026-07-31 08:41:33 -05:00
parent 7f66529510
commit 599073cb92
2 changed files with 41 additions and 24 deletions
BIN
View File
Binary file not shown.