Skip to content

Compare readiness using GitHub timestamps - #1453

Closed
eowca wants to merge 11 commits into
mainfrom
lean178/1158-readiness-budget-replacement
Closed

eowca wants to merge 11 commits into
mainfrom
lean178/1158-readiness-budget-replacement

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Compare readiness using GitHub timestamps

Context and goal

  • Goal: Readiness waits compare UTC instants and use GitHub server time for review age.
  • Problem: Fractional and offset review timestamps could crash parsing, a same-second newer failure could look stale, and a slow host clock could end a wait early.
  • Context: Required checks must pass before readiness succeeds. Freshness determines how long the command waits for a replacement verdict.

Closes #1158
Closes #1159

Acceptance

  • UTC, fractional UTC and explicit-offset timestamps are accepted. Failures at or after the review do not qualify as stale, including equal instants with different offsets.
  • Missing, malformed and naive timestamps do not grant stale-verdict grace.
  • The same server timeline waits for a replacement of a pre-review failure across local clock offsets, including a host 40 seconds behind.
  • Old reviews remain outside grace. A missing or unusable Date uses the existing bounded local fallback. Readiness still requires passing checks.

Notes

  • Delta evidence: the malformed-offset and missing-completion fixtures produced unwanted waits before the fix. The full 66-case freshness matrix and lint passed after it. The separate verdict-selection behavior is tracked in Compare readiness run selection and workflow replacement timestamps as instants #1462.

  • Supersedes Compare readiness using GitHub timestamps #1265. Carries its approved production diff and compacts the existing regression fixture while retaining the 125 ms pre-review and 250 ms post-review cases.

  • Supersedes Compare readiness using GitHub timestamps #1198. Carries the approved diff from da40f81f2042 plus 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 4f8ea0cc09f8

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, codex, b02dc56, request_changes
  • delta, claude, 455e30f, approve

eowca and others added 8 commits November 26, 2026 01:02
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>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by codex on b02dc56105b1f31afff0c54b7cea91198fd7c20d, 61.1s: request_changes (0 critical, 3 important, 0 suggestion)

Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 93b28dc577ff1ebf668b75ae02d2351129929ef821cbc584dc3375665c38d9a0

Comment thread src/loopzero/github.py Resolved
Comment thread src/loopzero/github.py Resolved
Comment thread src/loopzero/cli.py Resolved
Architecture-Review: unchanged; the short wait requires trustworthy timestamps while required check verdict selection stays the same.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero delta review by claude on 455e30fe2745e1a73ad25009ebc66e221e1e1ae4, 18.1s: 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.

@eowca
eowca marked this pull request as ready for review November 26, 2026 03:43
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🚫 Left the queue · queue conditions no longer match

2 min in the queue, with no time running CI.

So far

Reason

Pull request #1453 has been dequeued

Queue conditions are not satisfied:

  • -conflict [📌 queue requirement]

To get back in the queue

  • Push a change if one is needed: the pull request is queued again once its queue conditions match.
  • If no change is needed, comment @mergifyio queue to queue it again as it is.

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1583, which preserves this PR’s history and resolves the conflict introduced by #1521.

@eowca eowca closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use GitHub server time for review freshness during readiness waits Parse and compare GitHub readiness timestamps as UTC instants

1 participant