diff --git a/src/commands/sources.ts b/src/commands/sources.ts index 14891bdc5..38e4fe317 100644 --- a/src/commands/sources.ts +++ b/src/commands/sources.ts @@ -1147,7 +1147,8 @@ async function runAudit(engine: BrainEngine, args: string[]): Promise { continue; } if (stat.isDirectory()) { - if (pruneDir(entry, dir)) continue; + // pruneDir returns true = descend, false = prune (see core/sync.ts). + if (!pruneDir(entry, dir)) continue; walk(full); } else if (entry.endsWith('.md')) { files.push(full);