Skip to content

Clean rereview blocked as 'another stage published after it' because repeated receipts are read as newer publications #528

Backlog

Description

@datacas

Problem

A clean rereview under ci_policy: parallel is stopped as BLOCKED with "another stage published after it", although nothing was published after it.

receipt_problem in scripts/cycle_review_gate.py collects every receipt from every trusted comment in comment order and checks receipts[-1]["attempt_id"] not in attempts. An accumulating review comment carries its own receipt first and then repeats the earlier attempts' receipts (#438). So the last receipt in the list is an old, quoted one (for example the implement receipt), never the newest stage.

Observed (PR #527, issue #522)

Receipts in the last trusted comment, in body order:

rereview/1e63bb51/4084fce5/REVIEW_PASSED_AWAITING_CI | review/d2a68bcb/8b50f265/APPROVED | review/5eac4d08/8b50f265/CHANGES_REQUESTED | resolve/997cf707/4084fce5/RESOLVED | implement/e78f6ac9/8b50f265/IMPLEMENTED

Stop line:

the rereview reported REVIEW_PASSED_AWAITING_CI for 4084fce51f48, but another stage published after it; the receipt on the change request is the record of a clean review

Meanwhile, the head was 4084fce, ci_gate.py --sha 4084fce… --once returned CI_PASSED, the PR was OPEN MERGEABLE CLEAN, and no comment was created or edited after the rereview comment. The stop summary also printed CI CI_PASSED on 8b50f2654cfe, the head before the resolution, which suggests a stale SHA in the reported CI line.

Expected

"Published after" is judged by publication order: the newest receipt of each attempt is its first occurrence in the latest comment that carries it, or the comment's timestamp is compared. Receipts repeated from earlier attempts do not count as later publications. A clean rereview whose receipt is the newest publication goes to the CI gate and ends READY_FOR_MANUAL_MERGE on CI_PASSED.

Acceptance criteria

  • AC-1: a comment that carries the gated attempt's receipt followed by repeated earlier receipts does not trip "another stage published after it".
  • AC-2: a stage receipt that really was published after the gated one (a newer comment, or a new attempt ID) still blocks.
  • AC-3: the reported CI line names the SHA the gate actually checked.
  • AC-4: regression tests cover AC-1 to AC-3.

Every parallel cycle that reaches a clean rereview after a resolution is blocked today, hence priority: urgent.

Activity

  1. added
    bug
    priority: urgent
    P0
    on Nov 24, 2026
  2. added a commit that references this issue on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0bugpriority: urgent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions