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 Enamakel2cdef6dfa272
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 9b05d461ad..a87d2339b3 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs@@ -103,11 +103,17 @@ pub(crate) fn tier_policy_from_config(.ok_or_else(|| tier_config_error("live config snapshot was not provided"))?,};let mut policy = baseline.clone();- policy.enabled = config.autonomy.enabled;- policy.autonomy = config.autonomy.level;- if let Some(ceiling) = ctx.autonomy_tier_ceiling() {- policy.enabled = true;- policy.autonomy = stricter_tier(policy.autonomy, ceiling);+ let ceiling = ctx.autonomy_tier_ceiling();+ policy.enabled = config.autonomy.enabled || ceiling.is_some();+ if config.autonomy.enabled {+ 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.+ policy.autonomy = ceiling;}Ok(policy)}