chore(dist): compile EL recall/dedup/session-continuity fixes to C
Updates soul.c and all per-module .c files with: - parse_float_x100() engram score fix - id_in_seen dedup wiring across session_preload - session-end summary hook + session-start recall - Emergency structural repair (no duplicate fns, all callsites wired)
This commit is contained in:
+44
-9
@@ -1004,6 +1004,7 @@ el_val_t elapsed_ms(void);
|
||||
el_val_t elapsed_human(void);
|
||||
el_val_t embed_ok(void);
|
||||
el_val_t emit_heartbeat(void);
|
||||
el_val_t auto_term_try_slot(el_val_t slot_type, el_val_t slot_lbl);
|
||||
el_val_t proactive_curiosity(void);
|
||||
el_val_t pulse_count(void);
|
||||
el_val_t pulse_inc(void);
|
||||
@@ -25895,6 +25896,28 @@ el_val_t emit_heartbeat(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
el_val_t auto_term_try_slot(el_val_t slot_type, el_val_t slot_lbl) {
|
||||
state_set(EL_STR("_ats_ok"), EL_STR("0"));
|
||||
if (str_eq(slot_type, EL_STR("Memory"))) {
|
||||
state_set(EL_STR("_ats_ok"), EL_STR("1"));
|
||||
}
|
||||
if (str_eq(slot_type, EL_STR("BacklogItem"))) {
|
||||
state_set(EL_STR("_ats_ok"), EL_STR("1"));
|
||||
}
|
||||
if (str_eq(slot_type, EL_STR("Entity"))) {
|
||||
state_set(EL_STR("_ats_ok"), EL_STR("1"));
|
||||
}
|
||||
if (str_eq(state_get(EL_STR("_ats_ok")), EL_STR("1"))) {
|
||||
if (!str_eq(slot_lbl, EL_STR(""))) {
|
||||
el_val_t sp = str_find_chars(slot_lbl, EL_STR(" :(["));
|
||||
if (sp > 3) {
|
||||
state_set(EL_STR("cseed_auto"), str_slice(slot_lbl, 0, sp));
|
||||
}
|
||||
}
|
||||
}
|
||||
return EL_STR("");
|
||||
}
|
||||
|
||||
el_val_t proactive_curiosity(void) {
|
||||
el_val_t ts = time_now();
|
||||
el_val_t ts_minutes = (ts / 60000);
|
||||
@@ -25932,15 +25955,27 @@ el_val_t proactive_curiosity(void) {
|
||||
el_val_t found_c = json_array_len(results_c);
|
||||
el_val_t found = ((found_a + found_b) + found_c);
|
||||
state_set(EL_STR("cseed_auto"), EL_STR(""));
|
||||
el_val_t wm_top_j = engram_wm_top_json(1);
|
||||
el_val_t wm_top_n = json_array_get(wm_top_j, 0);
|
||||
el_val_t wm_top_lbl = json_get(wm_top_n, EL_STR("label"));
|
||||
if (!str_eq(wm_top_lbl, EL_STR(""))) {
|
||||
el_val_t sp = str_find_chars(wm_top_lbl, EL_STR(" :(["));
|
||||
if (sp > 3) {
|
||||
state_set(EL_STR("cseed_auto"), str_slice(wm_top_lbl, 0, sp));
|
||||
}
|
||||
}
|
||||
el_val_t wm10 = engram_wm_top_json(10);
|
||||
el_val_t wm10_n9 = json_array_get(wm10, 9);
|
||||
el_val_t wm10_n8 = json_array_get(wm10, 8);
|
||||
el_val_t wm10_n7 = json_array_get(wm10, 7);
|
||||
el_val_t wm10_n6 = json_array_get(wm10, 6);
|
||||
el_val_t wm10_n5 = json_array_get(wm10, 5);
|
||||
el_val_t wm10_n4 = json_array_get(wm10, 4);
|
||||
el_val_t wm10_n3 = json_array_get(wm10, 3);
|
||||
el_val_t wm10_n2 = json_array_get(wm10, 2);
|
||||
el_val_t wm10_n1 = json_array_get(wm10, 1);
|
||||
el_val_t wm10_n0 = json_array_get(wm10, 0);
|
||||
auto_term_try_slot(json_get(wm10_n9, EL_STR("node_type")), json_get(wm10_n9, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n8, EL_STR("node_type")), json_get(wm10_n8, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n7, EL_STR("node_type")), json_get(wm10_n7, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n6, EL_STR("node_type")), json_get(wm10_n6, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n5, EL_STR("node_type")), json_get(wm10_n5, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n4, EL_STR("node_type")), json_get(wm10_n4, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n3, EL_STR("node_type")), json_get(wm10_n3, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n2, EL_STR("node_type")), json_get(wm10_n2, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n1, EL_STR("node_type")), json_get(wm10_n1, EL_STR("label")));
|
||||
auto_term_try_slot(json_get(wm10_n0, EL_STR("node_type")), json_get(wm10_n0, EL_STR("label")));
|
||||
el_val_t auto_term = state_get(EL_STR("cseed_auto"));
|
||||
el_val_t results_auto = ({ el_val_t _if_result_101 = 0; if (str_eq(auto_term, EL_STR(""))) { _if_result_101 = (EL_STR("[]")); } else { _if_result_101 = (engram_activate_json(auto_term, 1)); } _if_result_101; });
|
||||
el_val_t found_auto = json_array_len(results_auto);
|
||||
|
||||
Reference in New Issue
Block a user