pub fn create_memory_backend(
settings: &Settings,
) -> Option<Arc<dyn MemoryBackend>>Expand description
Create a memory backend if memory is enabled in settings.
Under the Oxi Foundation v1 host, the only durable-memory authority is the oxibrain daemon (plan §5). Local SQLite/Mnemopi/JSON/ file-summary fallbacks are explicitly forbidden (§5.h, §6.f): the Foundation host MUST NOT silently run a second durable store.
When the Foundation installation is present, returns a
crate::foundation::brain::BrainMemoryBackend wrapping a typed
oxibrain_client over the default socket path. When the Foundation
is absent, returns
None — the agent memory tools surface a typed
“backend unavailable: …” result with the recovery command. Code
work continues; only durable-memory tool calls fail visibly.