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/code.rs,crates/openhuman-core/sr
Steven Enamakele7541149b625
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/code.rs b/crates/openhuman-core/src/flows/tinyflows/caps/code.rsindex b0674d722a..83b179c481 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/code.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/code.rs@@ -61,7 +61,14 @@ impl CodeRunner for OpenHumanCode {// Autonomy-tier gate (Phase 2): sandboxed arbitrary-code execution is// Write-class. A read-only run `Block`s here and never spawns anything;// Supervised/Full fall through to the ApprovalGate below.- let tier_decision = enforce_node_tier_gate(&self.security, CommandClass::Write, "code")?;+ let tier_decision = enforce_current_node_tier_gate(+ &self.ctx,+ &self.config,+ &self.security,+ CommandClass::Write,+ "code",+ )+ .await?;// Approval gate (mirrors OpenHumanTools/OpenHumanHttp): `gate_call_for_tier`// is what turns a Supervised-tier `Prompt` decision into a real humandiff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rsindex 4c4d26fc94..9b05d461ad 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs@@ -86,7 +86,7 @@ pub(crate) async fn current_tier_policy(.map_err(|error| tier_config_error(&error))?,),};- Ok(tier_policy_from_config(ctx, captured_config, live.as_ref(), baseline))+ tier_policy_from_config(ctx, captured_config, live.as_ref(), baseline)}/// Uses an already reloaded live config when the caller needs that same@@ -96,12 +96,11 @@ pub(crate) fn tier_policy_from_config(captured_config: &crate::config::Config,live_config: Option<&crate::config::Config>,baseline: &SecurityPolicy,-) -> SecurityPolicy {+) -> Result<SecurityPolicy> {let config = match ctx.autonomy_tier_source() {crate::core::runtime::AutonomyTierSource::Captured => captured_config,- crate::core::runtime::AutonomyTierSource::LiveConfig => {- live_config.unwrap_or(captured_config)- }+ crate::core::runtime::AutonomyTierSource::LiveConfig => live_config+ .ok_or_else(|| tier_config_error("live config snapshot was not provided"))?,};let mut policy = baseline.clone();policy.enabled = config.autonomy.enabled;@@ -110,7 +109,7 @@ pub(crate) fn tier_policy_from_config(policy.enabled = true;policy.autonomy = stricter_tier(policy.autonomy, ceiling);}- policy+ Ok(policy)}/// Async counterpart used by the host adapters. Config failures are policy