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(composio): cover action tier classification fail-safe
Steven Enamakela14c57eb204d
diff --git a/crates/openhuman-core/src/integrations/composio/flow_gate_tests.rs b/crates/openhuman-core/src/integrations/composio/flow_gate_tests.rsindex ca0fe379f0..b7363f20a4 100644--- a/crates/openhuman-core/src/integrations/composio/flow_gate_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/flow_gate_tests.rs@@ -4,6 +4,7 @@ use crate::integrations::composio::catalog::{seed_live_catalog_cache, seed_live_catalog_cache_expired, ToolContract,};use crate::integrations::composio::{ComposioExecuteResponse, ConnectedIntegration};+use serde_json::json;fn integration(toolkit: &str,@@ -404,3 +405,27 @@ async fn preflight_applies_static_arg_rules_without_a_catalog() {.await.expect("statically-valid args must pass preflight");}++/// The classifier itself stays fail-safe: only a curated read skips approval.+#[test]+fn classify_composio_action_for_tier_matches_curated_scope_fail_safe() {+ use tinybox_bus::CommandClass;++ assert_eq!(+ classify_composio_action_for_tier("TWITTER_RECENT_SEARCH"),+ CommandClass::Read+ );+ assert_eq!(+ classify_composio_action_for_tier("TWITTER_CREATION_OF_A_POST"),+ CommandClass::Network+ );+ assert_eq!(+ classify_composio_action_for_tier("TWITTER_POST_DELETE_BY_POST_ID"),+ CommandClass::Network+ );+ assert_eq!(+ classify_composio_action_for_tier("UNKNOWN_SERVICE_DO_THING"),+ CommandClass::Network+ );+ assert_eq!(classify_composio_action_for_tier(""), CommandClass::Network);+}