Repository navigation
Conversation
Architecture-Review: unchanged; freshness still governs waiting while the existing checks and eligible review govern readiness. Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the conflict resolution combines imports for review reservation and timestamp parsing. Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the same response headers are captured during waits. Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the resolution preserves both branches’ CLI tests. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 2479b47922e224f580ef4e2f4820d91dec9d5800, 28.5s: approve (0 critical, 0 important, 3 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 api_get(endpoint: str) -> object: | ||
| def api_get(endpoint: str, *, response_headers: dict[str, str] | None = None) -> object: |
There was a problem hiding this comment.
suggestion: api_get branches on response_headers when it could just pass it through
api_get only passes response_headers to _gh_json when it is not None. _gh already treats None as "don't capture", via _capture_headers. That makes the branch redundant, and it adds a second call path to keep in sync. Smallest fix: replace both lines with a single return _gh_json("api", endpoint, response_headers=response_headers).
|
|
||
|
|
||
| def _rest_rows(endpoint: str, what: str) -> list[dict]: | ||
| def _rest_rows(endpoint: str, what: str, **kwargs) -> list[dict]: |
There was a problem hiding this comment.
**suggestion: Untyped kwargs passthrough in _rest_rows/_pr_reviews
_rest_rows and _pr_reviews forward bare **kwargs to github.api_get. The only option they actually forward is response_headers, and the bare **kwargs hides that from type checkers and readers. Smallest fix: declare the parameter explicitly as *, response_headers: dict[str, str] | None = None in both functions. That is the same signature api_get and _gh_json use.
| @@ -294,25 +305,26 @@ def _readiness( | |||
| reason = f"PR #{pr.number} {github.MERGE_HOLD_MESSAGE}" | |||
| return github.Readiness(ready=False, reasons=(reason,)) | |||
| if reviews is None: | |||
There was a problem hiding this comment.
suggestion: Header dict setup split across if/else
headers is assigned in both branches, and the first branch then passes headers if workflow_wait else None. It is simpler to write headers: dict[str, str] = {} once before the if reviews is None: check and keep the conditional pass-through. Behaviour stays the same and the block loses three lines.
|
@Mergifyio queue |
⏳ Waiting for queue conditionsQueue rule Queue rule
|
❌ Left the queue ·
|
|
No description provided. |
Co-Authored-By: Codex <noreply@openai.com>
34889c3 to
861dda1
Compare
There was a problem hiding this comment.
loopzero delta review by claude on 861dda106e6ed9f6b1275e284678454a029f8ebf, 19.8s: 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.
| failed_at = { | ||
| "tie": "2026-09-23T12:00:00Z", | ||
| "missing": None, | ||
| "fractional-newer": "2026-09-23T12:00:00.250Z", |
There was a problem hiding this comment.
important: Refactor drops the only sub-second staleness check
This delta removes "fractional-review": "2026-09-23T12:00:00.000Z" from failed_at. The parametrize row (False, 5, "fractional-review", True, 0, True) at line 2723 is still there, so its failure time now falls back to 2026-09-23T11:59:59Z. That is a full second before the review at 12:00:00.125Z.
Before this change, the case checked that a failure 125 ms before the review counts as stale. An implementation that drops the fractional part would see 12:00:00 vs 12:00:00, treat it as a tie, return exit 1, and fail the test. With the fallback value, that implementation now passes.
fractional-newer (review 12:00:00Z, failure 12:00:00.250Z) does not cover this either: truncation also gives the expected not-stale result there. After this change, no case in the matrix detects lost sub-second precision, even though the task's acceptance and problem statement cover fractional and same-second instants.
The commit is described as a fixture reuse, so the lost coverage is easy to miss. Smallest fix: restore the "fractional-review": "2026-09-23T12:00:00.000Z" entry in failed_at. The other changes in this delta keep behavior the same: the runs/statuses rewrite matches the old conditional expressions, and formatdate(server_now, usegmt=True) gives the same output as the old format_datetime call.
|
Superseded by #1453. That head restores the 125 ms stale-verdict assertion identified in review and keeps the test delta at zero lines. |
Compare readiness using GitHub timestamps
Context and goal
Closes #1158
Closes #1159
Acceptance
Notes
Supersedes Compare readiness using GitHub timestamps #1198. Carries the approved diff from
da40f81f2042plus the merge resolution in the CLI tests.GitHub server time affects the wait decision only. The existing review criteria, check requirements, grace durations and monotonic wait budget remain in place.
Pre-fix replay: fractional review timestamps and the host clock behind by 40 seconds both returned exit 1. The focused post-fix matrix passed 28 cases.
Base
main @ 5137bf0
Validation
Recorded for
34889c3445ffuv 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