Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(durability): keep the filing-rules loop line semgrep baselines; refresh the structural suites manifest (#7629, GBRA-202)
garrytane9833a090b72
diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex 8c1400538b..a844d754cd 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -184,7 +184,7 @@ test/files.test.ts collectFiles (production import) 9 readFileSynctest/files.test.ts files upload-raw git-storage branch (#2297) 6 readFileSynctest/files.test.ts files verify git lane (per-source root resolution) 1 readFileSynctest/files.test.ts storage precondition — the silent-no-op class (#4022) 3 readFileSync-test/filing-rules-resolution.serial.test.ts per-source filing-rules resolution 3 readFileSync+test/filing-rules-resolution.serial.test.ts per-source filing-rules resolution 6 readFileSynctest/fix-wave-structural.test.ts #2084 — cli.ts owns process-exit teardown via finishCliTeardown 4 readFileSync,source-surface-helpertest/fix-wave-structural.test.ts #2955 — sync multi-source repoPath routes through msysToNativePath 1 readFileSync,source-surface-helpertest/fix-wave-structural.test.ts WAL-repair wave structural pins (#223/#2575) 4 readFileSync,source-surface-helperdiff --git a/src/core/brain-repo-durability.ts b/src/core/brain-repo-durability.tsindex 00c97f411e..b3054dedee 100644--- a/src/core/brain-repo-durability.ts+++ b/src/core/brain-repo-durability.ts@@ -330,10 +330,10 @@ const NON_CONTENT_DIRS = new Set(['skills', 'scripts', 'node_modules']);* repo file must never break `sources harden`.*/function resolveFilingRules(repoPath: string): { rules: FilingRulesDoc; from: string } {- for (const [dir, from] of [[join(repoPath, 'skills'), '`skills/_brain-filing-rules.json`'], [repoPath, '`_brain-filing-rules.json`']]) {+ for (const dir of [join(repoPath, 'skills'), repoPath]) {try {const rules = loadFilingRules(dir);- if (rules) return { rules, from };+ if (rules) return { rules, from: dir === repoPath ? '`_brain-filing-rules.json`' : '`skills/_brain-filing-rules.json`' };} catch { /* malformed — fall through */ }}const bundled = filingRulesDoc as FilingRulesDoc;