Skip to content

fix: quiet malformed chonk proof rejection#23822

Open
AztecBot wants to merge 9 commits into
nextfrom
cb/chonk-malformed-proof-public
Open

fix: quiet malformed chonk proof rejection#23822
AztecBot wants to merge 9 commits into
nextfrom
cb/chonk-malformed-proof-public

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented Jun 3, 2026

Stacked on #23484 (cb/07fa8374405a).

Summary

  • Treat malformed/wrong-sized Chonk proof input as expected invalid proof input by demoting bbapi per-proof input logs to verbose.
  • Return { valid: false } directly when native Chonk verification reports verified=false, instead of throwing into the warning path.
  • Make batch Chonk invalid proof results debug-only; keep warn/error logs for verifier/process/FIFO infrastructure failures.
  • Close logger-attached native socket backend readline/stdout/stderr handles on cleanup so bb.js verifier teardown does not leave Jest alive after tests pass.

CI-full follow-up

The failed e2e_prover/full leaf passed all 4 Jest tests, then hung after Jest did not exit one second after the test run has completed until the CI wrapper timed out. The node and batch verifier services logged clean stop, so the likely leak was the RPC verifier's logger-attached native socket backend handles.

Verification

  • git diff --check
  • yarn --cwd yarn-project/bb-prover build could not run in this checkout: missing yarn-project/node_modules/.bin/tsgo.
  • bbapi_tests --gtest_filter=BBApiInputValidation.ChonkVerifyFromFieldsWrongVkSizeReturnsInvalid:BBApiInputValidation.ChonkBatchVerifyWrongVkSizeReturnsInvalid:BBApiInputValidation.ChonkVerifyWrongVkSizeReturnsInvalid could not run because barretenberg/cpp/build/bin/bbapi_tests is not built in this checkout.

Created by claudebox · group: slackbot

AztecBot and others added 7 commits May 29, 2026 17:24
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Jun 3, 2026
@iakovenkos iakovenkos added the ci-full Run all master checks. label Jun 3, 2026
@iakovenkos iakovenkos marked this pull request as ready for review June 3, 2026 13:57
@AztecBot AztecBot force-pushed the cb/07fa8374405a branch 2 times, most recently from d109495 to eb50077 Compare June 5, 2026 03:20
Base automatically changed from cb/07fa8374405a to next June 5, 2026 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run all master checks. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants