payout.py review now flags any day over 150,000 tokens instead of a fraction of the ceiling.
Co-Authored-By: Professor Codephreak <codephreak@pythai.net>
4 days ago
payout.py review; sign-in URI and expiry checks; installer undo keeps your own Firefox pref
- 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 …
The paymint rate is now 10^18 wei (1 LUV) per token. The router sums each ledger row's luv_wei, so earnings keep the rate they were earned at.
Co-Authored-By: Professor Codephreak <codephreak@pythai.net>
drAIML.dmind: host/router for inference delegation and maintenance (no inference on the host); donors lend to it; new source answers from donated compute