[NoQA] AI Reviewer: Add reality check instruction to code reviewer agent#83184
Merged
blimpich merged 1 commit intoExpensify:mainfrom Feb 23, 2026
Merged
Conversation
Instruction tells the reviewer to re-read the code before posting each inline comment and confirm the violation is real. If the code is actually correct, the comment is silently skipped instead of posted. Addresses ~23% of reviewed PRs receiving self-contradicting comments where the reviewer flags a violation then concludes it's not a problem.
Contributor
Author
|
CC @Julesssss |
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
blimpich
approved these changes
Feb 23, 2026
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Contributor
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.3.25-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.3.25-13 🚀
|
50 tasks
51 tasks
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
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.
Explanation of Change
Adds instruction #13 to the AI code reviewer agent (
code-inline-reviewer.md) requiring it to re-read the specific code one more time before posting each inline comment and confirm the violation is real. If upon re-reading the code is actually correct, the comment is silently skipped instead of posted.This addresses ~23% of reviewed PRs receiving self-contradicting comments where the reviewer flags a violation then concludes it's not actually a problem.
Companion PRs:
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/601078
Tests
N/A — This is a prompt-only change to the AI reviewer agent configuration. No application code, UI, or runtime behavior is affected.
Offline tests
N/A — No runtime behavior change.
QA Steps
// No QA needed — this only modifies the AI reviewer agent prompt.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
N/A — no UI changes, prompt-only modification.