Repository navigation
Conversation
Architecture-Review: unchanged; native merge admission and cleanup still require GitHub evidence for the reviewed head. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 4c65947394ce950d08ee03060f6e006ee54c6251, 48.3s: approve (0 critical, 0 important, 2 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| argv = ( | ||
| "pr", "merge", str(number), "--repo", repo, *method, "--match-head-commit", head_sha, | ||
| ) | ||
| if strategy == "queue" and merge_pending(repo, number, head_sha): |
There was a problem hiding this comment.
suggestion: Only the queue strategy checks for admission before writing; squash/merge/rebase retries still send a second write
The check before the write (if strategy == "queue" and merge_pending(...)) only runs for strategy == "queue". merge() also treats a squash/merge/rebase request as accepted when GitHub queues it or turns it into an auto-merge request (test_merge_queued_returns_none with strategy=squash, auto=True). Example: a squash request is accepted as auto-merge, the reply is lost, and the run fails or is interrupted before the second read. The retry then sends another gh pr merge --squash. This retry case is the one the acceptance criterion "a retry observes admission before writing" describes. The second write is usually harmless because the read after it still finds the PR pending, but it is the same defect. Smallest fix: run the admission check for every strategy, which costs one GraphQL read, or explain in a comment why non-queue strategies are excluded. Then add the squash+auto case to the retry assertion in test_merge_queued_returns_none.
| _gh(*argv, timeout=300) | ||
| except GhError as exc: | ||
| raise MergeFailed(exc.command, exc.tail) from exc | ||
| except (GhError, ProcTimeout, OSError) as exc: |
There was a problem hiding this comment.
suggestion: The write error is dropped when a later verification step raises
write_error only appears in the final "neither merged nor queued" message. In two cases the write failure never reaches the user:
merged_sha(..., expected_head=...)raises "PR head changed before merge verification". This is the usual result of a--match-head-commitrejection.queue_erroris re-raised, for example whengh pr mergewas rejected for a failing required check and the queue lookup then had a transient error.
Before this change, the user always saw gh's rejection text. Smallest fix: attach write_error to the verification error. Either chain it (raise queue_error from write_error) or add its text to the message, and wrap the merged_sha calls the same way.
|
Owner queue route: the full sandboxed check passed on |
|
@Mergifyio queue |
🚫 Left the queue · conflict with base branch6 min in the queue, with no time running CI. So far
Reason The pull request conflicts with Conflicting file: Before this, the pull request was held in the queue behind 3 pull requests ahead of it. To get back in the queue
Times in UTC · dashboard · how the merge queue works |
|
No description provided. |
Architecture-Review: unchanged; merge recovery keeps the reviewed head checks and the conflict resolution only changes a test reference. Co-Authored-By: Codex <noreply@openai.com>
|
Superseded by #1436. Mergify reported a conflict with main, and Loop Zero declined a delta review of the resolved merge. The replacement retains the hosted eligibility test imports and carries the same native-merge recovery. |
Recover native merge after a lost GitHub reply
Context and goal
Closes #1325
Acceptance
Notes
Base
Base: b69efec
Validation
(no
loopzero checkrun recorded)Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review