Repository navigation
Build round 2 and later on the last code review - #9
Conversation
…at changed, a progress line and --full
catalan-adobe
left a comment
There was a problem hiding this comment.
Approach
What it does: Later rounds re-check earlier findings by ID and review what changed since the last code review. The progress summary and loop check use the same open-finding counts.
Fit with the repo: The module split fits: lib/delta.sh selects the Git comparison, lib/records.jq owns finding IDs and counts, and lib/loop.jq needs no change. One contract is missing. The base plan, docs/superpowers/plans/2026-11-26-review-tracking-pr2-incremental-rounds.md, calls for a full review when the previous record is unusable. A size-capped marker can retain the SHA and blocking count but omit the findings. gh-pr-review treats that like an empty list: it can restrict review to the delta even though known blockers were never re-checked.
Strongest case for the approach as built: A complete record gives the reviewer both a baseline and a checklist without a second tracking system. The posted round on adobe/skills#823 accounted for all eight prior findings and reported “open blocking: 3 (was 7).”
Alternatives: Keep this design, but distinguish a missing findings list from a present, empty one before selecting incremental mode. A full review costs more on a truncated round; as-is, the cheaper round can report progress that the record cannot support.
Questions for the author: Can a counts-only marker be paired with its complete findings before the prompt is built? Either that guarantee or the full-review fallback would resolve my concern.
Missing context: None material to this decision.
Approach: Questionable
Strengths
lib/delta.sh:31–41— Comparing the current head with the previous head merged onto the new base correctly excludes upstream-only changes.tests/delta.sh:118–125checks the actual file list, not just the selected mode.lib/records.jq:119–143— Omitted open findings retain their IDs, stay blocking, and are marked unverified. The progress summary and loop check can use the same counts.- All nine test scripts passed locally. The issues below concern cases the suite does not distinguish.
Issues
🚨 Critical (Must Fix Before Merge)
gh-pr-review:472–487— A counts-only marker can turn unresolved blockers into an automatic approval.lib/records.jq:240deliberately dropsfindingswhen the marker is too large;tests/records.sh:243–246confirms that the blocking count survives. On the next run,.findings[]?yields zero entries, but the retained head still selects incremental mode. An untouched Important blocker is then outside the review scope, and an empty reply can produceopen blocking: 0 (was 3)and an approval without re-checking it. Recover the complete record or selectfullwith an explicit reason. Distinguish a missing list from a verified empty one before building either prompt.
⚠️ Important (Should Fix)
-
lib/delta.sh:69–71— The conflict fallback can omit the author’s conflict resolution. In a local Git test where the merge commit introduced a new resolution, the selectedrange-diffshowed only the original feature commit marked=. Ordinaryrange-diffskips merge commits; the owner can therefore carry its verdict without seeing the change. Include a merge-resolution diff or fall back tofull. Extendtests/delta.sh:147–149to assert that the resolution text is visible, not just that the command starts withgit range-diff. -
lib/delta.sh:122–136— Marker values reach Git without being validated as commit IDs. The previous head and base come from review-body JSON. A symbolic revision can resolve against the current checkout, and an unresolved value is passed togit fetch, where Git can interpret it as an option or refspec rather than an object ID. Validate full hexadecimal object IDs before either operation; use GitHub’s review commit metadata to check the claimed head where available. -
gh-pr-review:504–518— Fixing the last open finding disables regression tracking for the next round. If round 2 fixesF1and nothing remains open, neither context file is written. If round 3 reintroduces the problem, the reviewer has no regression checklist and can report it under a new ID. Emit context when there are open or recently fixed findings. Atgh-pr-review:1005–1007, distinguish mandatory open IDs from fixed IDs that should appear only if they regress. -
gh-pr-review:1094–1099— The Markdown fallback double-counts earlier findings. With a missing or invalid JSON block, parsing a later-round bullet such asF1 · [file:line]loses its ID._trackallocates a new ID and also carriesF1as unverified, counting one blocker twice. Folded Fixed and Later bullets can also be parsed under the preceding Minor heading. Make the fallback recognize the later-round format and exclude folded sections from the open list. -
lib/records.jq:99–112— Invalid model output can remove a blocker from the approval calculation. A known ID markeddeclinedis accepted without a quote, and a new Critical finding markedlater: truegoes to the nonblocking list, even in--fullmode. The latter producesopen_blocking: 0andready_overridden: false. Require discussion evidence for a decline, and allow Later only for eligible non-Critical findings outside the delta; otherwise keep the finding open. -
gh-pr-review:457–460— The CLI exits before shallow-history recovery can run. When the PR/base merge-base is just beyond depth 50, the script exits before callingpick_delta. The shallow test bypasses this exact condition by supplying the known base attests/delta.sh:242–245. Deepen the PR and base histories once and retry the initial merge-base lookup before refusing the review. -
lib/delta.sh:154–158andgh-pr-review:487— An unreliable file list is treated as proof that files were untouched. I reproduced a rebase that changed a binary fixture: stripping theindexline made the old and new binary diff summaries identical, sochanged_filesreturned nothing. The caller also silently substitutes an empty file if enumeration fails. Compare binary changes using blob information or binary patches, propagate enumeration errors, and selectfullrather than applying the Critical-only rule to an unknown scope. -
gh-pr-review:1117–1126— Record construction can fail without triggering its warning. Becausewrite_round_recordis called underif !, Bash does not stop on intermediate failures. Ifbuild_recordor the finaljqfails, the trailingrm -fcan still return success, leaving an empty record and no functioning approval guard. Check each required step explicitly, validate the finished record before publishing it, and default to a comment if the blocking count cannot be established. -
lib/records.jq:90–95— Existing histories can still reuse finding IDs after upgrade. Older markers have nolast_ids. If round 1 usedF1and the last pre-upgrade review had an empty findings array, the next new finding is assignedF1again. Seed the counters from the maximum IDs in the available history when the previous record has nolast_ids; keep using only the last code review for status tracking.
💡 Minor (Nice to Have)
README.md:196–199— The loop-check section still says a warning posts the old**Loop:**line, contradicting the new progress-line example. Show the progress line and**Next:**suggestion instead.
Recommendations
Add end-to-end fixtures that carry the serialized GitHub marker into the next run, especially for a capped marker and a round with only fixed findings. For Git comparisons, assert what content the reviewer actually receives. A successful command and a plausible mode name are not enough to establish that the review covered the change.
Assessment
Ready to merge? No
Reasoning: The normal incremental path works, but incomplete records can produce an approval without re-checking known blockers, and the conflict fallback can hide the change the reviewer most needs to see. Both need conservative fallbacks before the recorded progress can be trusted.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
… the finding and the round
…dings block is missing
Integration on top of the conflict resolutions: - New finding IDs start after both the history's ID floor (#8) and the last code review's numbers (#9's statuses). - write_round_record keeps #9's baseline and this round's loop label, with #8's step checks and record validation. - The body is assembled again when a round is renumbered before posting, so the progress line names the new round. - round_body finds generated reviews with the same first-line test as fetch_round_records. - findings_block_ok lets an entry with an earlier ID give only its status; the rest comes from the last record.
|
Thanks for the review. All items are addressed in the commits pushed since; each fix has a test. This branch also merges the fixes of #8's review. Critical: a record without its findings list. A last code review whose findings list is missing, or was cut from the marker ( Important
Minor: the README's loop-check section now shows the progress line with Recommendation: the end-to-end test from #8 now carries a posted body through the REST stub into the next command. The capped-marker and fixed-only rounds have their own flow tests. |
catalan-adobe
left a comment
There was a problem hiding this comment.
Approach
What it does: Later rounds re-check earlier findings by ID, review what changed since the last code review, and report how many blockers remain.
Fit with the repo: The module split matches docs/superpowers/plans/2026-11-26-review-tracking-pr2-incremental-rounds.md: lib/delta.sh selects the Git comparison, lib/records.jq owns IDs and counts, and lib/loop.jq needs no change. One inherited policy no longer fits. tests/flow.sh explicitly allows a review based on round 1 to post as round 3 after another reviewer posts round 2. Renumbering prevents ID collisions, but a blocker first raised in round 2 can disappear from round 3’s open count without being checked. The plan promises: “Nothing disappears silently.”
Strongest case for the approach as built: One round record serves both the reviewer and the loop check. The reported run on adobe/skills#823 accounted for all eight prior findings. The earlier concern about a size-capped marker is also resolved: a missing findings list now triggers a full review.
Alternatives: Keep the design, but use the existing exit-6 path in interactive runs too when an intervening code review changes the baseline. That costs a rerun. Posting as-is saves the model call but makes the latest record incomplete.
Questions for the author: Is there a reason to keep “Post anyway” for incremental reviews? I’d support it if blockers introduced by the intervening round remained open as unverified.
Missing context: None material.
Approach: Questionable
Strengths
lib/delta.sh:40–55— Comparing against the synthetic merge tree excludes upstream-only changes. The conflict test attests/delta.sh:147–155checks that the reviewer can actually see the author’s resolution, not merely that the script selectedfull.lib/records.jq:183–189— An omitted open finding normally keeps its ID and remains unverified. That gives the progress line and approval decision a common source of truth rather than relying on the model’s prose.- All nine test scripts passed locally under Bash 5.3. The findings below concern cases the passing suite does not distinguish.
Issues
🚨 Critical (Must Fix Before Merge)
-
gh-pr-review:512–513,gh-pr-review:1330— A push during the review can mark an unreviewed commit as reviewed. The model reviews checkout A, but the post does not specify A as the review commit. If the author pushes B before submission, GitHub can attach the review—including an approval—to B. On readback,lib/rounds.sh:34–36replaces the marker’s A with GitHub’s B.--checkcan then report nothing new, and a later incremental round starts at B, skipping A→B entirely.- Fix: Submit the review with
commit_idexplicitly set toHEAD_SHA. Add a flow test that advances the remote head during the model call and verifies B still needs review.
- Fix: Submit the review with
-
lib/records.jq:292–297,gh-pr-review:1322–1325— Losing the entire marker can still erase an open blocker. The earlier fix correctly handles a present marker with no findings list. It does not handle a later-round body that leaves no room for a marker at all. I round-tripped a 59,776-character body whose record carried one omitted Important finding: the originalopen_blockingwas 1, backfill reconstructed 0, andhas_findings_listreturned true. The Markdown mentions the unverified count but has no issue bullet for backfill to recover. The next incremental round can approve without rechecking it.- Fix: Distinguish markerless incremental reviews from historical standalone reviews. Preserve a minimal “baseline unavailable” marker, or recognize the later-round body on readback and force a full review rather than treating its reconstructed empty array as verified.
⚠️ Important (Should Fix)
-
gh-pr-review:1295–1303— Renumbering after an overlapping review loses intervening blockers. This path refreshesRECORDSandID_FLOOR, butwrite_round_recordstill uses the originalFINDINGS_BASE. If round 2 introduced an ImportantF5, the pending review can post as round 3 with a newF6, noF5, and an approval.tests/flow.sh:442–445explicitly expects the approval and the round-1 baseline.- Fix: Take the existing exit-6 path when the last code review changed, including in a terminal. If posting anyway is retained, reconcile intervening findings as unverified and recompute the decision before posting.
-
lib/records.jq:104–106,lib/records.jq:172— An invented ID can make a visible finding disappear. The block validator treats any string ID as known and permits missing severity. I checked{"id":"F999","status":"open","title":"Nil dereference"}against an empty baseline: validation succeeded, then_trackdropped the entry. Even if the Markdown lists it under Critical, the fallback never runs and the record reports zero blockers.- Fix: Allow status-only entries only for IDs actually present in the selected baseline. An unknown ID must meet the new-finding requirements or trigger Markdown fallback.
-
lib/records.jq:162–169— An invalid decline can still remove a blocker from the count. The new reason check keeps the status open, but the same rejected entry can lower the severity. For a previously CriticalF1, I tested{"id":"F1","status":"declined","severity":"minor"}with no reason. The result wasopen,unverified: true,open_blocking: 0, andready_overridden: false.- Fix: When a status update is rejected as unverified, retain the previous severity rather than accepting a downgrade from that entry.
-
lib/records.jq:134–135,lib/records.jq:173–176— Later eligibility is not checked against the actual changed files. Missing or malformedin_deltabecomesfalse. An Important finding markedlater:truecan therefore become nonblocking even when its file is explicitly indelta-files.txt. The new Critical/full-mode guards work, but they do not protect this changed-file case.- Fix: Check Later candidates against the computed file list. A touched or unidentified path should stay in the findings list unless the script can establish that it is outside the delta.
-
lib/delta.sh:43–60— Retargeting a stacked PR can exclude newly in-scope files. I tested a child PR originally targeting its parent branch, then retargeted it tomainand added a child commit. The selector returnedincrementalwith onlychild.txt; the new PR also containedparent.txt, which was outside the previous review. An Important issue there is now assigned to Later as though the file had already been reviewed.- Fix: Compare the previous and current merge bases before choosing the plain head-to-head diff. If the base moved backward or sideways and expanded the PR, use a full review.
-
lib/delta.sh:188–195— Rebase normalization can hide a change moved to the wrong location. The binary-file fix does not cover repeated text. In a real Git rebase test, I moved an edit from the first of two identical indented blocks to the second. The hunk moved from line 1 to line 9, but stripping the hunk coordinates made the patches identical andchanged_filesreturned an empty list.- Fix: At minimum, when the file’s base blob is unchanged, compare the old and new head blobs directly. When a moved hunk cannot be confidently attributed to upstream movement, include the file rather than excluding it.
💡 Minor (Nice to Have)
tests/delta.sh:308—${prev_head^^}is unsupported by macOS’s system Bash 3.2. Running/bin/bash tests/delta.shprintedbad substitutionbut returned success, skipping the invalid-SHA loop. Usetrto construct the uppercase fixture so those checks actually run.
Recommendations
Extend the producer-to-consumer tests through one more code-review round, not just rounds or --check. Assert that the next reviewer receives the correct commit range and enough information to identify each carried blocker. In particular, a marker that does fit can still strip an omitted finding’s file and title because neither appears in the current body (lib/records.jq:316–322); recover those public details from an earlier round by ID when building the checklist.
Assessment
Ready to merge? No
Reasoning: The normal incremental path works, but a concurrent push or a markerless round can establish a false baseline that later reviews trust. Those paths need to preserve the reviewed commit and unresolved blockers before the progress line can safely drive approvals.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
…stops before its end
…est three rounds read back from GitHub
…3.2 closes a process substitution
Integration on top of the conflict resolutions: - The findings block is accepted when it is valid against the last code review's IDs and covers every blocker the Markdown shows; status-only entries take their severity from the last review for that check (with_base_severity). - The overlap path is #8's: no renumbering, nothing posted when another round landed (exit 6). - The flow tests' git stub takes its head from the same heads file as the pr view stub, so the reviewed commit and the PR head agree unless a test moves the head on purpose. - The markerless later-round test uses a body that leaves no room even for #8's minimal marker, and the review's 59,776-character case now checks that minimal marker.
|
Thanks for the second round. All items are addressed in the commits pushed since; each fix has a test. This branch merges #8's second-round fixes too. Approach (posting over an intervening round): agreed. "Post anyway as round N?" is gone: when another round landed while this one ran, nothing is posted, in a terminal too (exit 6). The rerun builds on the new round, so its blockers are checked. Critical
Important
Minor: the uppercase fixture uses Recommendation: a flow test runs three posted rounds, each read back through the REST stub. It checks the commit range of round 3, and that a carried finding whose file and title the last marker omitted gets them back from earlier rounds by ID in |
|
Merged #8's round-3 fixes in ( |
#8's stored_status/stored_findings made one function decide the status a findings-block entry is stored with, for the builder and the block checks. Here the builder is _track, so its per-entry decision moves into entry_outcome($known; $later_files), used by _track and by stored_findings($base; $later_files). write_round_record judges the block with stored_findings before block_covers_markdown and block_respects_empty: a declined entry without a reason or an unhonoured Later is open, one stored fixed, declined or Later is not. Carried findings take no part. with_base_severity is gone (entry_outcome takes the base severity), and the block checks and _findings_counts read a stored list as it is. parse_findings keeps #9's IDs and <details> sections and counts #8's plain bullets. A minimal marker on a later round keeps the backfill counts from its progress line instead of recounting the Markdown, which leaves out carried findings.
round_body picked the n-th generated review from the discussion without the trusted-reviewer filter the rounds use, so an outsider's review posted before the previous round shifted it out of place.
|
Merged #8's round-5 fixes in (
All 776 checks pass on macOS (bash 5 and 3.2) and Ubuntu 24.04. |
#8 splits writing a record from the model's block from reading a posted one. Here the write side stays entry_outcome and stored_findings($base; $later_files); block_covers_markdown and block_respects_empty take ($base; $later_files) and judge the block as stored_findings stores it, built on #8's shared _open, _covers_markdown and _respects_empty. findings_block_ok keeps #9's $ids. The read side is #8's record_findings, record_counts, record_covers_markdown and record_respects_empty. Only with_counts uses them. _findings_counts and _stored_open are gone. For #9's later rounds: record_findings keeps the unverified flag, and record_respects_empty skips unverified findings. The Markdown leaves carried findings out, so its "none found" says nothing about them, yet they still count. with_counts takes the progress line's open blocking count (progress_blocking, shared with backfill_record) as a visible blocker count. The critical + important sum, and a kept list's open blockers, must reach it, and the Markdown fallback uses it. markdown_counts now counts the parsed statuses (_counts): an ID shown in the Fixed section is fixed or declined, not new. So round 5's damaged-marker case with F28 set to fixed reads 5 fixed, as its progress line says, not 0. A minimal marker keeps its backfill counts on a later round (#9) and its null counts on a Rethink (#8).
|
Merged #8's round-6 fixes in (
New tests cover a round-2 marker with fixed, declined, carried and new findings plus a Later item, with its counts, list or |
#10 reads a posted round in one way: a complete marker (numeric open_blocking, critical, important and minor, open_blocking = critical + important; or a Rethink) as it is, and any other marker from the Markdown after the code-review boundary line, with findings_dropped and #10's ID floor. Its decisions win where the two branches overlap. Reading: #10's complete_marker path replaces #9's minimal-marker and with_counts recovery. Gone with #10's deletions: with_counts, markdown_counts, _drop_findings, record_findings, record_counts, record_covers_markdown, record_respects_empty and _counts, with #9's additions to them (the progress-line clauses, the unverified filter, the status-aware markdown_counts). #9's later-round rule stays in backfill_record: a later round's open blocking count is its progress line's (progress_blocking), read on the whole body since the progress line comes before the boundary. Findings and sections come from code_review_part. The L floor is #10's (marker and backfill); backfill now reserves one L ID per item of a later round's folded Later list, so a marker without last_ids keeps its Later IDs as #10 keeps F IDs. Writing: #9's entry_outcome, stored_findings($base; $later_files) and block checks, fed from review-body.md, with #10's no_sections (null counts in build_record), known_blockers (fail-closed automatic approve, kept after #9's ready_overridden check) and posted_record (rebuilt after the final downgrade). progress_line now prints "open blocking: unknown" for null counts, so a parsed later round with no severity section never reads back as 0. Parser: #10's _lines (Issues scope, <details> folds with fence tracking, indented headings, * and + items). _lines also tags a fold's own lines with its kind (f: fixed/later/other, same Issues rule), and parse_findings reads the Fixed fold from those lines: IDs as fixed, or declined with the quoted reason. "**F1 · …" items keep their ID as open; the Later fold stays out. A heading inside an unclosed <details> no longer ends the fold (#10's rule). Posted body: #10's assemble_review <head> <approach> <code review> with the boundary; assemble_body passes the progress lines (+ **Next:**) or the loop line as the head. The moved-head note still goes right after REVIEW_HEAD, marker_line sizes the exact body, and round_body keeps the trust filter and drops every '<!-- gh-pr-review' line, the boundary included. Tests: #9 tests of removed functions dropped or moved to #10's rule (later-round marker shapes: full as written; every partial shape reads the Markdown, 3 blockers via the progress line, findings dropped, F5/L1 floor kept). New: a producer-to-reader flow for a later round (fixed, declined, carried, new and Later) read back with the full and both minimal markers, and progress_line with unknown counts. Not fixed here: issue #11.
|
Merged
New tests: a round 2 with fixed, declined, carried, open, new and Later items, posted with the boundary and read back with the full and minimal markers. 900 checks pass on macOS (bash 5 and 3.2) and Ubuntu 24.04. |
catalan-adobe
left a comment
There was a problem hiding this comment.
Round 3 · since round 2
5 fixed · 4 still open · 4 new (4 in the new commits) · open blocking: 8 (was 8) · loop: churning · full review (the base branch was merged in with conflicts)
Next: Split the PR: each part converges on its own
Approach
What it does: Later rounds re-check findings from the last code review by ID, review what changed, and report how many blockers remain.
Fit with the repo: The round-2 concern is resolved. When the pre-post check sees an intervening round, gh-pr-review posts nothing and exits 6 rather than offering “Post anyway.” tests/flow.sh covers both terminal and scripted runs. The rerun starts from the intervening review, so its blockers are checked rather than silently skipped.
Strongest case for the approach as built: The split matches the incremental-rounds plan in docs/superpowers/plans/: lib/delta.sh selects the Git comparison, lib/records.jq owns finding IDs and counts, and lib/loop.jq uses those counts unchanged. The reported run on adobe/skills#823 accounted for all eight earlier findings.
Alternatives: Keeping the stale review would save a model call, but would require reconciling findings the reviewer never saw. A rerun is the simpler policy.
Questions for the author: None.
Missing context: None material.
Approach: Sound
Strengths
lib/delta.sh:63–74excludes upstream-only changes when a base merge is clean and falls back to the whole PR when it conflicts.tests/delta.sh:147–155checks that the reviewer can actually see the conflict resolution.gh-pr-review:1415–1426now refuses to post when the final history read sees an intervening round, andgh-pr-review:1486pins the submission to the commit reviewed. These fix the two distinct posting races reported last round.- All 900 existing checks passed locally. The three-round test at
tests/flow.sh:1215–1250is especially useful: it verifies that a carried finding remains identifiable after its latest marker drops its title and path.
Issues
🚨 Critical (Must Fix Before Merge)
- F13 ·
gh-pr-review:1250–1261— A record-build failure can still erase blockers from the next review. The size-cap case is fixed, but whenwrite_round_recordfails, the posted body has neither a marker nor a progress line. If the reviewer omitted the earlier blockers and had no Fixed or Later fold,later_round_bodycannot distinguish this from a standalone review. I exercised this with two earlier blockers: the failed-record round correctly posted a comment, but the next round ran incrementally and approved with zero findings.- Emit a later-round indicator independently of record construction. On readback, treat that round as having an unknown count and no usable findings list.
⚠️ Important (Should Fix)
-
F17 ·
gh-pr-review:1196–1208— The changed-file check works, but Markdown fallback can undo it. I put one Important finding ford.jsin the Later fold and its JSON entry, withd.jsindelta-files.txt. The entry was correctly promoted to open, then rejected because the Markdown’s Important section said “none.” The parser ignored the Later fold, and the run posted APPROVE withsource: parsedand zero blockers.- Preserve the promoted blocker when it matches a visible Later bullet, or treat the contradiction as unknown and post a comment. Test the final event, not just
entry_outcome.
- Preserve the promoted blocker when it matches a visible Later bullet, or treat the contradiction as unknown and post a comment. Test the final event, not just
-
F18 ·
lib/delta.sh:42–58— Retarget detection still skips backfilled reviews, which have nobase_sha. I reran the stacked-PR fixture with the previous base absent: the whole PR containedchild.txtandparent.txt, but the selector returnedincrementalwith onlychild.txt. An Important issue in the newly in-scope parent code is then treated as already reviewed.- Recover the historical base when possible; otherwise use
fullwhen the previous review scope cannot be established.
- Recover the historical base when possible; otherwise use
-
F19 ·
lib/delta.sh:132–140— A moved edit is still hidden if upstream touched the same file. The direct blob comparison fixes the unchanged-base case. I added an unrelated line at EOF in the fixture’s base commit and moved the PR edit between two identical blocks. The hunk moved from line 5 to line 10, butchanged_filesreturned an empty list.- Compare against the old change applied to the new base, or conservatively include the file when the hunk movement cannot be attributed to upstream.
-
lib/records.jq:301— Any nonblank decline reason is accepted, even if nobody said it. With no such reasons in the discussion, I suppliedalready coveredandby designfor an Important and a Critical finding. The run recorded both as declined and approved. The missing-reason check works; it does not establish the required discussion evidence.- Require the quoted passage to match an identifiable discussion comment or review. If it cannot be matched, retain the finding as open and unverified.
-
gh-pr-review:512— Two submissions that both pass the final check before either lands can leave an incomplete baseline on readback. This is distinct from F14’s fixed “Post anyway” path. I supplied two records claiming round 2: the first introduced an ImportantF1, and the second had no blockers.reconcile_recordrenumbered the second round, but the next run selected it alone, received noprevious-findings.md, and approved. Two distinct Later items also retained the sameL1, becauselib/records.jq:423–428renumbers only new F findings.- When reading simultaneous submissions, carry intervening blockers as unverified or mark the later baseline unusable. Reconcile L IDs as well as F IDs.
-
lib/records.jq:570— Recovering only the blocking total can change the loop’s advice from Churning to Approve. I round-tripped a third round with two carried blockers, one Critical. Its minimal marker recoveredopen_blocking: 2from the progress line butcritical: 0from the empty visible section.lib/loop.jq:38consequently classified it as a Nit loop and suggested approval rather than flagging the unresolved Critical.- Preserve the Critical count alongside the total, or treat the severity breakdown as unknown and withhold the Nit-loop recommendation when visible findings do not account for the total.
-
gh-pr-review:1371— A failed override lookup is treated as “not overridden.” I made only thatjqinvocation fail: the posted event was APPROVE even though the record saidopen_blocking: 1andready_overridden: true. The final check atgh-pr-review:1458accepts any numeric count, including 1.- Make automatic approval require a successful positive check that
.counts.open_blocking == 0on the final record. A nonzero count, an unknown count, and a read failure should all produce a comment.
- Make automatic approval require a successful positive check that
💡 Minor (Nice to Have)
(none found)
Fixed since the last round (5)
- F12 — The POST specifies the reviewed
commit_id; a detected push downgrades approval, and the new head remains eligible. - F14 — An intervening round seen at the final history check now exits 6 without posting, in both terminal and scripted runs.
- F15 — Only a baseline ID may omit severity and title; an invented status-only ID triggers Markdown fallback.
- F16 — A rejected decline retains the earlier severity, so the rejected entry cannot downgrade a Critical blocker.
- F20 — The uppercase SHA fixture now uses
tr, and the test checks that it reached the end.
Recommendations
Extend the existing producer-to-consumer tests by combining failure paths: record construction fails and then another round runs; a changed-file Later entry conflicts with an empty severity section and then a decision is posted. Assert the next checklist and the posted event. Those two outputs exposed failures that the individual parser and record tests passed.
Assessment
Ready to merge? No
Reasoning: The ordinary incremental path and the commit-pinning fix work. The remaining failures can still hide newly in-scope code, lose known blockers between rounds, or post an approval that contradicts the final record.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
|
Thanks for round 3, and for moving the approach to Sound. The loop check read this round as churning (10 → 8 → 8) and suggested a split. We chose instead to fix the five items below with conservative rules, and to move three to #12. If round 4 churns again, the loop check stops round 5 and we split. Five commits on top of Critical
Important
Moved to #12, each needing a rare event or a design change:
921 checks pass on macOS (bash 5 and 3.2) and Ubuntu 24.04, and shellcheck and shfmt are clean. |
catalan-adobe
left a comment
There was a problem hiding this comment.
Round 4 · since round 3
3 fixed · 2 still open · 1 new (1 in the new commits) · 3 declined · open blocking: 3 (was 8) · loop: converging
Approach
Unchanged since round 3: lib/delta.sh falls back to a full review when the previous base is unknown, and gh-pr-review requires the round record to show zero blockers before approving automatically, keeping scope selection and posting policy in their existing places.
Approach: Sound
Strengths
lib/delta.sh:28–31andlib/delta.sh:132–139fix the two scope errors from round 3: an unknown previous base selects a full review, and a rebased edit stays in scope when upstream also changed its file.gh-pr-review:1492checks the record being posted for zero blockers. I reproduced the failedready_overriddenlookup from round 3: with one blocker, the event and the record both saidcomment.- All 921 existing checks passed locally. The findings below come from additional cases exercised through the flow stubs, including reading the posted body back as the next round sees it.
Issues
🚨 Critical (Must Fix Before Merge)
(none found)
⚠️ Important (Should Fix)
-
F13 ·
gh-pr-review:1510–1512— A failed record still reads back as a verified zero if the fallback marker does not fit. With two earlier blockers, a failed round-3 record build, and a 60,170-character posted body, the tool correctly postedCOMMENTbut emitted neither a marker nor a progress line.rounds --jsonthen reportedreadywith[1,2,0]. This is less severe than last round: the missing base now forces round 4 to be full. But its progress line still claims(was 0)when the count was unknown.- Reserve room for an explicit unknown-count indicator independently of record construction, or decline to post when it cannot be preserved. Test the failed-record chain with a body that exceeds the marker budget.
-
F17 ·
lib/records.jq:323andgh-pr-review:1215–1219— The fix protects a new finding wrongly put under Later, but not a regressed one. I returned a previously fixedF1asopen, Important, andlater: true, with a matching Later bullet atd.js:2in the delta.entry_outcomeclassified it asregressed, so the.status == "new"check did not mark it as promoted. The empty Important section rejected the block, the Markdown fallback omitted the Later bullet, and the final event was APPROVE withsource: parsedand zero blockers. A rejected two-array block containing a new Important for the same bullet also approved.- Match ineligible Later bullets against the delta independently of whether the block parses. Preserve a matched open or regressed ID; if a touched-file bullet cannot be accounted for, record an unknown count rather than zero.
-
lib/records.jq:343–347— One visible Later bullet can validate multiple blockers that the Markdown says it does not have. With one bullet atd.js:2–6, I supplied an Important entry at line 2 and a different, unreported Critical entry at line 6. Both matched the same bullet viaany; the record kept two blockers, one Critical, despite the explicitly empty Critical section. The extra finding gets an ID and becomes mandatory next round.- Match promoted entries to Later bullets one-to-one, as the ordinary blocker-location check already does. A bullet used to explain one exception to an empty section should not explain another.
💡 Minor (Nice to Have)
(none found)
Fixed since the last round (6)
- F18 — An absent
base_shanow selectsfullbefore the ancestor shortcut can exclude newly in-scope files. - F19 — Rebase file selection now includes a PR file whenever its base blob changed; identical-looking moved hunks no longer exclude it.
- F21 — declined for this PR: “Decline reasons not matched against the discussion: a design question.” The verification policy is tracked in #12.
- F22 — declined for this PR: “Two submissions landing at the same instant, including the L IDs.” The remaining simultaneous-post case is tracked in #12.
- F23 — declined for this PR: “A minimal marker losing the Critical/Important split: only when body plus marker exceed 60,000 characters.” That severity-breakdown limitation is tracked in #12; F13 above concerns losing the total.
- F24 — Automatic approval now requires a successful numeric-zero check both at verdict selection and immediately before posting.
Recommendations
Extend the existing flow fixtures along two dimensions: new versus regressed for a touched-file Later bullet, and marker fits versus does not fit for a failed record. Assert both the submitted event and the next reader’s count; either assertion alone misses one of the failures above.
Assessment
Ready to merge? No
Reasoning: The Git scope fixes and final approval guard work. The guard still receives a false zero when Markdown fallback drops a reported regression, and a markerless failed round can still appear ready in the history.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
|
Thanks for round 4: converging, blocking down from 8 to 3, F18, F19 and F24 fixed, and the three moved items accepted. We're merging #9 here, the same way as #10. The three items left are in #12 with your suggested fixes and tests: F13's residual case (a failed record on a body near the size cap), F17's regressed-under-Later case, and the one-to-one matching of promoted entries to Later bullets. Each needs unusual model output or a double failure, and fixing F17 and the matching would grow the code those findings came from. |
What this does
Round 2 and later build on the last code review instead of starting over. Open blocking findings can now reach zero, and the loop check from the previous PR reads open counts instead of found counts. Stacked on the previous PR (records and loop check).
1. Earlier findings are re-checked by ID
context/previous-findings.md, ID · severity ·file:line· title) and that review's text.fixed,openordeclined. Declined needs a reason from the PR discussion, quoted (areasonfield in the findings block; without one the finding stays open). A finding fixed earlier that comes back isregressed: the file also lists the findings fixed in that round, so one that returns keeps its ID.F<n>, Later itemsL<n>. A finding the reply leaves out is keptopenwith"unverified": true. Duplicates, unknown IDs and bad statuses are handled, and an ID is never given twice (last_ids).2. What changed since then is reviewed in full
lib/delta.shpicks how to show it:incremental:git diff <previous head>..<head>.git merge-tree --write-tree), so what the base brought is left out. If that merge conflicts, a full round (a range-diff would hide the resolution).rebased:git range-diffof the old and new versions of the PR.full: anything else (previous head gone after a force-push, no earlier code review, a record whose findings list was cut, a file list that can't be built, …), and it says why. Previous SHAs are used only as full hex commit IDs.A missing previous commit is fetched by SHA once; a shallow clone is deepened once when needed.
3. Only Critical findings outside what changed
In code the delta didn't touch, the reviewer raises only Critical findings and says why earlier rounds missed them. Important and Minor issues there go to a folded Later list, which doesn't block.
4. The owner pass carries its verdict
It gets its previous Approach section and what changed, and keeps the verdict in one short section unless something changes it. After a Rethink it judges afresh. The verdict line still decides.
5. The progress line, and
--full### Round 3 · since round 2/5 fixed · 2 still open · 2 new (2 in the new commits) · 1 declined · open blocking: 3 (was 7) · loop: converging.It replaces the loop line, and adds the suggested move when the loop is Nit loop or Churning.
ready_overriddenin the record).--fullforces a full review; earlier findings are still re-checked, so IDs and counts stay comparable.Tests
tests/delta.sh(33 checks, real git on local bare repos, no network): new commits, a merged base (clean and with conflicts), a rebase onto a moved base, a force-push with the old head gone, no previous round, a shallow clone,GIT_AUTHset and unset.tests/records.sh(125): every status rule, a round 3 on a round 2 with every status, the progress line, and backfill not carrying the round before.tests/flow.sh(98): the prompts per mode (rules 1 to 3, rule 1 only, none on round 1), the context files, the owner's previous verdict, statuses and IDs inround.json, the progress line, the ready override, unverified findings,--full.Checked on a real PR
adobe/skills#823, round 3 on top of two backfilled rounds:
main). 8 of 8 earlier findings accounted for: 5 fixed, 2 open, 1 declined with the author's reason quoted. 2 new. Open blocking 3 (was 7), labelconverging. The progress line matchedround.json.roundsreads round 3 back from its marker, and--checkthen says "no new commits since round 3" (exit 5).maincounted as the author's change (32 files instead of 11).Limits
tests/delta.shcovers it with real git.