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(user_agents): document the per-user surface and SaaS domain presets
Steven Enamakeldf992eb0baf8
diff --git a/crates/openhuman-core/src/core/runtime/README.md b/crates/openhuman-core/src/core/runtime/README.mdindex 6b12a7c999..dc6440a764 100644--- a/crates/openhuman-core/src/core/runtime/README.md+++ b/crates/openhuman-core/src/core/runtime/README.md@@ -166,10 +166,11 @@ through `runtime/saas.rs`:it never resolves `~/.openhuman` or an `active_user.toml`. The gatewaybearer is the RPC token.-The SaaS presets are closed. `DomainSet::saas()` enables only the operator-plane (`DomainGroup::Operator`, the `user_agents.*` controllers), so a SaaS-core answers its built-ins (`core.*`, `/health`, `/schema`) and provisioning,-and nothing a user could reach, until each family's per-user isolation lands.+The SaaS presets are closed. `DomainSet::saas()` registers the operator plane+(`DomainGroup::Operator`, the `user_agents.*` controllers) and the user+families whose per-user isolation has landed (threads). `user_agents::surface`+keeps the two planes apart: the operator scope reaches only the operator+plane, and a user's scope only the reviewed `USER_METHODS`.`saas::build` installs the process's `user_agents::AgentHost`. Each open useragent runs under a context derived from the operator's, with its own forcedconfig and `session_agent` (see `user_agents/README.md`).diff --git a/crates/openhuman-core/src/user_agents/README.md b/crates/openhuman-core/src/user_agents/README.mdindex 65df918564..7e51f5616f 100644--- a/crates/openhuman-core/src/user_agents/README.md+++ b/crates/openhuman-core/src/user_agents/README.md@@ -14,6 +14,7 @@ process. A single-user core never serves it: its controllers belong to| `layout.rs` | `<root>/agents/<id>/{agent.toml, config.toml, workspace/, sandbox/}`, archived agents, and `agent_config`: the forced paths, memory binding and autonomy policy || `host.rs` | `AgentHost`: provisioning, lazy open, LRU and idle eviction (never of an agent in use), each agent's derived `CoreContext`, `current()` || `gateway.rs` | Which context a gateway request runs under: the operator plane, or the agent of the user named in `X-OpenHuman-User`, after the signature check |+| `surface.rs` | What a user may call: `USER_METHODS`, the exact allowlist applied at dispatch, in the controller list and in `/schema`; the operator scope sees only the operator plane; user thread-id rules || `credentials.rs` | A user agent's TinyHumans credential, stored beside its config || `ops.rs` | `provision` / `deprovision` / `list` / `status` / `set_credential` / `clear_credential`, returning `Outcome<T>` || `schemas.rs` | The `user_agents.*` controllers |@@ -65,3 +66,22 @@ resolves that user's credential and no other. The process-wide`auth.set_credential` / `clear_credential` refuse in SaaS mode, because theyactivate a user directory and rebind process globals. The core never validatesor echoes a credential.++## User surface++- **What a user's context can reach.** It enables the user families+ (`host::user_domains`: threads so far). Within them, only the methods on+ `surface::USER_METHODS` are live. Anything unlisted answers as an unknown+ method and is absent from `/schema`.+- **Why the operator registers those families too.** `DomainSet::saas()`+ registers them so user contexts can derive them. The surface gate keeps the+ operator scope on the operator plane, so the operator never serves user+ methods on its own workspace.+- **Per-user storage.** Threads live under each agent's workspace. The on-disk+ session store is installed for SaaS and resolves the workspace of the+ calling context, so transcripts and turn states are per user too.+- **Thread ids.** A user may choose ids for their own threads (`threads.upsert`)+ of 1–128 characters from `[A-Za-z0-9_-]`. The core-reserved prefixes+ `channel:`, `proactive:` and `subagent:` are refused.+- **Still closed.** Methods that start model turns (`threads.generate_title`,+ `edit_message`, `regenerate`) stay closed until web chat opens per user.