Skip to content

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

chore: files changed crates/openhuman-core/src/core/runtime/context.rs

Steven Enamakel9b12b6c906cd
diff --git a/crates/openhuman-core/src/core/runtime/context.rs b/crates/openhuman-core/src/core/runtime/context.rs
index dd7f0935c5..d4dc8265a8 100644
--- a/crates/openhuman-core/src/core/runtime/context.rs
+++ b/crates/openhuman-core/src/core/runtime/context.rs
@@ -428,7 +428,7 @@ impl CoreContext {
autonomy_tier_source: overlay
.autonomy_tier_source
.unwrap_or(self.autonomy_tier_source),
- autonomy_tier_ceiling: stricter_autonomy_ceiling(
+ autonomy_tier_ceiling: overlay::stricter_autonomy_ceiling(
self.autonomy_tier_ceiling,
overlay.autonomy_tier_ceiling,
),
@@ -603,20 +603,6 @@ impl CoreContext {
}
}
-fn stricter_autonomy_ceiling(
- left: Option<crate::security::AutonomyLevel>,
- right: Option<crate::security::AutonomyLevel>,
-) -> Option<crate::security::AutonomyLevel> {
- use crate::security::AutonomyLevel::{Full, ReadOnly, Supervised};
-
- match (left, right) {
- (None, ceiling) | (ceiling, None) => ceiling,
- (Some(ReadOnly), _) | (_, Some(ReadOnly)) => Some(ReadOnly),
- (Some(Supervised), _) | (_, Some(Supervised)) => Some(Supervised),
- (Some(Full), Some(Full)) => Some(Full),
- }
-}
-
/// Initialize the workspace-bound stores and report the memory engine.
///
/// A `Config::load_or_init` failure here is operator-visible and serious