Skip to content

feat(review): reflection pass drops or lowers recurring false positives and tolerates invented severities - #739

Merged
ajianaz merged 1 commit into
developfrom
feat/review-reflection
Nov 16, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/review-reflection

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • A deterministic reflection pass runs inside 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, and unwrap, panic or println flagged in a test file is lowered one severity level. Anything that does not clearly match stays as reported.
  • Prose means markdown, reStructuredText, AsciiDoc, TeX and Org files, plus .txt files that are named like documents (README, CHANGELOG, LICENSE, ...) or sit in a docs directory. Build and dependency manifests such as CMakeLists.txt and requirements.txt are not prose, so a real finding there is kept.
  • A severity word the model invented (for example "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 becomes minor with 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

  • Unit tests for each reflection rule (docs, lockfiles, test files, leaked credentials in docs, .txt manifests versus .txt documents, 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.

@ajianaz
ajianaz force-pushed the feat/review-reflection branch 3 times, most recently from cefa5fc to 6b47d9b Compare November 16, 2026 03:48
…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
ajianaz force-pushed the feat/review-reflection branch from 6b47d9b to 2e2da98 Compare November 16, 2026 07:28
@ajianaz
ajianaz merged commit 3db369c into develop Nov 16, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(review): reflection pass — filter false positives & normalize severity before persisting

1 participant