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>
3 days ago
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 …
drAIML.dmind: host/router for inference delegation and maintenance (no inference on the host); donors lend to it; new source answers from donated compute
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'