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
Bind the session store through the driver and pin tinymemory v1.11.0\n\n`session::builder::factory` was the last production caller of the\nin-process engine on the chat path — `create_session_memory_with_local_ai`\n— and the reason it stayed was that two embedder-resolution ladders were\n*believed* to agree with nothing proving it. They do, and the reason is\nstructural rather than lucky:\n\n`Config::workload_local_model` and `EngineRuntimeConfig::\nworkload_local_model` both read `embeddings_provider`, strip `"ollama:"`,\ntrim and reject empty. That `Option` is the only input to\n`effective_embedding_settings`, which picks ollama when it is `Some` and\nthe configured cloud provider otherwise. The Ollama health-gate is not a\ndifference either: it lives inside `create_unified_memory_full`, which\nthe module runs because the module *is* the engine, and its probe address\nis proxied back to this host through `EmbeddingHost::ollama_base_url`.\n`embedding_routes` never mattered — the engine's own parameter is\nunderscore-prefixed and unused.\n\nThe second reason was the test build binding to a module a unit test\ncannot `dlopen`. That is the same footing the archivist has had here all\nalong: `module_provider` under `cfg(test)` loads the module when\n`TINYMEMORY_TEST_MODULE` names it and degrades to null otherwise.\n\nThe swap also removes a real oddity — the session held an engine handle\n*beside* a driver over the same subtree. One binding now yields one store.\n\nPinned to v1.11.0 in the same commit because the two belong together: all\nfive sites move as a set (vendor gitlink, registry version + release URL +\n11 archive/digest pairs, `ARTIFACT_CAPABILITIES_PIN`, and the three CI\nworkflows). Digests are taken verbatim from the release's own\nchecksum.toml, never recomputed from a local build, so a release re-cut\nunder the same tag stops matching rather than silently replacing what runs\nin-process. Verified before trusting it: all 64 members this host forwards\nare declared by v1.11.0.\n\n819 memory and modules tests pass.\n
Shanu8168f351f5d9
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.ymlindex 30b9a6bddc..79ccff3449 100644--- a/.github/workflows/ci-full.yml+++ b/.github/workflows/ci-full.yml@@ -132,8 +132,8 @@ jobs:# and leave a stale digest that only fails after the download. Both values# are the ubuntu-22.04-x86_64 row of `src/openhuman/modules/registry.rs`,# which is the authoritative pin — copy them from there, never recompute.- memory_version="1.10.0"- memory_sha256="9387502ff3f7f889d7e041479cebae2eda543dc54d02bc9eb599a1499da9b97a"+ memory_version="1.11.0"+ memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"memory_dir="$module_root/tinymemory"juice_dir="$module_root/tinyjuice"diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.ymlindex a658c4c388..d331998612 100644--- a/.github/workflows/ci-lite.yml+++ b/.github/workflows/ci-lite.yml@@ -749,8 +749,8 @@ jobs:# and leave a stale digest that only fails after the download. Both values# are the ubuntu-22.04-x86_64 row of `src/openhuman/modules/registry.rs`,# which is the authoritative pin — copy them from there, never recompute.- memory_version="1.10.0"- memory_sha256="9387502ff3f7f889d7e041479cebae2eda543dc54d02bc9eb599a1499da9b97a"+ memory_version="1.11.0"+ memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"memory_dir="$module_root/tinymemory"juice_dir="$module_root/tinyjuice"diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.ymlindex 8261b89dd0..6ac675de8a 100644--- a/.github/workflows/e2e-reusable.yml+++ b/.github/workflows/e2e-reusable.yml@@ -168,8 +168,8 @@ jobs:# and leave a stale digest that only fails after the download. Both values# are the ubuntu-22.04-x86_64 row of `src/openhuman/modules/registry.rs`,# which is the authoritative pin — copy them from there, never recompute.- memory_version="1.10.0"- memory_sha256="9387502ff3f7f889d7e041479cebae2eda543dc54d02bc9eb599a1499da9b97a"+ memory_version="1.11.0"+ memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"memory_dir="$module_root/tinymemory"memory_archive="$memory_dir/tinymemory-module-${memory_version}-ubuntu-22.04-x86_64.tar.gz"@@ -374,8 +374,8 @@ jobs:# and leave a stale digest that only fails after the download. Both values# are the ubuntu-22.04-x86_64 row of `src/openhuman/modules/registry.rs`,# which is the authoritative pin — copy them from there, never recompute.- memory_version="1.10.0"- memory_sha256="9387502ff3f7f889d7e041479cebae2eda543dc54d02bc9eb599a1499da9b97a"+ memory_version="1.11.0"+ memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"memory_dir="$module_root/tinymemory"memory_archive="$memory_dir/tinymemory-module-${memory_version}-ubuntu-22.04-x86_64.tar.gz"diff --git a/src/openhuman/agent/harness/session/builder/factory.rs b/src/openhuman/agent/harness/session/builder/factory.rsindex 942af79613..befbf188c0 100644--- a/src/openhuman/agent/harness/session/builder/factory.rs+++ b/src/openhuman/agent/harness/session/builder/factory.rs@@ -20,7 +20,6 @@ use crate::openhuman::security::SecurityPolicy;use crate::openhuman::tools::{self, Tool};use anyhow::Result;use std::sync::Arc;-use tinymemory_core::store as memory_store;impl Agent {/// Constructs an `Agent` instance from a global system configuration.@@ -203,11 +202,6 @@ impl Agent {config.workspace_dir.clone(),)?;- let local_embedding = config.workload_local_model("embeddings");- let embedding_api_key = crate::openhuman::inference::embeddings::resolve_api_key(- config,- &config.memory.embedding_provider,- );// Route this session's captures + recall into the active profile's memory// subtree so `dedicatedMemory` isolation takes effect on the ordinary// session path (web chat, cron), not just delegation preambles. The@@ -232,53 +226,31 @@ impl Agent {has_profile = profile.is_some(),"[profiles] session memory subtree selected");- // ── The engine reference this file has left (#5560) ──────────────────- //- // `direct_engine_refs_tests::ALLOWED` still explains this entry as- // "boots the in-process engine handle (`global::init`)". That is stale:- // `global::init` is gone from here, and what remains is this one- // factory call — the *only* caller of- // `create_session_memory_with_local_ai` anywhere in the tree. The- // bypass allowlist's `.memory_handle(` entry for this file is stale for- // the same reason; the only `memory_handle` left below is in prose.- //- // A door onto the contract does exist —- // `experience::ops::DriverMemory::for_subtree(config, &memory_subdir)`- // hands back an `Arc<dyn Memory>` over exactly the binding- // `archivist_provider` resolves two statements down, so the swap is- // one line and would collapse two stores over one subtree into one.- // It is deliberately NOT taken here yet, for two reasons that need- // measuring rather than reasoning about:- //- // 1. **Embedder resolution differs.** This factory resolves the- // embedding provider from `local_embedding` + `embedding_api_key` +- // `embedding_routes` and applies an Ollama reachability health-gate- // before falling back. The bound driver resolves its own embedder- // from the boot policy config instead. Those two ladders are- // *believed* to agree; nothing here proves it, and disagreeing means- // vectors filed under the wrong provider signature — silent, not- // loud, exactly as `memory::tools::flavour` warns about the same- // class of mistake.- // 2. **The test build binds a different workspace.** Under- // `cfg(test)`, `binding::module_provider` pins every binding to the- // shared `memory::ops` test workspace and to a module that a unit- // test cannot `dlopen`, so a migrated session would get a driver- // that answers nothing where it gets a working store today. The- // archivist tolerates that (it degrades); a session's `Arc<dyn- // Memory>` is on the recall path and does not.+ // The session's store, through the same binding the archivist resolves+ // two statements down — so one subtree yields one store rather than an+ // engine handle beside a driver over the same files.//- // So this is not "no contract door exists" — it is one behavioural- // equivalence and one test-fixture problem, both of which need the- // harness suite run against the change to settle.- let session_memory = memory_store::factories::create_session_memory_with_local_ai(- &config.memory,- local_embedding.as_deref(),- &embedding_api_key,- &config.embedding_routes,- Some(&config.storage.provider.config),- &config.workspace_dir,- &memory_subdir,- )?;+ // The two reasons this was deferred are both settled. **Embedder+ // resolution**: the factory's ladder and the driver's are the same+ // code reading the same field. `Config::workload_local_model` and+ // `EngineRuntimeConfig::workload_local_model` both take+ // `embeddings_provider`, strip `"ollama:"`, trim and reject empty, and+ // that `Option` is the only input to `effective_embedding_settings`.+ // The Ollama health-gate is not a difference either: it lives inside+ // `create_unified_memory_full`, which the module runs because the+ // module *is* the engine, and its probe address is proxied back here+ // through `EmbeddingHost::ollama_base_url`. (`embedding_routes` never+ // mattered — the engine's own parameter is underscore-prefixed and+ // unused.) **The test build**: `binding::module_provider` under+ // `cfg(test)` loads the module when `TINYMEMORY_TEST_MODULE` names it+ // and degrades to the null driver otherwise, which is the same footing+ // the archivist has had here all along.+ let memory: Arc<dyn Memory> =+ crate::openhuman::agent::experience::ops::DriverMemory::for_subtree(+ config,+ &memory_subdir,+ )+ .map_err(|e| anyhow::anyhow!("session memory binding: {e}"))?;// The archivist takes the bound driver for this session's memory// subtree — the same subtree `session_memory` opened — rather than the// raw SQLite handle the factory used to strip off the engine result.@@ -292,7 +264,6 @@ impl Agent {).map(|binding| binding.provider().clone()).map_err(|e| anyhow::anyhow!("archivist memory binding: {e}"))?;- let memory: Arc<dyn Memory> = Arc::from(session_memory.memory);// Dedicated profiles still recall unstamped experiences written by// pre-profile versions from the shared memory DB. Resolve that shared// store once, here, and hand it to the session rather than making thediff --git a/src/openhuman/memory/direct_engine_refs_tests.rs b/src/openhuman/memory/direct_engine_refs_tests.rsindex 06591374bd..ec3837acae 100644--- a/src/openhuman/memory/direct_engine_refs_tests.rs+++ b/src/openhuman/memory/direct_engine_refs_tests.rs@@ -304,11 +304,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[Verdict::NeedsWiderSeam,"the engine-side chat provider seam (chat::ChatProvider); MemoryIngest has no provider-override door",),- (- "src/openhuman/agent/harness/session/builder/factory.rs",- Verdict::NeedsWiderSeam,- "holds or boots the in-process engine handle (global::init); driver construction belongs to memory::binding and the seam has no door onto the live client",- ),("src/openhuman/channels/tests/memory.rs",Verdict::NeedsWiderSeam,diff --git a/src/openhuman/modules/memory.rs b/src/openhuman/modules/memory.rsindex 59a35188b9..07396ac767 100644--- a/src/openhuman/modules/memory.rs+++ b/src/openhuman/modules/memory.rs@@ -48,7 +48,7 @@ use tinymemory_api::capabilities::{Capabilities, Capability};/// Checked against the registry pin by `the_capability_list_matches_the_pinned_release`,/// so bumping the pin without re-reading the list is a red test rather than a/// silent over-claim.-pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.10.0";+pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.11.0";/// The capability families the **pinned artifact** actually serves.///diff --git a/src/openhuman/modules/registry.rs b/src/openhuman/modules/registry.rsindex 53a5ba5e19..b01ffc71eb 100644--- a/src/openhuman/modules/registry.rs+++ b/src/openhuman/modules/registry.rs@@ -202,63 +202,63 @@ const TINYMEMORY: ModuleRecord = ModuleRecord {description: "Local memory engine: store, ranked recall, and portable export",bus_name: "ai.tinyhumans.tinymemory.Memory",object_path: "/ai/tinyhumans/tinymemory/Memory",- version: "1.10.0",- release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.10.0",+ version: "1.11.0",+ release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.11.0",assets: &[PlatformAsset {host_key: "ubuntu-24.04-x86_64",- archive: "tinymemory-module-1.10.0-ubuntu-24.04-x86_64.tar.gz",- sha256: "c75d58acafd3f0db3f6d30a58d8ff1ebc8f3cc9807741fe0514d8f63c3c41b1f",+ archive: "tinymemory-module-1.11.0-ubuntu-24.04-x86_64.tar.gz",+ sha256: "df843c0c68e5ab404d211458f5a0ba2ad0b37f5a3f92684133d41d690cc28b95",},PlatformAsset {host_key: "ubuntu-24.04-arm64",- archive: "tinymemory-module-1.10.0-ubuntu-24.04-arm64.tar.gz",- sha256: "b6655a450714da411e3c8d880d69783ab4fe684b634a40d8d6682fc588de16dc",+ archive: "tinymemory-module-1.11.0-ubuntu-24.04-arm64.tar.gz",+ sha256: "c5db441fa63f07ddf55c16433e2285fd4a63efc29107af4f14cc850b2033f85c",},PlatformAsset {host_key: "ubuntu-22.04-x86_64",- archive: "tinymemory-module-1.10.0-ubuntu-22.04-x86_64.tar.gz",- sha256: "9387502ff3f7f889d7e041479cebae2eda543dc54d02bc9eb599a1499da9b97a",+ archive: "tinymemory-module-1.11.0-ubuntu-22.04-x86_64.tar.gz",+ sha256: "58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6",},PlatformAsset {host_key: "ubuntu-22.04-arm64",- archive: "tinymemory-module-1.10.0-ubuntu-22.04-arm64.tar.gz",- sha256: "3a1deafd6724b2c4ef2b3e30ecf6a8f8a70989d0b70c0a150935c59c34e36099",+ archive: "tinymemory-module-1.11.0-ubuntu-22.04-arm64.tar.gz",+ sha256: "d9efc7ba93f77e070cc7c43ea05aa3069f60c8c49219e825e092511876aec3ac",},PlatformAsset {host_key: "macos-26-arm64",- archive: "tinymemory-module-1.10.0-macos-26-arm64.tar.gz",- sha256: "9e2a60f79a079848c604d898fb3da0670e4713cdafc2ea829b1110c0653c78ca",+ archive: "tinymemory-module-1.11.0-macos-26-arm64.tar.gz",+ sha256: "945ac9bdaa6c880893b0963c4b9c8f061ce5004eef2e4bec97cffe2cd9f83df6",},PlatformAsset {host_key: "macos-26-x86_64",- archive: "tinymemory-module-1.10.0-macos-26-x86_64.tar.gz",- sha256: "323e22ecd7535a1cc856e78487cce7e0d6504be71ed1a66e55d95a83806ffc57",+ archive: "tinymemory-module-1.11.0-macos-26-x86_64.tar.gz",+ sha256: "ef85c052025395d27a2e9a3599621f1992bcd5d2c2384134502f777d405a01c4",},PlatformAsset {host_key: "macos-15-arm64",- archive: "tinymemory-module-1.10.0-macos-15-arm64.tar.gz",- sha256: "15811996bb328a2f866ca3509628f8ddde0fc379cce86a2249b9c9f0e0600152",+ archive: "tinymemory-module-1.11.0-macos-15-arm64.tar.gz",+ sha256: "89d44a1464dfdd73133331ef09e7a6c9214256c339ec98761d2c43eb3bd97b98",},PlatformAsset {host_key: "macos-15-x86_64",- archive: "tinymemory-module-1.10.0-macos-15-x86_64.tar.gz",- sha256: "438983a7d64345fda85de6dddf32085035c9b095511bf1b99f18a78c1da021e8",+ archive: "tinymemory-module-1.11.0-macos-15-x86_64.tar.gz",+ sha256: "1e71a0760c1c0749b11839051015f7397f8575231bd2208302ffb42c8ae062a2",},PlatformAsset {host_key: "windows-2025-x86_64",- archive: "tinymemory-module-1.10.0-windows-2025-x86_64.zip",- sha256: "4e59e9bd4b9c9e55c028ea60516561494ce1d392d0afeebe36370567c004a825",+ archive: "tinymemory-module-1.11.0-windows-2025-x86_64.zip",+ sha256: "6a2654521625cbbbbb271cc2f9a2ca1bc956153677b9ffc4c21b4043dbb14d90",},PlatformAsset {host_key: "windows-2022-x86_64",- archive: "tinymemory-module-1.10.0-windows-2022-x86_64.zip",- sha256: "14ccd4135bd3ec88deb4c42ffb365dd40f4a46bab57c77f4b8584e278b171a30",+ archive: "tinymemory-module-1.11.0-windows-2022-x86_64.zip",+ sha256: "a408b15894a1cf419650c22cbaa3956e580e729bb1c3b42c2a42d4f4c635d836",},PlatformAsset {host_key: "windows-11-arm64",- archive: "tinymemory-module-1.10.0-windows-11-arm64.zip",- sha256: "e746dd3205f1cc39558e3278963324e2017f1a05147f3828a318394c237371ba",+ archive: "tinymemory-module-1.11.0-windows-11-arm64.zip",+ sha256: "40a44ce889eed3707f13f453e91600f43b4a37d0cda7e17d77e2bf92df5cfc77",},],// Eager, unlike the two codecs above. A codec that is never asked for shoulddiff --git a/vendor/tinymemory b/vendor/tinymemoryindex 413b07c039..5af918e670 160000--- a/vendor/tinymemory+++ b/vendor/tinymemory@@ -1 +1 @@-Subproject commit 413b07c0396b657b3c3cff1a0144682f92683a1b+Subproject commit 5af918e6706836cc22c6b45a26098277f0fee620