Level 4 override payer, shipped OFF (Marty approved 2026-10-23)
override.js: the weekly payer for the 3% level-4 override. It pays only when overrideMode is 'live' AND overrideGoLive is set AND OVERRIDE_PAYER_KEY (or _FILE) is present; otherwise the Monday dry-run report runs as before. Default stays 'dryrun'. Nothing in this commit moves money. - Week = Monday 00:00 to Monday 00:00 Central; settled from 9 AM CT the Monday after, weeks in order. - Plan frozen once per week (claim plan:<week>), one row per recipient (POL wei summed), on the volume. - Claims fail closed: exclusive file create on the shared volume plus event_marks when MySQL is on. - Row marked 'sending' before the tx, tx hash stored on acceptance; lost answers become 'review' and are never re-sent (settled from the chain index or by the admin). Pre-flight revert = carried, no gas. - Dust under overrideDustPol (0.01) carried to next week; overridePayCapPol (100) holds the whole week; wallet must cover total + gas or nothing is sent; Telegram alerts once each. - Telegram summary to Marty's private chat says PAID with tx links. - Members: AwardPaid from the payer emails + on-site notice "Your Level 4 override is paid" and shows in Earnings as "Level 4 override" (common.js / my.js tags bumped to 20261023ov). - Admin: /api/admin/override adds week status + payer state; POST /api/admin/override/pay (only when live) and /api/admin/override/resolve; P&L pane card with "Pay this week now" shown only when live. - Comp plan (earning.html) + Platform Facts card hidden behind data-when="override-live" (shown only when overrideMode is live). Chatbot copy drafted in D:/tmp/override-copy, TODO in chatbot.js. - qa/override.test.cjs (bash qa/run.sh override): 30 checks on a fake chain/signer/DB, throwaway data. Reconciliation 2026-10-23: the dry run reads every Purchase in chain-index (229 events, full history); per Central week it matches the index exactly. The ~$1,775 figure was the rolling 7 days 09-10..09-17. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in: