Skip to content

[Review agent] Pass PR description and linked issue context to review-candidate-verifier to avoid false intent-downgrade questions #70335

Open

Agent suggestions

Public preview

Description

@PureWeen

Is there an existing issue for this?

  • I have searched the existing issues.

Is your feature request related to a problem? Please describe the problem.

Summary

During review of #70304 (Renderer.Dispose / DisposeAsync early return in Renderer.HandleComponentException when _rendererIsDisposed is set, fixing #66322), review-candidate-verifier returned DOWNGRADE (downgradeKind: "intent", confidence: question) asking whether ignoring ComponentBase.DispatchExceptionAsync during synchronous renderer disposal was intended.

Root cause

Although prepare-review.cs fetches pull.json (which links #66322 and states that late DispatchExceptionAsync calls during/after renderer disposal should be safely ignored) and the PR includes unit test DispatchExceptionAsync_DuringRendererDisposal_DoesNotThrow, the coordinator only passed candidate claims, diff paths, and docs/*Guidance.md paths to review-candidate-verifier. Under review-candidate-verifier.agent.md's rule that a PR-added test alone establishes PR intent rather than a binding contract, any deliberate bug fix that changes edge-case behavior without an existing baseTip doc explicitly requiring the new behavior is downgraded to intent (question) when the verifier lacks the linked issue / PR intent context.

Describe the solution you'd like

Include pull.json (and linked issue summary when available in the frozen bundle) in the verifier input contract and distinguish addressing the linked bug report's target scenario from unmentioned collateral behavior changes.

Additional context

Tracked under #70231.

Activity

  1. github-actions commented on Nov 6, 2026

    @github-actions
    Contributor

    Triage Summary

    Area: area-infrastructure (review agent tooling: review-candidate-verifier, prepare-review.cs)
    Type: Task (agent input-contract change; no shipped product behavior)

    Potential Duplicates

    • None found

    Notes

    Generated by Issue Triage Agent for dotnet/aspnetcore for #70335 · copilot · auto · 14.6 AIC · ⌖ 1.03 AIC · ⊞ 7.6K · ◷

  2. added
    area-infrastructure
    on Nov 6, 2026
  3. PureWeen commented on Nov 12, 2026

    @PureWeen
    MemberAuthor

    Additional live campaign example where the PR description directly answered the reviewer's concern:

    • [blazor] Fix Web Worker initialization on CoreCLR #70504 (run 43043310215, inline comment r4539519917 on src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWebWorker-CSharp/wwwroot/dotnet-web-worker.js:8):
      • The PR description explicitly stated: "This intentionally stops automatically including host-assembly exports and removes the fallback to the main assembly when no assembly name is supplied."
      • Because pull.json was not passed to review-candidate-verifier (and WebWorkerClient.cs:8,17-18 sets DefaultAssemblyName = typeof(WebWorkerClient).Assembly.GetName().Name! and resolves assemblyName ?? DefaultAssemblyName), the reviewer published [UNRESOLVED] Host-assembly [JSExport] methods may no longer be callable when WebWorkerClient is supplied by a separate worker library (P2 · confidence: unresolved), questioning the exact intentional behavior change stated in the PR description (see also the Copilot app auto-reply under @maraf in r4548341925).
  4. PureWeen commented on Nov 12, 2026

    @PureWeen
    MemberAuthor

    Additional Evidence (dotnet/aspnetcore#70534 at dc94c971302ec3d144c72428b141a1202af9f3e1)

    During review of dotnet/aspnetcore#70534 (dc94c971302ec3d144c72428b141a1202af9f3e1, fixing dotnet/aspnetcore#19638, "Two-way databinding + CaptureUnmatchedValues + missing EventCallback"), two independent review runs evaluated the same candidate on src/Components/Components/src/Reflection/ComponentProperties.cs:160-164 (if (parameter.RawValue is IEventCallback { IsBinding: true }) calling ThrowForUnknownIncomingParameterName) — whether throwing when an incoming unmatched parameter has IsBinding = true breaks wrapper components that declare [Parameter(CaptureUnmatchedValues = true)] without declaring the bound callback parameter themselves and forward @attributes to a child component — and reached opposite verifier outcomes:

    1. Run without pull.json / linked-issue context in the verifier assignment (KEEP, P2 verified): While .github/skills/review-pull-request/SKILL.md:286-287 passes "the exact assigned issue, API, base-tip, or primary-repository contract paths" when assigned, prepare-review.cs bundles pull.json (which references #19638) without bundling the linked issue body, and this run did not pass pull.json to review-candidate-verifier. Even though the throw at ComponentProperties.cs:160-164 executes during the outer capture component's own SetParameterProperties (before any @attributes splatting occurs) — the exact entry path exercised by ComponentBindingTest.MissingBoundCallbackWithCapture_Throws (src/Components/Components/test/ComponentBindingTest.cs:39-52) and the raw-forwarding negative assertion at ComponentBindingTest.cs:415-417, alongside the positive declared/read forwarding tests at ComponentBindingTest.cs:149-168, 179-231, 380-414 (which strip IsBinding via callback.WithoutBinding() at src/Components/Components/src/ParameterValue.cs:27) — the verifier treated the capture-and-splat wrapper narrative as an untested input (intent: "n/a", contract: "n/a") and returned decision: "KEEP" (confidence: verified).
    2. Run citing linked issue #19638 as contract (DROP, contradictedLink: "contract"): A second run on the same commit cited linked issue #19638 (which establishes the reported missing-callback scenario on a component declaring CaptureUnmatchedValues = true) as a contract (review-candidate-verifier.agent.md:65) and returned decision: "DROP" (dropBasis: "contradicted", contradictedLink: "contract").

    Concrete Addition to the Solution

    1. Bundle linked-issue metadata alongside pull.json and pass both to review-candidate-verifier (.github/skills/review-pull-request/scripts/prepare-review.cs and .github/skills/review-pull-request/SKILL.md:274-289): Ensure every verifier run receives the same frozen PR description (pull.json) and linked-issue context rather than depending on ad-hoc coordinator assignment.
    2. Evaluate intent at the changed-line entry point before treating downstream wrapper narratives as untested inputs (.github/agents/review-candidate-verifier.agent.md:72-77): Clarify that when a candidate's throw or effect at changedLine (ComponentProperties.cs:160-164) occurs on the outer component before the candidate's downstream forwarding narrative is reached, a PR-added head test that exercises that exact entry condition and asserts the throw (ComponentBindingTest.cs:39-52, 415-417) establishes intent (and, when backed by the assigned issue #19638, confirms the intended behavior rather than an untested KEEP).
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

    area-infrastructure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions