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
Merge remote-tracking branch 'upstream/main' into saas-phase5
Steven Enamakel45fabbe66e5e
diff --cc crates/openhuman-core/src/core/runtime/README.mdindex cb6a9531fc,ad250380e8..fdde15f0cc--- a/crates/openhuman-core/src/core/runtime/README.md+++ b/crates/openhuman-core/src/core/runtime/README.md@@@ -149,10 -149,10 +149,11 @@@ user's `Config`. The first SaaS boot lothrough `runtime/saas.rs`:- `SaasConfig` is the **operator's** file. It sets `root`,- `service_token_file` (defaults to `<root>/service.token`), `tool_allowlist`,- `rpc_allowlist_extra`, `max_agents_open`, `idle_evict_secs`,+ `service_token_file` (defaults to `<root>/service.token`), `tool_allowlist`+ (host tool groups, see `user_agents/README.md`), `[sandbox]` (the shell+ container), `rpc_allowlist_extra`, `max_agents_open`, `idle_evict_secs`,- `shared_backend_api_key` and `custom_definitions`. Unknown keys are refused.+ `shared_backend_api_key`, `custom_definitions` and `require_user_signature`+ (default `true`). Unknown keys are refused.- `runtime/boot_guard.rs` refuses the boot, listing every problem at once,when:- the host kind is not `Saas`;diff --cc crates/openhuman-core/src/user_agents/README.mdindex 9144b9bde3,f40095bd14..47c206d3d5--- a/crates/openhuman-core/src/user_agents/README.md+++ b/crates/openhuman-core/src/user_agents/README.md@@@ -32,28 -31,13 +32,30 @@@ process. A single-user core never serve- The autonomy policy is on and supervised, with no auto-approval, no toolinstallation and no trusted roots.- **The isolation boundary is the agent's `CoreContext`.** It carries the forced- config and `session_agent = <id>`, and has no domain family or tool group of- its own yet. Work for a user runs under it, which is what the config loader,- the session store and the per-thread caches key on.+ config and `session_agent = <id>`, and the user families (threads, channels+ for web chat, memory), narrowed further by `surface::USER_METHODS`. Work for a+ user runs under it, which is what the config loader, the session store and+ the per-thread caches key on.+- **Host tools are opt-in and confined.** A user's context has no `Platform`+ family, so shell and file tools are absent unless the operator lists their+ group in `tool_allowlist`:+ - `host_files` (`file_read`, `file_write`, `edit`, `apply_patch`, `grep`,+ `glob`, `list`, `csv_export`, `read_workspace_state`) runs in-process,+ confined by the forced policy to the agent's `sandbox/`. In SaaS the+ policy grants neither `~/OpenHuman/projects` nor `/tmp/openhuman`, which+ every user would share.+ - `host_shell` runs every command in a fresh Docker container+ (`[sandbox]`: image, network, memory and CPU limits): read-only root+ filesystem, all capabilities dropped, no host environment, and the+ agent's `sandbox/` as its only writable mount. If the container cannot+ start, the command fails; it never falls back to the host.+ - Tools that change the process, install code or reach shared state are+ hard-denied whatever the allowlist says (`tools::HARD_DENIED`).+ - There is no per-user approval surface, so the approval gate never parks+ in SaaS: it allows tools from an allowlisted group and refuses the rest.- **Deprovisioning archives.** The agent's directory moves to- `<root>/deprovisioned/<id>-<unix-secs>/`. Nothing is deleted.+ `<root>/deprovisioned/<id>-<unix-secs>-<uuid>/`. Nothing is deleted. An agent+ still in use is not archived; the call fails and can be retried.## Gateway contractdiff --cc scripts/ci/check-openhuman-rust-layout.mjsindex a679ee1b0a,e3fda88752..6a7549963d--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@@ -43,10 -43,10 +43,10 @@@ const LEGACY_LIMIT_ENTRIES =// provider, security, memory, tool and prompt policy. Generic session// state moved to tinyagents-runtime; this remaining composition is split in// a follow-up without reintroducing an old harness/session exception.- ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 984],+ ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 977],["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1309],- ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1152],+ ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1149],- ["crates/openhuman-core/src/tools/ops.rs", 1209],+ ["crates/openhuman-core/src/tools/ops.rs", 1208],["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1304],// These established external test modules grew with upstream coverage. Pin// their current sizes while follow-up work separates their test concerns.