Skip to content

chore(akita): bump dependency to e2c49ed - #52

Closed
RadNi wants to merge 5 commits into
codex/akita-multi-chunk-on-1948from
codex/bump-akita-e2c49ed
Closed

RadNi wants to merge 5 commits into
codex/akita-multi-chunk-on-1948from
codex/bump-akita-e2c49ed

Conversation

@RadNi

@RadNi RadNi commented Oct 2, 2026 •

Copy link
Copy Markdown

Superseded by a16z#2006, targeting a16z/jolt/main after a16z#1976 merged. The replacement removes the fork-specific CI workarounds.


Update Jolt's Akita dependencies from 1cc7a2a90774d4d402f201701d08158edc106d67 to e2c49ed450f1999a743e7fd4a648f230ce45472f so companion and GPU integrations can use the same Akita revision. Imports move to akita-params, and AkitaScheduleLookupKey becomes ScheduleLookupKey.

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

  • Update all nine Akita workspace dependency pins and Cargo.lock; add akita-params to its consumers.
  • Retain the merged base's ten schedule catalogs with 543 total rows. Regenerate the 63-row K=256 W4R2 catalog at the new pin; only (37, 2) and (38, 1) change relative to the base.
  • Include CI action pinning and checkout-based SDK smoke tests for generated projects, allowing fork commits to be tested.

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; with akita,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.
  • Workspace Clippy with host and host,zk; Akita adapter Clippy with field-inline; Akita prover/verifier Clippy with akita, all targets and warnings denied.
  • Formatting, style invariants, and exact catalog-grid/canonical-serialization checks passed.

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.

@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

📏 PR diff

Note

Actual code changed: 134 lines

🟢 +62 added    🔴 −72 removed

Tests, docs, fixtures, and helper scripts excluded.

Category 🟢 Added 🔴 Removed
⌨️ Actual code +62 −72
🧪 Tests +31 −32
📚 Docs +46 −27
📦 Fixtures +44 −20
🔧 Helper scripts +84 −72
Total diff +267 −223

Every changed line is classified once.

@github-actions github-actions Bot added the no-spec PR has no spec file label Oct 2, 2026
@RadNi
RadNi force-pushed the codex/bump-akita-e2c49ed branch from 0e7f486 to 9aa1f8c Compare October 3, 2026 06:35
@socket-security

socket-security Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub/​taiki-e/​install-action@​c6be25d576b61102b3af9c1f35a7f2b3a55b5e3a ⏵ 83ac0ad63c0167e6f06796fab0fce28db1bf3db099100100100100

View full report

@quangvdao quangvdao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 16 Cargo.lock source lines are at e2c49ed4, no leftover old rev.
  • Every import change follows from Akita a16z#134 (akita-params split) or a16z#136 (AkitaScheduleLookupKey → ScheduleLookupKey).
  • No transcript label or domain change; protocol_epoch and every catalog policy_digest are unchanged, and no fixture changed.
  • Regenerated all 503 schedule rows at the new pin: all ten .aks files 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

  1. Bounded-only grouped requests now silently replan. Akita a16z#127 makes find_adapted_schedule fall 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-71 still documents the rejection.
  2. schedule_registry.rs:196 pre-check is needed; the arm at :212-218 is now redundant. With the pre-check disabled, full_width_replanning_is_limited_to_one_inc_and_two_advice_groups fails (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.
  3. 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.
  4. Unrelated CI changes ride along. Action SHA pinning (with different SHAs for the same action at rust.yml:455,497,547 versus the other nextest pins), and scripts/ci/use_checkout_sdk.py moves the generated-project jobs from a git-rev dependency to a path dependency, so they no longer exercise the git-dependency path.
  5. 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.

@github-actions github-actions Bot added spec PR contains a spec implementation PR contains implementation of a spec and removed no-spec PR has no spec file labels Oct 6, 2026
@RadNi

RadNi commented Oct 6, 2026

Copy link
Copy Markdown
Author

Regarding review item #4 (CI scope): these changes support running the inherited CI workflows in LayerZero-Research/jolt, where this branch currently lives.

  • Action SHA pins: commit 15e14a21a introduced them specifically for the fork's action policy. They are CI infrastructure changes, independent of the Akita dependency migration. The differing nextest SHAs are a separate consistency concern; the fork requirement does not require different pins for the same action.
  • Generated-project SDK dependencies: jolt new generates dependencies pointing to https://github.com/a16z/jolt. The inherited CI then pins that URL to the checkout's commit. For this fork branch, that assumes a fork commit can be resolved through the upstream repository. scripts/ci/use_checkout_sdk.py instead points both generated manifests at the checked-out SDK, ensuring the smoke tests build and run the exact candidate code without relying on that assumption.

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.

RadNi and others added 5 commits October 6, 2026 12:21
* 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.
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.

5 participants