Skip to content

[Review Agent Failure] Missing review-thread resolution metadata in feedback.json leads to re-litigating resolved threads #70551

Open

Agent suggestions

Public preview

Description

@PureWeen

Part of #70231

Summary

prepare-review.cs constructs feedback.json by fetching pull-request inline review comments from the REST endpoint pulls/{pr}/comments (ProjectFeedbackAsync, .github/skills/review-pull-request/scripts/prepare-review.cs:495-561, 661-666). That REST endpoint includes id, in_reply_to_id, user, path, line, original_line, commit_id, original_commit_id, diff_hunk, body, and html_url, but omits GraphQL reviewThreads resolution and outdated state (isResolved, isOutdated, threadId). As a result, when a PR author and human reviewer discuss a concern in an inline review thread, conclude the current design is intentional, and resolve the thread without changing the code at that line, the review agent cannot see that the thread was resolved as by-design and re-raises or re-litigates the settled design point.

Failure Mode

  • Category: Bundle Metadata Gap / Resolved-Thread Re-Litigation (prepare-review.cs feedback.json projection + .github/skills/review-pull-request/SKILL.md:54-60, 224-228, 305-307)
  • Affected PRs:

Concrete Evidence

  1. Current feedback.json projection in .github/skills/review-pull-request/scripts/prepare-review.cs:495-561, 661-666:
    • prepare-review.cs fetches repos/{owner}/{repo}/pulls/{pr}/comments?per_page=100 (lines 1546, 1558) and projects 15 fields per inline comment in ProjectFeedbackAsync (lines 513-531): id, pull_request_review_id, in_reply_to_id, user, created_at, updated_at, path, line, original_line, start_line, side, commit_id, original_commit_id, diff_hunk, body, and html_url.
    • Neither is_resolved nor is_outdated is present in feedback.json.
    • Meanwhile, .github/skills/review-pull-request/SKILL.md:56-57 states: "Read feedback.json for deduplication only — to avoid repeating a point already made in an open or resolved thread" and :305-307 states: "Deduplicate against feedback.json. Drop any finding or question whose point was already raised in an existing review comment, review summary, or issue comment (including resolved threads) unless the current commit reintroduced the problem after that comment."
  2. Concrete Case 1 — dotnet/aspnetcore#69478 (44d9e4508b6189d92aae797f2c836f84da170c21) on src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor:15-16:
    • In inline review thread #discussion_r4090786005 (resolved on GitHub, isResolved: true), a reviewer asked why clicking a row triggers _ toggleRow while clicking the tr directly does not, and the PR author explained that clicking anywhere on the row bubbles up to the tbody @onclick handler (QuickGrid.razor:15-16), which resolves the clicked row and toggles its expansion.
    • Without thread-resolution metadata or a rule treating author-explained resolved threads as settled design context, a review run raised a P2 finding on QuickGrid.razor:15-16 arguing that interactive elements inside cells without stopPropagation bubble to tbody and toggle the row.
  3. Concrete Case 2 — dotnet/aspnetcore#69767 (8403c802c004107371116c66179eceff8eb5552b) on src/Components/Server/src/Circuits/RemoteNavigationManager.cs:146, 253:
    • In inline review thread #discussion_r4256706843 (resolved on GitHub, isResolved: true), a human reviewer and the PR author explicitly discussed the log severity of Log.NavigationTimedOut (RemoteNavigationManager.cs:253, called from the catch (TaskCanceledException ex) block at line 146) and resolved the thread with LogLevel.Debug as the intended severity.
    • Because feedback.json lacked isResolved metadata and review-candidate-verifier does not receive feedback.json, the verifier spent verification budget certifying a KEEP finding on RemoteNavigationManager.cs:146 around the same timeout-catch behavior.

Root Cause

  1. prepare-review.cs relies solely on REST pulls/{pr}/comments for feedback.json and does not enrich inline comments with GraphQL pullRequest.reviewThreads metadata (threadId, isResolved, isOutdated, resolvedBy).
  2. SKILL.md:56-57, 224-228, 305-307 frames feedback.json strictly around exact-point deduplication (which only fires at Step 5 line 305 after candidate extraction and review-candidate-verifier execution), rather than pre-filtering candidates before Step 4 verification when a resolved reviewer/author thread on the same changed lines already settled the behavior as intentional.

Concrete Solution

  1. Enrich feedback.json with GraphQL review-thread resolution state in .github/skills/review-pull-request/scripts/prepare-review.cs (ProjectFeedbackAsync, lines 495-561):
    • Query GraphQL repository.pullRequest.reviewThreads(first: 100) (paginating as needed) to map each comment database ID (or root comment ID) to { thread_id, is_resolved, is_outdated } and include those fields on every entry in feedback.json's inline array (and optionally emit a top-level threads summary).
  2. Pre-filter already-settled threads before Step 4 (review-candidate-verifier) in .github/skills/review-pull-request/SKILL.md:224-228, 274-307:
    • Move the feedback.json deduplication check ahead of Step 4 (review-candidate-verifier) for any candidate that repeats a point already present in feedback.json, and explicitly instruct the coordinator that when a resolved inline thread (is_resolved: true) on the same changed lines includes an author/reviewer explanation confirming the behavior is intentional (and no subsequent commit invalidated that explanation), the coordinator must not re-raise that design choice or re-litigate adjacent consequences of that settled tradeoff without a contradicted primary repository contract.

Activity

  1. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Triage Summary

    Area: area-infrastructure (review-pull-request skill tooling under .github/skills/, not product code)
    Type: Bug (review tooling omits thread-resolution data and re-raises settled threads)

    Potential Duplicates

    • None found

    Notes

    Generated by Issue Triage Agent for dotnet/aspnetcore for #70551 · copilot · auto · 22.1 AIC · ⌖ 1.07 AIC · ⊞ 7.8K · ◷

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions