Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests

Steven Enamakel34959af5e42e
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
index dee8b999ef..e555a8f2a9 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
@@ -129,8 +129,12 @@ async fn http_adapter_blocks_under_readonly_tier() {
use crate::security::AutonomyLevel;
let (_dir, creds) = http_cred_store();
+ let mut config = Config::default();
+ config.autonomy.enabled = true;
+ config.autonomy.level = AutonomyLevel::ReadOnly;
let http = OpenHumanHttp {
- ctx: crate::core::runtime::DispatchCtx::ambient(),
+ ctx: crate::core::runtime::DispatchCtx::unbound(),
+ config: Arc::new(config),
security: Arc::new(policy(AutonomyLevel::ReadOnly)),
http_config: HttpRequestConfig::default(),
http_creds: Arc::new(creds),
diff --git a/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs b/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs
index 293720ee06..56239f801d 100644
--- a/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs
@@ -80,6 +80,7 @@ fn http_adapter(allowed_domains: Vec<String>) -> OpenHumanHttp {
));
OpenHumanHttp {
ctx: crate::core::runtime::DispatchCtx::ambient(),
+ config: Arc::new(config.clone()),
security,
http_config: crate::config::HttpRequestConfig {
allowed_domains,