Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.656
Choose a base ref
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.657
Choose a head ref
  • 2 commits
  • 8 files changed
  • 1 contributor

Commits on Sep 21, 2026

  1. Replace the UI-Only Stall Recovery With One an Agent Seat Can Reach (#…

    …1743)
    
    Settles #1741 and #1740, both raised by a concurrent session in another
    fleet repository and ranked first and third on handoff #1738.
    
    ## The rule an agent could not follow
    
    `pr-review-conduct` "Expected review loop" ended its timeout advice with
    "remove Copilot in the pull request UI, add it again", which no agent
    seat can perform, and its only other advice was to wait again, which is
    what was already failing. Every stall therefore escalated to the
    maintainer for a manual click.
    
    The recovery now reads: on a second bounded `wait` timeout, read the
    pending set, clear it only where no human or team reviewer is requested
    alongside the bot, and rerun `wait`, which then has nothing outstanding
    to defer to and requests afresh. A stall still pending after that wait
    is the maintainer's, which is the bound the previous text got from the
    maintainer gate it no longer needs.
    
    `requested=yes` reads as acceptance of the request rather than delivery
    of a round, on all three surfaces that state it. An unpicked request
    prints the digest of one about to be served, so a driver reading that
    field as progress waits on evidence it does not hold.
    
    ## Where the mutation went, and why not the runbook
    
    `docs/pr-reviewer-reference.md`, whose stated subject is how each
    reviewer is triggered. Not `.github/copilot-instructions.md`: #799
    reduced that file to a review bootstrap, and
    `test_the_runbook_routes_mutations_to_the_script` asserts it carries no
    mutation document at all. That is also the home
    `test_the_only_writes_are_the_four_named_here` has described all along
    as keeping the `union:false` clear-and-recover form manually, while
    naming the wrong file for it, so this change makes that docstring true
    rather than merely current.
    
    The snippet gates its own write rather than describing a gate beside an
    ungated command: the pull request id and the pending-set count are each
    captured live and each guarded, and the clear runs only where the count
    is zero. `gh pr view --json reviewRequests` omits a Bot, which is what
    makes that count a human-and-team count.
    
    ## The watcher trap next to the one 2.0.656 shipped
    
    A watcher testing for a bare negative matches a line a covered review
    wrote, so it reports no review over a review that landed. The rule added
    is to anchor the pattern on what is unique to the field being read, and
    for a pair nested in a parenthesized group the group's name ahead of it,
    since the digest renders the same inner names in more than one group.
    
    ## Carried forward rather than fixed here
    
    The clear's guard covers humans and teams. A second reviewer **app** in
    the pending set is invisible to both it and the digest's `requested`
    field, which matches the Copilot login alone, so such a request would be
    dropped by the replace. Narrow today, since no other reviewer here is
    configured as a requested reviewer, and worth either a stated limit or a
    GraphQL read that excludes one login rather than every Bot.
    
    ## Verification
    
    427 `pr_review` tests and 1641 across the suite pass. `build_dist.py
    --check` reports the generated trees current. `ruff check`, `ruff format
    --check`, `prose_lint.py` whole-tree and against the diff,
    `repo_gate.py`, `spec/validate.py`, and the Docker linters are clean.
    The new test was proved by removing the code block it pins and watching
    it fail. Five local strict review rounds ran before this push, raising
    33 findings between them, of which 21 were fixed, 8 declined as
    preference or as inherent to two API calls with no lock, and the rest
    are the two pre-existing ones noted above and below.
    
    Separately pre-existing, filed rather than fixed:
    `.github/copilot-instructions.md`'s third Disproved Claims entry is
    proved against a `BOT_ID` query in a "Triggering and Polling" section
    that file no longer carries, and `in_scope`'s refusal message in
    `scripts/pr_review.py` routes a cross-owner caller to a runbook `gh`
    path that does not exist.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    - **Bug Fixes**
    - Improved handling of stalled automated code-review requests with
    repeated, bounded waits and clearer progress reporting.
    - Pending automated requests can now be cleared and retried when no
    human or team reviewer is involved.
    - Requests involving human or team reviewers are preserved and escalated
    for maintainer action.
    
    - **Documentation**
      - Added recovery guidance for stalled review requests.
    - Expanded review-operation guidance, including monitoring requirements
    and recovery procedures.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ptr727 authored Sep 21, 2026
    Configuration menu
    Copy the full SHA
    7fe3e5d View commit details
    Browse the repository at this point in the history
  2. Promote the Agent-Reachable Stall Recovery and the Inverting-Watcher …

    …Warning to Main (#1746)
    
    Promotes one change: the stall recovery a pull request UI made
    unreachable from an agent seat, and the watcher trap adjacent to the one
    2.0.656 shipped.
    
    Closes #1741
    Closes #1740
    
    ## What reaches main
    
    `pr-review-conduct`, the carried Copilot runbook, and
    `scripts/README.md` each replace "remove Copilot in the pull request UI,
    add it again" with a recovery a driver can run: on a second bounded
    `wait` timeout, read the pending set, clear it only where no human or
    team reviewer is requested alongside the bot, and rerun `wait`, which
    then has nothing outstanding to defer to and requests afresh. A stall
    still pending after that wait is the maintainer's, and so is one on a
    pull request carrying a human or team request, which is the bound the
    previous text got from the maintainer gate it no longer needs.
    `requested=yes` reads as acceptance of the request rather than delivery
    of a round on all three.
    
    The mutation itself lives in `docs/pr-reviewer-reference.md`, whose
    subject is how each reviewer is triggered, with its placeholders quoted
    per the rule `STANDUP.md` states, and with the race between the guard's
    read and the replacing write named rather than left implied. A test pins
    that snippet, since three surfaces now route a stalled driver to it.
    
    `scripts/README.md`'s watcher paragraph gains the trap next to the one
    it already carried: a bare value matches a line a covered review wrote,
    so anchor on what is unique to the field being read, and for a pair
    nested in a parenthesized group the group's name ahead of it.
    
    ## Review state
    
    Merged as 7fe3e5d after four Copilot rounds, each recommending approval
    with no findings, one CodeRabbit round raising a Major finding on the
    clear's race, answered with the decision to name it rather than close
    it, and nine local strict review passes. Every thread is resolved.
    
    None of the four Copilot rounds carried a coverage marker, so `status`
    read `coverage=unstated` throughout and #1743 merged on the maintainer's
    explicit permission under the Merge Gate's item 5. What that
    investigation ruled out is recorded on #1745.
    
    Filed rather than fixed: #1744, the 49 lines of tracked Markdown whose
    shell fences carry an unquoted angle-bracket placeholder, three of them
    in `STANDUP.md` itself.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    * **Documentation**
    * Clarified review-monitoring behavior for pending and stalled review
    requests.
    * Added bounded retry guidance and documented recovery steps for
    bot-only review requests.
    * Added safeguards explaining when requests can be cleared and when
    maintainer action is required.
    * Documented equivalent pull request UI steps and additional
    troubleshooting details.
    
    * **Tests**
    * Added coverage to verify the documented review-recovery procedure
    remains available and accurate.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ptr727 authored Sep 21, 2026
    Configuration menu
    Copy the full SHA
    d28ed04 View commit details
    Browse the repository at this point in the history
Loading