715dea0f448ae3a495a9da241d93b2bac37b834b
Issue 1: declare affective_boot_block in build_system_prompt by reading soul_affective_context from state — the variable was used in the return statement but never assigned, causing a runtime undefined-variable error on every call. Issue 2: add missing closing brace for the hard_bell if-block in handle_chat_agentic — the absent '}' made the entire function body after the return syntactically invalid. Issue 3: call safety_normalize() before matching in safety_detect_positive_level — all phrases are lowercase; without normalization "I GOT THE JOB", "Thrilled!", and "We Won" never matched. Issue 4: switch json_array_get to json_array_get_string in safety_detect_positive_level, matching the helpers used by safety_any_match and safety_count_match throughout the rest of the safety infrastructure. Issue 5: remove the explicit safety_log_bell call in handle_chat_agentic hard_bell branch — safety_screen() already logs internally, so the call produced two BellEvent nodes per hard bell on the agentic path. Issue 6: already fixed on this branch (conv_history key confirmed correct). Issue 7: emit "low" for a single positive-phrase match and "high" for two or more — the detector previously only returned "high" or "none", making the "low" branch in auto_persist and the joy:low engram tag unreachable.
…
…
…
Description
Neuron - the canonical CGI substrate. Real soul.el lives here.
22 MiB
Languages
Emacs Lisp
93%
Python
3.3%
Shell
1.8%
HTML
1.3%
Dockerfile
0.6%