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
feat(security): add enabled flag to SecurityPolicy
Steven Enamakel9f584bc33e81
diff --git a/crates/openhuman-core/src/security/policy/types.rs b/crates/openhuman-core/src/security/policy/types.rsindex 8f63dcb7c4..aeeb0597a1 100644--- a/crates/openhuman-core/src/security/policy/types.rs+++ b/crates/openhuman-core/src/security/policy/types.rs@@ -223,6 +223,23 @@ pub(super) const WORKSPACE_INTERNAL_FILES: &[&str] = &[/// Security policy enforced on all tool executions#[derive(Debug, Clone)]pub struct SecurityPolicy {+ /// Master switch for the autonomy policy. **Off by default** — these agents+ /// run inside containers, platform jails and Docker sandboxes that already+ /// provide the isolation this in-process policy was approximating, and an+ /// agent whose shell refuses ordinary shell syntax is not a usable agent.+ ///+ /// When `false`, command classification, the approval gate, the command+ /// allowlist, the hourly action budget, `workspace_only`, `forbidden_paths`+ /// and the workspace-internal boundary are all skipped.+ ///+ /// [`Self::is_always_forbidden`] still applies either way: credential+ /// stores (`~/.ssh`, `~/.gnupg`, `~/.aws`, …) and system roots stay+ /// unreachable. That is a deliberate floor, not an oversight — it has never+ /// blocked legitimate agent work, and removing it is a one-line change if+ /// a host genuinely wants no path policy at all.+ ///+ /// Set `[autonomy] enabled = true` to restore the full policy.+ pub enabled: bool,pub autonomy: AutonomyLevel,/// Data-egress posture (Privacy Mode) — DISTINCT from `autonomy`, which/// governs act-power. `LocalOnly` blocks external model calls at the@@ -303,6 +320,7 @@ pub struct SecurityPolicy {impl Default for SecurityPolicy {fn default() -> Self {Self {+ enabled: false,autonomy: AutonomyLevel::Supervised,privacy_mode: PrivacyMode::Standard,workspace_dir: PathBuf::from("."),