Skip to content

fix(bb): suppress asserts while deriving Chonk VKs#24079

Draft
AztecBot wants to merge 1 commit into
nextfrom
cb/fix-chonk-vk-debug-asserts
Draft

fix(bb): suppress asserts while deriving Chonk VKs#24079
AztecBot wants to merge 1 commit into
nextfrom
cb/fix-chonk-vk-debug-asserts

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

Nightly debug build failed in run https://github.com/AztecProtocol/aztec-packages/actions/runs/27529171550 while running bbapi_tests ChonkPinnedIvcInputsTest.AllPinnedFlows on the pinned Chonk flow deploy_ecdsar1+sponsored_fpc.

Root cause: ChonkComputeVk derives the hiding-kernel VK from bytecode with an empty witness. In debug builds, that bytecode can execute recursive-kernel public-input consistency checks whose native BB_ASSERT_DEBUG comparisons require real witness-backed proof data. VK derivation is witness-independent, so those assertions should not fail a VK-only path.

Fix: wrap the shared Chonk VK derivation helper with BB_DISABLE_ASSERTS(), matching existing debug-only VK/check flows that intentionally construct circuits without satisfying witnesses.

Testing

  • cmake --build build-debug --target bbapi_tests
  • AZTEC_REPO_ROOT=/home/aztec-dev/aztec-packages CHONK_PINNED_IVC_FLOW=deploy_ecdsar1+sponsored_fpc CHONK_PINNED_IVC_FLOW_LIMIT=1 ./build-debug/bin/bbapi_tests --gtest_filter=ChonkPinnedIvcInputsTest.AllPinnedFlows
  • cmake --build build --target bbapi_tests
  • AZTEC_REPO_ROOT=/home/aztec-dev/aztec-packages CHONK_PINNED_IVC_FLOW=deploy_ecdsar1+sponsored_fpc CHONK_PINNED_IVC_FLOW_LIMIT=1 ./build/bin/bbapi_tests --gtest_filter=ChonkPinnedIvcInputsTest.AllPinnedFlows

Created by claudebox · group: slackbot

@AztecBot AztecBot added ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure claudebox Owned by claudebox. it can push to this PR. labels Jun 15, 2026
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. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant