Repository navigation
feat(core): memory loop and child mailboxes on uteke rooms (#422, 2/3) - #425
Merged
Merged
Conversation
uteke 0.21 deprecates namespaces in favour of rooms. The memory loop now remembers with --room repo-<dir> and recalls with uteke room recall; while the room is empty it falls back (softly) to the legacy namespace of the same name, so memory from earlier tole versions is still found. Child-agent mailboxes are rooms (agent-<id>); consuming one forgets its memories (forget --confirm), deletes the room and cleans any legacy namespace. MemoryConfig.namespace is renamed room.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The memory loop (
--memory uteke) and the child-agent mailboxes move from uteke namespaces to uteke rooms. Part 2 of 3 of #422.Why
uteke 0.21 deprecates namespaces: every write with
--namespaceprints a warning, and they will be removed in a future 0.x. Rooms are the replacement. Without this, the memory loop and child-agent results break the day uteke drops namespaces.Changes
tole-core/src/memory.rsMemoryConfig.namespace→room(tole-core API change, noted in CHANGELOG for 0.9.0).uteke room recall --limit N --json -- <room> <query>. The parser accepts both payload shapes: flat{content, score}and room-with-query{memory: {...}, score}.--room <room>instead of--namespace.tole-core/src/agents.rs: mailbox cleanup forgets each memory of roomagent-<id>(forget --confirm -- <id>; deleting a room only unlinks its memories), deletes the room (room delete --confirm), then cleans the legacy namespace (now with--limit 1000; the old listing stopped at 20). The room still comes only from the validated agent id, never frommeta.json.main.rs: messages and docs say room;TOLE_MEMORY_NAMESPACEkeeps its name and now overrides the room.Testing
room recall … -- repo-tole <query>, a leading-hyphen query stays positional); remember uses--roomand never--namespace; an empty room falls back to the legacy namespace, and a failing legacy recall is soft.remember --roomcreates the room;room recallwith and without a query (both shapes); a missing room returns[]; the forget-by-id → room delete cleanup leaves nothing behind.cargo fmt,cargo clippy --workspace --all-targets -- -D warnings,cargo clippy -p tole-core --no-default-features --tests, bare-profile clippy,cargo test --workspace(all green);cora review --staged: No issues found.Not covered: a live memory-loop session against the owner's real (remote) uteke store, deliberately not touched.