Skip to content

Classify top-level reviewer feedback with the author-action binary - #196

Merged
trask merged 3 commits into
open-telemetry:mainfrom
trask:pr-dashboard-reviewer-feedback-binary
Jul 30, 2026
Merged

Classify top-level reviewer feedback with the author-action binary#196
trask merged 3 commits into
open-telemetry:mainfrom
trask:pr-dashboard-reviewer-feedback-binary

Conversation

@trask

@trask trask commented Jul 30, 2026

Copy link
Copy Markdown
Member

Fixes #151.

A maintainer reviewed opentelemetry-python-genai#147 saying the change papers over a deeper problem rather than fixing it. The dashboard read that as needing nothing from the author, so the pull request stopped being listed as theirs and the author was never told anything was outstanding. It was not a one-off: the evaluation set records that comment with no settled answer at all, because over five runs the shipped classifier never twice agreed with itself about it.

The cause is the question being asked. The classifier is given an open question — who has the next action for this feedback — and answers author, none, or unclear, which leaves it deciding on behalf of people it knows nothing about. It now answers the narrow question the evaluation set in #183 was built to measure: does this comment need something from the pull request author. On that same pull request the maintainer's review now comes out as the author's, while a reviewer's "PR looks good to me" still comes out as needing nothing, so it is discriminating rather than simply routing everything to the author.

Across the 441 pull request corpus, 611 top-level comments split 368 to the author and 243 to nobody.

Feedback the classifier cannot decide, or fails to read, now records that the author holds it instead of recording it as undecided. Both already reached the author, so no pull request changes hands; what changes is that the recorded reason says which way it failed rather than leaving that to a default further down.

One fix travels with this because it only matters once the classifier is live: the evaluation harness was scoring this classifier against answers it does not give, so every result counted as unanswered and the whole run would have read as total failure rather than a scoring bug.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Jul 30, 2026

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-07-30 15:20 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@trask
trask force-pushed the pr-dashboard-reviewer-feedback-binary branch from bf2c60c to 3d2eb75 Compare July 30, 2026 13:39
@trask
trask requested a review from Copilot July 30, 2026 13:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces top-level reviewer feedback triage with an author-action binary and aligns evaluation and fallback behavior.

Changes:

  • Adds binary reviewer-feedback classification and routing.
  • Updates evaluator vocabulary mappings.
  • Updates classification and fallback tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
classification.py Adds the binary prompt, verdict mapping, and classifier integration.
eval/score_reviewer_feedback.py Maps binary verdicts to evaluation labels.
test_top_level_actions.py Updates tests for binary verdicts and author-safe fallbacks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/scripts/pull-request-dashboard/classification.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@trask
trask marked this pull request as ready for review July 30, 2026 14:21
@trask
trask requested a review from a team as a code owner July 30, 2026 14:21
@trask
trask requested a review from maryliag July 30, 2026 14:21
@trask
trask merged commit b2b1f4e into open-telemetry:main Jul 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR dashboard result looks incorrect

3 participants