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: remove sandbox-landlock feature flag and make Landlock always-on on Linux
Steven Enamakelf198cb86a6ff
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.tomlindex 7d5936d921..9429a88b82 100644--- a/crates/openhuman-cli/Cargo.toml+++ b/crates/openhuman-cli/Cargo.toml@@ -361,7 +361,6 @@ flows = ["openhuman-core/flows", "openhuman-tinyhumans/flows"]skills = ["openhuman-core/skills", "openhuman-tinyhumans/skills"]mcp = ["openhuman-core/mcp", "openhuman-tinyhumans/mcp"]channels = ["openhuman-core/channels", "openhuman-tinyhumans/channels"]-sandbox-landlock = ["openhuman-core/sandbox-landlock", "openhuman-tinyhumans/sandbox-landlock"]whatsapp-web = ["openhuman-core/whatsapp-web", "openhuman-tinyhumans/whatsapp-web"]e2e-test-support = ["openhuman-core/e2e-test-support"]rss-bench = ["openhuman-core/rss-bench"]diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex 8ade119f3e..c5f5591396 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -1182,7 +1182,6 @@ crash-reporting = ["dep:sentry"]# is a compile-surface and architecture win, NOT a dependency win — see the# measured note above before claiming otherwise.channels = ["dep:tinychannels", "tinychannels/email", "tinychannels/lark"]-sandbox-landlock = ["tinybox-jail/landlock"]# The WhatsApp Web provider now lives in tinychannels; forward to its feature.# It is a refinement INSIDE the `channels` gate — enabling it pulls in the whole# channels domain (the provider re-exports live under `channels/providers/`).diff --git a/crates/openhuman-core/README.md b/crates/openhuman-core/README.mdindex 5cb02d89d6..a0702b54a5 100644--- a/crates/openhuman-core/README.md+++ b/crates/openhuman-core/README.md@@ -92,9 +92,9 @@ asserts the two stay in sync. Slim or headless-embedding builds useGate names (see `Cargo.toml` for the full rationale behind each): `http-server`,`inference`, `documents`, `hosting`, `modules`, `voice`, `web3`,`runtime-node`, `contacts`, `media`, `flows`, `skills`, `mcp`,-`crash-reporting`, `channels`, `sandbox-landlock`,+`crash-reporting`, `channels`,`sandbox-bubblewrap`, `browser-native`, `fantoccini`,-`landlock`, `whatsapp-web`, `e2e-test-support`, `rss-bench`,+`whatsapp-web`, `e2e-test-support`, `rss-bench`,`rss-bench-dhat`, `file-logging`, `scheduler-gate`, `bin-tools`. Read thepolicy comments above `[features]` in `Cargo.toml` before changing eitherfeature list.diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.tomlindex 51a27ae96b..1368fd8d86 100644--- a/crates/openhuman-embed/Cargo.toml+++ b/crates/openhuman-embed/Cargo.toml@@ -26,7 +26,6 @@ skills = ["openhuman-core/skills"]mcp = ["openhuman-core/mcp"]crash-reporting = ["openhuman-core/crash-reporting"]channels = ["openhuman-core/channels"]-sandbox-landlock = ["openhuman-core/sandbox-landlock"]whatsapp-web = ["openhuman-core/whatsapp-web"]file-logging = ["openhuman-core/file-logging"]scheduler-gate = ["openhuman-core/scheduler-gate"]diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.mdindex 1a64454bce..9d48681943 100644--- a/crates/openhuman-embed/README.md+++ b/crates/openhuman-embed/README.md@@ -281,7 +281,7 @@ Every feature on this crate is a pass-through to the same-named feature on`openhuman-core` (package `openhuman`): `default`, `http-server`,`inference`, `documents`, `hosting`, `modules`, `voice`, `web3`,`runtime-node`, `contacts`, `media`, `flows`, `skills`, `mcp`,-`crash-reporting`, `channels`, `sandbox-landlock`,+`crash-reporting`, `channels`,`sandbox-bubblewrap`, `browser-native`, `whatsapp-web`,`file-logging`, `scheduler-gate`.diff --git a/crates/openhuman-tinyhumans/Cargo.toml b/crates/openhuman-tinyhumans/Cargo.tomlindex bfa13b8b6f..8bdb23da81 100644--- a/crates/openhuman-tinyhumans/Cargo.toml+++ b/crates/openhuman-tinyhumans/Cargo.toml@@ -34,7 +34,6 @@ skills = ["openhuman-embed/skills"]mcp = ["openhuman-embed/mcp"]crash-reporting = ["openhuman-embed/crash-reporting"]channels = ["openhuman-embed/channels"]-sandbox-landlock = ["openhuman-embed/sandbox-landlock"]whatsapp-web = ["openhuman-embed/whatsapp-web"]file-logging = ["openhuman-embed/file-logging"]scheduler-gate = ["openhuman-embed/scheduler-gate"]diff --git a/docs/library-minimal-recipe.md b/docs/library-minimal-recipe.mdindex 1b9f7a1736..7d706f8383 100644--- a/docs/library-minimal-recipe.md+++ b/docs/library-minimal-recipe.md@@ -84,8 +84,7 @@ is actually for.| `desktop-automation` | — | — | **DROP** | AX / `computer` tool family drives a **local desktop UI** — meaningless headless | `uiautomation` || `tui` | OFF | — | **DROP** | `openhuman tui`/`chat` terminal UI — no terminal in a library host | `ratatui`, `crossterm`, `unicode-width` |-**Non-default optional features** (`sandbox-landlock`,-`browser-native`/`fantoccini`, `whatsapp-web`,+**Non-default optional features** (`browser-native`/`fantoccini`, `whatsapp-web`,`e2e-test-support`, `rss-bench`, `rss-bench-dhat`) are all default-OFF, so a`--no-default-features` build never links them unless explicitly added. None areneeded for opencompany; `rss-bench`/`rss-bench-dhat` are dev/benchmark-only.diff --git a/gitbooks/developing/embedding.md b/gitbooks/developing/embedding.mdindex ce6edb2cfe..80654f9b75 100644--- a/gitbooks/developing/embedding.md+++ b/gitbooks/developing/embedding.md@@ -26,7 +26,7 @@ Every feature on this crate forwards to the same-named feature on`openhuman-core`: `default`, `http-server`, `inference`, `documents`,`hosting`, `modules`, `voice`, `web3`, `runtime-node`, `contacts`, `media`,`flows`, `skills`, `mcp`, `crash-reporting`, `channels`,-`sandbox-landlock`, `sandbox-bubblewrap`,+`sandbox-bubblewrap`,`whatsapp-web`, `file-logging`, `scheduler-gate`. Two of them also gateitems on this crate's own surface: `mcp` gates `HttpHeader`,`McpAuthConfig`, `McpServer`, `AgentSpec::mcp` and `HarnessBuilder::mcp`;diff --git a/tests/cwd_jail_e2e.rs b/tests/cwd_jail_e2e.rsindex bc0073a40f..ca408b1f2f 100644--- a/tests/cwd_jail_e2e.rs+++ b/tests/cwd_jail_e2e.rs@@ -20,7 +20,7 @@ use std::path::PathBuf;use std::process::{Command, Stdio};#[cfg(any(- all(target_os = "linux", feature = "sandbox-landlock"),+ target_os = "linux",target_os = "macos",target_os = "windows"))]@@ -42,10 +42,27 @@ fn unique_tempdir(tag: &str) -> PathBuf {}// ── Linux: Landlock real-sandbox enforcement ────────────────────────+//+// Landlock is always compiled in on Linux (tinybox-jail enables it by default),+// but the running kernel may not support it; then `spawn` answers+// `Unsupported` rather than running the command unconfined, and these tests+// skip.++#[cfg(target_os = "linux")]+fn landlock_in_force() -> bool {+ let ok = openhuman_core::sandbox::cwd_jail::default_backend().name() == "landlock";+ if !ok {+ eprintln!("SKIP: this kernel has no Landlock");+ }+ ok+}-#[cfg(all(target_os = "linux", feature = "sandbox-landlock"))]+#[cfg(target_os = "linux")]#[test]fn linux_landlock_blocks_write_outside_root() {+ if !landlock_in_force() {+ return;+ }let root = unique_tempdir("ll-root");let outside = unique_tempdir("ll-outside");let outside_target = outside.join("forbidden.txt");@@ -69,9 +86,12 @@ fn linux_landlock_blocks_write_outside_root() {fs::remove_dir_all(&outside).ok();}-#[cfg(all(target_os = "linux", feature = "sandbox-landlock"))]+#[cfg(target_os = "linux")]#[test]fn linux_landlock_allows_write_inside_root() {+ if !landlock_in_force() {+ return;+ }let root = unique_tempdir("ll-root-write");let inside = root.join("ok.txt");