Skip to content

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

fix(tests): enable autonomy in test configs

Steven Enamakel5e7fd899e439
diff --git a/crates/openhuman-core/src/cron/tools/update_tests.rs b/crates/openhuman-core/src/cron/tools/update_tests.rs
index a484e72684..9f3d36336a 100644
--- a/crates/openhuman-core/src/cron/tools/update_tests.rs
+++ b/crates/openhuman-core/src/cron/tools/update_tests.rs
@@ -51,6 +51,9 @@ async fn blocks_disallowed_command_updates() {
config_path: tmp.path().join("config.toml"),
..Config::default()
};
+ // The allowlist only exists when the policy is on, and the shipped config
+ // default is off (`[autonomy] enabled = false`).
+ config.autonomy.enabled = true;
config.autonomy.allowed_commands = vec!["echo".into()];
tokio::fs::create_dir_all(&config.workspace_dir)
.await
diff --git a/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs b/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs
index a454814bc2..34a45264be 100644
--- a/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs
@@ -125,6 +125,9 @@ async fn readonly_blocks_mutating_actions() {
action_dir: tmp.path().join("workspace"),
config_path: tmp.path().join("config.toml"),
autonomy: crate::config::AutonomyConfig {
+ // The tier only binds when the policy is on, and the shipped config
+ // default is off (`[autonomy] enabled = false`).
+ enabled: true,
level: AutonomyLevel::ReadOnly,
..Default::default()
},