Skip to content

Match upstream Jolt halt and RAM semantics - #59

Open
RadNi wants to merge 1 commit into
codex/shared-row-spartanfrom
codex/upstream-halt-ram
Open

RadNi wants to merge 1 commit into
codex/shared-row-spartanfrom
codex/upstream-halt-ram

Conversation

@RadNi

@RadNi RadNi commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Update the tracer, prover, and verifier to match the halt and RAM rules in a16z/jolt at 708e6a05.

  • Bind the public exit status to the final instruction. Accept jolt.success for success and ebreak or c.ebreak for panic.
  • Check RAM bounds, protected writes, and public output in RAM Twist. Remove acc_ld and acc_st from DL-A. Keep the RAM address and bitwise AND checks.
  • Advance the proof transcript to magnetar/jolt/2 and update the guest fixtures and proof vectors.
  • Reuse the circuit the verifier builds during validation.

All 35 guest fixtures matched the pinned upstream tracer. For 32 guests, proofs verified and matched upstream on outputs, exit status, and instruction count. Both implementations refused the remaining three guests.

@RadNi
RadNi requested a review from a team as a code owner December 2, 2026 21:58
@RadNi

RadNi commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Paired WHIR performance results

Compared base 24437ca00 with PR head f34902c73. Each run used binary WHIR, the build-fast profile, and eight Rayon workers. We ran the corpus twice per revision, in base → PR → PR → base order. Each revision used the guest fixtures pinned by that revision. These numbers cover the whole change, including the upstream guest rebuild.

Total over 32 verified proofs Base PR Change
Proving time 24.815 s 22.561 s −9.1%
Verification time 685.0 ms 581.5 ms −15.1%
Proof size 10,974,346 bytes 10,972,979 bytes −1,367 bytes (−0.012%)

Times are the mean of the two run totals. Both runs produced the same proof bytes for each guest on each revision. All 32 proofs matched the upstream tracer on outputs, exit status, and instruction count. Both revisions refused the two unsupported field guests. The base reported stack overflow as a failure. The PR reports it as an execution refusal, consistent with the upstream fault.

  • Verification was faster for all 32 guests. The verifier now reuses the canonical circuit built during validation.
  • Proving was slower for 11 guests. The largest increase in time was secp256k1-ecdsa-verify, from 412.5 ms to 788.0 ms. With only two runs per fixture, these figures describe the measured inputs. Transcript-dependent nonce search can change the proving time for a fixed input.
  • Seventeen proofs got smaller and fifteen grew. The largest increase was multi-function-mul, from 245,413 to 246,772 bytes (+0.55%).

To repeat one run from crates/binary-jolt, set CORPUS_OUT to a fresh JSONL path and run RAYON_NUM_THREADS=8 cargo test --locked --profile build-fast --test corpus -- --exact corpus --ignored --nocapture. Sum i1.prove_ms, i1.verify_ms, and i1.proof_bytes for rows with i1.verdict == "proved".

@RadNi
RadNi changed the base branch from main to codex/shared-row-spartan December 3, 2026 00:04
@RadNi
RadNi force-pushed the codex/upstream-halt-ram branch from f34902c to f1a08b6 Compare December 3, 2026 00:04
@RadNi
RadNi added this pull request to stack #61 December 3, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant