Repository navigation
Record each review round, and stop review loops that don't converge - #8
Conversation
…onal herdr launcher)
…records + loop check, PR 2 incremental rounds, PR 3 worktrees)
catalan-adobe
left a comment
There was a problem hiding this comment.
Approach
What it does: Records posted reviews as rounds, exposes their history through gh pr-review rounds, and checks whether to run again before cloning or calling the model.
Fit with the repo: The record belongs beside the existing GitHub review marker, and lib/loop.jq gives rounds, --check, and the review command one set of rules. The concern is narrower: the PR says “rounds count by anyone,” but an unchanged commit does not mean the requested review already happened. If one reviewer posts a Rethink, another reviewer’s --skip-approach run exits 5 even though nobody reviewed the code. The base docs/superpowers/specs/2026-11-23-owner-approach-pass-design.md explicitly recommends that retry after a false Rethink.
Strongest case for the approach as built: GitHub-backed history works across machines without a new service. The reported 14-round history on adobe/skills#813 makes a concrete case for stopping unattended loops before another paid call.
Alternatives: Reuse the existing “run anyway?” prompt for unchanged heads in a terminal; keep exit 5 for unattended runs and --check. That costs one confirmation and no new state. As-is, an intentional second reviewer must know to add --force-round.
Questions for the author: Is suppressing an explicitly requested review by a different reviewer a requirement? If so, I’d keep the PR-wide stop.
Missing context: The calibration results don’t distinguish accidental repeats from independent reviews on the same commit.
Approach: Questionable
Strengths
lib/loop.jq:20andlib/loop.jq:66giverounds,--check, and the review command one decision algorithm. The calibration cases intests/loop.sh:90exercise whole histories, including a Rethink between code reviews.gh-pr-review:379handles check-only runs before session creation, cloning, or model calls.tests/flow.sh:242also checks the script-facing contract: JSON alone on stdout and exit 3 for a stop.- The marker round-trip tests cover actual Markdown hazards—
--,<!--, and-->inside findings—not just simple ASCII titles. I ran all eight test scripts on this checkout; all 336 checks passed.
Issues
🚨 Critical (Must Fix Before Merge)
(none found)
⚠️ Important (Should Fix)
-
lib/rounds.sh:9andlib/records.jq:143–146— Quoted markers can become review history. A human review that merely mentions<!-- gh-pr-review generated -->is counted as a round. I checked this with a one-review fixture:--checkreturnednothing-newfor a head the tool had never reviewed. A marker example later in a genuine review can likewise override the real record. Match the generated marker as the first line, read the record only from the line immediately below it, and validate its schema before using it. Use the same header check when excluding generated reviews from human activity. -
gh-pr-review:862–866andlib/records.jq:61–65— An unusable findings array can erase visible blockers. The check accepts any array, then normalization silently drops invalid entries. With a Critical finding in Markdown andlevelinstead ofseverityin the block, the record has zero findings andsource: model; a “Yes with fixes” verdict then labels that roundready. Validate the entries before choosing the model source. If an entry would be discarded, fall back to the Markdown for the whole round. -
lib/records.jq:64andgh-pr-review:944–946— The hidden marker can publish text the reviewer never saw. Model-supplied titles and file strings go into the marker without checking that they appear in the displayed review. If the model echoes private--instructionsonly in a structured title, even a user who reads the entire confirmation preview will not see what is about to be posted. Derive public text fields from the visible findings, or omit fields that cannot be matched to them. Test with private text present only in the findings block. -
lib/records.jq:69–77— Finding IDs restart after an empty round. A round containingF1, followed by a Rethink, followed by a new finding producesF1, no IDs, thenF1again. The same reset occurs after marker compaction removes.findings. Persist the highest assigned finding number independently of the list and retain it in compacted and Rethink records. -
gh-pr-review:377–378andgh-pr-review:942–948— Overlapping runs can publish the same round number. Two reviewers can read the same history before their model calls, then both post round K with IDs allocated from the same predecessor.roundssubsequently displays duplicate K rows while the decision uses the array length. Recheck the predecessor before posting and handle a stale run explicitly; make GitHub submission order or review IDs authoritative when reconciling simultaneous posts. -
gh-pr-review:942–943andlib/rounds.sh:47–50— A stop can lift without an identified person acting after the round. The cutoff is the posting machine’s clock, not GitHub’ssubmitted_at: a slow clock makes an earlier comment look new. Separately, a REST comment withuser: nullpasses the different-login and non-bot tests; I verified thatlifted_sincereturnstruefor it. Use GitHub’s submission timestamp on read and require a nonempty, identifiable non-bot login before lifting. -
lib/records.jq:137–140— Marker compaction can still make an otherwise valid review unpostable. After dropping findings, the function emits the remaining marker without a final size check. A 65,200-character review fits with the old generated header; even a 547-character counts-only marker pushes it above GitHub’s 65,536-character limit. Check the exact assembled body, including both headers and newlines. If even the minimal marker cannot fit, preserve the local record and post the legacy-format body with a warning. -
lib/rounds.sh:110—rounds --jsonpasses the entire history as one process argument. On a typical Linux system, a history over 128 KiB fails with “Argument list too long,” even though the same records already passed throughloop_decide_jsonsuccessfully on stdin. Feed the records to jq on stdin here too, passing only the small decision separately.
💡 Minor (Nice to Have)
lib/rounds.sh:10— Backfill loses the GitHub review action. The REST projection dropsstatebeforebackfill_recordreads it. AnAPPROVEDfixture consequently returnsdecision: nullthrough the real fetch path, although the isolated builder test passes. Includestatein the projection and assert the decision intests/rounds.sh.lib/loop.jq:54–61— Flag precedence changes the prescribed Nit-loop advice. A Nit loop on a PR over 800 lines recommends splitting it; the design table reserves that suggestion for Churning and recommends follow-ups for a Nit loop. Handlenit-loopbefore the Churning flags, or update the table if the different behavior is intentional.
Recommendations
Add one producer-to-consumer test: post to the stub, return those exact posted bodies through the REST stub, then run rounds --json and --check. That would test the contract between commands that currently pass in isolation with hand-built records.
Assessment
Ready to merge? No
Reasoning: The loop algorithm is well tested, but the records feeding it can suppress a review that never happened, hide visible blockers, or reuse finding IDs. Those errors should be fixed before scripts rely on the new decisions and exit codes.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
…ord from the next line
…a stop only for an identified person
…ep last_ids in every record
… files the review shows
…eone else took (exit 6)
…d cover a run without one
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. Approach (unchanged head): an unchanged head no longer blocks an interactive run. In a terminal, "no new commits since round K" now asks "Run round K+1 anyway?", as the stop does. Important
Minor
Also from the PR #9 review, since the code is here: Recommendation: |
|
Thanks for round 4. No Critical; the four Important and three Minor items are addressed in the 10 commits on top of Your question to the author: no, that delegation was not intended. A generated review now counts as a round only when GitHub reports its author as OWNER, MEMBER or COLLABORATOR, or when the account running the tool posted it ( Also fixed, from the last round ( Important
Minor
Recommendation: both negative cases are in 519 checks pass on macOS (bash 5 and 3.2) and Ubuntu 24.04, and shellcheck and shfmt are clean. The next round will run incremental (on the #9 code), so it re-checks F21–F27 by ID. |
catalan-adobe
left a comment
There was a problem hiding this comment.
Round 5 · since round 4
5 fixed · 2 still open · 3 new (3 in the new commits) · open blocking: 3 (was 4) · loop: nit loop
Next: Approve, and file the remaining findings as follow-ups
Approach
What it does: Records posted reviews as rounds and checks that history before cloning the PR or calling the model again.
Fit with the repo: Round 4’s concern is resolved. The author clarified that “that delegation was not intended.” lib/rounds.sh now counts only the operator’s own reviews and those GitHub attributes to an owner, member, or collaborator. rounds, --check, and the pre-post check all use that same history. An outsider’s generated header alone can no longer stop a maintainer’s run.
Strongest case for the approach as built: Trusted reviewers can share prior work through the existing GitHub review marker, without a new store or credential. The 14 rounds recorded for adobe/skills#813 show why checking before another paid call is worthwhile.
Alternatives: Keep the shared gate. Counting only the operator’s reviews would repeat work across maintainers. I’d revisit the trust rule if hidden organization membership routinely excluded legitimate rounds; README.md documents that limit.
Questions for the author: None.
Missing context: None that changes the verdict.
Approach: Sound
Strengths
gh-pr-review:1051–1052compares ordered GitHub review IDs before posting. The regression test attests/flow.sh:509checks the important case: one round disappears and another arrives, so the count stays the same but the post must stop.gh-pr-review:989–996checks the attempted body, commit, account and review state before confirming a failed POST.tests/flow.sh:746–752verifies that a different body, a different state, and two matching reviews all leave the outcome unconfirmed.- I ran all eight test scripts against an archive of the reviewed commit. All 519 checks passed. The cases below are outside those assertions.
Issues
🚨 Critical (Must Fix Before Merge)
(none found)
⚠️ Important (Should Fix)
-
F23 ·
lib/records.jq:269–275— Rebuilding a missing total can still erase a known Critical. The original bold-bullet case is fixed. Withcounts: {"critical":1,"important":0}but noopen_blocking, and a plain-bullet under Critical, I gotcritical: 0and the labelready. The total was available without parsing Markdown. There is also a separate path atlib/rounds.sh:43–50: with no severity headings, the same review text gaveunknownwith an ordinary count-less marker butreadywith a minimal marker.- Use the sum when both severity counts are usable. When neither the record nor the Markdown establishes a count, preserve
nullon the minimal-marker path too.
- Use the sum when both severity counts are usable. When neither the record nor the Markdown establishes a count, preserve
-
F24 ·
lib/records.jq:90— The empty-section check and the record builder disagree about which entries count. The check exemptsfixed,declinedandlaterentries, butlib/records.jq:191–192converts all accepted entries tonew. With “none found” under every heading and four Critical entries markedfixedin the block, the flow stub submittedAPPROVEand savedsource: modelwith four open blockers.- Validate the entries as this version will store them, or reject unsupported status and Later fields and fall back to Markdown. This does not require implementing cross-round statuses in this PR.
-
gh-pr-review:373–376— A failed account lookup silently removes the operator’s own contributor rounds from the gate. With one such review on the current head, I got exit 5 normally. Making onlygh api userfail changed--checkto exit 0, named the operator’s review as ignored, and proposed round 1. The final re-read uses the same unresolvedROUNDS_ME, so it cannot catch the mistake before posting.lib/rounds.sh:172has the same fallback.- Resolve and validate the account before deciding which rounds count. Retry a failed lookup, then report that the history cannot be verified rather than starting a paid round from incomplete history.
💡 Minor (Nice to Have)
lib/records.jq:275— When Markdown supplies replacement counts, the record keeps the findings list that failed validation. In the case attests/rounds.sh:140,rounds --jsonreports one Critical alongsidefindings: [], withoutfindings_dropped. Rebuild the list from the parsed findings or mark it unavailable, so consumers can distinguish “no findings” from “no reliable list.”README.md:143— “The history is the same for everyone with the same access” is not true of two contributors with identical access: each counts their own rounds and ignores the other’s. Clarify that owner, member and collaborator rounds are shared, while the own-account exception can give contributors different round numbers.
Fixed since the last round (5)
- F21 — Failed-POST recovery now requires exactly one matching review and excludes IDs from the final round snapshot.
- F22 — The overlap check compares ordered review IDs rather than counts.
- F25 — The findings fence must contain exactly one JSON array; multiple values fall back to Markdown.
- F26 — The README and
rounds --helpexplain that+COMMITSis a date window, not a comparison of reviewed SHAs. - F27 — The README distinguishes the filtered GitHub marker from the local
round.jsonand warns users to inspect it before sharing.
Recommendations
Extend the existing round-trip tests to assert both the persisted findings and the next decision. In particular, changing only marker compaction should not turn unknown into ready, and an entry excluded during validation should not reappear as an open blocker after posting.
Assessment
Ready to merge? No
Reasoning: The overlap and failed-POST fixes address their reported failure cases. The remaining issues affect the gate itself: it can skip the operator’s history, report a known blocker as zero, or stop on blockers the visible review says do not exist.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
A marker with critical and important but no open_blocking gets their sum. The Markdown count includes plain bullets under a severity heading, and a minimal marker whose review has no severity heading stays unknown, as a marker without counts does.
The list did not show the review's blockers, so the record says findings_dropped instead of keeping it.
stored_findings and stored_status decide each entry's status in one place, for the record builder, the block checks and the counts of a marker's findings. Every entry is stored as new, so a fixed, declined or later entry is no longer exempt from the checks.
Its own rounds count, so without its login the history can't be checked. The review, --check and rounds read it with one retry, then exit 1 before the loop check, with no clone and no model call.
|
Thanks for round 5. The incremental round did what it should: F21, F22 and F25–F27 fixed, F23 and F24 still open, three new, and the approach is back to Sound. The loop reads a nit loop. The remaining items are small and all in the gate itself, so they're fixed here rather than filed as follow-ups. That's 6 commits on top of Important
Minor
Recommendation (
541 checks pass on macOS (bash 5 and 3.2) and Ubuntu 24.04, and shellcheck and shfmt are clean. |
#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.
catalan-adobe
left a comment
There was a problem hiding this comment.
Round 6 · since round 5
2 fixed · 3 still open · 3 new (3 in the new commits) · 1 for later · open blocking: 3 (was 3) · loop: nit loop
Next: Approve, and file the remaining findings as follow-ups
Approach
Unchanged since round 5: rounds, --check, and the review command still use the same trusted GitHub review history, and now stop rather than silently ignore the operator’s own rounds when the account lookup fails.
Approach: Sound
Strengths
gh-pr-review:374andlib/rounds.sh:193now use the same account lookup.tests/flow.sh:545–558verifies the important failure contract: when the retry fails,--check,rounds, and the review command exit 1 without starting a review.tests/flow.sh:714–753checks both sides of posting: what the local record contains and what the next run learns from GitHub’s copy. That catches errors a record-builder test alone cannot.- I ran all eight test scripts against an archive of
a053ef0; all 541 checks passed. The cases below are outside those assertions.
Issues
🚨 Critical (Must Fix Before Merge)
(none found)
⚠️ Important (Should Fix)
-
F23 ·
lib/records.jq:285–286— A partial marker can still turn a visible Critical intoready. The reported case withcritical: 1, important: 0is fixed. The new sum branch, however, also trustscritical: 0, important: 0when both the marker’sF1and the Markdown identify a Critical ata.go:7. With onlyopen_blockingmissing and a “Yes with fixes” verdict, round 5’s code reconstructed1; this commit reconstructs0and labels itready. Use the sum when it is consistent with the visible blockers; otherwise use the matching findings or Markdown. -
F24 ·
lib/records.jq:86—- None.means “no finding” to the parser but not to the empty-section check. The fix works for*(none found)*. With- None.as the sole Critical bullet, I gotparse_findings: [], yet a block containing four Criticals markedfixedpassed validation and produced four open blockers. Strip the optional list prefix in the shared empty-line check so both callers interpret the same Markdown the same way. -
lib/records.jq:260— Rebuilding counts reopens findings that a posted marker already marked fixed. I removed onlycountsfrom this PR’s actual round 5 marker and read it against its posted Markdown. The previous code recovered 3 blockers and 5 fixed; this version reports 5 blockers and 0 fixed, while still returningF21andF22asstatus: "fixed". That changes the round’s label fromnit-looptochurning. Assigningnewis appropriate when writing a PR 1 record from model output; when reading an existing record, validate and count its stored statuses instead.
💡 Minor (Nice to Have)
- F29 ·
lib/records.jq:286— The Markdown fallback now drops an unreliable findings list, but the new sum branch leaves the same contradiction inrounds --json. The fixture attests/rounds.sh:153–158suppliesfindings: []and one Critical, and explicitly expects nofindings_droppedflag. Keep the known count, but mark the list unavailable when it cannot account for that count. lib/records.jq:294— Dropping a list can also drop its ID history. With an older marker containingF1but nolast_ids, rejecting the list against an explicitly empty Critical section reduced the ID floor from1to0; the next finding wasF1again. Save the highest observed IDs before deleting the list. Reserving an ID does not require trusting the finding.lib/rounds.sh:65–68— A minimal Rethink marker now loses thecountsobject entirely. The merge deletes the backfilled null-valued counts, thenwith_countsskips the record becausecode_reviewis false. Preserve the backfilled counts for Rethink so JSON consumers get the same shape regardless of marker size.
Fixed since the last round (2)
- F28 — The operator lookup retries once and then fails closed before any clone or model call.
- F30 —
README.md:143–148now distinguishes shared collaborator rounds from contributor-specific history and explains why round numbers can differ.
Later (1)
lib/records.sh:99— The unchanged markerless backfill still turns an unreadable count into zero. With the same heading-free review and “Yes with fixes” verdict, increasing only its padding took the readback from[1]with counts, to[null]with a minimal marker, to[0]andreadywith no marker. This can wait as a backfill follow-up: the remaining transition requires a review too long for even the minimal marker.
Recommendations
Keep model-input normalization separate from posted-record recovery. Add regression assertions on the recovered record and its label: a visible blocker must not become zero, a stored fixed finding must not become open, and discarding a list must not lower the ID floor.
Assessment
Ready to merge? No
Reasoning: The account-lookup fix is complete. The remaining count-recovery paths can still report a visible Critical as zero or count resolved findings as open, changing the decisions that rounds and --check expose to automation.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
|
Thanks for round 6. All six items are fixed in 7 commits on top of The read/write split (
Important
Minor
Recommendation ( 560 checks pass on macOS (bash 5 and 3.2) and Ubuntu 24.04, and shellcheck and shfmt are clean. Round 7 will run with |
#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).
catalan-adobe
left a comment
There was a problem hiding this comment.
Round 7 · since round 6
2 fixed · 4 still open · 1 new (1 in the new commits) · open blocking: 3 (was 3) · loop: nit loop
Next: Approve, and file the remaining findings as follow-ups
Approach
Unchanged since round 6: lib/records.jq now distinguishes new model findings from findings recovered from a posted review, so fixed findings stay fixed while rounds, --check, and the review command continue to use the same trusted GitHub history.
Approach: Sound
Strengths
lib/records.jq:193–201separates reading posted statuses from assigningnewto model output. The real round-5 fixture attests/rounds.sh:218–223now recovers 3 blockers and 5 fixed findings when onlycountsis removed.tests/flow.sh:727–734checks F24 through the posting path: four model-supplied Criticals next to- None.produce a parsed record with zero blockers.- I ran all eight test scripts against an archive of
fc51044. All 560 checks passed. The cases below are additional recovery checks; none requires changing the checkout.
Issues
🚨 Critical (Must Fix Before Merge)
(none found)
⚠️ Important (Should Fix)
-
F23 ·
lib/records.jq:340–347— A disagreement about Important findings can still erase an independently confirmed Critical. I tested a partial marker withcritical: 1, important: 0, a CriticalF1ata.go:7, and a stale ImportantF2. The Markdown showsF1as a*bullet and says- None.under Important. The reader rejects the sum because ofF2, rejects the list because Important is empty, then falls back to a parser that does not count*bullets. Round 6 returned 1 blocker; this head returns 0 andready. Recover each severity independently so rejectingF2does not discard two agreeing sources forF1. -
F31 ·
lib/records.jq:341–347— Fixed findings stay fixed with the full marker, but not after the supported location-compaction step. I padded the round-5 fixture untilmarker_lineremoved locations but retained all ten IDs and statuses, then removed onlycounts. The location check rejected the list, and the Markdown fallback counted the five bullets under “Fixed since the last round” as Minor findings. The result was 7 Minor, 10 new, 0 fixed, instead of 2 Minor, 3 new, 5 fixed. The blocking label stayed correct, but the status history did not. Distinguish absent locations from conflicting locations, and exclude folded Fixed and Later sections from open-finding counts. -
lib/records.jq:329— Recovery counts bullets from the approach pass that the record writer never counted as code findings. I used a Sound approach with four bullets under#### Important context, followed by a code review explicitly reporting no findings. Removing onlyopen_blockingfrom the otherwise accurate record changed recovery from 0 on round 6 to 4 Important on this head. After three four-blocker rounds, that changes the next decision fromruntostop. Apply the Markdown checks to the code-review Issues section, as opposed to the entire assembled review.
💡 Minor (Nice to Have)
- F29 ·
lib/records.jq:338— The reported Critical mismatch is fixed, but the list check omits Minor counts. Withfindings: [],counts: {critical: 0, important: 0, minor: 1}, and one visible Minor bullet, recovery still returns the empty list alongsideminor: 1, withoutfindings_dropped. Check every available open-severity count before advertising the list as reliable. - F32 ·
lib/records.jq:313–314— Saving the highest raw ID fixes sequential rounds, but not overlapping ones. With two submissions both claiming round 1 and a newF1, I made the second list too short for its retained severity counts, withcounts.newabsent. Dropping that list before reconciliation leaves the floor at 1; the next round starts at F2, rather than F3 as it did on round 6. Reserve the observed new IDs against the canonical predecessor before discarding the list.
Fixed since the last round (2)
- F24 — The parser and empty-section check now agree that a list item containing only
None.is not a finding. - F33 —
lib/rounds.sh:65–67preserves the backfilled null-valuedcountsobject for a minimal Rethink marker.
Recommendations
Extend the round-5 fixture test across the marker shapes that marker_line actually emits. Assert the whole recovered record—not just open_blocking—and the next decision. That distinguishes a correct loop label from correct finding history.
Assessment
Ready to merge? No
Reasoning: The ordinary record path and two earlier findings are fixed. Partial-marker recovery can still turn a visible Critical into ready, stop a run on approach prose, or report resolved findings as new.
Review generated by gh pr-review · model: azure-openai-direct/gpt-6.2-astra
|
Thanks for round 7: F24 and F33 are fixed. This PR now stops here, as its own loop check suggests: rounds 5, 6 and 7 were nit loops, open blocking stayed at 3, and the PR is flagged too big. The remaining items move to one small follow-up PR, which gets its own review:
Merging with a merge commit, so the stacked #9 keeps its history. |
What this does
The first part of review tracking: every round of
gh pr-reviewon a PR leaves a record, and a check before each round stops review loops that are not converging. Design:docs/superpowers/specs/2026-11-26-review-tracking-design.md.1. Each round leaves a record
<!-- gh-pr-review generated -->: the round number, the commits reviewed, the approach and "Ready to merge?" verdicts, and the findings (severity,file:line, a short title, an ID such asF4). The same record is saved asround.jsonin the session.--instructionstext or the prompts, and it publishes a title or file only when the posted review shows it. Every--in the JSON is written-\u002d, so the HTML comment stays valid. The marker is sized on the exact posted body: past 60,000 characters it drops titles, then locations, then the Later list, then the findings (findings_dropped); counts andlast_idsstay. As a last resort it posts a minimal marker that only says the findings list is gone.json findingsblock at the end. The script cuts it before posting, so the posted Markdown is the same as before. Without a usable block, it parses the Markdown (source: parsed).source: backfill): verdicts and counts per severity.author_association), or by the account running the tool, count for everyone, so the history is the same on every machine. Anyone else's generated review is listed as ignored and can't stop a run.2.
gh pr-review rounds <PR-URL | PR-number> [--json]One row per round: date, commit, commits since the previous round, approach, ready, open findings by severity, label and source. The last line says what the next round would do.
--jsonprints the records and the decision.3. A loop check before each round
early(first 3 rounds),converging,ready,nit-looporchurning;unknownwhen a round's blocking count can't be read (neverready, never bad).**Loop:** …line.-yit exits with code 3. The suggested move comes from the history: settle the approach, split the PR, or approve and file the rest as follow-ups.-yit exits with code 5. After a Rethink-only round, a--skip-approachrun on the same commit runs (the code was never reviewed).commit_idset to the reviewed commit. If the PR head moved during the review, it's never an approval, and the review says which commit it covers.--force-roundruns anyway.--check [--json]runs only the check, for scripts and agents.4. Shared code in
lib/, and subcommandsHelpers move to
lib/*.sh(sourced through symlinks, asgh extension install .links the script). A known first word dispatches to acmd_*function.status,show,shepherd,dashandgcare reserved and say "not yet available".Docs
docs/superpowers/specs/2026-11-26-review-tracking-results.md: the checks on real PRs below.Tests
tests/records.sh(74 checks, with synthetic review fixtures),tests/loop.sh(123, including the 12 calibration histories of the spec),tests/rounds.sh(9).tests/flow.sh(71) covers the findings block (asked for, cut before posting), the marker,round.json, previews, every loop-check outcome, the lifting rules,--check --jsonon stdout alone, and a failed comment fetch.column. That run caught one bug:columnmangled the–placeholder outside a UTF-8 locale, soroundsnow pads its table in jq.roundson the 12 PRs of the spec's calibration table gives the same blocking series and labels.--checkon three open PRs gives the expected decisions. A forced preview round on fix(stardust): deploy-batch fails a page when a request gets no answer adobe/skills#831 wrote the findings block, cut it, and numbered the new finding after the backfilled round. Nothing was posted.Limits