Skip to content

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

test(saas-ambient): cover unbaselined ambient config reads

Steven Enamakel88ad7411d8bb
diff --git a/scripts/__tests__/saas-ambient.test.mjs b/scripts/__tests__/saas-ambient.test.mjs
index 66d1bad168..b0cde05c18 100644
--- a/scripts/__tests__/saas-ambient.test.mjs
+++ b/scripts/__tests__/saas-ambient.test.mjs
@@ -99,6 +99,10 @@ test("passes on a matching baseline and skips test files and test support helper
{ path: `${SRC}/inference/provider/catalog_listing.rs`, rule: "ambient-config" },
],
);
+ const unbaselined = run(files, []);
+ assert.equal(unbaselined.status, 1, "production ambient config reads still fail");
+ assert.match(unbaselined.out, /ambient-config: crates\/openhuman-core\/src\/inference\/provider\/catalog_listing\.rs:1/);
+ assert.doesNotMatch(unbaselined.out, /model_listing_test_support\.rs/);
const again = run(files, first.after);
assert.equal(again.status, 0, again.out);
assert.match(again.out, /ratchet holds \(2 /);
diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.json
index a458d62719..937dadad69 100644
--- a/scripts/ci/saas-ambient-baseline.json
+++ b/scripts/ci/saas-ambient-baseline.json
@@ -405,13 +405,6 @@
"text": "tokio::spawn(async move { while rx.recv().await.is_some() {} });",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/inference/host_runtime/ops/runtime_ops.rs",
- "line": 32,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
{
"rule": "ambient-config",
"path": "crates/openhuman-core/src/inference/http/backend.rs",
@@ -440,13 +433,6 @@
"text": "crate::core::runtime::context::CoreContext::current()",
"occurrence": 1
},
- {
- "rule": "ambient-config",
- "path": "crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rs",
- "line": 84,
- "text": "let config = crate::config::Config::load_or_init()",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/inference/schemas/claude_code_handlers.rs",