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(modules): document bus-backed blob streams and watches
Steven Enamakel8c01b6712f64
diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.mdindex 68b54a378e..7b88864764 100644--- a/crates/openhuman-core/src/modules/README.md+++ b/crates/openhuman-core/src/modules/README.md@@ -311,7 +311,7 @@ download, its `dlopen`, or its resident memory.| [`search/mod.rs`](search/mod.rs) | `tinysearch` | `module_config` from the host's resolved search policy, and `configured_tool_specs` computed synchronously from that same configuration. || [`search/proxy.rs`](search/proxy.rs) | `tinysearch` | Lazy load, private reinitialization on configuration change, and serialized `list_tools` / `execute_tool`; `refresh_loaded` after settings saves and credential changes. || [`tokenjuice_host.rs`](tokenjuice_host.rs) | `tinyjuice` | The reverse direction: an `MlHost` object the host serves at the contract's `ML_HOST_NAME` / `ML_HOST_PATH` for the module's tool-less summary model call. |-| [`storage_host.rs`](storage_host.rs), [`storage_host_linked.rs`](storage_host_linked.rs), [`storage_grants.rs`](storage_grants.rs), [`storage_import_tinymcp.rs`](storage_import_tinymcp.rs) | every module | The reverse direction for storage: serves `ai.tinyhumans.tinystorage.Storage` (objects `Documents`, `Streams`, `Blobs`, `Secrets` at `/ai/tinyhumans/tinystorage/<Object>`) from the installed storage backend. The caller is the broker-authenticated sender mapped to a registry module id; its scope is `module:<id>@<base>` (a profile's is `<profile>~module:<id>`, under the profile's lease fence); its authority is the `StorageGrant` the build declares for it (`storage_grants::declared`; `tinymcp`, `tinychannels`, `tinyconnectors`, `tinywallet`, `tinybox` and `tinyjuice` declare one in `storage_grant_<module>.rs`, any other module has no storage). The host alone runs `ensure_collection`. Every call is audited (module, scope, object, op, target, outcome; no payload). Blob streams and watches answer `unsupported` until a per-module stream and signal route exists (that needs tinybus's peer-bound `accept_stream_from` and unicast `emit_to`, which arrive with the tinybus 0.1.5 move, #7781). `storage_host_cdylib_tests.rs` proves the refusals (another module's collections, another scope, an undeclared collection, the inline blob cap, `PutStream`/`GetStream`/`WatchOpen`) against a real loaded cdylib, `tests/fixtures/storage_probe_module`, built on demand into `target/storage-probe` (or taken from `OPENHUMAN_STORAGE_PROBE_MODULE`). The objects are served by a *linked* module (`storage_host_linked.rs`, admitted with `attach_linked_with_config`) because the broker delivers the confidential `Secrets` route only to an attested recipient, which the host's own client connection is not. `storage_import_tinymcp.rs` is the one-time read-only import of tinymcp's legacy `mcp_clients.db` / `mcp_audit.db` into the module's scope, run before the module opens a data directory. The same shape (`storage_import_support.rs`: scope, host-only marker, write-if-absent) imports `tinyconnectors`' preference JSON files and trigger JSONL archive, `tinywallet`'s x402 `payments.jsonl`, `tinybox`'s jail `index.json` and `tinyjuice`'s `.tokenjuice/ccr` files (`storage_import_tinyconnectors.rs`, `_tinywallet.rs`, `_tinybox.rs`, `_tinyjuice.rs`), each once per directory from the host call that precedes the module's first use. |+| [`storage_host.rs`](storage_host.rs), [`storage_host_linked.rs`](storage_host_linked.rs), [`storage_grants.rs`](storage_grants.rs), [`storage_import_tinymcp.rs`](storage_import_tinymcp.rs) | every module | The reverse direction for storage: serves `ai.tinyhumans.tinystorage.Storage` (objects `Documents`, `Streams`, `Blobs`, `Secrets` at `/ai/tinyhumans/tinystorage/<Object>`) from the installed storage backend. The caller is the broker-authenticated sender mapped to a registry module id; its scope is `module:<id>@<base>` (a profile's is `<profile>~module:<id>`, under the profile's lease fence); its authority is the `StorageGrant` the build declares for it (`storage_grants::declared`; `tinymcp`, `tinychannels`, `tinyconnectors`, `tinywallet`, `tinybox` and `tinyjuice` declare one in `storage_grant_<module>.rs`, any other module has no storage). The host alone runs `ensure_collection`. Every call is audited (module, scope, object, op, target, outcome; no payload). Blobs over a bus stream (`PutStream`, `GetStream`, capped at 256 MiB per upload) and watches (`WatchOpen`) are served through `tinystoragedrivers-busproxy`, which binds them to the calling peer (an upload is read only from the peer that opened it with `accept_stream_from`, a download is opened toward the caller, and watch invalidations are unicast to the subscriber with `emit_to`); the host's `HostEndpoint` supplies the decisions and `StorageHost` relays each caller's watch signals from its own bound server. `storage_host_cdylib_tests.rs` proves against a real loaded cdylib, `tests/fixtures/storage_probe_module`, built on demand into `target/storage-probe` (or taken from `OPENHUMAN_STORAGE_PROBE_MODULE`): the refusals (another module's collections, another scope, an undeclared collection, the inline blob cap), a 20 MiB blob round trip by `PutStream`/`GetStream`, a watch signal reaching the subscriber and no other module, and a second module unable to read or take the first's blobs and streams. The objects are served by a *linked* module (`storage_host_linked.rs`, admitted with `attach_linked_with_config`) because the broker delivers the confidential `Secrets` route only to an attested recipient, which the host's own client connection is not. `storage_import_tinymcp.rs` is the one-time read-only import of tinymcp's legacy `mcp_clients.db` / `mcp_audit.db` into the module's scope, run before the module opens a data directory. The same shape (`storage_import_support.rs`: scope, host-only marker, write-if-absent) imports `tinyconnectors`' preference JSON files and trigger JSONL archive, `tinywallet`'s x402 `payments.jsonl`, `tinybox`'s jail `index.json` and `tinyjuice`'s `.tokenjuice/ccr` files (`storage_import_tinyconnectors.rs`, `_tinywallet.rs`, `_tinybox.rs`, `_tinyjuice.rs`), each once per directory from the host call that precedes the module's first use. |`tinybox.rs` supplies the pre-core gateway client.`channel_controller.rs` invokes TinyChannels' confidential controller member for