Repository navigation
Conversation
Architecture-Review: unchanged; the final source observation uses its existing read deadline and preserves zero-wait behavior. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 68f4f549f47beb3d7506b56fbb46eb4db6919218, 40.7s: 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.
| def test_source_wait_reads_once_before_first_interval( | ||
| wt, gh, capsys, monkeypatch, source_queue_api, command, | ||
| ): | ||
| def test_source_wait_reads_once_before_first_interval(wt, gh, capsys, monkeypatch, source_queue_api, command): |
There was a problem hiding this comment.
suggestion: Test name no longer matches what it checks
With --wait=8, the remaining 8s is already less than the first 30s interval. The test now goes straight to the late-read branch and asserts a sleep of 7.2s, so it never exercises the 'first interval' path its name describes (the earlier clock.now == WAIT_INTERVAL check). Other tests still assert the leading 30.0 sleep, so overall coverage is fine. Consider renaming the test (for example ..._reads_once_then_late_before_deadline) so a future reader doesn't assume the regular interval is covered here.
Architecture-Review: unchanged; ready and merge both account for observed read latency within the existing wait deadline. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by claude on 71cef5a334b896f291e0335f238a7f63bffae080, 19.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.
| waited = _wait_with_deadline(wt, config, pr, args.wait, kicked=True, started=started, | ||
| args=args, allow_skipped=True) | ||
| args=args, allow_skipped=True, | ||
| initial_read_time=started - read_started) |
There was a problem hiding this comment.
suggestion: Second ready wait discards read latency seen during the first wait
The post-mark_ready wait gets initial_read_time=started - read_started, which is only the latency of the initial _pr_readiness read. In the draft-with-pending-checks path, the first _wait_with_deadline (line 1234) may have seen much slower reads. That longest_read is local to _poll_until and is lost. The second wait shares the same started/deadline, so its late-read allowance can be sized from a stale, smaller latency. The final observation is then scheduled too close to the deadline and gets cut off by ReadDeadline, so the result is a timeout where a passing check could have been seen. The wait still stops at the deadline, so this is not a correctness bug. Smallest fix: return or thread the observed longest read out of the first wait, or keep the maximum in a shared value, and pass it to the second call.
Architecture-Review: unchanged; Keep the approved deadline accounting with main’s explicit branch lookup. Co-Authored-By: Codex <noreply@openai.com>
|
Merged main at
Conflict resolution from diff --git a/src/loopzero/cli.py b/src/loopzero/cli.py
remerge CONFLICT (content): Merge conflict in src/loopzero/cli.py
index 4860d556..bda79f20 100644
--- a/src/loopzero/cli.py
+++ b/src/loopzero/cli.py
@@ -1314 +1313,0 @@ def cmd_ready(args: argparse.Namespace) -> int:
-<<<<<<< 71cef5a3 (Reserve time for the initial ready observation)
@@ -1316,2 +1314,0 @@ def cmd_ready(args: argparse.Namespace) -> int:
- pr, readiness = _pr_readiness(wt, config, workflow_wait=args.wait is not None)
-=======
@@ -1319 +1315,0 @@ def cmd_ready(args: argparse.Namespace) -> int:
->>>>>>> a6403fe4 (Reuse the PR reads that bracket hosted eligibility (#1766))Focused tests passed (91). The size gate passed at 8188/8,250 source lines and 13,784/13,850 test lines, with zero test-line growth. Awaiting your verification and the owner-priority landing order. |
|
The local size numbers above apply to this PR head. Main advanced to |
|
Lean verification of the conflict-only refresh (in place of a third review round): head |
|
Superseded by #1812, which carries the verified net change from fresh main and has primary approval on its new head. Both review rounds on this PR were spent before the conflict-resolution merge. |
Carry the verified net change from #1743. Architecture-Review: unchanged; Keep the approved deadline accounting with main’s explicit branch lookup. Architecture-Review: unchanged; ready and merge both account for observed read latency within the existing wait deadline. Architecture-Review: unchanged; the final source observation uses its existing read deadline and preserves zero-wait behavior. Co-authored-by: eowca <4008965+eowca@users.noreply.github.com> Co-authored-by: Codex <noreply@openai.com>
Observe passing source checks closer to the wait deadline
Context and goal
Closes #1303
Acceptance
Base
Base: 481383a
Notes
Supersedes the #1303 slice of #1425. The last read uses the existing bounded GitHub calls and preserves the current wait budget and verdicts.
Validation
Recorded for
71cef5a334b8uv 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