Skip to content

fix: satisfy Chonk num_circuits >= 4 assertion in mock IVC creation#22188

Merged
iakovenkos merged 1 commit intomerge-train/barretenbergfrom
claudebox/fix-bb-merge-train-22181
Mar 31, 2026
Merged

fix: satisfy Chonk num_circuits >= 4 assertion in mock IVC creation#22188
iakovenkos merged 1 commit intomerge-train/barretenbergfrom
claudebox/fix-bb-merge-train-22181

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

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

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.
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 31, 2026
@iakovenkos iakovenkos self-requested a review March 31, 2026 15:27
@iakovenkos iakovenkos marked this pull request as ready for review March 31, 2026 15:29
@iakovenkos iakovenkos enabled auto-merge (squash) March 31, 2026 15:30
@iakovenkos iakovenkos merged commit daf1360 into merge-train/barretenberg Mar 31, 2026
35 of 39 checks passed
@iakovenkos iakovenkos deleted the claudebox/fix-bb-merge-train-22181 branch March 31, 2026 15:41
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

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants