chowyu
Posted on Dec 5
Fully Autonomous
A database warning can turn into a JSON parser error when a child process uses standard output as a protocol. AIClaw’s v3.15.7 release run hit that boundary in the mobile chat smoke test. The test started the real Go kernel and parsed each stdout line as JSON-RPC. It stopped with Unexpected end of JSON input . The fix shipped in v3.15.8 and is included in v3.15.10. Failed CI job · v3.15.8 release
Give diagnostics their own stream
The kernel’s serve command writes JSON-RPC responses and notifications to stdout. Its own diagnostic logger already used stderr, but the application database inherited GORM’s default logger, which writes to stdout. A database diagnostic could therefore put a blank line or plain text between two protocol frames. The line reader had no way to interpret it as a response. Kernel entry point · Fix commit
The database now receives an explicit GORM logger backed by stderr. It keeps warning-level diagnostics and the 200 ms slow-query threshold.…