Skip to content

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

docs(crates): document the new crate-chain re-export rules

Steven Enamakel1b3ee512652a
diff --git a/crates/README.md b/crates/README.md
index 17bf152450..1e8adb8a59 100644
--- a/crates/README.md
+++ b/crates/README.md
@@ -58,8 +58,9 @@ The same edges as a list:
| `openhuman-app` | `openhuman-rpc` (`http-client`, `server`, `jev`, the product gates) |
[`scripts/ci/check-crate-chain.mjs`](../scripts/ci/check-crate-chain.mjs) (run by `pnpm rust:layout`) fails on any
-other edge, and on a host `src/` that names `__host`, `core_host` or
-`openhuman_core::`. The layers above embed reach core internals through
+other edge, on a host `src/` that names `__host`, `core_host` or
+`openhuman_core::`, and on a layer that re-exports the one below wholesale
+(`pub use openhuman_embed as …`) or lets `__host` out of rpc. The layers above embed reach core internals through
embed's doc-hidden `__host` list; the hosts use the curated facade re-exported
by rpc (`openhuman_rpc::embed`, `openhuman_rpc::tinyhumans`). Dev-dependencies
are exempt: `openhuman-cli`'s root tests and examples take the core, embed and
diff --git a/crates/openhuman-rpc/README.md b/crates/openhuman-rpc/README.md
index b51c062c94..ab507eb6d0 100644
--- a/crates/openhuman-rpc/README.md
+++ b/crates/openhuman-rpc/README.md
@@ -101,7 +101,7 @@ for the hosts that still call them:
| Path | What it does |
| --- | --- |
-| [`src/lib.rs`](src/lib.rs) | Module wiring and re-exports (`tinyhumans`, the client helpers, `unwrap_rpc`). |
+| [`src/lib.rs`](src/lib.rs) | Module wiring and curated re-exports (`tinyhumans` and `embed` item lists, the client helpers, `unwrap_rpc`). |
| [`src/host.rs`](src/host.rs) | `server` / `session-store` features: the shared host boot — `cli`, `desktop` / `serve_desktop`, `tui`, and the `*_builder` each starts from. |
| [`src/envelope.rs`](src/envelope.rs) | `RpcRequest`, `RpcSuccess`, `RpcFailure`, `RpcError`, `JSONRPC_VERSION`, `SERVER_ERROR_CODE`, and the client half: `request_body`, `decode_response`. |
| [`src/origin.rs`](src/origin.rs) | `is_origin_allowed_with_extra` and `ALLOWED_ORIGINS_ENV`: the browser-origin allowlist. Pure; the caller reads the environment. |