Fifty ways to waste a network
We had our own software reviewed five times, each pass told to break one part of it. About fifty things came back.
A network that checks answers is easy to describe. One machine runs your job and signs for it, a second machine runs it again, and a lie is caught. The trouble is everything around that sentence. Nobody attacks the idea. They attack the hallway.
So this week we had the software reviewed five times, each pass told to break one part: the sandbox, the bridge, the registry, the connections, the pages. About fifty findings came back. Two of them could have put a wrong answer in front of you without a red mark. The rest wasted the network or stalled it. These are the ones worth telling.
A receipt nobody could re-run
A receipt names the exact engine build that ran the job. A second machine on any other build declines to judge, which is right: it shouldn't accuse anyone over a difference in engines. But nothing stopped a machine from signing a receipt that named an engine no one runs. Every re-run would decline, forever. A machine could sign anything under that name and never be caught.
The fix is one comparison. The bridge now refuses a receipt that names a runtime its second machine can't run, before it reaches you.
The job that ended on the last unit
A receipt also states how much work a job took, and the re-run has to land on the same number. We found an edge where an honest machine finished a job on the very last unit it was allowed, and the re-run, given exactly that much, ran out at the last step and called it a mismatch. An honest machine, caught for being precise.
Now a run succeeds only with work to spare, on every machine. The re-run is given one unit more than the receipt claims and must use exactly the claim. A test holds it in both directions: every claim that is too low or too high is a mismatch, and the honest one never is.
The record that forgot
A caught lie costs a machine its record. That is the whole penalty today, and we say so. Two things were wrong with it. The record lived in memory, so every release of the network wiped it. And nothing read it: a machine that had just been caught was sent the next job like any other. A penalty that resets on Tuesday and changes nothing on Monday is not a penalty.
The record is on disk now and survives a restart. One receipt counts once, however often it is reported and across restarts too. A receipt that a stranger brings in to be re-run gets its answer but goes on nobody's record, because a record anyone can write to by signing receipts for a key of their own means nothing. And the bridge reads it: a machine that was caught is passed over while any machine never caught can take the job.
Taking a stranger's word for a hash
Everything on Verse is named by the hash of its bytes, and whoever receives bytes hashes them again. Except, it turned out, in one place: the bridge handed a job's program to a store and used the name the store gave back. A store that answered with a different name could swap the program under a job, and the re-run would have agreed, because it re-ran the swapped one. Only a client that hashed its own program would have noticed.
The bridge now hashes every program and input itself and keeps them in its own memory for ten minutes, long enough for the two machines to fetch them. A stranger's program is never written to a store at all.
The smaller ones
One key could publish records that, once they expired, kept the registry from starting again. A machine that works only for its own bridge would still read sixteen megabytes from anyone before checking who was asking. The limit of twenty requests a second could be skipped with a long enough address line, because the caller's address was read from the first kilobyte only. A browser tab proved its key by signing a sentence the bridge chose, so a bridge could have had it sign a message to another tab. Each of these is fixed, and each has a test that fails without the fix.
The one we opened ourselves
One of those fixes made a new hole. A stranger's receipt is now re-run without being recorded, and a lying machine could use exactly that: send its own receipt in for a re-run off the record, then hand the same receipt to the bridge. The second machine considered it already judged, and when the real request came it reported nothing. The lie was caught and the record stayed clean.
A second review found it the next morning, before the record was used for anything. Now only a re-run that is recorded marks a receipt as judged, and a test with a real liar holds it: re-run off the record first, then on it, and the mark must be there, once.
Still open
Stated plainly. Anyone can list a machine and be sent jobs: its lies are caught, its refusals cost time. What you upload is kept for good, so a budget bounds how fast the stores fill, not whether. There is one checking machine and we run it. And a caught lie costs a record, which a fresh key wipes: there is still nothing to lose but the name. The full list is on the security page, and it got longer this week, which is the point.
Nobody broke the arithmetic. Everything they broke was something we had assumed instead of checked.