Repository navigation
Confirm ambiguous hosted eligibility publications - #1335
Conversation
Architecture-Review: unchanged; hosted eligibility still publishes the same SHA-scoped status with the trusted Actions credential. Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 77f82b45853f482c8269b5cc71bb9301abac8c9a, 39.1s: approve (0 critical, 0 important, 2 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)
Findings without a file location:
- suggestion: Two status-publication paths for the same context — The
publishclosure (which does themessage[:140]truncation and is used for the pending and refresh-failed writes) and_publish_verdict(which truncates at the call site) each wrapgithub.commit_statusforeligibility.CONTEXT. If the description limit or the context changes later, one path could be updated without the other. Consider having the closure call_publish_verdict, or a shared helper with aconfirmflag, so truncation and context stay in one place.
Native Claude output is retained in the restricted local review receipt.
| except Exception as exc: | ||
| _mark_refresh_failed(publish, exc) | ||
| raise | ||
| _publish_verdict(cfg.repo, head, state, message[:140]) |
There was a problem hiding this comment.
suggestion: A failed verdict write that is definitely not accepted now leaves the stale 'Refreshing…' pending status
Before this change, any failed final write (e.g. HTTP 422 invalid description, 403, 5xx) went through _mark_refresh_failed, so the context ended as failure: Eligibility refresh failed. Now _publish_verdict runs outside the try block. When the read-back shows the verdict is not the latest status, it raises LoopZeroError without writing anything. The commit is left at pending: Refreshing live source review evidence (the updated publication test now expects ["pending", "pending"]). This is fail-closed, so it is not unsafe. However, the status claims a refresh is still running when the job has already failed. A read-back that proves the latest status is not our verdict is a safe point to write the refresh-failed marker, because there is no accepted verdict to overwrite. Smallest fix: have status_matches tell 'confirmed absent' apart from 'unreadable', and on 'confirmed absent' call _mark_refresh_failed before raising. Alternatively, record in the task or a comment that a stale pending is the intended outcome.
|
Owner queue route: the full sandboxed check passed on |
|
@Mergifyio queue |
✅ Merged into
|
Confirm ambiguous hosted eligibility publications
Context and goal
A hosted eligibility refresh could overwrite a verdict GitHub accepted when the reply to the write was lost. Verify the latest status for that SHA and context before returning the evaluated result.
Closes #1324
Acceptance
Notes
Base
Base: b69efec
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review