- payout.py review shows each claiming wallet's work, with flags to check before paying: strikes, a day near the ceiling, short answers, many uncredited jobs, never cross-checked, or a large first day. The router now records strikes in strikes.jsonl, by wallet only.
- Sign-in: the URI's host must match the domain, and an Expiration Time in the past is refused.
- Installers: undo leaves prefs.js alone when dom.webgpu.enabled was already set before install (the user.js block records this as had-pref). The bash installer also detects running Flatpak browsers with flatpak ps.
- Tests: 54 Python tests (and a flaky tie-break test fixed) plus the PowerShell checks, now including the no-BOM and user's-own-pref cases.
Co-Authored-By: Professor Codephreak <codephreak@pythai.net>
Security: bound LUV credit, escape answers in the copy button, harden drAIML.dmind (router 0.3.0)
Fixes from a code review of the Space.
Critical
- Router: credit came straight from the worker's own usage.completion_tokens, and a receipt is only a hash the worker computes itself, so one worker could mint any amount. Credit is now capped at the job's max_tokens and the answer's length, zero when the asker's IP is the worker's, and limited to 150,000 tokens per wallet per day.
- Copy button: the answer was embedded in a <script> block with json.dumps, so an answer containing </script> (from any worker or any model) could run script on the Space's origin and read the HF sign-in token. <, >, & and line separators are now escaped.
Important
- Cross-checks go to a different session, IP and wallet. A disagreement goes to a third worker, and only the odd one out is struck. Strikes are kept per wallet and IP, and copies earn credit only once they agree.
- Sign-in: messages are limited to 1 KB, nonce and verify requests to 10 per minute per IP, and each address to 3 open codes. The oldest …
WebGPU installer (Windows): undo after several runs; report skipped browsers
Tested webgpu-enable.ps1 on PowerShell 7.4 in Microsoft's container (tests/webgpu_installer.ps1, 24 checks).
Fixed: assigning an `if` statement's result unrolled a one-item list into a string, so the second run's sidecar recorded 'enable-unsafe-webgpuignore-gpu-blocklist' and undo removed nothing. It is now wrapped in @(...).
Both installers now name the browsers they skipped as running, even when others changed. The bash suite gains the two-run undo case.
Co-Authored-By: Professor Codephreak <codephreak@pythai.net>
WebGPU helper: check page, browser extension and installers
For visitors whose browser has WebGPU switched off or finds no graphics card.
- webgpu/ (served at /webgpu/): runs the check in any browser. It asks for an adapter, describes the card, and runs one compute shader over 65,536 values, checking every result. Verdicts are ready, software, broken, no-adapter and missing, each with steps for this browser and system.
- webgpu/extension/: Manifest V3 extension for Chromium-family browsers and Firefox 121+. It asks for no permissions. The badge shows the verdict, flag pages open in one click, and on drAIML's pages it tells the donation panel it is installed.
- webgpu/installer/webgpu-enable.sh and webgpu-enable.ps1: switch WebGPU on as chrome://flags (Local State) or about:config (user.js) would. They skip running browsers, back up settings, and offer --dry-run and --undo. On Linux the script warns when no Vulkan driver is found.
- Donation panel: adds a 'Check this browser's graphics card' link, which opens the extension when it is installed …