Skip to content

feat: allow compact advice commitment before polynomial construction - #58

Closed
RadNi wants to merge 49 commits into
mainfrom
codex/compact-advice-transport
Closed

RadNi wants to merge 49 commits into
mainfrom
codex/compact-advice-transport

Conversation

@RadNi

@RadNi RadNi commented Oct 22, 2026

Copy link
Copy Markdown

Advice commitment currently constructs capacity-sized word and field arrays before dispatching to the PCS backend. This prevents GPU backends from consuming compact advice bytes directly.

Changes:

  • Add a commit_packed_words hook to TransparentObjectSetup.
  • Preserve the existing CPU construction through the hook's default implementation.
  • Dispatch commit_advice through the hook before materializing the padded polynomial.
  • Extract checked canonical word-capacity calculation without allocating the word table.
  • Preserve capacity-derived domains and trusted/untrusted layout binding.
  • Add commitment oracle tests and advice preparation/commitment timing scopes.
  • Include the Akita CPU fold/reduction revision a3b5b79 and corresponding dependency locks.

Validation:

Downstream GPU implementation:
https://github.com/snarkify/jolt-cpp/pull/1421

Akita dependency branch:
https://github.com/LayerZero-Labs/akita/tree/codex/avoid-cpu-prefix-fold-waves

dependabot Bot and others added 30 commits October 8, 2026 11:47
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.189 to 0.2.190.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.190/CHANGELOG.md)
- [Commits](rust-lang/libc@0.2.189...0.2.190)

---
updated-dependencies:
- dependency-name: libc
  dependency-version: 0.2.190
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Tretyakov <atretyakov@a16z.com>
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](rust-lang/cc-rs@cc-v1.5.1...cc-v1.6.0)

---
updated-dependencies:
- dependency-name: cc
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Tretyakov <atretyakov@a16z.com>
Bumps [alloy-eips](https://github.com/alloy-rs/alloy) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/alloy-rs/alloy/releases)
- [Changelog](https://github.com/alloy-rs/alloy/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/alloy@v2.4.1...v2.5.0)

---
updated-dependencies:
- dependency-name: alloy-eips
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Tretyakov <atretyakov@a16z.com>
Bumps [alloy-consensus](https://github.com/alloy-rs/alloy) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/alloy-rs/alloy/releases)
- [Changelog](https://github.com/alloy-rs/alloy/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/alloy@v2.4.1...v2.5.0)

---
updated-dependencies:
- dependency-name: alloy-consensus
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Tretyakov <atretyakov@a16z.com>
…z#2022)

* chore(deps): bump taiki-e/install-action from 2.87.20 to 2.87.25

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.20 to 2.87.25.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Commits](taiki-e/install-action@v2.87.20...v2.87.25)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: pass nextest to install-action as an explicit tool input

Dependabot rewrote the `taiki-e/install-action@<sha> # nextest` pins to the
plain v2.87.20 release commit, whose `tool` input has no default, so the
action installed nothing and every `cargo nextest` step failed with
"no such command: nextest". Pin the v2.87.25 release commit like the other
install-action steps and name the tool, so Dependabot bumps stay valid.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Tretyakov <42178850+0xAndoroid@users.noreply.github.com>
Co-authored-by: Andrew Tretyakov <atretyakov@a16z.com>
* fix(p256): reject non-canonical fake-GLV advice point limbs

The fake-GLV advice words for R1/R2 are prover-supplied VIRTUAL_ADVICE
(range-checked to 64 bits per word only) and were reconstructed via
from_u64_arr_unchecked, so their limbs were never canonicality-checked —
unlike the external inputs z, r, s, q, which spec 1402 validates.

Non-canonical limbs pass the on-curve check (the mul/square/div inlines
are residue-correct) but violate the canonical operand contract of
add_mod/sub_mod and the raw-limb branch selection in AffinePoint::add.
Concretely, an x-limb shifted by p (fits [u64; 4] when the residue is
< 2^256 - p) makes the final r1.add(&r2) slope division degenerate to
0/0 — the divq constraint becomes 0 = w*p and leaves the quotient free —
so a malicious prover controls r_sum.x = s^2 - 2*x1 and can prove
ecdsa_verify() = Ok for an invalid signature.

Fix: spoil the proof in verify_ecdsa_inner when any R1/R2 limb is outside
[0, p), restoring the operand contract the point arithmetic assumes.
Extends spec 1402 invariant 2 to the advice-internal points.

* test(p256): replace off-curve advice fixtures with a guard-dependent regression

The previous fixtures (p, G.y) and (G.x, p) are off-curve, so is_on_curve
spoiled them with or without the canonicality guard. R2 = (p, sqrt(B)) is
the non-canonical encoding of the on-curve point P = (0, sqrt(B)); with
Q = P/2, u2 = a2 = 2, b2 = 1 it passes every other check, so the test now
fails when the guard is removed.
Pin Akita to 318c322113dc66aeed31f9f3c640e84099ba043f and adapt config delegation to the renamed ring-dimension schedule API. Update the pin and catalog freshness documentation; all ten catalogs remain unchanged.

Validation: 89 adapter tests and 24 guest acceptance tests passed. Standard, ZK, and Akita Clippy checks and formatting passed. Replanned all 1,611 catalog rows and verified that all ten artifacts match.
* perf(kernels): keep InstructionReadRaf's cycle-phase RA lazy

The first cycle bind materialized the combined value and every virtual RA
polynomial dense at T/2: (1 + ra_count) · T/2 field elements, 1.2 GB for
Akita and 2.4 GB for Dory at 2^24, the stage-5 memory peak.

Both are point masses, so LazyFoldedRa serves them index-encoded off the
stage-5 rows (already live) instead:

- The combined value is one 256-entry table keyed by the packed claim byte.
- Phase pairs tensor into 2^16-entry columns over 16-bit lookup-index
  chunks. A 32-bit virtual chunk (2^25 and up) is the product of two such
  columns: LazyFoldedRa gains factored polynomials, whose lead column
  carries the branch weights while trailing columns multiply in unscaled.
- The cycle tables materialize at T/8 (third bind) through a per-instance
  max_width: past four branches the 2^16-entry branch tables leave the
  caches and a gather round costs more than the dense bind it saves.

LookupIndexChunks moves next to InstructionCycleRow to serve both
instruction RA kernels, and ChunkIndexSource::num_polys becomes
num_columns now that a polynomial may span several columns.

sha2-chain on an M4, ABBA means, main -> this:
- Dory 2^24: peak footprint 5.54 -> 4.50 GiB, stage 5 8.25 -> 7.90 s.
- Akita 2^24: peak footprint 5.38 -> 4.66 GiB, stage 5 about flat.
- Akita 2^25: stage-5 RSS peak 7.6 -> 6.4 GiB. The global peak is the
  stage-8 opening, so the footprint stays about 9.6 GiB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(kernels): drop restating doc comments in lazy_ra

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ted blocks (a16z#2047)

* perf(kernels): fuse InstructionReadRaf address scans over class-bucketed blocks

Every address phase gathered each cycle's 40 B row and eq weight in
per-table bucket order. A sample profile of the Akita 2^24 prove put
~45% of address-phase CPU on the load stall of that gather, and the
per-phase scans were split one chunk per thread, idling P-cores behind
E-cores.

The trace is now cut once into 1024-cycle blocks whose u16 offsets are
bucketed by (lookup table, RAF flag). Each phase is one parallel pass
over blocks (8 tasks per thread): condense the eq weights in cycle
order, then accumulate the RAF and per-table suffix sums class run by
class run, gathering only from the cache-resident block. `One`
suffixes share one weight-mass sum per table. The block buckets
(~2.2 B/cycle) replace the u32 per-table buckets (4 B/cycle).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(kernels): simplify instruction read-RAF scan state

Address review: one accumulator row per suffix (no shared One row),
Option for absent per-table suffix sums, rename the kernel's buckets
field to blocks, and drop doc comments that restate names or bodies.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs: specify unified execution and proof trace rows

* refactor(riscv): unify execution and proof trace row storage

* refactor(trace): emit program-bound rows into shared trace storage

* refactor(witness): share unified rows and consume sparse field events

* refactor(host): stream versioned archives of unified trace rows

* fix(profiling): version the unified configuration span schema

* perf(witness): inline the shared proof-row view in cycle windows

* docs: record unified trace validation and measurements

* refactor(host): make program summaries write-only

ProgramSummary is a debugging and analysis output that nothing reads back.
Drop its Deserialize impl along with the reader-only machinery: the
magic/version/field-format header, TraceDataSeed, the TraceData, TraceEvent,
and JoltTraceRow deserializers, TraceError::BytecodeMismatch, and the archive
tests. write_to_file keeps the derived bincode encoding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(tracer): use jolt-riscv RAM access types

The tracer defined RAMRead, RAMWrite, and RAMAccess with the same fields as
jolt_riscv::{RamRead, RamWrite, RamAccess}, then copied between them when
building trace rows. Use the jolt-riscv types directly, including for the
RISCVInstruction associated type, and move the read, write, and no-op From
conversions next to RamAccess. Field names and order are unchanged, so the
serialized Cycle encoding is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf(witness): allocate sparse field-inline columns zeroed

materialize_cycle zero-filled its column twice: vec! cloned F::zero() into
every slot serially, then each chunk was filled with zero again before the
sparse field events were scattered. Allocate with unsafe_allocate_zero_vec
and scatter onto it; fill_rd_increments keeps the explicit fill because it
writes into a caller-provided window. The register grids and the Akita
increment column use the same zeroed allocation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(execution): hand off traces as Arc<TraceData>

Production never drove the OwnedTrace cursor: every caller took the
whole trace, and the only next_row/rows/shared_data users were tests.
Delete OwnedTrace and the TraceSource trait, drop ExecutionBackend's
associated Trace type, and make TraceOutput and JoltVmWitnessInputs
non-generic with the trace held as Arc<TraceData>.
ChunkedExecutionBackend::replay_chunk now returns each chunk as
TraceData.

With no cursor there is nothing to partially consume, so
TraceError::PartiallyConsumed, OwnedTrace::into_data and its .expect in
jolt-host, the unused From<Vec<JoltTraceRow>>, the partial-consumption
test, and the SDK re-exports of OwnedTrace and TraceSource go too.
TraceBackend still retains the producer's Arc without copying rows; the
pointer-identity tests cover that. Callers, fixtures, examples, and
specs are updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(riscv): drop unused trace-row views

Remove CapturedState and its NonMemoryState/LoadState/StoreState
payloads, captured_state(), address(), and the test-only JoltCycle impl
on JoltTraceRow. JoltTraceRow::new now packs the four value slots
directly with the same per-class aliasing, so the 64-byte layout,
accessor results, and proof bytes are unchanged. no_op() folds into
Default.

JoltInstruction now converts from JoltInstructionRow through an
infallible From: the old TryFrom matched exhaustively over the same kind
enum and could not fail. That drops TraceRowError::UnsupportedInstruction,
the witness decode error path, and the Noop fallbacks at each call site.
The unified-trace-row spec is updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf(trace): store field payloads inline in sparse events

FieldInlineTraceData is Copy, and Arc<TraceData> is now the only sharing
handle, so nothing shares a per-event payload Arc. FieldEvent and the
transient TraceEvent now hold the payload by value: the tracer's
Arc::new sites, as_ref() reads, and Arc::make_mut test edits are gone,
along with one heap allocation and reference count per field event.

Parallel tracer collection pre-sizes the combined event vector from the
summed batch lengths so combining copies each 192-byte event once
instead of regrowing. The spec records the per-event size and scopes
the single-copy claim to the combine step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(trace): build TraceData from rows and sparse events

Remove TraceEvent, TraceData::push, with_capacity, the
FromIterator<TraceEvent> impl and From<JoltTraceRow> for TraceEvent.
The per-row append path kept its own copy of the proof-length and
event-order rules. Every producer now hands over owned buffers through
TraceData::new (rows) or TraceData::from_parts (rows plus sorted sparse
field events), so those two constructors are the only owners of both
rules.

Under field-inline, the tracer's small-trace path is now the one-batch
case of the batched collector. Fixtures and tests build rows and
events, then call new or from_parts. The serialization shim is renamed
to CycleRecord, and specs/unified-trace-row.md is updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(field-inline): derive the payload op from the row and drop the bridge

FieldInlineTraceData now holds only the field-register effects (rs1,
rs2, rd). Its op field duplicated the row's JoltInstructionKind, whose
only reader was an equality check; witness validation already derived
the operand shape from the row's kind, so it keeps the per-op
rs1/rs2/rd presence and register checks without it. FieldInlineBridge copied row operands,
row captures, or the payload's own rd/rs1, and its only reader was
validate_bridge, so both are removed together with the tracer code that
built it (and its production expects) and the field_inline_source_op
lookup that filled op. Bridge rows' integer side stays in the row's
captures, bound by the register and bridge constraints. The unused
Default derive is dropped; fixtures now name every field, and the
kernel fixture takes the instruction kind directly. A FieldEvent
shrinks from 192 to 144 bytes; specs are updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: prune new tests without an independent failure signal

Apply the test policy to the tests this branch adds. Removed:
- layout_is_64_bytes_and_copy: duplicates the compile-time size assert;
  Copy and alignment are fixed by the type.
- cycles_convert_to_rows_with_their_bytecode_pc_and_captured_values and
  trace_data_from_cycles_carries_field_inline_payload: restate converter
  output already pinned at the Cycle and row levels.
- backend_rejects_proof_rows_beyond_cycle_domain and
  backend_shares_full_trace_allocation_and_bounds_the_proof_view: a
  guard unreachable from the SDK path and a pointer-identity check that
  fails only on refactor.
- field_rd_inc_materializes_field_deltas_and_padding: pruned on main in
  a16z#1998 and restored by the merge; duplicates the public provider views.
- from_parts_rejects_misplaced_events_and_proves_through_the_last_event:
  guards a prover-side constructor whose only caller builds sorted events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(spec): describe row layout and ownership guarantees after test pruning

The row's Copy and 64-byte size are pinned by the type and a compile-time
assertion, and retaining the producer's rows follows from moving the
Arc<TraceData> into the backend with no Clone on TraceData; the spec no
longer claims tests for either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf(witness): pre-size field-inline Spartan rows

field_inline_spartan_rows emits exactly one row per field event, so
allocate the vector at that length instead of growing it by push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ons (a16z#1995)

* feat(tracer): name the field-inline execution field for guests

Add jolt-platform's FieldInlineModulus, the guest-visible table of field-inline
proof fields with their little-endian modulus limbs and the canonicality
predicate. The tracer exports FIELD_INLINE_MODULUS next to its ProofField
selection and const-asserts the table against new jolt-field MODULUS_LIMBS
accessors, so the copy cannot drift from the executing field.

Add a test-utils hook that injects dishonest FIELD_ADVICE_LIMB limbs (with the
quotient the row relation requires) for guest-level soundness tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(sdk): add checked field_to_limbs! and field_from_limbs! conversions

field_to_limbs! splits a field register in place into its modulus width of
FIELD_ADVICE_LIMB rows, asserts the residual quotient is zero, proves the guest
was compiled for the executing proof field, checks the limbs are below the
modulus (spoiling the proof otherwise), and restores the register from the
limbs. Wider outputs zero-extend; narrower ones panic when the value does not
fit. field_from_limbs! rejects noncanonical limbs, resets the destination, binds
the modulus, and accumulates most significant first.

The guest-visible jolt::field_inline::MODULUS comes from
JOLT_FIELD_INLINE_MODULUS, which jolt-host sets from the tracer's execution
field for field-inline guest builds, each field in its own target dir. Every
conversion binds it by accumulating the modulus limbs into a zero register and
asserting zero, so a mismatched build cannot be proven.

field-ops now imports its expected value and reads out limbs with the macros.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: prove limb conversions across field-inline modes

Add the field-limbs-guest conformance crate: round trips of limb-boundary
values and p - 1, readout of field-computed -1, widths, preservation of all 16
live registers across in-place readouts, and destination replacement. The
field-inline e2e matrix proves it in clear Dory, ZK Dory, and Akita, importing
and reading back p - 1 computed on the host in each mode's field.

Trace-level tests pin the import policy (values of p or more panic without
spoiling), narrow readouts of oversized values, and dishonest advice from the
tracer injection hook: wrong or truncated limbs stop at the residual assertion
right after the last limb, and limbs of p for zero or value + p spoil the proof.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: document SDK limb conversions and guest field selection

Specify the field_to_limbs!/field_from_limbs! sequences, costs, failure
outcomes, modulus binding, and the tracer -> jolt-host -> jolt-sdk field
selection chain in the field-inline specs; drop the a16z#1934 follow-up notes and
fix the stale ASSERT_ZERO field-op tag. Add field_limbs to the acceptance matrix
docs, and run the jolt-platform and field-ops example tests in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: satisfy style invariants and tighten conversion docs

Import TwoPassConfig and the AdviceLimb match word instead of spelling them
qualified, and let field-ops encode its memory loads through the SDK's
memory_accumulate_word so the encoding has one owner. State that only
conversions bind MODULUS, name both assertions a wrong-field guest can fail,
and list field_limbs in the field-inline CI lane comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(fuzz): lock jolt-host's jolt-platform dependency for jolt-eval fuzz

jolt-host now depends on jolt-platform for the field-inline modulus name. The root Cargo.lock records the edge, but the separate jolt-eval fuzz workspace lockfile did not, so its --locked resolution failed in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: qualify field conversion binding guarantees

* test: harden checked field limb conversion boundaries

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Markos Georghiades <mgeorghiades@a16z.com>
* refactor(jolt-kernels)!: bind backends to execution context

* fix(tracer): initialize converted rows directly in parallel

* fix(prover): remove unused panicking address remapper

* fix(program): remove unused compact dimension summarizer

* fix(program): encode RAM bounds as a nonzero pair

* fix: keep proof sessions bound to execution contexts

* fix: centralize field-inline commitment order

* fix: reconcile execution bindings with unified trace APIs

* fix(prover): remove unused jolt-utils dependency
…roup (a16z#2004)

A static branch or JAL whose target is not a group start allocated a dynamic
label that was never defined, so dynasmrt's finalize panicked with
UnknownLabel. Such targets now get a stub that reports the address as a bad
jump when taken, matching dispatched jumps. This fixes the iai_beq_not_taken
bench, whose last branch targets one row past the program.
* spec: binary-field backend for jolt-field

* feat(jolt-field): binary-field backend with F64, F128 and F192

* spec: add carry-less multiply kernels and backend roadmap

* feat(jolt-field): carry-less multiply kernels for the binary fields

* ci: bench the binary-field kernels in the crate benchmark job

* ci: run field portability on stacked pull requests

* spec: lint and kernel-test enforcement in CI, and when the portable path is compiled

* ci: lint binary backend in all four kernel configurations

* ci: run binary kernel differential test with exact-name filter

* fix(jolt-field): gate portable binary arithmetic to tests and non-kernel builds
* spec: sum-check over binary fields

* spec: address audit of the binary sum-check spec

* spec: record the sum-check design space and prior art

* feat(jolt-sumcheck): batched sum-check over binary fields

Select the batch padding rule from the field: constant extension where 2
is invertible (unchanged), zero extension in characteristic 2. Add
BatchPrelude::member_output_scale for verifiers, and reject centered
integer domains whose points collide in the field.

* spec: cite leanMultisig by its full commit hash

* fix(jolt-sumcheck): bound the integer-domain collision scan
* fix: remove runtime advice length queries

* test(tracer-x86): remove the count-only difftest coverage test

supported_kinds_all_have_difftests compared SUPPORTED.len() with a
hand-maintained literal and never inspected the difftests! list:
deleting diff_advice_load and its generator left it passing without
warnings. classification_matches_compiler and the differential tests
are unchanged.

---------

Co-authored-by: Andrew Tretyakov <42178850+0xAndoroid@users.noreply.github.com>
* Remove Akita bytecode table chunking

* docs: move Akita single-bytecode spec to PR description

* refactor(bytecode)!: remove Dory table chunking

* fix(ci): refresh whole-bytecode fuzz fixtures

* refactor(bytecode): address whole-table review findings

* fix(bytecode): validate committed program shape and order

* fix(profiling): version the updated span taxonomy
)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@043fb46...cf430e0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@8207627...949feb2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.50.3 to 1.51.1.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/main/CHANGELOG.md)
- [Commits](crate-ci/typos@00f422f...7f9d081)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.51.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [syn](https://github.com/dtolnay/syn) from 3.0.6 to 3.0.8.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@3.0.6...3.0.8)

---
updated-dependencies:
- dependency-name: syn
  dependency-version: 3.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [inventory](https://github.com/dtolnay/inventory) from 0.3.24 to 0.3.25.
- [Release notes](https://github.com/dtolnay/inventory/releases)
- [Commits](dtolnay/inventory@0.3.24...0.3.25)

---
updated-dependencies:
- dependency-name: inventory
  dependency-version: 0.3.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [toml_edit](https://github.com/toml-rs/toml) from 0.25.15+spec-1.1.0 to 0.25.17+spec-1.1.0.
- [Commits](toml-rs/toml@v0.25.15...v0.25.17)

---
updated-dependencies:
- dependency-name: toml_edit
  dependency-version: 0.25.17+spec-1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ruzstd 0.9.0 (pulled in via object) lets a small crafted zstd block
decompress to gigabytes. 0.9.1 enforces the per-block output bound.
Update the root, jolt-eval/fuzz, and tracer/fuzz lockfiles.

Closes a16z#2050

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Bumps [bytemuck_derive](https://github.com/Lokathor/bytemuck) from 1.12.0 to 1.12.1.
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](Lokathor/bytemuck@bytemuck_derive-v1.12.0...bytemuck_derive-v1.12.1)

---
updated-dependencies:
- dependency-name: bytemuck_derive
  dependency-version: 1.12.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
a16z#2061)

Bumps [reth-ethereum-primitives](https://github.com/paradigmxyz/reth) from `2e6e838` to `7486a1e`.
- [Release notes](https://github.com/paradigmxyz/reth/releases)
- [Commits](paradigmxyz/reth@2e6e838...7486a1e)

---
updated-dependencies:
- dependency-name: reth-ethereum-primitives
  dependency-version: 7486a1e9ffe77b069c65e7bb0ad3138a0f9babd9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…z#2056)

Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.87.25 to 2.87.28.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](taiki-e/install-action@183e429...1168f68)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.28
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Zhu <8365992+moodlezoup@users.noreply.github.com>
* perf(claims): fuse and parallelize bytecode stage-value folding

* fix(claims): import bytecode fold test types

* test(claims): replace bytecode fold equivalence oracle
mtbadakhshan and others added 19 commits October 15, 2026 17:27
…2034)

* spec: F8 and its embeddings into the binary fields

* spec: address the F8 audit

* feat(jolt-field): F8 and its embeddings into the binary fields
Lock the a16z/arkworks-algebra dev/twist-shout packages at b8f0f512
(previously 76bb3a45), the merge of a16z/arkworks-algebra#37. MSM chunks
now run on the caller's rayon pool instead of a per-chunk pool whose
unwrapped build panics where threads cannot spawn (a16z#1913, bug 2).

Root and fuzz lockfiles only; the manifests keep branch = "dev/twist-shout".
Trusted advice is bring-your-own-commitment advice. The commitment is not
part of the proof and Jolt does not check where it came from: the verifier
must obtain it from the trusted party (or otherwise authenticate it) before
passing it to the build_verifier_<fn> closure. A prover-supplied commitment
lets the prover choose the advice. Untrusted advice, by contrast, is
committed by the prover inside Jolt and travels in the proof.

Update the guest docs and the jolt agent skill accordingly.
…2064)

The verifier closure built by `#[jolt::provable]` ended in
`jolt_verifier::verify(...).is_ok()`, so a rejected proof reached the caller
as a bare `false` and the `VerifierError` was dropped. `build_verifier_<fn>`
now returns that `Result<(), VerifierError>` unchanged.

The wasm `verify_<fn>` exports return `Result<(), JsError>`: a rejected proof
or an undecodable input throws a JS `Error` carrying the message instead of
returning `false`. Both generators change together, the macro's `wasm`
attribute and `jolt build-wasm`, because a16z#1777 gave them one ABI. The
wasm-bindgen requirement that `jolt build-wasm` inserts moves to 0.2.79, the
first release with `JsError`.

Callers handle the `Result`: examples, the `jolt new` templates and the book
snippets `.expect()` it, sig-recovery matches on it, and the generated
index.html and the wasm e2e script catch the thrown error.

BREAKING CHANGE: `build_verifier_<fn>` closures return
`Result<(), jolt_sdk::jolt_verifier::VerifierError>` instead of `bool`, and
the wasm `verify_<fn>` exports return `Result<(), JsError>` (they throw in JS)
instead of `bool`.
main cleared TRACER_PARALLEL before parallel_workers() read it, so the
parallel arm always used available_parallelism() - 1 workers. Read the
worker count once at startup and pass it to each bench.
…t spawn (a16z#2067)

with_backend_pool funnels every Akita setup/commit/prove/verify call
through a dedicated 64 MiB-stack rayon pool built with expect(). Where std
cannot spawn threads (wasm32), ThreadPoolBuilder::build() always fails with
io::ErrorKind::Unsupported, so every Akita call panicked.

Treat exactly that error as "no dedicated pool" and run the closure on the
caller's pool, the case in which rayon itself runs its global pool on the
current thread. Any other build failure still panics: on a platform with
threads, default-sized stacks risk the overflow the pool exists to prevent.
The profiling-only verifier pools keep requiring threads.

Refs a16z#1913
* ci: remove PR size warning and spec labeling

Delete the Spec Workflow (spec-tracking.yml). Its spec-labels job set the
spec / no-spec / implementation PR labels, and its large-pr-warning job
posted the "more than 500 changed lines of actual code" spec warning.
Drop the CONTRIBUTING.md and new-spec skill text that documented both.

The PR diff classification comment, the manual claude-spec-review-request
routine and its labels, and the spec-writing guidance are unchanged.

* docs(specs): drop the removed PR labeling and size warning from spec 1370

Spec 1370 still required the spec / no-spec / implementation auto-labels,
the 500-changed-line warning comment and the deleted spec-tracking.yml.
Remove that invariant, the four acceptance criteria, the soft-warning
note, the lifecycle label step, both workflow references, the three
auto-label table rows and the soft-guardrail paragraph. The rest of the
spec, including the manual Claude spec review, is unchanged.
* perf(tracer-x86): convert record observations in place

reassemble_rows borrowed the observation buffer and built JoltTraceRows
into a second allocation of the same size. Observation and JoltTraceRow are
both 64 bytes with 8-byte alignment, so consuming the Vec lets the checked
conversion collect into the observation allocation instead, removing one
full-size allocation and its first-touch page faults per trace and per
replayed chunk.

* fix(tracer-x86): release replay chunks' oversized row buffer

In-place conversion keeps the observation buffer's capacity, which for a
replayed chunk includes the skipped prefix and the overshoot slack. Return
the rows from reassemble_rows and shrink them in replay_chunk before
building TraceData, so a retained chunk holds only its own rows; the eager
trace keeps the in-place buffer, whose slack is one row.

Claude-Session: https://claude.ai/code/session_01Mg14dTdgQ482CTdSMueXTp

---------

Co-authored-by: Claude <noreply@anthropic.com>
* feat(akita): make witness chunking a runtime catalog policy

* chore(akita): pin rebased runtime geometry changes

* chore: pin merged Akita runtime geometry revision

* fix(akita): reject mismatched chunked folding depth

* docs(akita): name the pinned upstream revision

* test(akita): cover catalog admission rejection paths
@github-actions github-actions Bot added the spec PR contains a spec label Oct 22, 2026
@github-actions

Copy link
Copy Markdown

📏 PR diff

Note

Actual code changed: 13,699 lines

🟢 +7,120 added    🔴 −6,579 removed

Tests, docs, fixtures, and helper scripts excluded.

Category 🟢 Added 🔴 Removed
⌨️ Actual code +7,120 −6,579
🧪 Tests +6,553 −2,569
📚 Docs +2,230 −1,303
📦 Fixtures +325 −208
🔧 Helper scripts +994 −16,069
Total diff +17,222 −26,728

Every changed line is classified once.

@github-actions github-actions Bot added the implementation PR contains implementation of a spec label Oct 22, 2026
@RadNi RadNi closed this Oct 22, 2026
@github-actions

Copy link
Copy Markdown

Benchmark comparison (crates)

Same-runner A/B: base_run = eea40ca (merge target) vs pr_run = fef8795 (PR head merged onto it). Bold = faster run; Δ colored when the difference exceeds the ±10% noise threshold.

2 of 66 benchmarks differ by more than ±10%:

Benchmark base_run (merge target) pr_run (this PR) Δ
append_bytes/Keccak/32B 42.2±3.42ns 48.2±7.13ns ${\color{red}\mathbf{+14.4\%}}$
field arithmetic/add/fp128_a7f7 4.0±0.10µs 4.5±0.06µs ${\color{red}\mathbf{+10.7\%}}$
All 66 benchmarks
Benchmark base_run (merge target) pr_run (this PR) Δ
EqPolynomial::evals/17 1.9±0.05ms 1.9±0.03ms -0.1%
EqPolynomial::evals/19 7.4±0.09ms 7.3±0.10ms -2.0%
EqPolynomial::evals/20 14.9±0.09ms 14.8±0.08ms -0.4%
EqPolynomial::evals/22 56.2±0.32ms 57.4±1.16ms +2.0%
EqPolynomial::evaluations/14 772.4±23.27µs 782.9±16.94µs +1.4%
EqPolynomial::evaluations/18 6.7±0.08ms 6.8±0.18ms +0.3%
EqPolynomial::evaluations/20 28.4±0.22ms 27.4±0.18ms -3.6%
Polynomial::bind/14 140.3±19.98µs 130.5±9.52µs -7.0%
Polynomial::bind/18 1.9±0.02ms 1.9±0.02ms -0.3%
Polynomial::bind/20 7.5±0.05ms 7.6±0.05ms +0.3%
Polynomial::evaluate/20 40.1±0.17ms 39.9±0.21ms -0.5%
UnivariatePoly::from_evals/16 52.5±1.11µs 52.4±0.95µs -0.2%
UnivariatePoly::from_evals/3 6.4±0.16µs 6.4±0.13µs -0.1%
UnivariatePoly::from_evals/4 9.6±0.22µs 9.6±0.20µs +0.0%
UnivariatePoly::from_evals/8 23.5±0.48µs 23.5±0.50µs +0.1%
append_bytes/Blake2b/256B 336.6±5.93ns 340.1±3.63ns +1.0%
append_bytes/Blake2b/32B 50.1±1.76ns 50.8±4.61ns +1.3%
append_bytes/Keccak/256B 785.1±32.17ns 785.7±16.24ns +0.1%
append_bytes/Keccak/32B 42.2±3.42ns 48.2±7.13ns ${\color{red}\mathbf{+14.4\%}}$
append_bytes/Poseidon/256B 283.8±2.04µs 276.0±3.78µs -2.8%
append_bytes/Poseidon/32B 91.8±2.44µs 90.4±3.48µs -1.6%
challenge/Blake2b 649.0±7.34ns 646.0±5.00ns -0.5%
challenge/Keccak 374.9±16.12ns 370.2±13.33ns -1.3%
challenge/Poseidon 45.2±0.68µs 44.3±0.79µs -1.9%
field arithmetic/add/fp128_a7f7 4.0±0.10µs 4.5±0.06µs ${\color{red}\mathbf{+10.7\%}}$
field arithmetic/add/fp32_c99 3.2±0.26µs 3.1±0.04µs -1.5%
field arithmetic/add/fp64_c59 3.1±0.02µs 3.1±0.01µs -0.3%
field arithmetic/mul/fp128_a7f7 15.4±0.07µs 16.0±0.12µs +4.2%
field arithmetic/mul/fp32_c99 5.6±0.07µs 5.6±0.06µs +0.0%
field arithmetic/mul/fp64_c59 8.1±0.05µs 8.1±0.04µs +0.0%
field arithmetic/square/fp128_a7f7 17.8±0.18µs 18.3±0.18µs +2.7%
field arithmetic/square/fp32_c99 6.2±0.06µs 6.2±0.07µs +0.0%
field arithmetic/square/fp64_c59 6.6±0.06µs 6.7±0.07µs +0.6%
field arithmetic/sub/fp128_a7f7 3.9±0.06µs 4.0±0.06µs +2.8%
field arithmetic/sub/fp32_c99 2.3±0.02µs 2.3±0.02µs -0.2%
field arithmetic/sub/fp64_c59 2.6±0.05µs 2.6±0.03µs +0.0%
fp64_prime63_offset259/ext2_packed_mul 15.6±0.11ns 15.6±0.04ns -0.1%
fp64_prime63_offset259/ext2_scalar_mul 11.0±0.07ns 11.0±0.07ns -0.1%
fp64_prime63_offset259/packed_mul 7.0±0.42ns 6.9±0.12ns -1.1%
fp64_prime63_offset259/scalar_mul 2.6±0.02ns 2.6±0.02ns -0.1%
g1_add 411.4±3.71ns 412.3±3.07ns +0.2%
g1_deserialize_bincode 8.7±0.03µs 8.7±0.03µs +0.2%
g1_double 208.8±6.50ns 205.6±2.18ns -1.5%
g1_msm/1024 12.6±0.03ms 12.6±0.06ms +0.8%
g1_msm/16 535.7±26.95µs 534.9±5.60µs -0.2%
g1_msm/256 4.2±0.01ms 4.2±0.02ms +0.5%
g1_msm/4 252.8±1.41µs 254.1±4.25µs +0.5%
g1_msm/64 1.6±0.03ms 1.6±0.02ms +0.1%
g1_scalar_mul 63.7±1.23µs 63.7±0.63µs +0.0%
g1_serialize_bincode 111.8±3.48ns 104.6±1.01ns -6.4%
g2_msm/16 1.9±0.02ms 1.9±0.05ms +0.8%
g2_msm/256 15.3±0.54ms 15.3±0.11ms -0.1%
g2_msm/4 767.3±2.74µs 773.4±10.15µs +0.8%
g2_msm/64 5.6±0.28ms 5.6±0.06ms -0.1%
g2_scalar_mul 319.0±2.53µs 317.4±1.96µs -0.5%
gt_scalar_mul 873.5±5.03µs 875.4±6.52µs +0.2%
multi_pairing/16 5.7±0.03ms 5.7±0.03ms +0.4%
multi_pairing/2 1.2±0.01ms 1.2±0.02ms +0.4%
multi_pairing/4 1.8±0.01ms 1.8±0.02ms +0.5%
multi_pairing/8 3.1±0.02ms 3.1±0.03ms +0.6%
pairing 903.6±10.60µs 907.3±8.02µs +0.4%
pedersen_commit/1024 12.7±0.05ms 12.7±0.07ms +0.5%
pedersen_commit/16 600.4±2.79µs 606.2±13.89µs +1.0%
pedersen_commit/256 4.3±0.02ms 4.3±0.01ms +0.1%
pedersen_commit/4 315.0±1.46µs 317.5±2.26µs +0.8%
pedersen_commit/64 1.6±0.01ms 1.6±0.02ms +0.4%

6 benchmark(s) present in only one run: F128/mul, F128/square, F192/mul, F192/square, F64/mul, F64/square

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

implementation PR contains implementation of a spec spec PR contains a spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants