Skip to content

Fix P07/P09 candidate admission during queue label changes - #120

Merged
brettheap merged 1 commit into
mainfrom
ci/p07-p09-candidate-label-race-119
Nov 21, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/p07-p09-candidate-label-race-119

Conversation

@brettheap

@brettheap brettheap commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fix the exact-pair PR readback race reproduced from candidate merge queue: checking #97 + #103 together on main (61110e1) #119: Mergify removed P09's `dequeued` label during verification, and whole-response equality treated it as source drift.
  • Ignore only `labels` and `updated_at` in the exact-pair readback. Keep source facts, live branch/main refs, fast and delivery evidence, review, and tree checks in place.
  • Add a regression for the recorded label transition and refusal assertions for meaningful PR and ref changes.

Validation

  • Reproduced the original refusal using candidate merge queue: checking #97 + #103 together on main (61110e1) #119 and the recorded label transition; the patched read-only replay admitted both members.
  • Regression red before, green after. All 716 selected local checks passed, including two Git-history-dependent checks verified in a clone at the exact base.
  • Full ordinary PR CI and exact-head local review required before merge. This PR does not authorize a canary retry, requeue, source PR edits, or any change to the P08 hold.

Summary by Sourcery

Allow P07/P09 exact-pair candidates to pass readback verification through queue label changes without weakening source or ref integrity checks.

Bug Fixes:

  • Prevent candidate admission from being rejected when queue label changes update otherwise irrelevant pull request metadata during exact-pair verification.

Enhancements:

  • Preserve validation of meaningful pull request fields and branch/main refs while tolerating label and timestamp churn.
  • Add regression coverage for accepted label transitions and refusal of substantive source or ref changes.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 6 hours and 10 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Ignore only labels and updated_at when comparing the exact-pair PR readback, while continuing to verify source metadata and live refs.

  • .github/ci/delivery_p07_p09.py L137-145

Tests

Cover admission during queue-label churn and refusal when meaningful PR metadata or branch and main refs change.

  • tests/test_ci_p07_p09.py L156-193

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T16:25:50.229004Z 6ca79ba Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 6ca79bad37

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@brettheap

Copy link
Copy Markdown
Contributor Author

Exact-head local Codex panel review for PR #120: head 6ca79ba, base 61110e1. The coordinator and ten specialists (architecture, performance, security, QA, static analysis, API integration, data integrity, reliability, maintainability and CI) found no actionable findings.

The comparison tolerates only top-level labels and updated_at. The exact-pair scope, substantive PR fields, live branch and main refs, source CI/review evidence, and the candidate/tree and heavy/Sonar requirements remain in force. The regression passes label churn but refuses changes to source metadata or either ref. Exact diff hygiene, the original-vs-fixed candidate replay, and 716 selected isolated local tests support this verdict.

This is local review evidence, not a hosted review or GitHub approval. The hosted Codex connector separately reported no findings on this exact head. The merge waits for ordinary full PR CI, including both test aggregates and the delivery gate. This does not authorize a canary retry, requeue, or any change to #97, #103, or P08.

@brettheap
brettheap merged commit 50731e2 into main Nov 21, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant