Repository navigation
fix(mcp): a dead PR watch is not silently re-armed - #644
Conversation
71fc378 to
e78f1fb
Compare
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
e78f1fb to
cae5f27
Compare
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
cae5f27 to
47be49e
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
After a watch's quiet deadline fired with gates still pending, some agents called watch_pull_request again on every wake, re-arming the same timer and cycling the thread for hours. watch_pull_request now refuses to re-arm a watch whose quiet wake fired with no PR activity since, and says to report the pending gates as a blocker and unwatch. The watch stays registered, so pushes, checks, comments and reviews still wake it and restart its timer. A deliberate restart passes restartAfterQuiet: true. Co-Authored-By: Claude <[email protected]> Carry-Group: incubator
Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
…esets accurate Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
When T3 stops a watch after 8 failed reads in a row (a 404, an inaccessible repository, or missing or unauthenticated gh), some agents called watch_pull_request again on every such wake, and each new watch stopped the same way. The give-up now marks the ended watch unreadable and tells the agent to report the blocker. Re-watching that link is refused unless the agent passes restart: true, the same acknowledgement a quiet-expired watch now needs (renamed from restartAfterQuiet). Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
|
@codex review |
47be49e to
a51a62d
Compare
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Follow-up from this PR's final report, not filed, by the owner's triage on 2026-11-08 PT. F4: the refusal check and the watch command aren't atomic, so a quiet wake landing between them could let one restart through. The worst case is one extra watch restart. |
Two kinds of PR-watch wake made Sol and Astra call
watch_pull_requestagain on every wake, restarting a wait that could only end the same way. Opus mostly stopped after one restart.gh, or a missinggh. Transport errors and rate limits keep the watch alive instead.watch_pull_requestnow refuses both restarts unless the agent passesrestart: true. The refusal tells the agent to report the blocker.quietDeadline.dueAt: null, which any push, check change, comment or review resets. The watch stays registered: failed or passed checks, new comments or reviews, and conflicts still wake it, and a push restarts its timer, so after a push the agent only needs the gate check.quietTimeoutMinutes: nullis still accepted.unreadable: trueon the ended watch (a new optional field on the watch contract). A new watch on that link is refused until it's acknowledged. The give-up wake no longer says "call watch_pull_request to watch it again". It says to report the blocker and to watch again only if the user asks.Why an acknowledgement parameter rather than a plain refusal: the tool already documents a deliberate restart after the quiet notice, and a plain refusal would remove it. Requiring an explicit flag keeps that path, and the default call can no longer re-arm silently. An unwatch after an unreadable stop is a no-op and doesn't clear the marker, so "unwatch, then watch" isn't a silent bypass.
The new parameter has no description of its own. The
quietTimeoutMinutesdescription was tightened to carry the rule, so the MCP tool list is 6 bytes below the base budget (75216).Proof: a handler table test covers refused, acknowledged, timer-disabled, armed-timer and plain ended-watch rows for both cases; its refused rows fail on main. The reactor give-up test asserts the unreadable marker.
vp run check:changed origin/lastcode/mainpasses. The existing quiet-wake eval guards (quiet-watch-pending-gates-handback,quiet-watch-stalled-review-handback) pass 8 of 8 on gpt-6.1-sol and gpt-6-astra on the final text. No newmcp-tool-usecase: a case can only paraphrase a wake, not render T3's text, so the unreadable wording is measured by the babysit eval.Local review: 2 rounds with gpt-6.1-terra (xhigh), approved; plus pre-push rounds for the budget rewording and the unreadable extension, with findings fixed or declined with reasons.
🤖 Generated with Claude Code (Claude Opus 5.5)