Review threshold 10 saved IDs (Marty's decision pack answer 2026-11-17; staging was built with 25)

Config default, compose default, page fallbacks, FAQ/guide copy, sprout-meter fallback, asset version bump.
Spotlight $10 / 1,000 views and the 20/5/5/5/5/60 split marked approved as built. unit 35/35, e2e 124/124.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 09:45:37 -06:00
parent 69d8271c61
commit cf0da5044a
26 changed files with 101 additions and 93 deletions
+8
View File
@@ -50,5 +50,13 @@ ok(sb.fill(p, 'a b') === 'https://good.example.net/?ref=a%20b', 'fill encodes th
ok(sb.homeUrl(p) === 'https://good.example.net/', 'the plain home page');
ok(sb.textHash({ name: 'a', url: 'b' }) !== sb.textHash({ name: 'a', url: 'c' }), 'text hash changes with the text');
console.log('-- review threshold (Marty 2026-11-17: 10 saved IDs before a packet goes to review)');
{ const saved = process.env.REVIEW_SAVES; delete process.env.REVIEW_SAVES; delete require.cache[require.resolve('../config')];
ok(require('../config').get().reviewSaves === 10, 'the default review threshold is 10');
if (saved !== undefined) process.env.REVIEW_SAVES = saved; delete require.cache[require.resolve('../config')]; }
{ const fs2 = require('fs'); const pub = path.join(__dirname, '..', 'public');
const stale = fs2.readdirSync(pub).filter(f => f.endsWith('.html') && /data-cfg="need">(?!10<)|What happens at (?!10 )\d+ saves/.test(fs2.readFileSync(path.join(pub, f), 'utf8')));
ok(stale.length === 0, 'every page shows 10 as the fallback threshold', stale); }
console.log('\n' + pass + ' passed, ' + fail + ' failed');
process.exit(fail ? 1 : 0);