Skip to content

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

docs(crates): add relative links to crate READMEs

Steven Enamakeld8d7d43d9ba0
diff --git a/crates/README.md b/crates/README.md
index 15982745db..52c81b3427 100644
--- a/crates/README.md
+++ b/crates/README.md
@@ -22,7 +22,7 @@ with `--manifest-path crates/openhuman-app/Cargo.toml`.
## How they layer
Arrows point from a crate to what it depends on (normal `[dependencies]`,
-taken from each `Cargo.toml`).
+taken from each [`Cargo.toml`](../Cargo.toml)).
```text
openhuman-app openhuman-tui openhuman-cli (executables)
@@ -55,7 +55,7 @@ The same edges as a list:
| `openhuman-core` | none |
| `openhuman-embed` | `openhuman-core` |
| `openhuman-rpc` | `openhuman-core` |
-| `openhuman-tinyhumans` | `openhuman-embed`, `openhuman-core` (plus `vendor/tinyhumans-sdk`) |
+| `openhuman-tinyhumans` | `openhuman-embed`, `openhuman-core` (plus [`vendor/tinyhumans-sdk`](../vendor/tinyhumans-sdk/)) |
| `openhuman-cli` | `openhuman-core`, `openhuman-tinyhumans`, `openhuman-rpc` (`server`) |
| `openhuman-tui` | `openhuman-core`, `openhuman-rpc` (`session-store`), `openhuman-tinyhumans` |
| `openhuman-app` | `openhuman-core`, `openhuman-rpc` (`http-client`, `server`), `openhuman-tinyhumans` (`jev`) |
@@ -87,11 +87,11 @@ empty, and the core must not depend on `openhuman-rpc`.
## Features
Cargo default features define the contributor build;
-`scripts/ci/product-features.txt` defines the shipped product. A core gate is
+[`scripts/ci/product-features.txt`](../scripts/ci/product-features.txt) defines the shipped product. A core gate is
forwarded along the library chain (`openhuman-embed`, then
`openhuman-tinyhumans`, then `openhuman-cli`), and the desktop app, which
builds with `default-features = false`, forwards product gates explicitly.
-`scripts/ci/check-feature-forwarding.mjs` checks both.
+[`scripts/ci/check-feature-forwarding.mjs`](../scripts/ci/check-feature-forwarding.mjs) checks both.
## Build and test
diff --git a/crates/openhuman-app/README.md b/crates/openhuman-app/README.md
index 6c038cdb1d..3e09cd3ba0 100644
--- a/crates/openhuman-app/README.md
+++ b/crates/openhuman-app/README.md
@@ -3,7 +3,7 @@
The desktop host for OpenHuman on Windows, macOS and Linux. It is a thin Tauri
v2 application on Wry (WKWebView, WebView2, WebKitGTK) that links the Rust core
as a library and runs the core's HTTP/JSON-RPC server as a tokio task inside
-the GUI process. The React frontend in `app/` runs in the main webview and
+the GUI process. The React frontend in [`app/`](../../app/) runs in the main webview and
talks to that core over loopback HTTP. Everything else in this crate is
platform glue the webview cannot do on its own: windows and tray, deep links,
native notifications, global hotkeys, auto-update, login, and process
@@ -11,7 +11,7 @@ recovery.
Three names refer to this crate. The Cargo package is `openhuman-app`, the
library is `openhuman`, and the executable is `OpenHuman`. Only the package
-name follows the `crates/` layout; the library and binary names are shipped
+name follows the [`crates/`](../) layout; the library and binary names are shipped
identities.
For the user-facing tour of windows, tray and data flow, see
@@ -89,7 +89,7 @@ a backend transport (the core carries none of its own), then looks at
plugin panics there), the opener, `external_navigation`, deep-link,
notification, global-shortcut and updater plugins, and managed state for
hotkeys, the staged app update and the iMessage scanner registry.
-6. `setup()`: points the core at the installer's `bundled-modules/` resource
+6. `setup()`: points the core at the installer's [`bundled-modules/`](bundled-modules/) resource
directory, verifies `openhuman://` registration (Windows registry
read-back, Linux xdg-utils), drains deep links that arrived early, removes
a stale macOS LaunchAgent in debug builds, then creates the
@@ -164,67 +164,67 @@ Core lifecycle and RPC:
| Path | What it does |
| --- | --- |
-| `src/main.rs` | Binary entry. Installs the backend transport and routes `core`, `mcp` and GUI launches. |
-| `src/lib.rs` | `run()`, `run_core_from_args()`, most `#[tauri::command]`s, tray, menu, the `generate_handler!` list and the run-event loop. |
-| `src/core_process.rs` | `CoreProcessHandle`: start, restart, shut down the embedded server; stale-listener takeover; port-conflict recovery. |
-| `src/core_rpc.rs` | `relay_http_rpc`, `post_json_rpc`, and helpers for shell-side calls to the embedded core (`core_rpc_url_value`, `apply_auth`). |
-| `src/process_kill.rs` | Cross-platform TERM and force-kill helpers and the exit-time orphan sweep. |
-| `src/process_recovery.rs` | Finds and reaps OpenHuman processes left by hard exits. See [`src/process_recovery/`](src/process_recovery/README.md). |
-| `src/gateway/` | Routes the frontend to a core in a container, over SSH, or both (feature `gateways`). See [`src/gateway/`](src/gateway/README.md). |
-| `src/session/` | Login, logout and current user, via `openhuman-tinyhumans`. See [`src/session/`](src/session/README.md). |
+| [`src/main.rs`](src/main.rs) | Binary entry. Installs the backend transport and routes `core`, `mcp` and GUI launches. |
+| [`src/lib.rs`](src/lib.rs) | `run()`, `run_core_from_args()`, most `#[tauri::command]`s, tray, menu, the `generate_handler!` list and the run-event loop. |
+| [`src/core_process.rs`](src/core_process.rs) | `CoreProcessHandle`: start, restart, shut down the embedded server; stale-listener takeover; port-conflict recovery. |
+| [`src/core_rpc.rs`](src/core_rpc.rs) | `relay_http_rpc`, `post_json_rpc`, and helpers for shell-side calls to the embedded core (`core_rpc_url_value`, `apply_auth`). |
+| [`src/process_kill.rs`](src/process_kill.rs) | Cross-platform TERM and force-kill helpers and the exit-time orphan sweep. |
+| [`src/process_recovery.rs`](src/process_recovery.rs) | Finds and reaps OpenHuman processes left by hard exits. See [`src/process_recovery/`](src/process_recovery/README.md). |
+| [`src/gateway/`](src/gateway/) | Routes the frontend to a core in a container, over SSH, or both (feature `gateways`). See [`src/gateway/`](src/gateway/README.md). |
+| [`src/session/`](src/session/) | Login, logout and current user, via `openhuman-tinyhumans`. See [`src/session/`](src/session/README.md). |
Platform integration:
| Path | What it does |
| --- | --- |
-| `src/deep_link_ipc.rs` | Linux: a second launch forwards `openhuman://` URLs to the primary over a Unix socket; the primary emits `deep-link://new-url`. |
-| `src/deep_link_ipc_windows.rs` | Windows: the same over a named pipe. |
-| `src/deep_link_registration_check.rs` | Windows: reads back the `HKCU\Software\Classes\openhuman` registration and logs a redacted health report. |
-| `src/loopback_oauth.rs` | One-shot `http://127.0.0.1:<port>/auth` listener used as the RFC 8252 OAuth redirect; emits `loopback-oauth-callback`. |
-| `src/external_navigation.rs` | Plugin that cancels top-level `http(s)` navigation away from the app origin and opens the URL in the default browser. |
-| `src/native_notifications/` | Notification permission and delivery, real on macOS. See [`src/native_notifications/`](src/native_notifications/README.md). |
-| `src/imessage_scanner/` | macOS: reads `chat.db` and ingests conversations into memory. See [`src/imessage_scanner/`](src/imessage_scanner/README.md). |
-| `src/dictation_hotkeys.rs`, `src/ptt_hotkeys.rs` | Global shortcut parsing and state for dictation and push-to-talk. |
-| `src/ptt_overlay.rs` | Borderless always-on-top window for push-to-talk, rendering the `/ptt-overlay` route. |
-| `src/mascot_native_window.rs`, `src/notch_window.rs` | macOS: native NSPanel plus WKWebView hosts for the floating mascot and the notch activity pill. |
-| `src/window_state.rs` | Saves and restores main window position and size, with a DPI guard and work-area clamping. |
-| `src/directory_picker.rs` | Native folder chooser for the folder memory source. |
-| `src/workspace_paths.rs` | Open, reveal or preview a file, only after resolving it inside the active workspace. |
+| [`src/deep_link_ipc.rs`](src/deep_link_ipc.rs) | Linux: a second launch forwards `openhuman://` URLs to the primary over a Unix socket; the primary emits `deep-link://new-url`. |
+| [`src/deep_link_ipc_windows.rs`](src/deep_link_ipc_windows.rs) | Windows: the same over a named pipe. |
+| [`src/deep_link_registration_check.rs`](src/deep_link_registration_check.rs) | Windows: reads back the `HKCU\Software\Classes\openhuman` registration and logs a redacted health report. |
+| [`src/loopback_oauth.rs`](src/loopback_oauth.rs) | One-shot `http://127.0.0.1:<port>/auth` listener used as the RFC 8252 OAuth redirect; emits `loopback-oauth-callback`. |
+| [`src/external_navigation.rs`](src/external_navigation.rs) | Plugin that cancels top-level `http(s)` navigation away from the app origin and opens the URL in the default browser. |
+| [`src/native_notifications/`](src/native_notifications/) | Notification permission and delivery, real on macOS. See [`src/native_notifications/`](src/native_notifications/README.md). |
+| [`src/imessage_scanner/`](src/imessage_scanner/) | macOS: reads `chat.db` and ingests conversations into memory. See [`src/imessage_scanner/`](src/imessage_scanner/README.md). |
+| [`src/dictation_hotkeys.rs`](src/dictation_hotkeys.rs), [`src/ptt_hotkeys.rs`](src/ptt_hotkeys.rs) | Global shortcut parsing and state for dictation and push-to-talk. |
+| [`src/ptt_overlay.rs`](src/ptt_overlay.rs) | Borderless always-on-top window for push-to-talk, rendering the `/ptt-overlay` route. |
+| [`src/mascot_native_window.rs`](src/mascot_native_window.rs), [`src/notch_window.rs`](src/notch_window.rs) | macOS: native NSPanel plus WKWebView hosts for the floating mascot and the notch activity pill. |
+| [`src/window_state.rs`](src/window_state.rs) | Saves and restores main window position and size, with a DPI guard and work-area clamping. |
+| [`src/directory_picker.rs`](src/directory_picker.rs) | Native folder chooser for the folder memory source. |
+| [`src/workspace_paths.rs`](src/workspace_paths.rs) | Open, reveal or preview a file, only after resolving it inside the active workspace. |
Updates, reset and diagnostics:
| Path | What it does |
| --- | --- |
-| `src/app_update.rs` | Bounded retry policy for the updater download. The update commands themselves are in `lib.rs`. |
-| `src/local_data_reset.rs` | `reset_local_data`: asks the core which paths to remove, shuts the core down so its file handles close, removes the active user's local data, and starts the core again. |
-| `src/reset_reboot_schedule.rs` | Windows: schedules deletion at next reboot when files are locked during a reset. |
-| `src/file_logging.rs` | Resolves the data dir and calls `openhuman_core::core::logging::init_for_embedded`; `reveal_logs_folder`, `logs_folder_path`. |
-| `src/stderr_panic_hook.rs` | Stops a closed parent stderr pipe from turning log writes into panics. |
+| [`src/app_update.rs`](src/app_update.rs) | Bounded retry policy for the updater download. The update commands themselves are in `lib.rs`. |
+| [`src/local_data_reset.rs`](src/local_data_reset.rs) | `reset_local_data`: asks the core which paths to remove, shuts the core down so its file handles close, removes the active user's local data, and starts the core again. |
+| [`src/reset_reboot_schedule.rs`](src/reset_reboot_schedule.rs) | Windows: schedules deletion at next reboot when files are locked during a reset. |
+| [`src/file_logging.rs`](src/file_logging.rs) | Resolves the data dir and calls `openhuman_core::core::logging::init_for_embedded`; `reveal_logs_folder`, `logs_folder_path`. |
+| [`src/stderr_panic_hook.rs`](src/stderr_panic_hook.rs) | Stops a closed parent stderr pipe from turning log writes into panics. |
Other commands:
| Path | What it does |
| --- | --- |
-| `src/artifact_commands.rs` | Copies an agent artifact into the Downloads folder. |
-| `src/mcp_commands.rs` | Locates the `openhuman-core` binary and opens an MCP client's config file for the user. |
-| `src/claude_code.rs` | Opens a native terminal running `claude auth login` for the Claude Code provider. |
+| [`src/artifact_commands.rs`](src/artifact_commands.rs) | Copies an agent artifact into the Downloads folder. |
+| [`src/mcp_commands.rs`](src/mcp_commands.rs) | Locates the `openhuman-core` binary and opens an MCP client's config file for the user. |
+| [`src/claude_code.rs`](src/claude_code.rs) | Opens a native terminal running `claude auth login` for the Claude Code provider. |
Configuration and packaging:
| Path | What it does |
| --- | --- |
-| `tauri.conf.json` | Windows, bundle resources (agent prompts and `bundled-modules`), updater and installer settings. |
-| `capabilities/` | The capability granted to the `main` and `overlay` windows. See [`capabilities/`](capabilities/README.md). |
-| `permissions/` | App permission sets referenced by the capability. See [`permissions/`](permissions/README.md). |
-| `bundled-modules/` | Installer resource directory for native module releases. Empty in git (only `.gitkeep`; everything else is ignored). Release builds fill it with `scripts/release/stage-modules.mjs`, laid out as `<id>/<version>/<host_key>/<archive>`, and `setup()` hands it to `openhuman_core::modules::ops::set_bundled_releases_dir`. Its contents still pass the core's digest and TinyBus admission checks. On macOS, `scripts/release/macos-bundled-modules.sh` signs and checks it. |
-| `build.rs` | Runs `tauri_build`, and empties `bundle.resources` for non-release builds. |
-| `profiling/` | Standalone CPU and RAM profiler for a running app. See [`profiling/`](profiling/README.md). |
+| [`tauri.conf.json`](tauri.conf.json) | Windows, bundle resources (agent prompts and `bundled-modules`), updater and installer settings. |
+| [`capabilities/`](capabilities/) | The capability granted to the `main` and `overlay` windows. See [`capabilities/`](capabilities/README.md). |
+| [`permissions/`](permissions/) | App permission sets referenced by the capability. See [`permissions/`](permissions/README.md). |
+| [`bundled-modules/`](bundled-modules/) | Installer resource directory for native module releases. Empty in git (only `.gitkeep`; everything else is ignored). Release builds fill it with [`scripts/release/stage-modules.mjs`](../../scripts/release/stage-modules.mjs), laid out as `<id>/<version>/<host_key>/<archive>`, and `setup()` hands it to `openhuman_core::modules::ops::set_bundled_releases_dir`. Its contents still pass the core's digest and TinyBus admission checks. On macOS, [`scripts/release/macos-bundled-modules.sh`](../../scripts/release/macos-bundled-modules.sh) signs and checks it. |
+| [`build.rs`](build.rs) | Runs `tauri_build`, and empties `bundle.resources` for non-release builds. |
+| [`profiling/`](profiling/) | Standalone CPU and RAM profiler for a running app. See [`profiling/`](profiling/README.md). |
| `Info.plist`, `entitlements.sidecar.plist`, `nsis-hooks.nsh`, `main.desktop`, `postinst`, `postrm` | Platform packaging files for macOS, the Windows installer, and Linux packages. |
## IPC commands
The authoritative list is the `tauri::generate_handler!` call near the end of
-`run()` in `src/lib.rs`. Grouped:
+`run()` in [`src/lib.rs`](src/lib.rs). Grouped:
| Group | Commands |
| --- | --- |
@@ -252,15 +252,15 @@ Events the shell emits to the renderer include `auth://changed`,
- `openhuman::run()` (`src/lib.rs`) starts the GUI.
- `openhuman::run_core_from_args(args)` (`src/lib.rs`) runs the core CLI
in-process.
-- `CoreProcessHandle` (`src/core_process.rs`) is managed Tauri state for the
+- `CoreProcessHandle` ([`src/core_process.rs`](src/core_process.rs)) is managed Tauri state for the
embedded server: `ensure_running`, `restart`, `shutdown`,
`send_terminate_signal`, `rpc_url`, `rpc_token`, `port`.
- `active_rpc_endpoint` (`src/lib.rs`) is the single answer to "where does RPC
go"; the endpoint commands and the session link both call it.
-- `SessionHost` (`src/session/mod.rs`) is managed state wrapping the
+- `SessionHost` ([`src/session/mod.rs`](src/session/mod.rs)) is managed state wrapping the
`openhuman_tinyhumans::SessionManager`.
- `gateway::registry::current` and `gateway::registry::activate`
- (`src/gateway/registry.rs`) hold the active gateway.
+ ([`src/gateway/registry.rs`](src/gateway/registry.rs)) hold the active gateway.
## Building
@@ -279,8 +279,8 @@ default features are off, every product gate must be listed by hand:
`channels`, `media`, `inference`, `voice`, `web3`, `documents`, `modules`,
`flows`, `skills`, `mcp`, `crash-reporting`, `http-server`, `scheduler-gate`,
`file-logging`, `runtime-node`, `hosting`. A gate missing here disappears from
-the shipped app with no build error. `scripts/ci/check-feature-forwarding.mjs`
-compares the list with `scripts/ci/product-features.txt`, and `lib.rs` has two
+the shipped app with no build error. [`scripts/ci/check-feature-forwarding.mjs`](../../scripts/ci/check-feature-forwarding.mjs)
+compares the list with [`scripts/ci/product-features.txt`](../../scripts/ci/product-features.txt), and `lib.rs` has two
`const _: () = assert!(...)` guards (`VOICE_COMPILED_IN`,
`HTTP_SERVER_COMPILED_IN`) that fail the build if `voice` or `http-server` is
dropped.
@@ -290,7 +290,7 @@ embedded server and the relay), `openhuman-tinyhumans` with `jev` (backend
transport and the session owner), and the `tinybox-*` crates behind
`gateways`.
-The `[patch]` tables mirror the root `Cargo.toml` for `tinytools`, the
+The `[patch]` tables mirror the root [`Cargo.toml`](Cargo.toml) for `tinytools`, the
`tinyinference-*` crates, `tinyflows` and `tinychannels`. Keep them in sync:
drift makes Cargo resolve two copies of the same crate, and their types stop
being interchangeable (a shell `dyn Tool` would no longer be the core's).
@@ -304,21 +304,21 @@ These are shell-local and unrelated to the core feature forwarding above.
| Feature | Meaning |
| --- | --- |
-| `gateways` (default) | Compiles in `src/gateway/` and the `tinybox-*` crates. Off, the gateway commands are absent and `active_rpc_endpoint` always answers with the embedded core. |
+| `gateways` (default) | Compiles in [`src/gateway/`](src/gateway/) and the `tinybox-*` crates. Off, the gateway commands are absent and `active_rpc_endpoint` always answers with the embedded core. |
| `custom-protocol` | Serves the bundled `frontendDist` from `tauri://localhost` instead of the Vite `devUrl`. `cargo tauri build` turns it on; never add it to `default`. |
-| `e2e-test-support` | Forwards `openhuman_core/e2e-test-support` to expose `openhuman.test_reset`. The E2E build (`app/scripts/e2e-build.sh`) enables it. |
+| `e2e-test-support` | Forwards `openhuman_core/e2e-test-support` to expose `openhuman.test_reset`. The E2E build ([`app/scripts/e2e-build.sh`](../../app/scripts/e2e-build.sh)) enables it. |
## Boundaries
- Business rules, persistence, agents, memory and RPC methods belong to
- `crates/openhuman-core`. The shell orchestrates and presents; it does not
+ [`crates/openhuman-core`](../openhuman-core/). The shell orchestrates and presents; it does not
duplicate core policy.
-- The JSON-RPC server, envelopes and HTTP client live in `crates/openhuman-rpc`.
+- The JSON-RPC server, envelopes and HTTP client live in [`crates/openhuman-rpc`](../openhuman-rpc/).
- Login-token exchange, `/auth/me`, the user cache and the backend transport
- live in `crates/openhuman-tinyhumans`. The shell only exposes them as
+ live in [`crates/openhuman-tinyhumans`](../openhuman-tinyhumans/). The shell only exposes them as
commands and forwards events.
- Box provisioning, SSH reach and Docker confinement are implemented in the
- `vendor/tinybox` submodule (`tinyhumansai/tinybox`).
+ [`vendor/tinybox`](../../vendor/tinybox/) submodule (`tinyhumansai/tinybox`).
- No JavaScript injection into child webviews. New behavior goes into Rust IPC
hooks, and new Tauri plugins must be audited for `js_init_script`.
- The app runs on Wry. Do not reintroduce CEF or CDP-scanner assumptions. The
@@ -336,7 +336,7 @@ These are shell-local and unrelated to the core feature forwarding above.
`OPENHUMAN_CORE_RPC_URL`, even when a gateway is active. The session link
goes through `active_rpc_endpoint` and follows the gateway.
- Registering a command in `generate_handler!` is not enough. Because this
- crate defines app permissions in `permissions/`, Tauri enforces the ACL on
+ crate defines app permissions in [`permissions/`](permissions/), Tauri enforces the ACL on
app commands too, and the webview gets "not allowed. Command not found" for
any command no granted permission lists. Add every new command to a
permission file. At the time of writing several registered commands are in
@@ -351,13 +351,13 @@ These are shell-local and unrelated to the core feature forwarding above.
## Tests
Tests are `*_tests.rs` siblings of each module (and under
-`src/process_recovery/` and `src/native_notifications/macos/` for modules
+[`src/process_recovery/`](src/process_recovery/) and [`src/native_notifications/macos/`](src/native_notifications/macos/) for modules
defined inline). Run them directly, as CI does
-(`.github/workflows/test-reusable.yml`):
+([`.github/workflows/test-reusable.yml`](../../.github/workflows/test-reusable.yml)):
```bash
cargo test --manifest-path crates/openhuman-app/Cargo.toml
cargo test --manifest-path crates/openhuman-app/Cargo.toml gateway::
```
-Desktop E2E specs live under `app/test/e2e/specs/`.
+Desktop E2E specs live under [`app/test/e2e/specs/`](../../app/test/e2e/specs/).
diff --git a/crates/openhuman-app/capabilities/README.md b/crates/openhuman-app/capabilities/README.md
index f98839d008..10bb399885 100644
--- a/crates/openhuman-app/capabilities/README.md
+++ b/crates/openhuman-app/capabilities/README.md
@@ -1,8 +1,8 @@
# capabilities
Tauri v2 capability files. A capability says which windows may use which
-permissions. This directory has one, `default.json`, and `tauri_build` picks
-it up at build time (`build.rs` reruns when the directory changes).
+permissions. This directory has one, [`default.json`](default.json), and `tauri_build` picks
+it up at build time ([`build.rs`](../build.rs) reruns when the directory changes).
## default.json
@@ -27,7 +27,7 @@ The `$schema` field points at `../gen/schemas/desktop-schema.json`, which
- Granting a permission here does nothing for a command that no permission
file lists. App commands are ACL-checked, so a new command needs an entry in
- `permissions/` as well as in `generate_handler!`.
+ [`permissions/`](../permissions/) as well as in `generate_handler!`.
- The `overlay` label is listed, but no window uses it. The push-to-talk
overlay that `ptt_overlay.rs` creates is labeled `ptt-overlay`, which this
capability does not cover, so that window gets no permissions (event
diff --git a/crates/openhuman-app/permissions/README.md b/crates/openhuman-app/permissions/README.md
index 8bd6c05baf..c9ec126ea1 100644
--- a/crates/openhuman-app/permissions/README.md
+++ b/crates/openhuman-app/permissions/README.md
@@ -1,14 +1,14 @@
# permissions
Tauri v2 permission sets for the app's own commands (the ones registered in
-`generate_handler!` in `src/lib.rs`). Each `.toml` file defines one
+`generate_handler!` in [`src/lib.rs`](../src/lib.rs)). Each `.toml` file defines one
`[[permission]]` with an `identifier` and a `[permission.commands] allow`
list. The capability in [`../capabilities/default.json`](../capabilities/README.md)
grants all of them to the `main` and `overlay` windows by identifier.
## How it works
-`tauri_build::build()` (called from `build.rs`) reads this directory into the
+`tauri_build::build()` (called from [`build.rs`](../build.rs)) reads this directory into the
app's ACL manifest under the `__app-acl__` key; `build.rs` reruns when the
directory changes. Once that manifest exists, Tauri checks app commands
against it on every invoke, not only plugin commands. A command the webview
@@ -31,19 +31,19 @@ RuntimeAuthority::resolve_access
| File | Identifier | Commands |
| --- | --- | --- |
-| `allow-core-process.toml` | `allow-core-process` | Core endpoint and lifecycle (`core_rpc_*`, `relay_http_rpc`, `start_core_process`, `restart_core_process`, `reset_local_data`), app control (`restart_app`, `app_quit`), session (`get_active_user_id`, `auth_*`), dictation and push-to-talk hotkeys, `show_ptt_overlay`, `activate_main_window`, notch window, native notifications, and log folder commands. |
-| `allow-app-update.toml` | `allow-app-update` | `check_app_update`, `apply_app_update`, `download_app_update`, `install_app_update`. |
-| `allow-workspace-files.toml` | `allow-workspace-files` | `open_workspace_path`, `reveal_workspace_path`, `preview_workspace_text`. |
-| `allow-artifact-download.toml` | `allow-artifact-download` | `download_artifact_to_downloads`. |
+| [`allow-core-process.toml`](allow-core-process.toml) | `allow-core-process` | Core endpoint and lifecycle (`core_rpc_*`, `relay_http_rpc`, `start_core_process`, `restart_core_process`, `reset_local_data`), app control (`restart_app`, `app_quit`), session (`get_active_user_id`, `auth_*`), dictation and push-to-talk hotkeys, `show_ptt_overlay`, `activate_main_window`, notch window, native notifications, and log folder commands. |
+| [`allow-app-update.toml`](allow-app-update.toml) | `allow-app-update` | `check_app_update`, `apply_app_update`, `download_app_update`, `install_app_update`. |
+| [`allow-workspace-files.toml`](allow-workspace-files.toml) | `allow-workspace-files` | `open_workspace_path`, `reveal_workspace_path`, `preview_workspace_text`. |
+| [`allow-artifact-download.toml`](allow-artifact-download.toml) | `allow-artifact-download` | `download_artifact_to_downloads`. |
| `allow-artifact-save.toml` | `allow-artifact-save` | `save_artifact_via_dialog`. |
-| `allow-directory-picker.toml` | `allow-directory-picker` | `pick_directory_via_dialog`. |
-| `allow-loopback-oauth.toml` | `allow-loopback-oauth` | `start_loopback_oauth_listener`, `stop_loopback_oauth_listener`. Kept separate so a consumer of `allow-core-process` does not also get OAuth listener control. |
+| [`allow-directory-picker.toml`](allow-directory-picker.toml) | `allow-directory-picker` | `pick_directory_via_dialog`. |
+| [`allow-loopback-oauth.toml`](allow-loopback-oauth.toml) | `allow-loopback-oauth` | `start_loopback_oauth_listener`, `stop_loopback_oauth_listener`. Kept separate so a consumer of `allow-core-process` does not also get OAuth listener control. |
## Adding a command
-1. Register it in `generate_handler!` in `src/lib.rs`.
+1. Register it in `generate_handler!` in [`src/lib.rs`](../src/lib.rs).
2. Add its name to the `allow` list of the permission file that fits, or add
- a new file and reference its identifier from `capabilities/default.json`.
+ a new file and reference its identifier from [`capabilities/default.json`](../capabilities/default.json).
3. Rebuild. Step 2 is the one that is easy to miss: the build succeeds and the
call only fails at runtime.
diff --git a/crates/openhuman-app/profiling/README.md b/crates/openhuman-app/profiling/README.md
index 3373e1aa4d..8548a6ccd1 100644
--- a/crates/openhuman-app/profiling/README.md
+++ b/crates/openhuman-app/profiling/README.md
@@ -82,7 +82,7 @@ pnpm profile:tauri --pid <PID> --duration 15
| `--stacks`, `--no-stacks` | on for macOS | Turn the `/usr/bin/sample` capture on or off. |
For the smaller embedded-core-only Linux RSS and PSS benchmark, use the
-`rss-bench` binary in `crates/openhuman-cli`:
+`rss-bench` binary in [`crates/openhuman-cli`](../../openhuman-cli/):
```bash
cargo build --release -p openhuman-cli --features rss-bench --bin rss-bench
@@ -92,8 +92,8 @@ cargo build --release -p openhuman-cli --features rss-bench --bin rss-bench
| Path | What it does |
| --- | --- |
-| `Cargo.toml` | Standalone package with an empty `[workspace]` table. |
-| `src/main.rs` | Argument parsing, the sampling loop, process classification, report building, markdown rendering and stack parsing. |
+| [`Cargo.toml`](Cargo.toml) | Standalone package with an empty `[workspace]` table. |
+| [`src/main.rs`](src/main.rs) | Argument parsing, the sampling loop, process classification, report building, markdown rendering and stack parsing. |
## Gotchas
@@ -109,7 +109,7 @@ cargo build --release -p openhuman-cli --features rss-bench --bin rss-bench
## Tests
-`src/main_tests.rs` covers argument parsing, process classification and tree grouping, report building, and stack parsing.
+[`src/main_tests.rs`](src/main_tests.rs) covers argument parsing, process classification and tree grouping, report building, and stack parsing.
This crate is outside both the root workspace and the app crate, so run it on
its own:
diff --git a/crates/openhuman-app/src/gateway/README.md b/crates/openhuman-app/src/gateway/README.md
index dc7eacbebd..1252ed2dad 100644
--- a/crates/openhuman-app/src/gateway/README.md
+++ b/crates/openhuman-app/src/gateway/README.md
@@ -113,22 +113,22 @@ box.
| File | What it does |
| --- | --- |
-| `mod.rs` | Module declarations and the design notes. No re-exports. |
-| `types.rs` | `Gateway`, `GatewaySpec`, `Reach`, `SshReach`, `Confinement`, `ActiveGateway`, `GatewaySummary`, `GatewayStatus`, and `validate_remote_transport`. |
-| `store.rs` | Reads and writes `gateways.json` in the shell data dir (`file_logging::resolve_data_dir`). |
-| `ops.rs` | `activate` decides what a spec needs; `endpoint_of` answers for non-provisioning specs; `Provisioned` and its `tear_down`. |
-| `provision.rs` | The four tinybox steps, port selection and cleanup on failure. |
-| `registry.rs` | The active gateway, its held-open `Provisioned`, status and the activation lock. |
-| `commands.rs` | The Tauri commands. Each one resolves arguments and delegates to `store` or `registry`. |
+| [`mod.rs`](mod.rs) | Module declarations and the design notes. No re-exports. |
+| [`types.rs`](types.rs) | `Gateway`, `GatewaySpec`, `Reach`, `SshReach`, `Confinement`, `ActiveGateway`, `GatewaySummary`, `GatewayStatus`, and `validate_remote_transport`. |
+| [`store.rs`](store.rs) | Reads and writes `gateways.json` in the shell data dir (`file_logging::resolve_data_dir`). |
+| [`ops.rs`](ops.rs) | `activate` decides what a spec needs; `endpoint_of` answers for non-provisioning specs; `Provisioned` and its `tear_down`. |
+| [`provision.rs`](provision.rs) | The four tinybox steps, port selection and cleanup on failure. |
+| [`registry.rs`](registry.rs) | The active gateway, its held-open `Provisioned`, status and the activation lock. |
+| [`commands.rs`](commands.rs) | The Tauri commands. Each one resolves arguments and delegates to `store` or `registry`. |
## Key types and entry points
-- `GatewaySpec` (`types.rs`) is what the user configured.
+- `GatewaySpec` ([`types.rs`](types.rs)) is what the user configured.
- `ActiveGateway` (`types.rs`) is what activation produces: `id`, `rpc_url`,
optional `token`. It never leaves the shell.
- `GatewaySummary` (`types.rs`) is the credential-free view the renderer gets
from `gateway_list`: id, label and kind.
-- `registry::current` (`registry.rs`) is called by `active_rpc_endpoint` in
+- `registry::current` ([`registry.rs`](registry.rs)) is called by `active_rpc_endpoint` in
`lib.rs` on every endpoint lookup.
- `registry::activate` (`registry.rs`) is the only writer of the active state.
@@ -146,13 +146,13 @@ box.
## Boundaries
- Box lifecycle, SSH reach, Docker confinement and port forwarding are
- implemented in the `vendor/tinybox` submodule (`tinyhumansai/tinybox`,
+ implemented in the [`vendor/tinybox`](../../../../vendor/tinybox/) submodule (`tinyhumansai/tinybox`,
crates `tinybox-core`, `tinybox-host`, `tinybox-ssh`, `tinybox-docker`).
Fix behavior there, not here.
- The `openhuman-core serve` command, its bearer check and `/health` belong to
- the core and `crates/openhuman-rpc`.
+ the core and [`crates/openhuman-rpc`](../../../openhuman-rpc/).
- The frontend's gateway picker (`GatewaySection`) and its `coreMode` setting
- live in `app/src`.
+ live in [`app/src`](../../../../app/src/).
## Gotchas
@@ -172,8 +172,8 @@ box.
## Tests
-`ops_tests.rs`, `registry_tests.rs`, `store_tests.rs` and `types_tests.rs` sit
-in this directory and are declared from `mod.rs`.
+[`ops_tests.rs`](ops_tests.rs), [`registry_tests.rs`](registry_tests.rs), [`store_tests.rs`](store_tests.rs) and [`types_tests.rs`](types_tests.rs) sit
+in this directory and are declared from [`mod.rs`](mod.rs).
```bash
cargo test --manifest-path crates/openhuman-app/Cargo.toml gateway::
diff --git a/crates/openhuman-app/src/imessage_scanner/README.md b/crates/openhuman-app/src/imessage_scanner/README.md
index 49745d7acf..f94157338f 100644
--- a/crates/openhuman-app/src/imessage_scanner/README.md
+++ b/crates/openhuman-app/src/imessage_scanner/README.md
@@ -60,16 +60,16 @@ example memory turned off) counts as a failed group.
| File | What it does |
| --- | --- |
-| `mod.rs` | `ScannerRegistry`, the `run_scanner` loop, cursor I/O, the config gate, transcript formatting, date helpers, and `ingest_group`. |
-| `tick.rs` | `run_single_tick`, the body of one tick, behind the `TickDeps` trait so it can run against a real `chat.db` without Tauri. `HttpDeps` is the production implementation. |
-| `chatdb.rs` | Read-only SQLite access: `read_since` (rows after a cursor) and `read_chat_day` (one chat, one day). Opens with `SQLITE_OPEN_READ_ONLY`, so it never takes a write lock that could conflict with Messages. |
+| [`mod.rs`](mod.rs) | `ScannerRegistry`, the `run_scanner` loop, cursor I/O, the config gate, transcript formatting, date helpers, and `ingest_group`. |
+| [`tick.rs`](tick.rs) | `run_single_tick`, the body of one tick, behind the `TickDeps` trait so it can run against a real `chat.db` without Tauri. `HttpDeps` is the production implementation. |
+| [`chatdb.rs`](chatdb.rs) | Read-only SQLite access: `read_since` (rows after a cursor) and `read_chat_day` (one chat, one day). Opens with `SQLITE_OPEN_READ_ONLY`, so it never takes a write lock that could conflict with Messages. |
## Key types and entry points
-- `ScannerRegistry` (`mod.rs`): `new`, `ensure_scanner`, `shutdown`. The
+- `ScannerRegistry` ([`mod.rs`](mod.rs)): `new`, `ensure_scanner`, `shutdown`. The
registry tracks one task; the per-account shape mirrors the old webview
scanners.
-- `tick::run_single_tick` and `tick::TickDeps` (`tick.rs`): the testable unit.
+- `tick::run_single_tick` and `tick::TickDeps` ([`tick.rs`](tick.rs)): the testable unit.
- `tick::TickOutcome` (`tick.rs`): what a tick did, including
`skipped_unconnected` and `had_group_failure`.
@@ -95,7 +95,7 @@ example memory turned off) counts as a failed group.
## Tests
-`imessage_scanner_tests.rs` (declared from `mod.rs`) and `tick_tests.rs`
+[`imessage_scanner_tests.rs`](imessage_scanner_tests.rs) (declared from `mod.rs`) and [`tick_tests.rs`](tick_tests.rs)
(declared from `tick.rs`) build on macOS only. Two tests in `tick_tests.rs`
read the real `~/Library/Messages/chat.db` and are `#[ignore]`d; they need
Full Disk Access.
diff --git a/crates/openhuman-app/src/native_notifications/README.md b/crates/openhuman-app/src/native_notifications/README.md
index 429bd7c327..dc2455e434 100644
--- a/crates/openhuman-app/src/native_notifications/README.md
+++ b/crates/openhuman-app/src/native_notifications/README.md
@@ -53,8 +53,8 @@ plugin.
| Path | What it does |
| --- | --- |
-| `mod.rs` | The three commands and the inline `macos` submodule (`permission_state`, `request_permission`, `show`, bundle check, status mapping). |
-| `macos/native_notifications_tests.rs` | Tests for the inline `macos` submodule. The directory holds only this file because the submodule itself is defined inside `mod.rs`. |
+| [`mod.rs`](mod.rs) | The three commands and the inline `macos` submodule (`permission_state`, `request_permission`, `show`, bundle check, status mapping). |
+| [`macos/native_notifications_tests.rs`](macos/native_notifications_tests.rs) | Tests for the inline `macos` submodule. The directory holds only this file because the submodule itself is defined inside `mod.rs`. |
## Tauri commands
diff --git a/crates/openhuman-app/src/process_recovery/README.md b/crates/openhuman-app/src/process_recovery/README.md
index 3c313c077a..8e8872788a 100644
--- a/crates/openhuman-app/src/process_recovery/README.md
+++ b/crates/openhuman-app/src/process_recovery/README.md
@@ -1,7 +1,7 @@
# process_recovery
This directory holds only test files. The module itself is
-`src/process_recovery.rs`, which defines one inline submodule per platform:
+[`src/process_recovery.rs`](../process_recovery.rs), which defines one inline submodule per platform:
`imp` (macOS), `linux_imp` and `windows_imp`. Each submodule declares its tests
with `#[path = "..."]`, and Cargo resolves those paths relative to a directory
named after the parent module, which is this one.
@@ -55,15 +55,15 @@ launch.
| Path | Tests for |
| --- | --- |
-| `imp/process_recovery_macos_tests.rs` | `ps` parsing, bundle `argv0` extraction, self filtering, and the TERM-then-KILL sequence with a fake `ProcessKiller`. |
-| `linux_imp/process_recovery_linux_tests.rs` | Executable name matching and exclusion of the current process from the `/proc` scan. |
-| `windows_imp/process_recovery_windows_tests.rs` | WMIC parsing, subcommand and `--type=` detection, ancestor exclusion, and the WMIC/CIM fallback choice. |
+| [`imp/process_recovery_macos_tests.rs`](imp/process_recovery_macos_tests.rs) | `ps` parsing, bundle `argv0` extraction, self filtering, and the TERM-then-KILL sequence with a fake `ProcessKiller`. |
+| [`linux_imp/process_recovery_linux_tests.rs`](linux_imp/process_recovery_linux_tests.rs) | Executable name matching and exclusion of the current process from the `/proc` scan. |
+| [`windows_imp/process_recovery_windows_tests.rs`](windows_imp/process_recovery_windows_tests.rs) | WMIC parsing, subcommand and `--type=` detection, ancestor exclusion, and the WMIC/CIM fallback choice. |
## Boundaries
-- The TERM and force-kill primitives live in `src/process_kill.rs`.
+- The TERM and force-kill primitives live in [`src/process_kill.rs`](../process_kill.rs).
- Replacing a stale core that holds the RPC port is a separate path:
- `CoreProcessHandle::ensure_running` in `src/core_process.rs` probes the
+ `CoreProcessHandle::ensure_running` in [`src/core_process.rs`](../core_process.rs) probes the
listener and takes it over.
## Tests
diff --git a/crates/openhuman-app/src/session/README.md b/crates/openhuman-app/src/session/README.md
index 30f1f6843a..dc05c03ee1 100644
--- a/crates/openhuman-app/src/session/README.md
+++ b/crates/openhuman-app/src/session/README.md
@@ -2,7 +2,7 @@
The desktop shell's login glue. Login-token exchange, `GET /auth/me`, the
current-user cache and the credential handoff are implemented in
-`crates/openhuman-tinyhumans` (`SessionManager`). This module gives that
+[`crates/openhuman-tinyhumans`](../../../openhuman-tinyhumans/) (`SessionManager`). This module gives that
manager a link to the core, exposes it to the renderer as Tauri commands, and
forwards its change events to the renderer as Tauri events.
@@ -46,9 +46,9 @@ loopback), and decodes with `openhuman_rpc::decode_response`.
| File | What it does |
| --- | --- |
-| `mod.rs` | `SessionHost`, `install`, the event names, and `peek_user_id`. |
-| `link.rs` | `HttpCoreLink`, the `CoreLink` over the shell's RPC path. |
-| `commands.rs` | The `auth_*` Tauri commands, each a one-line delegate to the manager. |
+| [`mod.rs`](mod.rs) | `SessionHost`, `install`, the event names, and `peek_user_id`. |
+| [`link.rs`](link.rs) | `HttpCoreLink`, the `CoreLink` over the shell's RPC path. |
+| [`commands.rs`](commands.rs) | The `auth_*` Tauri commands, each a one-line delegate to the manager. |
## Tauri commands
@@ -66,7 +66,7 @@ stable `PREFIX:` so the frontend can classify it without parsing prose.
## Key types and entry points
-- `SessionHost` (`mod.rs`) is managed Tauri state holding
+- `SessionHost` ([`mod.rs`](mod.rs)) is managed Tauri state holding
`Arc<SessionManager<HttpCoreLink>>`.
- `install(app, desktop)` (`mod.rs`) is called once from `lib.rs`.
- `peek_user_id()` (`mod.rs`) returns the signed-in user id synchronously; the
@@ -76,7 +76,7 @@ stable `PREFIX:` so the frontend can classify it without parsing prose.
## Boundaries
- Auth endpoints, token validation, caching and identity live in
- `crates/openhuman-tinyhumans` (`openhuman_tinyhumans::session`). Changes to
+ [`crates/openhuman-tinyhumans`](../../../openhuman-tinyhumans/) (`openhuman_tinyhumans::session`). Changes to
login behavior belong there.
- Credential storage and what the core does with a credential (user-dir
activation, gated services) belong to the core
@@ -86,7 +86,7 @@ stable `PREFIX:` so the frontend can classify it without parsing prose.
## Tests
-`commands_tests.rs` covers the command delegates.
+[`commands_tests.rs`](commands_tests.rs) covers the command delegates.
```bash
cargo test --manifest-path crates/openhuman-app/Cargo.toml session::
diff --git a/crates/openhuman-cli/README.md b/crates/openhuman-cli/README.md
index f6157c2383..e9aaf75e96 100644
--- a/crates/openhuman-cli/README.md
+++ b/crates/openhuman-cli/README.md
@@ -2,7 +2,7 @@
This crate builds the `openhuman-core` binary, a handful of developer and
benchmark binaries, and every root `tests/*.rs` and `examples/*.rs` target in
-the repository. The core (`crates/openhuman-core`, package `openhuman`) is a
+the repository. The core ([`crates/openhuman-core`](../openhuman-core/), package `openhuman`) is a
library with no backend client and no JSON-RPC server, and it declares no
bin, test or example targets of its own. Anything that must run as a process
against the hosted backend, or test the core the way a host boots it, lives
@@ -37,7 +37,7 @@ JSON-RPC server that `run` and `serve` start.
### Startup of `openhuman-core`
-`src/main.rs` is short and runs in a fixed order:
+[`src/main.rs`](src/main.rs) is short and runs in a fixed order:
1. `restore_default_sigpipe()` resets `SIGPIPE` to the default on unix, so
piping output into `head` ends the process quietly instead of panicking
@@ -86,7 +86,7 @@ The banner goes to stderr so stdout stays clean JSON.
### Tests and examples are targets of this crate
-Cargo only auto-discovers `tests/` and `examples/` beside the manifest, and
+Cargo only auto-discovers [`tests/`](../../tests/) and [`examples/`](../../examples/) beside the manifest, and
the files live at the repository root. So the manifest turns discovery off
(`autotests = false`, `autoexamples = false`, `autobins = false`,
`autobenches = false`) and declares each target explicitly with a path back
@@ -100,17 +100,17 @@ required-features = ["voice"]
```
Every new `tests/<name>.rs` or `examples/<name>.rs` file needs such an entry.
-`pnpm rust:layout` (`scripts/ci/check-openhuman-rust-layout.mjs`) fails on a
+`pnpm rust:layout` ([`scripts/ci/check-openhuman-rust-layout.mjs`](../../scripts/ci/check-openhuman-rust-layout.mjs)) fails on a
missing or stale entry, and on any target table in the core manifest.
Two targets aggregate whole directories, so files there need no entry. The
-shared root `build.rs` (wired with `build = "../../build.rs"`) globs them into
+shared root [`build.rs`](../../build.rs) (wired with `build = "../../build.rs"`) globs them into
generated module lists:
-- `raw_coverage_all` (`tests/raw_coverage_all.rs`) includes every
+- `raw_coverage_all` ([`tests/raw_coverage_all.rs`](../../tests/raw_coverage_all.rs)) includes every
`tests/raw_coverage/*.rs` suite as a module. It needs `voice` and
`inference`.
-- `in_process_all` (`tests/in_process_all.rs`) includes every
+- `in_process_all` ([`tests/in_process_all.rs`](../../tests/in_process_all.rs)) includes every
`tests/in_process/*.rs` suite. These boot the core router in the test
process and are gate-free.
@@ -128,7 +128,7 @@ targets: `observability_smoke` (`crash-reporting`), `computer_bali_live_e2e`
(`media`).
In-process suites that reach the (mock) backend call
-`tinyhumans_boot::boot()` from `tests/support/tinyhumans_boot.rs` first, which
+`tinyhumans_boot::boot()` from [`tests/support/tinyhumans_boot.rs`](../../tests/support/tinyhumans_boot.rs) first, which
runs `openhuman_tinyhumans::install`. Without it every backend call answers
`BACKEND_UNAVAILABLE:`. Suites that spawn the `openhuman-core` binary get the
transport from `main.rs`.
@@ -137,8 +137,8 @@ transport from `main.rs`.
| Path | What it does |
| --- | --- |
-| `Cargo.toml` | All `[[bin]]`, `[[test]]` and `[[example]]` targets, feature forwarding. |
-| `src/main.rs` | The `openhuman-core` binary entry point described above. |
+| [`Cargo.toml`](Cargo.toml) | All `[[bin]]`, `[[test]]` and `[[example]]` targets, feature forwarding. |
+| [`src/main.rs`](src/main.rs) | The `openhuman-core` binary entry point described above. |
| [`src/bin/`](src/bin/README.md) | Developer and benchmark binaries: `test-mcp-stub`, `openhuman-fleet`, `rss-bench`, `library-profile`, `tool-search-bench`, `tool-dialect-bench`. |
| `../../tests/*.rs` | 27 `[[test]]` targets, including the two aggregators. See [`tests/README.md`](../../tests/README.md). |
| `../../examples/*.rs` | 2 `[[example]]` targets: `embed_headless` and `embed_kernel`. |
@@ -149,12 +149,12 @@ transport from `main.rs`.
| Target | Source | Required features |
| --- | --- | --- |
| `openhuman-core` | `src/main.rs` | none |
-| `test-mcp-stub` | `src/bin/test_mcp_stub.rs` | none |
-| `openhuman-fleet` | `src/bin/fleet.rs` | `http-server`, `bin-tools` |
-| `tool-search-bench` | `src/bin/tool_search_bench.rs` | none (`jev` for the Jev ranker) |
-| `tool-dialect-bench` | `src/bin/tool_dialect_bench.rs` | none |
-| `rss-bench` | `src/bin/rss_bench.rs` | `rss-bench` |
-| `library-profile` | `src/bin/library_profile/main.rs` | `rss-bench` (add `rss-bench-dhat` for heap profiles) |
+| `test-mcp-stub` | [`src/bin/test_mcp_stub.rs`](src/bin/test_mcp_stub.rs) | none |
+| `openhuman-fleet` | [`src/bin/fleet.rs`](src/bin/fleet.rs) | `http-server`, `bin-tools` |
+| `tool-search-bench` | [`src/bin/tool_search_bench.rs`](src/bin/tool_search_bench.rs) | none (`jev` for the Jev ranker) |
+| `tool-dialect-bench` | [`src/bin/tool_dialect_bench.rs`](src/bin/tool_dialect_bench.rs) | none |
+| `rss-bench` | [`src/bin/rss_bench.rs`](src/bin/rss_bench.rs) | `rss-bench` |
+| `library-profile` | [`src/bin/library_profile/main.rs`](src/bin/library_profile/main.rs) | `rss-bench` (add `rss-bench-dhat` for heap profiles) |
## Features
@@ -162,7 +162,7 @@ The default set mirrors the core's contributor default plus
`openhuman-tinyhumans/default` and `jev`. Every core gate (`http-server`,
`inference`, `voice`, `web3`, `channels`, `media`, `modules`, and the rest) is
forwarded to both `openhuman-core` and `openhuman-tinyhumans`, so the product
-lanes' feature list resolves here unchanged; `scripts/ci/check-feature-forwarding.mjs`
+lanes' feature list resolves here unchanged; [`scripts/ci/check-feature-forwarding.mjs`](../../scripts/ci/check-feature-forwarding.mjs)
checks the chain. `e2e-test-support` and `rss-bench` forward to the core only.
Gates local to this crate:
@@ -176,14 +176,14 @@ Gates local to this crate:
## Boundaries
- Subcommand parsing and dispatch live in the core
- (`crates/openhuman-core/src/core/cli.rs`, `core/agent_cli.rs`). New
+ ([`crates/openhuman-core/src/core/cli.rs`](../openhuman-core/src/core/cli.rs), `core/agent_cli.rs`). New
functionality is a controller registered in `core/all.rs`, reached through
the generic namespace dispatch, not a new branch in `cli.rs`.
- The JSON-RPC server, Socket.IO and the listener belong to
- `crates/openhuman-rpc`. The backend transport and login belong to
- `crates/openhuman-tinyhumans`.
-- The terminal UI is `crates/openhuman-tui`; the desktop host is
- `crates/openhuman-app`, which embeds the core directly and does not use
+ [`crates/openhuman-rpc`](../openhuman-rpc/). The backend transport and login belong to
+ [`crates/openhuman-tinyhumans`](../openhuman-tinyhumans/).
+- The terminal UI is [`crates/openhuman-tui`](../openhuman-tui/); the desktop host is
+ [`crates/openhuman-app`](../openhuman-app/), which embeds the core directly and does not use
this binary.
## Gotchas
@@ -191,7 +191,7 @@ Gates local to this crate:
- Sentry's `before_send` filters are defense in depth. The primary
suppression for each noise class lives at its emit site in the core; add
new filters there first.
-- The `[[test]]` comment block in `Cargo.toml` about product-gated targets
+- The `[[test]]` comment block in [`Cargo.toml`](Cargo.toml) about product-gated targets
still says autodiscovery stays on for the other targets. It does not:
`autotests = false`, and every target is declared.
- Do not export `CARGO_TARGET_DIR`; the repository already configures a
diff --git a/crates/openhuman-cli/src/bin/README.md b/crates/openhuman-cli/src/bin/README.md
index 93ad849ad7..3ffa8ec617 100644
--- a/crates/openhuman-cli/src/bin/README.md
+++ b/crates/openhuman-cli/src/bin/README.md
@@ -1,8 +1,8 @@
# bin
Auxiliary binaries declared as `[[bin]]` targets in
-`crates/openhuman-cli/Cargo.toml`, next to the primary `openhuman-core`
-binary (`src/main.rs`, described in the [crate README](../../README.md)). One
+[`crates/openhuman-cli/Cargo.toml`](../../Cargo.toml), next to the primary `openhuman-core`
+binary ([`src/main.rs`](../main.rs), described in the [crate README](../../README.md)). One
is a test fixture, one is an experimental multi-tenant supervisor, and the
rest are benchmarks. None of them ship in the desktop product.
@@ -14,12 +14,12 @@ failing to link:
| Binary | Source | Required features | Purpose |
| --- | --- | --- | --- |
-| `test-mcp-stub` | `test_mcp_stub.rs` | none | Minimal stdio MCP server that tests spawn. |
-| `openhuman-fleet` | `fleet.rs` | `http-server`, `bin-tools` | Process-per-user supervisor and reverse proxy. |
-| `tool-search-bench` | `tool_search_bench.rs` | none (`jev`, in `default`, for the Jev ranker) | Accuracy and cost of each `tool_search` ranker. |
-| `tool-dialect-bench` | `tool_dialect_bench.rs` | none | Manual A/B of text tool-call dialects against a local Ollama model. |
-| `rss-bench` | `rss_bench.rs` | `rss-bench` | Steady-state RSS of an embedded agent roster. |
-| `library-profile` | `library_profile/main.rs` | `rss-bench` (add `rss-bench-dhat` for heap profiles) | Hermetic library profiling scenarios. |
+| `test-mcp-stub` | [`test_mcp_stub.rs`](test_mcp_stub.rs) | none | Minimal stdio MCP server that tests spawn. |
+| `openhuman-fleet` | [`fleet.rs`](fleet.rs) | `http-server`, `bin-tools` | Process-per-user supervisor and reverse proxy. |
+| `tool-search-bench` | [`tool_search_bench.rs`](tool_search_bench.rs) | none (`jev`, in `default`, for the Jev ranker) | Accuracy and cost of each `tool_search` ranker. |
+| `tool-dialect-bench` | [`tool_dialect_bench.rs`](tool_dialect_bench.rs) | none | Manual A/B of text tool-call dialects against a local Ollama model. |
+| `rss-bench` | [`rss_bench.rs`](rss_bench.rs) | `rss-bench` | Steady-state RSS of an embedded agent roster. |
+| `library-profile` | [`library_profile/main.rs`](library_profile/main.rs) | `rss-bench` (add `rss-bench-dhat` for heap profiles) | Hermetic library profiling scenarios. |
`http-server` and `jev` are in `default`; `bin-tools`, `rss-bench` and
`rss-bench-dhat` are not. A plain `cargo build -p openhuman-cli` therefore
@@ -33,10 +33,10 @@ for one `echo` tool, over newline-delimited JSON-RPC on stdin and stdout, and
exits when stdin closes. `initialize` reports `PROTOCOL_VERSION`
(`2025-11-25`). It depends on nothing beyond `serde_json`. Tests spawn it
through `env!("CARGO_BIN_EXE_test-mcp-stub")`, which makes Cargo build it for
-every test run: `tests/mcp_registry_e2e.rs`,
-`tests/mcp_registry_multi_server.rs`, `tests/agent_harness_e2e.rs`,
-`tests/json_rpc_e2e.rs`, `tests/in_process/domain_modules_e2e.rs` and
-`tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs`.
+every test run: [`tests/mcp_registry_e2e.rs`](../../../../tests/mcp_registry_e2e.rs),
+[`tests/mcp_registry_multi_server.rs`](../../../../tests/mcp_registry_multi_server.rs), [`tests/agent_harness_e2e.rs`](../../../../tests/agent_harness_e2e.rs),
+[`tests/json_rpc_e2e.rs`](../../../../tests/json_rpc_e2e.rs), [`tests/in_process/domain_modules_e2e.rs`](../../../../tests/in_process/domain_modules_e2e.rs) and
+[`tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs`](../../../../tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs).
### openhuman-fleet
@@ -88,7 +88,7 @@ intent. The catalogue is real: every tool the orchestrator session registers
(built as a session builds it, in a temp workspace), plus the recorded
Composio catalogues under `tests/fixtures/composio_*.json` (about 1,000
actions across nine toolkits) as deferred per-action tools. The intents are
-`tests/fixtures/tool_search/intents.jsonl`, each labelled with the tool it
+[`tests/fixtures/tool_search/intents.jsonl`](../../../../tests/fixtures/tool_search/intents.jsonl), each labelled with the tool it
should reach, or `none`.
Rankers: `bm25` (`tinytools::Bm25Ranker`, the harness fallback), `overlap`
@@ -159,9 +159,9 @@ cargo build --release -p openhuman-cli --features rss-bench --bin rss-bench
Hermetic, Rust-only profiling workloads that run production code paths in
fresh processes, with network inference replaced by a deterministic provider
-(`library_profile/mock.rs`). `harness.rs` holds the measurement plumbing and
+([`library_profile/mock.rs`](library_profile/mock.rs)). `harness.rs` holds the measurement plumbing and
the pinned output schema (`harness::ProfileResult`). Each scenario is a
-module under `library_profile/scenarios/`, selected as
+module under [`library_profile/scenarios/`](library_profile/scenarios/), selected as
`library-profile <scenario>`:
| Scenario | Measures |
@@ -185,10 +185,10 @@ The `memory-ingest` and `cold-phases` scenarios went away with the in-process
memory engine (openhuman#6161). Bringing them back means measuring the memory
module over the bus, which is a different scenario (see `scenarios/mod.rs`).
-The driver scripts under `scripts/profile/` build it with
+The driver scripts under [`scripts/profile/`](../../../../scripts/profile/) build it with
`cargo build --release --features rss-bench --bin library-profile`
(`library-heap.sh` uses `--features rss-bench-dhat`). The slim recipe from
-`docs/library-benchmarking.md` (`library-bench.sh --slim`) builds both
+[`docs/library-benchmarking.md`](../../../../docs/library-benchmarking.md) (`library-bench.sh --slim`) builds both
benchmark binaries without the contributor defaults:
```bash
@@ -198,19 +198,19 @@ cargo build --release -p openhuman-cli --no-default-features --features rss-benc
## Boundaries
-- The `openhuman-core` entry point is `src/main.rs`, one directory up, not
+- The `openhuman-core` entry point is [`src/main.rs`](../main.rs), one directory up, not
here.
-- Profiling drivers and result handling live in `scripts/profile/`; the
+- Profiling drivers and result handling live in [`scripts/profile/`](../../../../scripts/profile/); the
pure RSS sampling code lives in the core (`platform::proc_metrics`).
- The rankers being measured live elsewhere: BM25 and the `ToolRanker` trait
in `tinytools`, overlap ranking in `tinyagents-harness`, the Jev ranker in
- `crates/openhuman-tinyhumans/src/jev/`.
+ [`crates/openhuman-tinyhumans/src/jev/`](../../../openhuman-tinyhumans/src/jev/).
## Gotchas
- The manifest sets `autobins = false`, so a `.rs` file in this directory is
a binary only when it has a `[[bin]]` entry. That is what lets
- `fleet_tests.rs` and `rss_bench_tests.rs` sit here beside their binaries
+ [`fleet_tests.rs`](fleet_tests.rs) and [`rss_bench_tests.rs`](rss_bench_tests.rs) sit here beside their binaries
without Cargo trying to build them as executables. A new binary needs both
the file and the manifest entry.
- `tool-search-bench`'s `jev` row and `tool-dialect-bench` make real network
@@ -218,9 +218,9 @@ cargo build --release -p openhuman-cli --no-default-features --features rss-benc
## Tests
-`fleet_tests.rs` (port assignment, user scoping, provisioning, bearer parsing) and
-`rss_bench_tests.rs` sit beside their binaries, and
-`library_profile/scenarios/` has `fleet_tests.rs` and
+[`fleet_tests.rs`](fleet_tests.rs) (port assignment, user scoping, provisioning, bearer parsing) and
+[`rss_bench_tests.rs`](rss_bench_tests.rs) sit beside their binaries, and
+[`library_profile/scenarios/`](library_profile/scenarios/) has `fleet_tests.rs` and
`subagent_storm_tests.rs`. They build with the binary's required features.
`test-mcp-stub` is exercised by the MCP suites listed above.
diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.md
index f0c69cb919..21538a11c6 100644
--- a/crates/openhuman-embed/README.md
+++ b/crates/openhuman-embed/README.md
@@ -70,7 +70,7 @@ agent id, so a turn only resumes its own agent's thread.
The second entry point is `Core`, for a host that built a `CoreRuntime` with
`CoreBuilder` itself. `Core::from_runtime` wraps it and exposes typed
sub-facades (`config()`, `auth()`, `agent()`). These go through
-`CoreRuntime::invoke` (the private `call` helper in `src/call.rs`), so they
+`CoreRuntime::invoke` (the private `call` helper in [`src/call.rs`](src/call.rs)), so they
honour `DomainSet` gating and absorb the variable `{result, logs}` envelope
that controllers emit. `CoreAgent` runs the runtime's orchestrator over the
`inference.agent_chat` RPC. `Core::raw()` is the escape hatch for a call the
@@ -375,38 +375,38 @@ agent to another. See [`src/agent/README.md`](src/agent/README.md).
| Path | What it does |
| --- | --- |
-| `src/lib.rs` | Re-exports (core runtime types, `Tool`, `ToolGroups`, the backend port, `session_store`, `agent_progress`) and `Core`, the typed facade over a caller-built `CoreRuntime`. |
+| [`src/lib.rs`](src/lib.rs) | Re-exports (core runtime types, `Tool`, `ToolGroups`, the backend port, `session_store`, `agent_progress`) and `Core`, the typed facade over a caller-built `CoreRuntime`. |
| [`src/runtime/`](src/runtime/README.md) | `Runtime`, `RuntimeBuilder`, `ApiKey`, and the `CoreGuard` that owns process-scoped state until the last handle drops. |
| [`src/agent/`](src/agent/README.md) | `Agent`, `AgentSpec`, `AgentDefinitionSpec`, `AgentLayout`, `MemoryBinding`, the build step, and permanent tool attachments. |
| [`src/harness/`](src/harness/README.md) | `Harness` and `HarnessBuilder`, plus the shared input types: `Access`, `Provider`, `Workspace`, `McpServer`, skill copying, `HarnessError`. |
-| `src/turn.rs` | `Turn`, `TurnRequest`, `TurnOutcome`, `Route`: one turn, its ambient scopes, and its dispatch to an agent or to the orchestrator. |
-| `src/call.rs` | The private typed dispatch helper over `CoreRuntime::invoke` that every facade method uses. |
-| `src/config.rs`, `src/auth.rs`, `src/core_agent.rs` | The `Core` sub-facades: runtime flags, credentials (`Session`, `AuthState`), and the orchestrator turn. |
-| `src/memory.rs` | `Memory`, the per-tenant memory facade returned by `Runtime::memory`. |
-| `src/error.rs` | `CoreError`, the error every facade call returns (`Domain`, `Unavailable`, `Rpc`, route refusals). |
+| [`src/turn.rs`](src/turn.rs) | `Turn`, `TurnRequest`, `TurnOutcome`, `Route`: one turn, its ambient scopes, and its dispatch to an agent or to the orchestrator. |
+| [`src/call.rs`](src/call.rs) | The private typed dispatch helper over `CoreRuntime::invoke` that every facade method uses. |
+| [`src/config.rs`](src/config.rs), [`src/auth.rs`](src/auth.rs), [`src/core_agent.rs`](src/core_agent.rs) | The `Core` sub-facades: runtime flags, credentials (`Session`, `AuthState`), and the orchestrator turn. |
+| [`src/memory.rs`](src/memory.rs) | `Memory`, the per-tenant memory facade returned by `Runtime::memory`. |
+| [`src/error.rs`](src/error.rs) | `CoreError`, the error every facade call returns (`Domain`, `Unavailable`, `Rpc`, route refusals). |
| [`examples/`](examples/README.md) | Runnable programs: one turn on a harness, and two agents on one runtime. |
| [`tests/`](tests/README.md) | End-to-end suites against `wiremock` providers. |
## Key types and entry points
-- `Runtime` and `RuntimeBuilder` (`src/runtime/`): build once per process,
+- `Runtime` and `RuntimeBuilder` ([`src/runtime/`](src/runtime/)): build once per process,
then call `Runtime::agent`. `Runtime::core()` gives non-turn access
(config, auth) without exposing a way to start a turn.
-- `AgentSpec` (`src/agent/spec.rs`): the pure-data description of an agent.
+- `AgentSpec` ([`src/agent/spec.rs`](src/agent/spec.rs)): the pure-data description of an agent.
Ids must match `^[a-z0-9][a-z0-9_-]{0,63}$`.
-- `Agent` (`src/agent/mod.rs`): a cheap clone handle. `run`, `turn`,
+- `Agent` ([`src/agent/mod.rs`](src/agent/mod.rs)): a cheap clone handle. `run`, `turn`,
`attach_tools`, and path accessors (`action_dir`, `home_dir`,
`skills_dir`, `transcripts_dir`).
-- `Turn` and `TurnOutcome` (`src/turn.rs`): configure, then `send`.
-- `Access` (`src/harness/access.rs`): the autonomy tier and turn origin,
+- `Turn` and `TurnOutcome` ([`src/turn.rs`](src/turn.rs)): configure, then `send`.
+- `Access` ([`src/harness/access.rs`](src/harness/access.rs)): the autonomy tier and turn origin,
always set together. Presets are `readonly`, `supervised` (the default)
and `full`.
-- `Provider` (`src/harness/provider.rs`): `openai_compatible(base_url, key)`
+- `Provider` ([`src/harness/provider.rs`](src/harness/provider.rs)): `openai_compatible(base_url, key)`
plus `model`, or `inherit()` for the machine's configured inference.
-- `Workspace` (`src/harness/workspace.rs`): `Ephemeral` (default), `Dir`,
+- `Workspace` ([`src/harness/workspace.rs`](src/harness/workspace.rs)): `Ephemeral` (default), `Dir`,
`Stateless`, or `Inherit`.
-- `Harness` (`src/harness/mod.rs`): one runtime, one agent.
-- `Core` (`src/lib.rs`): the typed facade over a caller-built runtime.
+- `Harness` ([`src/harness/mod.rs`](src/harness/mod.rs)): one runtime, one agent.
+- `Core` ([`src/lib.rs`](src/lib.rs)): the typed facade over a caller-built runtime.
## Feature flags
@@ -416,7 +416,7 @@ Every feature is a pass-through to the same-named feature on
`flows`, `skills`, `mcp`, `crash-reporting`, `channels`, `whatsapp-web`,
`file-logging` and `scheduler-gate`. A gate added to the core has to be
forwarded here (and then by `openhuman-tinyhumans` and `openhuman-cli`);
-`scripts/ci/check-feature-forwarding.mjs` checks the chain.
+[`scripts/ci/check-feature-forwarding.mjs`](../../scripts/ci/check-feature-forwarding.mjs) checks the chain.
Two features also gate this crate's own surface. `mcp` adds `HttpHeader`,
`McpAuthConfig`, `McpServer`, `AgentSpec::mcp` and `HarnessBuilder::mcp`.
@@ -439,10 +439,10 @@ has the resulting binary sizes and per-agent memory.
- No backend client. The hosted transport, product identity, login-token
exchange and `/auth/me` live in `openhuman-tinyhumans`.
- The agent loop, transcripts, session identity and tool-call parsing belong
- to `vendor/tinyagents` (repo `tinyhumansai/tinyagents`); the `Tool` trait
+ to [`vendor/tinyagents`](../../vendor/tinyagents/) (repo `tinyhumansai/tinyagents`); the `Tool` trait
belongs to its nested `tinytools`. Use the `Tool` re-exported here: a
separately added `tinytools` builds an incompatible type.
-- Memory contracts come from `vendor/tinymemory` (`tinymemory-api`).
+- Memory contracts come from [`vendor/tinymemory`](../../vendor/tinymemory/) (`tinymemory-api`).
## Gotchas
@@ -505,7 +505,7 @@ cargo test -p openhuman-embed --features inference,mcp,skills
cargo test -p openhuman-embed --features inference,mcp,skills --test runtime_agents
```
-The repository-root `examples/embed_headless.rs` and `examples/embed_kernel.rs`
+The repository-root [`examples/embed_headless.rs`](../../examples/embed_headless.rs) and [`examples/embed_kernel.rs`](../../examples/embed_kernel.rs)
drive `CoreBuilder` directly, without this crate. They are `[[example]]`
targets of `openhuman-cli`:
`cargo run -p openhuman-cli --example embed_headless`.
diff --git a/crates/openhuman-embed/examples/README.md b/crates/openhuman-embed/examples/README.md
index 82f1257f0a..f0fe6ed086 100644
--- a/crates/openhuman-embed/examples/README.md
+++ b/crates/openhuman-embed/examples/README.md
@@ -55,6 +55,6 @@ real host would build with `openhuman_tinyhumans::RuntimeBuilder` instead.
These programs make real network calls to the endpoint you configure. The
tests in [`../tests/`](../tests/README.md) cover the same paths against mocks.
-The repository-root `examples/embed_headless.rs` and `examples/embed_kernel.rs`
+The repository-root [`examples/embed_headless.rs`](../../../examples/embed_headless.rs) and [`examples/embed_kernel.rs`](../../../examples/embed_kernel.rs)
use `CoreBuilder` directly, without this crate; run them with
`cargo run -p openhuman-cli --example embed_headless`.
diff --git a/crates/openhuman-embed/src/agent/README.md b/crates/openhuman-embed/src/agent/README.md
index 355482a90d..182dfaaefb 100644
--- a/crates/openhuman-embed/src/agent/README.md
+++ b/crates/openhuman-embed/src/agent/README.md
@@ -66,16 +66,16 @@ directories; transcripts and memory persist with the workspace.
| File | What it does |
| --- | --- |
-| `mod.rs` | `Agent`, the cheap clone handle (`run`, `turn`, `id`, `action_dir`, `workspace_dir`, `home_dir`, `skills_dir`, `transcripts_dir`, `provider`, `access`, `config`), the shared `AgentInner`, and `AgentError`. |
-| `spec.rs` | `AgentSpec`, the builder a host fills in, and `MemoryBinding`. |
-| `definition.rs` | `AgentDefinitionSpec`, `ToolScopeSpec` and `SandboxModeSpec`: a small re-spelling of the core's `AgentDefinition`. |
-| `layout.rs` | `AgentLayout`: where one agent's home, skills, transcripts and `action_dir` live. |
-| `build.rs` | `instantiate`, plus `check_domains_narrow` and `check_tool_groups_narrow`. |
-| `attachments.rs` | `Agent::attach_tools`, `runtime_id`, `same_agent`, `ToolAttachmentError`, and the policy that composes attached sources with the agent's own. |
+| [`mod.rs`](mod.rs) | `Agent`, the cheap clone handle (`run`, `turn`, `id`, `action_dir`, `workspace_dir`, `home_dir`, `skills_dir`, `transcripts_dir`, `provider`, `access`, `config`), the shared `AgentInner`, and `AgentError`. |
+| [`spec.rs`](spec.rs) | `AgentSpec`, the builder a host fills in, and `MemoryBinding`. |
+| [`definition.rs`](definition.rs) | `AgentDefinitionSpec`, `ToolScopeSpec` and `SandboxModeSpec`: a small re-spelling of the core's `AgentDefinition`. |
+| [`layout.rs`](layout.rs) | `AgentLayout`: where one agent's home, skills, transcripts and `action_dir` live. |
+| [`build.rs`](build.rs) | `instantiate`, plus `check_domains_narrow` and `check_tool_groups_narrow`. |
+| [`attachments.rs`](attachments.rs) | `Agent::attach_tools`, `runtime_id`, `same_agent`, `ToolAttachmentError`, and the policy that composes attached sources with the agent's own. |
## Key types
-- `AgentSpec` (`spec.rs`): the description. `system_prompt` and `definition`
+- `AgentSpec` ([`spec.rs`](spec.rs)): the description. `system_prompt` and `definition`
set what the agent is; `provider`, `model` and `access` set where it runs
and with what authority; `tool_groups` and `domains` narrow its surface;
`mcp` and `skills_dir` add servers and skills; `include_user_skills(true)`
@@ -83,7 +83,7 @@ directories; transcripts and memory persist with the workspace.
`action_dir` and `trust` set its filesystem reach; `composio` pins its own
Composio key and entity; `memory` binds its memory; `config` is the escape
hatch; `tools` is the per-turn tool factory.
-- `AgentDefinitionSpec` (`definition.rs`): the default is the built-in
+- `AgentDefinitionSpec` ([`definition.rs`](definition.rs)): the default is the built-in
orchestrator's definition under the agent's own id, except that every
registered tool is visible (`ToolScopeSpec::Wildcard`). Narrow with
`tools(ToolScopeSpec::Named(..))` or `disallow_tools`. Also sets
@@ -91,10 +91,10 @@ directories; transcripts and memory persist with the workspace.
`temperature`, `display_name` and `when_to_use`.
- `MemoryBinding` (`spec.rs`): the memory agent id the turns are logged
under, and optionally a layout root such as `team:acme`.
-- `AgentLayout` (`layout.rs`): `home` is `<workspace>/agents/<id>/`, `skills`
+- `AgentLayout` ([`layout.rs`](layout.rs)): `home` is `<workspace>/agents/<id>/`, `skills`
is `<workspace>/agents/<id>/skills/`, `transcripts` is
`<workspace>/session_raw/`, and `action_dir` is the resolved acting root.
-- `AgentError` (`mod.rs`): `DuplicateId`, `InvalidId`, `WidensRuntime`,
+- `AgentError` ([`mod.rs`](mod.rs)): `DuplicateId`, `InvalidId`, `WidensRuntime`,
`Workspace` (an I/O failure laying out directories), `Invalid`, and `Call`
for a failed turn.
@@ -158,7 +158,7 @@ agent.clone().attach_tools("tinyhivemind", source)?; // idempotent
## Boundaries
- What a turn does once dispatched (the agent loop, transcripts, tool-call
- parsing) belongs to `vendor/tinyagents`; the definition types and
+ parsing) belongs to [`vendor/tinyagents`](../../../../vendor/tinyagents/); the definition types and
`agent_chat_for` belong to the core (`openhuman_core::agent::harness` and
`inference::host_runtime`).
- Process-scoped state (keyring, bus, services, the registered domain set)
@@ -185,10 +185,10 @@ agent.clone().attach_tools("tinyhivemind", source)?; // idempotent
## Tests
-`build_tests.rs`, `definition_tests.rs`, `layout_tests.rs`, `spec_tests.rs`
-and `attachments_tests.rs` sit beside their modules. The end-to-end proof of
-agent isolation is `tests/runtime_agents.rs`, and attachments are covered by
-`tests/attached_tools.rs`.
+[`build_tests.rs`](build_tests.rs), [`definition_tests.rs`](definition_tests.rs), [`layout_tests.rs`](layout_tests.rs), [`spec_tests.rs`](spec_tests.rs)
+and [`attachments_tests.rs`](attachments_tests.rs) sit beside their modules. The end-to-end proof of
+agent isolation is [`tests/runtime_agents.rs`](../../tests/runtime_agents.rs), and attachments are covered by
+[`tests/attached_tools.rs`](../../tests/attached_tools.rs).
```bash
cargo test -p openhuman-embed --features inference,mcp,skills agent::
diff --git a/crates/openhuman-embed/src/harness/README.md b/crates/openhuman-embed/src/harness/README.md
index c9d6f7807e..303a2f2732 100644
--- a/crates/openhuman-embed/src/harness/README.md
+++ b/crates/openhuman-embed/src/harness/README.md
@@ -51,14 +51,14 @@ type.
| File | What it does |
| --- | --- |
-| `mod.rs` | `Harness` (`builder`, `run`, `turn`, `runtime`, `agent`, `core`, `workspace_dir`, `action_dir`) and `HarnessCore`. |
-| `builder.rs` | `HarnessBuilder` and `HARNESS_AGENT_ID`. Inputs: `workspace`, `action_dir`, `provider`, `access`, `skills_dir`, `mcp`, `tools`, `services`, `domains`, `tool_groups`, `host_kind`, `backend_url`, `session`, `config`. |
-| `access.rs` | `Access`: the autonomy tier and the turn origin, set together. |
-| `provider.rs` | `Provider`: which model answers and where the request goes. |
-| `workspace.rs` | `Workspace` and the crate-private `ResolvedWorkspace` that materializes directories. |
-| `mcp.rs` | `McpServer`, `HttpHeader`, `McpAuthConfig` (`mcp` feature). |
-| `skills.rs` | Copies skill bundles into a skills root (`skills` feature). |
-| `error.rs` | `HarnessError`: `Workspace`, `Invalid`, `Build`, `Call`, `AlreadyRunning`. |
+| [`mod.rs`](mod.rs) | `Harness` (`builder`, `run`, `turn`, `runtime`, `agent`, `core`, `workspace_dir`, `action_dir`) and `HarnessCore`. |
+| [`builder.rs`](builder.rs) | `HarnessBuilder` and `HARNESS_AGENT_ID`. Inputs: `workspace`, `action_dir`, `provider`, `access`, `skills_dir`, `mcp`, `tools`, `services`, `domains`, `tool_groups`, `host_kind`, `backend_url`, `session`, `config`. |
+| [`access.rs`](access.rs) | `Access`: the autonomy tier and the turn origin, set together. |
+| [`provider.rs`](provider.rs) | `Provider`: which model answers and where the request goes. |
+| [`workspace.rs`](workspace.rs) | `Workspace` and the crate-private `ResolvedWorkspace` that materializes directories. |
+| [`mcp.rs`](mcp.rs) | `McpServer`, `HttpHeader`, `McpAuthConfig` (`mcp` feature). |
+| [`skills.rs`](skills.rs) | Copies skill bundles into a skills root (`skills` feature). |
+| [`error.rs`](error.rs) | `HarnessError`: `Workspace`, `Invalid`, `Build`, `Call`, `AlreadyRunning`. |
## The shared input types
@@ -139,7 +139,7 @@ bypass its session gate.
- Security enforcement (`SecurityPolicy`, the approval gate, path checks)
is the core's (`openhuman_core::security`). `Access` only chooses inputs.
- MCP transport and the server registry belong to the core's MCP domain and
- `vendor/tinymcp`.
+ [`vendor/tinymcp`](../../../../vendor/tinymcp/).
## Gotchas
@@ -165,10 +165,10 @@ bypass its session gate.
## Tests
-Unit tests sit beside each module (`access_tests.rs`, `builder_tests.rs`,
-`provider_tests.rs`, `workspace_tests.rs`, and others). The end-to-end proof
+Unit tests sit beside each module ([`access_tests.rs`](access_tests.rs), [`builder_tests.rs`](builder_tests.rs),
+[`provider_tests.rs`](provider_tests.rs), [`workspace_tests.rs`](workspace_tests.rs), and others). The end-to-end proof
that a harness runs a real turn against a `wiremock` provider is
-`tests/harness_embed.rs`.
+[`tests/harness_embed.rs`](../../tests/harness_embed.rs).
```bash
cargo test -p openhuman-embed --features inference,mcp,skills harness::
diff --git a/crates/openhuman-embed/src/runtime/README.md b/crates/openhuman-embed/src/runtime/README.md
index 973b115e2a..37ed6fe396 100644
--- a/crates/openhuman-embed/src/runtime/README.md
+++ b/crates/openhuman-embed/src/runtime/README.md
@@ -63,17 +63,17 @@ releases `RUNTIME_LIVE`.
| File | What it does |
| --- | --- |
-| `mod.rs` | `Runtime`, `RuntimeError`, `CoreGuard` and the `RUNTIME_LIVE` process slot. |
-| `builder.rs` | `RuntimeBuilder`, plus the helpers the harness reuses: `apply_provider`, `effective_host_kind`, `default_domains`, `default_services`. |
-| `api_key.rs` | `ApiKey`, a newtype over the TinyHumans key whose `Debug` does not print it. |
+| [`mod.rs`](mod.rs) | `Runtime`, `RuntimeError`, `CoreGuard` and the `RUNTIME_LIVE` process slot. |
+| [`builder.rs`](builder.rs) | `RuntimeBuilder`, plus the helpers the harness reuses: `apply_provider`, `effective_host_kind`, `default_domains`, `default_services`. |
+| [`api_key.rs`](api_key.rs) | `ApiKey`, a newtype over the TinyHumans key whose `Debug` does not print it. |
## Key types and entry points
-- `RuntimeBuilder` (`builder.rs`): `workspace`, `api_key`, `backend_url`,
+- `RuntimeBuilder` ([`builder.rs`](builder.rs)): `workspace`, `api_key`, `backend_url`,
`backend_transport`, `memory_engine`, `session_store`, `provider`,
`access`, `services`, `domains`, `tool_groups`, `host_kind`, `session`,
`config`, then `build`.
-- `Runtime` (`mod.rs`): `agent(spec)` builds an agent; `agent_ids()` lists
+- `Runtime` ([`mod.rs`](mod.rs)): `agent(spec)` builds an agent; `agent_ids()` lists
the live ones; `core()` returns the narrow `HarnessCore` (config, auth);
`memory(root)` returns one tenant's `memory::Memory`; `root_dir()` and
`workspace_dir()` give paths; `domains()`, `tool_groups()` and `services()`
@@ -104,11 +104,11 @@ override reaches them.
`openhuman_core::core::runtime`. See its
[README](../../../openhuman-core/src/core/runtime/README.md).
- No backend transport is installed here. `openhuman-tinyhumans`'s
- `RuntimeBuilder` (`crates/openhuman-tinyhumans/src/runtime.rs`) wraps this
+ `RuntimeBuilder` ([`crates/openhuman-tinyhumans/src/runtime.rs`](../../../openhuman-tinyhumans/src/runtime.rs)) wraps this
builder and installs the SDK transport on `build()`; see
[`gitbooks/developing/tinyhumans-api-key.md`](../../../../gitbooks/developing/tinyhumans-api-key.md).
- The session store port (`SessionStoreProvider`) is defined by
- `vendor/tinyagents` and the core's `agent::session_store`; the classic
+ [`vendor/tinyagents`](../../../../vendor/tinyagents/) and the core's `agent::session_store`; the classic
on-disk provider lives in `openhuman-rpc`'s `session_store`.
## Gotchas
@@ -129,7 +129,7 @@ override reaches them.
## Tests
-`builder_tests.rs` and `api_key_tests.rs` sit beside their modules. The
+[`builder_tests.rs`](builder_tests.rs) and [`api_key_tests.rs`](api_key_tests.rs) sit beside their modules. The
end-to-end suites in [`../../tests/`](../../tests/README.md) build real
runtimes.
diff --git a/crates/openhuman-embed/tests/README.md b/crates/openhuman-embed/tests/README.md
index 357e7fe750..98fae00988 100644
--- a/crates/openhuman-embed/tests/README.md
+++ b/crates/openhuman-embed/tests/README.md
@@ -12,7 +12,7 @@ A runtime claims a process-wide slot (the core's keyring, event bus and
domain subscribers are process-scoped), so each file is its own test binary
and usually holds a single `#[test]` that builds one runtime and checks
everything against it. Splitting the assertions into separate tests would
-either race for the slot or need a mutex. `attached_tools.rs` holds a static
+either race for the slot or need a mutex. [`attached_tools.rs`](attached_tools.rs) holds a static
`RUNTIME_LOCK` for the same reason.
Each `#[test]` builds its tokio runtime with `common::runtime()`, which sets
@@ -26,18 +26,18 @@ recorded on the wrong server.
| File | What it proves |
| --- | --- |
-| `common/mod.rs` | Shared helpers: `runtime()`, `offline_config()`, `provider(reply)`, `stub_backend()`, `chat_completion`, `tool_call_completion`, and request inspectors (`chat_requests`, `tool_names`, `tool_results`). |
-| `harness_embed.rs` | A `Harness` runs a real turn with no transport and no background services, routes it to the mock provider, and binds nothing. |
-| `runtime_agents.rs` | Several agents on one runtime keep their own provider, access tier, skills, MCP servers and working directory, and the runtime's API key reaches a mocked managed backend as a bearer. |
-| `session_store.rs` | On a `Stateless` workspace with `InMemorySessionStores`, transcripts, journal and run status land in the store per agent, a reopened agent resumes from the store, and nothing durable is written to the scratch directory. |
-| `attached_tools.rs` | `Agent::attach_tools` sources survive clones and session resume, and name collisions are refused. |
-| `composio_agents.rs` | Two agents with their own `ComposioHostCredential` reach Composio with their own key only. |
-| `memory_facade.rs` | `Runtime::memory` over TinyMemory's in-memory reference engine keeps two tenant roots apart. |
-| `public_api.rs` | Compile-time check that the host-facing types and signatures stay exported. |
+| [`common/mod.rs`](common/mod.rs) | Shared helpers: `runtime()`, `offline_config()`, `provider(reply)`, `stub_backend()`, `chat_completion`, `tool_call_completion`, and request inspectors (`chat_requests`, `tool_names`, `tool_results`). |
+| [`harness_embed.rs`](harness_embed.rs) | A `Harness` runs a real turn with no transport and no background services, routes it to the mock provider, and binds nothing. |
+| [`runtime_agents.rs`](runtime_agents.rs) | Several agents on one runtime keep their own provider, access tier, skills, MCP servers and working directory, and the runtime's API key reaches a mocked managed backend as a bearer. |
+| [`session_store.rs`](session_store.rs) | On a `Stateless` workspace with `InMemorySessionStores`, transcripts, journal and run status land in the store per agent, a reopened agent resumes from the store, and nothing durable is written to the scratch directory. |
+| [`attached_tools.rs`](attached_tools.rs) | `Agent::attach_tools` sources survive clones and session resume, and name collisions are refused. |
+| [`composio_agents.rs`](composio_agents.rs) | Two agents with their own `ComposioHostCredential` reach Composio with their own key only. |
+| [`memory_facade.rs`](memory_facade.rs) | `Runtime::memory` over TinyMemory's in-memory reference engine keeps two tenant roots apart. |
+| [`public_api.rs`](public_api.rs) | Compile-time check that the host-facing types and signatures stay exported. |
## Running
-`runtime_agents.rs` gates its skills and MCP assertions on the `skills` and
+[`runtime_agents.rs`](runtime_agents.rs) gates its skills and MCP assertions on the `skills` and
`mcp` features, so run with them on:
```bash
@@ -47,4 +47,4 @@ pnpm debug rust session_store
```
Add a new scenario as a new file rather than a second `#[test]` in an
-existing one, and reuse `common/` for mocks.
+existing one, and reuse [`common/`](common/) for mocks.
diff --git a/crates/openhuman-rpc/README.md b/crates/openhuman-rpc/README.md
index 05df9cd74a..7e39136dcc 100644
--- a/crates/openhuman-rpc/README.md
+++ b/crates/openhuman-rpc/README.md
@@ -80,10 +80,10 @@ host side. Each host that serves calls one of two entry points:
| Path | What it does |
| --- | --- |
-| `src/lib.rs` | Module wiring and re-exports. |
-| `src/envelope.rs` | `RpcRequest`, `RpcSuccess`, `RpcFailure`, `RpcError`, `JSONRPC_VERSION`, `SERVER_ERROR_CODE`, and the client half: `request_body`, `decode_response`. |
-| `src/origin.rs` | `is_origin_allowed_with_extra` and `ALLOWED_ORIGINS_ENV`: the browser-origin allowlist. Pure; the caller reads the environment. |
-| `src/client.rs` | `http-client` feature: `post_json_rpc`, `bearer_header`, `redact_url_for_log`, `HttpRpcResponse`. |
+| [`src/lib.rs`](src/lib.rs) | Module wiring and re-exports. |
+| [`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. |
+| [`src/client.rs`](src/client.rs) | `http-client` feature: `post_json_rpc`, `bearer_header`, `redact_url_for_log`, `HttpRpcResponse`. |
| [`src/server/`](src/server/README.md) | `server` feature: the axum router, auth and CORS middleware, the `/rpc` handler, SSE and WebSocket routes, Socket.IO, `/dev/connect`, the listener (`serve`) and the `run_server*` entry points. |
| [`src/http_host/`](src/http_host/README.md) | `server` feature: ad-hoc Basic-auth static directory servers and their `http_host.*` controllers. |
| [`src/session_store/`](src/session_store/README.md) | `session-store` feature: `SqliteSessionStores`, the classic on-disk session layout behind TinyAgents' session store port. |
@@ -124,21 +124,21 @@ host side. Each host that serves calls one of two entry points:
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,
+server), and [`crates/openhuman-app/Cargo.toml`](../openhuman-app/Cargo.toml), outside the workspace,
enables `http-client` and `server`.
## Consumers
-- `crates/openhuman-app`: `core_process.rs` runs the embedded server
+- [`crates/openhuman-app`](../openhuman-app/): `core_process.rs` runs the embedded server
(`run_server_embedded_with_ready`) 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
+- [`crates/openhuman-cli`](../openhuman-cli/): `main.rs` calls `install_cli_server`; 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
+- [`crates/openhuman-tui`](../openhuman-tui/): `unwrap_rpc` is its decode point, and
`runner.rs` calls `session_store::install()`.
## Boundaries
@@ -155,7 +155,7 @@ enables `http-client` and `server`.
method branches to the server. `http_host` joins the registry as a
controller extension.
- The session store port, transcript format and run ledger belong to
- `vendor/tinyagents` (`tinyagents-session`). `session_store` only arranges
+ [`vendor/tinyagents`](../../vendor/tinyagents/) (`tinyagents-session`). `session_store` only arranges
those building blocks into OpenHuman's layout.
- Backend auth, login-token exchange and `/auth/me` belong to
`openhuman-tinyhumans`, not here.
@@ -185,7 +185,7 @@ server-failure wire bytes), the origin allowlist, failure classification,
the `/rpc` handler's Sentry routing (with `crash-reporting`), CORS, auth
route policy, the SSE and WebSocket routes, Socket.IO, `/dev/connect`,
`http_host` and the session store. End-to-end JSON-RPC behavior lives in the
-root `tests/json_rpc_e2e.rs`.
+root [`tests/json_rpc_e2e.rs`](../../tests/json_rpc_e2e.rs).
```bash
cargo test -p openhuman-rpc --features crash-reporting
diff --git a/crates/openhuman-rpc/src/http_host/README.md b/crates/openhuman-rpc/src/http_host/README.md
index 7e31eb86da..17b640fb6d 100644
--- a/crates/openhuman-rpc/src/http_host/README.md
+++ b/crates/openhuman-rpc/src/http_host/README.md
@@ -72,14 +72,14 @@ servers never survive a restart.
| File | What it does |
| --- | --- |
-| `mod.rs` | Module wiring, `register_controllers`, `ensure_registered`, the `http_host` namespace description, `LOG_PREFIX = "[http_host]"`. |
-| `types.rs` | Serde types: `StartHostedDirParams`, `HostedDirLookupParams`, `HostedDirServerInfo`, `HostedDirAuth`, and the `*Result` response shapes. |
-| `ops.rs` | The in-process server manager: the `HostedDirRegistry` singleton (a `Mutex<HashMap>` behind a `OnceLock`), `start`/`list`/`get`/`stop`/`stop_all`, finished-task pruning, collision checks, the shutdown hook. |
-| `handlers.rs` | The per-server `axum` router: auth check, path resolution, streamed files, directory listings. |
-| `auth.rs` | Basic-auth verification, default username resolution from the session or environment, username sanitizing, password generation. |
-| `path_utils.rs` | Directory canonicalization, request-path traversal checks, bind-host and label sanitizing, link builders, `escape_html`, `content_type_for_path`, `redact_path_for_log`. |
-| `rpc.rs` | Thin adapters from ops to `Outcome<T>`. |
-| `schemas.rs` | `ControllerSchema`s and `handle_*` handlers; `all_controller_schemas` and `all_registered_controllers`. |
+| [`mod.rs`](mod.rs) | Module wiring, `register_controllers`, `ensure_registered`, the `http_host` namespace description, `LOG_PREFIX = "[http_host]"`. |
+| [`types.rs`](types.rs) | Serde types: `StartHostedDirParams`, `HostedDirLookupParams`, `HostedDirServerInfo`, `HostedDirAuth`, and the `*Result` response shapes. |
+| [`ops.rs`](ops.rs) | The in-process server manager: the `HostedDirRegistry` singleton (a `Mutex<HashMap>` behind a `OnceLock`), `start`/`list`/`get`/`stop`/`stop_all`, finished-task pruning, collision checks, the shutdown hook. |
+| [`handlers.rs`](handlers.rs) | The per-server `axum` router: auth check, path resolution, streamed files, directory listings. |
+| [`auth.rs`](auth.rs) | Basic-auth verification, default username resolution from the session or environment, username sanitizing, password generation. |
+| [`path_utils.rs`](path_utils.rs) | Directory canonicalization, request-path traversal checks, bind-host and label sanitizing, link builders, `escape_html`, `content_type_for_path`, `redact_path_for_log`. |
+| [`rpc.rs`](rpc.rs) | Thin adapters from ops to `Outcome<T>`. |
+| [`schemas.rs`](schemas.rs) | `ControllerSchema`s and `handle_*` handlers; `all_controller_schemas` and `all_registered_controllers`. |
## Public surface
@@ -132,9 +132,9 @@ Namespace `http_host`, invoked as `openhuman.http_host_<function>`:
## Tests
-`http_host_tests.rs` (mounted from `mod.rs`) covers a start, list and stop
+[`http_host_tests.rs`](http_host_tests.rs) (mounted from [`mod.rs`](mod.rs)) covers a start, list and stop
round trip with Basic auth, path traversal rejection, and username
-sanitizing and resolution. `schemas_tests.rs` checks schema and handler
+sanitizing and resolution. [`schemas_tests.rs`](schemas_tests.rs) checks schema and handler
parity, required inputs and the unknown-function fallback.
```bash
diff --git a/crates/openhuman-rpc/src/server/README.md b/crates/openhuman-rpc/src/server/README.md
index f572df7e86..49af6d97bb 100644
--- a/crates/openhuman-rpc/src/server/README.md
+++ b/crates/openhuman-rpc/src/server/README.md
@@ -93,7 +93,7 @@ outermost to innermost:
| `/v1/*` | the core's OpenAI-compatible router (`inference::http`) | core bearer or the user-managed external API key |
The bearer is the per-launch RPC token the core owns
-(`openhuman_core::core::auth`); `auth.rs` is only the route policy over it.
+(`openhuman_core::core::auth`); [`auth.rs`](auth.rs) is only the route policy over it.
### A failed call
@@ -143,36 +143,36 @@ directly.
| Path | What it does |
| --- | --- |
-| `mod.rs` | Module wiring and the public re-exports. |
-| `serve.rs` | `serve` and `EmbeddedReadySignal`. |
-| `shims.rs` | `run_server`, `run_server_headless`, `run_server_embedded`, `run_server_embedded_with_ready`, plus host and port defaults. |
-| `cli.rs` | `install_cli_server` and the launcher it installs. |
-| `auth.rs` | `rpc_auth_middleware`: public paths, query-token paths, and the `/v1` external-key check. |
-| `classify.rs` | `classify_failure` and `FailureDisposition`. Pure. |
-| `socketio.rs` | Socket.IO handshake auth, client event handlers, the event bridge, the companion seam, and the event payload types. |
-| `dev_connect.rs` | `GET /dev/connect`. |
-| `testing.rs` | Test-only environment lock shared by this crate's tests. |
-| `http/mod.rs` | `build_core_http_router`, the body limit, root and 404 handlers, request log middleware. |
-| `http/rpc_handler.rs` | `POST /rpc`. |
-| `http/cors.rs` | CORS headers and preflight over the shared origin rule. |
-| `http/health.rs` | `GET /health` and `GET /schema`. |
-| `http/events.rs` | The three SSE routes. |
-| `http/dictation.rs`, `http/live_voice.rs` | WebSocket upgrade guards; the sessions themselves live in the core's `voice` domain. |
-| `http/oauth_mcp.rs` | MCP OAuth callback, handing off to `mcp::registry::oauth::complete`. |
-| `http/pages.rs` | Static HTML pages for OAuth callbacks. |
+| [`mod.rs`](mod.rs) | Module wiring and the public re-exports. |
+| [`serve.rs`](serve.rs) | `serve` and `EmbeddedReadySignal`. |
+| [`shims.rs`](shims.rs) | `run_server`, `run_server_headless`, `run_server_embedded`, `run_server_embedded_with_ready`, plus host and port defaults. |
+| [`cli.rs`](cli.rs) | `install_cli_server` and the launcher it installs. |
+| [`auth.rs`](auth.rs) | `rpc_auth_middleware`: public paths, query-token paths, and the `/v1` external-key check. |
+| [`classify.rs`](classify.rs) | `classify_failure` and `FailureDisposition`. Pure. |
+| [`socketio.rs`](socketio.rs) | Socket.IO handshake auth, client event handlers, the event bridge, the companion seam, and the event payload types. |
+| [`dev_connect.rs`](dev_connect.rs) | `GET /dev/connect`. |
+| [`testing.rs`](testing.rs) | Test-only environment lock shared by this crate's tests. |
+| [`http/mod.rs`](http/mod.rs) | `build_core_http_router`, the body limit, root and 404 handlers, request log middleware. |
+| [`http/rpc_handler.rs`](http/rpc_handler.rs) | `POST /rpc`. |
+| [`http/cors.rs`](http/cors.rs) | CORS headers and preflight over the shared origin rule. |
+| [`http/health.rs`](http/health.rs) | `GET /health` and `GET /schema`. |
+| [`http/events.rs`](http/events.rs) | The three SSE routes. |
+| [`http/dictation.rs`](http/dictation.rs), [`http/live_voice.rs`](http/live_voice.rs) | WebSocket upgrade guards; the sessions themselves live in the core's `voice` domain. |
+| [`http/oauth_mcp.rs`](http/oauth_mcp.rs) | MCP OAuth callback, handing off to `mcp::registry::oauth::complete`. |
+| [`http/pages.rs`](http/pages.rs) | Static HTML pages for OAuth callbacks. |
## Key entry points
-- `install_cli_server()` (`cli.rs`): call once before `run_core_from_args`.
+- `install_cli_server()` ([`cli.rs`](cli.rs)): call once before `run_core_from_args`.
It also registers the `http_host` controllers.
- `serve(&CoreRuntime, Option<oneshot::Sender<EmbeddedReadySignal>>,
Option<CancellationToken>)` (`serve.rs`).
-- `run_server_embedded_with_ready(..., rpc_token)` (`shims.rs`): pass the
+- `run_server_embedded_with_ready(..., rpc_token)` ([`shims.rs`](shims.rs)): pass the
bearer the shell already holds so the server never reads it from the
environment.
- `build_core_http_router(socketio_enabled)` and `rpc_handler`
- (`http/`): for tests that want the router without a listener.
-- `publish_companion_state_changed(payload)` (`socketio.rs`).
+ ([`http/`](http/)): for tests that want the router without a listener.
+- `publish_companion_state_changed(payload)` ([`socketio.rs`](socketio.rs)).
## Boundaries
@@ -207,7 +207,7 @@ directly.
## Tests
Sibling `*_tests.rs` files cover auth route policy, failure classification,
-the shims, Socket.IO, `/dev/connect`, and each route module under `http/`
+the shims, Socket.IO, `/dev/connect`, and each route module under [`http/`](http/)
(including the `/rpc` handler's Sentry routing and the `/v1` mount in
`inference_route_tests.rs`).
diff --git a/crates/openhuman-rpc/src/session_store/README.md b/crates/openhuman-rpc/src/session_store/README.md
index 639918a7f6..12f7b1c16d 100644
--- a/crates/openhuman-rpc/src/session_store/README.md
+++ b/crates/openhuman-rpc/src/session_store/README.md
@@ -36,7 +36,7 @@ core boots, because boot calls the provider's `recover()`: turns an unclean
shutdown left in flight are marked interrupted, and run-ledger rows a dead
process left running are settled. Both `run_server*` shims in
[`../server/`](../server/README.md) call it, and the TUI calls it from
-`crates/openhuman-tui/src/runner.rs`.
+[`crates/openhuman-tui/src/runner.rs`](../../../openhuman-tui/src/runner.rs).
`install()` builds the provider with `resolving(context_workspace_dir)`,
so the workspace is looked up on every `for_agent` call rather than fixed at
@@ -66,7 +66,7 @@ tinyagents_store/{kv,journal}/ run status, goals, todos,
| File | What it does |
| --- | --- |
-| `mod.rs` | `SqliteSessionStores` (`at`, `resolving`), its `SessionStoreProvider` impl (`for_agent`, `recover`, `destination_key`, `workspace_dir`), and `install()`. |
+| [`mod.rs`](mod.rs) | `SqliteSessionStores` (`at`, `resolving`), its `SessionStoreProvider` impl (`for_agent`, `recover`, `destination_key`, `workspace_dir`), and `install()`. |
## Key types and entry points
@@ -84,7 +84,7 @@ tinyagents_store/{kv,journal}/ run status, goals, todos,
- The port (`SessionStoreProvider`, `AgentStores`), the transcript format
and locator, turn states, the run ledger and the kv/journal stores are all
- `tinyagents-session` (`vendor/tinyagents`, repo `tinyhumansai/tinyagents`).
+ `tinyagents-session` ([`vendor/tinyagents`](../../../../vendor/tinyagents/), repo `tinyhumansai/tinyagents`).
This module only arranges those building blocks into OpenHuman's
directory layout. Changes to the formats belong upstream.
- The process slot, the scoped override and `current()` belong to the core
@@ -104,7 +104,7 @@ tinyagents_store/{kv,journal}/ run status, goals, todos,
## Tests
-`mod_tests.rs` runs the TinyAgents conformance suite against this layout,
+[`mod_tests.rs`](mod_tests.rs) runs the TinyAgents conformance suite against this layout,
checks that the workspace follows the resolver, and checks that recovery
interrupts turns left in flight. The `SqliteSessionStores` doc example also
runs as a doctest.
diff --git a/crates/openhuman-tinyhumans/README.md b/crates/openhuman-tinyhumans/README.md
index 645271aa8b..df48f4cb5a 100644
--- a/crates/openhuman-tinyhumans/README.md
+++ b/crates/openhuman-tinyhumans/README.md
@@ -9,8 +9,8 @@ RPC proxies (billing, team, referral and so on), the host-side login and
session owner, and the Jev-backed `tool_search` ranker.
Every host that boots a core and wants the backend calls into this crate first:
-the desktop shell (`crates/openhuman-app`), the TUI (`crates/openhuman-tui`),
-the CLI binary (`crates/openhuman-cli`) and the integration-test fixtures.
+the desktop shell ([`crates/openhuman-app`](../openhuman-app/)), the TUI ([`crates/openhuman-tui`](../openhuman-tui/)),
+the CLI binary ([`crates/openhuman-cli`](../openhuman-cli/)) and the integration-test fixtures.
Library products build through its `RuntimeBuilder`.
## How it works
@@ -51,7 +51,7 @@ controllers).
### Installing into a process
-`install(InstallOptions)` in `src/install.rs` is the entry point for hosts that
+`install(InstallOptions)` in [`src/install.rs`](src/install.rs) is the entry point for hosts that
boot the core themselves. It does four things, in this order:
1. If `InstallOptions::product_identity` is set, it stores the new
@@ -80,13 +80,13 @@ is still the core's global one.
openhuman_tinyhumans::install(openhuman_tinyhumans::InstallOptions::default())?;
```
-The CLI does this in `crates/openhuman-cli/src/main.rs` before
+The CLI does this in [`crates/openhuman-cli/src/main.rs`](../openhuman-cli/src/main.rs) before
`run_core_from_args`; in-process test suites do it through
-`tests/support/tinyhumans_boot.rs`.
+[`tests/support/tinyhumans_boot.rs`](../../tests/support/tinyhumans_boot.rs).
### Library hosts: RuntimeBuilder
-`RuntimeBuilder` in `src/runtime.rs` wraps `openhuman_embed::RuntimeBuilder`
+`RuntimeBuilder` in [`src/runtime.rs`](src/runtime.rs) wraps `openhuman_embed::RuntimeBuilder`
and mirrors it method for method (`workspace`, `api_key`, `backend_url`,
`provider`, `access`, `services`, `domains`, `tool_groups`, `host_kind`,
`session`, `config`). It adds `product_identity` and `hosted_controllers`,
@@ -140,15 +140,15 @@ policy or product identity of its own; it asks the installed transport.
| Path | What it does |
| --- | --- |
-| `src/lib.rs` | Crate root: module declarations and the public re-exports (`install`, `RuntimeBuilder`, the session types, `SdkBackendTransport`, `ProductIdentity`). Re-exports `openhuman_embed` as `embed`. |
-| `src/install.rs` | `install`, `is_installed`, `InstallOptions`, `InstallError`. Process-global, idempotent. |
-| `src/runtime.rs` | `RuntimeBuilder` and `RuntimeError`: an embed builder that installs the transport on `build()`. |
+| [`src/lib.rs`](src/lib.rs) | Crate root: module declarations and the public re-exports (`install`, `RuntimeBuilder`, the session types, `SdkBackendTransport`, `ProductIdentity`). Re-exports `openhuman_embed` as `embed`. |
+| [`src/install.rs`](src/install.rs) | `install`, `is_installed`, `InstallOptions`, `InstallError`. Process-global, idempotent. |
+| [`src/runtime.rs`](src/runtime.rs) | `RuntimeBuilder` and `RuntimeError`: an embed builder that installs the transport on `build()`. |
| [`src/backend/`](src/backend/README.md) | Where the backend is (`url.rs`), how requests are attributed (`headers.rs`), and who they are attributed to (`product.rs`). |
| [`src/transport/`](src/transport/README.md) | `SdkBackendTransport`, the `BackendTransport` implementation, and `map_sdk_error`. |
| [`src/hosted/`](src/hosted/README.md) | The hosted-backend RPC proxies: `billing`, `team`, `referral`, `announcements`, `webhooks`, `channel_link`, `oauth`. |
| [`src/session/`](src/session/README.md) | The host-side login and session owner: `SessionManager`, `SessionClient`, `CurrentUserCache`, `CoreLink`. |
| [`src/jev/`](src/jev/README.md) | The Jev-backed `tool_search` ranker (behind the `jev` feature). |
-| `src/jwt.rs` | Re-exports the SDK's JWT readers (`bearer_authorization_value`, `decode_jwt_exp_unix`, `decode_jwt_payload`) for hosts that already depend on this crate. |
+| [`src/jwt.rs`](src/jwt.rs) | Re-exports the SDK's JWT readers (`bearer_authorization_value`, `decode_jwt_exp_unix`, `decode_jwt_payload`) for hosts that already depend on this crate. |
## Key types and entry points
@@ -157,13 +157,13 @@ policy or product identity of its own; it asks the installed transport.
`tool_ranker` adjust the defaults.
- `RuntimeBuilder` (`src/runtime.rs`): boot an embed runtime that is already
connected.
-- `SdkBackendTransport` (`src/transport/mod.rs`): the transport itself, with
+- `SdkBackendTransport` ([`src/transport/mod.rs`](src/transport/mod.rs)): the transport itself, with
`new()` and `shared()` for hosts that want to install it by hand.
- `hosted_controllers` (re-export of `hosted::extension`): the hosted RPC
surface as one `ControllerExtension`, for hosts that register it themselves.
-- `SessionManager<L: CoreLink>` (`src/session/manager.rs`): what the desktop
+- `SessionManager<L: CoreLink>` ([`src/session/manager.rs`](src/session/manager.rs)): what the desktop
shell and the TUI drive for login, logout and the current user.
-- `set_product_identity` / `ProductIdentity` (`src/backend/product.rs`): set the
+- `set_product_identity` / `ProductIdentity` ([`src/backend/product.rs`](src/backend/product.rs)): set the
`x-sdk-name` a product reports, once, before any backend traffic.
## RPC surface
@@ -193,19 +193,19 @@ rest). Its one gate of its own is `jev`, on by default: it compiles in
`tinytools-jev` and `tinyjevclient` and the `jev` module. The desktop shell
enables it explicitly (`features = ["jev"]`) because it builds this crate with
`default-features = false`. Without `jev` the harness ranks `tool_search` with
-BM25 alone. `scripts/ci/check-feature-forwarding.mjs` checks the forwarding
+BM25 alone. [`scripts/ci/check-feature-forwarding.mjs`](../../scripts/ci/check-feature-forwarding.mjs) checks the forwarding
chain core, embed, tinyhumans, cli.
## Boundaries
- The core owns the port (`BackendTransport`, `BackendRequest`,
- `BackendTransportError` in `crates/openhuman-core/src/backend/transport/`),
+ `BackendTransportError` in [`crates/openhuman-core/src/backend/transport/`](../openhuman-core/src/backend/transport/)),
the authenticated JSON client (`backend/client.rs`), credential resolution
(`security::credentials::session_support::resolve_backend_credential`) and
all recovery from errors. This crate decides what a backend response means;
the core decides what to do about it.
- Route implementations belong in the vendored SDK (`tinyhumansai/tinyhumans-sdk`,
- `vendor/tinyhumans-sdk`). Its unexposed-route registry is the route policy
+ [`vendor/tinyhumans-sdk`](../../vendor/tinyhumans-sdk/)). Its unexposed-route registry is the route policy
the transport enforces. The transport never adds a route the core does not
already name. Two team routes the SDK does not carry (`POST /teams`,
`DELETE /teams/{id}`) stay on the core's `BackendClient::authed_json` until
@@ -222,7 +222,7 @@ chain core, embed, tinyhumans, cli.
- Realtime Socket.IO stays on the core's own `platform::socket` transport; the
SDK is built with `default-features = false`, which drops its socket client.
- The generic Jev types (`JevRanker`, `JevEvaluator`, `JevStrategy`) live in
- `vendor/tinyagents/vendor/tinytools/crates/tinytools-jev`
+ [`vendor/tinyagents/vendor/tinytools/crates/tinytools-jev`](../../vendor/tinyagents/vendor/tinytools/crates/tinytools-jev/)
(`tinyhumansai/tinytools`). This crate owns only the wire and credential.
## Gotchas
diff --git a/crates/openhuman-tinyhumans/src/backend/README.md b/crates/openhuman-tinyhumans/src/backend/README.md
index 5511d04b1b..8df3c1f003 100644
--- a/crates/openhuman-tinyhumans/src/backend/README.md
+++ b/crates/openhuman-tinyhumans/src/backend/README.md
@@ -104,27 +104,27 @@ process.
| Path | What it does |
| --- | --- |
-| `mod.rs` | Declares the three modules and re-exports the common names (`ProductIdentity`, `set_product_identity`, `effective_backend_api_url`, `DEFAULT_API_BASE_URL`, and so on). |
-| `url.rs` | Base-URL resolution, environment overrides, staging default, and the inference-endpoint guard for control-plane calls. Re-exports a few URL helpers from the core (`join_url`, `normalize_api_base_url`, `host_is_local`). |
-| `headers.rs` | `attribution_headers`, `backend_client_builder`, `build_backend_client`, `TAURI_VERSION_ENV_VAR`. |
-| `product.rs` | `ProductIdentity`, `set_product_identity`, `product_identity`, `product_identity_header(s)`, `PRODUCT_IDENTITY_HEADER`, `DEFAULT_PRODUCT_IDENTITY`. |
+| [`mod.rs`](mod.rs) | Declares the three modules and re-exports the common names (`ProductIdentity`, `set_product_identity`, `effective_backend_api_url`, `DEFAULT_API_BASE_URL`, and so on). |
+| [`url.rs`](url.rs) | Base-URL resolution, environment overrides, staging default, and the inference-endpoint guard for control-plane calls. Re-exports a few URL helpers from the core (`join_url`, `normalize_api_base_url`, `host_is_local`). |
+| [`headers.rs`](headers.rs) | `attribution_headers`, `backend_client_builder`, `build_backend_client`, `TAURI_VERSION_ENV_VAR`. |
+| [`product.rs`](product.rs) | `ProductIdentity`, `set_product_identity`, `product_identity`, `product_identity_header(s)`, `PRODUCT_IDENTITY_HEADER`, `DEFAULT_PRODUCT_IDENTITY`. |
## Key types and entry points
-- `effective_backend_api_url(&Option<String>)` (`url.rs`): the base for any
+- `effective_backend_api_url(&Option<String>)` ([`url.rs`](url.rs)): the base for any
non-inference backend call. `hosted::client::HostedClient` and the
transport's `base_url(ControlPlane)` both use it.
- `effective_api_url(&Option<String>)` (`url.rs`): the inference base, used by
the transport's `base_url(Inference)`.
-- `build_backend_client(TransportProfile)` (`headers.rs`): the `reqwest`
+- `build_backend_client(TransportProfile)` ([`headers.rs`](headers.rs)): the `reqwest`
client every hosted request rides.
-- `set_product_identity(ProductIdentity)` (`product.rs`): re-exported at the
+- `set_product_identity(ProductIdentity)` ([`product.rs`](product.rs)): re-exported at the
crate root; also reachable through `InstallOptions::product_identity`.
## Boundaries
- The core owns the questions (`backend::base_url` and friends in
- `crates/openhuman-core/src/backend/mod.rs`) and the URL utilities this file
+ [`crates/openhuman-core/src/backend/mod.rs`](../../../openhuman-core/src/backend/mod.rs)) and the URL utilities this file
re-exports (`openhuman_core::util::url`). It owns the app-environment
reading too (`config::app_env`).
- Do not put the `x-sdk-name` header on third-party endpoints, MCP servers,
@@ -144,7 +144,7 @@ process.
## Tests
-`headers_tests.rs`, `product_tests.rs` and `url_tests.rs` sit beside their
+[`headers_tests.rs`](headers_tests.rs), [`product_tests.rs`](product_tests.rs) and [`url_tests.rs`](url_tests.rs) sit beside their
modules.
```bash
diff --git a/crates/openhuman-tinyhumans/src/hosted/README.md b/crates/openhuman-tinyhumans/src/hosted/README.md
index 6ecec656ca..0c08397fc7 100644
--- a/crates/openhuman-tinyhumans/src/hosted/README.md
+++ b/crates/openhuman-tinyhumans/src/hosted/README.md
@@ -12,14 +12,14 @@ these domains exist.
### Registration
-`extension()` in `mod.rs` collects every domain's
+`extension()` in [`mod.rs`](mod.rs) collects every domain's
`all_<domain>_registered_controllers()` into one `ControllerExtension` tagged
`DomainGroup::Hosted`, together with the `NAMESPACES` table that
`namespace_description` serves for the namespaces only this surface uses
(`billing`, `team`, `referral`, `announcements`). `crate::install()` passes
the extension to `core::all::register_controller_extension`; the crate root
also re-exports it as `hosted_controllers` for hosts that register it
-themselves. `crates/openhuman-core/src/core/all.rs` is the extension point and
+themselves. [`crates/openhuman-core/src/core/all.rs`](../../../openhuman-core/src/core/all.rs) is the extension point and
never grows a `billing` or `team` branch of its own.
Three domains (`webhooks`, `channel_link`, `oauth`) put methods into
@@ -107,8 +107,8 @@ status, transport phrases, budget exhaustion) keep matching them.
| Path | What it does |
| --- | --- |
-| `mod.rs` | `extension()`, `NAMESPACES`, module declarations. |
-| `client.rs` | `HostedClient`, `CredentialKind`, `map_error`. |
+| [`mod.rs`](mod.rs) | `extension()`, `NAMESPACES`, module declarations. |
+| [`client.rs`](client.rs) | `HostedClient`, `CredentialKind`, `map_error`. |
| [`billing/`](billing/README.md) | Plans, Stripe and Coinbase purchase and top-up flows, credit balance and transactions, auto-recharge, saved cards, coupons (`/payments/*`, `/coupons/*`). |
| [`team/`](team/README.md) | Team CRUD, membership, role changes, invites, usage (`/teams/me/usage`), active-team switching. |
| [`referral/`](referral/README.md) | Referral stats and claiming a code (`/referral/*`). |
@@ -116,7 +116,7 @@ status, transport phrases, budget exhaustion) keep matching them.
| [`webhooks/`](webhooks/README.md) | Backend-managed webhook tunnel CRUD and the bandwidth budget (`/webhooks/core*`). |
| [`channel_link/`](channel_link/README.md) | Linking the managed Telegram and Discord bots to the account: link-token issuance and the start/check flows. `managed.rs` polls `GET /auth/me` and stores a `channel:<id>:managed_dm` credential marker on success. |
| [`oauth/`](oauth/README.md) | Backend-brokered OAuth integrations (`/auth/{provider}/connect`, `/auth/integrations*`). `handoff.rs` decrypts the AES-256-GCM token handoff. |
-| `test_support.rs` | Wiremock fixtures shared by this tree's tests (test builds only). |
+| [`test_support.rs`](test_support.rs) | Wiremock fixtures shared by this tree's tests (test builds only). |
## RPC surface
@@ -141,7 +141,7 @@ contracts.
rest of `channels`. The `channels.*` schemas used by `channel_link` come
from the `tinychannels-bus` contract through the core's
`channels::contract_schema`.
-- Routes come from the vendored SDK (`vendor/tinyhumans-sdk`). Where the SDK
+- Routes come from the vendored SDK ([`vendor/tinyhumans-sdk`](../../../../vendor/tinyhumans-sdk/)). Where the SDK
has no typed method, a domain uses the SDK's raw request primitive
(`billing`, and `oauth`'s `POST /auth/integrations/{id}/client-key`).
`team`'s `POST /teams` and `DELETE /teams/{id}` are not in the SDK's route
@@ -165,8 +165,8 @@ contracts.
Each domain has `ops_tests.rs` and `schemas_tests.rs` beside its modules
(plus `managed_tests.rs` and `handoff_tests.rs` where those files exist), and
-`client_tests.rs` covers `HostedClient` and the error mapping. They run
-against wiremock through `test_support.rs`.
+[`client_tests.rs`](client_tests.rs) covers `HostedClient` and the error mapping. They run
+against wiremock through [`test_support.rs`](test_support.rs).
```bash
cargo test -p openhuman-tinyhumans hosted::
diff --git a/crates/openhuman-tinyhumans/src/hosted/announcements/README.md b/crates/openhuman-tinyhumans/src/hosted/announcements/README.md
index 302a97bb38..16dce1c8b2 100644
--- a/crates/openhuman-tinyhumans/src/hosted/announcements/README.md
+++ b/crates/openhuman-tinyhumans/src/hosted/announcements/README.md
@@ -20,15 +20,15 @@ through verbatim.
| File | Role |
| --- | --- |
-| `mod.rs` | Re-exports `ops::*` and the schema/controller pair. |
-| `ops.rs` | `get_latest_announcement`, through `HostedClient` and the SDK's typed `announcements()` client (the payload is decoded into the SDK's `Announcement` and re-encoded, so it keeps the frontend's camelCase shape). |
-| `schemas.rs` | Controller schema + handler that loads `Config` and delegates to `ops`. |
-| `ops_tests.rs`, `schemas_tests.rs` | 404-detection and schema/registration tests. |
+| [`mod.rs`](mod.rs) | Re-exports `ops::*` and the schema/controller pair. |
+| [`ops.rs`](ops.rs) | `get_latest_announcement`, through `HostedClient` and the SDK's typed `announcements()` client (the payload is decoded into the SDK's `Announcement` and re-encoded, so it keeps the frontend's camelCase shape). |
+| [`schemas.rs`](schemas.rs) | Controller schema + handler that loads `Config` and delegates to `ops`. |
+| [`ops_tests.rs`](ops_tests.rs), [`schemas_tests.rs`](schemas_tests.rs) | 404-detection and schema/registration tests. |
## RPC / controllers
One controller in the `announcements` namespace (schema `function: "get_latest"`),
-registered into the global registry via `crates/openhuman-core/src/core/all.rs`:
+registered into the global registry via [`crates/openhuman-core/src/core/all.rs`](../../../../openhuman-core/src/core/all.rs):
| Wire method | Inputs | Output | Backend call |
| --- | --- | --- | --- |
@@ -38,7 +38,7 @@ registered into the global registry via `crates/openhuman-core/src/core/all.rs`:
None. The domain reads the stored session token but does not persist
anything. Dismissal is tracked client-side by announcement id
-(`app/src/store/announcementSlice.ts`, `shownIds`, persisted through
+([`app/src/store/announcementSlice.ts`](../../../../../app/src/store/announcementSlice.ts), `shownIds`, persisted through
`userScopedStorage`): this module has no notion of "dismissed".
## Dependencies
@@ -54,6 +54,6 @@ anything. Dismissal is tracked client-side by announcement id
## Gating
-`announcements` is part of `DomainGroup::Hosted` (`crates/openhuman-core/src/core/all.rs`).
+`announcements` is part of `DomainGroup::Hosted` ([`crates/openhuman-core/src/core/all.rs`](../../../../openhuman-core/src/core/all.rs)).
`DomainSet::embedded` sets `hosted: false`, dropping the whole `Hosted` group
as a unit, so this controller and its siblings do not register there.
diff --git a/crates/openhuman-tinyhumans/src/hosted/billing/README.md b/crates/openhuman-tinyhumans/src/hosted/billing/README.md
index 938153fe2c..ab1e79e872 100644
--- a/crates/openhuman-tinyhumans/src/hosted/billing/README.md
+++ b/crates/openhuman-tinyhumans/src/hosted/billing/README.md
@@ -16,14 +16,14 @@ Thin RPC adapter domain over the hosted backend's payment API. It exposes plan l
| File | Role |
| --- | --- |
-| `crates/openhuman-tinyhumans/src/hosted/billing/mod.rs` | Export-focused module root; re-exports `ops::*` and the schemas/controllers pair. |
-| `crates/openhuman-tinyhumans/src/hosted/billing/ops.rs` | Business logic: one async fn per backend endpoint; each through `HostedClient` and the SDK's typed `payments()` / `coupons()` clients (`update_auto_recharge` forwards its payload on the SDK's raw primitive because the SDK's `AutoRechargeRequest` lacks `weeklyLimitUsd`); input validation + gateway/plan normalization into the SDK's request enums. Returns `RpcOutcome<Value>`. |
-| `crates/openhuman-tinyhumans/src/hosted/billing/schemas.rs` | Controller schemas, `all_billing_controller_schemas` / `all_billing_registered_controllers`, param structs, and `handle_billing_*` handlers delegating to `ops`. |
-| `crates/openhuman-tinyhumans/src/hosted/billing/schemas_tests.rs` | Sibling test suite for `schemas.rs` (wired via `#[path]` mod). |
+| [`crates/openhuman-tinyhumans/src/hosted/billing/mod.rs`](mod.rs) | Export-focused module root; re-exports `ops::*` and the schemas/controllers pair. |
+| [`crates/openhuman-tinyhumans/src/hosted/billing/ops.rs`](ops.rs) | Business logic: one async fn per backend endpoint; each through `HostedClient` and the SDK's typed `payments()` / `coupons()` clients (`update_auto_recharge` forwards its payload on the SDK's raw primitive because the SDK's `AutoRechargeRequest` lacks `weeklyLimitUsd`); input validation + gateway/plan normalization into the SDK's request enums. Returns `RpcOutcome<Value>`. |
+| [`crates/openhuman-tinyhumans/src/hosted/billing/schemas.rs`](schemas.rs) | Controller schemas, `all_billing_controller_schemas` / `all_billing_registered_controllers`, param structs, and `handle_billing_*` handlers delegating to `ops`. |
+| [`crates/openhuman-tinyhumans/src/hosted/billing/schemas_tests.rs`](schemas_tests.rs) | Sibling test suite for `schemas.rs` (wired via `#[path]` mod). |
## Public surface
-From `mod.rs`:
+From [`mod.rs`](mod.rs):
- `ops::*`: async handlers: `get_summary`, `get_current_plan`, `get_balance`, `get_transactions`, `get_auto_recharge`, `update_auto_recharge`, `get_cards`, `create_setup_intent`, `update_card`, `delete_card`, `purchase_plan`, `create_portal_session`, `top_up_credits`, `create_coinbase_charge`, `redeem_coupon`, `get_user_coupons`. Each takes `&Config` (plus typed params) and returns `Result<Outcome<Value>, String>`.
- `all_billing_controller_schemas()`, `all_billing_registered_controllers()`, `billing_schemas(function: &str)`: registry wiring.
@@ -76,7 +76,7 @@ None of its own; stateless adapter. The only state it reads is the backend crede
## Used by
-- `crates/openhuman-core/src/core/all.rs`: registers `all_billing_registered_controllers()` (controllers, ~L215) and `all_billing_controller_schemas()` (schemas, ~L346) into the global registry. This is the sole in-tree consumer.
+- [`crates/openhuman-core/src/core/all.rs`](../../../../openhuman-core/src/core/all.rs): registers `all_billing_registered_controllers()` (controllers, ~L215) and `all_billing_controller_schemas()` (schemas, ~L346) into the global registry. This is the sole in-tree consumer.
## Notes / gotchas
@@ -85,4 +85,4 @@ None of its own; stateless adapter. The only state it reads is the backend crede
- `amountUsd` must be finite and `> 0` (NaN/±Inf/≤0 rejected pre-HTTP).
- `paymentMethodId` is `urlencoding::encode`'d into the path; empty/whitespace ids are rejected.
- `get_transactions` defaults to `limit=20`, `offset=0`; the handler tolerates an empty params map.
-- Input-validation unit tests live inline in `ops.rs` and run without network/session/filesystem state.
+- Input-validation unit tests live inline in [`ops.rs`](ops.rs) and run without network/session/filesystem state.
diff --git a/crates/openhuman-tinyhumans/src/hosted/referral/README.md b/crates/openhuman-tinyhumans/src/hosted/referral/README.md
index f22d0b5932..4e400e5a46 100644
--- a/crates/openhuman-tinyhumans/src/hosted/referral/README.md
+++ b/crates/openhuman-tinyhumans/src/hosted/referral/README.md
@@ -14,13 +14,13 @@ Thin RPC adapter domain for the referral program. It does **not** own any busine
| File | Role |
| --- | --- |
-| `crates/openhuman-tinyhumans/src/hosted/referral/mod.rs` | Export-only. Re-exports `ops::*` and the schema/controller pair (`all_referral_controller_schemas`, `all_referral_registered_controllers`, `referral_schemas`). |
-| `crates/openhuman-tinyhumans/src/hosted/referral/ops.rs` | Business logic: `get_stats`, `claim_referral`, each through `HostedClient` (see `../client.rs`). Tests in `ops_tests.rs` run against an Axum mock backend. |
-| `crates/openhuman-tinyhumans/src/hosted/referral/schemas.rs` | Controller schemas + `handle_*` fns that load config and delegate to `ops`. Defines `ReferralClaimParams` (camelCase deserialization) and helpers (`to_json`, `deserialize_params`, `json_output`). |
+| [`crates/openhuman-tinyhumans/src/hosted/referral/mod.rs`](mod.rs) | Export-only. Re-exports `ops::*` and the schema/controller pair (`all_referral_controller_schemas`, `all_referral_registered_controllers`, `referral_schemas`). |
+| [`crates/openhuman-tinyhumans/src/hosted/referral/ops.rs`](ops.rs) | Business logic: `get_stats`, `claim_referral`, each through `HostedClient` (see `../client.rs`). Tests in [`ops_tests.rs`](ops_tests.rs) run against an Axum mock backend. |
+| [`crates/openhuman-tinyhumans/src/hosted/referral/schemas.rs`](schemas.rs) | Controller schemas + `handle_*` fns that load config and delegate to `ops`. Defines `ReferralClaimParams` (camelCase deserialization) and helpers (`to_json`, `deserialize_params`, `json_output`). |
## Public surface
-From `mod.rs` re-exports:
+From [`mod.rs`](mod.rs) re-exports:
- `get_stats(config: &Config) -> Result<Outcome<Value>, String>` (via `ops::*`).
- `claim_referral(config: &Config, code: &str, device_fingerprint: Option<&str>) -> Result<Outcome<Value>, String>` (via `ops::*`).
@@ -31,7 +31,7 @@ From `mod.rs` re-exports:
## RPC / controllers
-Two controllers in the `referral` namespace, registered into the global registry via `crates/openhuman-core/src/core/all.rs`:
+Two controllers in the `referral` namespace, registered into the global registry via [`crates/openhuman-core/src/core/all.rs`](../../../../openhuman-core/src/core/all.rs):
| Method | Inputs | Output | Backend call |
| --- | --- | --- | --- |
@@ -55,7 +55,7 @@ None of its own. The domain is stateless — it reads the backend credential thr
## Used by
-- `crates/openhuman-core/src/core/all.rs`: registers `all_referral_registered_controllers()` into the controller registry (line ~213) and `all_referral_controller_schemas()` into the schema list (line ~345), exposing both methods to CLI and JSON-RPC.
+- [`crates/openhuman-core/src/core/all.rs`](../../../../openhuman-core/src/core/all.rs): registers `all_referral_registered_controllers()` into the controller registry (line ~213) and `all_referral_controller_schemas()` into the schema list (line ~345), exposing both methods to CLI and JSON-RPC.
## Notes / gotchas
diff --git a/crates/openhuman-tinyhumans/src/hosted/team/README.md b/crates/openhuman-tinyhumans/src/hosted/team/README.md
index 03d6d7306a..f2a8358619 100644
--- a/crates/openhuman-tinyhumans/src/hosted/team/README.md
+++ b/crates/openhuman-tinyhumans/src/hosted/team/README.md
@@ -16,19 +16,19 @@ Team management RPC adapters. This domain is a **thin proxy to the hosted backen
| File | Role |
| --- | --- |
-| `crates/openhuman-tinyhumans/src/hosted/team/mod.rs` | Export-only: declares `ops`/`schemas`, re-exports all ops fns and the controller-schema pair. |
-| `crates/openhuman-tinyhumans/src/hosted/team/ops.rs` | Business logic: async fns that build a path, attach the session JWT, call the backend, and wrap the response in `Outcome::single_log`. Contains URL-path builder + id-normalization helpers and their unit tests. |
-| `crates/openhuman-tinyhumans/src/hosted/team/schemas.rs` | Controller schemas (`all_team_controller_schemas`, `all_team_registered_controllers`, `team_schemas`), param structs, and `handle_*` adapters that load config, deserialize params, and delegate to `ops`. |
-| `crates/openhuman-tinyhumans/src/hosted/team/schemas_tests.rs` | Sibling test module for `schemas.rs` (wired via `#[path]`). |
+| [`crates/openhuman-tinyhumans/src/hosted/team/mod.rs`](mod.rs) | Export-only: declares `ops`/`schemas`, re-exports all ops fns and the controller-schema pair. |
+| [`crates/openhuman-tinyhumans/src/hosted/team/ops.rs`](ops.rs) | Business logic: async fns that build a path, attach the session JWT, call the backend, and wrap the response in `Outcome::single_log`. Contains URL-path builder + id-normalization helpers and their unit tests. |
+| [`crates/openhuman-tinyhumans/src/hosted/team/schemas.rs`](schemas.rs) | Controller schemas (`all_team_controller_schemas`, `all_team_registered_controllers`, `team_schemas`), param structs, and `handle_*` adapters that load config, deserialize params, and delegate to `ops`. |
+| [`crates/openhuman-tinyhumans/src/hosted/team/schemas_tests.rs`](schemas_tests.rs) | Sibling test module for `schemas.rs` (wired via `#[path]`). |
## Public surface
-Re-exported from `mod.rs`:
+Re-exported from [`mod.rs`](mod.rs):
- **Ops (all `async fn(... ) -> Result<RpcOutcome<Value>, String>`):** `get_usage` (`GET /teams/me/usage` on the SDK, behind the core's shared failure backoff `integrations::client::budget_gate::usage_with_failure_backoff`; the core keeps only the managed-tool pre-call probe), `list_members`, `list_teams`, `get_team`, `create_team`, `update_team`, `delete_team`, `switch_team`, `leave_team`, `join_team`, `create_invite`, `remove_member`, `change_member_role`, `list_invites`, `revoke_invite`.
- **Schemas:** `all_team_controller_schemas`, `all_team_registered_controllers`, `team_schemas`.
-Internal helpers in `ops.rs` (`normalize_id`, `clamp_u32`, `legacy_authed_value`) are private. `create_team` / `delete_team` stay on the core's `BackendClient::authed_json` (`legacy_authed_value`) because the SDK carries no route for `POST /teams` / `DELETE /teams/{teamId}`.
+Internal helpers in [`ops.rs`](ops.rs) (`normalize_id`, `clamp_u32`, `legacy_authed_value`) are private. `create_team` / `delete_team` stay on the core's `BackendClient::authed_json` (`legacy_authed_value`) because the SDK carries no route for `POST /teams` / `DELETE /teams/{teamId}`.
## RPC / controllers
@@ -77,7 +77,7 @@ None local. State lives in the hosted backend. The only stored value it reads is
## Used by
-- `crates/openhuman-core/src/core/all.rs`: registers `all_team_registered_controllers()` into the controller registry and `all_team_controller_schemas()` into the schema list (the standard controller-only exposure path). No domain branches in `cli.rs` / `jsonrpc.rs`.
+- [`crates/openhuman-core/src/core/all.rs`](../../../../openhuman-core/src/core/all.rs): registers `all_team_registered_controllers()` into the controller registry and `all_team_controller_schemas()` into the schema list (the standard controller-only exposure path). No domain branches in `cli.rs` / `jsonrpc.rs`.
## Notes / gotchas
diff --git a/crates/openhuman-tinyhumans/src/hosted/webhooks/README.md b/crates/openhuman-tinyhumans/src/hosted/webhooks/README.md
index 32ee26b80f..8f371920b0 100644
--- a/crates/openhuman-tinyhumans/src/hosted/webhooks/README.md
+++ b/crates/openhuman-tinyhumans/src/hosted/webhooks/README.md
@@ -14,7 +14,7 @@ tunnel provisioning, ownership and bandwidth quotas.
| `webhooks_get_bandwidth` | none | `GET /webhooks/core/bandwidth` |
The `webhooks` namespace is shared with the core: the local webhook router
-(`crates/openhuman-core/src/skills/webhooks/` — `list_registrations`,
+([`crates/openhuman-core/src/skills/webhooks/`](../../../../openhuman-core/src/skills/webhooks/) — `list_registrations`,
`register_echo`, `register_agent`, `trigger_agent`, the debug log ring) stays
in the core because it routes inbound deliveries to skills and agents and
needs no TinyHumans account. These six arrive with
diff --git a/crates/openhuman-tinyhumans/src/jev/README.md b/crates/openhuman-tinyhumans/src/jev/README.md
index c130e13568..694e788e78 100644
--- a/crates/openhuman-tinyhumans/src/jev/README.md
+++ b/crates/openhuman-tinyhumans/src/jev/README.md
@@ -90,25 +90,25 @@ default is 3 s.
| Path | What it does |
| --- | --- |
-| `mod.rs` | `install_jev_ranker()` and the re-exports. |
-| `ranker.rs` | `TinyHumansJevRanker`: per-search config and route resolution, the client cache, the embedding retriever, the `ToolRanker` impl. Test seams: `with_config_loader`, `with_env_loader`, `with_deadline`, `with_config`. |
-| `route.rs` | `JevRoute`, `resolve`, `TYPESAFE_API_KEY_ENV`, `OPENROUTER_API_KEY_ENV`. |
-| `evaluator.rs` | `TinyJevEvaluator`, the System One wire. |
+| [`mod.rs`](mod.rs) | `install_jev_ranker()` and the re-exports. |
+| [`ranker.rs`](ranker.rs) | `TinyHumansJevRanker`: per-search config and route resolution, the client cache, the embedding retriever, the `ToolRanker` impl. Test seams: `with_config_loader`, `with_env_loader`, `with_deadline`, `with_config`. |
+| [`route.rs`](route.rs) | `JevRoute`, `resolve`, `TYPESAFE_API_KEY_ENV`, `OPENROUTER_API_KEY_ENV`. |
+| [`evaluator.rs`](evaluator.rs) | `TinyJevEvaluator`, the System One wire. |
## Key types and entry points
-- `install_jev_ranker()` (`mod.rs`): what `install()` calls.
-- `TinyHumansJevRanker` (`ranker.rs`): the ranker; `kind()` reports
+- `install_jev_ranker()` ([`mod.rs`](mod.rs)): what `install()` calls.
+- `TinyHumansJevRanker` ([`ranker.rs`](ranker.rs)): the ranker; `kind()` reports
`JevRanker::KIND`.
-- `JevRoute` (`route.rs`): the parsed `jev_route` setting.
-- `TinyJevEvaluator` (`evaluator.rs`): reusable on its own with any
+- `JevRoute` ([`route.rs`](route.rs)): the parsed `jev_route` setting.
+- `TinyJevEvaluator` ([`evaluator.rs`](evaluator.rs)): reusable on its own with any
`tinyjevclient::Client`.
## Boundaries
- The generic ranker types (`JevRanker`, `JevEvaluator`, `JevStrategy`,
`JevRankerConfig`) live in
- `vendor/tinyagents/vendor/tinytools/crates/tinytools-jev`
+ [`vendor/tinyagents/vendor/tinytools/crates/tinytools-jev`](../../../../vendor/tinyagents/vendor/tinytools/crates/tinytools-jev/)
(`tinyhumansai/tinytools`). Changes to how Jev is asked, or to family
staging, belong there.
- The `ToolRanker` trait is `tinytools`'. The `tool_search` bridge and its
@@ -117,13 +117,13 @@ default is 3 s.
- `tinyjevclient` is consumed by pinned git revision; this module owns only
the credential, base URL and deadline.
- Config lives in the core: `ToolSearchConfig` in
- `crates/openhuman-core/src/config/schema/agent.rs` (`ranker` is `jev` by
+ [`crates/openhuman-core/src/config/schema/agent.rs`](../../../openhuman-core/src/config/schema/agent.rs) (`ranker` is `jev` by
default, or `auto`, `bm25`, `compare`; plus `jev_route` and
`jev_base_url`).
## Tests
-`ranker_tests.rs`, `route_tests.rs` and `evaluator_tests.rs` sit beside their
+[`ranker_tests.rs`](ranker_tests.rs), [`route_tests.rs`](route_tests.rs) and [`evaluator_tests.rs`](evaluator_tests.rs) sit beside their
modules and use the config and env seams rather than the process
environment. The ranker comparison harness is a separate binary:
`cargo run -p openhuman-cli --bin tool-search-bench`, described in
diff --git a/crates/openhuman-tinyhumans/src/session/README.md b/crates/openhuman-tinyhumans/src/session/README.md
index 1f5e5bced0..8e0e59e800 100644
--- a/crates/openhuman-tinyhumans/src/session/README.md
+++ b/crates/openhuman-tinyhumans/src/session/README.md
@@ -5,8 +5,8 @@ only holds and uses a backend credential (a session JWT, a TinyHumans API key,
or the offline local token). It never obtains, validates, exchanges or
refreshes one. Everything that talks to the backend's `/auth/*` endpoints
lives here instead, shared by the hosts that drive a user login: the Tauri
-shell (`crates/openhuman-app/src/session/`, talking to its core over HTTP
-JSON-RPC) and the TUI (`crates/openhuman-tui/src/session.rs`, holding an
+shell ([`crates/openhuman-app/src/session/`](../../../openhuman-app/src/session/), talking to its core over HTTP
+JSON-RPC) and the TUI ([`crates/openhuman-tui/src/session.rs`](../../../openhuman-tui/src/session.rs), holding an
in-process `CoreRuntime`). This module absorbed the former standalone
`openhuman-session` crate.
@@ -103,14 +103,14 @@ attribution headers from `ClientHeaders` (`x-sdk-name`, plus
| Path | What it does |
| --- | --- |
-| `mod.rs` | Module declarations and re-exports. |
-| `manager.rs` | `SessionManager`, `SessionState`, `SessionEvent`, `SessionError`; the login, store, logout, revalidation and current-user flows. |
-| `client.rs` | `SessionClient` (login-token exchange, `GET /auth/me`, store-time validation), `ClientHeaders`, `SessionClientError`, `FetchMeError`, transient status and phrase classification. |
-| `cache.rs` | `CurrentUserCache`, `CachedUser`, TTL, backoff and fetch-timeout policy. |
-| `link.rs` | `CoreLink`, `CoreAuthState`, the RPC method-name constants, and helpers (`push_credential`, `clear_credential`, `core_auth_state`, `core_session_token`, `resolve_backend_url`, `unwrap_envelope`). |
-| `credential.rs` | `Credential` and `CredentialKind` (`Session`, `ApiKey`, `Local`), `Credential::classify`, and the JWT and profile helpers (`decode_jwt_exp`, `jwt_is_live`, `user_id_from_jwt_claims`, `user_id_from_profile_payload`). |
-| `identity.rs` | Process-global user id (`set_user_id`, `peek_user_id`, `clear`) for Sentry `before_send` hooks that cannot await. Only the id is kept, never a token or profile. |
-| `test_support.rs` | Axum stub backend and stub `CoreLink` for this module's tests (test builds only). |
+| [`mod.rs`](mod.rs) | Module declarations and re-exports. |
+| [`manager.rs`](manager.rs) | `SessionManager`, `SessionState`, `SessionEvent`, `SessionError`; the login, store, logout, revalidation and current-user flows. |
+| [`client.rs`](client.rs) | `SessionClient` (login-token exchange, `GET /auth/me`, store-time validation), `ClientHeaders`, `SessionClientError`, `FetchMeError`, transient status and phrase classification. |
+| [`cache.rs`](cache.rs) | `CurrentUserCache`, `CachedUser`, TTL, backoff and fetch-timeout policy. |
+| [`link.rs`](link.rs) | `CoreLink`, `CoreAuthState`, the RPC method-name constants, and helpers (`push_credential`, `clear_credential`, `core_auth_state`, `core_session_token`, `resolve_backend_url`, `unwrap_envelope`). |
+| [`credential.rs`](credential.rs) | `Credential` and `CredentialKind` (`Session`, `ApiKey`, `Local`), `Credential::classify`, and the JWT and profile helpers (`decode_jwt_exp`, `jwt_is_live`, `user_id_from_jwt_claims`, `user_id_from_profile_payload`). |
+| [`identity.rs`](identity.rs) | Process-global user id (`set_user_id`, `peek_user_id`, `clear`) for Sentry `before_send` hooks that cannot await. Only the id is kept, never a token or profile. |
+| [`test_support.rs`](test_support.rs) | Axum stub backend and stub `CoreLink` for this module's tests (test builds only). |
## Key types and entry points
@@ -134,7 +134,7 @@ attribution headers from `ClientHeaders` (`x-sdk-name`, plus
rather than importing it, so this crate does not depend on
`openhuman-rpc`.
- The core's side of the handoff (`auth.set_credential` and friends) lives in
- `crates/openhuman-core/src/security/credentials/`.
+ [`crates/openhuman-core/src/security/credentials/`](../../../openhuman-core/src/security/credentials/).
- Library and headless hosts that authenticate with an API key do not need
this module; see
[`gitbooks/developing/tinyhumans-api-key.md`](../../../../gitbooks/developing/tinyhumans-api-key.md).
@@ -150,9 +150,9 @@ attribution headers from `ClientHeaders` (`x-sdk-name`, plus
## Tests
-`manager_tests.rs`, `client_tests.rs`, `cache_tests.rs`, `link_tests.rs` and
-`credential_tests.rs` sit beside their modules and drive the flows against
-the axum stub backend and stub `CoreLink` in `test_support.rs`.
+[`manager_tests.rs`](manager_tests.rs), [`client_tests.rs`](client_tests.rs), [`cache_tests.rs`](cache_tests.rs), [`link_tests.rs`](link_tests.rs) and
+[`credential_tests.rs`](credential_tests.rs) sit beside their modules and drive the flows against
+the axum stub backend and stub `CoreLink` in [`test_support.rs`](test_support.rs).
```bash
cargo test -p openhuman-tinyhumans session::
diff --git a/crates/openhuman-tinyhumans/src/transport/README.md b/crates/openhuman-tinyhumans/src/transport/README.md
index e953866c86..af10ac4c60 100644
--- a/crates/openhuman-tinyhumans/src/transport/README.md
+++ b/crates/openhuman-tinyhumans/src/transport/README.md
@@ -47,7 +47,7 @@ keeps no hosted URL or header policy of its own:
### Error mapping
-`map_sdk_error` in `error.rs` maps each `tinyhumans_sdk::Error` variant onto a
+`map_sdk_error` in [`error.rs`](error.rs) maps each `tinyhumans_sdk::Error` variant onto a
`BackendTransportError` variant one for one (`Url`, `Http`, `Status`,
`Header`, `Decode`, `RouteNotExposed`, `Envelope`, with `Other` as a
catch-all), so the core's classifiers in `backend/client.rs` and the
@@ -76,8 +76,8 @@ The core recovers from the two differently (`BackendApiError` variants in
| Path | What it does |
| --- | --- |
-| `mod.rs` | `SdkBackendTransport` and its `BackendTransport` impl. |
-| `error.rs` | `map_sdk_error`, plus the channel-message path parser and the unmatched-route check. |
+| [`mod.rs`](mod.rs) | `SdkBackendTransport` and its `BackendTransport` impl. |
+| [`error.rs`](error.rs) | `map_sdk_error`, plus the channel-message path parser and the unmatched-route check. |
## Key types and entry points
@@ -98,9 +98,9 @@ and RPC, and answers backend-touching calls with
- The port (`BackendTransport`, `BackendRequest`, `BackendTransportError`,
`BaseUrlPurpose`, `TransportProfile`) lives in
- `crates/openhuman-core/src/backend/transport/`. Credential resolution is the
+ [`crates/openhuman-core/src/backend/transport/`](../../../openhuman-core/src/backend/transport/). Credential resolution is the
core's (`security::credentials::session_support`).
-- Routes live in the vendored SDK (`vendor/tinyhumans-sdk`,
+- Routes live in the vendored SDK ([`vendor/tinyhumans-sdk`](../../../../vendor/tinyhumans-sdk/),
`tinyhumansai/tinyhumans-sdk`). A missing backend route goes into the SDK's
route registry and is named from the core; this transport never grows a
route implementation of its own. A route the SDK does not expose fails with
@@ -113,9 +113,9 @@ and RPC, and answers backend-touching calls with
## Tests
-`transport_tests.rs` pins the wire shape against a wiremock backend: bearer
+[`transport_tests.rs`](transport_tests.rs) pins the wire shape against a wiremock backend: bearer
versus `x-api-key`, attribution headers, `Status` and `Envelope` mapping, and
-SDK route refusal. `channel_404_tests.rs` pins the two channel-message 404
+SDK route refusal. [`channel_404_tests.rs`](channel_404_tests.rs) pins the two channel-message 404
cases.
```bash
diff --git a/crates/openhuman-tui/README.md b/crates/openhuman-tui/README.md
index 97bcc91cab..76b0140206 100644
--- a/crates/openhuman-tui/README.md
+++ b/crates/openhuman-tui/README.md
@@ -138,7 +138,7 @@ history, `Ctrl+R` searches it, `Ctrl+W` deletes a word, `Esc` cancels a
running turn, and `Ctrl+C` / `Ctrl+D` quit.
Slash commands (the full list with descriptions is `COMMANDS` in
-`src/composer.rs`): `/help`, `/new`, `/resume`, `/rename`, `/delete`,
+[`src/composer.rs`](src/composer.rs)): `/help`, `/new`, `/resume`, `/rename`, `/delete`,
`/model`, `/permissions`, `/status`, `/usage`, `/agents`, `/skills`, `/mcp`,
`/artifacts`, `/approvals`, `/diff`, `/review`, `/copy`, `/export`, `/clear`,
`/logs`, `/config`, `/settings`, `/logout`, `/quit`. `/diff` runs `git` in the
@@ -148,30 +148,30 @@ agent's action directory and fails cleanly when that is not a repository.
| File | What it does |
| --- | --- |
-| `src/main.rs` | Binary entry: crash reporting, then `run_from_cli`. |
-| `src/lib.rs` | Module declarations and the public surface. |
-| `src/runner.rs` | `run_from_cli`: flags, logging, runtime, core boot, thread resolution. |
-| `src/app.rs` | The `tokio::select!` event loop, key handling, slash commands, overlays, sending and cancelling turns, the file picker and Git diff. |
-| `src/state.rs` | `TranscriptState`, the pure reducer that folds `WebChannelEvent`s into transcript entries. No terminal or I/O dependencies. |
-| `src/ui_state.rs` | `UiState`: active tab, composer, scroll, overlays, Config items and Settings actions. Pure data. |
-| `src/render.rs` | `draw`, a pure view over `TranscriptState` and `UiState`. The Logs tab reads `core::logging::tui_log_lines`. |
-| `src/composer.rs` | The multiline composer: editing, history, command completion, and the `COMMANDS` table. |
-| `src/cockpit.rs` | Overlay types (`OverlayKind`, `Overlay`, `OverlayRow`), pending approval and plan-review records, and JSON helpers; re-exports `openhuman_rpc::unwrap_rpc`. |
-| `src/controls.rs` | Config tab edits (API URL, inference URL, default model, autonomy level, privacy mode) and Settings actions (view account, log in, log out). |
-| `src/session.rs` | `InProcessLink` and the process-wide `SessionManager`. |
-| `src/terminal.rs` | `TerminalGuard` (raw mode, alternate screen, mouse capture, bracketed paste) and a panic hook that restores the terminal first. |
-| `src/crash_reporting.rs` | `init_crash_reporting`, a no-op without the `crash-reporting` feature. |
-| `tests/cli_e2e.rs` | Spawns the built binary to check `--help` output and that flags are validated before the core boots. |
+| [`src/main.rs`](src/main.rs) | Binary entry: crash reporting, then `run_from_cli`. |
+| [`src/lib.rs`](src/lib.rs) | Module declarations and the public surface. |
+| [`src/runner.rs`](src/runner.rs) | `run_from_cli`: flags, logging, runtime, core boot, thread resolution. |
+| [`src/app.rs`](src/app.rs) | The `tokio::select!` event loop, key handling, slash commands, overlays, sending and cancelling turns, the file picker and Git diff. |
+| [`src/state.rs`](src/state.rs) | `TranscriptState`, the pure reducer that folds `WebChannelEvent`s into transcript entries. No terminal or I/O dependencies. |
+| [`src/ui_state.rs`](src/ui_state.rs) | `UiState`: active tab, composer, scroll, overlays, Config items and Settings actions. Pure data. |
+| [`src/render.rs`](src/render.rs) | `draw`, a pure view over `TranscriptState` and `UiState`. The Logs tab reads `core::logging::tui_log_lines`. |
+| [`src/composer.rs`](src/composer.rs) | The multiline composer: editing, history, command completion, and the `COMMANDS` table. |
+| [`src/cockpit.rs`](src/cockpit.rs) | Overlay types (`OverlayKind`, `Overlay`, `OverlayRow`), pending approval and plan-review records, and JSON helpers; re-exports `openhuman_rpc::unwrap_rpc`. |
+| [`src/controls.rs`](src/controls.rs) | Config tab edits (API URL, inference URL, default model, autonomy level, privacy mode) and Settings actions (view account, log in, log out). |
+| [`src/session.rs`](src/session.rs) | `InProcessLink` and the process-wide `SessionManager`. |
+| [`src/terminal.rs`](src/terminal.rs) | `TerminalGuard` (raw mode, alternate screen, mouse capture, bracketed paste) and a panic hook that restores the terminal first. |
+| [`src/crash_reporting.rs`](src/crash_reporting.rs) | `init_crash_reporting`, a no-op without the `crash-reporting` feature. |
+| [`tests/cli_e2e.rs`](tests/cli_e2e.rs) | Spawns the built binary to check `--help` output and that flags are validated before the core boots. |
## Key types and entry points
-- `run_from_cli(args)` (`src/runner.rs`) is the public entry point.
-- `init_crash_reporting()` (`src/crash_reporting.rs`) returns a
+- `run_from_cli(args)` ([`src/runner.rs`](src/runner.rs)) is the public entry point.
+- `init_crash_reporting()` ([`src/crash_reporting.rs`](src/crash_reporting.rs)) returns a
`sentry::ClientInitGuard` that must live for the whole process.
-- `TranscriptState`, `Entry`, `EntryKind` (`src/state.rs`) are exported so the
+- `TranscriptState`, `Entry`, `EntryKind` ([`src/state.rs`](src/state.rs)) are exported so the
reducer can be tested without a terminal. `apply_event` is the single
transition entry point.
-- `app::run` (`src/app.rs`) owns the loop; `LaunchOptions` carries the initial
+- `app::run` ([`src/app.rs`](src/app.rs)) owns the loop; `LaunchOptions` carries the initial
prompt, `resume_picker` and `no_alt_screen`.
## Core methods used
@@ -223,7 +223,7 @@ All calls go through `CoreRuntime::invoke`:
## Tests
Unit tests are `*_tests.rs` siblings (`state_tests.rs` needs no terminal).
-`tests/cli_e2e.rs` spawns the built binary.
+[`tests/cli_e2e.rs`](tests/cli_e2e.rs) spawns the built binary.
```bash
cargo test -p openhuman-tui
@@ -232,7 +232,7 @@ cargo test -p openhuman-tui
## Packaging
`openhuman-tui` ships alongside `openhuman-core` in the CLI tarball
-(`scripts/release/package-cli-tarball.sh`) and the apt packages
-(`scripts/release/build-apt-packages.sh`).
+([`scripts/release/package-cli-tarball.sh`](../../scripts/release/package-cli-tarball.sh)) and the apt packages
+([`scripts/release/build-apt-packages.sh`](../../scripts/release/build-apt-packages.sh)).
[ratatui]: https://ratatui.rs