Skip to content

chore: minor fixes pt. 3#22181

Merged
iakovenkos merged 6 commits into
merge-train/barretenbergfrom
si/triage-issues-2
Mar 31, 2026
Merged

chore: minor fixes pt. 3#22181
iakovenkos merged 6 commits into
merge-train/barretenbergfrom
si/triage-issues-2

Conversation

@iakovenkos

Copy link
Copy Markdown
Contributor

triaging relations findings

@iakovenkos iakovenkos self-assigned this Mar 31, 2026
Comment thread barretenberg/cpp/src/barretenberg/flavor/mega_flavor.hpp
@iakovenkos iakovenkos requested a review from ledwards2225 March 31, 2026 14:09
@iakovenkos iakovenkos merged commit 57280d7 into merge-train/barretenberg Mar 31, 2026
12 checks passed
@iakovenkos iakovenkos deleted the si/triage-issues-2 branch March 31, 2026 14:51
AztecBot added a commit that referenced this pull request Mar 31, 2026
create_mock_chonk_from_constraints was passing constraints.size() (1-2)
to Chonk constructor which now requires >= 4 after #22181. The mock
doesn't use num_circuits for anything, so passing max(size, 4) is safe.
iakovenkos pushed a commit that referenced this pull request Mar 31, 2026
…22188)

## Summary
PR #22181 tightened the `Chonk` constructor to require `num_circuits >=
4`, but `create_mock_chonk_from_constraints()` was passing
`constraints.size()` (1-2 for most kernels), causing assertion failures
during VK generation for `mock-protocol-circuits` and
`noir-protocol-circuits`.

## Fix
Pass `std::max(constraints.size(), 4)` since the mock doesn't use
`num_circuits` for anything — it directly manipulates the verification
queue.

## Verification
- All DSL tests pass (Hypernova, MockVerifier, ChonkRecursion)
- `mock-protocol-circuits` bootstrap: 11/11 circuits pass
- `noir-protocol-circuits` bootstrap: 120/120 circuits pass

ClaudeBox log: https://claudebox.work/s/71d20ef48c81e6e3?run=1
github-merge-queue Bot pushed a commit that referenced this pull request Mar 31, 2026
BEGIN_COMMIT_OVERRIDE
chore: bench phase breakdown + thread sweep for MSM reduction (#21885)
chore: minor fixes pt. 2 (#22138)
chore: minor fixes pt. 3 (#22181)
fix: satisfy Chonk num_circuits >= 4 assertion in mock IVC creation
(#22188)
END_COMMIT_OVERRIDE
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.

3 participants