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 Enamakel74d8ab830ed7
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 19a01a8fed..8aea0ac8f3 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@@ -117,6 +117,41 @@ async fn live_tier_reload_failure_fails_closed() {));}+#[tokio::test]+async fn malformed_live_config_is_denied_without_echoing_its_contents() {+ use crate::security::AutonomyLevel;++ let dir = tempfile::tempdir().unwrap();+ let config = persisted_tier_config(dir.path(), true, AutonomyLevel::Full);+ let canary = "private-config-canary-issue48";+ std::fs::write(+ &config.config_path,+ format!("[autonomy\nlevel = \"{canary}\"\n"),+ )+ .unwrap();+ let ctx = live_tier_context(&config);+ let baseline = SecurityPolicy::from_config(+ &config.autonomy,+ &config.workspace_dir,+ &config.action_dir,+ );+ let error = enforce_current_node_tier_gate(+ &ctx,+ &config,+ &baseline,+ CommandClass::Write,+ "code",+ )+ .await+ .expect_err("malformed persisted policy must deny rather than reuse Full");+ let message = match error {+ EngineError::Capability(message) => message,+ other => panic!("expected capability denial, got {other:?}"),+ };+ assert!(message.contains(POLICY_BLOCKED_MARKER));+ assert!(!message.contains(canary), "config text leaked: {message}");+}+#[tokio::test]async fn captured_agent_tier_and_host_ceiling_are_not_replaced_by_parent_file() {use crate::security::AutonomyLevel;diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rsindex a87d2339b3..05477b5301 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs@@ -132,9 +132,9 @@ pub(crate) async fn enforce_current_node_tier_gate(enforce_node_tier_gate(&policy, class, node)}-fn tier_config_error(error: &str) -> EngineError {+fn tier_config_error(_error: &str) -> EngineError {EngineError::Capability(format!(- "{POLICY_BLOCKED_MARKER} flows autonomy tier could not be refreshed; refusing the node: {error}"+ "{POLICY_BLOCKED_MARKER} flows autonomy tier could not be refreshed; refusing the node"))}diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rsindex 283e76988b..0a1b71bef6 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs@@ -95,9 +95,10 @@ impl ToolBackend for ComposioToolBackend {// credentials, account resolution, and direct dispatch.let live_config = config_rpc::reload_config_snapshot_with_timeout(ctx.config).await- .map_err(|e| {+ .map_err(|_| {EngineError::Capability(format!(- "tool_call node: failed to load live Composio config: {e}"+ "{} flows autonomy and Composio settings could not be refreshed; refusing the node",+ tinytools::status::POLICY_BLOCKED_MARKER))})?;// Autonomy-tier gate (Phase 2, made effect-aware): the node's