Skip to content

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

feat(ci): add saas ambient ratchet lane

Steven Enamakel1677554455af
diff --git a/.github/ci-paths-filter.yml b/.github/ci-paths-filter.yml
index dbcdba2d09..d6ebe4db2b 100644
--- a/.github/ci-paths-filter.yml
+++ b/.github/ci-paths-filter.yml
@@ -71,6 +71,8 @@ rust-core:
- 'scripts/ci/check-openhuman-rust-layout.mjs'
- 'scripts/ci/check-agent-runtime-boundary.mjs'
- 'scripts/ci/agent-runtime-boundary-baseline.json'
+ - 'scripts/ci/check-saas-ambient.mjs'
+ - 'scripts/ci/saas-ambient-baseline.json'
# The ignored-test ratchet lives in rust-quality. Its checker and
# its baseline must arm that lane themselves, or a PR that raises
# the baseline skips the only gate that reads it.
diff --git a/package.json b/package.json
index 0d0951d9a5..bc6cfa9e85 100644
--- a/package.json
+++ b/package.json
@@ -60,6 +60,7 @@
"rust:ignored-tests": "node scripts/ci/check-ignored-tests.mjs",
"dep:audit": "bash scripts/dep-audit/run.sh",
"agent:runtime-boundary": "node scripts/ci/check-agent-runtime-boundary.mjs",
+ "saas:ambient": "node scripts/ci/check-saas-ambient.mjs",
"typecheck": "pnpm --filter openhuman-app compile",
"tauri:ios:init": "bash scripts/ios-init.sh",
"tauri:ios:dev": "pnpm --filter openhuman-app tauri:ios:dev",
diff --git a/scripts/ci/README.md b/scripts/ci/README.md
index 577242e51b..469eb5cb2d 100644
--- a/scripts/ci/README.md
+++ b/scripts/ci/README.md
@@ -15,6 +15,7 @@ authoritative spec; this is an index so a CI failure log points somewhere.
| `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` + `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` | 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` + `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`. |
| `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/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjs
index 71e5242cd6..396d4dfc76 100644
--- a/scripts/ci/self-hosted/lanes-plan.mjs
+++ b/scripts/ci/self-hosted/lanes-plan.mjs
@@ -150,6 +150,11 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
when: core,
run: "pnpm agent:runtime-boundary",
},
+ {
+ name: "saas-ambient",
+ when: core,
+ run: "pnpm saas:ambient",
+ },
{
name: "ignored-tests-ratchet",
when: rust,