Repository navigation
fix(review): report chunked findings when chunks return empty summaries - #562
Merged
Merged
Conversation
Chunked review merged a contradictory report when chunks returned issues with an empty summary field: the header counted the issues but the fallback summary printed 'No issues found across all chunks.' (live: gaira PR #108 run #1388 verdict comment). The fallback keyed only off summaries/any_error and never consulted the collected issues. Extract the decision into merged_chunk_summary() with an explicit issue-count branch (issue_count > 0 and any_error now compose into one honest message), unit-test all five outcomes. Gating is unchanged: exit code still derives from should_block. Fixes #556
ajianaz
added a commit
that referenced
this pull request
Oct 8, 2026
) Covers security hardening (#563, #572, #573), fixes (#553, #561, #562, #564, #565, #574-#576), and the ignore-pattern semantic changes from #577 that can alter which files existing configs exclude. Signed-off-by: ajianaz <ajianaz@users.noreply.github.com> Co-authored-by: ajianaz <ajianaz@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
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
Chunked review mode can emit a contradictory report — header
Found 1 issue ... ⚠ BLOCKEDwith footerNo issues found across all chunks.— when chunks return issues with an emptysummaryfield. Extract the merged-summary decision intomerged_chunk_summary()with an explicit issue-count branch, and unit-test all five outcomes. Replacement for #559 (auto-closed when its temporary base branch was deleted post-merge of #561; same single commit, rebased onto current develop).Why
The old fallback keyed only off
summaries/any_errorand never consulted the collected issues (live: gaira PR #108 run #1388 verdict comment, 2026-10-04). Human readers use the verdict text to judge merges, so it must not contradict the issue count. Gating is unchanged: exit code still derives fromshould_block. Details in #556.Testing
cargo test --bin cora commands::review→ 13 passed, 0 failed (5 new tests, incl. the live regression case)cargo fmt --all -- --check→ cleancargo clippy --all-targets -- -D warnings→ clean (same content green 14/14 as fix(review): report chunked findings when chunks return empty summaries #559; base now carries the chore(deps): pin rustls 0.23.45 (RUSTSEC-2026-0285) + drop deprecated f32 import #561 unblock: rustls 0.23.45 + f32 import fix)