2 Commits
Author SHA1 Message Date
lotherk 9b2fee66a2 tests: valgrind-clean -- free the registry, NUL where the read stopped
Valgrind over the test binaries found two test-side defects, no
production path:

- test_skills never called sp_registry_free(), so the 448 bytes
  sp_registry_add() copied for the three skill tools were reported as
  "definitely lost" on every run. Freed now.
- test_providers read the /connect drop-in into a 1024-byte stack buffer
  and NUL-ed only the first and last byte, so strstr() walked through
  uninitialised bytes between them ("Conditional jump or move depends on
  uninitialised value"). Terminated at the read length instead.

Both runs are clean: valgrind tests/test_skills -> 0 errors, exit 0;
valgrind tests/test_providers -> 0 errors, exit 0. make check: all tests
passed. tests/check_asan.sh: all 46 test binaries clean.
2026-11-23 13:22:14 +00:00
Konrad fb523c7a2c splinter: skills on demand, memory per user, streaming in the gateway
Skills: ~/.splinter/skills plus any skills_dir from the config. Nothing is
preloaded and the system prompt does not grow - the model asks:
skill_search {query} returns names, one-line descriptions and paths;
skill_load {name} returns the file. Both read-only. A miss says what exists
instead of answering with silence.

Memory: memory_search and memory_add against mem0's REST API. Every request
carries user_id, taken from the account the process runs as ($USER, else the
passwd entry) - deliberately not a config key, because a setting is a thing to
forget and the process already knows who it is. A memory written by root is
invisible to lotherk.

Gateway: it ran without a stream callback, so a provider that only speaks SSE
answered with a stream the non-streaming reader could not parse. It now passes a
no-op callback - nobody to stream to, but the transport takes the streaming path.

tests: test_skills (search, directory form, miss, load, unknown name) and
test_memory (user id from environment and fallback).
2026-11-08 13:44:32 +00:00