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(tinyflows): pass ambient dispatch ctx to flow_tool_allowed calls
Steven Enamakel0b06b99eb3a6
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rsindex ae8e86d71a..2b525cee78 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tool_results_and_credentials_tests.rs@@ -167,6 +167,7 @@ async fn unknown_toolkit_still_rejects() {// Connected set present but does not include this toolkit → reject.assert!(!flow_tool_allowed(+ &crate::core::runtime::DispatchCtx::ambient(),&config,"FLOWSTESTKIT_DO_THING",Some(&["gmail".to_string()])@@ -205,6 +206,7 @@ async fn connected_uncatalogued_toolkit_now_passes() {assert!(flow_tool_allowed(+ &crate::core::runtime::DispatchCtx::ambient(),&config,"FLOWSTESTKIT_DO_THING",Some(&["flowstestkit".to_string()])@@ -214,6 +216,7 @@ async fn connected_uncatalogued_toolkit_now_passes() {// Case-insensitive match on the toolkit slug.assert!(flow_tool_allowed(+ &crate::core::runtime::DispatchCtx::ambient(),&config,"FLOWSTESTKIT_DO_THING",Some(&["FlowsTestKit".to_string()])@@ -254,6 +257,7 @@ async fn expired_live_catalog_entry_is_treated_as_a_cache_miss() {assert!(!flow_tool_allowed(+ &crate::core::runtime::DispatchCtx::ambient(),&config,"FLOWSEXPIREDKIT_DO_THING",Some(&["flowsexpiredkit".to_string()])@@ -291,6 +295,7 @@ async fn connected_uncatalogued_toolkit_rejects_a_hallucinated_slug() {assert!(!flow_tool_allowed(+ &crate::core::runtime::DispatchCtx::ambient(),&config,"FLOWSTESTKIT_MADE_UP_ACTION",Some(&["flowstestkit".to_string()])