Repository navigation
ci: clear the merge-ready conflict status on a clean re-check - #10135
Conversation
…nflict (#9842) 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 51 minutes. View limit details
Comment |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Review of record, head 54fd420 Angles: security and correctness/tests, by an independent read-only reviewer on 88f748a, then my repair.
Disclosed limit: a conflict that resolves stays red until 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! |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the lookup selects the first matching context/creator entry and treats that entry as authoritative, but the diff does not establish that GitHub returns combined statuses newest-first.
- Confirm the history query requests only 100 statuses without pagination, so a prior workflow-owned failure outside that page can be missed.
Evidence gaps
- The prior review thread reported 8 passing tests and repository policy checks, but the current sensor record marks ripr failed and cargo-test receipt-absent; no fresh executable proof is available in this lane.
- Model proof intent was rejected by deterministic validation.
- zizmor hardening evidence is unavailable and ripr failed, so workflow security and full Rust proof are not independently established.
…43, python 30, perl 23) main's blessed rows moved past the committed ceilings, so the ceiling test is red on main itself; same change as #10140 with values re-measured on the current head. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
The required check was red from main, not from this diff: Generated by Claude Code |
|
On the advisory review's two questions: GitHub's "list commit statuses" endpoint returns newest first, and the sweep PR's tests (#10142) pin that order with a newer-success-over-older-failure case. On pagination, one head would need more than 100 statuses before a bot failure fell off the first page, and the cost of a miss is one missing success flip on a non-required status. I am not adding pagination for that. The executable proof is the required check running on the current head. Generated by Claude Code |
The ceiling bump is waiting on Steven and does not belong in this diff. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the fixture does not prove the production API's newest-first ordering because it supplies statuses as an ordered array and the test harness preserves that order.
- Confirm the fixture supplies statuses in an assumed newest-first order, so it does not distinguish selecting the first list entry from selecting the latest matching failure across older entries.
- Confirm the workflow treats the first matching status as authoritative, but requests only the newest 100 statuses without pagination.
Refuted
- The implementation needs a broader helper or abstraction to avoid duplication.; refuted because: Rejected: the change adds a small test harness parameter and preserves the existing execution path; extracting production API helpers would add scope without removing meaningful duplication.
Parked follow-ups
- The workflow's prior-status lookup is limited to 100 combined statuses, so a workflow-owned failure older than the first page is not found.
Evidence gaps
- Fresh executable Rust proof is not yet available in the packet despite focused behavioral tests being added.
- Model proof intent was rejected by deterministic validation.
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the test fake does not prove the production API's newest-first ordering; it merely preserves fixture order and takes the first matching item.
- Confirm the fixture preserves caller-supplied status order, so it does not independently prove that the production API returns newest-first.
- Confirm the test harness models the API response order directly, so it does not independently prove that GitHub's first matching combined-status entry is authoritative across all matching entries.
- Confirm focused tests cover creator filtering, context filtering, already-cleared statuses, and moved-head protection.
Refuted
- The focused fixture may prove GitHub's newest-first API ordering.; refuted because: It does not: the fake API returns a preselected array verbatim. The seeded thread provides a source assertion, so this remains an open oracle gap rather than a proven production bug.
- The implementation needs a broader helper or abstraction to avoid duplication.; refuted because: Rejected: the change adds a small test-harness parameter and preserves the existing execution path; extracting production API helpers would increase scope without removing meaningful duplication.
Parked follow-ups
- A workflow-owned failure older than the first 100 combined statuses may be missed; this remains a bounded parked follow-up rather than a red/green defect.
- The status lookup uses only the first 100 combined statuses, so an older workflow-owned failure beyond that page is not found.
Evidence gaps
- Fresh executable Rust proof is unavailable in the packet: ripr failed and the cargo-test receipt is still pending.
- Model proof intent was rejected by deterministic validation.
|
Review of record, head 269d77a Angles: security, correctness and tests, read against the diff on this head.
CI: Generated by Claude Code |
Requested by Steven · project thread
Summary
merge-ready conflictstatus stayed red on a head until its next push, even after the base moved and the conflict disappeared. Now a re-appliedmerge-readylabel that finds a computed, non-dirty state looks up the latestmerge-ready conflictstatus on the head and, only if it isfailure, postssuccess. It never touches other contexts and posts nothing when no earlier failure exists.xtask/tests/merge_ready_conflict_notice.rs(clears its own failure; leaves an already-cleared status and a different context alone). Raises the workflow's run-block budget from 40 to 50 lines, updatesdocs/CI.md, and adds a changelog.d fragment.Source-of-truth Links
Governing issue or accepted claim: #9842 (follow-up to merged #9847)
Acceptance delta (one sentence): a conflict status posted by the notice workflow clears on a re-check once the conflict is gone.
Proof
7 test cases pass locally against real
jqand a fakegh;check-workflows,check-process-policy,check-policy-allandcheck-changelog-fragmentspass. The live behavior needs a labeled PR that conflicts and is then fixed on the same head, which I will run after merge.Generated by Claude Code