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
docs(memory): describe hosted memory's recall, refusals and gating
Shanu57c1c07b353e
diff --git a/crates/openhuman-core/src/memory/driver/README.md b/crates/openhuman-core/src/memory/driver/README.mdindex 4bd818aa7f..7ecbd6e242 100644--- a/crates/openhuman-core/src/memory/driver/README.md+++ b/crates/openhuman-core/src/memory/driver/README.md@@ -55,6 +55,17 @@ are capability-gated out of the registry when a context is ambient, and answer"memory driver does not support the ... family" otherwise. `provider_status`,the engine RPCs and the mandatory core/recall RPCs are never gated.+Two host lanes read the mandatory recall on such an engine, and an engine that+ranks without scoring (hosted CortexDB) changes what they can do. Auto-recall's+notes leg keeps the engine's first `AUTO_RECALL_UNSCORED_NOTES` hits instead of+flooring similarities that all read 0.0 (`memory/auto_recall`), and a refused+lookup puts its reason in the block (`auto_recall/refusal.rs`). Situational+preferences and the contradiction check (`memory/preferences`) cannot judge+relevance without a score and answer nothing. A connector sync resolves the+Sources sink before it asks the connector for pages, because the connector+saves its cursor as it pages and records fetched for a driver without the+family would never be fetched again.+## Where next- [`memory/README.md`](../README.md) for the full split between this host anddiff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.mdindex 54625141c3..5058d2b9c6 100644--- a/docs/TEST-COVERAGE-MATRIX.md+++ b/docs/TEST-COVERAGE-MATRIX.md@@ -357,7 +357,7 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an| 8.2.5 | Coding-session persona ingestion | RU+RI+VU+WD | `vendor/tinymemory/crates/tinymemory-core/src/engine/persona_tests.rs` (vendored `tinymemory`), `crates/openhuman-core/src/memory/sources/rpc_tests.rs`, `tests/json_rpc_e2e.rs`, `app/src/components/intelligence/__tests__/CodingSessionsCard.test.tsx`, `app/src/services/memorySourcesService.test.ts`, `app/test/e2e/specs/coding-session-memory.spec.ts`, `app/test/playwright/specs/coding-session-memory.spec.ts` | ✅ | Discovers Codex and Claude Code histories, excludes machine-authored turns, exposes status/ingest RPCs, and surfaces incremental ingestion on Brain > Sources || 8.2.6 | Folder-source path picker | RU+VU | `crates/openhuman-app/src/directory_picker.rs`, `app/src/utils/tauriCommands/directoryPicker.test.ts`, `app/src/components/intelligence/FolderField.test.tsx` | ✅ | Browse resolves an absolute path through the OS-native chooser and refuses to store a non-resolvable value (bare directory name) when none is available (#5831) || 8.2.7 | Sync History and live sync activity | RU+RI+VU | `crates/openhuman-core/src/memory/sources/run_history_tests.rs`, `crates/openhuman-core/src/memory/sources/rpc/driver_run_tests.rs`, `crates/openhuman-core/src/memory/sources/rpc_monthly_summary_tests_tests.rs`, `crates/openhuman-core/src/integrations/composio/ops/connector_runs_tests.rs`, `crates/openhuman-core/src/integrations/composio/ops/source_rows_tests.rs`, `crates/openhuman-core/src/memory/sync_activity_tests.rs`, `tests/memory_sources_e2e.rs` (`sources_sync_dispatches_to_the_module_rather_than_refusing_the_capability`), `app/src/components/intelligence/SyncAuditPanel.test.tsx`, `app/src/components/intelligence/SyncActivityCard.test.tsx`, `app/src/components/intelligence/__tests__/memorySyncActivityStore.test.ts`, `app/src/components/intelligence/MemorySourceRow.test.tsx`, `app/src/components/intelligence/MemoryTreeStatusPanel.test.tsx` | ✅ | Every host-driven run (Sync button, Apply all, Composio) leaves one history row merged with the driver's audit log; manual driver runs end in `completed` or `failed`; a late per-document stage cannot reopen a finished row; Brain > Sync shows what is syncing and the job queue, and re-reads the history when a run ends (#6257) |-| 8.2.8 | Selectable memory engines and migration | RU+RI+VU | `crates/openhuman-core/src/memory/ops/engine_migrate_tests.rs`, `tests/memory_engine_e2e.rs`, `tests/memory_engine_migrate_e2e.rs`, `app/src/components/settings/panels/MemoryEnginePanel.test.tsx`, `app/src/components/intelligence/MemoryFamilyGate.test.tsx` | ✅ | Engine selection, migration copy/cancel/failure behavior, hosted and external drivers, and capability gating |+| 8.2.8 | Selectable memory engines and migration | RU+RI+VU | `crates/openhuman-core/src/memory/ops/engine_migrate_tests.rs`, `crates/openhuman-core/src/memory/ops/engine_tests.rs`, `tests/memory_engine_e2e.rs`, `tests/memory_engine_migrate_e2e.rs`, `tests/memory_hosted_surface_e2e.rs`, `app/src/components/settings/panels/MemoryEnginePanel.test.tsx`, `app/src/components/settings/panels/MemoryEngineErrorAlert.test.tsx`, `app/src/components/intelligence/MemoryFamilyGate.test.tsx`, `app/src/pages/__tests__/Brain.test.tsx` | ✅ | Engine selection, migration copy/cancel/failure behavior, hosted and external drivers, and capability gating; on the hosted engine a 403 reads `MEMORY_FORBIDDEN:` (never a sign-out), an outage `MEMORY_UNREACHABLE:`, and Brain's sync panels say "Not available" (#6718) |### 8.3 Memory Retrieval Benchmarks@@ -383,7 +383,7 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an| 8.4.8 | Lane C Boot Warm-up | RU | `crates/openhuman-core/src/memory/auto_recall/warm_tests.rs` | ✅ | One bounded retrieval after the memory module loads; failure/timeout are log-only || 8.4.9 | Memory-Access Instruction (ungated) | RU | `crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs` | ✅ | Added whenever a retrieval tool is visible, independent of `learning.enabled`; forbids claiming absence unsearched || 8.4.10 | Memory-Write Instruction + `memory_store` defaults | RU | `crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs::memory_write_*`, `crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs::write_tool_gate_*`, `crates/openhuman-core/src/agent/session_host/builder/builder_tests_memory_write_instruction_tests.rs::memory_write_instruction_*`, `crates/openhuman-core/src/memory/tools/store_tests.rs::resolve_*` | ✅ | #6048: "remember X" must be a write before the reply; section keyed on write-tool visibility, not `learning.enabled`; `memory_store` namespace/key optional |-| 8.4.11 | Lane C — Notes leg (`global` namespace) + hint | RU | `crates/openhuman-core/src/memory/auto_recall/notes_lane_tests.rs` (all), `crates/openhuman-core/src/memory/auto_recall/auto_recall_tests.rs::from_guard_reads_through_the_guarded_retrieval_family`, `crates/openhuman-core/src/agent/session_host/turn_auto_recall_tests.rs::auto_recall_injects_a_note_written_by_memory_store_when_the_tree_is_empty` | ✅ | #6063: a fact `memory_store` filed in `global` is recalled through `recall_namespace_scored` beside the tree walk (per-leg budget, absolute 0.35 floor, notes render first, `ExternalSync`/connector-keyed notes wrapped); block opens with the "pre-fetched, not a search" hint |+| 8.4.11 | Lane C — Notes leg (`global` namespace) + hint | RU | `crates/openhuman-core/src/memory/auto_recall/notes_lane_tests.rs` (all), `crates/openhuman-core/src/memory/auto_recall/unscored_lane_tests.rs` (all), `crates/openhuman-core/src/memory/auto_recall/refusal_tests.rs` (all), `crates/openhuman-core/src/memory/auto_recall/auto_recall_tests.rs::from_guard_reads_through_the_guarded_retrieval_family`, `crates/openhuman-core/src/agent/session_host/turn_auto_recall_tests.rs::auto_recall_injects_a_note_written_by_memory_store_when_the_tree_is_empty` | ✅ | #6063: a fact `memory_store` filed in `global` is recalled through `recall_namespace_scored` beside the tree walk (per-leg budget, absolute 0.35 floor, notes render first, `ExternalSync`/connector-keyed notes wrapped); block opens with the "pre-fetched, not a search" hint; an engine that ranks without scoring (hosted CortexDB) contributes its first three notes, and a refused lookup names its reason in the block (#6718) |### 8.5 Long-term Goalsdiff --git a/gitbooks/developing/engines.md b/gitbooks/developing/engines.mdindex f9d99b93bd..1963707250 100644--- a/gitbooks/developing/engines.md+++ b/gitbooks/developing/engines.md@@ -115,13 +115,27 @@ most two `export_page` calls of `min(limit*4, 200)` records, and the document liscans at most 10 namespaces and returns at most 200 documents with a `truncated`flag. The proper fix is a bounded `recent(namespace, limit)` on the tinymemorycontract, an upstream follow-up. Hosted 402 and 401 errors from ordinary memory-RPCs read `INSUFFICIENT_CREDITS:` and `SESSION_EXPIRED:` too.+RPCs read `INSUFFICIENT_CREDITS:` and `SESSION_EXPIRED:` too; a 403 (a credential+the engine refuses, such as an API key without the memory scope) reads+`MEMORY_FORBIDDEN:` and never signs the user out, and a timeout, refused+connection, 429 or 5xx that outlasts the retries reads `MEMORY_UNREACHABLE:`.Not every engine advertises every capability family. The hosted and CortexDBengines have no `documents`, `tree`, `sources` or `graph` families, so thedocument, tree and source RPCs answer a clean "does not support" error on them(see the [`memory/driver` README](../../crates/openhuman-core/src/memory/driver/README.md)-for the full table).+for the full table). Brain's sync panels (activity, history, coding sessions)+need `sources` and show "Not available" there.++Auto-recall reads the notes a user saved through the mandatory recall on such an+engine. Hosted CortexDB ranks its recall without scoring it, so its notes cannot+be floored on similarity: the lane keeps the engine's first three, behind the+same gate that decides whether a message needs memory at all. Situational+preferences and the contradiction check need a scored engine and stay empty+there. A lookup the engine refuses (out of credits, session not accepted,+credential refused, unreachable) puts a one-line reason in the recall block+instead of an empty result, so the model says memory is unavailable rather than+that something was never stored.Related pages: [Memory](../features/obsidian-wiki/README.md) and itssub-pages for what TinyCortex actually does (memory tree, scoring, retrieval,