# proof: admin-review (mutation checks) date: 2026-11-08T10:03:49Z commit: 522706b99b93e9a0c3c426939c512f0532320df8 (earlier run of this proof, before the daily-limit section was added), with each planted change below in lib/forum/submissions.ts (not committed) command: npm run build && npm run proof:admin-review expected: exit 1 for each fault, on the check that names it ## Fault 1: voters are served suggestions nobody has approved @@ -122 +122 @@ export async function approvedSuggestions(locale: Locale): Promise<{ id: string; - WHERE status = 'approved' AND locale = ${locale} + WHERE locale = ${locale} FAIL voting card shows only the 8 seed statements (shown 10) FAIL neither suggestion reaches the voting card before review FAIL the public suggestions route returns none FAIL en voting card shows it last, after the 8 seeds (Proof statement B: this one is rejected and nobody should ever see it.) FAIL en voting card still does not show the other, unreviewed one FAIL es voting card does not show the English suggestion 6 check(s) failed: - voting card shows only the 8 seed statements - neither suggestion reaches the voting card before review - the public suggestions route returns none - en voting card shows it last, after the 8 seeds - en voting card still does not show the other, unreviewed one - es voting card does not show the English suggestion exit: 1 ## Fault 2: removing a suggestion keeps its votes @@ -113 +112,0 @@ export async function deleteSubmission(id: string) { - await getSql()`DELETE FROM votes WHERE statement_id = ${suggestionId(id)}`; FAIL its votes are deleted 1 check(s) failed: - its votes are deleted exit: 1 ## Fault 3 (date 2026-11-08T10:10:43Z, commit ac805c2e1e8aa541ae2167a2812252d679c475c2): the submit route no longer checks the daily limit @@ -22 +22 @@ export async function POST(request: NextRequest) { - if (today >= DAILY_LIMITS.submissions) return fail(429, "busy"); + FAIL run stopped: TimeoutError: Waiting failed: 30000ms exceeded 1 check(s) failed: - TimeoutError: Waiting failed: 30000ms exceeded exit: 1