consciousness/src
Kent Overstreet b8db8754be Convert store and CLI to anyhow::Result for cleaner error handling
Replace Result<_, String> with anyhow::Result throughout:
- hippocampus/store module (persist, ops, types, view, mod)
- CLI modules (admin, agent, graph, journal, node)
- Run trait in main.rs

Use .context() and .with_context() instead of .map_err(|e| format!(...))
patterns. Add bail!() for early error returns.

Add access_local() helper in hippocampus/mod.rs that returns
Result<Arc<Mutex<Store>>> for direct local store access.

Fix store access patterns to properly lock Arc<Mutex<Store>> before
accessing fields in mind/unconscious.rs, mind/mod.rs, subconscious/learn.rs,
and hippocampus/memory.rs.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-13 18:05:04 -04:00
..
agent centralize memory store interface in hippocampus/mod.rs 2026-04-13 17:44:41 -04:00
bin Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
cli Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
hippocampus Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
learn rust edition 2024 2026-04-05 06:20:16 -04:00
mind Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
subconscious Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
thalamus kill MIN_NUDGE_INTERVAL 2026-04-11 16:45:33 -04:00
user defs.rs: async conversion, remove block_in_place 2026-04-13 14:56:26 -04:00
config.rs defs.rs: async conversion, remove block_in_place 2026-04-13 14:56:26 -04:00
lib.rs mcp_server: Unix socket server for external tool access 2026-04-12 21:45:10 -04:00
locks.rs locks: add process-wide lock hold time tracking 2026-04-12 20:27:42 -04:00
main.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
mcp_server.rs memory.rs: clean up store access and tool dispatch 2026-04-13 14:27:38 -04:00
session.rs delete claude code integration 2026-04-09 19:58:07 -04:00
util.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00