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
chore: rename test files to follow naming convention
Steven Enamakeld8ad2da704cc
diff --git a/crates/openhuman-core/src/agent/hooks_tests.rs b/crates/openhuman-core/src/agent/hooks_tests.rsindex b565fcdd6d..7408ef5794 100644--- a/crates/openhuman-core/src/agent/hooks_tests.rs+++ b/crates/openhuman-core/src/agent/hooks_tests.rs@@ -147,8 +147,7 @@ async fn fired_hooks_observe_the_firing_dispatchs_core_context() {let tenant_ctx = CoreContext::for_test(crate::core::runtime::DomainSet::full(),- Some(std::path::PathBuf::from("/tmp/tenant-a")),- None,+ Some(std::path::PathBuf::from("/tmp/tenant-a")));let (tx, rx) = tokio::sync::oneshot::channel();let probe: std::sync::Arc<dyn PostTurnHook> = std::sync::Arc::new(ContextProbe {diff --git a/crates/openhuman-core/src/core/all_extension_tests.rs b/crates/openhuman-core/src/core/all_extension_tests.rsindex 7e4cca19fd..4cdf27d727 100644--- a/crates/openhuman-core/src/core/all_extension_tests.rs+++ b/crates/openhuman-core/src/core/all_extension_tests.rs@@ -94,7 +94,7 @@ async fn registry_extension_is_gated_by_its_domain_group() {let mut domains = DomainSet::full();domains.hosted = false;- let ctx = CoreContext::for_test(domains, None, None);+ let ctx = CoreContext::for_test(domains, None);let hidden = CoreContext::scope(ctx, async {(try_invoke_registered_rpc("openhuman.ext_gate_ping", Map::new())diff --git a/crates/openhuman-core/src/core/all_extensions_tests.rs b/crates/openhuman-core/src/core/all_extensions_tests.rsindex c2599965f6..b43434c468 100644--- a/crates/openhuman-core/src/core/all_extensions_tests.rs+++ b/crates/openhuman-core/src/core/all_extensions_tests.rs@@ -98,7 +98,7 @@ async fn registry_extension_is_gated_by_its_domain_group() {let mut domains = DomainSet::full();domains.hosted = false;- let ctx = CoreContext::for_test(domains, None, None);+ let ctx = CoreContext::for_test(domains, None);let hidden = CoreContext::scope(ctx, async {(try_invoke_registered_rpc("openhuman.ext_gate_ping", Map::new())diff --git a/crates/openhuman-core/src/core/all_registry_tests.rs b/crates/openhuman-core/src/core/all_registry_tests.rsindex c4890b84c8..b16c940bb8 100644--- a/crates/openhuman-core/src/core/all_registry_tests.rs+++ b/crates/openhuman-core/src/core/all_registry_tests.rs@@ -20,7 +20,7 @@ async fn full_registration_is_byte_identical() {// Tests in this binary may have initialized the process default context,// whose DomainSet can be narrower than full(). Scope the assertion// explicitly so parallel test order cannot change the registry surface.- let ctx = CoreContext::for_test(DomainSet::full(), None, None);+ let ctx = CoreContext::for_test(DomainSet::full(), None);let (filtered_methods, raw_methods) = CoreContext::scope(ctx, async {let filtered = all_registered_controllers().iter()diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex 3e47be40c7..d3c8355403 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -933,7 +933,7 @@ async fn harness_excludes_gated_namespaces() {#[cfg(feature = "channels")]assert!(full_ns.contains("channels"), "full() must expose channels");- let ctx = CoreContext::for_test(DomainSet::harness(), None, None);+ let ctx = CoreContext::for_test(DomainSet::harness(), None);let harness_ns: BTreeSet<&'static str> =CoreContext::scope(ctx, async { all_controller_schemas() }).await@@ -991,7 +991,7 @@ async fn dispatch_returns_none_for_gated_method() {.map(|c| c.rpc_method_name()).expect("a flows.* method exists in the full registry");- let ctx = CoreContext::for_test(DomainSet::harness(), None, None);+ let ctx = CoreContext::for_test(DomainSet::harness(), None);let out = CoreContext::scope(ctx, try_invoke_registered_rpc(&gated_method, Map::new())).await;assert!(out.is_none(),@@ -1000,7 +1000,7 @@ async fn dispatch_returns_none_for_gated_method() {// A harness-family method still routes (Some) — security.policy_info needs// no workspace, so it is a clean positive control.- let ctx = CoreContext::for_test(DomainSet::harness(), None, None);+ let ctx = CoreContext::for_test(DomainSet::harness(), None);let out = CoreContext::scope(ctx,try_invoke_registered_rpc("openhuman.security_policy_info", Map::new()),@@ -1036,7 +1036,7 @@ async fn schema_lookup_is_gated_in_lockstep_with_dispatch() {"under full() the schema for `{gated_method}` must resolve");- let ctx = CoreContext::for_test(DomainSet::harness(), None, None);+ let ctx = CoreContext::for_test(DomainSet::harness(), None);let gated_schema =CoreContext::scope(ctx, async { schema_for_rpc_method(&gated_method) }).await;assert!(@@ -1044,7 +1044,7 @@ async fn schema_lookup_is_gated_in_lockstep_with_dispatch() {"schema lookup for gated `{gated_method}` must be None under harness() (no param validation, no surface leak)");- let ctx = CoreContext::for_test(DomainSet::harness(), None, None);+ let ctx = CoreContext::for_test(DomainSet::harness(), None);let kept_schema = CoreContext::scope(ctx, async {schema_for_rpc_method("openhuman.security_policy_info")})@@ -1948,8 +1948,7 @@ async fn narrowed_capabilities_do_not_narrow_the_domain_set() {let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("axes")),- Some(null_driver_cfg()),+ Some(caps_ws("axes")));let null_ns: BTreeSet<&'static str> =CoreContext::scope(ctx, async { all_controller_schemas() })@@ -1981,7 +1980,7 @@ async fn visible_under(std::collections::BTreeSet<&'static str>,std::collections::BTreeSet<&'static str>,) {- let ctx = CoreContext::for_test(DomainSet::full(), Some(caps_ws(ws)), cfg);+ let ctx = CoreContext::for_test(DomainSet::full(), Some(caps_ws(ws)));let schemas = CoreContext::scope(ctx, async { all_controller_schemas() }).await;let namespaces = schemas.iter().map(|s| s.namespace).collect();let memory_fns = schemas@@ -2124,8 +2123,7 @@ async fn memory_families_absent_when_capabilities_not_advertised() {async fn dispatch_returns_none_for_capability_gated_method() {let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("dispatch")),- Some(null_driver_cfg()),+ Some(caps_ws("dispatch")));let out = CoreContext::scope(ctx,@@ -2140,8 +2138,7 @@ async fn dispatch_returns_none_for_capability_gated_method() {// Positive control in the same driver configuration.let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("dispatch")),- Some(null_driver_cfg()),+ Some(caps_ws("dispatch")));let out = CoreContext::scope(ctx,@@ -2168,8 +2165,7 @@ async fn schema_lookup_is_gated_in_lockstep_with_capability_dispatch() {let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("schema")),- Some(null_driver_cfg()),+ Some(caps_ws("schema")));let gated = CoreContext::scope(ctx, async { schema_for_rpc_method(method) }).await;assert!(@@ -2179,8 +2175,7 @@ async fn schema_lookup_is_gated_in_lockstep_with_capability_dispatch() {let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("schema")),- Some(null_driver_cfg()),+ Some(caps_ws("schema")));let kept = CoreContext::scope(ctx, async {schema_for_rpc_method("openhuman.memory_provider_status")@@ -2199,8 +2194,7 @@ async fn rpc_method_from_parts_stays_unfiltered_by_capability() {// every lookup consistent" change has to be a deliberate decision.let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("parts")),- Some(null_driver_cfg()),+ Some(caps_ws("parts")));let out = CoreContext::scope(ctx, async {rpc_method_from_parts("memory", "tool_rules_json")@@ -2251,8 +2245,7 @@ async fn null_driver_makes_tree_methods_unknown_over_rpc() {let ctx = CoreContext::for_test(DomainSet::full(), // isolates the capability gate from the DomainSet gate- Some(caps_ws("m54-tree-dispatch")),- Some(null_driver_cfg()),+ Some(caps_ws("m54-tree-dispatch")));let out = CoreContext::scope(ctx, try_invoke_registered_rpc(method, Map::new())).await;assert!(@@ -2289,8 +2282,7 @@ async fn null_driver_removes_tree_namespace_from_schema() {let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("m54-tree-schema")),- Some(null_driver_cfg()),+ Some(caps_ws("m54-tree-schema")));let null_ns: std::collections::BTreeSet<&str> =CoreContext::scope(ctx, async { all_controller_schemas() })@@ -2320,8 +2312,7 @@ async fn null_driver_removes_tree_namespace_from_schema() {);let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("m54-tree-schema")),- Some(null_driver_cfg()),+ Some(caps_ws("m54-tree-schema")));let gated = CoreContext::scope(ctx, async { schema_for_rpc_method(method) }).await;assert!(@@ -2347,9 +2338,8 @@ async fn null_driver_keeps_memory_status_routable() {let schemas = CoreContext::scope(CoreContext::for_test(DomainSet::full(),- Some(caps_ws("m54-boot")),- Some(null_driver_cfg()),- ),+ Some(caps_ws("m54-boot"))+ ),async { all_controller_schemas() },).await;@@ -2368,9 +2358,8 @@ async fn null_driver_keeps_memory_status_routable() {let out = CoreContext::scope(CoreContext::for_test(DomainSet::full(),- Some(caps_ws("m54-boot")),- Some(null_driver_cfg()),- ),+ Some(caps_ws("m54-boot"))+ ),try_invoke_registered_rpc("openhuman.memory_provider_status", Map::new()),).await;@@ -2383,9 +2372,8 @@ async fn null_driver_keeps_memory_status_routable() {let out = CoreContext::scope(CoreContext::for_test(DomainSet::full(),- Some(caps_ws("m54-boot")),- Some(null_driver_cfg()),- ),+ Some(caps_ws("m54-boot"))+ ),try_invoke_registered_rpc("openhuman.memory_recall_memories", Map::new()),).await;@@ -2427,8 +2415,7 @@ fn capability_for_parts_reports_the_registered_family_unfiltered() {async fn capability_for_parts_is_not_narrowed_by_the_ambient_context() {let ctx = CoreContext::for_test(DomainSet::full(),- Some(caps_ws("cli-cap")),- Some(null_driver_cfg()),+ Some(caps_ws("cli-cap")));let (unfiltered, filtered) = CoreContext::scope(ctx, async {(diff --git a/crates/openhuman-core/src/core/invoke_tests.rs b/crates/openhuman-core/src/core/invoke_tests.rsindex 789a17f993..6093445f33 100644--- a/crates/openhuman-core/src/core/invoke_tests.rs+++ b/crates/openhuman-core/src/core/invoke_tests.rs@@ -55,7 +55,7 @@ async fn gated_method_is_unknown_at_transport_even_with_malformed_params() {.expect("a flows.* method exists in the full registry");for params in [json!({}), json!({ "obviously_not_a_real_param_xyz": true })] {- let ctx = CoreContext::for_test(DomainSet::harness(), None, None);+ let ctx = CoreContext::for_test(DomainSet::harness(), None);let err = CoreContext::scope(ctx,invoke_method(default_state(), &gated_method, params.clone()),diff --git a/crates/openhuman-core/src/core/runtime/context_tests.rs b/crates/openhuman-core/src/core/runtime/context_tests.rsindex 39d74b006b..fbcb92d630 100644--- a/crates/openhuman-core/src/core/runtime/context_tests.rs+++ b/crates/openhuman-core/src/core/runtime/context_tests.rs@@ -304,7 +304,7 @@ async fn scoped_context_exposes_its_domain_set() {// The ambient `current().domains()` must reflect the scoped context's// DomainSet — this is the seam the registry filter reads (#4796).let harness = crate::core::runtime::DomainSet::harness();- let ctx = CoreContext::for_test(harness, Some(PathBuf::from("/tmp/ctx-domains")), None);+ let ctx = CoreContext::for_test(harness, Some(PathBuf::from("/tmp/ctx-domains")));let seen = CoreContext::scope(ctx, async { CoreContext::current().map(|c| c.domains()) }).await;assert_eq!(seen, Some(harness));assert!(seen.unwrap().allows(crate::core::all::DomainGroup::Memory));@@ -584,7 +584,7 @@ fn current_memory_capabilities_defaults_open_without_a_context() {);// And when a context *is* ambient, the call resolves through it rather// than erroring.- let ctx = CoreContext::for_test(crate::core::runtime::DomainSet::full(), None, None);+ let ctx = CoreContext::for_test(crate::core::runtime::DomainSet::full(), None);assert_eq!(ctx.memory_capabilities(),tinymemory_api::capabilities::Capabilities::all()@@ -595,7 +595,7 @@ fn current_memory_capabilities_defaults_open_without_a_context() {/// §3.7's three axes): a narrowed `DomainSet` must not narrow capabilities.#[test]fn capabilities_are_open_under_a_harness_domain_set() {- let ctx = CoreContext::for_test(crate::core::runtime::DomainSet::harness(), None, None);+ let ctx = CoreContext::for_test(crate::core::runtime::DomainSet::harness(), None);assert_eq!(ctx.memory_capabilities(),tinymemory_api::capabilities::Capabilities::all()diff --git a/crates/openhuman-core/src/skills/ops_discovery_tests.rs b/crates/openhuman-core/src/skills/ops_discovery_tests.rsindex 7809e6b5df..8a5b2bf1b9 100644--- a/crates/openhuman-core/src/skills/ops_discovery_tests.rs+++ b/crates/openhuman-core/src/skills/ops_discovery_tests.rs@@ -187,7 +187,7 @@ async fn discovery_home_dir_is_hidden_by_a_context_without_user_skill_roots() {let mut config = crate::config::Config::default();config.workspace_dir = std::path::PathBuf::from("/tmp/discovery-home-dir-test");- let parent = CoreContext::for_test(DomainSet::full(), None, None);+ let parent = CoreContext::for_test(DomainSet::full(), None);let hidden = parent.derive_with(ContextOverlay::new(config.clone(), DomainSet::full(), Default::default()).without_user_skill_roots(),@@ -221,7 +221,7 @@ async fn load_workflow_metadata_skips_user_roots_under_a_hidden_context() {let mut config = crate::config::Config::default();config.workspace_dir = ws_dir.path().to_path_buf();- let hidden = CoreContext::for_test(DomainSet::full(), None, None).derive_with(+ let hidden = CoreContext::for_test(DomainSet::full(), None).derive_with(ContextOverlay::new(config, DomainSet::full(), Default::default()).without_user_skill_roots(),);