consciousness/src/hippocampus/store
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
..
mod.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
ops.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
parse.rs add unreachable_pub lint, fix all 17 violations 2026-04-02 16:15:32 -04:00
persist.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
types.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
view.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00