// Audit of QUESTIONS.md row 662 (Q-record-mechanism-0830) against the red team // that already examined its owning note. Closed-form arithmetic on served figures. const fs = require('fs'); const f = (x, n) => x.toFixed(n); const L = fs.readFileSync('QUESTIONS.md', 'utf8').split('\n'); const rowOf = id => L.filter(l => l.includes('`' + id + '`')).pop() || ''; console.log('=== 1. The red team found the error bar; the row still carries it ==='); const rm = rowOf('Q-record-mechanism-0830'), rt = rowOf('Q-redteam-0830-records'); console.log(' row 662 contains "1.0806 +- 0.0014" : ' + rm.includes('1.0806 +- 0.0014')); console.log(' redteam row says it "carries only the Monte Carlo pairing error": ' + rt.includes('carries only the Monte Carlo pairing error')); console.log(' redteam row gives the sensitivity 0.9888 -> 1.1720: ' + (rt.includes('0.9888') && rt.includes('1.1720'))); console.log(' row 662 mentions 0.9888 or 1.1720 anywhere : ' + (rm.includes('0.9888') || rm.includes('1.1720'))); console.log(' redteam status: ' + rt.split('|')[2].trim()); console.log('\n=== 2. How much is the uncertainty understated? ==='); const stated = 0.0014, lo = 0.9888, hi = 1.1720, mid = 1.0806, target = 1.0833; const half = (hi - lo) / 2; console.log(' stated half-width = ' + f(stated, 4)); console.log(' sensitivity half-width = (' + hi + ' - ' + lo + ')/2 = ' + f(half, 4)); console.log(' understatement factor = ' + f(half / stated, 1) + 'x'); console.log(' the perturbation that produces it is a far-tail slope move of 0.02,'); console.log(' against a spread of 0.0174 across six fit windows on the SAME decade'); console.log(' and 0.1196 across decades: so 0.02 is just above the within-decade'); console.log(' fit-window spread, i.e. a conservative one-sigma-ish scale, not a stress test.'); console.log('\n=== 3. What it does to the headline "95.7 to 99.8 percent" ==='); const pct = v => f(v / target * 100, 1) + ' %'; console.log(' as stated : d b_z = 1.0370 and ' + mid + ' against ' + target + ' -> ' + pct(1.0370) + ' to ' + pct(mid)); console.log(' with the sensitivity band [' + lo + ', ' + hi + '] -> ' + pct(lo) + ' to ' + pct(hi)); console.log(' so "carries 95.7 to 99.8 percent of the residual" becomes roughly 91 to 108 %,'); console.log(' a band that CONTAINS 100 % - i.e. the gap law may carry the whole residual, or'); console.log(' overshoot it, neither of which the stated interval admits.'); console.log(' and the red team\'s alternative extrapolation (continuing the law at slope 1'); console.log(' above the last resolved point) gives d b_z = 0.7752 -> ' + pct(0.7752) + ','); console.log(' far outside the stated interval.'); console.log(' agreement with the target, as stated: (target - mid)/stated = ' + f((target - mid) / stated, 2) + ' sigma'); console.log(' agreement with the target, corrected: (target - mid)/half = ' + f((target - mid) / half, 2) + ' sigma -> the near-match is not evidence of anything.'); console.log('\n=== 4. This is systemic: no 0830 red team has been applied ==='); const applied = [...new Set((fs.readFileSync('QUESTIONS.md', 'utf8').match(/applied-\d{4}-[a-z0-9-]+\.md/g) || []))]; const by = {}; for (const a of applied) { const d = a.slice(8, 12); by[d] = (by[d] || 0) + 1; } console.log(' applied- notes in the registry, by red-team date:'); for (const d of Object.keys(by).sort()) console.log(' ' + d + ': ' + by[d]); const rts = [...new Set((fs.readFileSync('QUESTIONS.md', 'utf8').match(/Q-redteam-0830-[a-z-]+/g) || []))].sort(); console.log(' 0830 red teams present: ' + rts.length); for (const q of rts) console.log(' ' + q.padEnd(32) + rowOf(q).split('|')[2].trim()); console.log(' applied- notes for 0830: ' + (by['0830'] || 0)); console.log(' => the convention exists and was followed for 0828 (16) and 0829 (6).'); console.log(' Ten 0830 red teams are ANSWERED and none has an applied pass, so their'); console.log(' corrections have not reached the notes they target, and the generated'); console.log(' rows for those targets still display the uncorrected figures.'); console.log(' Row 662 is one instance; I checked only this one in detail.');