Skip to content

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

test(cron): enable autonomy in blocks_disallowed_shell_command test

Steven Enamakel79c4d7973a0e
diff --git a/crates/openhuman-core/src/cron/tools/add_tests.rs b/crates/openhuman-core/src/cron/tools/add_tests.rs
index 648745f0e3..7a14d63938 100644
--- a/crates/openhuman-core/src/cron/tools/add_tests.rs
+++ b/crates/openhuman-core/src/cron/tools/add_tests.rs
@@ -92,6 +92,9 @@ async fn blocks_disallowed_shell_command() {
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()];
config.autonomy.level = AutonomyLevel::Supervised;
tokio::fs::create_dir_all(&config.workspace_dir)