c8cb425412
awareness_run's while-loop ran outside any request arena, so every allocation in every 1s tick (search JSON, heartbeat payloads, curiosity activations) was treated as permanent by the runtime — 7.5GB RSS in under a minute. Bracket each iteration with el_arena_push/el_arena_pop (same pattern the compiler emits for scoped blocks; state_set/state_get persist separately via el_strdup_persist and are unaffected). dist/soul.c carries the same change hand-patched at the compiled awareness_run site — elc is currently unsafe to run locally (pathological memory on sessions.el), so the generated C was patched to match the source, verified line-for-line against the compiler's own conventions. MUST be paired with el repo PR #64 (el_strdup_persist for stored engram fields): per-tick arena reclamation widens the write-corruption window without it. Verified together: 5h live soak on the recovered production snapshot, flat RSS, write-field-integrity clean. Note: dist/soul.c still needs a full elc regen to pick up PR #73's source changes (consent tiers) — tracked separately; this patch does not regress that (those changes were never in dist).
17 lines
800 B
Plaintext
17 lines
800 B
Plaintext
// auto-generated by elc --emit-header — do not edit
|
|
extern fn tier_working() -> String
|
|
extern fn tier_episodic() -> String
|
|
extern fn tier_canonical() -> String
|
|
extern fn mem_store(content: String, label: String, tags: String) -> String
|
|
extern fn mem_remember(content: String, tags: String) -> String
|
|
extern fn mem_recall(query: String, depth: Int) -> String
|
|
extern fn mem_search(query: String, limit: Int) -> String
|
|
extern fn mem_strengthen(node_id: String) -> Void
|
|
extern fn mem_forget(node_id: String) -> Void
|
|
extern fn mem_consolidate() -> String
|
|
extern fn mem_save(path: String) -> Void
|
|
extern fn mem_load(path: String) -> Void
|
|
extern fn mem_boot_count_get() -> Int
|
|
extern fn mem_boot_count_inc() -> Int
|
|
extern fn mem_emit_state_event(trigger: String, kind: String, content: String) -> String
|