The page now hands Python a MessagePort through Streamlit's worker: huggingface.co's frame partitions BroadcastChannel, so the agreement request never reached the page. BroadcastChannel stays as the fallback.
Rename the dialog to the drAIML agreement. Show rewards in SHAMBA LUV only (no PAI/SATPAY/BTC/GLDB valuation, no price fetches).
Co-Authored-By: Professor Codephreak <codephreak@pythai.net>
4 days ago
Donation panel: say why a job earned less than it wrote
Router 0.3.0 reports when a job is not or only partly credited (self-served, daily ceiling, a disagreeing cross-check). The panel now shows that reason next to the job count.
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 …
dmind.js: SATPAY worth computed from USD at full precision
SATPAY was BTC (already truncated to 18 decimals) × 10^8, so it lost about 2%. It is now USD × 10^8 / BTC-USD.
Co-Authored-By: Professor Codephreak <codephreak@pythai.net>
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>
Help save lives: donate compute to drAIML.dmind (10% default duty cycle), LUV rewards at 1 wei per token valued in BANKON PAI/SATPAY/BTC/GLDB; 'Allow drAIML to solve this for you'