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
fix(test): move namespace listing into degradation probe loop
Steven Enamakel208d7fd4e9a4
diff --git a/tests/memory_engine_e2e.rs b/tests/memory_engine_e2e.rsindex e91f809dee..a0d259ccb8 100644--- a/tests/memory_engine_e2e.rs+++ b/tests/memory_engine_e2e.rs@@ -583,8 +583,7 @@ fn engine_set_binds_the_hosted_engine_without_a_restart_and_switches_back() {fx.hosted.bearers.lock().unwrap().iter().all(|b| b == TEST_API_KEY),"every hosted call carries the live credential");- // Reads go through the mandatory families: recall by query, and the- // namespace listing the RPC layer serves.+ // Reads through the mandatory recall family reach the hosted engine.let recalled = binding.provider().recall(@@ -602,16 +601,11 @@ fn engine_set_binds_the_hosted_engine_without_a_restart_and_switches_back() {recalled.iter().any(|e| e.content.contains("the hosted engine stores this")),"recall must be served by the hosted engine: {recalled:?}");- let namespaces = fx.call("openhuman.memory_list_namespaces", json!({})).await;- assert!(- namespaces.to_string().contains(NS),- "the namespace listing must come from the hosted engine: {namespaces}"- );-// Families the hosted engine does not advertise answer with a clean// error envelope, never a panic or a hang. Probe a few and print what// each answers (visible with --nocapture) for the degradation report.for (method, params) in [+ ("openhuman.memory_list_namespaces", json!({})),("openhuman.memory_recall_memories", json!({ "namespace": NS, "limit": 5 })),("openhuman.memory_recall_context", json!({ "namespace": NS, "limit": 5 })),("openhuman.memory_query_namespace", json!({ "namespace": NS, "query": "hosted" })),@@ -627,6 +621,10 @@ fn engine_set_binds_the_hosted_engine_without_a_restart_and_switches_back() {"served".to_string()};eprintln!("[degrade-probe] hosted engine {method}: {outcome}");+ assert!(+ v.get("result").is_some() || v.get("error").is_some(),+ "{method} must answer with a result or a clean error envelope: {v}"+ );}// An unsupported family degrades to a clean error, not a panic.