Skip to content

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

docs(rpc): update READMEs for the host facade and feature forwarding

Steven Enamakelc0cb6893324e
diff --git a/crates/openhuman-rpc/README.md b/crates/openhuman-rpc/README.md
index abfd5a0b9e..23cf7d2b5e 100644
--- a/crates/openhuman-rpc/README.md
+++ b/crates/openhuman-rpc/README.md
@@ -20,8 +20,9 @@ openhuman-core -> openhuman-embed -> openhuman-tinyhumans -> openhuman-rpc -> ap
Its only openhuman dependency is `openhuman-tinyhumans`. Core internals the
server needs come through embed's doc-hidden `__host` list (aliased
crate-privately as `core_host` in `src/lib.rs`); nothing here re-exports the
-core. Hosts get `openhuman_rpc::tinyhumans` (and through it
-`tinyhumans::embed`) as their configuration facade.
+core. Hosts get `openhuman_rpc::tinyhumans` and `openhuman_rpc::embed` (the
+same crate as `tinyhumans::embed`) as their curated facade, and this crate is
+the only OpenHuman crate they depend on (`scripts/ci/check-crate-chain.mjs`).
## How it works
@@ -156,21 +157,24 @@ The root workspace declares this crate with `default-features = false`, so
each consumer names what it needs. `openhuman-cli` enables `server`,
`openhuman-tui` enables `session-store` only (it runs the core without a
server), and `crates/openhuman-app/Cargo.toml`, outside the workspace,
-enables `http-client` and `server`.
+enables `http-client`, `server`, `jev` and the product gates. Each host also
+forwards its own feature gates here, 1:1, so `e2e-test-support` and every
+product gate reach the core through this crate.
## Consumers
- `crates/openhuman-app`: `core_process.rs` runs the embedded server
- (`run_server_embedded_with_ready`) and reads its `EmbeddedReadySignal`;
+ (`host::desktop`) and reads its `EmbeddedReadySignal`;
`core_rpc.rs` wraps `post_json_rpc` to reach the embedded core and
self-hosted runtimes (#3865); `session/link.rs` and `local_data_reset.rs`
build requests with `request_body` and decode with `decode_response`;
- `lib.rs` calls `install_cli_server` before `run_core_from_args`.
-- `crates/openhuman-cli`: `main.rs` calls `install_cli_server`; root
+ `lib.rs::run_core_from_args` calls `host::cli`; the rest of the shell uses
+ the `embed` and `tinyhumans` re-exports.
+- `crates/openhuman-cli`: `main.rs` calls `host::cli`; root
`tests/*.rs` suites (for example `json_rpc_e2e.rs`) build the router with
`build_core_http_router`.
- `crates/openhuman-tui`: `unwrap_rpc` is its decode point, and
- `runner.rs` calls `session_store::install()`.
+ `runner.rs` boots with `host::tui()`.
## Boundaries
diff --git a/crates/openhuman-rpc/src/session_store/README.md b/crates/openhuman-rpc/src/session_store/README.md
index 9c5bd89032..9142365a07 100644
--- a/crates/openhuman-rpc/src/session_store/README.md
+++ b/crates/openhuman-rpc/src/session_store/README.md
@@ -39,9 +39,8 @@ run-ledger rows a dead process left running are settled. The `run_server*`
shims in [`../server/`](../server/README.md) (and so `host::desktop`) call it
for the life of the process. `provider()` returns the same provider for a
runtime builder's `session_store` option, which installs it on build and
-restores the previous one on drop; `host::tui` uses that. The TUI itself
-still calls `install()` from `crates/openhuman-tui/src/runner.rs` until it
-moves to `host::tui`.
+restores the previous one on drop; `host::tui` uses that, and the TUI
+(`crates/openhuman-tui/src/runner.rs`) boots through `host::tui`.
`install()` builds the provider with `resolving(context_workspace_dir)`,
so the workspace is looked up on every `for_agent` call rather than fixed at