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(integrations, modules): add README files for composio and registry
Steven Enamakele863cb402b71
diff --git a/crates/openhuman-core/src/integrations/composio/README.md b/crates/openhuman-core/src/integrations/composio/README.mdindex 76d685775f..beaefbd9e8 100644--- a/crates/openhuman-core/src/integrations/composio/README.md+++ b/crates/openhuman-core/src/integrations/composio/README.md@@ -142,7 +142,7 @@ Handlers delegate to `ops/`; scope handlers delegate to `ops::user_scopes`. Expo## Agent tools-From `tools.rs` (`all_composio_agent_tools`, registered only when `agent::subagent_host::user_is_signed_in_to_composio` is true): `composio_list_toolkits`, `composio_list_connections`, `composio_authorize`, `composio_connect` (inline OAuth approval card, #3993), `composio_list_tools`, `composio_execute`. Plus `ComposioActionTool` (one tool per action, spawned for `integrations_agent`, gated by `contract_gate.rs` on first call) and the direct-mode `ComposioTool` provider (`tools/direct.rs`). Scope elevation is deliberately NOT an agent tool, the user toggles it in the UI. Visibility/execution is gated by curated catalogs (`providers::` contract re-exports) + per-toolkit user-scope prefs and sandbox mode; unparseable slugs default to `Write` (fail-closed).+From `tools.rs` (`all_composio_agent_tools`, registered only when `agent::subagent_host::user_is_signed_in_to_composio` is true): `composio_list_toolkits`, `composio_list_connections`, `composio_authorize`, `composio_connect` (inline OAuth approval card, #3993), `composio_list_tools`, `composio_execute`. Plus `ComposioActionTool` (one tool per action, spawned for `integrations_agent`, gated by `contract_gate.rs` on first call) and the direct-mode `ComposioTool` provider (`tools/direct.rs`). Scope elevation is deliberately NOT an agent tool; the user toggles it in the UI. Visibility/execution is gated by curated catalogs (`providers::` contract re-exports) + per-toolkit user-scope prefs and sandbox mode; unparseable slugs default to `Write` (fail-closed).## Eventsdiff --git a/crates/openhuman-core/src/modules/registry/README.md b/crates/openhuman-core/src/modules/registry/README.mdindex 618796c849..e865b739ee 100644--- a/crates/openhuman-core/src/modules/registry/README.md+++ b/crates/openhuman-core/src/modules/registry/README.md@@ -1,65 +1,69 @@# modules/registry-The compiled-in table of every native module this build knows how to load.-The directory backs a single file, [`modules/registry.rs`](../registry.rs),-which is the only place allowed to say what counts as a legitimate module-artifact.+The compiled-in table of every module this build knows how to load, split+into one file per module family.-## Why a compiled-in table+## Why compiled in, not discovered-A loaded module is trusted native code sharing this process's address space,-privileges, and crash domain, and tinybus never unloads it once admitted. So-which modules may load, and which bytes count as legitimate, are build-time-decisions rather than something a server can hand down at runtime. There is-no module marketplace and no RPC method to register a new one: adding a-module here is a source change, reviewed like any other.+A loaded module is trusted native code running inside this process: it shares+the address space, the privileges, and the crash domain, and tinybus never+unloads it. Which modules may load, and which bytes count as a legitimate+copy of one, are therefore build-time decisions, not something a server could+hand the client at runtime. There is no module marketplace on purpose. A+registry a server could add entries to would be a remote-code-execution+surface with a download step attached.## Contents-Records are split one file per module family, by relatedness rather than by-line count:+Each `records_*.rs` file defines one or more `pub(crate) const ModuleRecord`+values for a family of related modules:-| File | Modules |-| --- | --- |-| `records_desktop.rs` | `tinydesktop` |-| `records_browser.rs` | `tinybrowser` |-| `records_search.rs` | `tinysearch` |-| `records_docs_wallet.rs` | `tinydocs`, `tinywallet` |-| `records_memory_juice.rs` | `tinymemory`, `tinyjuice` |-| `records_runtime.rs` | `tinyruntime`, `tinyruntime-nodejs`, `tinyruntime-python` |-| `records_mcp_connectors.rs` | `tinymcp`, `tinyconnectors` |-| `records_extra.rs` | `tinybox`, `tinychannels`, `tinyhosts` |-| `records_voice.rs` | `tinyvoice` |+- `records_browser.rs`: `TINYBROWSER`.+- `records_desktop.rs`: `TINYDESKTOP`.+- `records_docs_wallet.rs`: `TINYDOCS`, `TINYWALLET`.+- `records_extra.rs`: `TINYBOX`, `TINYCHANNELS`, `TINYHOSTS`.+- `records_mcp_connectors.rs`: `TINYCONNECTORS`, `TINYMCP`.+- `records_memory_juice.rs`: `TINYJUICE`, `TINYMEMORY`.+- `records_runtime.rs`: `TINYRUNTIME`, `TINYRUNTIME_NODEJS`, `TINYRUNTIME_PYTHON`.+- `records_search.rs`: `TINYSEARCH`.+- `records_voice.rs`: `TINYVOICE`.-`registry.rs` declares each file as a submodule, re-exports its `ModuleRecord`-constants, and wires them into `ALL` (the full list) and `find(id)` (lookup by-registry id). There is no `registry/mod.rs`: the parent file's name doubles as-the module declaration point, and the tests live beside it in-`registry_tests.rs`.+`../registry.rs` (one level up from this folder) wires all of them into the+`ALL` slice and answers `find(id)` by a linear scan.## Key types-Each record is a [`ModuleRecord`](../types.rs): a registry id, the release tag-it is pinned to, and a per-platform digest table (`ubuntu-24.04-x86_64`,-`macos-15-arm64`, and so on). `records_desktop.rs`'s `TINYDESKTOP` is-representative of the shape every other file repeats.+Both live in `../types.rs`, not in this folder:++- `ModuleRecord`: `id`, `description`, `bus_name`, `object_path`, `version`,+ `release_url`, a `&'static [PlatformAsset]` list of per-host artifacts, and+ a `LoadPolicy` (`Lazy`, loaded on first use, or `Eager`, loaded at boot).+- `PlatformAsset`: one published artifact per host, `host_key` (for example+ `ubuntu-24.04-x86_64`), the exact release `archive` name, and its lowercase+ hex SHA-256 `sha256` digest.++Every record in this folder pins one version and one digest per supported+host, taken verbatim from that release's own `checksum.toml`. tinybus fetches+the release's `checksum.toml` itself, compares it against the digest pinned+here, hashes the downloaded archive, and only then extracts and loads. The+digest in this folder is this host's half of that agreement: pinning it in+source is what makes the check auditable by reading this file against the+release page. A digest recomputed from a local build would agree with itself+no matter what a release actually served, which is why the module doc comment+on `../registry.rs` says not to do that.## How it fits-`registry::find(id)` is the first step of the loading pipeline described in-[`modules/README.md`](../README.md#loading-pipeline): a resolution request-looks up the record here before anything is downloaded, cached, or admitted.-The digests pinned in these files are the host's half of a two-sided check;-tinybus fetches the release's own `checksum.toml` and the two must agree.-Digests are copied verbatim from a published release, never recomputed from a-local build, since the point is to pin what the release publishes rather than-to agree with whatever happens to be on disk.+`ModuleRecord::id` is the stable identifier config, RPC, and+`ensure_loaded`/`ensure_language` use to name a module. `registry::find`+is the lookup every load path goes through before the ABI, manifest, and+dependency admission checks in `../host.rs` run.## Where next-- [`modules/README.md`](../README.md) for the loading pipeline these records- feed, and the security invariants around admitting a module.-- [`modules/types.rs`](../types.rs) for `ModuleRecord`, `PlatformAsset`, and- the other shared types.-- [`modules/platform.rs`](../platform.rs) for how a host's platform key is- matched against a record's per-platform digests.+- [`modules/README.md`](../README.md) for the full load path this registry+ feeds into (resolution order, download, digest check, `dlopen`).+- `../types.rs` for the `ModuleRecord` / `PlatformAsset` / `LoadPolicy`+ definitions this folder's records are built from.+- `../host.rs` for the broker that actually resolves, downloads, verifies,+ and loads a record this registry returns.