Repository navigation
Conversation
The reviewer diff now treats every file as text and ignores attributes and diff drivers the PR could set, so a PR-added -diff/binary attribute or a NUL byte no longer reduces a changed text file to "Binary files differ". A file block that is not UTF-8 is replaced by its path and size. Chunked review summarizes a file as deleted only when git's header says so, not when its added lines contain the header text. Closes #1101 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
loopzero primary review by codex on fda19707e348d3360d240df67201223b8e53d7ef, 50.7s: request_changes (2 critical, 3 important, 0 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: ae08a9950534ecb1e7aee1f81021a54396c17cd456a8e3ec2ff0a9940303f50c
diff_since now reads Git's output as bytes, so a bare carriage return cannot fake a file boundary, keeps it untrimmed, and decides whether to show a file from its HEAD (or deleted base) blob rather than the patch. Notices and deletion summaries keep Git's own header line, and only a whole "deleted file mode" header line marks a deletion. Refs #1101 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
loopzero delta review by codex on a2830cd5b5feffeba68b65232b77cf7a7fdf541b, 22.5s: request_changes (0 critical, 4 important, 0 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: a7428b3376640a1d3e1013b030e19fe9379524b6f867fa62048e72455094939b
The reviewer diff now carries full object IDs, so classification cannot resolve an abbreviated ID as a ref name. The single cat-file batch reads each object once, consumes every payload (submodule commits included) and validates UTF-8 in bounded chunks instead of buffering whole files. Refs #1101 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-diff-integrity # Conflicts: # tests/test_cli.py
|
Superseded by #1366. This PR's repair commits after its second (delta) review need review coverage, and the contract puts a head that needs another review in a new PR. #1366 carries the same change plus those repairs, merged with current main. The findings and their dispositions stay recorded in this PR's threads. |
Keep PR content from hiding changed code from the reviewer
Context and goal
.gitattributesand git's "contains a NUL byte" binary guess, so a changed text file could arrive only as "Binary files … differ". When a large diff was reviewed in chunks, a modified file whose added lines contained the text git uses for deleted files was replaced by ": deleted, N lines". In both cases an approval could cover code the model never saw.diff_sincebuilds the review material withgit diffin the task worktree.split_diffcuts diffs that exceed the reviewer's size budget into chunks and shortens deleted files to a one-line summary.Closes #1101
Acceptance
.gitattributesmarking changed text files-difforbinarystill gives the reviewer those files' hunks.split_diff, a modified file whose added lines include the deletion header text keeps its hunks; only files git's header reports as deleted are summarized.tests/test_worktree.pycover all three cases with a real temporary git repository.Notes
.gitattributesand file bytes are untrusted. Invariant: every changed path appears in the material, with its changed lines when the content is UTF-8 text. Chosen approach:git diff --text --no-ext-diff --no-textconv(verified locally:--textoverrides-diff/binaryattributes and NUL detection), read losslessly as Latin-1 and decoded strictly per file block; deletion judged only from the header before the first hunk. Attributes are not taken from the base because a delta's base is itself a PR head.tests/test_worktree.pyfail on pre-fix source and pass after.deleted file modeheader line. Regression tests fail at the reviewed head.--full-index), so an abbreviated ID cannot resolve as a ref name; the batch reader consumes every payload, so a submodule commit cannot shift later results (test fails at the delta-reviewed head); object IDs are deduplicated and blobs are validated in 64 KiB chunks instead of buffered whole. Not taken: notices for rename-only or mode-only changes, which change no content and are fully shown by Git's rename/mode lines. This was the last review round under the budget.split_diffalready bounds oversized material.Base
main @ fa78ebb
Base: fa78ebb
Validation
Recorded for
a2830cd5b5fe(not current head)uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review