Repository navigation
Compare readiness using GitHub timestamps - #1841
Conversation
Co-Authored-By: Codex <noreply@openai.com> Architecture-Review: unchanged; readiness still relies on GitHub evidence and its existing check gates.
There was a problem hiding this comment.
loopzero primary review by claude on ea129f83d3822317bfd277834f4385eab004bb58, 48.4s: 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.
| if reviews is None: | ||
| reviews = _pr_reviews(config.repo, pr.number) | ||
| dates: list[str] = [] | ||
| reviews = (_pr_reviews(config.repo, pr.number, **({"dates": dates} if workflow_wait else {})) |
There was a problem hiding this comment.
**suggestion: Response Date reaches the caller through untyped kwargs and an output list
To get the HTTP Date to _readiness, the change adds **kwargs to _rest_rows, _pr_reviews, api_get and _gh_json, and adds a dates output list to _gh. _readiness then builds the call with **({"dates": dates} if workflow_wait else {}). Type checking can no longer see these keyword arguments, so a misspelled keyword would only fail at runtime inside _gh. Every page also overwrites the list as a side effect. The behaviour is correct today. A smaller fix: give _rest_rows, _pr_reviews, api_get and _gh_json an explicit dates: list[str] \| None = None parameter and pass dates=dates unconditionally. Collecting the Date outside waits costs nothing, so the conditional dict-splat can go.
| } | ||
| for name, cr in latest_runs.items(): | ||
| state = cr.get("conclusion") or cr.get("status") or "unknown" | ||
| timestamp = cr.get("started_at" if state in _PENDING_CHECKS else "completed_at") |
There was a problem hiding this comment.
suggestion: A completed run without completed_at no longer falls back to started_at
Before this change the timestamp was completed_at or started_at. Now a completed or failed run reads only completed_at, and a missing value becomes None. A failure with no completed_at is therefore never treated as stale, so the wait stops instead of waiting. That is the conservative choice and fits the rule that missing values are not evidence of freshness. Still, it is a behaviour change that no test covers. Add a test row for it, or a short comment saying the stricter rule is deliberate.
|
|
||
|
|
||
| ReadinessTimestamp = tuple[datetime, str] | ||
|
|
There was a problem hiding this comment.
suggestion: ReadinessTimestamp's string part needs a comment
ReadinessTimestamp pairs a datetime with a string holding the fractional digits beyond microseconds, with trailing zeros removed. Comparing the tuples is correct only because those strings are compared character by character as decimal fractions that start at the same digit. That depends on removing the trailing zeros and on the datetime part being in UTC. Add a one-line docstring on readiness_timestamp explaining this, so a later change, such as comparing only the datetime or dropping the zero removal, does not break the sub-microsecond ordering without anyone noticing.
Co-Authored-By: Codex <noreply@openai.com> Architecture-Review: unchanged; conflict resolution only combines readiness test cases.
There was a problem hiding this comment.
loopzero delta review by claude on 746bbbd43b54c34dc949e9487e7247b7969b5a2b, 9.7s: 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.
| (False, True), (True, True), (False, "tie"), (False, "missing"), | ||
| )), | ||
| (False, 300, False, False, 1, False), | ||
| *[(False, 180, failure, True, 1, False) for failure in |
There was a problem hiding this comment.
suggestion: Merged parametrize rows mix generator and list splats
The merge kept main's rows, which splat generators (*(... for ...)), and appended the branch's rows, which splat lists (*[... for ...]). Both forms produce the same cases. The resolution loses no case and leaves no conflict markers: every age and failure variant from either side is present. Mixing the two styles inside one parametrize list is only cosmetic. Pick one style for lines 2934-2939 if you touch them again.
|
@Mergifyio queue |
🚫 Left the queue · conflict with base branch5 min in the queue, with no time running CI. So far
Reason The pull request conflicts with Conflicting files: Before this, the pull request was held in the queue behind 3 pull requests ahead of it. To get back in the queue
Times in UTC · dashboard · how the merge queue works |
|
No description provided. |
Co-Authored-By: Codex <noreply@openai.com> Architecture-Review: unchanged; the receipt precheck and timestamp fixes keep their existing behavior.
There was a problem hiding this comment.
loopzero delta review by claude on 5239a3e64e32bcf4aeb1e0fbe83117fb7d284943, 10.5s: approve (0 critical, 0 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.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Compare readiness using GitHub timestamps
Context and goal
Closes #1158
Closes #1159
Replaces #1583 after its conflict with current main. The two blocking findings are addressed by rejecting malformed HTTP Dates and preserving the sub-microsecond remainder of check and review timestamps.
Acceptance
Validation
Recorded for
5239a3e64e32uv 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