# proof: forum-browser (mutation checks) date: 2026-11-08T10:28:18Z commit: 1a47b798e0305b92e1fd2bac7c8a348819d7cb18, with each planted change below (not committed) command: npm run build && npm run proof:forum-browser expected: exit 1 for each ## Fault 1: 'Clear my votes' does not delete the rows @@ -49 +49 @@ export async function DELETE(request: NextRequest) { - await deleteVotes(hashVoter(code)); + FAIL 'Clear my votes' deletes this visitor's rows FAIL and nobody else's (46) FAIL back at 19, it leaves 'Where groups agree' FAIL a Disagree makes 19 of 20: back, at 95% 4 check(s) failed: exit: 1 ## Fault 2: the voter code is stored as it is, not scrambled @@ -40 +40 @@ export const VOTER_COOKIE_DAYS = 180; -export const hashVoter = (code: string) => createHash("sha256").update(code).digest("hex"); +export const hashVoter = (code: string) => code.padEnd(64, "0"); FAIL en 8 rows, right choices and language, voter = sha256(cookie), cookie hidden from scripts, tally and done card survive a reload (checks 11011110, tally "Your vo FAIL es 8 rows, right choices and language, voter = sha256(cookie), cookie hidden from scripts, tally and done card survive a reload (checks 11011110, tally "Tus vot FAIL pt-PT 8 rows, right choices and language, voter = sha256(cookie), cookie hidden from scripts, tally and done card survive a reload (checks 11011110, tally "Os seus FAIL pt-BR 8 rows, right choices and language, voter = sha256(cookie), cookie hidden from scripts, tally and done card survive a reload (checks 11011110, tally "Seus vo FAIL it 8 rows, right choices and language, voter = sha256(cookie), cookie hidden from scripts, tally and done card survive a reload (checks 11011110, tally "I tuoi FAIL fr 8 rows, right choices and language, voter = sha256(cookie), cookie hidden from scripts, tally and done card survive a reload (checks 11011110, tally "Vos vot exit: 1 ## Fault 3: 19 votes are enough to count @@ -18 +18 @@ export const RULES = { - minVotes: 20, + minVotes: 19, FAIL at 19 English votes the statement is not in 'Where groups agree' FAIL back at 19, it leaves 'Where groups agree' 2 check(s) failed: exit: 1