Skip to content

fix(pr-pipeline): escalate a finding that still stands at the review-round bound #9845

Closed as not planned

Description

@kyle-sexton

Refs: #9683, #9565

Problem

When the adjudicator (#9565) returns reviewer (finding-stands) on a code-review thread during the fresh-fixer round (#9683, rounds == loop.review-rounds), the next address-feedback select has rounds >= maxRounds + FRESH_FIXER_ROUNDS and skips cost-gated. cost-gated is not in feedback-dispatch.mjs RELEASES, so nothing re-dispatches the pull request, and no label is added. The finding the adjudicator said stands then waits silently with no person told. Before #9683 the same state escalated feedback-round-cap.

Done when

  • At the round bound, a kept thread whose last disposition is finding-stands escalates feedback-round-cap (needs-human) instead of skipping cost-gated.
  • A test in .github/scripts/pr-unblock/address-feedback.test.mjs covers a finding-stands thread at the bound and fails before the fix.

Related

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (attempt 1 of 2).

  3. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: at the review-round bound, a kept thread whose last adjudication is finding-stands currently skips cost-gated and nobody is told. It should escalate feedback-round-cap to a person instead. A test in address-feedback.test.mjs should cover this and fail before the fix. The scope is clear from the issue and its refinement, so nothing is missing. I found no duplicate among the open issues. #8257 touches nearby select-time logic, so the two changes should be checked against each other.

    Automated triage, applied by the lanes App.

  4. added and removed
    needs-triage
    on Oct 24, 2026
  5. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 24, 2026
  6. melodic-automation-lanes commented on Oct 24, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. A recorded decision does not change these rules (.github/actions/resolve-config/admission-rules.json); a person who wants it worked adds agent-ready.

  7. melodic-automation-lanes commented on Oct 24, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: At the review-round bound, select() in address-feedback.mjs escalates feedback-round-cap when a kept thread holds a finding-stands adjudication, instead of skipping cost-gated.

    Acceptance criteria

    • In .github/scripts/pr-unblock/address-feedback.mjs select(), the branch where rounds >= maxRounds + FRESH_FIXER_ROUNDS (currently line 526) returns decision escalate with escalationReason feedback-round-cap, rounds and threads: kept, when any kept thread satisfies stood(thread.comments) from adjudicate-feedback.mjs.
    • A kept set with no finding-stands thread at that bound still returns decision skip with skipReason cost-gated, no escalationReason and no file.
    • Rounds below maxRounds + FRESH_FIXER_ROUNDS, and a write-access fix request past the cap, behave as before.
    • A new test in .github/scripts/pr-unblock/address-feedback.test.mjs has a code-lane thread carrying a lanes-App comment whose first line is the finding-stands marker, at rounds >= maxRounds + FRESH_FIXER_ROUNDS. It asserts decision escalate and reason feedback-round-cap.
    • That new test fails when run against the code before the fix.
    • The existing test 'once the fresh fixer's round ran, the code lane's findings skip cost-gated' and the model-job check-run test still pass.
    • The pr-unblock node tests pass, including report-escalation.test.sh coverage of feedback-round-cap.

    Dependencies

    • #​9683 and #​9565 are merged, so the fresh-fixer round and the adjudicator reply marker the fix reads already exist.

    Related work

    Sources read

    • context.json: the issue records the owner decision of 2026-10-24 to escalate this case to a person.
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-unblock/address-feedback.mjs:523: gated or needsPerson threads escalate feedback-round-cap.
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-unblock/address-feedback.mjs:526: rounds >= maxRounds + FRESH_FIXER_ROUNDS returns skip cost-gated, the branch to change.
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-unblock/adjudicate-feedback.mjs:66: stood(comments) is true when a lane comment's first line is FINDING_STANDS.
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-unblock/address-feedback.test.mjs:789: the existing cost-gated test, which the new test sits beside.
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/scripts/pr-unblock/report-escalation.sh:73: the feedback-round-cap escalation text already exists.

    Automated refinement by the lanes App. Admission counts only criteria a listed human wrote: to confirm these, post them as your own comment whose first line is **Decision recorded.**, which sends the issue back through intake.

  8. removed
    needs-owner-decision
    on Oct 25, 2026
  9. kyle-sexton commented on Oct 25, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.

    To hold this issue again, add needs-human (or status: needs-decision) and say why in a comment.

  10. added
    status: ready
    on Oct 25, 2026
  11. added
    agent-ready
    on Oct 29, 2026
  12. melodic-automation-lanes commented on Oct 29, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 40798346876, the work-resolve-issue run that agent-ready started, before it did any work; that run ended at 2026-10-29T01:31:44Z. work-unblock has now removed and added agent-ready back to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last added agent-ready or a run last reported, work-unblock waits longer before each one, up to 24 hours.

  13. added
    agent-ready
    needs-human
    and removed
    agent-ready
    on Oct 29, 2026
  14. melodic-automation-lanes commented on Oct 29, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Why, in the run's own words:

    intent-change: the issue's premise no longer holds, and its Done-when conflicts with a later routing design. Past the round bound, select() in .github/scripts/pr-unblock/address-feedback.mjs (lines 698-704) no longer skips cost-gated. A kept code-lane thread, including one an adjudicator let stand, now escalates feedback-not-converging (feedback-verifier-open when only pr-verify notes are open). pr-pipeline CHANGELOG 5.7.0 (2026-10-25, the day after the owner decision) made that change with the human-gated label. A later release routed feedback-not-converging to a failing status with no label (escalation-routes.json line 12). report-escalation.sh posts a comment naming each open thread, with resume steps. docs/conventions/pr-pipeline/README.md:2599-2600 states that 'a round cap is a lane bound, not an intent question'. A stood finding that the next round leaves open also fails rather than holds (feedback-stood-open, route fail). Building the Done-when as written (feedback-round-cap with needs-human for a finding-stands thread at the bound) would turn this case from a fail route back into a hold, against that design. A person decides: (a) close this issue, because the silent-wait gap is fixed and a person is told through the failing status and comment; or (b) keep it, so that a finding-stands thread at the bound holds as feedback-round-cap despite the fail-route design. With (b), the feedback-round-cap 'why' text in escalation-routes.json and README line 2594 also need that case added.

    What the run says it did not do:

    • No code or test change: the requested behavior conflicts with the current fail-route design, so it needs a person's decision first
    • Tidy, review, verify and checks steps not run: no diff to tidy or review
    • Git history is shallow in this checkout, so the commit that moved feedback-not-converging from hold to fail could not be read; the CHANGELOG entries are the evidence

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40820466490

    To retry, remove needs-human and add agent-ready again.

  15. removed
    agent-ready
    on Oct 29, 2026
  16. kyle-sexton commented on Oct 29, 2026

    @kyle-sexton
    MemberAuthor

    Re-triage: closing as superseded. This issue asks pr-unblock to escalate feedback-round-cap when a code-lane finding still stands at the round bound, instead of skipping it as cost-gated. Main already escalates at that bound under a different reason:

    • .github/scripts/pr-unblock/address-feedback.mjs:702 sets escalationReason to feedback-not-converging (or feedback-verifier-open when only verifier notes remain) once the fresh fixer's round has run.
    • .github/scripts/pr-unblock/escalation-routes.json:12 routes feedback-not-converging to a failing status.
    • address-feedback.test.mjs:908 covers the escalation at the bound.
    • cost-gated no longer appears under .github/scripts.

    The escalation this issue asked for exists, under a different name than the criterion states, so the criterion cannot be met as written and there is nothing left to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanstatus: ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions