Skip to content

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

test(security): enable autonomy in shared policy test fixture

Steven Enamakel5e75a3c37368
diff --git a/crates/openhuman-core/src/security/policy/policy_tests.rs b/crates/openhuman-core/src/security/policy/policy_tests.rs
index c6aa1552d2..3f0626e079 100644
--- a/crates/openhuman-core/src/security/policy/policy_tests.rs
+++ b/crates/openhuman-core/src/security/policy/policy_tests.rs
@@ -1,7 +1,12 @@
use super::*;
fn default_policy() -> SecurityPolicy {
- SecurityPolicy::default()
+ // These tests exercise the autonomy gates. The shipped config leaves
+ // autonomy disabled, so enable it explicitly in the shared test fixture.
+ SecurityPolicy {
+ enabled: true,
+ ..SecurityPolicy::default()
+ }
}
fn readonly_policy() -> SecurityPolicy {