Repository navigation
Conversation
Architecture-Review: unchanged; polling cadence changes preserve the wait budget and exact-head checks. Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the bounded read retains its original deadline. Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the adaptive allowance stays inside the existing source wait deadline. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 7b90ec90491864282943d3cc17f2a4b1b6fa6025, 41.6s: request_changes (0 critical, 1 important, 0 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.
Architecture-Review: unchanged; readiness uses the original deadline and checks. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by claude on b21c22bf53a6948236f3f4e44e581ff83b423a50, 24.1s: 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.
| mergify.dequeue(config.repo, pr.number) | ||
| print(f"requested removal of PR #{pr.number} from Mergify") | ||
| return 0 | ||
| read_started = time.monotonic() |
There was a problem hiding this comment.
suggestion: Seeded read latency covers more work than a poll read
initial_read_time times all of _pr_readiness. That covers worktree.branch/worktree.head, pr_for_branch, _require_pushed and _readiness(..., announce_receipt=True). A later poll read in _wait_for_checks only runs pr_view, _verify_wait_snapshot and _readiness. When the initial read is the slowest read, 2 * longest_read can overstate the final-read cost. The allowance is capped at remaining / 2, so the final observation still happens. It may just come earlier than it needs to, which works against the late-green goal. If this matters in practice, a cheap fix is to start the timer just before the _readiness call inside _pr_readiness, for example by returning the elapsed time from there. Otherwise, a one-line comment saying the seed is a deliberate overestimate would explain the trade-off. In the test, the initial read path does not call github.pr_view, so the -read_time clock offset correctly charges exactly one read_time to the initial read.
|
Parked at the approved head. An offline clean merge into |
Shorten waits for Mergify landing and source checks
Context and goal
Fixes #1302
Fixes #1303
Replaces #1334, which exhausted its review rounds while the test-line cap blocked delivery. #1352 raised the cap to 13,850.
Acceptance
Base
Base: 2ef0b72
Notes
Offline replays failed before the fix. Landing was first detected at 313.5s and is now detected at 228s following admission at 199.5s. Ready and merge both returned timeout before the fix for the late-green cases. The focused tests pass with the fix, including timeout when a read exhausts its remaining allowance and the existing zero-budget and queue verdicts.
The full suite caught a one-second wait that needs 250ms for the final read. The final interval now preserves up to half a second for short waits, bounded by half the remaining time. The short-budget case and audit replays pass together.
The 49 focused offline tests pass, including seven seconds of fake read latency. The replacement merges current main. Its test count is 13,567 against the 13,850 limit.
Short waits also measure the first live readiness read, even when the waiter reuses that result. The ready and merge replays with 1.25 seconds of fake read time failed on the primary-reviewed head and pass with this change.
Validation
Recorded for
7b90ec904918(not current head) (unverified, runloopzero check)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