Repository navigation
Conversation
📏 PR diffNote Actual code changed: 134 lines🟢 +62 added 🔴 −72 removed Tests, docs, fixtures, and helper scripts excluded.
Every changed line is classified once. |
0e7f486 to
9aa1f8c
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
quangvdao
left a comment
There was a problem hiding this comment.
Reviewed at 3a3dc23c4. This is what it says: a bump from Akita 1cc7a2a9 to e2c49ed4 with a mechanical migration, one required adaptation, and one regenerated catalog. Looks good to me, with a few small follow-ups.
Checked
- Pins are consistent: all nine
akita-*workspace entries and all 16Cargo.locksource lines are ate2c49ed4, no leftover old rev. - Every import change follows from Akita a16z#134 (
akita-paramssplit) or a16z#136 (AkitaScheduleLookupKey→ScheduleLookupKey). - No transcript label or domain change;
protocol_epochand every catalogpolicy_digestare unchanged, and no fixture changed. - Regenerated all 503 schedule rows at the new pin: all ten
.aksfiles are byte-identical to the committed ones, including the W2R2/W8R2/k16 catalogs from the base that were generated under the old Akita. cargo nextest run --locked -p jolt-akita: 87 pass; with--features field-inline: 91 pass.
Follow-ups
- Bounded-only grouped requests now silently replan. Akita a16z#127 makes
find_adapted_schedulefall back to the full planner search internally. The new pre-check guards the full-width shapes, but a bounded-only grouped request that fails guided adaptation used to error and now gets a from-scratch schedule. I have not shown this is reachable from Jolt.crates/jolt-akita/schedules/README.md:64,70-71still documents the rejection. schedule_registry.rs:196pre-check is needed; the arm at:212-218is now redundant. With the pre-check disabled,full_width_replanning_is_limited_to_one_inc_and_two_advice_groupsfails (after 129 s). The fallback arm re-runs a search Akita has already failed, and its comment and the test message still credit the guided planner.jolt-fp128-onehot-k256-w4r2.aks: two of 56 rows changed, (37,2) and (38,1), each from 6 to 7 recursive folds for a 30-byte smaller estimate (79,855 → 79,825 and 79,853 → 79,823). The old rows still validate under the new Akita, so this is the optimum moving, not a forced fix. Fine by me; noting it because an extra fold for 30 bytes may not be the trade we want on prover time. Unmeasured.- Unrelated CI changes ride along. Action SHA pinning (with different SHAs for the same action at
rust.yml:455,497,547versus the other nextest pins), andscripts/ci/use_checkout_sdk.pymoves the generated-project jobs from a git-rev dependency to a path dependency, so they no longer exercise the git-dependency path. - PR description is stale after the merge: it mentions a multi-chunk catalog that is no longer there and quotes 455 rows / 83 tests; head has 503 rows and 87 tests.
One question that ties to a16z#1976: does the a16z#127 fallback change the grouped + chunked provisioning failures for Four/Eight with an advice group that I reported there? That was run at the old pin.
Not run on my side: the jolt-prover/jolt-verifier akita lanes, clippy, benchmarks.
|
Regarding review item #4 (CI scope): these changes support running the inherited CI workflows in
The review's coverage caveat is correct: the checkout-based smoke tests exercise the generated project and current SDK, but no longer exercise Git-dependency fetching. A separate Git-source smoke test can use a reachable fork repository/ref, or the upstream Git-revision path can be restored once the candidate revision is published there. The CI changes remain here to support the current fork-hosted branch. |
* build(akita): bump akita to db5efa20 and spongefish to ef974134 Akita main (includes LayerZero-Labs/akita#37): akita-transcript on spongefish 0.7.4 rev ef974134 (u64 squeeze counters, pointer-width independent challenges). One workspace spongefish source; jolt-poly joins the a16z/jolt path patch because akita now depends on it via git. * refactor(akita): port jolt-akita to the spongefish-native akita API akita db5efa20 (akita#37) replaces the typed batched proof and its transcript with Spongefish argument bytes keyed by a session label, moves the CPU prover behind an owning CpuBackend with CommitmentHandles, and verifies through AkitaVerifier. Bridge Jolt's statement-bound challenge into the session bytes, commit via CpuBackend::import_source/commit, keep the retained source in the handle instead of a second copy in the hint, cache prepared AkitaVerifiers per flavor, and port TracePackedOneHot to the akita_pcs::custom_source contracts. The proof-shape guard goes away with the structured proof layer; only the commitment payload guard remains. * bench(dory): port akita_paths raw backend groups to CpuBackend The akita_prover groups commit through CpuBackend::commit and prove to Spongefish argument bytes; sources are imported once outside the timed region. akita-prover and akita-transcript are no longer direct dependencies of jolt-dory. * build(fuzz): re-resolve fuzz lockfiles to spongefish ef974134 cargo metadata per sub-workspace; no wholesale update. * build(akita): drop the direct akita-prover/akita-transcript lock edges * build(akita): regenerate schedule catalogs under the db5efa20 planner akita#37 changed the planner policy identity (cost model NativeNoncePayloadAndSetupEnvelopeV2, selection objectives V5/V6), so the checked-in .aks envelopes no longer pass the policy-digest check. Rows: k16 46 (37 changed), k256 64 (38 changed), dense 42 (40 changed); no rows added or removed, and the direct/offloaded cutover is unchanged. * fix(akita): import precommitted handles into the trace backend An Akita CommitmentHandle proves only on the CpuBackend that committed it, and advice / committed-program objects are committed on their own transparent setups' dense backends. Import each precommitted handle into the trace one-hot backend before the grouped batched_prove; Akita recomputes the dense commitment from the retained source and checks it against the shared public matrix. The trailing-garbage fold_paths test now expects Akita's own EOF rejection (VerificationFailed) since the adapter no longer deserializes the proof. * test(verifier): re-bless the Fiat-Shamir challenge-site inventory for bridged_akita_session * build: drop the unused akita-prover and akita-transcript workspace dependencies * test(akita): pin the deep-fold fixture at four recursive folds * docs(akita): date the cutover timings and name the Spongefish proof body * refactor(akita): stop echoing the proof's schedule selection from the shape guard * refactor(akita): read one_hot_k from the hint source variant * refactor(akita): name the backend verifier-setup alias for what it is * test(akita): check trailing-byte rejection on the commitment payload type * refactor(akita): inline the single-caller grouped opening selection * feat(akita): add multi-chunk profiles on updated Akita * style(akita): import Range in decomposition signatures * build(akita): bump akita to 1cc7a2a9 (spongefish 0.7.4, pointer-width independent challenges) * Resolve Akita multi-chunk conflicts with upstream main * fix(akita): refresh expanded K16 schedule catalogs and transcript fixture * fix(akita): address chunked profile review findings * fix(akita): cover chunked fold validation gaps * fix(akita): satisfy nominal import style * fix(verifier): refresh Fiat-Shamir inventory * fix(akita): provision advice commitments for chunked openings * fix(akita): reuse dense commitments across chunk profiles Certify bounded and full-width dense producers for the maximum eight-chunk response budget and regenerate their catalogs. Remove profile-specific producer replanning so advice commitments can be created once and reused across all supported trace chunk profiles. Cover producer certificate admission, commitment reuse, and committed-program proofs across Single, Two, Four, and Eight. * fix(akita): extend chunked catalogs to smaller arities * fix(akita): validate chunk profiles and close review gaps Rename the chunk-profile API and reject prove-time profile mismatches. Reuse the single-chunk, single-digit buffer, reject tampered verifier setups in existing round trips, and document cache compatibility, migration, and benchmark findings. Validation: targeted Akita tests, the Akita e2e suite, Fiat-Shamir inventory, both workspace Clippy modes, formatting, and diff checks passed. * fix(akita): audit grouped advice matrix and reject unsupported scalar guides * fix(akita): tighten grouped diagnostics and clarify migration docs * test(akita): cover every chunked rotation mode explicitly --------- Co-authored-by: Andrew Tretyakov <42178850+0xAndoroid@users.noreply.github.com> Co-authored-by: Andrew Tretyakov <atretyakov@a16z.com>
The x86 backend's Sd fast path performed stores into [stack_end, stack_end + STACK_CANARY_SIZE), which the interpreter rejects. Stores into the canary now take the slow path and fail with the interpreter's error. Cost: +4 instructions per Sd row (iai_sd +20% estimated cycles). Fixes a16z#1974.
…#2002) * docs(agents): add comment and test policies with cleanup skills * docs(agents): restore policy coverage and verification rules
…1880) Add a standalone clear Spartan prover/verifier for checked sparse R1CS, generic over `jolt_openings::CommitmentScheme`, plus a binary HyperKZG backend over BN254. This is the reusable SNARK layer for the Akita wrapper; the Akita acceptance circuit and on-chain verifier are separate work. Changes - `jolt-spartan-verifier`: `SpartanKey` validates the relation through `ConstraintMatrices::validate` (one owner in `jolt-r1cs`), computes a Blake2b-256 relation digest once at construction (domain tag, dimensions, A/B/C rows), and binds digest, policy id, public inputs and witness commitment before drawing tau; outer evaluations precede the matrix weights and the witness evaluation precedes the PCS opening. `outer_relation`/`inner_relation` are the single owners of the sumcheck relations for prover kernels and verifier checks. - `jolt-spartan-prover`: PCS-generic proving over the shared key methods; Dory and HyperKZG exercise the same relation in tests. - `jolt-hyperkzg`: binary HyperKZG with checked SRS import (`setup_id` identifies the ceremony; no separate degree knob). `OpeningHint = Bn254G1` so `open` reuses the commit-time commitment for statement binding instead of repeating the MSM; `None` recomputes it. - `jolt-r1cs`: sparse column-range projection used by the prover; `ConstraintMatrices::validate`. - Fiat-Shamir census (`fs_obligations`) seeds `jolt-spartan-verifier` and `jolt-hyperkzg`; inventories re-blessed (+18 absorb, +8 challenge sites). - Both new verifier-runtime crates carry the verifier-closure lint tier (`specs/verifier-closure-lints.md` addendum: 20 crates, 15 with `forbid(unsafe_code)`). Removed from the original branch: the opt-in BN254 wide Blake2b transcript (no production caller) and `max_public_degree`. Testing - Component suites for jolt-r1cs, jolt-transcript, jolt-hyperkzg, jolt-spartan-verifier, jolt-spartan-prover (both PCS backends, per-field proof tampering, encoding-equivalent key rejection, wrong opening hint rejection, shape errors); `fs_obligations` with `fs-audit`; clippy `-D warnings` on the touched crates; PR CI green. Security Clear protocol, no zero-knowledge. The relation digest is verifier-computed from the key's own matrices (the key is not deserializable). The verifier evaluates sparse matrices directly; this is not a succinct EVM verifier. Online extraction under the full public SRS and the Fiat–Shamir composition remain documented conditional assumptions. Reviews: 0xAndoroid (6 threads, all addressed); independent review passes (Astra ×2, Fable ×2) with no soundness defect found.
45fc2e0 to
e2ba202
Compare
Superseded by a16z#2006, targeting
a16z/jolt/mainafter a16z#1976 merged. The replacement removes the fork-specific CI workarounds.Update Jolt's Akita dependencies from
1cc7a2a90774d4d402f201701d08158edc106d67toe2c49ed450f1999a743e7fd4a648f230ce45472fso companion and GPU integrations can use the same Akita revision. Imports move toakita-params, andAkitaScheduleLookupKeybecomesScheduleLookupKey.Setup uses Akita's guided adaptation followed by automatic full planning on
UnsupportedSchedule. This broader fallback also applies to bounded-only requests that pass Jolt's admission checks. Jolt retains the full-width batch restriction and the small Single-profile scalar-guide gate; frozen producer profiles and schedule audits remain required. The README and spec document this policy, and the redundant Jolt fallback is removed.Changes
Cargo.lock; addakita-paramsto its consumers.(37, 2)and(38, 1)change relative to the base.Validation
Code validation passed at implementation commit
c7ecab2a6:cargo nextest run --locked -p jolt-akita --cargo-quiet— 85 passed; with--features field-inline— 89 passed.cargo nextest run --locked -p jolt-prover --features akita,prover-fixtures --cargo-quiet --test-threads 1— 32 passed; withakita,field-inline,prover-fixtures— 26 passed.cargo nextest run --locked -p jolt-verifier --features akita,prover-fixtures --cargo-quiet --test-threads 1— 81 passed.cargo nextest run --locked -p jolt-verifier --features fs-audit --test fs_obligations --cargo-quiet— 1 passed.hostandhost,zk; Akita adapter Clippy withfield-inline; Akita prover/verifier Clippy withakita, all targets and warnings denied.Review notes
The two changed schedule rows increase from six to seven recursive folds for a 30-byte reduction in estimated proof size per row. The prover-time tradeoff has not been benchmarked. CI scope, consistent nextest pins, and separate Git-dependency smoke coverage remain follow-ups.