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): add runtime boundary baseline entry
Steven Enamakelc7570c2a901f
diff --git a/scripts/__tests__/agent-runtime-boundary-baseline.test.mjs b/scripts/__tests__/agent-runtime-boundary-baseline.test.mjsnew file mode 100644index 0000000000..1919201307--- /dev/null+++ b/scripts/__tests__/agent-runtime-boundary-baseline.test.mjs@@ -0,0 +1,45 @@+import assert from "node:assert/strict";+import { readFile } from "node:fs/promises";+import test from "node:test";++const root = new URL("../../", import.meta.url);+const baselineUrl = new URL(+ "scripts/ci/agent-runtime-boundary-baseline.json",+ root,+);+const sourceUrl = new URL(+ "crates/openhuman-core/src/inbound/pinned.rs",+ root,+);++const identity = ({ rule, path, text, occurrence }) =>+ `${rule}\0${path}\0${text}\0${occurrence}`;++test("inbound turn-origin scope is the only pinned task-local exemption", async () => {+ const baseline = JSON.parse(await readFile(baselineUrl, "utf8"));+ const source = await readFile(sourceUrl, "utf8");+ const finding = {+ rule: "openhuman-task-local",+ path: "crates/openhuman-core/src/inbound/pinned.rs",+ line: 97,+ text: "let outcome = crate::security::turn_origin::with_origin(",+ occurrence: 1,+ };++ assert.equal(source.split("\n")[96].trim(), finding.text);+ assert.equal(+ baseline.filter((entry) => identity(entry) === identity(finding)).length,+ 1,+ );++ for (const unreviewed of [+ { ...finding, path: "crates/openhuman-core/src/inbound/other.rs" },+ { ...finding, text: "crate::security::turn_origin::with_origin(" },+ { ...finding, text: "crate::security::turn_origin::capture()" },+ ]) {+ assert.equal(+ baseline.some((entry) => identity(entry) === identity(unreviewed)),+ false,+ );+ }+});diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.jsonindex 8bb32f2ee4..0fd7211a69 100644--- a/scripts/ci/agent-runtime-boundary-baseline.json+++ b/scripts/ci/agent-runtime-boundary-baseline.json@@ -1,4 +1,11 @@[+ {+ "rule": "openhuman-task-local",+ "path": "crates/openhuman-core/src/inbound/pinned.rs",+ "line": 97,+ "text": "let outcome = crate::security::turn_origin::with_origin(",+ "occurrence": 1+ },{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent_runs/schemas.rs",