Repository navigation
Conversation
📏 PR diffNote Actual code changed: 1,332 lines🟢 +844 added 🔴 −488 removed Tests, docs, fixtures, and helper scripts excluded.
Every changed line is classified once. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Akita now commits and opens the entire bytecode table as one polynomial group. This removes the bytecode partitioning inherited from Dory, whose commitment geometry can require splitting a bytecode table when it is larger than the execution trace. Akita already supports separate group geometries, so the bytecode group can exceed the trace arity. Dory retains its existing bytecode chunking.
The implementation and protocol rationale are documented in
specs/akita-single-bytecode-object.md.Changes
ProgramBytecodeobject and scalar claim reductions.Testing
hostandhost,zk; affected Akita targets also passed Clippy with and without field-inline.cargo fmt, repository style invariants, andgit diff --checkpassed.Full crate suites remain for CI. Performance has not been benchmarked; this PR makes no speedup claim.
Security Considerations
The bytecode opening still uses the canonical shared claim relations and geometry. The verifier checks the single named bytecode commitment, scalar claim, and expected cycle/address phase state. Group capacity is checked before dense materialization. Updated transcript domain separation prevents old Akita preprocessing from being reused with the new object layout. Tests cover altered bytecode claims and malformed phase states, and the changed transcript absorption inventory was reviewed and checked without snapshot blessing.
Breaking Changes
All existing Akita preprocessing and proofs must be regenerated, including full-program proofs. Akita committed-program APIs no longer accept a bytecode chunk count, and their serialized commitments and claim carriers change. Dory's bytecode chunking and preprocessing digest domains are preserved.