Skip to content

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

fix(test): enable autonomy policy in two test setups

Steven Enamakel81c6d0d18bdb
diff --git a/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs b/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs
index 43de43f026..e25b64e9ae 100644
--- a/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs
@@ -101,6 +101,9 @@ async fn approval_manifest_lists_gated_nodes_and_skips_curated_reads() {
async fn approval_manifest_marks_blocked_classes_under_readonly_tier() {
let tmp = TempDir::new().unwrap();
let mut config = test_config(&tmp);
+ // The tier only binds with the policy on; the shipped config default is off,
+ // and a disabled policy gates nothing (so nothing would read as `blocked`).
+ config.autonomy.enabled = true;
config.autonomy.level = crate::security::AutonomyLevel::ReadOnly;
let entries = compute_approval_manifest(&config, &manifest_graph()).await;
diff --git a/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs
index 53beb2c514..beb94628b3 100644
--- a/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs
+++ b/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs
@@ -66,6 +66,8 @@ fn write_policy_logs_and_returns_denial() {
let tmp = tempfile::TempDir::new().unwrap();
let mut config = Config::default();
config.workspace_dir = tmp.path().join("workspace");
+ // The tier only binds with the policy on; the shipped config default is off.
+ config.autonomy.enabled = true;
config.autonomy.level = crate::security::AutonomyLevel::ReadOnly;
let err = enforce_write_policy_for_config("memory.store", &config)