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
fix(security): correct policy enforcement for tool result artifacts
Steven Enamakel62ad0e130046
diff --git a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rsindex 1d2c50a245..34a2370395 100644--- a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs+++ b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::security::{AutonomyLevel, SecurityPolicy};+use crate::security::SecurityPolicy;use serde_json::json;use std::sync::Arc;use tinyagents_harness::artifacts::tool_results::apply_per_result_persistence;diff --git a/crates/openhuman-core/src/security/policy/enforcement.rs b/crates/openhuman-core/src/security/policy/enforcement.rsindex 51c222d49c..4f0a421004 100644--- a/crates/openhuman-core/src/security/policy/enforcement.rs+++ b/crates/openhuman-core/src/security/policy/enforcement.rs@@ -190,7 +190,7 @@ impl SecurityPolicy {if !trusted_roots.iter().any(|r| r.path == tool_results) {trusted_roots.push(TrustedRoot {path: tool_results,- access: TrustedAccess::ReadOnly,+ access: TrustedAccess::Read,});}diff --git a/crates/openhuman-core/src/security/policy/policy_action_dir_tests.rs b/crates/openhuman-core/src/security/policy/policy_action_dir_tests.rsindex fd24869cf2..1c8b2f2c47 100644--- a/crates/openhuman-core/src/security/policy/policy_action_dir_tests.rs+++ b/crates/openhuman-core/src/security/policy/policy_action_dir_tests.rs@@ -112,7 +112,7 @@ async fn tool_result_artifacts_are_readable_by_absolute_path_under_workspace_onlassert!(policy.trusted_roots.iter()- .any(|r| r.path == grant && r.access == TrustedAccess::ReadOnly));+ .any(|r| r.path == grant && r.access == TrustedAccess::Read));let result = artifacts.join("call.txt");policy