// Required content const must = [ [/about 702 rounds/, 'about 702 (few contacts, no shared memory)'], [/about 10\.5 rounds/, 'about 10.5 (5 contacts, full memory)'], [/never gets ahead at all/, 'never ahead (10 contacts, full memory)'], [/p<\/sub> \+ δΔ \/ \(1 − δ\) \]/, 'plain-text headline inequality'], [/Theorem A \(only for audience-varying lies\)/, 'Kolmogorov bound scoped to audience-varying lies'], [/global lie/, 'global-lie escape named'], [/A6 \(Long Horizon\) is no longer an axiom/, 'axiom 6 becomes a parameter'], [/backward induction/, 'end-game unraveling named'], [/An unknown end/, 'fix 1 unknown end'], [/Immediate penalties/, 'fix 2 immediate penalties'], [/Records that outlast the horizon \(ledgers\)/, 'fix 3 ledgers'], [/anonymous one-shot meetings/i, 'anonymous one-shot unsolved'], [/cooperation holds in 68% of scarce cases/, 'scarcity 68%'], [/Conflict beats sharing in 32% of scarce cases/, 'scarcity 32%'], [/DECEPTION_COST = 3\.5/, 'v1 constant named'], [/has no code behind it that we could find/, 'v2 95.7% retired'], [/said its six axioms were "unchanged" from v1\. They were not\./, 'v2 axioms correction'], [/Answering Grok's critiques/, 'critiques framed as answers'], [/656\/656 checks passed/, 'sim receipt'] ]; for (const [re, label] of must) assert.ok(re.test(page), label); // No network, no external scripts, outside text via textContent assert.ok(!/\bfetch\s*\(|XMLHttpRequest|WebSocket|navigator\.sendBeacon|import\s*\(/.test(page + checksSrc), 'no network calls'); const srcs = [...page.matchAll(/]*\bsrc="([^"]+)"/g)].map((m) => m[1]); assert.deepStrictEqual(srcs, ['love-logic/v3_checks.js'], 'only the local checks script is loaded'); assert.ok(!/innerHTML|outerHTML|insertAdjacentHTML|document\.write/.test(page + checksSrc), 'textContent only'); assert.ok(!/katex|mathjax/i.test(page), 'no KaTeX / MathJax'); // Every inline script parses; checks module parses let inline = 0; for (const m of page.matchAll(/]*\bsrc=)(?![^>]*type="application\/ld\+json")[^>]*>([\s\S]*?)<\/script>/g)) { new vm.Script(m[1]); inline++; } assert.ok(inline >= 1, 'page glue script present and parses'); for (const m of page.matchAll(/