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-core/src/api/README.md,crates/openhuman-core/src/memory/README
Steven Enamakel70627cf4da66
diff --git a/crates/openhuman-core/src/api/README.md b/crates/openhuman-core/src/api/README.mdindex 0a9f8b8848..b364979fd4 100644--- a/crates/openhuman-core/src/api/README.md+++ b/crates/openhuman-core/src/api/README.md@@ -176,9 +176,14 @@ inference proxy and cloud transcription/embeddings).## Tests-`rest_tests.rs` covers `BackendOAuthClient::new` base stripping,-`finish_authed_json` classification (transport vs status, 401/404 typed-errors), `flatten_authed_error`, `user_id_from_*_payload`,+`rest_tests.rs` covers `BackendOAuthClient::new` base stripping, the+`x-core-version` / `x-tauri-version` / `x-sdk-name` default headers on both+the SDK and `raw_client` paths, `authed_json` 401/404 classification into+`BackendApiError` (including the route-absence vs message-gone split for+channel edits), `flatten_authed_error`, `user_id_from_*_payload`,`sanitize_client_version`, `backend_api_body_shape`, and-`decrypt_handoff_blob`. `config.rs`, `jwt.rs`, `product.rs`, and `socket.rs`-carry their own `#[cfg(test)]` modules.+`decrypt_handoff_blob`. Transient-transport classification is not unit+tested here; it relies on+`core::observability::contains_transient_transport_phrase`. `config.rs`,+`jwt.rs`, `product.rs`, and `socket.rs` carry their own `#[cfg(test)]`+modules.diff --git a/crates/openhuman-core/src/memory/README.md b/crates/openhuman-core/src/memory/README.mdindex 9239b87212..0710573ef6 100644--- a/crates/openhuman-core/src/memory/README.md+++ b/crates/openhuman-core/src/memory/README.md@@ -79,8 +79,11 @@ aliases re-exported from [`mod.rs`](mod.rs) — `core_recall`, `documents`,plus [`goals`](goals/)'s, [`people`](people/)'s, and[`tree`](tree/)'s own `all_memory_tree_*`, `all_retrieval_*`, and`all_tree_summarizer_*` registered-controller functions,-[`sync/sync_status`](sync/sync_status.rs)'s `all_memory_sync_status_registered_controllers`,-and [`sources`](sources/)'s `all_memory_sources_registered_controllers`.+[`sync/sync_status/`](sync/sync_status/)'s `all_memory_sync_status_registered_controllers`,+[`sources`](sources/)'s `all_memory_sources_registered_controllers`, and the+Slack pair in [`sync/composio/providers/slack/`](sync/composio/providers/slack/)+(`all_slack_memory_registered_controllers`, reached through the+`integrations::composio::providers::slack` re-export).Agent tools reach the same registry through[`tools/mod.rs`](../tools/mod.rs): `pub use crate::memory::tools::*`,@@ -91,14 +94,15 @@ Agent tools reach the same registry through## Domains that kept their RPC surface here-Each is the RPC surface for a family the *driver* serves: the handler and-schema modules that name `RpcOutcome` and `ControllerSchema`, resolving through-the bound provider rather than through a linked engine. Before the engine left,-each was a thin wrapper over `pub use tinymemory_core::<domain>::*;` as well.+Each (bar `conversations/`, which is a host-owned store) is the RPC surface+for a family the *driver* serves: the handler and schema modules that name+`RpcOutcome` and `ControllerSchema`, resolving through the bound provider+rather than through a linked engine. Before the engine left, each was a thin+wrapper over `pub use tinymemory_core::<domain>::*;` as well.| Module | Role || -------------------------------- | --------------------------------------------------------- |-| [`conversations/`](conversations/) | Conversation-scoped memory RPC. |+| [`conversations/`](conversations/) | Workspace-backed thread/message store + `core::bus` subscriber; no RPC surface of its own (see its README). || [`goals/`](goals/) | Goal tracking RPC. || [`people/`](people/) | People/contacts RPC. || [`sources/`](sources/) | Source-registration RPC. |diff --git a/crates/openhuman-core/src/memory/agent/README.md b/crates/openhuman-core/src/memory/agent/README.mdindex 1efbf3ec39..67a6c52de6 100644--- a/crates/openhuman-core/src/memory/agent/README.md+++ b/crates/openhuman-core/src/memory/agent/README.md@@ -21,7 +21,7 @@ The memory agent is a specialist sub-agent that navigates the user's memory tree| `types.rs` | Benchmark and performance tracking types || `ops.rs` | Benchmarking harness for memory walk performance || `tools.rs` | `call_memory_agent` tool implementation, re-exported from [`tools/mod.rs`](../../tools/mod.rs) (`pub use crate::memory::agent::tools::*;`) |-| `memory_loader.rs` | The `[Cross-chat context]` / `[Prior conversations]` prompt-injection surface: `CROSS_CHAT_HEADER`, `MemoryCitation`, and `collect_recall_citations`. The old per-turn `memory_loader.load_context()` block (two full scans of the `global` namespace every turn) was removed from `core_turn.rs` — see [`memory/auto_recall/mod.rs`](../auto_recall/mod.rs) for what replaced it — but this file's citation/header plumbing is still live, called from the harness's memory context assembly (`agent/harness/memory_context.rs`, `agent/harness/session/turn/core.rs`) and consumed by `web_chat`'s reply presentation for rendering citations. |+| `memory_loader.rs` | What is left of the old per-turn memory loader: `CROSS_CHAT_HEADER` (the `[Cross-chat context]` block header, bound by `agent/harness/memory_context.rs` and the orchestrator prompt so the wording cannot drift), `MemoryCitation`, and `collect_recall_citations` (called from `agent/harness/session/turn/core_turn.rs`; the citations reach `web_chat`'s reply presentation). The per-turn `load_context()` block — two full scans of the `global` namespace every turn — was removed from `core_turn.rs`; see [`memory/auto_recall/mod.rs`](../auto_recall/mod.rs) for what replaced it. The `PRIOR_CONVERSATION_*` constants are leftovers of that block and have no caller. |## Memory tree structure@@ -66,4 +66,4 @@ The built-in agent is registered at `crates/openhuman-core/src/memory/agent/agen- `prompt.rs` — dynamic prompt builder- `prompt.md` — system prompt archetype-The agent has access to the full memory retrieval tool surface: `memory_tree` (with deterministic E2GraphRAG `walk`/`smart_walk` modes plus `search_entities`/`query_source`/`cover_window`/`drill_down`/`fetch_leaves`), `memory_recall`, and `query_memory`. [`memory/query/`](../query/) also exposes an `ingest_document` mode on `memory_tree`, but `agent.toml`'s `[tools] named` allowlist does not grant it to this agent — the memory agent is read-only by design (`sandbox_mode = "read_only"`).+`agent.toml`'s `[tools] named` allowlist is `memory_recall`, `memory_tree`, `query_memory`, `memory_doctor`, `memory_flavour`, and `ask_user_clarification`. `memory_tree` is the [`memory/query/`](../query/) dispatcher, so its `walk`/`smart_walk`/`search_entities`/`query_source`/`cover_window`/`drill_down`/`fetch_leaves` modes are all reachable; `prompt.md` steers the model to `walk` first. The allowlist is per tool name, not per mode, so the write mode `ingest_document` is technically callable too — nothing in `memory/query/` checks `current_sandbox_mode`, and `sandbox_mode = "read_only"` here gates shell/exec and Composio tools, not memory writes. The agent is read-only by prompt and by intent (`prompt.md` never mentions ingest), not by enforcement.diff --git a/crates/openhuman-core/src/memory/conversations/README.md b/crates/openhuman-core/src/memory/conversations/README.mdindex e4552859b4..b03cccb466 100644--- a/crates/openhuman-core/src/memory/conversations/README.md+++ b/crates/openhuman-core/src/memory/conversations/README.md@@ -36,13 +36,16 @@ repeated here.`store/` also builds a trigram/CJK-bigram inverted index over message contentin memory for cross-thread search (`inverted_index.rs`, `tokenize.rs`); the-index is not itself persisted, it is rebuilt from the JSONL on load.+index is not persisted. It is primed from the JSONL on the first search per+workspace root and then kept warm in a process-wide cache (`store_index.rs`,+`prime_index_if_cold`).## CallersAsync request paths use the `blocking` wrappers. Grepping`memory::conversations::` finds the store used directly by-[`threads/`](../../threads/) (`ops_part_01.rs`, `turn_state/store.rs`), by+[`threads/`](../../threads/) (`mod.rs`, `ops_part_01.rs`, `turn_state/store.rs`,+`welcome_migration.rs`), by[`channels/`](../../channels/) (`host/adapters.rs`,`providers/telegram/remote_control.rs`, `runtime/startup_part_01.rs`) formirroring channel turns, and by the agent harness/orchestration layerdiff --git a/crates/openhuman-core/src/memory/read_rpc/README.md b/crates/openhuman-core/src/memory/read_rpc/README.mdindex 05e916df13..97a298b84e 100644--- a/crates/openhuman-core/src/memory/read_rpc/README.md+++ b/crates/openhuman-core/src/memory/read_rpc/README.md@@ -6,8 +6,8 @@ not for an LLM tool loop. All methods share the existing `memory_tree`JSON-RPC namespace with the rest of [`memory/tree/`](../tree/), so they getthe same authentication, telemetry, and discovery.-Distinct from [`memory::ops`](../ops/) (re-exported as `memory::rpc`, the-write/ingest surface) and [`memory::tree::retrieval`](../tree/retrieval/)+Distinct from [`memory::ops`](../ops/) (re-exported as `memory::rpc`: the+`memory_*` document/KV/graph handlers) and [`memory::tree::retrieval`](../tree/retrieval/)(LLM-callable retrieval primitives) — see `mod.rs`'s module doc for how thethree surfaces divide the space.diff --git a/crates/openhuman-core/src/web3/README.md b/crates/openhuman-core/src/web3/README.mdindex 1e68a4e3dc..c5f6c5aae5 100644--- a/crates/openhuman-core/src/web3/README.md+++ b/crates/openhuman-core/src/web3/README.md@@ -16,8 +16,8 @@ keys never leave the wallet.## Five family members-The `web3` family has five members, three of them (`swap`, `bridge`, `dapp`)-documented by this README and two with their own README each:+Three members (`swap`, `bridge`, `dapp`) are documented here; `wallet` and+`x402` each have their own README:| Module | Namespace | Purpose || --- | --- | --- |@@ -57,8 +57,9 @@ is the only thing that catches drift between the real and stub signatures.| `store.rs` | In-memory prepared-quote store (TTL'd, capped, chat-thread owner-bound like the wallet) + the shared confirm→execute path. || `ops.rs` | Shared op logic: `routes`, `quote_swap`, `quote_bridge`, `prepare_dapp_call` (address defaulting, backend call, unsigned-tx extraction). || `stub.rs` | Disabled facade compiled when `web3` is off; empty `all_web3_registered_controllers` / `all_web3_controller_schemas` / `all_web3_agent_tools`. See Compile-time gate above. |-| `web3_tests.rs` | `#[cfg(all(test, feature = "web3"))]` behavior tests for the swap/bridge/dapp aggregation logic in `mod.rs`. |-| `ops_tests.rs` | Tests for the shared op logic in `ops.rs`. |+| `web3_tests.rs` | `#[cfg(all(test, feature = "web3"))]` tests for `chain_family` mapping and the quote store's confirm/execute gate. |+| `ops_tests.rs` | Tests for the shared op logic in `ops.rs` (unsigned-tx extraction, dapp/swap/bridge param rejection). |+| `stub_tests.rs` | Runs only in the disabled build; pins that the three stub entry points return empty collections. || `{swap,bridge,dapp}/schemas.rs` | Per-namespace RPC controllers + handlers. || `{swap,bridge,dapp}/tools.rs` | Per-namespace agent tools. |@@ -99,7 +100,7 @@ rejected at quote time.- [`crate::integrations`] (`IntegrationClient`, `build_client`) — backend auth + transport.- `crate::security::approval::APPROVAL_CHAT_CONTEXT` — quote-owner binding.- `crate::core::all` / `crate::core` — RPC controller registry wiring.-- `tinywallet-bus` (`crates/openhuman-core/Cargo.toml` ~line 864, optional, gated by the `web3` feature; features `btc`, `evm`, `solana`, `tron`, `keccak`, `net`, `wire`, `eip712`, `abi`, `tx-codec`) — the contract crate the wallet's signing primitives (and the x402 payment path's EIP-712/ERC-20 encoders) build on: address formats, wire types crossing the `Transport` seam, and the Tron verifier.+- `tinywallet-bus` (`crates/openhuman-core/Cargo.toml` ~line 864, optional, gated by the `web3` feature; features `btc`, `evm`, `solana`, `tron`, `keccak`, `net`, `wire`, `eip712`, `abi`, `tx-codec`) — not imported by `web3/*.rs` itself, but the contract crate its `wallet/` and `x402/` members build on: address validation, the `SecretMaterial`/`TransactionSpec` wire types handed to the wallet module, the `Transport` seam, the EIP-712/ERC-20 encoders used by x402, and the Tron verifier.## Notes / gotchas