Repository navigation
fix(ci): recover security review from inconsistent file lists - #155129
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed September 21, 2026, 3:50 PM ET / 19:50 UTC. ClawSweeper reviewWhat this changesAdds bounded retries for inconsistent GitHub changed-file lists, shares the result between security guards, and documents and tests recovery. Merge readiness⛔ Needs changes before merge - 1 item remains The fix remains useful: current main still rejects transient file-list inconsistencies without recovery. No actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherSecurity Review reads PR metadata and changed files to determine dependency and security approval requirements. Its decisions feed the commit status that gates merging. flowchart TD
A[PR metadata and changed files] --> B[Shared file-list reader]
B --> C{Complete and consistent?}
C -->|No| D[Bounded retry and metadata check]
D --> B
D -->|Exhausted or PR changed| E[Review fails]
C -->|Yes| F[Dependency and security guards]
F --> G[Approval and CI merge status]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +60, Docs +6, Other +32. Total +98 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep recovery in the shared file-list owner, with bounded retries and unchanged approval enforcement. Do we have a high-confidence way to reproduce the issue? Yes, at source level: a transient mismatch immediately fails current main and caches the incomplete list for the sibling guard. The new entrypoint fixtures exercise that path; this review did not execute them. Is this the best way to solve the issue? Yes. Retrying complete reads in the existing shared owner avoids duplicated recovery while preserving identity checks and approval requirements. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8c56f7239e98. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* commit '3d4033fbe0aca10c9eec45a7c088540607181d79': (42 commits) fix(windows): prevent update readiness failures on fractional timeouts (#155051) fix(test): await approval readiness and request cleanup (#155111) test(update): preserve published plugin archives in survivor fixtures (#155093) fix(ci): recover security review from inconsistent file lists (#155129) fix(crabbox): skip unused startup and preserve provisioning waits (#154321) fix(qa-lab): refresh Control UI links on URL updates (#152397) fix(maintainer): recover locally refused auto-merge requests (#154988) test(ui): advance debug tray polling with the browser clock (#155091) fix(snapshot): preserve concurrently recovered backups (#155075) fix(anthropic): preserve context-window-limited responses (#155029) fix(ui): stop redundant actions crowding mobile session titles (#154493) test(gateway): compare large buffers with native assertions (#154351) chore(ci): resync pull request head after the Actions incident fix: join local provider child cleanup before releasing ownership fix(test): isolate MXC host environment fixtures fix(test): prevent Windows worker pipe inheritance test(update): use supported reasoning in live survivor probe (#155085) fix(firecrawl): omit impossible publication dates from search results (#155032) fix(sessions): order WAL recovery and join probe release fix(logs): retain severity and subsystem from JSON console records (#153890) ...
Related: #155109
What Problem This Solves
Security Review can leave a PR red when GitHub's reported changed-file count and returned file list temporarily disagree. The failed evaluation also caches the incomplete list for the second guard and incorrectly tells the author to split the PR.
User Impact
Transient inconsistencies recover automatically in the same workflow run. Incomplete file lists and changes to the PR's head, target branch, or author still prevent approval.
Why This Change Was Made
The shared file-list reader retries after one, two, and four seconds, rereads PR metadata, and fetches each list again from page one. Both guards share the validated snapshot or exhausted recovery result. Persistent failures report the expected, returned, and current counts. Consistent reads incur no additional API requests.
Evidence
Observed failure on #155109: the same head now returns 42 expected and 42 actual files; the original mismatching counts were not logged.
Four entry-point regression cases failed on the original code. Recovery, pagination, approval enforcement, changed-head/target rejection, and bounded failure now pass.
All 186 focused guard tests pass. Changed test-file times: combined review 7.62 s; security-sensitive guard 5.28 s. The three-file suite completed in 15.59 s.
Independent review found no actionable P0–P2 issues.
Changed-file checks passed, including formatting, root test typechecking, lint, and dead-code scans;
git diff --checkpassed.Hosted CI passed, including all 186 focused guard cases. CI reported summed test times of 12.33 s for combined review and 8.68 s for the security-sensitive guard.