Repository navigation
Resume observing a confirmed Mergify entry after a receipt change - #1854
Conversation
Architecture-Review: unchanged; Existing authenticated membership uses the exact-head follower with unchanged admission gates. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 07832b4449d25e633440b0ca70b45f1ba523f4ac, 44.3s: request_changes (0 critical, 1 important, 1 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.
| if not readiness.ready: | ||
| if (deadline is not None and pr.base_ref == config.base_branch | ||
| and mergify.membership(config.repo, pr.number, queue) is not None): | ||
| return _wait_for_mergify(config, pr, max(0.0, deadline - time.monotonic()), True) |
There was a problem hiding this comment.
suggestion: The observe-only path runs for any non-ready reason, not just a receipt change, and prints nothing about why
The task describes a receipt change. The condition actually covers every readiness.ready == False case, including failing required checks, unresolved blocking findings and draft state. In each case merge --wait now quietly follows the queue and cleans up the worktree after landing. Following an entry Mergify already holds is defensible, since the waiter checks the exact head and no writes happen. But the builder never learns that the local gates are currently failing.
Suggestion: print the _readiness_messages reasons, e.g. as warning: following existing Mergify entry although not ready: ..., before calling _wait_for_mergify. Also add one fixture case with a non-receipt reason, such as a failing check, so this broader scope is tested on purpose.
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by claude on 57d39fe15665bfa130be690e383fd2fd9adece37, 17.9s: approve (0 critical, 0 important, 1 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)
Findings without a file location:
- suggestion: Membership diagnostic is placed after the 'next:' guidance — When
_merge_check_hintreturns a hint such as; next: loopzero merge --wait, the error readsnot ready to request Mergify: <reasons>; next: loopzero merge --wait; Mergify membership unverified: HTTP 503. The membership diagnostic ends up after the suggested next step, so the next step no longer comes last. The behaviour is correct: the readiness reasons are kept, the PR is not admitted, and no write happens. It would read better with the diagnostic before the hint, for example by collectingunverified = f"; Mergify membership unverified: {exc}"and building... + unverified + hint. The test only checks for the substrings, so it would still pass. Non-blocking.
Native Claude output is retained in the restricted local review receipt.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Resume observing a confirmed Mergify entry after a receipt change
Context and goal
merge --wait, follow authenticated membership for the selected PR on the configured base and verify the same head at landing.Closes #1639.
Acceptance
Notes
The three incompatible-receipt cases fail at base
c9520ed10e22without making a membership read. The fix handles confirmed, absent and unverifiable membership through existing transports and exact-head landing checks.Security review scope covers the authenticated vendor lookup and the return into the existing observer with confirmation already true. Admission and its writes remain behind readiness.
Source delta +14, tests +15. The earlier Resume a confirmed Mergify entry without readmission #1682 closed without merging. This is a smaller implementation on fresh main.
Primary finding aa1fc9a5: a failed vendor lookup could hide the original
readiness reasons. The read-only branch preserves those reasons and adds a
membership diagnostic. The offline unverified case asserts both.
Merged
origin/mainatf2276685fd6fafter primary review. The size gatereports 8,104 source and 13,719 test lines at the repaired head.
Validation
Recorded for
57d39fe15665uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review