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): tighten layout and boundary assertions
Steven Enamakel5bc96e2c9ec7
diff --git a/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs b/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rsindex e5d3dd28ac..0b407bb934 100644--- a/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs+++ b/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs@@ -47,7 +47,8 @@ async fn binds_the_legacy_tree_and_the_users_own() {assert!(scan(&AppHost::new(config.clone())).await.unwrap().needed);let placement = AppHost::new(config.clone()).placement().unwrap();- assert!(placement.chat_node.to_string().ends_with("ws:main"));+ assert_eq!(placement.layout.root().to_string(), root);+ assert_eq!(placement.chat_node.to_string(), format!("{root}/ws:main"));assert!(matches!(placement.flows, FlowPlacement::WithRoot));}diff --git a/crates/openhuman-core/src/memory/schemas_tests.rs b/crates/openhuman-core/src/memory/schemas_tests.rsindex d053db093e..d78ef940e2 100644--- a/crates/openhuman-core/src/memory/schemas_tests.rs+++ b/crates/openhuman-core/src/memory/schemas_tests.rs@@ -374,6 +374,12 @@ async fn rpc_memory_handlers_apply_the_refuse_boundary_before_operations() {] {let error = call(&config, function, params).await.unwrap_err();assert!(error.contains("INVALID_REQUEST"), "{function}: {error}");+ assert!(+ error.contains("outside this caller's memory")+ && error.contains("team:other")+ && error.contains("team:acme"),+ "{function}: unexpected boundary error: {error}"+ );}}