Repository navigation
Agent suggestions
Public previewDescription
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.csfeedback.jsonprojection +.github/skills/review-pull-request/SKILL.md:54-60, 224-228, 305-307) - Affected PRs:
dotnet/aspnetcore#69478(44d9e4508b6189d92aae797f2c836f84da170c21)dotnet/aspnetcore#69767(8403c802c004107371116c66179eceff8eb5552b)
Concrete Evidence
- Current
feedback.jsonprojection in.github/skills/review-pull-request/scripts/prepare-review.cs:495-561, 661-666:prepare-review.csfetchesrepos/{owner}/{repo}/pulls/{pr}/comments?per_page=100(lines1546, 1558) and projects 15 fields per inline comment inProjectFeedbackAsync(lines513-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, andhtml_url.- Neither
is_resolvednoris_outdatedis present infeedback.json. - Meanwhile,
.github/skills/review-pull-request/SKILL.md:56-57states: "Readfeedback.jsonfor deduplication only — to avoid repeating a point already made in an open or resolved thread" and:305-307states: "Deduplicate againstfeedback.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."
- Concrete Case 1 —
dotnet/aspnetcore#69478(44d9e4508b6189d92aae797f2c836f84da170c21) onsrc/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_ toggleRowwhile clicking thetrdirectly does not, and the PR author explained that clicking anywhere on the row bubbles up to thetbody@onclickhandler (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
P2finding onQuickGrid.razor:15-16arguing that interactive elements inside cells withoutstopPropagationbubble totbodyand toggle the row.
- In inline review thread
- Concrete Case 2 —
dotnet/aspnetcore#69767(8403c802c004107371116c66179eceff8eb5552b) onsrc/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 ofLog.NavigationTimedOut(RemoteNavigationManager.cs:253, called from thecatch (TaskCanceledException ex)block at line146) and resolved the thread withLogLevel.Debugas the intended severity. - Because
feedback.jsonlackedisResolvedmetadata andreview-candidate-verifierdoes not receivefeedback.json, the verifier spent verification budget certifying aKEEPfinding onRemoteNavigationManager.cs:146around the same timeout-catch behavior.
- In inline review thread
Root Cause
prepare-review.csrelies solely on RESTpulls/{pr}/commentsforfeedback.jsonand does not enrich inline comments with GraphQLpullRequest.reviewThreadsmetadata (threadId,isResolved,isOutdated,resolvedBy).SKILL.md:56-57, 224-228, 305-307framesfeedback.jsonstrictly around exact-point deduplication (which only fires at Step 5 line305after candidate extraction andreview-candidate-verifierexecution), 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
- Enrich
feedback.jsonwith GraphQL review-thread resolution state in.github/skills/review-pull-request/scripts/prepare-review.cs(ProjectFeedbackAsync, lines495-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 infeedback.json'sinlinearray (and optionally emit a top-levelthreadssummary).
- Query GraphQL
- 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.jsondeduplication check ahead of Step 4 (review-candidate-verifier) for any candidate that repeats a point already present infeedback.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.
- Move the
Activity
github-actions commentedon Nov 12, 2026
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
Notes