Repository navigation
ci: watchdog tells a head pushed after the label to re-apply merge-ready - #10209
Conversation
…ady (#10136) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 54 minutes. View limit details
Comment |
…plit Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Review of record, head b187d54 Angles: false-positive and noise risk, then shell correctness and injection, by an independent read-only reviewer on b9afcf8; fixes re-verified on this head. Findings and resolutions:
Local: 11 watchdog tests, Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Independent exact-head review: REPAIR_REQUIRED (source/oracle finding; no merge clearance). [P2] Recheck the newly visible run's status before recommending a restart — Observed bounded discriminator: unchanged production workflow; fake-gh test fixture returns Binding (2026-10-25T04:52Z):
Reconciliation: canonical writer remains the existing Claude author lane on Evidence:
Canonical owner's next action: repair |
|
Confirmed and fixed (commit not yet pushed at the time of writing, pushing now). Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Independent repair review of #10209: REPAIR_REQUIRED — comment-path race repaired; rendered summary still recommends restart. [P2] Propagate late-active suppression into the sweep disposition — Both queued and in-progress cases write zero comments/statuses but produce that row. The audit table still advises the operator to reapply a label that would cancel the live run, and falsely claims a notice was posted. Fix direction: distinguish posted/already-known/now-active outcomes and update the caller's row/counts to reflect in-flight suppression; assert the rendered summary as well as absence of writes. Confidence: high. Observed proof (bounded; no full qualification):
Exact subject: base Independent positive replay test-only tree Reconciled author repair receipt and prior exact-head review; no concurrent same-slice independent technical review or requested reviewer was visible. Canonical writer remains EffortlessSteven's Claude lane on Causal disposition/order: the original comment-path failure at b187d54 is superseded by passing exact-head proof on f445f8a; the summary consumer above remains unresolved. Canonical owner next action: repair that outcome propagation in #10209 and obtain fresh affected review. #10219's separate stale-admission retirement race stays with its existing writer; review its material correction/composition only after a supplied combined subject. Separate heads establish no combined qualification. |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the changed tests validate per-case notice behavior but do not exercise multiple PRs with distinct run/comment responses in one sweep.
- Confirm the test harness does not cover GitHub API pagination for issue comments or workflow runs, nor failure behavior when those paginated calls fail; the implementation relies on gh api semantics and shell error propagation.
- Confirm the new notice is limited to computed mergeability, stale PR activity, no required check, no active request, same-repo non-draft heads, and a stable head/base.
Refuted
- The new notice path duplicates conflict-report behavior or broadens the write surface beyond the requested re-apply notice.; refuted because: The workflow retains the existing conflict-report path and adds a separate marker-scoped comment only after eligibility checks; the allowlist and documentation explicitly describe both boundaries.
- The notice can be repeated on every sweep because marker detection is unreliable.; refuted because: The marker is a fixed HTML comment containing the full head SHA, and grep -F searches all paginated comment bodies; a fixture containing that marker verifies the quiet path.
Evidence gaps
- The implementation introduces GitHub API reads and issue-comment writes, while workflow hardening analysis was unavailable because zizmor was not installed.
- Model proof intent was rejected by deterministic validation.
- The proof packet cannot independently establish the claimed test pass because ripr failed and cargo-test was only scheduled late.
…ow (#10136) notify_dark now returns posted, already-posted or now-active; the sweep row and counts follow, so the table no longer advises a re-apply that would cancel a live run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Repaired in 190a1b5. Generated by Claude Code |
|
Generated by Claude Code |
…10136) A failed comment or run lookup no longer reads as no notice or no run; the notice is skipped and reported, and the next sweep retries. Also repairs the split audit-trail sentence in docs/CI.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Both Devin findings are valid and repaired in e07ee0c. (1) Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the test harness proves each notice scenario individually, but its shared workflow-runs and comments endpoints do not prove per-PR isolation when several PRs appear in one sweep.
- Confirm the test harness uses shared files for run and comment responses, so multiple PRs with distinct qualification states in one sweep are not exercised.
- Confirm paginated comments and workflow runs are relied upon through gh api --paginate, but the local fixture does not exercise multi-page API responses or a failure confined to a later page.
- Confirm the new notice path is exercised for single-PR cases, but not multiple PRs with distinct run and comment responses in one sweep.
- Confirm paginated API failures are not directly tested, although the implementation uses gh api --paginate and relies on command failure propagation.
Refuted
- The notice path broadens write behavior beyond the requested conflict report.; refuted because: The new path is explicitly marker-scoped and requires computed mergeability, same-repo non-draft state, no required check, no active request, and stable head/base; policy and documentation were updated consistently.
Parked follow-ups
- The sweep combines API reads, marker deduplication, active-run classification, comment publication, and operator-facing disposition in one helper and caller, duplicating lookup/error logic already present in report_conflict.
Evidence gaps
- The new behavioral test execution is not independently evidenced because cargo-test is scheduled late and ripr failed with exit code 2.
- Model proof intent was rejected by deterministic validation.
- The scheduled cargo-test evidence was still pending in the cached review packet.
|
Review of record, head e07ee0c. Angles: (1) correctness of the notice conditions and dedupe; (2) security shape of the workflow (no checkout, no dispatch, PR values only through env or quoted args, fixed status context, job-level Findings and resolutions, all repaired on this PR: an active run visible between the sweep's first lookup and the notice no longer gets restart advice (Steven, REPAIR_REQUIRED, repaired in f445f8a); the audit row and counts now report that case as in flight and the already-posted case as such, instead of "notice posted" (Steven, repaired in 190a1b5); a failed comment or run lookup now skips the notice and reports "failed" instead of reading as no run (Devin, repaired in e07ee0c); the split audit-trail sentence in CI.md is rejoined (Devin). Bot reviews from Gemini, CodeRabbit and the github-actions advisory were quota or advisory output and are not counted as review; their verification questions (multi-PR sweeps, multi-page pagination) are not covered by the fixture and stay as accepted limits. Proof on this exact head: Generated by Claude Code |
Requested by Steven · project thread
Summary
::warningin the watchdog job log. The sweep now comments once per head (markermerge-ready-dark:<sha>) telling the author to remove and re-applymerge-ready.unknownstate may be a conflict), no required check on the head, no merge-ready run in flight, same-repo, non-draft, head unchanged since the list call. Dirty heads keep the conflict report instead.unknownguard, drop the dedupe) fails them. Run-block budget 100 to 120, docs and a changelog fragment.Source-of-truth Links
Governing issue or accepted claim: #10136 (leftover, closed; follow-up requested in the project thread)
Acceptance delta (one sentence): a push after the label produces an actionable PR comment, not only a log warning.
Proof
10 watchdog tests,
check-workflows, readiness contract tests andcargo xtask precommitpass locally on b9afcf8. Live check after merge: dispatch the watchdog and read the sweep summary and any posted notice.Generated by Claude Code