The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(ci): document the crate chain check and rpc forwarding
Steven Enamakel1ec0b5bb8797
diff --git a/scripts/ci/README.md b/scripts/ci/README.mdindex 577242e51b..6b703e222f 100644--- a/scripts/ci/README.md+++ b/scripts/ci/README.md@@ -7,7 +7,8 @@ authoritative spec; this is an index so a CI failure log points somewhere.| File | Checks || --- | --- || `check-openhuman-rust-layout.mjs` (`pnpm rust:layout`) | Every file under `crates/openhuman-core/src` stays under a 750-line ceiling, warning (without failing) past 725; oversized files are pinned at their exact size in `LEGACY_LIMIT_ENTRIES`, once each, and a pinned file that shrinks must lower or drop its pin; forbids inline `#[cfg(test)] mod` blocks and `tests.rs`/`test.rs` filenames; and asserts every root `tests/*.rs` / `examples/*.rs` has a matching `[[test]]`/`[[example]]` entry in `crates/openhuman-core/Cargo.toml`. |-| `check-feature-forwarding.mjs` | The Tauri shell (`crates/openhuman-app/Cargo.toml`, which sets `default-features = false`) forwards exactly the gates in `product-features.txt` — no more, no less — and the library chain that re-declares the core's gates (`openhuman-embed` → `openhuman-tinyhumans` → `openhuman-cli`) forwards every one of them, by target and not just by name. Logic lives in `scripts/lib/feature-forwarding.mjs` (openhuman#4919, openhuman#6364). |+| `check-feature-forwarding.mjs` | The Tauri shell (`crates/openhuman-app/Cargo.toml`, which sets `default-features = false`) forwards exactly the gates in `product-features.txt` — no more, no less — and the library chain that re-declares the core's gates (`openhuman-embed` → `openhuman-tinyhumans` → `openhuman-rpc` → `openhuman-cli` / `openhuman-tui`) forwards every one of them, by target and not just by name. The shell's list is read from its `openhuman-rpc` dependency. Logic lives in `scripts/lib/feature-forwarding.mjs` (openhuman#4919, openhuman#6364). |+| `check-crate-chain.mjs` | The crate chain holds: each OpenHuman crate's normal dependencies name only the layer below it (core: none; embed: core; tinyhumans: embed; rpc: tinyhumans; app/cli/tui: rpc), and host `src/` never names `__host`, `core_host` or `openhuman_core::`. Dev-dependencies are exempt. Runs as part of `pnpm rust:layout`. || `product-features.txt` / `product-features.sh` | Source of truth for the shipped desktop product's Cargo feature gates, distinct from `[features] default` (the contributor build). The `.sh` prints them comma-separated for `cargo --features "$(scripts/ci/product-features.sh)"`. || `check-module-pins.mjs` + `module-pin-exemptions.json` | A loadable module's registry pin (`crates/openhuman-core/src/modules/registry.rs`) and its `vendor/*` submodule pin must describe the same release (openhuman#5727). The exemptions file records known, expected drift — not a way to silence the gate. Logic lives in `scripts/lib/module-pins.mjs`. || `check-submodule-monotonic.mjs` | A `vendor/*` submodule pin may never move backwards onto a commit that is an ancestor of what the base branch already has. |diff --git a/scripts/ci/product-features.txt b/scripts/ci/product-features.txtindex 257911d6a6..b21a1d7fe1 100644--- a/scripts/ci/product-features.txt+++ b/scripts/ci/product-features.txt@@ -11,7 +11,8 @@# scripts/ci/product-features.sh, so they keep compiling and testing the# code the product actually ships even though `default` no longer does.#-# Why the split (#4901, #4919): the shell declares `openhuman_core` with+# Why the split (#4901, #4919): the shell declares its core dependency (now+# `openhuman-rpc`, which forwards each gate down the chain to the core) with# `default-features = false`, so it never inherited `default` anyway. Before# this file, the guard worked by diffing the shell's list against `default` —# which meant SHRINKING `default` made the guard pass vacuously and silently