Awesome Reviewers

When an algorithm’s correctness depends on what “exactly” was bound/parsed/scanned, never rely on lossy representations (timestamps, ambiguous regex slices, quoted/escaped strings, overlapping recursion). Instead:

1) Bind results to explicit boundaries/identifiers

2) Parse input with a non-ambiguous grammar

3) Ensure aggregation/counting domains don’t overlap

Example (NUL-delimited parsing to avoid quoting bugs):

const out = spawnSync('git', ['-C', repo, 'ls-files', '-s', '-z'], { encoding: 'utf-8' });
if (out.status !== 0) return null;
const entries = out.stdout.split('\0');
for (const e of entries) {
  if (!e) continue;
  // e is an unquoted/unescaped NUL-separated record; parse fields safely
}

Apply this standard anywhere you have: receipt validity, audit-window checks, structural YAML/markdown splicing, or directory scanning/counting—especially when failures would be silent (incorrect acceptance, dropped entries, corrupted semantics, or wrong aggregate totals).