consciousness/src/subconscious
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
..
agents delete rename agent and related code 2026-04-13 02:05:58 -04:00
daemon.rs Remove poc-memory daemon and RPC infrastructure 2026-04-09 20:07:05 -04:00
defs.rs defs.rs: remove store/graph params, use typed memory API 2026-04-13 15:18:05 -04:00
digest.rs more dead code deletion 2026-04-12 02:27:05 -04:00
learn.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
mod.rs more dead code deletion 2026-04-12 02:27:05 -04:00
prompts.rs defs.rs: remove store/graph params, use typed memory API 2026-04-13 15:18:05 -04:00