Skip to content

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

docs(readme): add module and runtime documentation

Steven Enamakele936bad9ef28
diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.md
index 5cb14ef489..547c740285 100644
--- a/crates/openhuman-core/src/modules/README.md
+++ b/crates/openhuman-core/src/modules/README.md
@@ -134,4 +134,5 @@ sandbox boundary. From `AGENTS.md`, do not weaken these:
`web3/wallet/chains/*` and `web3/x402` (`wallet.rs`),
`tools/impl/{document,presentation}` (`documents.rs`), `voice/` and
`inference/voice` (`voice.rs`), `integrations/composio/module_client.rs`
- (`connectors.rs`), and `inference/tokenjuice` (`tokenjuice_host.rs`).
+ (`connectors.rs`), and `inference/tokenjuice`, which `ensure_loaded`s
+ `tinyjuice` and is called back through `tokenjuice_host.rs`.
diff --git a/crates/openhuman-core/src/runtime/javascript/README.md b/crates/openhuman-core/src/runtime/javascript/README.md
index 0a4f2879b3..46c6f3832d 100644
--- a/crates/openhuman-core/src/runtime/javascript/README.md
+++ b/crates/openhuman-core/src/runtime/javascript/README.md
@@ -29,8 +29,11 @@ exist in every build:
`list_tools`, and the controller registry pair
`all_javascript_controller_schemas` / `all_javascript_registered_controllers`
(aliases of `all_runtime_node_controller_schemas` /
- `all_runtime_node_registered_controllers`). These only exist because their
- only consumers — the RPC bridge and `core/all.rs` — are gated off too.
+ `all_runtime_node_registered_controllers`). The controller pair only exists
+ with the feature on; the dispatcher behind `execute_tool` / `list_tools`
+ (`runtime::node::ops`) is itself always compiled because the ungated `flows`
+ `oh:` backend calls it directly — only this facade's alias is gated, since
+ its sole consumer here is the gated `runtime::node::rpc` bridge.
## Public surface
@@ -67,9 +70,10 @@ Handlers live in `runtime::node::rpc`, load config via
- `crates/openhuman-core/src/core/all.rs` — wires
`all_javascript_registered_controllers` into the controller registry.
-- `crates/openhuman-core/src/tools/ops.rs`,
- `tools/impl/system/{shell,node_exec,npm_exec}.rs` — import
- `crate::runtime::javascript::NodeBootstrap` for Node binary resolution.
+- `crates/openhuman-core/src/tools/ops.rs` — constructs the shared
+ `Arc<NodeBootstrap>` (only when `runtime-node` is on and `config.node.enabled`);
+ `tools/impl/system/{shell,node_exec,npm_exec}.rs` hold it for Node binary
+ resolution.
- `crates/openhuman-core/src/runtime/node/rpc.rs` — calls back into
`javascript::{list_tools, execute_tool}` through the facade alias.
diff --git a/tests/README.md b/tests/README.md
index ec1fa01ce9..bc3010a193 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -34,10 +34,13 @@ path = "../../tests/<name>.rs"
The same applies to `examples/*.rs` via `[[example]]`. Some targets carry
`required-features` (e.g. `observability_smoke` needs `crash-reporting`,
-`x402_twit_sh_live` needs `web3`, `json_rpc_e2e` needs voice-related features,
-`raw_coverage_all` has its own gate); `scripts/ci/list-feature-gated-rust-tests.mjs`
-enumerates them. Files under `tests/raw_coverage/` need no `[[test]]` entry —
-they ride in through `raw_coverage_all`.
+`x402_twit_sh_live` needs `web3`, `json_rpc_e2e` needs `voice`,
+`raw_coverage_all` needs `voice` and `inference`); all of those are off in the
+default contributor build, and a bare `cargo test` skips such targets silently
+(root `build.rs` emits a `cargo::warning` naming them).
+`scripts/ci/list-feature-gated-rust-tests.mjs` enumerates them. Files under
+`tests/raw_coverage/` need no `[[test]]` entry — they ride in through
+`raw_coverage_all`.
`pnpm rust:layout` (`scripts/ci/check-openhuman-rust-layout.mjs`, run in CI
Lite) fails the build on: