fix(runtime): UTF-8 guard, engram sync route, native platform backends, UI vessels #61
Reference in New Issue
Block a user
Delete Branch "fix/windows-rusage-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Six commits landing a mix of fixes and new platform work:
Fixes
engram_node_fullrejects invalid UTF-8 before any persist call — silent corrupt writes were garbling JSON snapshotsprintlnflushes stdout after every write — launchd-redirected streams were holding startup log output indefinitelyEngram
GET /api/syncroute — soul daemon periodic pull of non-ISE knowledge into in-process graph; previously returned 404, causing the soul to attempt an empty merge every 10 minAny→[String]forgenerate_frame,generate_frame_lang,build_form_from_jsonNative platform backends (9,699 lines)
el_native_target.h— shared target abstractionel_appkit.m,el_uikit.m,el_android.c,el_gtk4.c,el_sdl2.c,el_lvgl.c,el_win32.c,el_runtime_win32.cPlatform tooling
ElBridge.java— Android JNI companionPLATFORM_BRIDGE_SPEC.md— authoritative bridge contractdetect-platforms,new-platform— probe + scaffold scriptsUI
el-nativevessel (wraps__widget_*builtins)el-html/main.elhupdateTest plan
engram_node_fullwith invalid UTF-8 content logs rejection and returns without persistingGET /api/syncreturns snapshot JSON; soul daemon sync loop no longer errors every 10 minprintlnoutput appears immediately in launchd log files (no buffering delay)http_handler_fn / http_handler4_fn were defined only inside el_runtime.c, so soul modules (routes/chat/...) that reference them via cross-module forward declarations couldn't see the types — which broke the Windows link of every module. Moving the public function-pointer types to the shared header is the correct home and unblocks the build on all platforms (identical typedef, C11-safe redefinition in el_runtime.c). With this, the soul links into a native Windows neuron.exe (mingw, static) that boots and serves HTTP on :7770 — verified /health → 200 {"status":"alive",...} in a Win11 VM. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>Pull request closed