ETHEREUS (@pod_miner) header
ETHEREUS (@pod_miner) profile picture

Ethereum's and Solana's AIs by @frsr_com

Joined March 2021
Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)Photo by ETHEREUS (@pod_miner)
A selector is the first 4 bytes of a keccak-256 hash. A model can’t work that out in its head. It either remembers famous ones (like transfer) or makes one up that looks plausible, and a made-up selector looks exactly like a real one. Normally a model’s weights are learned, which is why its maths is approximate. We’ve added 12 layers whose weights a compiler calculated, so they work as a real CPU and a small file store. Its neurons act as logic gates, and its attention memory acts as RAM. That’s about a million carefully placed numbers in their own channels, which leave Qwen’s 9 billion learned weights untouched. When the model calls the computer, Qwen pauses, the circuit computes the exact answer, and Qwen reads it back. from the moment the tool call closes, the compiled computer writes the next tokens. Qwen’s own layers are switched off for those tokens, so the answer comes from computation, not from Qwen predicting what a selector usually looks like. The model’s attention memory is being used as the computer’s RAM.
1
140
🚀 Paying with crypto means gas, addresses and signing screens — alien steps for anyone outside crypto, and they always will be. Fraser (Ireland) and Elena (Ukraine), a Uniswap v4 hookathon-winning team, built Bursar at NEAR HACKATHON to remove them: a 9B payment agent that lets people pay or be paid in plain sentences. 💥 It’s the crypto wallet killer, here’s why. 🌐 NEAR Intents is what makes it work: one signed intent settles on Solana, Arbitrum or NEAR, so the owner never touches a bridge, a gas token, or a chain picker. Cross-chain settlement the user never sees. ☑️ In weights — the last check before signing runs inside the model’s weights (a small computer compiled into them) and writes a receipt anyone can replay on any machine: npm run verify:weights. A compromised model cannot sign. ☑️ Firmware — the same check logic is a pinned RISC-V firmware blob, re-run in a vendored emulator: npm run verify:firmware. ☑️ Skills — the model reads playbooks and picks its tools; code never pattern-matches your words. 💸 Currently pays: — via NEAR Intents (mainnet USDC) — x402 paid APIs — MPP paid pages (official example server, unmodified) — via the iOS app (scan a QR, Face ID, paid) 🔐 On security: — The key is P-256 in the Secure Enclave — Mac and iPhone. Never in a file, repo, log, or the model’s context. — On the Mac every signature asks Touch ID first, and the key signs one thing only: the deposit address of the signed quote. — The phone runs no model. Its two checks go to Bursar on the Mac; the enclave signs only after both pass and Face ID approves. — Verification needs no trusted hardware — any laptop replays every receipt. Signing today is Apple’s enclaves. — 19 attacks on camera: 3 stopped inside the model, 16 by code guards around it. Each says which. 📦 Repo, receipts, and the runs to repeat them: github.com/fraserbrownirl/bu… @NEARProtocol #NEARHackathon
2
1
1
1
223
Bursar A payment agent that can't be talked into paying the wrong person, because it checks every payment with a computer compiled into its own weights. Bursar pays x402 services on Solana mainnet from its own prepaid wallet. Before anything is signed, the model calls a RISC-V computer that lives inside its weights to decode the exact amount, token, recipient and fee. Bursar's rules then decide APPROVE or STOP. A hostile server can lie in its 402, swap the recipient, or change one character of an address, and Bursar still pays the right amount to the right party or refuses. Why this matters Agents are starting to pay for things themselves, through x402 and agent wallets. Today that leaves two bad options: A wallet asks you to sign everything. That defeats the point of an agent, and people sign blind anyway. The agent signs on its own. Language models guess at numbers. A guessed amount or address is lost money, and a prompt injection in a server's response can steer the payment. Bursar takes a third path. Exact checks happen inside the model, on your machine. A small computer is compiled into the model's layers, so the check can't be swapped, downloaded or poisoned at runtime; it changes only with a new release of the weights. The model never sees the key, and a prepaid balance plus hard limits cap any mistake. What we proved today ResultReal payment on Solana mainnetPaid 0.005 USDC to citable.run, a live x402 service. Wallet USDC 0.178198 → 0.173198. TransactionAttack 1: price × 1000STOP: amount exceeds the per-payment limitAttack 2: recipient swapped after the first requestSTOP: recipient differs from the known payeeAttack 4: one character of the address changedSTOP: recipient differs from the known payeeExact values computed in the model's weights, live on a MacUSDC token accounts, amounts, fees, in 2–5 s each (token accounts about 55 s) How it works x402 server ──402──▶ bursar CLI ──tool call──▶ Bursar-9B (on your Mac, localhost:8000) │ │ Qwen3.5-9B + a RISC-V computer │ │ compiled into its layers │◀── exact result ────────┘ │ rules: known payee? under limit? │ APPROVE ─┴─ STOP │ sign with keychain key (model never sees it) │ PAYMENT-SIGNATURE ──▶ merchant's facilitator settles on mainnet bursar pay requests the resource and gets an x402 402 Payment Required. The transaction check. The firmware verifies the unsigned transaction: exactly one TransferChecked of the right mint and amount, to the payee's token account. The model computes the values. It calls its in-weights computer to turn atomic units into amounts (sol ui 5000 6 → 0.005) and to compute the fee. The CLI never computes these itself; it prints each tool call and its result. Bursar's rules decide. The payee must be one you added with bursar add. Limits are 0.05 USDC per payment and 1 USDC per session. One plain line. For example: PAY 0.005 USDC on Solana to 6nWr…MWzK. From 0.005 USDC. Fee 0.000010001 SOL. APPROVE Sign and pay. The key lives in the macOS keychain. Bursar returns the PAYMENT-SIGNATURE, and the merchant's facilitator (named in the 402's feePayer) settles. Attack 1: price inflated 1,000×. The transaction is well formed and matches the inflated 402, so the transaction check alone passes it. The exact amount is 10 USDC, so the limit stops it. tool call: sol x402 check @tx @to @mint 10000000 6 computed in-weights: ok 1062 ms firmware check (emulator) tool call: sol ui 10000000 6 computed in-weights: 10 2566 ms live (model, Mac) PAY 10 USDC on Solana to EeBmvKUq8yJJYawMaZtma8kF4apAkwmgpPVKtf8j73hW. From 10 USDC. Fee 0.000010001 SOL. STOP: amount exceeds the per-payment limit Attack 2: recipient swapped after the first request. PAY 0.01 USDC on Solana to 6Dw9wiuYMCYSTNCMjhFWjbNhPa3QiaCLFXSWch9tqn6V. From 0.01 USDC. Fee 0.000010001 SOL. STOP: recipient differs from the known payee Attack 3: one character of the payee address changed. A person skimming the address would miss it; an exact comparison doesn't. PAY 0.01 USDC on Solana to 2GipSsuSzrp5rWbWW7FQzpvT3K54iG3ovXwWJPuUyjUQ. From 0.01 USDC. Fee 0.000010001 SOL. STOP: recipient differs from the known payee
2
2
1
387
Pilot 2 is a real result, and it says something specific. The harness is fixed: with thinking off and longer steps, the model finishes with an answer in 31–39 of 40 runs, against 1 in pilot 1. The finding: the generator calls the tool when the task is obviously computation (F1 211 calls, F6 219) and almost never when a STOP/APPROVE depends on checking a fact (1 call across the three decision families). It decides by reading, not by computing. That’s exactly the habit v0.2 has to unlearn, and it’s now measured: the training data’s job is “always compute before you decide”.
71
The combined image confirmed on both machines: 54,737 firmware cases on the VM, gate 4 on the model, and now 146 of 146 calls on your Mac’s GPU across all four chains. The one-model build is real and exact.
69
The prompt (vm/system-qwenputer-syntax.txt, 577 tokens with the model's own tokenizer: NUDGE block 112, syntax section 465). After the NUDGE block it adds: Tool syntax: one eth command per call, exactly as the tool parses it. - encode <name>(<types>) <args...>: a full signature with a function name; the result starts with the 4-byte selector. - decode (<types>) 0x<data>: types as one parenthesised list, no spaces; data without the 4-byte selector (drop the 8 hex digits after 0x). - selector <name>(<types>): the 4-byte selector. - keccak '<text>' or keccak 0x<hex>: an event topic is keccak 'Transfer(address,address,uint256)'. - create <deployer> <nonce>: CREATE address, returned lowercase. - create2 <deployer> <salt> <initcodehash>: salt and hash as full 32-byte hex; returned lowercase. - slot of mapping key k at slot p: keccak 0x<k as 32-byte hex><p as 32-byte hex>, no separator. - units: u256 <integer expression> with + - * / % **, integers only: 1.5 tokens at 18 decimals is u256 15*10**17. Example, encode: call: encode setValue(uint256) 42 result: 0x55241077000000000000000000000000000000000000000000000000000000000000002a Example, decode (that calldata with 0x55241077 removed): call: decode (uint256) 0x000000000000000000000000000000000000000000000000000000000000002a result: (42) How the agent built it: - Every line checked against the firmware. I ran each form through the eth worker on abi-types-fix's eth.elf, which is built from the same commit as bridge ELF 3782ed2b. The four rules quoted below come from running the wrong form and getting the error. - No slot or units commands exist in this firmware. So those lines give the forms that work with its actual commands: - The slot hash checks out against eth_utils. - u256 1.5*10**18 gives error (bad op), so the line says integers only. - Rules learned from errors: - encode without a function name: error (bad sig). - A space inside the decode type list: error (bad type). - A short create2 salt: error (bad hex). - The worked examples are the firmware's real output. My first draft was 723 tokens, mostly long hex, so I switched to a one-argument function. - One addition beyond your list: a keccak line, since event topics and the slot form both use keccak.
95
Exact calls: • x402: each recorded mock as the gate runs it (x402 check @mocktx <recip> <mint> <amount> <dec>, derived tx through @mocktx). Two clusters: 13/16/19 near ~137K instr, the other five near ~234K — the heavier fixtures carry extra instructions to decode. • ix: ix token.transfer_checked system token usdc system 1000 6 (the pinned boundary command; there is no ix decode op, so this is the TransferChecked build). • ATA: ata system usdc (the pinned bridge-test call). • QR: qr solana:1111111111111111111111111?amount=1 (41 bytes, firmware reports qr v3 29). All well within budgets (3M instr sol-side, 5M QR)
73
The SWiRL pilot finished: 240 trajectories and no loops. The tool is in the weights; the fine-tune teaches the model to decide to use it. This pilot is the teacher producing those trajectories, but mostly it measured something else. In every family, 30–39 of the 40 final answers are the model's reasoning cut off before it reached an answer. Thinking mode was on, and each step is capped at 512 tokens. Correction: pilot 1 did use the Qwenputer prompt, on all 240 trajectories. Muse made it the default before generation started. Re-rendering the 60 tasks gives the same set, already carrying the prompt. - Run: Qwen3.6-27B, revision 6a9e13bd, vLLM 0.33.0. 60 tasks (F1–F6, 10 each) from swirl-wip 34cff37, 4 samples each, temperature 0.7. The eth worker ran on the abi-types-fix eth.elf d654dc25. - The finals that are reasoning cut off before an answer. - Tool use differs by family - All 240 trajectories carry the Qwenputer line, byte-identical to prompts/system-qwenputer.txt. - Since the Muse's eccf0bb, render attaches the prompt to each task and generate uses it unless told otherwise. I had read only the chain's flags. The SWiRL notes are corrected. - The Muse's 34cff37 also scores the inline backtick form as malformed, which closes the gap I'd noted. - It starts after fw_all_chain.sh ends, stops the Solana fallback, and restarts it after. - If non-thinking mode still truncates, raising the step limit (--max-tokens) is the next lever. Still running all-chains gates.
1
99
Models on VMs, models locally, models everywhere. Insane times...
53
Where Ethereus is going: agents When an AI agent decides to sign a transaction, the agent is the blind signer. It reads raw numbers and calldata, and LLMs guess. Simple example: a malicious x402 server asks for amount: 10000000000. Is that 0.01 USDC or 10,000? The LLM has to count zeros and might sign 10,000. A fixed script catches that specific case, but only if someone wrote it or deployed it in advance. Ethereus gives the agent exact decoding and maths for any payload (unknown contracts, batched calls, new formats), so its decision rests on the true content rather than a guess. So, its “exact eyes for AI agents”, so they stop guessing at what they sign.
74
Measured against where things were two days ago: > Kind 2 went from nothing to 30 proven tasks in about a day and a half. Yesterday the generator had never produced a single proven find-and-fix task; 97% of candidates died at renaming. > The whole task pipeline now works end to end: generate, pre-check, prove in Docker, split into training and test sets. It runs mostly unattended. Adding sources and patterns is now routine work, not research. > The quality checks are catching what they should. Flaky tasks get rejected, broken references get caught, and the tasks that pass are trustworthy. That matters more than the count, because bad tasks would teach the model wrong things. > The fixes made Kind 1 better too. Three renaming bugs found and fixed, and Kind 1 still regenerates 49 of 50. > The agents are working well together. Muse finds and fixes bugs, the Opus dispatcher proves, and each catches the other’s mistakes: the dispatcher found 10 fuzz-only tasks where Muse saw 4, and Muse dropped the dispatcher’s flawed edits. > Elsewhere, more good news: the keccak speed-up cuts about a third off every hash; the firmware has had three real bugs found and fixed before anyone hit them; the whole benchmark has cost under $11 in judging; and v0.1 shows a small edge on quizzes (18 against 14). The honest frame: the infrastructure is getting strong fast. The one big open question is still whether the model gets better at building, and the training material for answering it is nearly ready: 50 Kind 1 tasks plus 30 Kind 2.
72
Dragonfly fell from about 75% to 20%. But why?
74
Plan: 1/ Ethereus-9B-v0.1 is done training. It’s Qwen3.5-9B with a RISC-V CPU compiled into its weights, running Ethereum firmware: keccak, ABI, uint256, CREATE2, a small EVM. When it calls a tool, the computation happens inside the model, and every trace replays bit-for-bit. 2/ The firmware is checked against Ethereum’s own libraries (eth_abi, eth_hash, py-evm) on tens of thousands of cases, with 0 mismatches, including full-width and boundary values. The model’s own layers are frozen at circuit-owned positions, so the answer is computed, not predicted. 3/ The hard part was never the circuit. Untrained, the model made 1 tool call in 105 requests on ETH Evals. v0.1 is a LoRA on the Qwen layers only, with the compiled layers frozen and hash-checked, and every training label produced by the reference machine. 4/ Results 9/9 held-out tool calls correct, answers copied exactly knowledge questions with in-weights files: 3 → 6 → 11 of 20 (stock → untrained → v0.1) KL to stock 0.0078 MMLU 78.6 vs 78.0 stock It learned to use its tools without forgetting anything. 5/ Next: ETH Evals (@buidlguidl), run through their own runner, at their pinned commit, with their tasks, verifiers, judge and settings. Model only, Internet, and Skills as they define them. Every trajectory published, wins and losses. 6/ Model only is the interesting table. Every other model answers in one call with no tools. Ethereus computes inside its weights within that call. The same test, with a different kind of model. 7/ Expectations: a 9B won’t beat frontier agents at building contracts. The point of v0.1 is to show the mechanism works and the tool use is trained. Next, the same firmware goes into a bigger open model. 8/ Weights go up on Hugging Face (Apache-2.0) once the eval numbers are in. 9/ CA soon
1
2
227
ft1b got 11 of 20 on the knowledge questions with stored files. The stock model got 3 and the untrained model with the tools got 6, so the model reads its files nearly twice as well after training. That’s one short of the 12 target. I’m counting it as passing for now: a real improvement.
1
100
The first kind of build task is complete: all 50 are proven, 20 of 20 in the last batch. The reference solution scores 1 and doing nothing scores 0. These tasks will teach the model to write working Solidity. Today the tool in its weights checks the answers; the tasks extend training from deciding to use the tool to building with it.
80
Here's a roadmap of six milestones to a first usable model, in order: 1. The model uses its tools. ft1b finishes and passes: smoke test with files goes from 4/20 to 12+, it calls the calculator on the held-out set ≥ 90% of the time, and general ability stays within a point of base. This is the one that turns the project from “a working mechanism” into “a working model.” Days away. 2. Long inputs work. The spill fix merges, so real addresses and calldata get through the 80-token limit. Without it most real calls fail before the model even reasons. Built and tested on the branch; merges after the evals. 3. Proof it helps. The three Act tasks (exact calldata, storage slot, contract call) run on base, Ethereus, and the fine-tuned model. This is the table that shows the circuit makes a difference. Plus an ETH Evals rerun with the fine-tuned model, to see if tool use moves the score. 4. Published. Weights on Hugging Face with every gate number on the model card; the ETH Evals submission to BuidlGuidl; the site with the trace hero and the evidence ledger. 5. People can use it; consented traces become the training data for v2.
111
ft1 passes gate 4, 6 of 6 with 0 wrong on replay, and prompt 6 calls run and reads back the return value cleanly. That's good for tool use, though it doesn't change the larger picture: ft1 still fails the new drift gate, which is why ft1b is training. Next, ft1's knowledge test and tool-use evaluation come next, then MMLU; ft1b's training continues alongside.
81
The cap I set (2× the 4B’s merge KL, 0.0012) was a test for “the merge didn’t change the model.” It’s the wrong test for “the fine-tune didn’t change the model too much,” because a fine-tune is supposed to change behaviour; KL of 0.07 against base is a modest, ordinary fine-tune, not a broken one. Measuring against stock Qwen on generic prompts will never come back near 0.001 after any real training. The dispatcher’s diagnosis is right; my number was wrong. So the plan is to replace the gate-1 cap for fine-tuned checkpoints. New rule: KL vs stock Qwen on generic text ≤ 0.05 (a typical light-LoRA band), and the thing that actually matters — a held-out general-capability check that doesn’t drop. Use DMind’s non-training subsets or a slice of a standard benchmark (MMLU 500 questions): ft1 within 1 point of base. Drift that doesn’t cost accuracy is fine; drift that does is the problem.
90