You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pr-verify: split a file larger than one chunk into pieces instead of leaving the head with no verdict #18178
pr-verify gives no verdict when one file's diff is larger than a chunk. .github/scripts/pr-verify/chunk-diff.sh:16-18 states it: "A file over MAX_DIFF_BYTES ... prints an error naming it and exits 1 with no chunk written: the head gets no verdict". The cut is made by .github/scripts/pr-review-main/split-diff.py, which keeps every file whole and exits 3 with "a file is larger than one chunk of bytes" (split-diff.py:59).
The org review lane already handles this case: ci-workflows' generate-review-chunks/split.sh cuts one large file into pieces, and claude-review judged the same file as "piece 1 of 2" and "piece 2 of 2". A stop on size alone is a pipeline defect under the owner's stop list.
Fix
split-diff.py cuts a file larger than one chunk at hunk boundaries into pieces of at most MAX_DIFF_BYTES each, each piece repeating the file's diff header and labeled "piece k of n" in the manifest, the way generate-review-chunks/split.sh does. A single hunk larger than a chunk is cut at line boundaries. MAX_CHUNKS stays the cost guard: a diff that still needs more chunks keeps today's exit.
pr-review-main reads the same splitter, so it gets the fix too.
Done when
A PR whose single file diff is larger than MAX_DIFF_BYTES (and within MAX_CHUNKS chunks) gets a pr-verify verdict.
split-diff.py tests cover a file split into pieces, a single over-size hunk, and the MAX_CHUNKS exit still holding.
chunk-diff.sh's header comment no longer says an over-size file gets no verdict.
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: split-diff.py, its tests and the chunk-diff.sh header comment; read by pr-verify and pr-review-main, so every PR's verification and review chunking.
Reversible: yes; revert the splitter change.
Open questions: none
Understood: pr-verify and pr-review-main give no verdict when a single file's diff exceeds one chunk (seen on PR #18165). The fix is to split such a file at hunk boundaries (line boundaries for an oversize hunk) into labeled pieces, with MAX_CHUNKS still as the cost guard. The issue states the design and a checkable done-when. No duplicate among open issues and no merged PR that already fixes it. #18166 is related (review lanes and no-patch files) but asks for a different thing.
The work-resolve-issue lane stopped on this issue (patch-protected-path): the change needs a path the issue lane may not push, which a maintainer session builds by hand.
It added host-run and set Work status to confirmed: an agent run on a host builds it, and it waits on no decision from a person.
In the run's words:
The run stopped early (patch-protected-path): its change needs a path the issue lane may not push, which a person changes instead. In the run's words: patch-protected-path: .github/workflows/pr-review-main.yml. The fix cuts an over-size file into pieces in .github/scripts/pr-review-main/split-diff.py, and the issue says pr-review-main reads the same splitter, so it changes too. pr-review-main.yml then has to change in its three legs: the chunk note given to the review model (line 1217, and the matching lines 2173 and 3107) tells the reviewer the diff is 'split into $CHUNKS chunks at file boundaries, each file whole'. With pieces, that line would be false, and a reviewer reading one piece could take it as the whole file. The step comments (lines 15, 966-972 and the copies in the other legs) and the too-large stop message (lines 1027, 1982, 2910: 'a file over $MAX_DIFF_BYTES bytes') would also be stale. This lane cannot push a change under /.github/workflows/**. Making piece splitting opt-in for pr-verify only would work around the block and go against the issue's fix, so this run did not do that.
What the run says it did not do:
The issue's three done-when items: the pr-verify verdict for a single over-size file, the split-diff.py piece tests, and the chunk-diff.sh header comment. None was started because the change needs .github/workflows/pr-review-main.yml, a path this lane cannot push.
check-affected's size-check could not run here (exit 127: audit-size.sh missing in the lane checks tree). No files changed, so there was nothing for it to measure.
Activity
github-actions commentedon Nov 22, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: split-diff.py, its tests and the chunk-diff.sh header comment; read by pr-verify and pr-review-main, so every PR's verification and review chunking.
Reversible: yes; revert the splitter change.
Open questions: none
Understood: pr-verify and pr-review-main give no verdict when a single file's diff exceeds one chunk (seen on PR #18165). The fix is to split such a file at hunk boundaries (line boundaries for an oversize hunk) into labeled pieces, with MAX_CHUNKS still as the cost guard. The issue states the design and a checkable done-when. No duplicate among open issues and no merged PR that already fixes it. #18166 is related (review lanes and no-patch files) but asks for a different thing.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 22, 2026
{"v":1,"actor_id":337595936,"title_sha256":"5873e9f04a1c94e4ace6b6fa9ad24a47e3b236d6802dff48fe263b7297b536ec","body_sha256":"a60763993a379030a61a48705c2905c300e8928bd900145af768e8530f112f56"}
github-actions commentedon Nov 22, 2026
melodic-automation-lanes commentedon Nov 22, 2026
The work-resolve-issue lane stopped on this issue (
patch-protected-path): the change needs a path the issue lane may not push, which a maintainer session builds by hand.It added
host-runand set Work status to confirmed: an agent run on a host builds it, and it waits on no decision from a person.In the run's words:
What the run says it did not do:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45044726242
To hand it back to the lane, remove
host-runand set Work status to agent-ready again.