Skip to content

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

chore: files changed scripts/ci/README.md,scripts/ci/check-saas-ambient.mjs,scripts/ci/saas-ambient-

Steven Enamakel9ff69698e4c0
diff --git a/scripts/ci/README.md b/scripts/ci/README.md
index 0e71120e93..d574e3f6a1 100644
--- a/scripts/ci/README.md
+++ b/scripts/ci/README.md
@@ -17,7 +17,7 @@ authoritative spec; this is an index so a CI failure log points somewhere.
| [`rust-coverage.sh`](rust-coverage.sh) | Runs the complete product-feature Rust suite under `cargo-llvm-cov`, including every core integration target and the root Rust support crates. |
| [`assert-coverage-presence.sh`](assert-coverage-presence.sh) + [`coverage-presence-allowlist.txt`](coverage-presence-allowlist.txt) | Fails when an eligible Rust source file produced no lcov records at all, meaning the full product suite never compiled it (openhuman#5593). Allowlist entries must document, inline, which gate excludes the file and why that's intended. |
| [`list-feature-gated-rust-tests.mjs`](list-feature-gated-rust-tests.mjs) | Prints every file under `crates/openhuman-core/src` that carries tests behind a product feature gate (`voice`, `media`, `web3`, `meet`, `mcp`, `skills`, `flows`, `channels`, `contacts`). `ci-lite.yml`'s `rust-feature-gate-smoke` job diffs the output against a checked-in EXPECTED list so a new gated test file forces the gate-contract test filters to be reviewed (#5022). |
-| [`check-saas-ambient.mjs`](check-saas-ambient.mjs) + [`saas-ambient-baseline.json`](saas-ambient-baseline.json) (`pnpm saas:ambient`) | Ratchets code in `crates/openhuman-core/src` that reaches past a SaaS user agent's `CoreContext`: bare `tokio::spawn` / `spawn_blocking` / `std::thread::spawn` (use `core::runtime::spawn_scoped`), direct `Config::load_or_init`, `env::set_var` / `remove_var`, and `home_dir()`. Each existing site is baselined exactly; a new one fails, and a fixed one must be removed with `--write-baseline`. |
+| [`check-saas-ambient.mjs`](check-saas-ambient.mjs) + [`saas-ambient-baseline.json`](saas-ambient-baseline.json) (`pnpm saas:ambient`) | Ratchets code in `crates/openhuman-core/src` that reaches past a SaaS user agent's `CoreContext`: bare `tokio::spawn` / `spawn_blocking` / `std::thread::spawn` (use `DispatchCtx::spawn` / `spawn_blocking`), direct `Config::load_or_init`, `env::set_var` / `remove_var`, and `home_dir()`. Each existing site is baselined exactly; a new one fails, and a fixed one must be removed with `--write-baseline`. |
| [`orch-ip-gate.sh`](orch-ip-gate.sh) | Blocks the server-side orchestration "brain" (reasoning/wake graph, its prompts, per-agent model-selection metadata) from re-entering this open client repo. |
The complete Rust and frontend coverage suites feed the PR CI Gate's
diff --git a/scripts/ci/check-saas-ambient.mjs b/scripts/ci/check-saas-ambient.mjs
index 5b5731a8c5..1b6e44ffb6 100644
--- a/scripts/ci/check-saas-ambient.mjs
+++ b/scripts/ci/check-saas-ambient.mjs
@@ -10,7 +10,7 @@
//
// Rules (non-test Rust under crates/openhuman-core/src):
// bare-spawn tokio::spawn / tokio::task::spawn / spawn_blocking /
-// std::thread::spawn — use core::runtime::spawn_scoped
+// std::thread::spawn — use DispatchCtx::spawn
// ambient-config Config::load_or_init( — use load_config_with_timeout or
// the config you were handed
// env-mutation std::env::set_var / remove_var — process-wide
@@ -42,7 +42,7 @@ export const RULES = [
rule: "bare-spawn",
pattern:
/\b(?:tokio::spawn|tokio::task::spawn|tokio::task::spawn_blocking|std::thread::spawn)\s*\(/,
- hint: "spawn through core::runtime::spawn_scoped / spawn_blocking_scoped",
+ hint: "spawn through DispatchCtx::spawn / spawn_blocking, or justify a baselined bare spawn",
},
{
rule: "ambient-config",
diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.json
index 931446b887..08a4a4db5b 100644
--- a/scripts/ci/saas-ambient-baseline.json
+++ b/scripts/ci/saas-ambient-baseline.json
@@ -114,7 +114,7 @@
{
"rule": "home-dir",
"path": "crates/openhuman-core/src/channels/host/adapters.rs",
- "line": 287,
+ "line": 289,
"text": ".map(|u| u.home_dir().to_path_buf())",
"occurrence": 1
},
@@ -125,6 +125,20 @@
"text": "core_context: crate::core::runtime::CoreContext::current(),",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs",
+ "line": 27,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs",
+ "line": 46,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 2
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs",
@@ -146,6 +160,13 @@
"text": "let config = match Config::load_or_init().await {",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/channels/runtime/session.rs",
+ "line": 112,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
+ },
{
"rule": "ambient-context",
"path": "crates/openhuman-core/src/channels/runtime/startup/callback.rs",
@@ -153,6 +174,13 @@
"text": "core_context: crate::core::runtime::CoreContext::current(),",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/channels/tests/runtime_dispatch.rs",
+ "line": 366,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/config/migrations/mod.rs",
@@ -429,7 +457,7 @@
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/core/runtime/subscribers.rs",
- "line": 177,
+ "line": 179,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
@@ -506,7 +534,7 @@
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs",
- "line": 572,
+ "line": 577,
"text": "tokio::spawn(async move { while rx.recv().await.is_some() {} });",
"occurrence": 1
},
@@ -608,24 +636,87 @@
"text": "let config = crate::config::Config::load_or_init()",
"occurrence": 4
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/inference/tokenjuice/repl_tools.rs",
+ "line": 290,
+ "text": "let read = tokio::task::spawn_blocking(move || {",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/integrations/composio/bus/config_changed_subscriber.rs",
- "line": 65,
+ "line": 74,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/integrations/composio/bus/connection_created_subscriber.rs",
- "line": 93,
+ "line": 98,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs",
- "line": 186,
+ "line": 190,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
+ "line": 34,
+ "text": "tokio::task::spawn_blocking(move || marker_docs.legacy_imported(name))",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
+ "line": 57,
+ "text": "tokio::task::spawn_blocking(move || docs.import_if_absent(name, value))",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
+ "line": 81,
+ "text": "tokio::task::spawn_blocking(move || docs.load(name))",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
+ "line": 106,
+ "text": "tokio::task::spawn_blocking(move || docs.update(name, change))",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
+ "line": 126,
+ "text": "tokio::task::spawn_blocking(move || docs.save(name, &value))",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/composio/trigger_history.rs",
+ "line": 90,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/composio/trigger_history.rs",
+ "line": 160,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 2
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/integrations/task_sources/periodic.rs",
+ "line": 84,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
@@ -706,10 +797,17 @@
"text": "let _ = std::thread::spawn(move || {",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/mcp/ui/tools.rs",
+ "line": 113,
+ "text": "tokio::task::spawn_blocking(move || {",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/memory/backfill.rs",
- "line": 249,
+ "line": 253,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
@@ -720,6 +818,13 @@
"text": "let counts = tokio::task::spawn_blocking(move || count_legacy(&workspace_dir))",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/memory/lifecycle/prefetch.rs",
+ "line": 174,
+ "text": "let _ = tokio::task::spawn_blocking(move || {",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/modules/boot.rs",
@@ -727,6 +832,41 @@
"text": "tokio::spawn(async move {",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/modules/storage_host_endpoint.rs",
+ "line": 105,
+ "text": "relay.bridge = Some(tokio::spawn(async move {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/modules/storage_import_tinyconnectors.rs",
+ "line": 95,
+ "text": "tokio::task::spawn_blocking(move || read_legacy(&prefs_dir, &triggers_dir))",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/modules/storage_import_tinyjuice.rs",
+ "line": 96,
+ "text": "tokio::task::spawn_blocking(move || read_originals(&dir, now))",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/modules/storage_import_tinymcp.rs",
+ "line": 113,
+ "text": "tokio::task::spawn_blocking(move || -> Result<_> {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/modules/storage_import_tinywallet.rs",
+ "line": 69,
+ "text": "let (records, skipped) = tokio::task::spawn_blocking(move || -> Result<_> {",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/platform/doctor/ops.rs",
@@ -769,6 +909,20 @@
"text": "let handle = tokio::spawn(async move {",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/profiles/background.rs",
+ "line": 44,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/profiles/lease.rs",
+ "line": 194,
+ "text": "tokio::spawn(renewals);",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/sandbox/native_jail.rs",
@@ -905,7 +1059,7 @@
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/skills/runtime/run_machinery.rs",
- "line": 220,
+ "line": 223,
"text": "let bridge = tokio::spawn(run_log::drain_to_log(rx, log_path.clone()));",
"occurrence": 1
},
@@ -940,7 +1094,7 @@
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/skills/webhooks/bus.rs",
- "line": 130,
+ "line": 133,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
@@ -951,6 +1105,20 @@
"text": "tokio::task::spawn_blocking(do_write);",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/storage/blob_sweep.rs",
+ "line": 177,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/storage/import/mod.rs",
+ "line": 194,
+ "text": "tokio::task::spawn_blocking(move || run_all(&backend, &config)).await;",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/storage/import_claim.rs",
@@ -1000,6 +1168,20 @@
"text": "let spend = tokio::task::spawn_blocking(move || thread_spend_in(locator.as_ref(), &thread_id))",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/tinymemes/callbacks.rs",
+ "line": 260,
+ "text": "match tokio::task::spawn_blocking(move || docs::load(&config, kind)).await {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/tinymemes/callbacks.rs",
+ "line": 275,
+ "text": "match tokio::task::spawn_blocking(move || {",
+ "occurrence": 1
+ },
{
"rule": "ambient-config",
"path": "crates/openhuman-core/src/tools/impl/document/engine.rs",
@@ -1035,6 +1217,13 @@
"text": "crate::core::runtime::context::CoreContext::current().map(|c| c.tool_groups()),",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/voice/always_on/capture.rs",
+ "line": 28,
+ "text": "let task = tokio::spawn(async move {",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/voice/always_on/lock_watcher.rs",
@@ -1077,6 +1266,20 @@
"text": "tokio::spawn(async move {",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/voice/server/hotkey_listener.rs",
+ "line": 124,
+ "text": "let task = tokio::spawn(async move {",
+ "occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/voice/server/hotkey_listener.rs",
+ "line": 347,
+ "text": "let task = tokio::spawn(async move {",
+ "occurrence": 2
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/voice/server/singleton.rs",
@@ -1143,7 +1346,7 @@
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/web_chat/ops/start_chat.rs",
- "line": 504,
+ "line": 505,
"text": "let handle = tokio::spawn(crate::core::runtime::context::CoreContext::propagate(",
"occurrence": 1
},
@@ -1154,6 +1357,13 @@
"text": "tokio::spawn(async move {",
"occurrence": 1
},
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/web_chat/ops/state.rs",
+ "line": 223,
+ "text": "let handle = tokio::spawn(async move { watched.cancelled().await });",
+ "occurrence": 1
+ },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/web_chat/ops/system_turn.rs",
@@ -1174,5 +1384,12 @@
"line": 87,
"text": "tokio::spawn(crate::core::runtime::context::CoreContext::propagate(",
"occurrence": 1
+ },
+ {
+ "rule": "bare-spawn",
+ "path": "crates/openhuman-core/src/web_chat/turn_activity.rs",
+ "line": 292,
+ "text": "tokio::spawn(async move {",
+ "occurrence": 1
}
]