# proof: ai-precheck date: 2026-11-08T06:29:12Z commit: 5cd6cd1b2f5698c15435f67f4b56dfdc0ce12aa7 command: npm run test:forum-pg -- --verbose database: throwaway postgres:17-alpine, podman version 5.7.0, bound to 127.0.0.1, removed on exit; no Neon, no shared database node: v26.13.0 outside service: none. OpenRouter is NOT contacted: a stand-in replaces global fetch inside the test process and answers as OpenRouter would; the key is a fake string. This records what the server sends and what it does with the answer, not how well the real models flag. claims checked: Privacy and HowItWorks "OpenRouter passes each suggested statement to Mistral Small, or Gemini as a backup, on EU servers ... only services that promise not to keep the text or train on it" (what is asked for, not what the provider does); README "Without it, suggestions are marked not checked"; submit route daily AI limit (DAILY_LIMITS.aiChecks) 127.0.0.1:5432 - accepting connections PASS __tests__/forum-postgres.integration.test.ts forum on a real Postgres ✓ db/schema.sql applies, and applying it again changes nothing (63 ms) ✓ stores one vote per browser under a hash, and a second vote replaces the first (17 ms) ✓ the voter cookie a real vote sets matches the privacy page: scripts can't read it, forum addresses only, 180 days (11 ms) ✓ the database itself refuses a vote other than agree, disagree or pass (2 ms) ✓ 'Clear my votes' deletes this browser's votes and no one else's (33 ms) ✓ votes flow through the results route into 'where groups agree' (405 ms) ✓ a suggestion can be voted on only once approved, and rejecting it removes its votes (34 ms) ✓ the database refuses a suggestion over 140 characters (2 ms) ✓ the submit route saves a suggestion as pending and, with no AI key, unchecked; contact details and other sites are turned back unsaved (19 ms) ✓ the report route stores only the statement, reason and language, and refuses reports on suggestions not yet approved (30 ms) the AI pre-check, with a stand-in for OpenRouter ✓ sends only the statement and its language, to EU zero-retention endpoints; a busy first model falls to the second; the flags are saved on the pending row (16 ms) ✓ when both models fail, or the answer is malformed, the suggestion is still saved, pending and 'not checked' (20 ms) ✓ past the daily AI limit, no outside call is made and the suggestion is saved unchecked (19 ms) Test Suites: 1 passed, 1 total Tests: 13 passed, 13 total Snapshots: 0 total Time: 0.973 s, estimated 2 s Ran all test suites matching /__tests__\/forum-postgres.integration.test.ts/i. exit: 0