Skip to content

feat(roadmap): the PR review gate scores each bot PR #5968

Description

@dan-petty

Problem

The grades of the stage and implement jobs (devops roadmap eval grades, docs/roadmap/job-success.md) count only the result of each attempt: stage succeeds when it opens a plan pull request with no open finding, and implement succeeds when its pull request reaches the ready mark. They do not show what happened to the pull request after the attempt. From 2026-11-09 to 2026-11-16 the bot opened 69 plan pull requests (57 merged) and 44 delivery pull requests (33 merged), while the 7-day grades were 43/94 for stage and 6/28 for implement.

No gate gives a pull request of the bot one verdict that says whether its work can be used.

Expected behavior

The pull request review gate gives each plan and delivery pull request of the bot one verdict, and the verdict scores the attempt of the job that made it (owner, 2026-11-16):

Verdict Meaning Score
Mergeable The pull request can merge as it is. success
Needs fix The work is usable after a fix of the pull request. partial success
Discard plan, plan again The plan cannot be built; the stage job plans the item again. failure (stage)
Discard implementation, implement again The code cannot be fixed; the implement job builds the plan again. failure (implement)
Issue changed The issue was updated or related work merged, so the work must be updated to match. not scored
  • The verdict is a record that a program reads (a label, a result line or a job record), so the grade reads it with no model.
  • devops roadmap eval grades shows, for stage and implement, the share of each verdict and a score (success 1, partial a setting such as 0.5, failure 0; not scored left out), beside the attempt ratio it shows now.
  • A later verdict on the same pull request (for example needs fix, then mergeable after the fix) keeps the history, and the score of the attempt uses the first verdict.

Owner, 2026-11-16: the split of the plan and implement jobs into smaller deterministic jobs (#5474, #5014) gives more useful per-step metrics. This gate scores the pull request, the product of the whole chain, and stays useful after the split.

Related

Activity

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

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

    @dan-petty
    OwnerAuthor

    Owner, 2026-11-16: the split of the plan and implement jobs into smaller jobs (#5474) gives more useful metrics, because a failure of stage or implement today can come from any of many steps that can run as deterministic, isolated jobs, each with its own result line and grade. So this item stays small: a lagging merge credit for the two jobs as they are now, read from the merge of the pull request, with no new per-step metrics. The step jobs of the split bring their own grades. No builder is started for now.

  5. changed the title [-]feat(roadmap): credit stage and implement for merged PRs[/-] [+]feat(roadmap): the PR review gate scores each bot PR[/+] on Nov 16, 2026
  6. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    The owner set the verdicts of the pull request review gate on 2026-11-16 (mergeable, needs fix, discard plan, discard implementation, issue changed). The body now states them, and they replace the merge-only credit of the first version.

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

    @dan-petty
    OwnerAuthor

    PR #5975 delivers the verdict labels and the verdict score of stage and implement in devops roadmap eval grades.

    Out of scope of this item:

    • An automatic review job that writes the verdict label. It belongs with the Service step jobs (feat(roadmap): track the Service step jobs #5014). Until then a person or an agent vet sets the label by hand.
    • A map of old merged pull requests with no verdict label. They stay open in the report and out of the score.

    plan/needs-fix is the needs-fix verdict of a plan, so a plan never gets verdict/needs-fix. The stage review and the row plan_drift also set plan/needs-fix, so a plan whose first verdict comes from them scores as needs fix.

  9. added a commit that references this issue on Nov 16, 2026
  10. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Owner direction, 2026-11-16: the verdict Needs fix has two labels, one for each kind of pull request, and verdict/fix-plan replaces plan/needs-fix.

    Verdict Label Score
    Mergeable verdict/mergeable success
    Needs fix (plan pull request) verdict/fix-plan (replaces plan/needs-fix and the planned verdict/needs-fix for a plan) partial (stage)
    Needs fix (delivery pull request) verdict/fix-implementation (replaces the planned verdict/needs-fix) partial (implement)
    Discard plan, plan again verdict/discard-plan failure (stage)
    Discard implementation, implement again verdict/discard-implementation failure (implement)
    Issue changed verdict/issue-changed not scored
    • Every reader and writer of plan/needs-fix (the stage job, the step and row fix-plan, plan drift, the implement selection, the ready step, the row cadence, the settings text, the specs and the docs) uses verdict/fix-plan. Archived OpenSpec changes and recorded eval fixtures stay as they are.
    • No code reads both names. At rollout, after the release with this change runs, an agent renames the GitHub label plan/needs-fix to verdict/fix-plan (one PATCH of the label), so each open pull request keeps its mark; then devops gh sync-labels creates the other labels. A stage Job that started on the old image can add the old label again: the agent checks for it one hour later.

    Pull request: #5975.

  11. added 3 commits that reference this issue on Nov 16, 2026
  12. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    PR #5975 now follows the owner direction of 2026-11-16: verdict/fix-plan replaces plan/needs-fix in each reader and writer, and verdict/fix-implementation is the needs-fix verdict of a delivery. My earlier note about plan/needs-fix and verdict/needs-fix no longer applies.

    • A first verdict label of the other kind, such as verdict/fix-plan on a delivery, leaves the pull request unscored, and the read logs the pull request and the label.
    • The step fix-plan finds the open findings of a plan comment by the first sentence of its heading, which names no label, so the comments on open plan pull requests that name plan/needs-fix still read.
    • Archived OpenSpec changes, the decision records and the recorded fixtures keep the old name.
  13. added
    status/in-review
    and removed
    status/in-progress
    on Nov 16, 2026
  14. removed
    status/in-review
    owner/agent
    on Nov 16, 2026
  15. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-16 14:50 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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions