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
docs(sandbox): document the OPENHUMAN_SANDBOX=off escape hatch
Steven Enamakele3f989e26974
diff --git a/crates/openhuman-core/src/sandbox/README.md b/crates/openhuman-core/src/sandbox/README.mdindex 349c1617d6..abf2db53a1 100644--- a/crates/openhuman-core/src/sandbox/README.md+++ b/crates/openhuman-core/src/sandbox/README.md@@ -37,6 +37,11 @@ backend, and delegates local OS-level confinement to `tinybox-jail`.`read_only_mounts`/`read_write_mounts` carry the local jail's grant set(`grants.rs`, empty for other backends); `docker_overrides` ispopulated from `[runtime.docker]` only for the `Docker` backend.+ A host that already isolates the core (container, CI or benchmark task+ image, VM) sets `OPENHUMAN_SANDBOX=off` (`SANDBOX_OFF_ENV`; also `none`,+ `0`, `false`, `disabled`), and `Sandboxed` then resolves to `None` for the+ whole process: the outer isolation permits work (package installs, `/etc`+ edits) that the action-dir jail would refuse.- `pub async fn create_sandbox_backend(policy) -> SandboxBackendHandle`(`ops.rs`): instantiates and probes the resolved backend.- `pub async fn execute_in_sandbox(policy, command, working_dir, extra_env, timeout) -> anyhow::Result<SandboxExecResult>`diff --git a/crates/openhuman-core/src/sandbox/ops_tests.rs b/crates/openhuman-core/src/sandbox/ops_tests.rsindex 358c57d50c..f4e8aa63eb 100644--- a/crates/openhuman-core/src/sandbox/ops_tests.rs+++ b/crates/openhuman-core/src/sandbox/ops_tests.rs@@ -613,13 +613,23 @@ async fn local_handle_status_matches_the_backend_actually_in_force() {#[test]fn sandbox_off_value_accepts_off_spellings() {for v in ["off", "OFF", " none ", "0", "false", "Disabled"] {- assert!(sandbox_off_value(Some(v)), "{v:?} should disable the sandbox");+ assert!(+ sandbox_off_value(Some(v)),+ "{v:?} should disable the sandbox"+ );}}#[test]fn sandbox_off_value_keeps_sandbox_on_otherwise() {- for v in [None, Some(""), Some("on"), Some("1"), Some("true"), Some("local")] {+ for v in [+ None,+ Some(""),+ Some("on"),+ Some("1"),+ Some("true"),+ Some("local"),+ ] {assert!(!sandbox_off_value(v), "{v:?} must leave the sandbox on");}}