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/flows/tinyflows/caps/code.rs,crates/openhuman-core/sr

Steven Enamakel3eff56471d35
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/code.rs b/crates/openhuman-core/src/flows/tinyflows/caps/code.rs
index 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 human
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.rs
index 8aea0ac8f3..e0fb59cab9 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 mut config = persisted_tier_config(dir.path(), true, AutonomyLevel::Full);
+ let 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(