The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests
Steven Enamakela4678036c238
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.rsindex e0fb59cab9..7b55e47e41 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@@ -41,7 +41,7 @@ async fn one_live_capability_observes_full_readonly_full_updates() {use crate::security::AutonomyLevel;let dir = tempfile::tempdir().unwrap();- let config = persisted_tier_config(dir.path(), true, AutonomyLevel::Full);+ let mut config = persisted_tier_config(dir.path(), true, AutonomyLevel::Full);save_tier_config(&config).await;let ctx = live_tier_context(&config);let mut baseline = SecurityPolicy::from_config(@@ -94,7 +94,7 @@ async fn live_tier_reload_failure_fails_closed() {use crate::security::AutonomyLevel;let dir = tempfile::tempdir().unwrap();- let mut config = persisted_tier_config(dir.path(), true, AutonomyLevel::Full);+ let config = persisted_tier_config(dir.path(), true, AutonomyLevel::Full);std::fs::create_dir_all(&config.config_path).unwrap();let ctx = live_tier_context(&config);let baseline = SecurityPolicy::from_config(@@ -224,6 +224,7 @@ async fn captured_agent_tier_and_host_ceiling_are_not_replaced_by_parent_file()&baseline,).unwrap();+ assert!(!disabled_full_ceiling.enabled);assert_eq!(disabled_full_ceiling.autonomy, AutonomyLevel::Full);assert_eq!(disabled_full_ceiling.gate_decision(CommandClass::Write),diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rsindex 05477b5301..4ab2c00248 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs@@ -104,16 +104,24 @@ pub(crate) fn tier_policy_from_config(};let mut policy = baseline.clone();let ceiling = ctx.autonomy_tier_ceiling();- policy.enabled = config.autonomy.enabled || ceiling.is_some();if config.autonomy.enabled {+ policy.enabled = true;policy.autonomy = config.autonomy.level;if let Some(ceiling) = ceiling {policy.autonomy = stricter_tier(policy.autonomy, ceiling);}- } else if let Some(ceiling) = ceiling {- // A disabled config contributes no tier restriction; a host ceiling- // remains independently active.+ } else if let Some(ceiling @ (crate::security::AutonomyLevel::ReadOnly+ | crate::security::AutonomyLevel::Supervised)) = ceiling+ {+ // A disabled config contributes no tier restriction; a restrictive+ // host ceiling remains independently active.+ policy.enabled = true;policy.autonomy = ceiling;+ } else {+ // A Full ceiling adds no restriction, so it cannot enable a tier which+ // the live config explicitly disabled.+ policy.enabled = false;+ policy.autonomy = crate::security::AutonomyLevel::Full;}Ok(policy)}