Repository navigation
Agent suggestions
Public previewDescription
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.
Part of EPIC #70231.
On #70497 (85c375ba5e454bb09dd9a6b8b09652597aa3131e, re-run 43248403697), /review published a confidence: verified P2 inline finding (r4552604532 on src/Components/Server.AutoPause/src/js/AutoPauseManager.ts:243, review 5877323311):
P2 — Keep auto-pause armed for a replacement circuit while the tab remains hidden
...
Suggested fix: Preserve a pending hidden pause across disposal so thisfinallyschedules the replacement timer, for example by setting_hiddenTimerPendingafterclearHiddenTimer()when a pause is in flight anddocument.visibilityState === 'hidden'.
Inspection of the frozen source at 85c375ba5e454bb09dd9a6b8b09652597aa3131e and the run's agent artifact (events.jsonl subagent transcripts in run 43248403697) exposes three concrete gaps in candidate packaging and verification:
- Explicit design comment in the same file (
AutoPauseManager.ts:95) and cross-worker refutation:- In
onCircuitDisposed()(src/Components/Server.AutoPause/src/js/AutoPauseManager.ts:92-99), line95explicitly documents this exact lifecycle choice right abovethis.clearHiddenTimer():// A replacement started while hidden waits for the next visibility change to auto-pause. this.clearHiddenTimer();
- In earlier run
43192121099(review5872205880), thisAutoPauseManager.tsconcern was discarded without publication. In re-run43248403697(agentartifactevents.jsonl), theCrossCuttingworker readAutoPauseManager.ts:95andsrc/Components/Server.AutoPause/src/js/test/AutoPauseManager.test.ts:296-311and withdrew the defect hypothesis in its follow-up turn (retaining it only as an optional design question). - However, the
Blazorworker submitted the same scenario as a P2 defect without citing line95, and the coordinator packaged theBlazorcandidate forreview-candidate-verifierwithout includingCrossCutting's refutation orAutoPauseManager.ts:95.
- In
- Over-broad
contractpromotion toKEEP(verified) from a generalbaseTipsummary:- The verifier promoted
links.contracttoKEEP(downgradeKind: null) by citing the generalbaseTippublic option XML summary insrc/Components/Server.AutoPause/src/AutoPauseBrowserOptions.cs:7-9(pausing a circuit after the browser tab has been hidden forHiddenDelay), over-extrapolating a high-level steady-state summary into a requirement for mid-pause circuit disposal/replacement (a lifecycle that did not exist atbaseTip) to override an explicit edge-case lifecycle choice documented inhead(AutoPauseManager.ts:95).
- The verifier promoted
- Prescribed remedy breaks an in-repo unit test added in the same PR (
AutoPauseManager.test.ts:296-311):pauseNow()'sfinallyblock (AutoPauseManager.ts:243-245) runs:if (!this._disposed && (circuitVersion === this._circuitVersion || this._hiddenTimerPending) && !this._autoPaused && document.visibilityState === 'hidden') { this.startHiddenTimer(); }
- Because
onCircuitDisposed()incrementsthis._circuitVersionand resets_autoPaused = falsewhile leaving manager-levelthis._disposed === falseeven when no replacement circuit has started (e.g., after static-SSR navigation),r4552604532's suggested fix (settingthis._hiddenTimerPending = trueafterclearHiddenTimer()when a pause is in flight anddocument.visibilityState === 'hidden') causes an obsolete in-flightpauseNow()completion to callthis.startHiddenTimer()with no active circuit, invokingpauseCircuita second time and failing unit test'an obsolete pause completion does not rearm the hidden timer'(src/Components/Server.AutoPause/src/js/test/AutoPauseManager.test.ts:296-311at line310:expect(pauseCircuit).toHaveBeenCalledTimes(1)).
Describe the solution you'd like
(Note: Per .github/agents/review-candidate-verifier.agent.md:62-64, head comments and tests remain under review and must not be treated as binding contracts that automatically DROP a bug candidate, which would regress #69782 / V23 in #70250 when a PR author's comment/test encodes a real contract violation.)
- Include sibling-worker refutations and proposed fixes in the verifier package (
.github/skills/review-pull-request/SKILL.md:247-249, 267-292):- When multiple routed specialist workers inspect the same file/hunk and one worker withdraws, refutes, or downgrades a candidate citing specific
file:lineevidence (such asAutoPauseManager.ts:95andAutoPauseManager.test.ts:296-311) while another worker proposes it as a defect, require the coordinator to include the refuting worker'sfile:linecitations and the candidate's proposed fix in thereview-candidate-verifierinput package.
- When multiple routed specialist workers inspect the same file/hunk and one worker withdraws, refutes, or downgrades a candidate citing specific
- Clarify
links.contractandlinks.intentfor explicitheadedge-case lifecycle comments without a specific contradictingbaseTipcontract (.github/agents/review-candidate-verifier.agent.md:58-94):- Clarify in
lines 58-68that a generalbaseTipfeature/option summary (such asAutoPauseBrowserOptions.cs:7-9) that does not specify the edge-case lifecycle under review does not satisfylinks.contractto forbid an explicit edge-case design choice inheadunless a specificbaseTipcaller, test, interface, or protocol invariant requires the opposite behavior on that edge case. - Extend
links.intent(lines 72-77) so an explicitheadcode comment (such asAutoPauseManager.ts:95) or PR description documenting that exact input's behavior establishesintentwhencontractisn/a, routing the candidate toDOWNGRADE(downgradeKind: "intent",confidence: questionperlines 90-94) orDROP(dropBasis: "unestablished"perlines 64-68) rather thanKEEP(confidence: verified).
- Clarify in
- Verify candidate remedies against existing/PR unit tests in frozen source (
.github/skills/review-pull-request/SKILL.md:267-292, 360,.github/agents/review-candidate-verifier.agent.md:53-56, 79-86):- When a candidate includes a
Suggested fix, check nearby test files insource/<sha>(such asAutoPauseManager.test.ts:296-311) to confirm the prescribed fix does not contradict an explicit test assertion on a related path (e.g., circuit disposal without replacement). For non-test-gap candidates (SKILL.md:360, where a fix snippet is optional), omit a verifier-refutedSuggested fix(or extend the verifier/coordinator contract alongside [Review agent] Enforce strict 11-key JSON output from review-candidate-verifier with bounded normalization/retry (#70299, #70340) #70361) rather than publishing a fix snippet that breaks existing or PR unit tests, while keepingDROP(contradicted) when the broken assertion/remedy is the claim (lines 53-56).
- When a candidate includes a
- Synchronize embedded workflow verifier instructions:
- Mirror all
.github/agents/review-candidate-verifier.agent.mdupdates in.github/workflows/pull-request-review.md:995-1111and recompile.github/workflows/pull-request-review.lock.yml.
- Mirror all
Additional context
- Related to [Review agent] Pass PR description and linked issue context to review-candidate-verifier to avoid false intent-downgrade questions #70335, [Review agent] Enforce strict 11-key JSON output from review-candidate-verifier with bounded normalization/retry (#70299, #70340) #70361, Add candidate verifier agent with tiered intent handling to review-pull-request #70250, and Refine review-candidate-verifier rules for external triggers, test gaps, and secondary-failure catches #70319.
Activity
github-actions commentedon Nov 12, 2026
Triage Summary
Area:
area-infrastructure(review-pull-request skill and review-candidate-verifier agent tooling)Type:
Task(maintenance of review agent tooling)Potential Duplicates
Notes
-; the title references Prevent obsolete circuit resumes after enhanced navigation to static SSR. #70497 and the parent tracking issue is Review Agent Failure Tracking #70231.PureWeen commentedon Nov 13, 2026
Author response update on #70497 (
2026-11-13T06:49:56Z)In commit
74accaa13353d998f052815d29cc183debed1628("Fix hidden replacement"),@surya3655updated the PR in response to both comments:r4548699168, added JSDoc onReconnectionHandler.onConnectionUp()inCircuitStartOptions.ts:50-53documenting that exceptions thrown during disposal cleanup are logged without preventing teardown or causing disposal to reject (the documentation alternative suggested byr4548699168).r4552604532, changedAutoPauseManager.onCircuitDisposed()(AutoPauseManager.ts:96) to setthis._hiddenTimerPending = this._pauseInFlight && document.visibilityState === 'hidden'and updated the unit test from'an obsolete pause completion does not rearm the hidden timer'to'rearms the hidden timer after a retired pause completes without a visibility change'.(Both verifier pipeline failure modes documented above — omitting sibling-worker refutations when dispatching
review-candidate-verifierand not checking whether a proposed remedy contradicts an explicit test in the PR diff — remain valid structural improvements to track here.)PureWeen commentedon Nov 13, 2026
Additional live occurrence on 2026-11-13: PR #68633 (run
43404162989) — review whipsaw against prior review thread + PR regression test (r4561913441)Run
43404162989on #68633 (Fixed circuit disconnects caused by navigation during slow custom CircuitHandler execution, frozen head739615d592b75f9f609e9dd2ca9b12b33fff4951) publishedr4561913441(src/Components/Server/src/Circuits/CircuitHost.cs:823, P2,confidence: verified):**P2 — Don’t let client notification block circuit teardown**— claims thatawait TryNotifyClientErrorAsync(Client, GetClientErrorMessage(exception), exception);beforeUnhandledException?.Invoke(...)inReportRootComponentUpdateQueueOverflowAsync()can hang indefinitely ifJS.Errordelivery never completes, and suggests invokingUnhandledExceptionbefore awaitingTryNotifyClientErrorAsync.BlazorComponentsGuidanceworker explicitly clearedReportRootComponentUpdateQueueOverflowAsync("Queue overflow's terminal behavior is consistent with the circuit failure policy: it reports the client error and raisesUnhandledException(CircuitHost.cs:819-825)"), whileCrossCuttingGuidanceraised the candidate. The coordinator did not pass theBlazorComponentsGuidanceworker's assessment ORfeedback.jsontoreview-candidate-verifier.r4430065858/r4442087284, an earlier review specifically asked the author toawait TryNotifyClientErrorAsyncbefore raisingUnhandledExceptionbecauseCircuitRegistry.CircuitHost_UnhandledExceptionruns synchronously and callsClient.SetDisconnected()before its firstawait, which otherwise causesTryNotifyClientErrorAsync(if (!client.Connected) return;) to suppressJS.Error.overflow-verifier) noted inlinks.intentthatUpdateRootComponents_RejectsUpdate_WhenPendingQueueLimitIsReached(CircuitHostTest.cs:1389-1447) deliberately uses aTaskCompletionSource(clientErrorSendCompletion.Task) to holdJS.Errorincomplete and assertsAssert.Empty(unhandledExceptions)andAssert.True(clientProxy.Connected)before releasing the send. That never-completingSendCoreAsynctask is a test-only mock gate (not a reachable production SignalRISingleClientProxy.SendCoreAsyncbehavior), and the coordinator's suggested fix (var notification = TryNotifyClientErrorAsync(...); UnhandledException?.Invoke(...); await notification;) immediately failsAssert.Empty(unhandledExceptions)atCircuitHostTest.cs:1439.#70361):overflow-verifieralso returned 12 top-level keys (adding"rationale"alongside"reason") and nested{ "statement", "citations" }objects insidelinks.