Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(profiles): clarify tool_allowlist is admission, not registration

Steven Enamakelf56e4c14c3de
diff --git a/crates/openhuman-core/src/core/runtime/saas.rs b/crates/openhuman-core/src/core/runtime/saas.rs
index 8186c7aac5..07712854ba 100644
--- a/crates/openhuman-core/src/core/runtime/saas.rs
+++ b/crates/openhuman-core/src/core/runtime/saas.rs
@@ -47,8 +47,10 @@ pub struct SaasConfig {
/// `<root>/service.token`.
#[serde(default)]
pub service_token_file: Option<PathBuf>,
- /// Host tool groups the operator opts users into
+ /// Host tool groups the operator permits an embedding host to supply
/// (`profiles::tools::SaasToolGroup`: `host_files`, `host_shell`).
+ /// This allowlist does not register tools. The standalone SaaS CLI has no
+ /// host-tool adapter, so these groups expose no file or shell tools there.
/// Empty by default: users get no tool that reaches the host.
#[serde(default)]
pub tool_allowlist: Vec<String>,
diff --git a/crates/openhuman-core/src/profiles/README.md b/crates/openhuman-core/src/profiles/README.md
index d50ade7a0e..d071580174 100644
--- a/crates/openhuman-core/src/profiles/README.md
+++ b/crates/openhuman-core/src/profiles/README.md
@@ -269,8 +269,10 @@ A profile holds one thread per conversation, whatever interface it came in on:
direct `load_or_init` calls, environment writes and `home_dir()` lookups.
Detached work uses `spawn_scoped` so it keeps its profile.
- **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`:
+ family. The standalone SaaS CLI has no host-tool adapter and exposes no
+ shell or file tools, even when their group is in `tool_allowlist`. An
+ embedding host must supply profile tool adapters and a permission callback;
+ the allowlist limits which host groups those adapters may expose:
- `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 profile's `sandbox/`. In SaaS the
diff --git a/crates/openhuman-core/src/profiles/tools.rs b/crates/openhuman-core/src/profiles/tools.rs
index f3901b2907..51d3ccd51a 100644
--- a/crates/openhuman-core/src/profiles/tools.rs
+++ b/crates/openhuman-core/src/profiles/tools.rs
@@ -4,8 +4,10 @@
//! ([`host::user_domains`](super::host::user_domains)): memory and thread
//! tools, nothing that reaches the host. Shell and file tools sit in the
//! `Platform` family, which a user context never enables. The operator opts
-//! users into them per deployment with `tool_allowlist`, one
-//! [`SaasToolGroup`] at a time:
+//! into tools supplied by an embedding host with `tool_allowlist`, one
+//! [`SaasToolGroup`] at a time. The allowlist grants admission, not registration:
+//! the standalone SaaS CLI has no host-tool adapter and exposes neither group.
+//! When an embedding host supplies the corresponding tools:
//!
//! - `host_files`: the file tools. They run in-process, confined by the
//! user's policy (`layout::profile_config`: autonomy on, workspace-only,
diff --git a/gitbooks/developing/saas-profiles.md b/gitbooks/developing/saas-profiles.md
index 02d6c66014..c6636bbc73 100644
--- a/gitbooks/developing/saas-profiles.md
+++ b/gitbooks/developing/saas-profiles.md
@@ -36,10 +36,10 @@ The internals are in
unknown method.
- **Their own events.** `GET /events?client_id=` streams only that user's
chat progress, final replies and relayed `channel_outbound` replies.
-- **Closed tools by default.** No shell or file tool reaches the host unless
- the operator opts users into `host_files` or `host_shell`; `host_shell`
- runs every command in a locked-down Docker container whose only writable
- mount is the user's `sandbox/`.
+- **Closed host tools.** The standalone SaaS CLI exposes no file or shell
+ tools, even when `host_files` or `host_shell` is in `tool_allowlist`.
+ Embedding hosts can supply profile tool adapters; the allowlist limits
+ which host tool groups those adapters may expose.
## Operator config
@@ -57,7 +57,7 @@ max_profiles_open = 256 # profiles open at once on this node
idle_evict_secs = 1800 # close a profile idle this long
profile_ids = "raw" # or "hashed"
require_user_signature = true # X-OpenHuman-User-Sig on every user request
-tool_allowlist = [] # "host_files", "host_shell"
+tool_allowlist = [] # admission only; CLI has no host-tool adapter
shared_backend_api_key = true # let every user ride OPENHUMAN_BACKEND_API_KEY
custom_definitions = false
@@ -68,13 +68,20 @@ custom_definitions = false
# lease_ttl_secs = 30
# operator_dir = "/var/lib/openhuman/node-a" # default <root>/operator
-[sandbox] # only used with host_shell
+[sandbox] # policy for host_shell supplied by an embedding host
image = "alpine:3.20"
network = "none"
memory_limit_mb = 512
cpu_limit = 1.0
```
+`tool_allowlist` is an admission policy, not a tool installer. Its recognized
+groups are `host_files` and `host_shell`. To expose those tools, use an
+embedding host with profile tool adapters and a permission callback. Adding
+either group to the standalone CLI configuration does not make those tools
+available. The `host_shell` Docker boot check still applies when that group is
+allowlisted.
+
Unknown keys are refused. The boot guard refuses to start, listing every
problem at once, when the root is relative, missing, world-writable or inside
`~/.openhuman`; when the service token is missing, readable by others or