Skip to content

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

Merge remote-tracking branch 'upstream/main' into crate-chain

Steven Enamakel8dcee0b86667
diff --cc crates/openhuman-embed/README.md
index b6a6224294,70f435a986..c001df8650
--- a/crates/openhuman-embed/README.md
+++ b/crates/openhuman-embed/README.md
@@@ -379,14 -379,11 +379,14 @@@ agent to another. See [`src/agent/READM
| [`src/runtime/`](src/runtime/README.md) | `Runtime`, `RuntimeBuilder`, `ApiKey`, and the `CoreGuard` that owns process-scoped state until the last handle drops. |
| [`src/agent/`](src/agent/README.md) | `Agent`, `AgentSpec`, `AgentDefinitionSpec`, `AgentLayout`, `MemoryBinding`, the build step, and permanent tool attachments. |
| [`src/harness/`](src/harness/README.md) | `Harness` and `HarnessBuilder`, plus the shared input types: `Access`, `Provider`, `Workspace`, `McpServer`, skill copying, `HarnessError`. |
- | `src/turn.rs` | `Turn`, `TurnRequest`, `TurnOutcome`, `Route`: one turn, its ambient scopes, and its dispatch to an agent or to the orchestrator. |
- | `src/call.rs` | The private typed dispatch helper over `CoreRuntime::invoke` that every facade method uses. |
- | `src/config.rs`, `src/auth.rs`, `src/core_agent.rs` | The `Core` sub-facades: runtime flags, credentials (`Session`, `AuthState`), and the orchestrator turn. |
- | `src/memory.rs` | `Memory`, the per-tenant memory facade returned by `Runtime::memory`. |
- | `src/process.rs`, `src/process_sentry.rs` | Host lifecycle helpers: the agent-sized tokio runtime, logging init, dotenv and launch overrides, the master key, and (`crash-reporting`) the Sentry `ClientOptions` with the single `before_send` chain. |
- | `src/artifacts.rs`, `src/chat_surface.rs`, `src/identity.rs`, `src/modules.rs` | Curated host facades: artifact file resolution, the in-process web-chat event stream, the signed-in identity peek, bundled module releases. `config` also carries `load_or_init`, `load_config_with_timeout`, `default_root_openhuman_dir`, `read_active_user_id`. |
- | `src/host_internals.rs` | `__host` (doc-hidden): an explicit list of core modules for `openhuman-tinyhumans` and `openhuman-rpc` only. |
- | `src/error.rs` | `CoreError`, the error every facade call returns (`Domain`, `Unavailable`, `Rpc`, route refusals). |
+ | [`src/turn.rs`](src/turn.rs) | `Turn`, `TurnRequest`, `TurnOutcome`, `Route`: one turn, its ambient scopes, and its dispatch to an agent or to the orchestrator. |
+ | [`src/call.rs`](src/call.rs) | The private typed dispatch helper over `CoreRuntime::invoke` that every facade method uses. |
+ | [`src/config.rs`](src/config.rs), [`src/auth.rs`](src/auth.rs), [`src/core_agent.rs`](src/core_agent.rs) | The `Core` sub-facades: runtime flags, credentials (`Session`, `AuthState`), and the orchestrator turn. |
+ | [`src/memory.rs`](src/memory.rs) | `Memory`, the per-tenant memory facade returned by `Runtime::memory`. |
++| [`src/process.rs`](src/process.rs), [`src/process_sentry.rs`](src/process_sentry.rs) | Host lifecycle helpers: the agent-sized tokio runtime, logging init, dotenv and launch overrides, the master key, and (`crash-reporting`) the Sentry `ClientOptions` with the single `before_send` chain. |
++| [`src/artifacts.rs`](src/artifacts.rs), [`src/chat_surface.rs`](src/chat_surface.rs), [`src/identity.rs`](src/identity.rs), [`src/modules.rs`](src/modules.rs) | Curated host facades: artifact file resolution, the in-process web-chat event stream, the signed-in identity peek, bundled module releases. `config` also carries `load_or_init`, `load_config_with_timeout`, `default_root_openhuman_dir`, `read_active_user_id`. |
++| [`src/host_internals.rs`](src/host_internals.rs) | `__host` (doc-hidden): an explicit list of core modules for `openhuman-tinyhumans` and `openhuman-rpc` only. |
+ | [`src/error.rs`](src/error.rs) | `CoreError`, the error every facade call returns (`Domain`, `Unavailable`, `Rpc`, route refusals). |
| [`examples/`](examples/README.md) | Runnable programs: one turn on a harness, and two agents on one runtime. |
| [`tests/`](tests/README.md) | End-to-end suites against `wiremock` providers. |
diff --cc crates/openhuman-embed/src/runtime/README.md
index d2113a8ed0,34960334e2..2fc29e9885
--- a/crates/openhuman-embed/src/runtime/README.md
+++ b/crates/openhuman-embed/src/runtime/README.md
@@@ -63,24 -63,17 +63,24 @@@ releases `RUNTIME_LIVE`
| File | What it does |
| --- | --- |
- | `mod.rs` | `Runtime`, `RuntimeError`, `CoreGuard` and the `RUNTIME_LIVE` process slot. |
- | `builder.rs` | `RuntimeBuilder`, its knobs and `ConfigSource` (`Resolved`: embed hands the core a config; `Discovered`: the core loads the operator's install, as desktop/CLI/TUI do). |
- | `build.rs` | `RuntimeBuilder::build`: validation, config resolution, seam install, `CoreBuilder` boot; `apply_provider`, `effective_host_kind`. |
- | `presets.rs` | Host presets `library`/`desktop`/`cli`/`tui` and the library defaults `default_domains`, `default_services`. |
- | `seams.rs` | Process-global seams as builder options (`controller_extension`, `tool_ranker`, `post_turn_hook`, `tool_hook`, `server_launcher`, `live_policy`) and the guard that restores the restorable ones on drop. |
- | `run.rs` | `RuntimeBuilder::run_from_args` / `run_from_args`: install the builder's process-global pieces for the process, then run the core's CLI dispatcher. |
- | `api_key.rs` | `ApiKey`, a newtype over the TinyHumans key whose `Debug` does not print it. |
+ | [`mod.rs`](mod.rs) | `Runtime`, `RuntimeError`, `CoreGuard` and the `RUNTIME_LIVE` process slot. |
-| [`builder.rs`](builder.rs) | `RuntimeBuilder`, plus the helpers the harness reuses: `apply_provider`, `effective_host_kind`, `default_domains`, `default_services`. |
++| [`builder.rs`](builder.rs) | `RuntimeBuilder`, its knobs and `ConfigSource` (`Resolved`: embed hands the core a config; `Discovered`: the core loads the operator's install, as desktop/CLI/TUI do). |
++| [`build.rs`](build.rs) | `RuntimeBuilder::build`: validation, config resolution, seam install, `CoreBuilder` boot; `apply_provider`, `effective_host_kind`. |
++| [`presets.rs`](presets.rs) | Host presets `library`/`desktop`/`cli`/`tui` and the library defaults `default_domains`, `default_services`. |
++| [`seams.rs`](seams.rs) | Process-global seams as builder options (`controller_extension`, `tool_ranker`, `post_turn_hook`, `tool_hook`, `server_launcher`, `live_policy`) and the guard that restores the restorable ones on drop. |
++| [`run.rs`](run.rs) | `RuntimeBuilder::run_from_args` / `run_from_args`: install the builder's process-global pieces for the process, then run the core's CLI dispatcher. |
+ | [`api_key.rs`](api_key.rs) | `ApiKey`, a newtype over the TinyHumans key whose `Debug` does not print it. |
## Key types and entry points
- - `RuntimeBuilder` (`builder.rs`): `workspace`, `workspace_dir`,
-- `RuntimeBuilder` ([`builder.rs`](builder.rs)): `workspace`, `api_key`, `backend_url`,
++- `RuntimeBuilder` ([`builder.rs`](builder.rs)): `workspace`, `workspace_dir`,
+ `action_dir`, `config_source`, `api_key`, `backend_url`,
`backend_transport`, `memory_engine`, `session_store`, `provider`,
- `access`, `services`, `domains`, `tool_groups`, `host_kind`, `session`,
- `config`, then `build`.
+ `access`, `services`, `domains`, `tool_groups`, `host_kind`, `token`,
+ `listen` (`listen_host`, `listen_port`), `session`, `config`, the seam
- options (`seams.rs`), then `build` or `run_from_args`. Presets
- (`presets.rs`): `library()` (= `new()`), `desktop()`, `cli()`, `tui()`.
- - `Runtime` (`mod.rs`): `agent(spec)` builds an agent; `agent_ids()` lists
++ options ([`seams.rs`](seams.rs)), then `build` or `run_from_args`. Presets
++ ([`presets.rs`](presets.rs)): `library()` (= `new()`), `desktop()`, `cli()`, `tui()`.
+ - `Runtime` ([`mod.rs`](mod.rs)): `agent(spec)` builds an agent; `agent_ids()` lists
the live ones; `core()` returns the narrow `HarnessCore` (config, auth);
`memory(root)` returns one tenant's `memory::Memory`; `root_dir()` and
`workspace_dir()` give paths; `domains()`, `tool_groups()` and `services()`