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: files changed scripts/ci/check-storage-bypass.mjs,scripts/ci/storage-bypass-debt.mjs,scripts/
Steven Enamakel8b817396c3ab
diff --git a/scripts/ci/check-storage-bypass.mjs b/scripts/ci/check-storage-bypass.mjsindex e6333341f2..53b3496736 100755--- a/scripts/ci/check-storage-bypass.mjs+++ b/scripts/ci/check-storage-bypass.mjs@@ -215,25 +215,27 @@ export function compare(findings, baseline) {};}-async function rustFiles(dir) {+async function rustFiles(dir, required = false) {const out = [];if (dir.endsWith(".rs")) {try {await readFile(dir);return [dir];- } catch {+ } catch (error) {+ if (required) throw new Error("Missing curated source: " + dir, { cause: error });return [];}}let entries;try {entries = await readdir(dir, { withFileTypes: true });- } catch {+ } catch (error) {+ if (required) throw new Error("Missing curated source: " + dir, { cause: error });return out;}for (const entry of entries) {const path = resolve(dir, entry.name);- if (entry.isDirectory()) out.push(...(await rustFiles(path)));+ if (entry.isDirectory()) out.push(...(await rustFiles(path, required)));else if (entry.name.endsWith(".rs")) out.push(path);}return out.sort();@@ -245,8 +247,13 @@ export async function collectFindings(root, { includeAllowed = false } = {}) {const roots = (await readdir(scanRoot, { withFileTypes: true })).filter((e) => e.isDirectory()).map((e) => resolve(scanRoot, e.name, "src"));- roots.push(...CURATED_VENDOR_ROOTS.map((p) => resolve(root, p)));- for (const path of (await Promise.all(roots.map(rustFiles))).flat()) {+ let realCheckout = false;+ try {+ 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));+ for (const path of files) {const rel = relative(root, path).split(sep).join("/");if (isTestFile(rel)) continue;const found = scan(rel, await readFile(path, "utf8"));diff --git a/scripts/ci/storage-bypass-debt.mjs b/scripts/ci/storage-bypass-debt.mjsindex 8ef86a657d..f243a1a97d 100644--- a/scripts/ci/storage-bypass-debt.mjs+++ b/scripts/ci/storage-bypass-debt.mjs@@ -14,11 +14,16 @@ export function validateCoverageDebt(findings, baseline, extension, history) {const errors = [];const actual = new Set(findings.map(key));const seen = new Set();- for (const record of baseline)+ 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);+ coreSeen.add(id);if (!original(record))errors.push(`Core baseline cannot accept extended coverage: ${record.path}`,);+ }for (const record of extension) {const id = key(record);if (seen.has(id)) errors.push(`Duplicate extension record: ${record.path}`);diff --git a/scripts/ci/storage-bypass-extension.json b/scripts/ci/storage-bypass-extension.jsonindex 7fe1bd68fb..57e9352f67 100644--- a/scripts/ci/storage-bypass-extension.json+++ b/scripts/ci/storage-bypass-extension.json@@ -535,9 +535,9 @@"line": 277,"text": "fs::rename(&tmp_path, &self.path).context(\"rename auth profile tmp -> store\")","occurrence": 1,- "classification": "machine",- "reason": "Desktop profile directory archive/rollback lifecycle operation; backend purge and ownership/drain authority are separate.",- "issue": "https://github.com/tinyhumansai/openhuman/issues/7432"+ "classification": "classic",+ "reason": "Classic encrypted credential profile fallback persists AuthProfilesData and token fields; native SecretStore routing requires trusted machine key and source admission, not directory rollback authority.",+ "issue": "https://github.com/tinyhumansai/openhuman/issues/7421"},{"rule": "file-mutation",