Repository navigation
fix(review): reviews read the code under review - #526
Merged
Merged
Conversation
A PR review took its pages from the PR's diff but verified findings, ran the scanners and extracted dependencies against the local checkout. It now fetches the changed files and the conventions files at the PR head into a temporary directory and reviews against that. Persona review gave each file every page containing its name as a substring; pages now map to the files their headers name. Content sniffing classified Python files opening with a comment and YAML opening with --- as documentation; known names and extensions decide first, build files are configuration, and templates are code. Lockfiles, left out of the persona review for their size, now reach Trivy, and findings in them attach to the manifest beside them. Closes #515
This was referenced Sep 24, 2026
Merged
12 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.
Summary
Closes #515 (part 3 of 3). Part of the #509 audit.
Reviews were reading code other than the code under review.
--repoa.pygotdata.py's pages# Copyright, or YAML opening with---, as documentation, whose prompt excuses described vulnerabilities;requirements.txt,CMakeLists.txtand HTML went the same wayPage splits without overlap move to #499, alongside line numbers.
Live check
_prepare_pr_contentfor PR #525 wrote its 21 changed files at head836a5814, includingAGENTS.md,CLAUDE.mdand.devops/review.mdat that commit, and loaded conventions from them. Trivy isn't installed in this devcontainer (#516), so the lockfile path is covered by tests.Test plan
tests/test_review_scope.py:prcommand reviews against the head directory;tests/test_review_classification.py: known names decide before content, across ten file kinds; HTML is now code.uv run devops ci --force: all gates pass.