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
Ask the driver which toolkits can sync, and pin tinymemory v1.12.0
Shanud5670452d086
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.ymlindex 79ccff3449..aacc28ecf3 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.11.0"- memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"+ memory_version="1.12.0"+ memory_sha256="2900252b86975ac749bb91cb7dad98cfd357c0011c6c51b2c05b20efdc5d428f"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 d331998612..538b3ba8da 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.11.0"- memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"+ memory_version="1.12.0"+ memory_sha256="2900252b86975ac749bb91cb7dad98cfd357c0011c6c51b2c05b20efdc5d428f"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 6ac675de8a..eb29de91e7 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.11.0"- memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"+ memory_version="1.12.0"+ memory_sha256="2900252b86975ac749bb91cb7dad98cfd357c0011c6c51b2c05b20efdc5d428f"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.11.0"- memory_sha256="58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6"+ memory_version="1.12.0"+ memory_sha256="2900252b86975ac749bb91cb7dad98cfd357c0011c6c51b2c05b20efdc5d428f"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/Cargo.lock b/Cargo.lockindex fee11b1b56..ee6e49752f 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6553,7 +6553,7 @@ dependencies = [[[package]]name = "tinymemory"-version = "1.10.0"+version = "1.12.0"dependencies = ["anyhow","async-trait",diff --git a/src/openhuman/memory/sync/composio/bus.rs b/src/openhuman/memory/sync/composio/bus.rsindex f9e678e780..2122702c80 100644--- a/src/openhuman/memory/sync/composio/bus.rs+++ b/src/openhuman/memory/sync/composio/bus.rs@@ -63,8 +63,6 @@ use tinybus::EventHandler;use tinybus::SubscriptionHandle;use tinymemory_api::host::COMPOSIO_MODE_DIRECT;-use super::providers::get_provider;-/// A backend-tenant Composio client for one toolkit.////// This was `ProviderContextExt::backend_client`, an extension trait on the@@ -112,22 +110,50 @@ use crate::openhuman::integrations::composio::FetchConnectedIntegrationsStatus;/// non-registrable toolkits. Extracted as a pure predicate so the skip decision/// is unit-testable without driving the async event handler.///-/// # The one engine call left in this file (#5560)+/// # Asked of the driver, not of a list read across the seam///-/// `get_provider` reaches the engine's provider registry through the-/// `memory::sync::composio::providers` re-export, and this predicate plus the-/// `init_default_providers` call in [`register_composio_trigger_subscriber`]-/// are the only reasons that re-export still has a caller here. Both exist to-/// answer one question: does a native pipeline exist for this toolkit.+/// This was `get_provider(toolkit).is_some()`, reaching the engine's provider+/// registry through the `memory::sync::composio::providers` re-export. The+/// driver answers it now (tinymemory#106), which matters because the answer+/// depends on a normalisation the driver owns — it trims and lower-cases+/// before matching. A host matching its own copy of the list would have been+/// right until that rule changed, and silently wrong after.///-/// tinymemory#106 adds `MemorySourceSync::is_toolkit_syncable`, which asks the-/// driver instead — with the driver's own trim-and-lowercase normalisation-/// applied, rather than a list read across the seam and re-matched here. When-/// that releases, this body becomes a driver call, the host-side registry init-/// goes with it (the module initialises its own, tinymemory#105), and the-/// re-export loses its last consumer.-fn toolkit_is_memory_source_registrable(toolkit: &str) -> bool {- get_provider(toolkit).is_some()+/// `Unsupported` and a binding failure both read as "not registrable". That is+/// the safe direction: registering a source that then fails every sync is the+/// #4957 lie, whereas declining to register one leaves the connection working+/// as an ordinary agent-tool integration.+async fn toolkit_is_memory_source_registrable(+ config: &crate::openhuman::config::Config,+ toolkit: &str,+) -> bool {+ let Ok(binding) = crate::openhuman::memory::binding::for_config(config) else {+ tracing::warn!(+ toolkit = %toolkit,+ "[composio:bus] memory binding failed; treating toolkit as not registrable"+ );+ return false;+ };+ let Some(sync) = binding.provider().as_source_sync() else {+ tracing::debug!(+ toolkit = %toolkit,+ driver = %binding.driver_id(),+ "[composio:bus] driver does not serve SourceSync; treating toolkit as not registrable"+ );+ return false;+ };+ match sync.is_toolkit_syncable(toolkit).await {+ Ok(answer) => answer,+ Err(error) => {+ tracing::warn!(+ toolkit = %toolkit,+ error = %error,+ "[composio:bus] driver could not answer is_toolkit_syncable; \+ treating toolkit as not registrable"+ );+ false+ }+ }}/// Env var that **disables** the triage pipeline. The pipeline is@@ -157,10 +183,10 @@ static COMPOSIO_CONFIG_HANDLE: OnceLock<SubscriptionHandle> = OnceLock::new();/// Register both long-lived composio subscribers on the global event/// bus, and initialise the default provider registry. Idempotent.pub fn register_composio_trigger_subscriber() {- // Make sure the registry is populated before any event arrives —- // otherwise the very first webhook would no-op because the- // subscriber's `get_provider` lookup would miss.- super::providers::init_default_providers();+ // No host-side provider registry any more. It existed so this process+ // could answer `get_provider`; the driver answers that question now, and+ // the module initialises its own registry in its own process+ // (tinymemory#105) — which a `cdylib`'s separate statics require anyway.if COMPOSIO_TRIGGER_HANDLE.get().is_none() {match BUS.subscribe(Arc::new(ComposioTriggerSubscriber::new())) {@@ -758,7 +784,7 @@ impl EventHandler<DomainEvent> for ComposioConnectionCreatedSubscriber {// than a second `get_provider` call beside it: the bootstrap// that wanted the provider *handle* runs in the driver now, so// all this site needs is the #4957 answer.- if !toolkit_is_memory_source_registrable(&toolkit) {+ if !toolkit_is_memory_source_registrable(&config, &toolkit).await {// No native memory-sync provider → this toolkit cannot ingest// into memory. Do NOT auto-register it as a memory source: a// source that reports ACTIVE and then fails every sync with@@ -880,7 +906,7 @@ impl EventHandler<DomainEvent> for ComposioConnectionCreatedSubscriber {// memory source that would silently fail every sync (#4957). This also// guards the onboarding-incomplete path, which reaches here without// evaluating the provider branch above.- if !toolkit_is_memory_source_registrable(&toolkit) {+ if !toolkit_is_memory_source_registrable(&config, &toolkit).await {tracing::info!(toolkit = %toolkit,connection_id = %connection_id,diff --git a/src/openhuman/memory/sync/composio/bus_tests.rs b/src/openhuman/memory/sync/composio/bus_tests.rsindex 62be9e65e2..43f7a4191b 100644--- a/src/openhuman/memory/sync/composio/bus_tests.rs+++ b/src/openhuman/memory/sync/composio/bus_tests.rs@@ -1,30 +1,35 @@//! Unit tests for the composio connection-created event handler's gating.use super::toolkit_is_memory_source_registrable;-use crate::openhuman::memory::sync::composio::init_default_composio_sync_providers;-/// #4957 regression: the connection-created handler must only auto-register a-/// toolkit as a memory source when a native memory-sync provider exists for it.-/// This locks the skip decision (`toolkit_is_memory_source_registrable`) that-/// both auto-register sites in `handle` consult — a toolkit with no provider-/// (the prod offenders `googlecalendar` / `googlesheets`) has no-/// `build_pipeline` arm and must be skipped, never becoming a memory source-/// that reports ACTIVE and then silently fails every sync.-#[test]-fn only_provider_backed_toolkits_are_memory_source_registrable() {- init_default_composio_sync_providers();+/// #4957 regression, in the half that is still this host's.+///+/// The rule the original test locked — which toolkits have a native pipeline —+/// is the driver's now (`MemorySourceSync::is_toolkit_syncable`,+/// tinymemory#106), and it is tested there against the same offenders this one+/// named: `is_composio_toolkit_syncable("googlecalendar")` is false and+/// `" Gmail "` is true, so the normalisation is pinned upstream too. Asserting+/// the list again here would need a loaded module and would only re-check the+/// driver's answer.+///+/// What stays host-side is the **direction the host fails in**, and it is the+/// half that caused #4957: a toolkit that is auto-registered but cannot sync+/// reports ACTIVE and then fails forever, which is a silent lie. So when the+/// driver cannot answer — no binding, no `SourceSync` family, or `Unsupported`+/// — the host must treat the toolkit as *not* registrable rather than assume+/// it is fine.+///+/// A unit test has no loaded module, so every answer here is the+/// cannot-answer case, which is exactly the branch worth pinning.+#[tokio::test]+async fn a_driver_that_cannot_answer_makes_a_toolkit_not_registrable() {+ let config = crate::openhuman::config::Config::default();- // Built-in providers exist → registrable.- assert!(toolkit_is_memory_source_registrable("gmail"));- assert!(toolkit_is_memory_source_registrable("slack"));- assert!(toolkit_is_memory_source_registrable("github"));-- // No provider → skipped (the exact #4957 failures the human hit in prod).- assert!(!toolkit_is_memory_source_registrable("googlecalendar"));- assert!(!toolkit_is_memory_source_registrable("googlesheets"));- // Unknown / empty slugs are likewise not registrable.- assert!(!toolkit_is_memory_source_registrable(- "definitely-not-a-toolkit"- ));- assert!(!toolkit_is_memory_source_registrable(""));+ for toolkit in ["gmail", "slack", "github", "googlecalendar", ""] {+ assert!(+ !toolkit_is_memory_source_registrable(&config, toolkit).await,+ "with no module bound, '{toolkit}' must not be registrable — \+ registering a source that then fails every sync is #4957"+ );+ }}diff --git a/src/openhuman/modules/memory.rs b/src/openhuman/modules/memory.rsindex 07396ac767..83844eb047 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.11.0";+pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.12.0";/// The capability families the **pinned artifact** actually serves.///diff --git a/src/openhuman/modules/registry.rs b/src/openhuman/modules/registry.rsindex b01ffc71eb..8059e6b23f 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.11.0",- release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.11.0",+ version: "1.12.0",+ release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.12.0",assets: &[PlatformAsset {host_key: "ubuntu-24.04-x86_64",- archive: "tinymemory-module-1.11.0-ubuntu-24.04-x86_64.tar.gz",- sha256: "df843c0c68e5ab404d211458f5a0ba2ad0b37f5a3f92684133d41d690cc28b95",+ archive: "tinymemory-module-1.12.0-ubuntu-24.04-x86_64.tar.gz",+ sha256: "a183bb54731a6529bbc6815a9d03bc934c61200270370c29e72a1a110cf42fd4",},PlatformAsset {host_key: "ubuntu-24.04-arm64",- archive: "tinymemory-module-1.11.0-ubuntu-24.04-arm64.tar.gz",- sha256: "c5db441fa63f07ddf55c16433e2285fd4a63efc29107af4f14cc850b2033f85c",+ archive: "tinymemory-module-1.12.0-ubuntu-24.04-arm64.tar.gz",+ sha256: "9feec2ae00a4d873fb19b543a2d7bd27a550e753c1d769711aa99cc498adce41",},PlatformAsset {host_key: "ubuntu-22.04-x86_64",- archive: "tinymemory-module-1.11.0-ubuntu-22.04-x86_64.tar.gz",- sha256: "58286b1936712c07cbda7040a081311ccba6029e71b9839de07a1d6ff4050eb6",+ archive: "tinymemory-module-1.12.0-ubuntu-22.04-x86_64.tar.gz",+ sha256: "2900252b86975ac749bb91cb7dad98cfd357c0011c6c51b2c05b20efdc5d428f",},PlatformAsset {host_key: "ubuntu-22.04-arm64",- archive: "tinymemory-module-1.11.0-ubuntu-22.04-arm64.tar.gz",- sha256: "d9efc7ba93f77e070cc7c43ea05aa3069f60c8c49219e825e092511876aec3ac",+ archive: "tinymemory-module-1.12.0-ubuntu-22.04-arm64.tar.gz",+ sha256: "5d93c16f793abacf5baedbdae8aa8a812ed47ced20f77a56e11250f4a0d4df86",},PlatformAsset {host_key: "macos-26-arm64",- archive: "tinymemory-module-1.11.0-macos-26-arm64.tar.gz",- sha256: "945ac9bdaa6c880893b0963c4b9c8f061ce5004eef2e4bec97cffe2cd9f83df6",+ archive: "tinymemory-module-1.12.0-macos-26-arm64.tar.gz",+ sha256: "4769fe8a60eb4eb0d2e3dd556bb1cdf89ec236074ecf779b634ea3718c691ab9",},PlatformAsset {host_key: "macos-26-x86_64",- archive: "tinymemory-module-1.11.0-macos-26-x86_64.tar.gz",- sha256: "ef85c052025395d27a2e9a3599621f1992bcd5d2c2384134502f777d405a01c4",+ archive: "tinymemory-module-1.12.0-macos-26-x86_64.tar.gz",+ sha256: "b1621ef469b7e06710b9e622d96e49aa83475d3d8bb4b35a62092e6c58bc6b13",},PlatformAsset {host_key: "macos-15-arm64",- archive: "tinymemory-module-1.11.0-macos-15-arm64.tar.gz",- sha256: "89d44a1464dfdd73133331ef09e7a6c9214256c339ec98761d2c43eb3bd97b98",+ archive: "tinymemory-module-1.12.0-macos-15-arm64.tar.gz",+ sha256: "faef802555edb01d4d0da4d798bb6a54145de9afd35da1a299cb895fe9ebe5e0",},PlatformAsset {host_key: "macos-15-x86_64",- archive: "tinymemory-module-1.11.0-macos-15-x86_64.tar.gz",- sha256: "1e71a0760c1c0749b11839051015f7397f8575231bd2208302ffb42c8ae062a2",+ archive: "tinymemory-module-1.12.0-macos-15-x86_64.tar.gz",+ sha256: "4aea95cbc8e2e292bae63732c26b935fcc3efcf5daee509d95e970c6db403f70",},PlatformAsset {host_key: "windows-2025-x86_64",- archive: "tinymemory-module-1.11.0-windows-2025-x86_64.zip",- sha256: "6a2654521625cbbbbb271cc2f9a2ca1bc956153677b9ffc4c21b4043dbb14d90",+ archive: "tinymemory-module-1.12.0-windows-2025-x86_64.zip",+ sha256: "5d3dffce891d360ec175df723732ac6a8c11fb483c49a305ebbf7694feb0830d",},PlatformAsset {host_key: "windows-2022-x86_64",- archive: "tinymemory-module-1.11.0-windows-2022-x86_64.zip",- sha256: "a408b15894a1cf419650c22cbaa3956e580e729bb1c3b42c2a42d4f4c635d836",+ archive: "tinymemory-module-1.12.0-windows-2022-x86_64.zip",+ sha256: "11ba9ada6556b2c95453eb986fee300fa6eb1a4e361ca03323aec42b9757e7f6",},PlatformAsset {host_key: "windows-11-arm64",- archive: "tinymemory-module-1.11.0-windows-11-arm64.zip",- sha256: "40a44ce889eed3707f13f453e91600f43b4a37d0cda7e17d77e2bf92df5cfc77",+ archive: "tinymemory-module-1.12.0-windows-11-arm64.zip",+ sha256: "4ecb9c79f5941835c005215b9299471fcf75447edd57b4df973b2f58de4f631c",},],// Eager, unlike the two codecs above. A codec that is never asked for shoulddiff --git a/vendor/tinymemory b/vendor/tinymemoryindex 5af918e670..4141ec84c8 160000--- a/vendor/tinymemory+++ b/vendor/tinymemory@@ -1 +1 @@-Subproject commit 5af918e6706836cc22c6b45a26098277f0fee620+Subproject commit 4141ec84c86dd8cbc39a99cbbbf39380018017e2