Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(e2e): publish the modules policy the status RPCs now boot behind

Shanu44a0e049451d
diff --git a/tests/domain_modules_e2e.rs b/tests/domain_modules_e2e.rs
index 8fb5da4e45..d7403a6acf 100644
--- a/tests/domain_modules_e2e.rs
+++ b/tests/domain_modules_e2e.rs
@@ -146,6 +146,18 @@ async fn setup() -> TestHarness {
openhuman_core::openhuman::memory::host_impls::install_memory_host_seams(std::sync::Arc::new(
openhuman_core::openhuman::config::Config::default(),
));
+ // Same rule for the modules policy, which became load-bearing when the
+ // status RPCs started reading diagnostics through the bound driver
+ // (#5560): resolving a driver refuses outright until boot publishes the
+ // config to load against — "call modules::memory::set_modules_policy
+ // during boot" — and this harness is the boot. With the policy published,
+ // the provider loads the artifact CI installs (TINYMEMORY_TEST_MODULE);
+ // where none is present the binding degrades to its null placeholder and
+ // the diagnostics answer empty, which is a round-trippable result rather
+ // than a JSON-RPC error.
+ openhuman_core::openhuman::modules::memory::set_modules_policy(std::sync::Arc::new(
+ openhuman_core::openhuman::config::Config::default(),
+ ));
let (addr, join) = serve_rpc().await;
TestHarness {