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
test(core): update bus test to use manifest for version check
Steven Enamakel9ed435cac889
diff --git a/crates/openhuman-core/src/core/bus_tests.rs b/crates/openhuman-core/src/core/bus_tests.rsindex 57a7b15645..fe60d74e38 100644--- a/crates/openhuman-core/src/core/bus_tests.rs+++ b/crates/openhuman-core/src/core/bus_tests.rs@@ -27,10 +27,15 @@ fn removing_cron_delivery_moves_past_the_canonical_v2_event_catalog() {// The canonical 2.0 catalog already retired the desktop voice event, and// 2.1 added inbound-event queues. Removing CronDeliveryRequested from// that wire contract requires a new major version beyond both.- let major = std::hint::black_box(EVENTS_VERSION.major);+ let manifest = manifest();+ let interface = EVENTS_INTERFACE.try_into().unwrap();+ let advertised = manifest+ .provided(&interface)+ .expect("OpenHuman advertises its event catalog");assert!(- major > 2,- "removing CronDeliveryRequested is incompatible with the canonical 2.x catalog; got {EVENTS_VERSION}"+ advertised.speaks.major > 2,+ "removing CronDeliveryRequested is incompatible with the canonical 2.x catalog; got {}",+ advertised.speaks);}diff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rsindex 2caf0012c2..5d0d5f6322 100644--- a/crates/openhuman-core/src/storage/local.rs+++ b/crates/openhuman-core/src/storage/local.rs@@ -64,8 +64,7 @@ static BACKEND_OPEN_TEST_GATE: LazyLock<Mutex<Option<BackendOpenTestGate>>> =LazyLock::new(Mutex::default);#[cfg(test)]-static SYNC_BACKEND_ENTRY_TEST_SIGNAL:- LazyLock<Mutex<Option<std::sync::mpsc::Sender<()>>>> =+static SYNC_BACKEND_ENTRY_TEST_SIGNAL: LazyLock<Mutex<Option<std::sync::mpsc::Sender<()>>>> =LazyLock::new(Mutex::default);#[cfg(test)]@@ -167,14 +166,19 @@ pub fn backend_for(workspace_dir: &Path) -> Result<Arc<dyn StorageBackend>> {}/// Async counterpart to [`backend_for`] for boot and module-proxy paths that-/// already run inside a future. It avoids re-entering the blocking bridge when-/// opening a workspace's default backend.+/// already run inside a future. Cold initialization is delegated to Tokio's+/// blocking pool so the shared OnceCell initializer is driven by the storage+/// bridge rather than by the caller's runtime. A synchronous store may wait for+/// that same initializer, including from a current-thread runtime, without+/// preventing it from making progress.pub async fn backend_for_async(workspace_dir: &Path) -> Result<Arc<dyn StorageBackend>> {if let Some(backend) = installed() {return Ok(backend);}- let cell = workspace_backend(workspace_dir);- initialized_backend(cell, workspace_dir.to_path_buf()).await+ let workspace_dir = workspace_dir.to_path_buf();+ tokio::task::spawn_blocking(move || backend_for(&workspace_dir))+ .await+ .context("join the workspace storage opener")?}/// The storage a store uses for this call: [`backend_for`] `workspace_dir`