Repository navigation
Conversation
Architecture-Review: unchanged; queue admission and landing verification are unchanged while queue I/O now shares the existing wait deadline. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on c54f092cf2a1673166c6a140288f2e519b844ea8, 86.5s: request_changes (0 critical, 2 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.
| except (LoopZeroError, github.GhError, _proc.ProcTimeout): | ||
| github.read_timeout(0) | ||
| raise | ||
| except github.ReadDeadline: |
There was a problem hiding this comment.
suggestion: A Mergify timeout hit during a read loses the queue detail already observed
If a read crosses the deadline, _queue_wait prints only the timeout_notice. The "still queued in {queue}. <candidate/dashboard URL>. Unmet candidate conditions: …" detail is dropped, even when state came back from an earlier membership read. That detail needs no further network call.
This is likely in the final bounded tick: it runs _landed, configured (which makes several Mergify and GitHub reads) and membership within remaining/2. It is also likely for short waits; the new test hits exactly this path. The task asks to keep diagnostics that can be built from observations already received.
Fix: have _wait_for_mergify record the last state somewhere _queue_wait's handler can reach (a holder object or a callback). On ReadDeadline, render _mergify_timeout_detail(..., query_report=False) from that state instead of the bare notice.
Architecture-Review: unchanged; the deadline applies to observations and leaves the merge request timeout in place. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by claude on cd4bf5ff0e2b77e27077957107edae7d524ec55b, 68.3s: 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)
Native Claude output is retained in the restricted local review receipt.
| _gh(*argv, timeout=300) | ||
| except GhError as exc: | ||
| raise MergeFailed(exc.command, exc.tail) from exc | ||
| budget = (bounded_reads(observation_deadline, token=None, retry=True) |
There was a problem hiding this comment.
suggestion: observation_deadline adds a parameter and a helper that the caller could replace with one with block
_gh reads _read_scope only for read-only argv (scope = _read_scope.get() if read_only else None, github.py:313). Now that the write uses a fixed timeout=300, wrapping the whole github.merge(...) call in github.bounded_reads(admit_by, token=None, retry=True) inside _merge_and_follow behaves the same way. The write stays uncapped, the verification reads are capped, and a late verification still raises ReadDeadline when the scope exits. So the keyword-only observation_deadline parameter, the nullcontext branch and the _verify_merge_request split are not needed. They also put cli deadline policy inside github.merge. Smallest fix: drop the parameter and the split, and scope the call in _merge_and_follow when admit_by is not None.
|
Superseded by #1269, which carries the approved changes and the resolution of the conflicts with main. |
Keep merge queue polling inside the wait budget
Context and goal
Closes #1155
Acceptance
Notes
Keep the existing admission rules and read endpoints. Bound polling with the deadline already used for source checks. Preserve timeout diagnostics that can be rendered using observations already received.
Base
main @ a4fa169
Validation
Recorded for
c54f092cf2a1(not current head)uv 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