Repository navigation
fix: Security Review fails after transient status publication errors - #155248
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs changes before merge. Reviewed September 21, 2026, 6:50 PM ET / 22:50 UTC. ClawSweeper reviewWhat this changesSecurity Review restarts its evaluation after transient GitHub status-publication failures, with bounded retries, fresh approval checks, regression coverage, and updated CI documentation. Merge readiness⛔ Needs changes before merge - 1 item remains The fix remains useful: current main does not recover transient commit-status publication failures. No actionable defect was found in the introduced patch; the maintainer-authored PR is also protected from cleanup closure. Priority: P2 Review scores
Verification
How this fits togetherSecurity Review combines GitHub PR metadata, maintainer approvals, and CI results into commit statuses used to gate merging. Its shared GitHub client and evaluation loop control recovery when publishing those results fails. flowchart TD
A[PR or CI event] --> B[Resolve current PR head]
B --> C[Read approvals and CI]
C --> D[Publish review status]
D --> E{Transient publication failure?}
E -->|Yes, within budget| B
E -->|No| F[Record result or stop on error]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +145, Docs +8, Other +42. Total +195 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep recovery in the existing evaluation owner, preserving fresh authorization checks and bounded retries without replaying cached approval decisions. Do we have a high-confidence way to reproduce the issue? Yes, from source: a transient status POST failure on current main escapes the rate-limit-only recovery loop. The added CLI fixture targets that path, but no reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Restarting the existing evaluator is a narrow repair that refreshes authorization and CI instead of retrying a stale status decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1497878e0bc6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Fixes Security Review stopping after a transient GitHub error while publishing a commit status, as observed in this failed run for #153745.
User Impact
Security Review can recover automatically from a temporary status publication failure in the same workflow run. Approval requirements are unchanged, and no configuration changes or manual guard runs are needed. Persistent failures still fail the job.
Why This Change Was Made
A status write can fail after GitHub accepts it. Recovery therefore restarts the complete evaluation with current PR, approval, permission, and CI data instead of replaying an earlier decision. Transient status failures share the existing three-restart limit and job deadline with rate-limit recovery. Other uncertain writes, permission errors, cancellation, and request timeouts do not gain retries.
If reporting a fatal evaluation error also fails, the original error remains visible and does not become a reason to retry.
Evidence
f94cd4bd13104b7125de0ead663fa58ec0a48661. Summed individual CI test durations, excluding setup and other files: combined review 15.976 seconds; resolver 5.831 seconds; dependency guard 2.425 seconds; security-sensitive guard 9.158 seconds.REPLAY_PNPM_VERSIONvariable inwindows-testbox-probe.yml. Reproduced locally; both that workflow and its test are byte-identical to the branch base.