{"componentChunkName":"component---src-templates-post-js","path":"/blog/zk-serialization-boundary","result":{"data":{"prevPost":{"html":"<p>In December I argued that GPT-5's safe completions are not zero-knowledge, and I argued it on paper. The protocol leaks structural information about the withheld witness across turns, an adversary composes those leaks, and the simulation argument fails. I still think that is right.</p>\n<p>What I did not do was cost it. A protocol analysis that never touches a prover is cheap to write and easy to like, and I have since spent two months building the thing it was hand-waving at. So this post does the arithmetic.</p>\n<p>The short version is that the bill is payable, and it is a bill for the wrong item. Proving an inference does not fix the leak I found in December, and working out why took me longer than working out the price.</p>\n<h2 id=\"the-smallest-interesting-verifiable-claim\" style=\"position:relative;\"><a href=\"#the-smallest-interesting-verifiable-claim\" aria-label=\"the smallest interesting verifiable claim permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The smallest interesting verifiable claim</h2>\n<p>Here is my anchor, and it is measured rather than cited.</p>\n<p>A RISC Zero guest re-executes the correctness check on a satellite computation. It re-hashes a design matrix against its commitment, re-hashes the audited index set, then evaluates a relative normal-equation residual at 256 pixels using 64-bit floats, all of it in software because RISC-V has no hardware double. Nothing exotic. Two SHA-256 calls and about eighty-five thousand floating point operations.</p>\n<p>That costs 8,388,608 cycles.</p>\n<p>The decomposition is worth keeping, because it is the part people never publish. 7,813,860 of those are the guest's own work. 214,654 go to paging memory across segment boundaries and 360,094 are reserved overhead, so roughly seven percent of the trace is the machine rather than the program. The whole thing splits into 8 segments at 2<sup>20</sup> cycles each, and 8 segments is exactly the parallelism budget you have if you want to spread this across GPUs.</p>\n<p>Divide it out and the guest spends about 92 cycles per double-precision operation, hashing and input deserialisation included. That is the number I would hand someone who asked what soft-float costs in a zkVM, with the caveat that it is an upper bound because the SHA-256 calls and the 30,916-byte input read are folded into it.</p>\n<h2 id=\"what-you-buy-at-each-rung\" style=\"position:relative;\"><a href=\"#what-you-buy-at-each-rung\" aria-label=\"what you buy at each rung permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What you buy at each rung</h2>\n<p>The same 8.39 million cycles can be sold to you three ways, and the difference between them is the whole engineering story.</p>\n<div class=\"dpw\" id=\"ladder\" data-initialised=\"false\">\n  <svg id=\"ld-svg\" viewBox=\"0 0 480 200\" class=\"dpw-svg\" role=\"img\" aria-label=\"Receipt size, prove time and verify time for composite, succinct and Groth16 receipts\"></svg>\n  <div class=\"dpw-detail\" id=\"ld-detail\">\n    <div class=\"dpw-detail-h\">Hover a bar</div>\n    <div class=\"dpw-detail-b\">Bars are receipt size on a log scale. All three carry the identical 432-byte journal and the identical claim.</div>\n  </div>\n</div>\n<p>A composite receipt is the raw STARK. It took 3,006 seconds on an eight-core machine and weighs 2,251,496 bytes, which is fine for a file and useless for a chain.</p>\n<p>Recursion folds the segments together. 1,463 seconds on sixteen cores, 224,090 bytes, a tenfold shrink. It verifies locally in 20.13 milliseconds.</p>\n<p>The Groth16 wrap runs the recursion, then proves the recursive verifier inside a pairing-based SNARK. 2,618.7 seconds, a peak resident set of 9.61 GB, and the receipt collapses to 1,361 bytes. The seal that actually travels in the transaction is 260 bytes. It verifies in 5.06 milliseconds locally, or on Base Sepolia for 249,749 gas, which at the gas price and ETH spot I read on 24 August is $0.0042.</p>\n<p>So the compression is 1,654 times, and it is bought with roughly 44 minutes of CPU and ten gigabytes of memory. Everything after this post's midpoint is an argument about whether that trade scales.</p>\n<h2 id=\"the-number-i-refuse-to-publish\" style=\"position:relative;\"><a href=\"#the-number-i-refuse-to-publish\" aria-label=\"the number i refuse to publish permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The number I refuse to publish</h2>\n<p>The obvious next move is to divide. 8,388,608 cycles in 2,618.7 seconds is 3,203 cycles per second, and from there you can extrapolate anything you like.</p>\n<p>Do not do this, and I say that as the person who did it first and got 3.85 × 10<sup>7</sup> for prover overhead against native execution. That figure is real arithmetic on real measurements and it describes my benchmark rather than my prover. The native side of it is 78 microseconds of vectorised numpy. When the numerator is a fixed cost that a 43-minute pipeline pays whether it proves eight million cycles or eighty million, a ratio taken at the bottom of the curve tells you about the fixed cost and nothing about the marginal one.</p>\n<p>Every \"N times overhead\" claim in this field has the same defect unless the workload size is printed next to it. Mine included.</p>\n<p>So here is the shape of the honest uncertainty rather than a headline. Set the two things I have not measured and watch the answer move.</p>\n<div class=\"dpw\" id=\"extrap\" data-initialised=\"false\">\n  <div class=\"dpw-controls dpw-grid\">\n    <label class=\"dpw-label\">Model size\n      <input type=\"range\" id=\"ex-p\" min=\"0\" max=\"5\" step=\"1\" value=\"2\" />\n      <span class=\"dpw-val\" id=\"ex-p-val\">7B</span>\n    </label>\n    <label class=\"dpw-label\">Tokens generated\n      <input type=\"range\" id=\"ex-t\" min=\"0\" max=\"4\" step=\"1\" value=\"1\" />\n      <span class=\"dpw-val\" id=\"ex-t-val\">64</span>\n    </label>\n    <label class=\"dpw-label\">Cycles per arithmetic op\n      <input type=\"range\" id=\"ex-c\" min=\"0\" max=\"4\" step=\"1\" value=\"2\" />\n      <span class=\"dpw-val\" id=\"ex-c-val\">92</span>\n    </label>\n    <label class=\"dpw-label\">Prover throughput, cycles per second\n      <input type=\"range\" id=\"ex-r\" min=\"3\" max=\"8\" step=\"1\" value=\"5\" />\n      <span class=\"dpw-val\" id=\"ex-r-val\">100 K</span>\n    </label>\n  </div>\n  <div class=\"dpw-two\">\n    <div class=\"dpw-panel\">\n      <div class=\"dpw-panel-h\">defensible</div>\n      <div class=\"dpw-line\">arithmetic ops <b id=\"ex-ops\">896 B</b></div>\n      <div class=\"dpw-line\">guest cycles <b id=\"ex-cyc\">82 T</b></div>\n      <div class=\"dpw-line\">segments at 2<sup>20</sup> <b id=\"ex-seg\">79 M</b></div>\n    </div>\n    <div class=\"dpw-panel dpw-panel-warn\">\n      <div class=\"dpw-panel-h\">not defensible without a measurement</div>\n      <div class=\"dpw-line\">prove time <b id=\"ex-time\">26 years</b></div>\n      <div class=\"dpw-line\">across the plausible throughput range <b id=\"ex-band\">10 days to 2.6 K years</b></div>\n    </div>\n  </div>\n  <div class=\"dpw-hint\">The left column moves only on things I can count. The right column moves five orders of magnitude on an assumption nobody has measured for this workload, which is the point.</div>\n</div>\n<p>The left panel is arithmetic I will defend. A forward pass over a model with P parameters costs about 2P operations per generated token, the cycle-per-op figure is anchored to a real trace, and segment counts follow. The right panel swings by five orders of magnitude on a parameter I have not measured, and neither has anyone else for this exact guest. Publishing a point estimate from that would be inventing a number.</p>\n<p>There is also a real reason my 92 cycles is too pessimistic for this use. My guest does 64-bit soft float because InSAR residuals need it. Quantised inference does 8-bit integer arithmetic, which is dramatically cheaper in a zkVM and is why serious zkML work quantises before it does anything else. Slide the cycles-per-op control down and you can see how much of the answer that one decision owns.</p>\n<h2 id=\"what-is-actually-provable-about-a-refusal\" style=\"position:relative;\"><a href=\"#what-is-actually-provable-about-a-refusal\" aria-label=\"what is actually provable about a refusal permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is actually provable about a refusal</h2>\n<p>Costing the wrong statement is worse than not costing it, so before spending anything it is worth sorting the claims by whether a proof can carry them at all.</p>\n<div class=\"dpw\" id=\"claims\" data-initialised=\"false\">\n  <div class=\"dpw-card\" data-open=\"false\" data-k=\"yes\">\n    <div class=\"dpw-card-head\"><span class=\"dpw-card-n\">1</span> \"This output came from the weights committed as H\"<span class=\"dpw-badge dpw-yes\">provable</span></div>\n    <div class=\"dpw-card-body\">\n      <p><b>The statement:</b> Y = M<sub>W</sub>(P), where SHA-256(W) = H is published in advance.</p>\n      <p><b>Why it works:</b> it is a deterministic function evaluation over committed data, which is exactly what a zkVM proves. Same shape as my satellite guest, larger by a factor you can read off the widget above.</p>\n      <p class=\"dpw-cost\"><b>Cost:</b> the entire inference, in-circuit. This is the expensive one and it is the one that carries all the weight.</p>\n    </div>\n  </div>\n  <div class=\"dpw-card\" data-open=\"false\" data-k=\"yes\">\n    <div class=\"dpw-card-head\"><span class=\"dpw-card-n\">2</span> \"The refusal classifier scored this below threshold\"<span class=\"dpw-badge dpw-yes\">provable</span></div>\n    <div class=\"dpw-card-body\">\n      <p><b>The statement:</b> C<sub>&theta;</sub>(Y) &lt; &tau;, for a classifier committed as &theta; and a published threshold.</p>\n      <p><b>Why it works:</b> a small committed model over a short string. Cheap, possibly thousands of times cheaper than claim 1.</p>\n      <p class=\"dpw-cost\"><b>The trap:</b> on its own this proves nothing about the system. I can run an honest classifier over an output that came from a different model, or from no model. Claim 2 is only worth anything when it is bound to claim 1, which means paying for claim 1.</p>\n    </div>\n  </div>\n  <div class=\"dpw-card\" data-open=\"false\" data-k=\"yes\">\n    <div class=\"dpw-card-head\"><span class=\"dpw-card-n\">3</span> \"The system prompt in force was the one published\"<span class=\"dpw-badge dpw-yes\">provable</span></div>\n    <div class=\"dpw-card-body\">\n      <p><b>The statement:</b> the prompt prefix hashes to a published digest, and the same bytes fed the inference.</p>\n      <p><b>Why it works:</b> a hash inside the same circuit as claim 1, at almost no extra cost. This is the cheapest genuinely useful thing on the list, and nobody ships it.</p>\n      <p class=\"dpw-cost\"><b>Cost:</b> a few thousand cycles on top of an inference you are already proving.</p>\n    </div>\n  </div>\n  <div class=\"dpw-card\" data-open=\"false\" data-k=\"no\">\n    <div class=\"dpw-card-head\"><span class=\"dpw-card-n\">4</span> \"This output is safe\"<span class=\"dpw-badge dpw-no\">not provable</span></div>\n    <div class=\"dpw-card-body\">\n      <p><b>The statement:</b> Y is harmless.</p>\n      <p><b>Why it fails:</b> there is no committed object to evaluate. Harmlessness is not a function of the bytes, it is a function of the reader, their intent, and what they already know. A proof system needs a decidable predicate over committed inputs and this is not one. No cycle budget changes that.</p>\n      <p class=\"dpw-cost\"><b>What you can have instead:</b> claim 2, stated honestly, which is a proof about a classifier and not about the world.</p>\n    </div>\n  </div>\n  <div class=\"dpw-card\" data-open=\"false\" data-k=\"no\">\n    <div class=\"dpw-card-head\"><span class=\"dpw-card-n\">5</span> \"Nothing about the withheld knowledge leaked\"<span class=\"dpw-badge dpw-no\">not provable</span></div>\n    <div class=\"dpw-card-body\">\n      <p><b>The statement:</b> the transcript reveals nothing about the witness w the model declined to give up.</p>\n      <p><b>Why it fails:</b> this is the December result, and a proof makes it worse rather than better. Detail in the section below.</p>\n      <p class=\"dpw-cost\"><b>Cost:</b> not applicable. There is no price for this one.</p>\n    </div>\n  </div>\n</div>\n<p>Claims 1 through 3 compose into something worth having. Call it the Verified Refusal protocol and grade it the way I graded Π<sub>SafeCompletion</sub> in December.</p>\n<p><strong>Setup</strong>: The challenger commits to weights <strong>W</strong> as <strong>H</strong> = SHA-256(<strong>W</strong>), a classifier <strong>θ</strong>, a threshold <strong>τ</strong>, and a system prefix <strong>S</strong> with digest <strong>h</strong><sub>S</sub>.</p>\n<p><strong>Protocol</strong>: On prompt <strong>P</strong>, the prover publishes <strong>Y</strong> together with a proof <strong>π</strong> that <strong>Y</strong> = M<sub><strong>W</strong></sub>(<strong>S</strong> ‖ <strong>P</strong>) for the committed <strong>W</strong> and <strong>S</strong>, and that C<sub><strong>θ</strong></sub>(<strong>Y</strong>) &#x3C; <strong>τ</strong>.</p>\n<p><strong>Completeness</strong>: An honest operator running the committed weights under the committed prefix always produces an accepting proof. <strong>Perfect.</strong></p>\n<p><strong>Soundness</strong>: Substituting a different model, a different system prompt, or a different classifier breaks a commitment, and forging past it means finding a SHA-256 collision. The advantage of any probabilistic polynomial-time adversary is negligible in the security parameter. <strong>Perfect.</strong></p>\n<p><strong>Zero-knowledge</strong>: Against the weights, fine. The proof reveals nothing about <strong>W</strong> beyond what <strong>Y</strong> already reveals. Against the withheld witness <strong>w</strong>, it changes nothing whatsoever, and that is the finding.</p>\n<h2 id=\"proofs-give-integrity-and-the-leak-was-never-an-integrity-problem\" style=\"position:relative;\"><a href=\"#proofs-give-integrity-and-the-leak-was-never-an-integrity-problem\" aria-label=\"proofs give integrity and the leak was never an integrity problem permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Proofs give integrity, and the leak was never an integrity problem</h2>\n<p>The December analysis said Π<sub>SafeCompletion</sub> fails zero-knowledge under adaptive composition. The prover produces a sanitised abstraction ŷ that is computationally dependent on the structure of <strong>w</strong>, the adversary composes ŷ across turns, and reconstructs.</p>\n<p>Now add a proof and read it again. The proof establishes that ŷ was computed correctly by the committed model under the committed policy. Every leak the December post identified is in ŷ, which is published either way, so the proof does not remove a single bit of it. If anything it certifies the leak's provenance, which is a strange thing to hand an adversary. The transcript that reconstructs the witness is now a transcript with a receipt.</p>\n<p>Stated generally: a zero-knowledge proof of an inference protects the weights and the prover's private inputs. It does not protect anything that appears in the output, and in a safe-completions design the output is the deliverable. You cannot prove your way out of a leak that lives in the product.</p>\n<p>That is the opinion I would defend in a room. Verifiable inference is worth building and I am building toward it. It answers \"did the operator run the model they said they ran, under the policy they published\", which is a real question with real money attached, and today nobody can answer it. It does not answer \"is this model safe\", and the two get conflated in almost every pitch deck I have read this year, mine included until about three weeks ago.</p>\n<h2 id=\"what-i-would-actually-measure-next\" style=\"position:relative;\"><a href=\"#what-i-would-actually-measure-next\" aria-label=\"what i would actually measure next permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What I would actually measure next</h2>\n<p>I want to be plain about the boundary between what is measured here and what is not, since the widget above exists precisely to stop me blurring it.</p>\n<p>Measured: 8,388,608 cycles for a residual check at 256 samples, 8 segments, the three receipt sizes, three prove times on two machine sizes, 9.61 GB peak memory, 5.06 ms local verification, 249,749 gas on chain. Those come from committed artifacts and a live chain call, and anyone can rerun them.</p>\n<p>Not measured, and required before any of the extrapolation above becomes a claim: prover throughput in cycles per second at a workload large enough that fixed cost stops dominating, the cycle cost of quantised integer matrix multiplication in this specific zkVM, and how segment-parallel proving actually scales past the eight segments I have. Those are three benchmarks, not three papers, and the first one is a weekend.</p>\n<p>Until they exist, the honest form of the headline is that proving one small deterministic check costs eight million cycles and four tenths of a cent, that a language model forward pass is between four and eleven orders of magnitude larger in operations depending on the model and the length of the answer, and that converting the second fact into a dollar figure requires a measurement I do not have.</p>\n<p>The cheapest useful thing anyone could ship tomorrow is claim 3. Commit the system prompt, hash it into whatever proof you are already producing, and let people check that the policy in force was the policy you published. It costs a few thousand cycles. It would have made the December post much harder to write, because I would have been able to check what I was arguing about instead of inferring it from nine thousand words of transcript.</p>\n<style>\n.dpw {\n  --ink: #1b2228; --ink2: #5b7085; --line: #dae4ed;\n  --maroon: #a72e2b; --maroon-d: #6a1d1b; --rose: #f2cdcc; --green: #3f8f5b;\n  border: 1px solid var(--line); border-radius: 6px; padding: 20px;\n  margin: 32px 0; background: #fff; font-family: 'Open Sans', sans-serif;\n}\n.dpw * { box-sizing: border-box; }\n.dpw-svg { width: 100%; height: auto; display: block; margin: 6px 0 4px;\n  background: linear-gradient(180deg, #fbfcfe, #f4f7fa); border-radius: 4px; }\n.dpw-controls { margin-bottom: 14px; }\n.dpw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }\n.dpw-label { display: block; font-size: 13px; color: var(--ink2); }\n.dpw-label input[type=range] { display: block; width: 100%; margin: 8px 0 0; accent-color: var(--maroon); }\n.dpw-val { color: var(--maroon-d); font-family: 'Inconsolata', monospace; font-weight: 700; }\n.dpw-hint { font-size: 12px; color: var(--ink2); margin-top: 10px; font-style: italic; }\n.dpw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }\n.dpw-panel { border: 1px solid var(--line); border-radius: 5px; padding: 14px; }\n.dpw-panel-warn { border-color: var(--rose); background: #fdf7f7; }\n.dpw-panel-h { font-family: 'Josefin Sans', sans-serif; font-size: 13px; text-transform: uppercase;\n  letter-spacing: .04em; color: var(--ink2); margin-bottom: 10px; }\n.dpw-panel-warn .dpw-panel-h { color: var(--maroon); }\n.dpw-line { font-size: 14px; color: var(--ink2); margin: 6px 0; }\n.dpw-line b { font-family: 'Inconsolata', monospace; font-size: 17px; color: var(--ink); }\n.dpw-line sup { font-size: 10px; }\n.dpw-detail { border: 1px solid var(--line); border-radius: 5px; padding: 12px 14px; margin-top: 12px; }\n.dpw-detail-h { font-family: 'Josefin Sans', sans-serif; font-size: 14px; color: var(--ink); margin-bottom: 6px; }\n.dpw-detail-b { font-size: 13px; color: var(--ink2); line-height: 21px; }\n.dpw-detail-b code { font-family: 'Inconsolata', monospace; font-size: 12px; background: #f4f7fa;\n  padding: 1px 5px; border-radius: 3px; color: var(--maroon-d); }\n.dpw-card { border: 1px solid var(--line); border-radius: 5px; margin-bottom: 8px; overflow: hidden; }\n.dpw-card-head { padding: 12px 14px; cursor: pointer; font-family: 'Josefin Sans', sans-serif;\n  font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 10px; transition: background .15s; }\n.dpw-card-head:hover { background: #f4f7fa; }\n.dpw-card[data-open=true] .dpw-card-head { background: var(--maroon); color: #fff; }\n.dpw-card-n { display: inline-flex; align-items: center; justify-content: center;\n  width: 22px; height: 22px; border-radius: 50%; background: var(--rose); color: var(--maroon-d);\n  font-family: 'Inconsolata', monospace; font-size: 13px; font-weight: 700; flex: none; }\n.dpw-card[data-open=true] .dpw-card-n { background: #fff; color: var(--maroon); }\n.dpw-badge { margin-left: auto; font-family: 'Inconsolata', monospace; font-size: 10px;\n  text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 3px; flex: none; }\n.dpw-yes { background: #dcefe3; color: var(--green); }\n.dpw-no { background: var(--rose); color: var(--maroon-d); }\n.dpw-card[data-open=true] .dpw-badge { background: rgba(255,255,255,.9); }\n.dpw-card-body { display: none; padding: 4px 16px 12px; font-size: 14px; color: var(--ink2); }\n.dpw-card[data-open=true] .dpw-card-body { display: block; }\n.dpw-card-body p { line-height: 22px; margin: 8px 0; }\n.dpw-card-body b { color: var(--ink); }\n.dpw-cost b { color: var(--maroon); }\n@media (max-width: 480px) {\n  .dpw-grid, .dpw-two { grid-template-columns: 1fr; }\n  .dpw-badge { display: none; }\n}\n@media (prefers-reduced-motion: reduce) { .dpw * { transition: none !important; } }\n</style>\n<script>\n(function () {\n  var root = document.getElementById('ladder');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var SVG = 'http://www.w3.org/2000/svg';\n  var svg = root.querySelector('#ld-svg');\n  // All measured on the 141/54 witness. Composite ran on 8 vCPU, the other two on 16.\n  var R = [\n    { n: 'composite', bytes: 2251496, prove: 3006.5, cpu: '8 vCPU', verify: null, c: '#dd9793',\n      d: 'The raw STARK, 8 segments unfolded. 3,006 seconds on eight cores. Fine as a file, far too large for a transaction, and there is no on-chain verifier that takes it.' },\n    { n: 'succinct', bytes: 224090, prove: 1463.2, cpu: '16 vCPU', verify: 20.13, c: '#c4635f',\n      d: 'Recursion folds the 8 segments into one. Ten times smaller and, on twice the cores, faster than the composite run it contains. Verifies locally in 20.13 ms.' },\n    { n: 'groth16', bytes: 1361, prove: 2618.7, cpu: '16 vCPU', verify: 5.06, c: '#a72e2b',\n      d: 'The recursive verifier proved inside a pairing SNARK, which needs a 3.62 GB proving key and a container. 1,361 bytes, of which the 260-byte seal is what travels. 5.06 ms locally, 249,749 gas on Base Sepolia, $0.0042.' }\n  ];\n  var P = { l: 74, r: 92, t: 26, b: 30 };\n  var LO = Math.log10(1000), HI = Math.log10(4000000);\n  function X(b) { return P.l + (Math.log10(b) - LO) / (HI - LO) * (480 - P.l - P.r); }\n  function el(n, at) { var e = document.createElementNS(SVG, n); for (var k in at) e.setAttribute(k, at[k]); return e; }\n  var hover = -1;\n\n  function draw() {\n    while (svg.firstChild) svg.removeChild(svg.firstChild);\n    [1e3, 1e4, 1e5, 1e6].forEach(function (t) {\n      svg.appendChild(el('line', { x1: X(t), y1: P.t - 6, x2: X(t), y2: 200 - P.b, stroke: '#dae4ed', 'stroke-width': 1 }));\n      var lb = el('text', { x: X(t), y: 200 - P.b + 14, 'text-anchor': 'middle', 'font-size': 9.5,\n        fill: '#94a6b8', 'font-family': 'Inconsolata, monospace' });\n      lb.textContent = t >= 1e6 ? '1 MB' : t >= 1e3 ? (t / 1e3) + ' KB' : t;\n      svg.appendChild(lb);\n    });\n    R.forEach(function (r, i) {\n      var y = P.t + i * 44;\n      var g = el('g', { cursor: 'pointer' });\n      g.appendChild(el('rect', { x: P.l, y: y, width: Math.max(X(r.bytes) - P.l, 2), height: 26, rx: 3,\n        fill: r.c, opacity: hover === -1 || hover === i ? 1 : 0.4 }));\n      g.appendChild(el('rect', { x: 0, y: y - 6, width: 480, height: 38, fill: 'transparent' }));\n      on(g, 'mouseenter', function () { if (hover === i) return; hover = i; draw(); detail(i); });\n      svg.appendChild(g);\n      var nm = el('text', { x: P.l - 8, y: y + 17, 'text-anchor': 'end', 'font-size': 12,\n        fill: '#1b2228', 'font-family': 'Josefin Sans, sans-serif' }); nm.textContent = r.n;\n      svg.appendChild(nm);\n      var vl = el('text', { x: X(r.bytes) + 7, y: y + 17, 'font-size': 10.5,\n        fill: '#5b7085', 'font-family': 'Inconsolata, monospace' });\n      vl.textContent = r.bytes.toLocaleString() + ' B';\n      svg.appendChild(vl);\n      var pv = el('text', { x: P.l + 6, y: y + 17, 'font-size': 10, fill: '#fff',\n        'font-family': 'Inconsolata, monospace' });\n      pv.textContent = Math.round(r.prove) + ' s';\n      if (X(r.bytes) - P.l > 60) svg.appendChild(pv);\n    });\n    var ax = el('text', { x: 240, y: 196, 'text-anchor': 'middle', 'font-size': 10.5, fill: '#5b7085' });\n    ax.textContent = 'receipt size, log scale. bar label is prove time.';\n    svg.appendChild(ax);\n  }\n  function detail(i) {\n    var d = root.querySelector('#ld-detail'), r = R[i];\n    d.querySelector('.dpw-detail-h').textContent =\n      r.n + ' · ' + r.bytes.toLocaleString() + ' bytes · ' + Math.round(r.prove) + ' s on ' + r.cpu +\n      (r.verify ? ' · verifies in ' + r.verify + ' ms' : '');\n    d.querySelector('.dpw-detail-b').textContent = r.d;\n  }\n  draw();\n})();\n</script>\n<script>\n(function () {\n  var root = document.getElementById('extrap');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var PARAMS = [[0.5e9, '0.5B'], [1.5e9, '1.5B'], [7e9, '7B'], [13e9, '13B'], [70e9, '70B'], [405e9, '405B']];\n  var TOKENS = [[1, '1'], [64, '64'], [256, '256'], [1024, '1,024'], [4096, '4,096']];\n  var CPO = [[1, '1 (int8, optimistic)'], [8, '8'], [92, '92 (measured, f64)'], [256, '256'], [1024, '1,024']];\n  var SEG = 1048576;\n\n  function fmtBig(v) {\n    var u = [[1e12, ' T'], [1e9, ' B'], [1e6, ' M'], [1e3, ' K']];\n    for (var i = 0; i < u.length; i++) if (v >= u[i][0]) return (v / u[i][0]).toFixed(v / u[i][0] < 10 ? 1 : 0) + u[i][1];\n    return v.toFixed(0);\n  }\n  function fmtTime(s) {\n    if (s < 60) return s.toFixed(1) + ' s';\n    if (s < 3600) return (s / 60).toFixed(1) + ' min';\n    if (s < 86400) return (s / 3600).toFixed(1) + ' hours';\n    if (s < 86400 * 365) return (s / 86400).toFixed(0) + ' days';\n    var y = s / (86400 * 365);\n    return y >= 1000 ? fmtBig(y) + ' years' : y.toFixed(0) + ' years';\n  }\n  function render() {\n    var p = PARAMS[+root.querySelector('#ex-p').value];\n    var t = TOKENS[+root.querySelector('#ex-t').value];\n    var c = CPO[+root.querySelector('#ex-c').value];\n    var rExp = +root.querySelector('#ex-r').value;\n    var rate = Math.pow(10, rExp);\n\n    root.querySelector('#ex-p-val').textContent = p[1];\n    root.querySelector('#ex-t-val').textContent = t[1];\n    root.querySelector('#ex-c-val').textContent = c[1];\n    root.querySelector('#ex-r-val').textContent = fmtBig(rate).trim();\n\n    var ops = 2 * p[0] * t[0];\n    var cyc = ops * c[0];\n    root.querySelector('#ex-ops').textContent = fmtBig(ops);\n    root.querySelector('#ex-cyc').textContent = fmtBig(cyc);\n    root.querySelector('#ex-seg').textContent = fmtBig(Math.ceil(cyc / SEG));\n    root.querySelector('#ex-time').textContent = fmtTime(cyc / rate);\n    root.querySelector('#ex-band').textContent =\n      fmtTime(cyc / 1e8) + ' to ' + fmtTime(cyc / 1e3);\n  }\n  ['#ex-p', '#ex-t', '#ex-c', '#ex-r'].forEach(function (id) {\n    on(root.querySelector(id), 'input', render);\n  });\n  render();\n})();\n</script>\n<script>\n(function () {\n  var root = document.getElementById('claims');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var cards = root.querySelectorAll('.dpw-card');\n  cards.forEach(function (card) {\n    on(card.querySelector('.dpw-card-head'), 'click', function () {\n      var open = card.getAttribute('data-open') === 'true';\n      cards.forEach(function (c) { c.setAttribute('data-open', 'false'); });\n      card.setAttribute('data-open', open ? 'false' : 'true');\n    });\n  });\n})();\n</script>","headings":[{"value":"The smallest interesting verifiable claim","depth":2},{"value":"What you buy at each rung","depth":2},{"value":"The number I refuse to publish","depth":2},{"value":"What is actually provable about a refusal","depth":2},{"value":"Proofs give integrity, and the leak was never an integrity problem","depth":2},{"value":"What I would actually measure next","depth":2}],"frontmatter":{"date_created":"2026-08-24","path":"/blog/cost-of-proving-llm-refusal","tags":["AI Safety","Zero Knowledge Proofs","Verifiable Computation"],"title":"What It Would Cost To Prove An LLM Refused Correctly"}},"currPost":{"html":"<p>Your proof can be valid, your verifier contract can be correct, the two of them can agree on every piece of mathematics between them, and the transaction still reverts.</p>\n<p>Mine did, for seven weeks. On 3 July I generated a RISC Zero proof of a satellite computation and pushed the on-chain verification to a to-do item, where it sat. The proof verified locally on every run I ever did. The chain rejected it. I assumed the wrap was half finished, because that is the boring explanation and the boring explanation is usually right.</p>\n<p>It was not the wrap. The proof had been valid the entire time. Eight 32-bit words were written to the calldata in the wrong byte order, and nothing in the stack is built to notice that.</p>\n<h2 id=\"the-two-verifiers-disagreed-and-both-were-correct\" style=\"position:relative;\"><a href=\"#the-two-verifiers-disagreed-and-both-were-correct\" aria-label=\"the two verifiers disagreed and both were correct permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The two verifiers disagreed and both were correct</h2>\n<p>The setup is ordinary. A RISC Zero guest re-executes a residual check over a satellite certificate. The host proves it, wraps the STARK into a Groth16 SNARK, and writes out the three arguments a Solidity verifier needs: the seal, the image ID, and the digest of the journal.</p>\n<p>Local verification is one line in the host, and it passes.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">[host] PROVED + VERIFIED in 2618.7s\n[host] VERIFY_MS 5.0582\n[host] JOURNAL_BYTES 432</code></pre></div>\n<p>Five milliseconds, receipt accepted, journal decoded, all fields as expected. Every signal on my machine said healthy.</p>\n<p>On Base Sepolia the same seal, against the RISC Zero verifier router at <code class=\"language-text\">0x0b144e07a0826182b6b59788c34b32bfa86fb711</code>, returned this.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">execution reverted, data: 0x439cc0cd</code></pre></div>\n<p>My first guess was that the router had no verifier registered for my seal version, which is the common failure and has a distinctive error. So I decoded the selector instead of guessing. <code class=\"language-text\">0x439cc0cd</code> is <code class=\"language-text\">VerificationFailed()</code>. Then I asked the router directly which contract it had registered for my seal's selector <code class=\"language-text\">0x73c457ba</code>, and it answered <code class=\"language-text\">0x724d375b5b622e15f0e64e9deb76a4cb17877797</code>.</p>\n<p>So the routing worked. The right verifier received the proof, ran the pairing check, and rejected it.</p>\n<p>At that point there are only two possibilities. The proof is invalid, or the statement I handed the verifier is not the statement the proof is about. The local verifier had already ruled out the first one.</p>\n<h2 id=\"eight-words-backwards\" style=\"position:relative;\"><a href=\"#eight-words-backwards\" aria-label=\"eight words backwards permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Eight words, backwards</h2>\n<p>Here is the line, in the host.</p>\n<div class=\"gatsby-highlight\" data-language=\"rust\"><pre class=\"language-rust\"><code class=\"language-rust\"><span class=\"token keyword\">let</span> image_id <span class=\"token operator\">=</span> <span class=\"token constant\">CERT_VERIFY_ID</span>\n    <span class=\"token punctuation\">.</span><span class=\"token function\">iter</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span>\n    <span class=\"token punctuation\">.</span><span class=\"token function\">map</span><span class=\"token punctuation\">(</span><span class=\"token closure-params\"><span class=\"token closure-punctuation punctuation\">|</span>w<span class=\"token closure-punctuation punctuation\">|</span></span> <span class=\"token macro property\">format!</span><span class=\"token punctuation\">(</span><span class=\"token string\">\"{w:08x}\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">)</span>\n    <span class=\"token punctuation\">.</span><span class=\"token function\">collect</span><span class=\"token punctuation\">::</span><span class=\"token operator\">&lt;</span><span class=\"token class-name\">Vec</span><span class=\"token operator\">&lt;</span>_<span class=\"token operator\">>></span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span>\n    <span class=\"token punctuation\">.</span><span class=\"token function\">join</span><span class=\"token punctuation\">(</span><span class=\"token string\">\"\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span></code></pre></div>\n<p><code class=\"language-text\">CERT_VERIFY_ID</code> is a <code class=\"language-text\">[u32; 8]</code>. Formatting each word with <code class=\"language-text\">{:08x}</code> prints it big-endian, most significant byte first. The canonical byte string of a RISC Zero digest is the little-endian serialisation of each word. Same eight words, same 32 bytes, with the four bytes inside every word reversed.</p>\n<p>Toggle the two encodings below and watch what moves.</p>\n<div class=\"dpw\" id=\"flip\" data-initialised=\"false\">\n  <div class=\"dpw-toggle-row\">\n    <span class=\"dpw-toggle-cap\">Image ID encoding</span>\n    <button class=\"dpw-toggle\" id=\"fl-host\" data-on=\"true\">as the host writes it</button>\n    <button class=\"dpw-toggle\" id=\"fl-canon\">canonical digest bytes</button>\n  </div>\n  <div class=\"dpw-words\" id=\"fl-words\"></div>\n  <div class=\"dpw-hexrow\">\n    <span class=\"dpw-hexcap\">bytes sent to <code>verify()</code></span>\n    <code class=\"dpw-hex\" id=\"fl-hex\"></code>\n  </div>\n  <div class=\"dpw-term\">\n    <div class=\"dpw-term-l\"><span class=\"dpw-prompt\">$</span> cast call 0x0b144e07…b711 \"verify(bytes,bytes32,bytes32)\" $SEAL $IMG $JOURNAL</div>\n    <div class=\"dpw-term-r\" id=\"fl-out\">execution reverted, data: 0x439cc0cd &nbsp;<span class=\"dpw-decode\">VerificationFailed()</span></div>\n  </div>\n  <div class=\"dpw-hint\">Same seal. Same journal. Same 32 bytes, regrouped. One of these settles on chain for 249,749 gas and the other one does not settle at all.</div>\n</div>\n<p>Nothing about the proof changed. The seal is the same 260 bytes, the journal is the same 432 bytes, the digest of the journal is the same <code class=\"language-text\">0xee0444bb…</code>. Only the statement moved, and only inside each word.</p>\n<p>I want to be careful about what kind of bug this is, because I filed it in my head under the wrong heading at first.</p>\n<h2 id=\"this-is-a-completeness-failure-which-is-why-nobody-was-looking-for-it\" style=\"position:relative;\"><a href=\"#this-is-a-completeness-failure-which-is-why-nobody-was-looking-for-it\" aria-label=\"this is a completeness failure which is why nobody was looking for it permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>This is a completeness failure, which is why nobody was looking for it</h2>\n<p>Write down what soundness actually quantifies over. For a proof system <strong>Π</strong> = (Prove, Verify) with security parameter <strong>λ</strong>, soundness says that for every probabilistic polynomial-time prover <strong>P*</strong>,</p>\n<div class=\"dpw-formula\">Pr[ Verify(x, &pi;) = 1 &nbsp;&and;&nbsp; x &notin; L ] &nbsp;&le;&nbsp; negl(&lambda;)</div>\n<p>Read the quantifier. <strong>x</strong> is handed to Verify. The statement is an input to the security definition, not an output of it. Everything the proof system promises is conditional on both parties already agreeing on what <strong>x</strong> is.</p>\n<p>In a deployment there is no such agreement. There is a map.</p>\n<p><strong>Setup</strong>: The challenger fixes a program identity <strong>I</strong> (here a <code class=\"language-text\">[u32; 8]</code> image ID) and a journal <strong>J</strong>. The honest encoding <strong>E*</strong> produces the canonical statement bytes <strong>x*</strong> = <strong>E*</strong>(<strong>I</strong>, <strong>J</strong>). The deployed encoding <strong>E</strong> produces <strong>x</strong> = <strong>E</strong>(<strong>I</strong>, <strong>J</strong>).</p>\n<p><strong>The deployed check</strong>: The prover computes <strong>π</strong> ← Prove(<strong>x*</strong>), and the chain computes V<sub>chain</sub>(<strong>E</strong>(<strong>I</strong>, <strong>J</strong>), <strong>π</strong>).</p>\n<p><strong>Encoding fault</strong>: <strong>E</strong> ≠ <strong>E*</strong>.</p>\n<p>Grade it.</p>\n<p><strong>Completeness</strong>: An honest prover with a correct proof is rejected whenever <strong>E</strong> ≠ <strong>E*</strong>. That is exactly what happened, for seven weeks. <strong>Fails.</strong></p>\n<p><strong>Soundness</strong>: Untouched. The verifier rejected a statement it had no proof for, which is precisely the behaviour soundness demands. The system was never insecure. <strong>Perfect.</strong></p>\n<p><strong>Zero-knowledge</strong>: Untouched. Nothing leaked. <strong>Perfect.</strong></p>\n<p>So my bug lived in the one property whose failure mode looks like a stuck ticket rather than a breach. Completeness failures get triaged as \"the deploy isn't finished\". They do not get security review, they do not get a postmortem, and they can sit in a backlog for two months while everybody assumes the missing piece is somewhere else.</p>\n<p>Now flip the direction, because that is the part that should worry you. Suppose <strong>E</strong> is not injective, so two distinct statements collide onto the same bytes. Truncate the image ID, or pack a length field ambiguously, or hash a struct without domain separation. Then a proof about statement <strong>x₁</strong> is accepted as a proof about <strong>x₂</strong>, and the same silence applies. That is a soundness break, delivered by the same class of defect, and the proof system will not see it because <strong>E</strong> was never inside the quantifier.</p>\n<p>The property that needs stating out loud, and that neither the proof system nor the verifier contract checks, is this. <strong>E</strong> must be canonical and injective, and both sides must implement the same <strong>E</strong>.</p>\n<h2 id=\"where-the-trust-actually-sits\" style=\"position:relative;\"><a href=\"#where-the-trust-actually-sits\" aria-label=\"where the trust actually sits permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Where the trust actually sits</h2>\n<p>I found this useful to draw. Click a link in the chain to see what carries a proof and what carries an assumption.</p>\n<div class=\"dpw\" id=\"surface\" data-initialised=\"false\">\n  <svg id=\"sf-svg\" viewBox=\"0 0 480 150\" class=\"dpw-svg\" role=\"img\" aria-label=\"Pipeline from guest source to on-chain verifier, showing which links are proved and which are trusted\"></svg>\n  <div class=\"dpw-legend\">\n    <span class=\"dpw-key\"><i style=\"background:#3f8f5b\"></i>covered by a proof</span>\n    <span class=\"dpw-key\"><i style=\"background:#a72e2b\"></i>trusted, unproven</span>\n  </div>\n  <div class=\"dpw-detail\" id=\"sf-detail\">\n    <div class=\"dpw-detail-h\">Pick a link</div>\n    <div class=\"dpw-detail-b\">The zkVM covers exactly one of these five. The other four are engineering you have to get right by hand, and two of mine were wrong.</div>\n  </div>\n</div>\n<p>The middle link is the only one the zkVM is about. It says the guest with image ID <strong>I</strong> executed and produced journal <strong>J</strong>, and it says it with a soundness error negligible in <strong>λ</strong>. Every other link is ordinary software.</p>\n<h2 id=\"the-second-hole-in-the-same-boundary\" style=\"position:relative;\"><a href=\"#the-second-hole-in-the-same-boundary\" aria-label=\"the second hole in the same boundary permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The second hole in the same boundary</h2>\n<p>While I had the prover up I rebuilt the guest from unchanged source to check something else, and got a different image ID.</p>\n<p>The July build identifies as <code class=\"language-text\">7403d550c2a6…</code>. Today's build of the same source, same repository, same machine, identifies as <code class=\"language-text\">c48992463c2a…</code>. The journals are byte-identical, the residual is the same to the last digit, the computation did not move. Only the program's name for itself did.</p>\n<p>That matters more than it sounds. The image ID is the on-chain claim about <em>which program ran</em>. If a reader cannot rebuild the guest and arrive at the ID that is published, then the published ID is an assertion by me rather than a fact they can check, and the whole point of putting it on a chain evaporates. RISC Zero ships a fix for this, a containerised guest build that pins the toolchain, and I had not turned it on.</p>\n<p>So the same boundary has two defects. The encoding of the program identity was wrong, and the derivation of the program identity was not reproducible. Both live in the gap between \"the proof is valid\" and \"you and I agree on what it is a proof of\".</p>\n<h2 id=\"what-the-corrected-call-actually-costs\" style=\"position:relative;\"><a href=\"#what-the-corrected-call-actually-costs\" aria-label=\"what the corrected call actually costs permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What the corrected call actually costs</h2>\n<p>With the byte order fixed, the call returns empty, which is how the RISC Zero interface says yes. Here is where the money goes.</p>\n<div class=\"dpw\" id=\"gas\" data-initialised=\"false\">\n  <div class=\"dpw-toggle-row\">\n    <span class=\"dpw-toggle-cap\">Show</span>\n    <button class=\"dpw-toggle\" id=\"gs-gas\" data-on=\"true\">gas</button>\n    <button class=\"dpw-toggle\" id=\"gs-bytes\">calldata bytes</button>\n  </div>\n  <svg id=\"gs-svg\" viewBox=\"0 0 480 118\" class=\"dpw-svg\" role=\"img\" aria-label=\"Breakdown of gas and calldata for the on-chain verification call\"></svg>\n  <div class=\"dpw-readout\">\n    <div class=\"dpw-stat\"><span class=\"dpw-num\">276,389</span><span class=\"dpw-cap\">gas, whole transaction</span></div>\n    <div class=\"dpw-stat\"><span class=\"dpw-num\">249,749</span><span class=\"dpw-cap\">gas, the pairing check itself</span></div>\n    <div class=\"dpw-stat\"><span class=\"dpw-num\">$0.0042</span><span class=\"dpw-cap\">at 0.006 gwei, ETH $2,512</span></div>\n  </div>\n  <div class=\"dpw-hint\">Hover a segment. Gas price read from Base mainnet and ETH spot from Coinbase on 24 August 2026, both stated so you can redo the arithmetic when they move.</div>\n</div>\n<p>Two proving runs sit behind that one call. The STARK and its recursion took 1,501 seconds before failing, and the successful wrap took 2,618.7 seconds with a peak resident set of 9.61 GB. The receipt shrinks from 2,251,496 bytes to 1,361 across that pipeline, and the seal that actually travels is 260 bytes.</p>\n<p>That first failure is worth one paragraph on its own, because it wasted 25 minutes and it will waste yours. The wrap runs inside a container, so the prover process needs to reach the Docker socket. Mine could not.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">thread &#39;main&#39; panicked at host/src/main.rs:72:10:\n  called `Result::unwrap()` on an `Err` value: docker returned failure exit code: Some(1)</code></pre></div>\n<p>The user was not in the <code class=\"language-text\">docker</code> group. The STARK and the recursion both completed first, so the run burns its full compute before dying on a permission check that could have been made in the first second. A <code class=\"language-text\">groups</code> check at startup would have cost nothing.</p>\n<h2 id=\"the-rule-i-took-away\" style=\"position:relative;\"><a href=\"#the-rule-i-took-away\" aria-label=\"the rule i took away permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The rule I took away</h2>\n<p>I have written before about grading protocols on completeness, soundness, and zero-knowledge. What this cost me is that I had been grading <strong>Π</strong>, and shipping V<sub>chain</sub> ∘ <strong>E</strong>.</p>\n<p>So the question I ask now, before wiring any proof to any verifier I did not write, is which bytes both sides think the statement is, and who wrote each of the two functions that produce them. If the answer is \"two different implementations in two different languages by two different authors\", that map deserves a test vector of its own, checked in, with the canonical bytes pinned. It is three lines of test and it would have saved me seven weeks.</p>\n<p>There's a broader version of this that I believe and will defend. Cryptographic assurance ends at the edge of the security definition, and the security definition starts <em>after</em> the statement exists. Everything upstream of that, the build that produces the program identity, the serialisation that produces the statement, the ABI that carries it, is unverified plumbing wearing the reputation of the proof it carries. Most of the code in a deployed proof system lives there.</p>\n<p>The mathematics was never the risky part.</p>\n<style>\n.dpw {\n  --ink: #1b2228; --ink2: #5b7085; --line: #dae4ed;\n  --maroon: #a72e2b; --maroon-d: #6a1d1b; --rose: #f2cdcc; --green: #3f8f5b;\n  border: 1px solid var(--line); border-radius: 6px; padding: 20px;\n  margin: 32px 0; background: #fff; font-family: 'Open Sans', sans-serif;\n}\n.dpw * { box-sizing: border-box; }\n.dpw-formula { text-align: center; font-family: 'Inconsolata', monospace; font-size: 18px;\n  color: #1b2228; margin: 22px 0; }\n.dpw-toggle-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }\n.dpw-toggle-cap { width: 100%; margin-bottom: 2px; font-size: 12px; color: var(--ink2); }\n.dpw-toggle { font-family: 'Inconsolata', monospace; font-size: 12px; border: 1px solid var(--line);\n  background: #fff; color: var(--ink2); padding: 5px 9px; border-radius: 4px; cursor: pointer; transition: all .15s; }\n.dpw-toggle[data-on=true] { background: var(--maroon); color: #fff; border-color: var(--maroon); }\n.dpw-words { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 14px; }\n.dpw-wrow { display: flex; align-items: center; gap: 8px; }\n.dpw-wlab { font-family: 'Inconsolata', monospace; font-size: 11px; color: #94a6b8; width: 22px; flex: none; }\n.dpw-wtrack { position: relative; height: 24px; flex: 1; }\n.dpw-byte { position: absolute; top: 0; height: 24px; width: 23.5%; border-radius: 3px;\n  font-family: 'Inconsolata', monospace; font-size: 12px; font-weight: 700; color: #fff;\n  display: flex; align-items: center; justify-content: center;\n  transition: left .45s cubic-bezier(.4,0,.2,1); }\n.dpw-hexrow { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }\n.dpw-hexcap { font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }\n.dpw-hexcap code { text-transform: none; font-size: 11px; }\n.dpw-hex { font-family: 'Inconsolata', monospace; font-size: 12px; color: var(--maroon-d);\n  word-break: break-all; line-height: 1.6; background: #f4f7fa; padding: 8px 10px; border-radius: 4px; }\n.dpw-term { background: #1b2228; border-radius: 5px; padding: 12px 14px; font-family: 'Inconsolata', monospace;\n  font-size: 12px; line-height: 1.7; overflow-x: auto; }\n.dpw-term-l { color: #8ba2b8; white-space: nowrap; }\n.dpw-prompt { color: var(--green); }\n.dpw-term-r { color: #f2cdcc; margin-top: 4px; }\n.dpw-term-r.ok { color: #7fd6a0; }\n.dpw-decode { color: #94a6b8; }\n.dpw-svg { width: 100%; height: auto; display: block; margin: 6px 0 4px;\n  background: linear-gradient(180deg, #fbfcfe, #f4f7fa); border-radius: 4px; }\n.dpw-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }\n.dpw-key { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }\n.dpw-key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }\n.dpw-detail { border: 1px solid var(--line); border-radius: 5px; padding: 12px 14px; margin-top: 12px; }\n.dpw-detail-h { font-family: 'Josefin Sans', sans-serif; font-size: 14px; color: var(--ink); margin-bottom: 6px; }\n.dpw-detail-b { font-size: 13px; color: var(--ink2); line-height: 21px; }\n.dpw-detail-b code { font-family: 'Inconsolata', monospace; font-size: 12px; background: #f4f7fa;\n  padding: 1px 5px; border-radius: 3px; color: var(--maroon-d); }\n.dpw-readout { display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap; }\n.dpw-stat { display: flex; flex-direction: column; }\n.dpw-num { font-family: 'Josefin Sans', sans-serif; font-size: 24px; color: var(--maroon-d); line-height: 1.1; }\n.dpw-cap { font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }\n.dpw-hint { font-size: 12px; color: var(--ink2); margin-top: 8px; font-style: italic; }\n@media (max-width: 480px) { .dpw-readout { gap: 14px; } .dpw-num { font-size: 20px; } }\n@media (prefers-reduced-motion: reduce) { .dpw * { transition: none !important; } }\n</style>\n<script>\n(function () {\n  var root = document.getElementById('flip');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  // The real image ID, as eight u32 words printed big-endian by the host.\n  var HOST = 'c48992463c2a9780752776d1ac9cc75a50ae245f282d4b04198dcc9dd6478bc0';\n  var SHADES = ['#6a1d1b', '#a72e2b', '#c4635f', '#dd9793'];\n  var wrap = root.querySelector('#fl-words');\n  var canonical = false;\n\n  var words = [];\n  for (var i = 0; i < 8; i++) {\n    var bytes = [];\n    for (var b = 0; b < 4; b++) bytes.push(HOST.substr(i * 8 + b * 2, 2));\n    words.push(bytes);\n  }\n\n  // build once, then only move the cells\n  words.forEach(function (bytes, wi) {\n    var row = document.createElement('div'); row.className = 'dpw-wrow';\n    var lab = document.createElement('span'); lab.className = 'dpw-wlab'; lab.textContent = 'w' + wi;\n    var track = document.createElement('div'); track.className = 'dpw-wtrack';\n    bytes.forEach(function (hex, bi) {\n      var cell = document.createElement('div');\n      cell.className = 'dpw-byte'; cell.textContent = hex;\n      cell.style.background = SHADES[bi];\n      cell.setAttribute('data-bi', bi);\n      track.appendChild(cell);\n    });\n    row.appendChild(lab); row.appendChild(track); wrap.appendChild(row);\n  });\n\n  function hexString() {\n    return words.map(function (bytes) {\n      var b = canonical ? bytes.slice().reverse() : bytes;\n      return b.join('');\n    }).join('');\n  }\n\n  function render() {\n    root.querySelectorAll('.dpw-wtrack').forEach(function (track) {\n      track.querySelectorAll('.dpw-byte').forEach(function (cell) {\n        var bi = parseInt(cell.getAttribute('data-bi'), 10);\n        var slot = canonical ? 3 - bi : bi;\n        cell.style.left = (slot * 25.5) + '%';\n      });\n    });\n    root.querySelector('#fl-hex').textContent = '0x' + hexString();\n    var out = root.querySelector('#fl-out');\n    if (canonical) {\n      out.className = 'dpw-term-r ok';\n      out.innerHTML = '0x &nbsp;<span class=\"dpw-decode\">empty return, the proof is accepted &middot; 249,749 gas</span>';\n    } else {\n      out.className = 'dpw-term-r';\n      out.innerHTML = 'execution reverted, data: 0x439cc0cd &nbsp;<span class=\"dpw-decode\">VerificationFailed()</span>';\n    }\n    root.querySelector('#fl-host').setAttribute('data-on', !canonical);\n    root.querySelector('#fl-canon').setAttribute('data-on', canonical);\n  }\n  on(root.querySelector('#fl-host'), 'click', function () { canonical = false; render(); });\n  on(root.querySelector('#fl-canon'), 'click', function () { canonical = true; render(); });\n  render();\n})();\n</script>\n<script>\n(function () {\n  var root = document.getElementById('surface');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var SVG = 'http://www.w3.org/2000/svg';\n  var svg = root.querySelector('#sf-svg');\n  var NODES = [\n    { x: 34, t: 'guest', s: 'source' },\n    { x: 138, t: 'ELF', s: 'binary' },\n    { x: 242, t: 'image ID', s: '[u32; 8]' },\n    { x: 346, t: 'calldata', s: '420 bytes' },\n    { x: 448, t: 'verifier', s: 'Solidity' }\n  ];\n  var LINKS = [\n    { i: 0, proved: false, h: 'Build: source to ELF',\n      b: 'Not reproducible in my setup. The same source rebuilt on the same machine produced image ID <code>c48992463c2a…</code> against July\\'s <code>7403d550c2a6…</code>. Fix is RISC Zero\\'s containerised guest build, which pins the toolchain.' },\n    { i: 1, proved: false, h: 'Identity: ELF to image ID',\n      b: 'A digest of the binary. Correct here, but only meaningful if the previous link is reproducible. If you cannot rebuild the ELF, this ID is my word rather than your check.' },\n    { i: 2, proved: true, h: 'Execution: the zkVM proof',\n      b: 'The only link with a security proof behind it. It says the guest with this image ID ran and produced this journal, with soundness error negligible in the security parameter. 8,388,608 cycles, 8 segments, wrapped to a 260-byte seal.' },\n    { i: 3, proved: false, h: 'Encoding: image ID to calldata',\n      b: 'This is the one that broke. <code>format!(\"{w:08x}\")</code> over a <code>[u32; 8]</code> prints each word big-endian; the verifier expects the little-endian digest bytes. Seven weeks of <code>VerificationFailed()</code>.' }\n  ];\n  var sel = -1;\n\n  function el(n, at) { var e = document.createElementNS(SVG, n); for (var k in at) e.setAttribute(k, at[k]); return e; }\n\n  function draw() {\n    while (svg.firstChild) svg.removeChild(svg.firstChild);\n    LINKS.forEach(function (lk, i) {\n      var a = NODES[lk.i], b = NODES[lk.i + 1];\n      var col = lk.proved ? '#3f8f5b' : '#a72e2b';\n      var g = el('g', { cursor: 'pointer' });\n      g.appendChild(el('line', { x1: a.x + 30, y1: 58, x2: b.x - 30, y2: 58,\n        stroke: col, 'stroke-width': sel === i ? 4 : 2.2,\n        'stroke-dasharray': lk.proved ? '' : '5 3' }));\n      g.appendChild(el('polygon', { points: (b.x - 30) + ',58 ' + (b.x - 37) + ',54 ' + (b.x - 37) + ',62', fill: col }));\n      g.appendChild(el('rect', { x: a.x + 30, y: 46, width: b.x - a.x - 60, height: 24, fill: 'transparent' }));\n      on(g, 'click', function () { sel = i; draw(); detail(); });\n      svg.appendChild(g);\n    });\n    NODES.forEach(function (n) {\n      svg.appendChild(el('rect', { x: n.x - 30, y: 40, width: 60, height: 36, rx: 4,\n        fill: '#fff', stroke: '#dae4ed', 'stroke-width': 1.2 }));\n      var t1 = el('text', { x: n.x, y: 57, 'text-anchor': 'middle', 'font-size': 11,\n        fill: '#1b2228', 'font-family': 'Josefin Sans, sans-serif' }); t1.textContent = n.t;\n      var t2 = el('text', { x: n.x, y: 68, 'text-anchor': 'middle', 'font-size': 8.5,\n        fill: '#94a6b8', 'font-family': 'Inconsolata, monospace' }); t2.textContent = n.s;\n      svg.appendChild(t1); svg.appendChild(t2);\n    });\n    var hint = el('text', { x: 240, y: 108, 'text-anchor': 'middle', 'font-size': 10.5,\n      fill: '#5b7085', 'font-style': 'italic' });\n    hint.textContent = sel === -1 ? 'click a link between two boxes' : '';\n    svg.appendChild(hint);\n  }\n  function detail() {\n    var d = root.querySelector('#sf-detail');\n    var lk = LINKS[sel];\n    d.querySelector('.dpw-detail-h').textContent = (lk.proved ? '✓ ' : '! ') + lk.h;\n    d.querySelector('.dpw-detail-h').style.color = lk.proved ? '#3f8f5b' : '#a72e2b';\n    d.querySelector('.dpw-detail-b').innerHTML = lk.b;\n  }\n  draw();\n})();\n</script>\n<script>\n(function () {\n  var root = document.getElementById('gas');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var SVG = 'http://www.w3.org/2000/svg';\n  var svg = root.querySelector('#gs-svg');\n  // Measured: eth_estimateGas 276,389. Intrinsic = 21,000 + 330 nonzero x16 + 90 zero x4.\n  var GAS = [\n    { l: 'base transaction', v: 21000, c: '#dd9793' },\n    { l: 'calldata, 420 bytes', v: 5640, c: '#c4635f' },\n    { l: 'Groth16 pairing check', v: 249749, c: '#a72e2b' }\n  ];\n  var BYTES = [\n    { l: 'selector', v: 4, c: '#dd9793' },\n    { l: 'head: offset + imageId + journalDigest', v: 96, c: '#c4635f' },\n    { l: 'seal length word', v: 32, c: '#8ba2b8' },\n    { l: 'seal, 260 bytes padded to 288', v: 288, c: '#a72e2b' }\n  ];\n  var mode = 'gas', hover = -1;\n  function el(n, at) { var e = document.createElementNS(SVG, n); for (var k in at) e.setAttribute(k, at[k]); return e; }\n\n  function draw() {\n    var data = mode === 'gas' ? GAS : BYTES;\n    var unit = mode === 'gas' ? ' gas' : ' bytes';\n    var total = data.reduce(function (a, d) { return a + d.v; }, 0);\n    while (svg.firstChild) svg.removeChild(svg.firstChild);\n    var X0 = 14, W = 452, x = X0;\n    data.forEach(function (d, i) {\n      var w = d.v / total * W;\n      var g = el('g', { cursor: 'pointer' });\n      g.appendChild(el('rect', { x: x, y: 26, width: Math.max(w, 1.5), height: 34, fill: d.c,\n        opacity: hover === -1 || hover === i ? 1 : 0.45 }));\n      g.appendChild(el('rect', { x: x, y: 18, width: Math.max(w, 1.5), height: 50, fill: 'transparent' }));\n      on(g, 'mouseenter', function () { if (hover === i) return; hover = i; draw(); });\n      on(g, 'mouseleave', function () { hover = -1; draw(); });\n      svg.appendChild(g);\n      if (w > 46) {\n        var t = el('text', { x: x + w / 2, y: 48, 'text-anchor': 'middle', 'font-size': 11,\n          fill: '#fff', 'font-family': 'Inconsolata, monospace' });\n        t.textContent = d.v.toLocaleString();\n        svg.appendChild(t);\n      }\n      x += w;\n    });\n    var lab = el('text', { x: 240, y: 86, 'text-anchor': 'middle', 'font-size': 12, fill: '#1b2228' });\n    lab.textContent = hover === -1\n      ? total.toLocaleString() + unit + ' total'\n      : data[hover].l + ': ' + data[hover].v.toLocaleString() + unit;\n    svg.appendChild(lab);\n    var sub = el('text', { x: 240, y: 102, 'text-anchor': 'middle', 'font-size': 10, fill: '#94a6b8',\n      'font-style': 'italic' });\n    sub.textContent = hover === -1 ? 'hover a segment' :\n      (hover === data.length - 1 ? 'the part that is actually cryptography' : '');\n    svg.appendChild(sub);\n    root.querySelector('#gs-gas').setAttribute('data-on', mode === 'gas');\n    root.querySelector('#gs-bytes').setAttribute('data-on', mode === 'bytes');\n  }\n  on(root.querySelector('#gs-gas'), 'click', function () { mode = 'gas'; hover = -1; draw(); });\n  on(root.querySelector('#gs-bytes'), 'click', function () { mode = 'bytes'; hover = -1; draw(); });\n  draw();\n})();\n</script>","headings":[{"value":"The two verifiers disagreed and both were correct","depth":2},{"value":"Eight words, backwards","depth":2},{"value":"This is a completeness failure, which is why nobody was looking for it","depth":2},{"value":"Where the trust actually sits","depth":2},{"value":"The second hole in the same boundary","depth":2},{"value":"What the corrected call actually costs","depth":2},{"value":"The rule I took away","depth":2}],"frontmatter":{"date_created":"2026-08-24","path":"/blog/zk-serialization-boundary","tags":["Zero Knowledge Proofs","Formal Verification","Trust Boundaries"],"title":"What Your Zero Knowledge Proof Does Not Prove"}},"nextPost":{"html":"<blockquote>\n<p><strong>Correction, 11 November 2026.</strong> The SBAS design matrix in this pipeline is a\npermutation matrix. The certified residual is therefore identically zero for any\ninput, which makes the 2.3173862534e-7 quoted below float32 cumsum-then-diff\nrounding noise rather than a measurement of fit. Every draw accepts because every\ndraw would have accepted whatever the solver returned, so the completeness line\nfurther down proves nothing about the physics. The coverage argument, which is what\nthis post is about, never depended on that number and still holds. So do the cycle\ncounts, the receipt sizes and the on-chain gas.</p>\n</blockquote>\n<p>You can draw your audit sample with randomness the prover cannot rig, publish every residual, prove the whole check inside a zkVM, and still miss the only fault anyone would pay you to find.</p>\n<p>I know because I built one and it works exactly as designed. Chaotic Era pulls NASA NISAR L-band radar, runs a small-baseline time-series inversion on a GPU, and emits a certificate that anyone can check without a GPU. On the 141/54 frame the certificate audits 256 pixels drawn by Fiat-Shamir, and the worst of them missed the pinned equations by 2.3173862534e-7 against a tolerance of 1e-3. A RISC Zero guest re-executes that check in 8,388,608 cycles. The Groth16 wrap verifies on Base Sepolia for 249,749 gas.</p>\n<p>Every number there is measured. None of them says what I assumed it said.</p>\n<h2 id=\"the-asymmetry-is-real-and-it-is-the-whole-product\" style=\"position:relative;\"><a href=\"#the-asymmetry-is-real-and-it-is-the-whole-product\" aria-label=\"the asymmetry is real and it is the whole product permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The asymmetry is real, and it is the whole product</h2>\n<p>The pitch for a computation certificate is an asymmetry. Solving is expensive, checking is cheap, so you sell the expensive thing and hand over a cheap receipt.</p>\n<p>That part holds up for the heavy estimator. Phase-linking on the 141/54 frame took 13,512 seconds of L4 time across 12,774,412,800 pixels per acquisition. Re-checking a published answer from the public inputs takes 16.62 seconds on my laptop, and more than half of that is hashing a 666 MB output array rather than doing any mathematics.</p>\n<p>One caveat belongs here rather than buried at the bottom. The certificate I proved does not cover that run. It covers the small-baseline inversion over the same frame, and that solve takes 1.5321 seconds. So for this certificate the asymmetry runs backwards: checking costs ten times more than solving, because the check re-hashes 1.4 GB of inputs and outputs while the solve is a 7 by 7 pseudo-inverse. The asymmetry argument is sound for the expensive estimator, and I have not yet built a certificate for the expensive estimator.</p>\n<p>That's a gap, and it isn't the one this post is about. The one this post is about is worse.</p>\n<h2 id=\"the-sample-the-prover-cannot-rig\" style=\"position:relative;\"><a href=\"#the-sample-the-prover-cannot-rig\" aria-label=\"the sample the prover cannot rig permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The sample the prover cannot rig</h2>\n<p>The audit indices come from the input commitment itself.</p>\n<div class=\"gatsby-highlight\" data-language=\"python\"><pre class=\"language-python\"><code class=\"language-python\"><span class=\"token keyword\">def</span> <span class=\"token function\">sample_indices</span><span class=\"token punctuation\">(</span>seed_hex<span class=\"token punctuation\">,</span> n_total<span class=\"token punctuation\">,</span> n_sample<span class=\"token operator\">=</span>SAMPLE_PIXELS<span class=\"token punctuation\">)</span><span class=\"token punctuation\">:</span>\n    n_sample <span class=\"token operator\">=</span> <span class=\"token builtin\">min</span><span class=\"token punctuation\">(</span>n_sample<span class=\"token punctuation\">,</span> n_total<span class=\"token punctuation\">)</span>\n    rng <span class=\"token operator\">=</span> np<span class=\"token punctuation\">.</span>random<span class=\"token punctuation\">.</span>default_rng<span class=\"token punctuation\">(</span><span class=\"token builtin\">int</span><span class=\"token punctuation\">(</span>seed_hex<span class=\"token punctuation\">[</span><span class=\"token punctuation\">:</span><span class=\"token number\">16</span><span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span> <span class=\"token number\">16</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">)</span>\n    <span class=\"token keyword\">return</span> np<span class=\"token punctuation\">.</span>sort<span class=\"token punctuation\">(</span>rng<span class=\"token punctuation\">.</span>choice<span class=\"token punctuation\">(</span>n_total<span class=\"token punctuation\">,</span> size<span class=\"token operator\">=</span>n_sample<span class=\"token punctuation\">,</span> replace<span class=\"token operator\">=</span><span class=\"token boolean\">False</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">)</span></code></pre></div>\n<p><code class=\"language-text\">seed_hex</code> is the SHA-256 over the sorted digests of every input granule. To choose which pixels get audited, I'd have to choose the hash, which means choosing the inputs, which are NASA's. So the sample is unriggable in the sense that matters. The prover commits to the data before learning which pixels the auditor will look at, and that is a real property with a real proof behind it.</p>\n<p>Unriggable is not the same as covering. I merged those two ideas for about two months without noticing, because the word \"Fiat-Shamir\" in a design document makes you feel like the soundness question has been handled.</p>\n<p>It has not. Fiat-Shamir tells you the sample is fair. It says nothing about how much of the scene 256 fair draws can see.</p>\n<h2 id=\"watch-it-miss\" style=\"position:relative;\"><a href=\"#watch-it-miss\" aria-label=\"watch it miss permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Watch it miss</h2>\n<p>The scene below is one NISAR frame. The dark region is a fault: a patch where the published displacement is wrong, either through a bad solve or a deliberate edit. The dots are the 256 audited pixels, drawn uniformly, exactly as <code class=\"language-text\">sample_indices</code> draws them.</p>\n<p>Move the slider to set how much of the scene is corrupted, then run audits.</p>\n<div class=\"dpw\" id=\"miss\" data-initialised=\"false\">\n  <div class=\"dpw-controls\">\n    <label class=\"dpw-label\">Corrupted fraction of the scene\n      <input type=\"range\" id=\"ms-f\" min=\"0\" max=\"10\" step=\"1\" value=\"3\" />\n      <span class=\"dpw-val\" id=\"ms-f-val\">0.1%</span>\n    </label>\n    <div class=\"dpw-hint\" id=\"ms-px\">24,950 pixels of 24,950,025 are wrong. The auditor looks at 256 of them.</div>\n  </div>\n  <svg id=\"ms-svg\" viewBox=\"0 0 480 240\" class=\"dpw-svg\" role=\"img\" aria-label=\"A radar scene with a corrupted region and 256 uniformly sampled audit pixels\"></svg>\n  <div class=\"dpw-btnrow\">\n    <button class=\"dpw-btn\" id=\"ms-once\">New audit</button>\n    <button class=\"dpw-btn\" id=\"ms-many\">Run 200 audits</button>\n    <button class=\"dpw-btn dpw-btn-ghost\" id=\"ms-reset\">Reset tally</button>\n  </div>\n  <div class=\"dpw-verdict\" id=\"ms-verdict\">the fault survived this audit</div>\n  <div class=\"dpw-readout\">\n    <div class=\"dpw-stat\"><span class=\"dpw-num\" id=\"ms-caught\">0</span><span class=\"dpw-cap\">audits that caught it</span></div>\n    <div class=\"dpw-stat\"><span class=\"dpw-num\" id=\"ms-total\">0</span><span class=\"dpw-cap\">audits run</span></div>\n    <div class=\"dpw-stat\"><span class=\"dpw-num\" id=\"ms-emp\">&mdash;</span><span class=\"dpw-cap\">observed detection rate</span></div>\n    <div class=\"dpw-stat\"><span class=\"dpw-num\" id=\"ms-theory\">22.6%</span><span class=\"dpw-cap\">theory: 1 &minus; (1 &minus; f)<sup>256</sup></span></div>\n  </div>\n</div>\n<p>At a fault covering a tenth of one percent of the scene, the audit catches it in a bit under a quarter of runs. Which means a prover who corrupts that much of the answer walks past the certificate three times out of four.</p>\n<p>A tenth of one percent of this frame is 24,950 pixels. The frame is a 4,995 by 4,995 grid, so that fault is a contiguous block about 158 pixels on a side, a little over three percent of the scene width. A glacier terminus fits inside it. So does a subsiding industrial site, a stretch of embankment, or whichever single place a claim happens to name.</p>\n<h2 id=\"the-localised-fault-game\" style=\"position:relative;\"><a href=\"#the-localised-fault-game\" aria-label=\"the localised fault game permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The Localised Fault Game</h2>\n<p>Here is the property I thought I had, written as a game so it can be graded.</p>\n<p><strong>Setup</strong>: The challenger <strong>C</strong> fixes a population of pixels of size <strong>N</strong>, a sample size <strong>s</strong>, and a commitment scheme. It publishes the input commitment <strong>c</strong> and the tolerance <strong>τ</strong>.</p>\n<p><strong>Challenge</strong>: The adversary <strong>A</strong>, a probabilistic polynomial-time algorithm, chooses a region <strong>R</strong> with |<strong>R</strong>| = <strong>k</strong> and publishes a solution that satisfies the normal equations within <strong>τ</strong> everywhere outside <strong>R</strong> and violates them inside <strong>R</strong>.</p>\n<p><strong>Oracle</strong>: <strong>C</strong> derives the audit set <strong>I</strong> = <code class=\"language-text\">sample_indices(c, N, s)</code>, a uniform draw without replacement. <strong>A</strong> cannot influence <strong>I</strong>, because <strong>c</strong> was fixed before <strong>A</strong> saw it.</p>\n<p><strong>Win condition</strong>: <strong>A</strong> wins if <strong>I</strong> ∩ <strong>R</strong> = ∅.</p>\n<p>The advantage follows straight from the hypergeometric distribution.</p>\n<div class=\"dpw-formula\">Adv(<b>A</b>) &nbsp;=&nbsp; C(N &minus; k, s) / C(N, s) &nbsp;&asymp;&nbsp; (1 &minus; k/N)<sup>s</sup></div>\n<p>Now grade the protocol on the standard properties, the way you would grade any interactive proof.</p>\n<p><strong>Completeness</strong>: An honest prover publishes a solution whose residual is within <strong>τ</strong> at every pixel, so every draw of <strong>I</strong> accepts. The measured maximum over the real sample is 2.3173862534e-7, four orders of magnitude inside the line. <strong>Perfect.</strong></p>\n<p><strong>Soundness</strong>: This is where it breaks, and it breaks in a specific way. Soundness error should be negligible in the security parameter. Here it is negligible in <strong>k</strong>, and <strong>k</strong> belongs to the adversary. Fix <strong>s</strong> = 256 and <strong>N</strong> = 24,950,025. For <strong>k</strong>/<strong>N</strong> = 0.5 the advantage is 8.6e-78, which is lovely. For <strong>k</strong>/<strong>N</strong> = 0.001 the advantage is 0.774. The adversary chooses which of those two worlds to live in, so the protocol's soundness is whatever the adversary decides it should be. <strong>Fails against a localised adversary.</strong></p>\n<p><strong>Zero-knowledge</strong>: Not claimed by the certificate, and not needed. The inputs are NASA's and public, the output is published, and the whole point is that a buyer can recompute. The zkVM layer that came later adds succinctness, not secrecy.</p>\n<p>The verdict I care about is the middle one. A soundness error that the adversary parameterises is not a soundness error in the cryptographic sense. It's a coverage statistic wearing a cryptographic word.</p>\n<h2 id=\"where-the-advantage-actually-lives\" style=\"position:relative;\"><a href=\"#where-the-advantage-actually-lives\" aria-label=\"where the advantage actually lives permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Where the advantage actually lives</h2>\n<p>Slide across the fault size and watch what happens to the four sample sizes.</p>\n<div class=\"dpw\" id=\"adv\" data-initialised=\"false\">\n  <svg id=\"av-svg\" viewBox=\"0 0 480 280\" class=\"dpw-svg\" role=\"img\" aria-label=\"Adversary advantage against corrupted fraction, for four sample sizes\"></svg>\n  <div class=\"dpw-legend\">\n    <span class=\"dpw-key\"><i style=\"background:#a72e2b\"></i>s = 256 (shipped)</span>\n    <span class=\"dpw-key\"><i style=\"background:#8ba2b8\"></i>s = 1,024</span>\n    <span class=\"dpw-key\"><i style=\"background:#b9c8d6\"></i>s = 4,096</span>\n    <span class=\"dpw-key\"><i style=\"background:#d8e2ea\"></i>s = 16,384</span>\n  </div>\n  <div class=\"dpw-hint\">Hover the chart. The shaded band is where a deformation fault that matters to an insurer actually sits.</div>\n  <div class=\"dpw-readout\" id=\"av-read\">\n    <div class=\"dpw-stat\"><span class=\"dpw-num\" id=\"av-f\">0.1%</span><span class=\"dpw-cap\">corrupted fraction</span></div>\n    <div class=\"dpw-stat\"><span class=\"dpw-num\" id=\"av-256\">77.4%</span><span class=\"dpw-cap\">evades s = 256</span></div>\n    <div class=\"dpw-stat\"><span class=\"dpw-num\" id=\"av-16k\">0.0%</span><span class=\"dpw-cap\">evades s = 16,384</span></div>\n  </div>\n</div>\n<p>The curves all have the same shape and the shape is the problem. Each one falls off a cliff, and the cliff sits at a fault size inversely proportional to <strong>s</strong>. Multiplying the sample by 64 divides the smallest visible fault by 63.9, which you can read straight off the chart by comparing where the first and last curves cross the halfway line. Coverage is bought linearly. To halve the fault you're willing to miss, you double the guest.</p>\n<p>The shaded band is not decoration. Chaotic Era's stated destination is a verification oracle for parametric insurance, where a payout keys on ground movement in one named place. A subsidence claim over a single industrial site, a glacier terminus, a stretch of embankment. Those are all four figures of pixels in a scene of twenty-five million. The certificate is strongest exactly where nobody is writing cheques and weakest exactly where they are.</p>\n<p>That is the opinion I'd defend in a room: for this application, uniform Fiat-Shamir sampling is the wrong primitive, and no amount of sample-size tuning fixes it.</p>\n<h2 id=\"the-proof-does-not-help-and-i-want-to-be-precise-about-why\" style=\"position:relative;\"><a href=\"#the-proof-does-not-help-and-i-want-to-be-precise-about-why\" aria-label=\"the proof does not help and i want to be precise about why permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The proof does not help, and I want to be precise about why</h2>\n<p>It's tempting to think the zkVM covers this. It does not, and the distinction is worth stating carefully because I got it wrong first.</p>\n<p>The RISC Zero guest re-executes the residual check and commits a journal binding the input commitment, the design matrix commitment, the output commitment, the index commitment, the sampled-columns digest, and the measured maximum residual. It ran in 8,388,608 cycles across 8 segments, and the Groth16 seal verifies on chain in 249,749 gas.</p>\n<p>What that proof establishes is that the check was performed honestly on the indices in <strong>I</strong>. It is a statement about the integrity of the auditor, not the coverage of the audit. If <strong>I</strong> never touches <strong>R</strong>, the guest happily proves that every pixel it was shown is fine, because every pixel it was shown is fine. The proof is true. The conclusion people will draw from it is not.</p>\n<p>There's a second gap in the same area that I should name rather than let a reader find. The guest checks that the sampled columns hash to the committed <code class=\"language-text\">samples_digest</code>, but it does not check that those columns were extracted from the published output array. That binding is done outside the circuit today, and it's written down as an honesty box in the repository rather than fixed. Merkle inclusion proofs are the fix and they are not built yet.</p>\n<h2 id=\"what-closing-the-gap-costs\" style=\"position:relative;\"><a href=\"#what-closing-the-gap-costs\" aria-label=\"what closing the gap costs permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What closing the gap costs</h2>\n<p>If you want to keep uniform sampling and just buy more of it, the sample size is set by the fault you refuse to miss.</p>\n<div class=\"dpw\" id=\"cost\" data-initialised=\"false\">\n  <div class=\"dpw-controls dpw-grid\">\n    <label class=\"dpw-label\">Smallest fault you refuse to miss\n      <input type=\"range\" id=\"ct-f\" min=\"0\" max=\"10\" step=\"1\" value=\"3\" />\n      <span class=\"dpw-val\" id=\"ct-f-val\">0.1%</span>\n    </label>\n    <div class=\"dpw-toggle-row\">\n      <span class=\"dpw-toggle-cap\">Detection confidence</span>\n      <button class=\"dpw-toggle\" id=\"ct-90\">90%</button>\n      <button class=\"dpw-toggle\" id=\"ct-99\" data-on=\"true\">99%</button>\n      <button class=\"dpw-toggle\" id=\"ct-999\">99.9%</button>\n    </div>\n  </div>\n  <div class=\"dpw-two\">\n    <div class=\"dpw-panel\">\n      <div class=\"dpw-panel-h\">what it takes</div>\n      <div class=\"dpw-line\">samples needed <b id=\"ct-s\">4,603</b></div>\n      <div class=\"dpw-line\">against the shipped 256 <b id=\"ct-mult\">18.0&times;</b></div>\n    </div>\n    <div class=\"dpw-panel\">\n      <div class=\"dpw-panel-h\">what it costs in the guest</div>\n      <div class=\"dpw-line\">cycles <b id=\"ct-cyc\">151 M</b> <span class=\"dpw-inflate\">upper bound</span></div>\n      <div class=\"dpw-line\">segments <b id=\"ct-seg\">144</b> <span class=\"dpw-inflate\">at 2<sup>20</sup> each</span></div>\n    </div>\n  </div>\n  <div class=\"dpw-hint\">Cycle figures scale the measured 8,388,608 for s = 256 linearly. That is an upper bound, since part of the trace is fixed cost that does not grow with the sample. I have not measured the split.</div>\n</div>\n<p>Catching a fault of one tenth of one percent with 99% confidence needs 4,603 samples, an eighteenfold increase, and the guest grows with it. That is affordable. Catching a fault of one hundredth of one percent at the same confidence needs 46,050 samples, and now you are proving a trace of roughly 1.5 billion cycles to audit 0.18% of a scene.</p>\n<p>The arithmetic says brute force runs out before the faults do. So the answer is not a bigger sample.</p>\n<p>The answer is to stop sampling uniformly. If the buyer cares about a named region, the certificate should commit to a Merkle tree over the output and prove residuals over an inclusion path into the region under contract, with the uniform sample kept as a cheap global sanity check. Then the soundness error stops being a function of the adversary's choice of <strong>k</strong> and starts being a function of the hash. That is the version I'd sell to an insurer, and it is not the version I have built.</p>\n<h2 id=\"the-rule-i-took-away\" style=\"position:relative;\"><a href=\"#the-rule-i-took-away\" aria-label=\"the rule i took away permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The rule I took away</h2>\n<p>The mistake was not statistical. I can compute a hypergeometric tail. The mistake was that I let a cryptographic word stand in for a security argument, and then proved the wrong half of the system very carefully.</p>\n<p>So before I call a sampling scheme sound now, I write down the adversary and let them pick their parameters. Not \"can the prover choose the sample\" but \"given that they cannot, what is the cheapest lie that survives it\". If the answer to the second question contains a variable the adversary controls, the guarantee is a coverage statistic, and it belongs in the documentation with its actual number next to it rather than behind the words \"Fiat-Shamir\".</p>\n<p>The 256 pixels are still in the certificate. They still catch a wholesale error, a swapped stack, a broken solver, a wrong design matrix, and they catch it with an advantage of 1e-78. That's worth keeping. It just isn't the claim I was making.</p>\n<style>\n.dpw {\n  --ink: #1b2228; --ink2: #5b7085; --line: #dae4ed;\n  --maroon: #a72e2b; --maroon-d: #6a1d1b; --rose: #f2cdcc; --green: #3f8f5b;\n  border: 1px solid var(--line); border-radius: 6px; padding: 20px;\n  margin: 32px 0; background: #fff; font-family: 'Open Sans', sans-serif;\n}\n.dpw * { box-sizing: border-box; }\n.dpw-formula { text-align: center; font-family: 'Inconsolata', monospace; font-size: 19px;\n  color: #1b2228; margin: 22px 0; letter-spacing: .01em; }\n.dpw-formula sup { font-size: 12px; }\n.dpw-controls { margin-bottom: 14px; }\n.dpw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }\n.dpw-label { display: block; font-size: 13px; color: var(--ink2); }\n.dpw-label input[type=range] { display: block; width: 100%; margin: 8px 0 0; accent-color: var(--maroon); }\n.dpw-val { color: var(--maroon-d); font-family: 'Inconsolata', monospace; font-weight: 700; }\n.dpw-hint { font-size: 12px; color: var(--ink2); margin-top: 8px; font-style: italic; }\n.dpw-svg { width: 100%; height: auto; display: block; margin: 6px 0 4px;\n  background: linear-gradient(180deg, #fbfcfe, #f4f7fa); border-radius: 4px; }\n.dpw-btnrow { display: flex; gap: 8px; margin: 12px 0 10px; flex-wrap: wrap; }\n.dpw-btn { font-family: 'Inconsolata', monospace; font-size: 13px; border: 1px solid var(--maroon);\n  background: var(--maroon); color: #fff; padding: 7px 14px; border-radius: 4px; cursor: pointer; transition: opacity .15s; }\n.dpw-btn:hover { opacity: .85; }\n.dpw-btn-ghost { background: #fff; color: var(--ink2); border-color: var(--line); }\n.dpw-verdict { margin: 4px 0 12px; padding: 8px 12px; border-radius: 4px; font-size: 13px; font-weight: 700;\n  background: var(--rose); color: var(--maroon-d); text-align: center; font-family: 'Inconsolata', monospace; }\n.dpw-verdict.dpw-ok { background: #dcefe3; color: var(--green); }\n.dpw-readout { display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap; }\n.dpw-stat { display: flex; flex-direction: column; }\n.dpw-num { font-family: 'Josefin Sans', sans-serif; font-size: 24px; color: var(--maroon-d); line-height: 1.1; }\n.dpw-cap { font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }\n.dpw-cap sup { text-transform: none; }\n.dpw-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }\n.dpw-key { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }\n.dpw-key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }\n.dpw-toggle-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }\n.dpw-toggle-cap { width: 100%; margin-bottom: 2px; font-size: 12px; color: var(--ink2); }\n.dpw-toggle { font-family: 'Inconsolata', monospace; font-size: 12px; border: 1px solid var(--line);\n  background: #fff; color: var(--ink2); padding: 5px 9px; border-radius: 4px; cursor: pointer; transition: all .15s; }\n.dpw-toggle[data-on=true] { background: var(--maroon); color: #fff; border-color: var(--maroon); }\n.dpw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }\n.dpw-panel { border: 1px solid var(--line); border-radius: 5px; padding: 14px; }\n.dpw-panel-h { font-family: 'Josefin Sans', sans-serif; font-size: 13px; text-transform: uppercase;\n  letter-spacing: .04em; color: var(--ink2); margin-bottom: 10px; }\n.dpw-line { font-size: 14px; color: var(--ink2); margin: 6px 0; }\n.dpw-line b { font-family: 'Inconsolata', monospace; font-size: 17px; color: var(--ink); }\n.dpw-inflate { font-size: 11px; color: #94a6b8; }\n@media (max-width: 480px) { .dpw-grid, .dpw-two { grid-template-columns: 1fr; } .dpw-readout { gap: 16px; } }\n@media (prefers-reduced-motion: reduce) { .dpw * { transition: none !important; } }\n</style>\n<script>\n(function () {\n  var root = document.getElementById('miss');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var SVG = 'http://www.w3.org/2000/svg';\n  var svg = root.querySelector('#ms-svg');\n  var W = 480, H = 240, S = 256;\n  var N_PIX = 24950025;                       // real population, frame 141/54\n  var FS = [0.0001, 0.0002, 0.0005, 0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2];\n\n  var seed = 20260824;\n  function rnd() { seed = (seed * 1103515245 + 12345) & 0x7fffffff; return seed / 0x7fffffff; }\n\n  var tally = { caught: 0, total: 0 };\n  var lastHit = false, dots = [], fault = null;\n\n  function faultRect(f) {\n    var area = f * W * H;\n    var w = Math.min(W, Math.sqrt(area * 1.7));\n    var h = area / w;\n    return { x: 150 - w / 2, y: 118 - h / 2, w: w, h: h };\n  }\n  function fmtPct(v) {\n    if (v >= 0.1) return (v * 100).toFixed(1) + '%';\n    if (v >= 0.01) return (v * 100).toFixed(2) + '%';\n    return (v * 100).toFixed(3) + '%';\n  }\n\n  // deterministic speckle backdrop so the panel reads as a radar scene\n  var speck = [];\n  (function () { var s2 = 99; function r2() { s2 = (s2 * 1103515245 + 12345) & 0x7fffffff; return s2 / 0x7fffffff; }\n    for (var i = 0; i < 260; i++) speck.push({ x: r2() * W, y: r2() * H, o: 0.04 + r2() * 0.06 }); })();\n\n  function audit() {\n    var f = FS[parseInt(root.querySelector('#ms-f').value, 10)];\n    fault = faultRect(f);\n    dots = []; var hit = false;\n    for (var i = 0; i < S; i++) {\n      var p = { x: rnd() * W, y: rnd() * H };\n      p.hit = p.x >= fault.x && p.x <= fault.x + fault.w && p.y >= fault.y && p.y <= fault.y + fault.h;\n      if (p.hit) hit = true;\n      dots.push(p);\n    }\n    lastHit = hit;\n    tally.total++; if (hit) tally.caught++;\n    return hit;\n  }\n\n  function draw() {\n    var f = FS[parseInt(root.querySelector('#ms-f').value, 10)];\n    if (!fault) fault = faultRect(f);\n    while (svg.firstChild) svg.removeChild(svg.firstChild);\n\n    speck.forEach(function (s) {\n      var c = document.createElementNS(SVG, 'circle');\n      c.setAttribute('cx', s.x); c.setAttribute('cy', s.y); c.setAttribute('r', 1.4);\n      c.setAttribute('fill', '#5b7085'); c.setAttribute('opacity', s.o);\n      svg.appendChild(c);\n    });\n    var fr = document.createElementNS(SVG, 'rect');\n    fr.setAttribute('x', fault.x); fr.setAttribute('y', fault.y);\n    fr.setAttribute('width', Math.max(fault.w, 1.2)); fr.setAttribute('height', Math.max(fault.h, 1.2));\n    fr.setAttribute('fill', '#6a1d1b'); fr.setAttribute('opacity', '0.82');\n    fr.setAttribute('stroke', '#a72e2b'); fr.setAttribute('stroke-width', '1');\n    svg.appendChild(fr);\n\n    dots.forEach(function (p) {\n      var c = document.createElementNS(SVG, 'circle');\n      c.setAttribute('cx', p.x); c.setAttribute('cy', p.y);\n      c.setAttribute('r', p.hit ? 4 : 1.7);\n      c.setAttribute('fill', p.hit ? '#a72e2b' : '#8ba2b8');\n      if (p.hit) { c.setAttribute('stroke', '#fff'); c.setAttribute('stroke-width', '1.5'); }\n      svg.appendChild(c);\n    });\n  }\n\n  function readout() {\n    var f = FS[parseInt(root.querySelector('#ms-f').value, 10)];\n    root.querySelector('#ms-f-val').textContent = fmtPct(f);\n    root.querySelector('#ms-px').textContent =\n      Math.round(f * N_PIX).toLocaleString() + ' pixels of 24,950,025 are wrong. The auditor looks at 256 of them.';\n    var theory = 1 - Math.pow(1 - f, S);\n    root.querySelector('#ms-theory').textContent = (theory * 100).toFixed(1) + '%';\n    root.querySelector('#ms-caught').textContent = tally.caught.toLocaleString();\n    root.querySelector('#ms-total').textContent = tally.total.toLocaleString();\n    root.querySelector('#ms-emp').textContent =\n      tally.total ? (100 * tally.caught / tally.total).toFixed(1) + '%' : 'n/a';\n    var v = root.querySelector('#ms-verdict');\n    if (!tally.total) { v.textContent = 'no audit run yet'; v.className = 'dpw-verdict'; }\n    else if (lastHit) { v.textContent = 'caught: a sampled pixel landed inside the fault'; v.className = 'dpw-verdict dpw-ok'; }\n    else { v.textContent = 'the fault survived this audit'; v.className = 'dpw-verdict'; }\n  }\n\n  on(root.querySelector('#ms-f'), 'input', function () {\n    tally = { caught: 0, total: 0 }; dots = []; lastHit = false;\n    fault = faultRect(FS[parseInt(root.querySelector('#ms-f').value, 10)]);\n    draw(); readout();\n  });\n  on(root.querySelector('#ms-once'), 'click', function () { audit(); draw(); readout(); });\n  on(root.querySelector('#ms-many'), 'click', function () {\n    for (var i = 0; i < 200; i++) audit();\n    draw(); readout();\n  });\n  on(root.querySelector('#ms-reset'), 'click', function () {\n    tally = { caught: 0, total: 0 }; dots = []; lastHit = false; draw(); readout();\n  });\n  draw(); readout();\n})();\n</script>\n<script>\n(function () {\n  var root = document.getElementById('adv');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var SVG = 'http://www.w3.org/2000/svg';\n  var svg = root.querySelector('#av-svg');\n  var W = 480, H = 280, P = { l: 46, r: 14, t: 16, b: 40 };\n  var SS = [{ s: 256, c: '#a72e2b', w: 2.4 }, { s: 1024, c: '#8ba2b8', w: 1.6 },\n            { s: 4096, c: '#b9c8d6', w: 1.6 }, { s: 16384, c: '#d8e2ea', w: 1.6 }];\n  var LO = -6, HI = 0;                          // log10 of corrupted fraction\n\n  function X(lf) { return P.l + (lf - LO) / (HI - LO) * (W - P.l - P.r); }\n  function Y(a) { return P.t + (1 - a) * (H - P.t - P.b); }\n  function el(n, at) { var e = document.createElementNS(SVG, n); for (var k in at) e.setAttribute(k, at[k]); return e; }\n  function fmtPct(v) { return v >= 0.1 ? (v * 100).toFixed(1) + '%' : v >= 0.001 ? (v * 100).toFixed(2) + '%' : (v * 100).toFixed(3) + '%'; }\n\n  var hoverLf = -3;\n\n  function draw() {\n    while (svg.firstChild) svg.removeChild(svg.firstChild);\n\n    // insurance-relevant band: 1e-4 .. 1e-2 of the scene\n    svg.appendChild(el('rect', { x: X(-4), y: P.t, width: X(-2) - X(-4), height: H - P.t - P.b,\n      fill: '#f2cdcc', opacity: '0.35' }));\n\n    // grid + axes\n    for (var g = LO; g <= HI; g++) {\n      svg.appendChild(el('line', { x1: X(g), y1: P.t, x2: X(g), y2: H - P.b, stroke: '#dae4ed', 'stroke-width': 1 }));\n      var lab = g === 0 ? '100%' : g === -2 ? '1%' : '1e' + g;\n      svg.appendChild(el('text', { x: X(g), y: H - P.b + 15, 'text-anchor': 'middle',\n        'font-size': 10, fill: '#5b7085', 'font-family': 'Inconsolata, monospace' })).textContent = lab;\n    }\n    [0, 0.25, 0.5, 0.75, 1].forEach(function (a) {\n      svg.appendChild(el('line', { x1: P.l, y1: Y(a), x2: W - P.r, y2: Y(a), stroke: '#dae4ed', 'stroke-width': 1 }));\n      svg.appendChild(el('text', { x: P.l - 6, y: Y(a) + 3, 'text-anchor': 'end',\n        'font-size': 10, fill: '#5b7085', 'font-family': 'Inconsolata, monospace' })).textContent = (a * 100) + '%';\n    });\n    svg.appendChild(el('text', { x: (W + P.l) / 2, y: H - 6, 'text-anchor': 'middle',\n      'font-size': 11, fill: '#5b7085' })).textContent = 'fraction of the scene corrupted (k / N)';\n\n    // curves, drawn faintest first\n    for (var i = SS.length - 1; i >= 0; i--) {\n      var d = '', s = SS[i].s;\n      for (var px = 0; px <= 240; px++) {\n        var lf = LO + (HI - LO) * px / 240;\n        var adv = Math.pow(1 - Math.pow(10, lf), s);\n        d += (px ? 'L' : 'M') + X(lf).toFixed(2) + ' ' + Y(adv).toFixed(2);\n      }\n      svg.appendChild(el('path', { d: d, fill: 'none', stroke: SS[i].c, 'stroke-width': SS[i].w }));\n    }\n\n    // hover marker on the shipped curve\n    var f = Math.pow(10, hoverLf);\n    svg.appendChild(el('line', { x1: X(hoverLf), y1: P.t, x2: X(hoverLf), y2: H - P.b,\n      stroke: '#6a1d1b', 'stroke-width': 1, 'stroke-dasharray': '3 3' }));\n    SS.forEach(function (c) {\n      svg.appendChild(el('circle', { cx: X(hoverLf), cy: Y(Math.pow(1 - f, c.s)), r: c.s === 256 ? 4.5 : 3,\n        fill: c.c, stroke: '#fff', 'stroke-width': 1.2 }));\n    });\n\n    root.querySelector('#av-f').textContent = fmtPct(f);\n    root.querySelector('#av-256').textContent = (100 * Math.pow(1 - f, 256)).toFixed(1) + '%';\n    root.querySelector('#av-16k').textContent = (100 * Math.pow(1 - f, 16384)).toFixed(1) + '%';\n  }\n\n  function move(ev) {\n    var r = svg.getBoundingClientRect();\n    var cx = (ev.touches ? ev.touches[0].clientX : ev.clientX) - r.left;\n    var lf = LO + (cx / r.width * W - P.l) / (W - P.l - P.r) * (HI - LO);\n    hoverLf = Math.max(LO, Math.min(HI, lf));\n    draw();\n  }\n  on(svg, 'mousemove', move);\n  on(svg, 'touchmove', function (e) { move(e); e.preventDefault(); });\n  draw();\n})();\n</script>\n<script>\n(function () {\n  var root = document.getElementById('cost');\n  if (!root) return;\n  if (root._cleanup) root._cleanup();\n  var L = [];\n  function on(el, ev, fn) { if (!el) return; el.addEventListener(ev, fn); L.push([el, ev, fn]); }\n  root._cleanup = function () { L.forEach(function (x) { x[0].removeEventListener(x[1], x[2]); }); };\n\n  var FS = [0.0001, 0.0002, 0.0005, 0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2];\n  var MEASURED_CYCLES = 8388608, MEASURED_S = 256, SEG = 1048576;   // 2^20\n  var conf = 0.99;\n\n  function fmtPct(v) { return v >= 0.1 ? (v * 100).toFixed(1) + '%' : v >= 0.01 ? (v * 100).toFixed(2) + '%' : (v * 100).toFixed(3) + '%'; }\n  function fmtCyc(c) {\n    if (c >= 1e9) return (c / 1e9).toFixed(2) + ' B';\n    if (c >= 1e6) return (c / 1e6).toFixed(0) + ' M';\n    return c.toLocaleString();\n  }\n  function render() {\n    var f = FS[parseInt(root.querySelector('#ct-f').value, 10)];\n    root.querySelector('#ct-f-val').textContent = fmtPct(f);\n    var s = Math.ceil(Math.log(1 - conf) / Math.log(1 - f));\n    var cyc = MEASURED_CYCLES * (s / MEASURED_S);\n    root.querySelector('#ct-s').textContent = s.toLocaleString();\n    root.querySelector('#ct-mult').innerHTML = (s / MEASURED_S).toFixed(1) + '&times;';\n    root.querySelector('#ct-cyc').textContent = fmtCyc(cyc);\n    root.querySelector('#ct-seg').textContent = Math.ceil(cyc / SEG).toLocaleString();\n    [['#ct-90', 0.9], ['#ct-99', 0.99], ['#ct-999', 0.999]].forEach(function (p) {\n      root.querySelector(p[0]).setAttribute('data-on', conf === p[1]);\n    });\n  }\n  on(root.querySelector('#ct-f'), 'input', render);\n  [['#ct-90', 0.9], ['#ct-99', 0.99], ['#ct-999', 0.999]].forEach(function (p) {\n    on(root.querySelector(p[0]), 'click', function () { conf = p[1]; render(); });\n  });\n  render();\n})();\n</script>","headings":[{"value":"The asymmetry is real, and it is the whole product","depth":2},{"value":"The sample the prover cannot rig","depth":2},{"value":"Watch it miss","depth":2},{"value":"The Localised Fault Game","depth":2},{"value":"Where the advantage actually lives","depth":2},{"value":"The proof does not help, and I want to be precise about why","depth":2},{"value":"What closing the gap costs","depth":2},{"value":"The rule I took away","depth":2}],"frontmatter":{"date_created":"2026-08-24","path":"/blog/fiat-shamir-coverage-gap","tags":["Zero Knowledge Proofs","Verifiable Computation","Formal Verification"],"title":"Your Spot Check Cannot See the Fault You Are Paid to Catch"}}},"pageContext":{"prevPostPath":"/blog/cost-of-proving-llm-refusal","currPostPath":"/blog/zk-serialization-boundary","nextPostPath":"/blog/fiat-shamir-coverage-gap"}},"staticQueryHashes":[]}