-
Notifications
You must be signed in to change notification settings - Fork 593
fix: AI audit based protocol contract fixes #20328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
benesjan
wants to merge
1
commit into
next
Choose a base branch
from
02-10-fix_ai_audit_based_protocol_contract_fixes
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+2
−2
Conversation
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
aa71930 to
99ed692
Compare
Collaborator
Compile (Noir contracts)TypeScript validationAction required: Please fix the docs examples or update them to match the current API. cc @AztecProtocol/devrel |
Collaborator
Flakey Tests🤖 says: This CI run detected 2 tests that failed, but were tolerated due to a .test_patterns.yml entry. |
Contributor
Author
|
BTW tackled the new Noir compiler warnings in #20329 |
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 10, 2026
Having "dep::" in imports is now [throwing Noir compiler warnings](#20328 (comment)) so I am dropping the remaining occurrences
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.

In this PR I address AI audit findings @Rumata888 sent me. I needed to do changes only based on finding 1) (as described below) but I would need to do changes based on findings 3) and 4) as well if we were not already dropping the relevant functions in #20248. So overall I would say the AI review was quite valuable.
Summary of the AI audit findings
aztec-nr/aztec/src/authwit/auth.nr)set_reject_allhelper passes wrong args; cannot disable reject_allMy fixes
AuthRegistryas we can always add an expiry to the signed payload and check that it the contract we are authorizing actions for. That is ultimately a better design as it doesn't add cost to all the pub authwits (if this was implemented directly in theAuthRegistrywe would add AVM opcodes to all the flows as we would need to pack "boolean" and "expiry" into 1 storage slot).