Skip to content

feat(roadmap): a review job gives each bot PR its verdict #5969

Closed
0 of 1 issue completed
Closed

Description

@dan-petty

Problem

The bot's pull requests wait for a person. On 2026-11-16 at 13:30Z the bot had 11 open pull requests, all drafts: 7 with every check green that no job moved on (#5963, #5959, #5946, #5945, #5936, #5929, #5904), 2 that failed only Semantic PR title (#5940, #5920), 1 plan with plan/needs-fix and a failed Plan Check (#5958), and 1 blocked with no failed check (#5868). The owner wakes up to about 20 such pull requests a day (owner, 2026-11-16: "I want to work more issues, not less").

The fix steps exist (devops roadmap step fix-checks, fix-conflict, fix-plan), and #5027, #5028 and #5412 start them from the watch row. No job looks at a bot pull request as a whole and decides what it needs.

Expected behavior

A review job takes each open bot pull request that no live unit works on, and gives it one verdict of #5968 with a short reason in a pull request comment:

Verdict Next step
Mergeable Mark it ready (devops roadmap step ready); a person merges.
Needs fix Mark the due fix: fix-checks, fix-conflict or fix-plan, for the watch row to start.
Discard plan, plan again Close the plan pull request and return the item for a new plan.
Discard implementation, implement again Close the delivery pull request and let the implement job build the plan again.
Issue changed Mark the work for an update to the new issue text or the merged work; not scored.
  • The verdict uses the facts that a program reads first (checks, mergeable state, labels, the issue's update time, merged related pull requests), and a model only for what they cannot decide (does the diff match the plan and the issue). A verdict cites its evidence.
  • Modes off, plan and on, as the fix steps have; a cap of tokens for each review.
  • The verdict labels of feat(roadmap): the PR review gate scores each bot PR #5968 record each verdict, so the grades score stage and implement.

Related

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    effort/high
    on Nov 16, 2026
  2. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor
  3. added
    value/high
    priority/p2-medium
    on Nov 16, 2026
  4. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Owner direction 2026-11-16 adds the loop and the end (see the pipeline on #5014):

    • The fixer marks a pull request ready for review when its checks pass. The review job then scores it; a needs fix verdict sends it back to the fixer. Fix and review repeat at most 2 or 3 times (a setting). A pull request that is not mergeable after the last round gets discard implementation (or discard plan) and goes back to its job, or waits for a person; the plan decides which.
    • A mergeable verdict ends the Service pipeline for the issue: no job takes the item or its pull request again until a person merges it, or the issue changes.
  5. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Owner rule 2026-11-16: every job gets generous token limits. Give the review job a generous token cap from the start (16,000,000 new tokens per review is the default of the fix Jobs of #5027), as a setting.

  6. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Owner direction, 2026-11-16: the review job writes the verdict Needs fix as verdict/fix-plan on a plan pull request and verdict/fix-implementation on a delivery pull request. verdict/fix-plan replaces plan/needs-fix, so the row fix-plan starts on it. The full label set is on #5968 (#5968 (comment)); the labels come in #5975.

  7. added
    owner/agent
    on Nov 16, 2026
  8. added
    status/in-progress
    and removed
    status/new
    on Nov 16, 2026
  9. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Pull request #6015 delivers the step devops roadmap step review and closes this item. The Job launcher and the watch-row trigger wait for #5027, so they are the follow-up item #6011.

  10. added
    status/in-review
    and removed
    status/in-progress
    on Nov 16, 2026
  11. removed
    status/in-review
    owner/agent
    on Nov 16, 2026
  12. added a commit that references this issue on Nov 16, 2026
  13. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor
  14. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-16 20:17 UTC

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

    effort/highpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions