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(memory): fail the settle helper when the module does not settle\n\n`ensure_loaded_within` has three outcomes, and discarding the result\ntreated all three as success. `StillLoading` — the bound elapsing with the\nresolution still in flight — is the one that leaves the caller in exactly\nthe state this helper exists to rule out: it would return, the assertion\nwould reach the driver mid-load, and the test would fail on the transient\nit was supposed to have waited out, now with thirty seconds of latency and\nno hint of why.\n\nIt panics instead, naming the cause. `Failed` stays ignored, because a host\nwith no artifact for its platform is settled, and what a caller asserts\nabout a driver that could not load is the caller's business.\n\nFilter run unchanged: 900 passed, 0 failed.\n
Shanu053d6aeead92
diff --git a/src/openhuman/memory/test_support/mod.rs b/src/openhuman/memory/test_support/mod.rsindex f32a18428d..d8ad589980 100644--- a/src/openhuman/memory/test_support/mod.rs+++ b/src/openhuman/memory/test_support/mod.rs@@ -276,17 +276,30 @@ pub(crate) fn retaining_memory() -> Arc<dyn tinymemory_api::traits::Memory> {/// returns. The wait is bounded because a caller that gives up leaves the/// resolution running rather than cancelling it.///-/// The outcome is deliberately ignored: a host with no artifact for its-/// platform resolves to `Failed`, which is settled too, and what the caller-/// asserts about that is the caller's business.+/// `Failed` is ignored: a host with no artifact for its platform resolves to+/// it, that is settled too, and what the caller asserts about a driver that+/// could not load is the caller's business. `StillLoading` is not ignored —+/// it is the one outcome that leaves the caller in exactly the state this+/// function exists to rule out, so it panics rather than handing back an+/// unsettled module and letting the caller fail on the transient it was+/// supposed to have waited out.#[cfg(feature = "modules")]pub(crate) async fn settle_memory_module() {- let _ = crate::openhuman::modules::ops::ensure_loaded_within(+ use crate::openhuman::modules::ops::LoadError;++ match crate::openhuman::modules::ops::ensure_loaded_within(&crate::openhuman::memory::binding::test_module_config(),crate::openhuman::memory::binding::MODULE_ID,Some(std::time::Duration::from_secs(30)),)- .await;+ .await+ {+ Ok(()) | Err(LoadError::Failed(_)) => {}+ Err(LoadError::StillLoading) => panic!(+ "the memory module did not settle within 30s; every assertion after \+ this point would race its load"+ ),+ }}/// Without the `modules` feature nothing loads a module, so nothing can be