Skip to content

feat(roadmap): measure review precision on 30 live PRs #6275

Open

Description

@devops-cli-service

Split from #5522.

Problem: D7 of the approved pipeline split design (tracker #5482) needs the review unit to reach 80% precision or more on 30 ready delivery PRs. Watch can then read a failed review.verdict as a draft reason. The offline precision function and result line come from #5522. This part runs the review unit in shadow, collects one person's verdict for each finding, and records the measured precision. Why deferred: This part waits on the review unit #5521, on owner time for about 30 verdicts (about 2.5 h), and on about 8 weeks of live ready delivery PRs unless replays add cases. The current issue can deliver the offline calculation without those waits. Acceptance criteria: - [ ] The review unit (#5521) runs as the App in shadow on live ready delivery PRs and on replays of closed delivery PRs. It writes one review session for each PR. - [ ] A person gives one verdict for each finding: verified, invalidated, mitigated or unverified. - [ ] The review eval command from #5522 prints review_precision prs=<n> n=<n> precision=<p> ci_low=<l> ci_high=<h> for the collected review sessions. - [ ] A comment on this issue gives the result lines, the PR count, the decided finding count, the precision and its Wilson interval. - [ ] docs/roadmap/job-success.md records the measured precision and interval, with the date and the devops-cli version. - [ ] The measured precision is at least 0.80 before watch uses a failed review.verdict as a draft reason.

Proposed design

Problem statement

Do not use a failed review.verdict as a draft reason until the measured review precision reaches 0.80 on 30 ready delivery PRs. This item runs the review unit in shadow, collects one person verdict for each finding, computes the precision and Wilson interval, posts the result, and records it in docs/roadmap/job-success.md. The work waits on #5521, #5522, owner time for about 30 verdicts, and about 30 live ready delivery PRs.

Acceptance criteria

Requirement: Measured precision record

docs/roadmap/job-success.md SHALL record the measured review precision, the PR count, the decided finding count, the precision and the Wilson interval.

Scenario: Precision record present

  • WHEN uv run devops ci --check --only docs runs after the docs update.
  • THEN The command exits 0 and rg prints the result line with the PR count, decided finding count, precision and Wilson interval.

Requirement: Record date and version

docs/roadmap/job-success.md SHALL give the date and the devops-cli version of the measurement.

Scenario: Date and version present

  • WHEN uv run devops ci --check --only docs runs after the docs update.
  • THEN The command exits 0 and rg prints the date and the devops-cli version of the measurement.

Requirement: 0.80 gate statement

docs/roadmap/job-success.md SHALL state whether the measured precision is at least 0.80 for watch to use a failed review.verdict as a draft reason.

Scenario: Gate statement present

  • WHEN rg -n '0.80' docs/roadmap/job-success.md runs after the docs update.
  • THEN The command prints a sentence that says whether the precision passes the 0.80 gate.

Requirement: Pending a person after the merge

A person SHALL post a comment on issue #6275 with the result lines, the PR count, the decided finding count, the precision and the Wilson interval.

Scenario: Measurement comment posted

Existing Tool Considered

No alternatives check has run. No open, maintained tool covers the need. statsmodels covers only the Wilson interval; it lacks review execution, verdict collection and session writing. The precision result line comes from #5522, so this item builds no precision code. A custom harness would cost about 30,000 tokens and 2 days.

Key questions

  • Which verdicts count as true positives in the precision?: verified and mitigated count as true positives. invalidated counts as a false positive. unverified stays out of the decided count. (best practice) [sources: CONTEXT.md:210]
    • Rejected: Verified only. CONTEXT.md says a mitigated finding is a real defect that a guard limits.
    • Chosen: Verified and mitigated. Both verdicts name a real defect; unverified has no decision and invalidated is false.
    • Rejected: All decided verdicts. It counts an invalidated false positive as a hit.
  • How many PRs and which interval does the measurement use?: Use 30 ready delivery PRs and the Wilson interval. Replays of closed delivery PRs can fill the 30 cases. (best practice) [sources: docs/roadmap/job-success.md, docs/guidelines/agentic-jobs.md:80]
    • Chosen: 30 PRs with the Wilson interval. D7 and the job-success method use 30 attempts and the Wilson interval.
    • Rejected: Fewer than 30 PRs. The page calls fewer than 30 attempts too few and gives no grade.
    • Rejected: 30 findings. The issue counts PRs, not findings.
  • Where does the measured precision go?: The measurement goes in a comment on this issue and in docs/roadmap/job-success.md. Both give the date and the devops-cli version. (best practice) [sources: docs/roadmap/job-success.md]
    • Rejected: Comment only. The issue requires the docs page to hold the measured value.
    • Rejected: Docs page only. The issue requires a comment with the result lines and counts.
    • Chosen: Comment and docs page. The comment gives the evidence and the docs page holds the durable record.

Fit

Fits in one pull request.

Suspected block

Owner time for about 30 verdicts (about 2.5 h) and about 30 live ready delivery PRs (about 8 weeks without replays).

Dependencies

#5521, #5522

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    on Nov 18, 2026
  2. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor
    • Possible duplicate: feat(roadmap): measure the precision of the review unit on 30 PRs #5522, which may ask for the same change. The model names Measure review unit precision on 30 PRs by running in shadow, collecting human verdicts, and recording the precision with Wilson interval as the change that both ask for. The candidate is explicitly split from #5522 and asks for the same result: run the review unit in shadow, collect 30 verdicts, compute precision with Wilson interval, and record it. A person closes one of the two if that is so.
  3. added
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 18, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 29e3a03 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  5. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

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/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions