The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-embed/README.md,docs/specs/memory-v2.md
Steven Enamakel5c52ed7d7a93
diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.mdindex b60c49170f..c36f711b09 100644--- a/crates/openhuman-embed/README.md+++ b/crates/openhuman-embed/README.md@@ -229,6 +229,15 @@ let runtime = tokio::runtime::Builder::new_multi_thread().expect("tokio runtime");```+### Memory per tenant++Bind each agent with `AgentSpec::memory(MemoryBinding::new(agent_id).root("team:acme"))`+and its turns run TinyMemory's lifecycle under `team:acme/agent:<agent_id>`.+`Runtime::memory("team:acme")` is the operator's view of that tenant: its+agents, items, learnings and brain. Every call stays inside the root's subtree.+`RuntimeBuilder::memory_engine` installs a host-supplied engine in place of the+configured one. See `docs/specs/memory-v2.md`.+### Still runtime-wideThese are read from the runtime's boot config by every agent today. Theydiff --git a/docs/specs/memory-v2.md b/docs/specs/memory-v2.mdindex e682e81ea0..d5c34b5041 100644--- a/docs/specs/memory-v2.md+++ b/docs/specs/memory-v2.md@@ -54,6 +54,23 @@ sub-agents included, acts as that one memory agent. A sub-agent otherwiseacts as its own definition id under its parent's root. The identity is nevertaken from model arguments.+A host managing several tenants reads and manages each one's memory with+`openhuman_embed::Runtime::memory(root)`. The facade (`openhuman_embed::memory`)+is bound to one root, and every call it makes stays inside that root's subtree:+- reads carry `Reach::subtree(root)`;+- `forget` only removes ids found there;+- `learn` writes at the root whatever metadata it is given.++Its calls are `agents`, `list` (whole root or one agent's node), `get`,+`recall`, `fetch`, `learn`, `forget`, `forget_agent` and the brain calls. It+does not use the ambient-config RPCs.++`RuntimeBuilder::memory_engine` (or `memory::engine::install_host_engine`)+binds a host-supplied `MemoryEngine` for the whole process, ahead of the+configured one. A host that owns its store, or a test using TinyMemory's+in-memory `ReferenceEngine`, then runs the full lifecycle without a TinyHumans+credential.+## The lifecycle| Hook | Where | What |