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
chore(ci): narrow saas ambient exemption to bare spawns
Steven Enamakel1fb883e4cbd1
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex 312a23742e..5252cd3ffc 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -83,8 +83,6 @@ fn active_domain_set() -> Option<crate::core::runtime::DomainSet> {/// (full, no filter) so pre-boot unit tests and non-context callers see every/// domain, exactly as before #4796.fn group_allowed(group: DomainGroup) -> bool {- // No context: everything but the operator plane, which only a SaaS- // `DomainSet` opens.active_domain_set().map_or(group != DomainGroup::Operator, |s| s.allows(group))}diff --git a/scripts/ci/check-saas-ambient.mjs b/scripts/ci/check-saas-ambient.mjsindex 4fb58aecc0..5c7be1b1fe 100644--- a/scripts/ci/check-saas-ambient.mjs+++ b/scripts/ci/check-saas-ambient.mjs@@ -57,9 +57,9 @@ export const RULES = [},];-// The helpers that implement the scoped forms are the one place the bare-// forms belong.-const EXEMPT_FILES = new Set([+// The helpers that implement the scoped spawns are the one place a bare+// spawn belongs. Every other rule still applies to them.+const BARE_SPAWN_EXEMPT = new Set(["crates/openhuman-core/src/core/runtime/spawn.rs",]);@@ -136,8 +136,11 @@ async function main() {const findings = [];for (const path of await rustFiles(scanRoot)) {const rel = relative(repoRoot, path).split(sep).join("/");- if (isTestFile(rel) || EXEMPT_FILES.has(rel)) continue;- findings.push(...scan(rel, await readFile(path, "utf8")));+ if (isTestFile(rel)) continue;+ const found = scan(rel, await readFile(path, "utf8"));+ findings.push(+ ...(BARE_SPAWN_EXEMPT.has(rel) ? found.filter((f) => f.rule !== "bare-spawn") : found),+ );}if (writeBaseline) {@@ -179,6 +182,6 @@ async function main() {return 1;}-if (import.meta.url === `file://${process.argv[1]}`) {+if (fileURLToPath(import.meta.url) === resolve(process.argv[1] ?? "")) {process.exit(await main());}