Repository navigation
feat(review): reflection pass drops or lowers recurring false positives and tolerates invented severities - #739
Merged
Merged
Conversation
ajianaz
force-pushed
the
feat/review-reflection
branch
3 times, most recently
from
November 16, 2026 03:48
cefa5fc to
6b47d9b
Compare
…es and tolerates invented severities (#723) Admission now runs a deterministic reflection pass over each finding before it is stored: a security or correctness claim about a documentation file and any finding in a lockfile are dropped, and unwrap/panic/println flagged in a test file is lowered one severity level. Anything that does not clearly match is kept as reported, and the pass adds no tokens. A severity word the model invented (for example "performance") no longer makes the strict parse fail and lose the surrounding findings: common synonyms map to their level and an unknown word becomes minor with a warning.
ajianaz
force-pushed
the
feat/review-reflection
branch
from
November 16, 2026 07:28
6b47d9b to
2e2da98
Compare
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.
What
judge::admit, before findings are stored: a security or correctness claim about a documentation file (unless it is about a leaked credential) and any finding in a lockfile are dropped, andunwrap,panicorprintlnflagged in a test file is lowered one severity level. Anything that does not clearly match stays as reported..txtfiles that are named like documents (README, CHANGELOG, LICENSE, ...) or sit in a docs directory. Build and dependency manifests such asCMakeLists.txtandrequirements.txtare not prose, so a real finding there is kept."performance") no longer makes the strict parse fail and lose the surrounding findings: common synonyms (high,warning,suggestion) map to their level and an unknown word becomesminorwith a warning.Why
Recurring false-positive classes (CORS wildcard in markdown docs, test-only
unwrap) and batches silently skipped over an invalid severity. The pass is deterministic, so it adds no tokens. An LLM-backed second check is not part of this change. Closes #723.Testing
.txtmanifests versus.txtdocuments, and the cases that must be kept), for admission dropping a docs finding, for severity synonyms, and for a batch with a made-up severity that keeps all findings. The new tests are registered (cargo test -- --list).cargo fmt --all -- --check,cargo clippy --all-targets --features tree-sitter -- -D warnings,cargo test --features tree-sitter,cora review --base origin/develop: no issues.