1011d8e5be
Regenerates the combined dist/soul.c and per-module dist/*.c from the current El sources, on top of the elc-source-typo fixes (PR #77) and the Track B threat-to-others routing (PR #76), both already on this branch. Validated end to end under a physical-RSS watchdog (macOS silently ignores ulimit -v / RLIMIT_AS, so every elc/elb run was RSS-polled and kill -9'd at a 3GB ceiling, one module at a time): - OOM is GONE. The stale dist/soul-with-nlg.el (which still carries the malformed string literals) explodes to 3.3GB+ and is watchdog-killed at ~90%. With the typos fixed, every one of the 48 modules compiles at <=18MB peak RSS, and the full flat amalgamation compiles as a single translation unit at ~68MB. The 700GB pathology was purely the unbounded-parser-on-malformed-literal loop; no malformed construct means no loop. - The regenerated soul.c contains Track B: safety_classify_hard_bell -> threat_other -> safety_hard_directive routes credible threat-to-others to 911 and explicitly NOT to 988 / the safety contact. Verified in source, in the emitted C, and in the linked binary's strings. Track A (abuse / self_harm) is unchanged and still checked first. - The regenerated soul links to a working native arm64 binary and boots: serves on a throwaway port, /health returns 200, awareness loop runs. Also fixes one source blocker discovered during regen (unrelated to the typos or Track B): chat.el handle_chat_agentic left a void `if { println(...) }` in value position, which the current elc lowers to `_if_result = (println(...))` (assigning void) -> invalid C. Bound an explicit Bool so the branch is non-void; behavior unchanged (still only logs on persist failure). NOTE (runtime dependency, for controlled deploy): this branch's chat.el calls engram_get_node_by_label, which the canonical el-compiler/runtime does not yet declare/define (the release runtime v1.0.0-20260501 has it; the newest runtime has arena + http_serve_async but not this). Building the soul requires a runtime that has all three. Land engram_get_node_by_label into the runtime package before this soul.c can be built in CI. Do not merge — regen + Track B going live is a controlled-deploy call.
27 lines
1.1 KiB
Plaintext
Generated
27 lines
1.1 KiB
Plaintext
Generated
// auto-generated by elc --emit-header — do not edit
|
|
extern fn idle_count() -> Int
|
|
extern fn idle_inc() -> Int
|
|
extern fn idle_reset() -> Void
|
|
extern fn ise_post(content: String) -> Void
|
|
extern fn elapsed_ms() -> Int
|
|
extern fn elapsed_human() -> String
|
|
extern fn embed_ok() -> Int
|
|
extern fn emit_heartbeat() -> Void
|
|
extern fn auto_term_try_slot(slot_type: String, slot_lbl: String) -> Void
|
|
extern fn proactive_curiosity() -> Bool
|
|
extern fn pulse_count() -> Int
|
|
extern fn pulse_inc() -> Int
|
|
extern fn make_action(kind: String, payload: String) -> String
|
|
extern fn perceive() -> String
|
|
extern fn attend(node_json: String) -> String
|
|
extern fn respond(action_json: String) -> String
|
|
extern fn record(outcome_json: String) -> Void
|
|
extern fn one_cycle() -> Bool
|
|
extern fn awareness_run() -> Void
|
|
extern fn security_research_authorized() -> Bool
|
|
extern fn threat_score_command(cmd: String) -> Int
|
|
extern fn threat_score_path(path: String) -> Int
|
|
extern fn threat_score_history(history: String) -> Int
|
|
extern fn threat_trajectory_check(tool_name: String, tool_input: String) -> Int
|
|
extern fn threat_history_append(text: String) -> Void
|