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): arm scripts lane for storage bypass checks
Steven Enamakel5de1c4e5e678
diff --git a/.github/ci-paths-filter.yml b/.github/ci-paths-filter.ymlindex e469db2e8a..b4270885e3 100644--- a/.github/ci-paths-filter.yml+++ b/.github/ci-paths-filter.yml@@ -145,6 +145,10 @@ scripts:- 'scripts/ci/self-hosted/**'- 'scripts/ci/check-module-boundaries.mjs'- 'scripts/ci/module-boundaries.json'+ - 'scripts/ci/check-storage-bypass.mjs'+ - 'scripts/ci/storage-bypass-debt.mjs'+ - 'scripts/ci/storage-bypass*.json'+ - 'scripts/ci/storage-bypass*.md'- 'scripts/mock-api/**'- 'scripts/*.mjs'- 'scripts/__tests__/**'diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjsindex a5bc62d3d4..fbba17b8c3 100644--- a/scripts/__tests__/self-hosted-lanes.test.mjs+++ b/scripts/__tests__/self-hosted-lanes.test.mjs@@ -715,12 +715,19 @@ test("storage-bypass runs under cancellation supervision in both profiles", () =});test("storage checker and debt policy changes arm their own scripts lane", () => {- const filters = fs.readFileSync(path.join(repoRoot, ".github/ci-paths-filter.yml"), "utf8");+ const filters = fs.readFileSync(+ path.join(repoRoot, ".github/ci-paths-filter.yml"),+ "utf8",+ );const scripts = filters.split(/^scripts:\s*$/m)[1].split(/^\S[^\n]*:/m)[0];for (const pattern of ["scripts/ci/check-storage-bypass.mjs","scripts/ci/storage-bypass-debt.mjs","scripts/ci/storage-bypass*.json","scripts/ci/storage-bypass*.md",- ]) assert.ok(scripts.includes(`'${pattern}'`), `${pattern} must arm the scripts area`);+ ])+ assert.ok(+ scripts.includes(`'${pattern}'`),+ `${pattern} must arm the scripts area`,+ );});diff --git a/scripts/__tests__/storage-bypass-debt.test.mjs b/scripts/__tests__/storage-bypass-debt.test.mjsindex f7c1a3a3eb..f94863df7c 100644--- a/scripts/__tests__/storage-bypass-debt.test.mjs+++ b/scripts/__tests__/storage-bypass-debt.test.mjs@@ -152,12 +152,16 @@ test("quoted database opener examples do not count as host persistence", () => {);});-test("duplicate original core identities cannot inflate the retained baseline", () => {const core = { ...row, path: "crates/openhuman-core/src/state.rs" };- assert.match(validateCoverageDebt([core], [core, core], [], {- baseline: [core], extension: [], findings: [core],- }).join("\n"), /Duplicate core baseline record/);+ assert.match(+ validateCoverageDebt([core], [core, core], [], {+ baseline: [core],+ extension: [],+ findings: [core],+ }).join("\n"),+ /Duplicate core baseline record/,+ );});test("real checkouts refuse missing curated vendor source instead of shrinking debt", async () => {diff --git a/scripts/ci/check-storage-bypass.mjs b/scripts/ci/check-storage-bypass.mjsindex 53b3496736..054510b56a 100755--- a/scripts/ci/check-storage-bypass.mjs+++ b/scripts/ci/check-storage-bypass.mjs@@ -222,7 +222,8 @@ async function rustFiles(dir, required = false) {await readFile(dir);return [dir];} catch (error) {- if (required) throw new Error("Missing curated source: " + dir, { cause: error });+ if (required)+ throw new Error("Missing curated source: " + dir, { cause: error });return [];}}@@ -230,7 +231,8 @@ async function rustFiles(dir, required = false) {try {entries = await readdir(dir, { withFileTypes: true });} catch (error) {- if (required) throw new Error("Missing curated source: " + dir, { cause: error });+ if (required)+ throw new Error("Missing curated source: " + dir, { cause: error });return out;}for (const entry of entries) {@@ -249,10 +251,18 @@ export async function collectFindings(root, { includeAllowed = false } = {}) {.map((e) => resolve(scanRoot, e.name, "src"));let realCheckout = false;try {- realCheckout = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd: root, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim() === resolve(root);+ realCheckout =+ execFileSync("git", ["rev-parse", "--show-toplevel"], {+ cwd: root,+ encoding: "utf8",+ stdio: ["ignore", "pipe", "pipe"],+ }).trim() === resolve(root);} catch {}- const files = (await Promise.all(roots.map((path) => rustFiles(path)))).flat();- for (const path of CURATED_VENDOR_ROOTS) files.push(...await rustFiles(resolve(root, path), realCheckout));+ const files = (+ await Promise.all(roots.map((path) => rustFiles(path)))+ ).flat();+ for (const path of CURATED_VENDOR_ROOTS)+ files.push(...(await rustFiles(resolve(root, path), realCheckout)));for (const path of files) {const rel = relative(root, path).split(sep).join("/");if (isTestFile(rel)) continue;diff --git a/scripts/ci/storage-bypass-debt.mjs b/scripts/ci/storage-bypass-debt.mjsindex f243a1a97d..8fdf0af8b0 100644--- a/scripts/ci/storage-bypass-debt.mjs+++ b/scripts/ci/storage-bypass-debt.mjs@@ -17,7 +17,8 @@ export function validateCoverageDebt(findings, baseline, extension, history) {const coreSeen = new Set();for (const record of baseline) {const id = key(record);- if (coreSeen.has(id)) errors.push("Duplicate core baseline record: " + record.path);+ if (coreSeen.has(id))+ errors.push("Duplicate core baseline record: " + record.path);coreSeen.add(id);if (!original(record))errors.push(