Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 8:37 AM ET / 12:37 UTC. ClawSweeper reviewWhat this changesThe PR exports tracked GitHub Action files from the already checked-out candidate index when it matches the workflow revision, avoiding a duplicate harness fetch while retaining the existing sparse-fetch path for different revisions. Merge readinessNo blocking defect was found in the introduced checkout path. Keep this member-owned, protected PR open for normal maintainer handling while its exact-head hosted CI completes. Priority: P2 Review scores
Verification
How this fits togetherThe CI checkout owner fetches a pinned candidate revision and prepares an independent action harness that later workflow steps execute. The change affects the matching-revision branch of that preparation, before Linux and platform jobs set up Node and pnpm. flowchart LR
A[CI revision inputs] --> B[Git checkout owner]
B --> C[Candidate checkout]
C --> D{Revisions match}
D -->|Yes| E[Export tracked action files]
D -->|No| F[Sparse harness fetch]
E --> G[Independent action harness]
F --> G
G --> H[CI setup actions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +141, Docs 0, Config +12. Total +153 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the canonical checkout owner and merge after exact-head hosted CI confirms the generated Linux and platform harness paths. Do we have a high-confidence way to reproduce the issue? Yes: current main's unconditional second harness fetch is visible in the owner, and the introduced real-Git fixture exercises the rendered Linux and platform workflow closures against the same-revision condition. Is this the best way to solve the issue? Yes: using the freshly checked-out index preserves the existing owner boundary and avoids a second transport only when the two pinned revisions are equal; the different-revision path remains intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a7be8e5ec6ff. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
1a9c9a5 to
0cedf84
Compare
0cedf84 to
c8ff4db
Compare
|
The retained-harness overwrite finding is fixed and the real-Git regression covers it. Since the last review, CI exposed a separate incomplete prepared-provider test fixture. f41f0be adds the missing model ID; all 12 original cases plus 23 prompt/sandbox siblings pass, and profiling removes the unintended cold plugin load. Assertions, mocks and deadlines are unchanged. The complete changed-file gate and scoped review pass; fresh exact-head CI is running. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Implemented through #134038, merged as 4ee565c6d2a, including authenticated same-revision checkout and harness reuse. The integration preserves the connected main changes and removes the superseded duplicate paths. Exact-head CI33434384581 completed successfully with all applicable Testboxes green. Both Windows jobs, all 16 UI jobs and the macOS Node job passed. The integration PR records the focused source-owner and regression proof, including the Windows readiness repair and trusted-wrapper merge checks. This source PR is superseded by that verified landing. |
What Problem This Solves
Linux and platform CI fetched the workflow revision again even when it exactly matched the candidate revision already checked out. Main run 33361712534 spent about 30 seconds on that duplicate harness transport. Repeating it across every job adds checkout latency and network load.
Why This Change Was Made
Immediately after the owned candidate checkout, exact revision equality now lets the Git owner copy only tracked
.github/actionsfiles from the fresh index into an independent harness directory usingcheckout-index --prefix. It does not copy from later workspace contents or update the candidate index. Different workflow/candidate revisions keep their existing sparse, blobless fetch. Action-existence, cancellation, process-tree cleanup, deadline, and retry ownership remain unchanged.The regression reuses the existing real-Git fixture transport and process-tree cleanup owner. It does not introduce another Git supervisor or cleanup path.
User Impact
Faster CI checkout with the same pinned candidate and harness contents. No product runtime behavior, configuration, dependencies, permissions, runner counts, or concurrency changes.
Evidence
A real-Git regression failed on the original workflow because it performed two fetches and passes with one after generation from the canonical owner. It checks exact action bytes, unchanged raw index/HEAD, independent copies after later candidate edits, export attributes, filenames with spaces, and POSIX executable/symlink/newline behavior. Windows executes the same ordinary file/index contract without requiring symlink privilege. Existing different-revision, timeout, cancellation and performance-workflow lifecycle cases remain covered.
The final real-Git regression passes fresh Linux, fresh platform and retained-platform cases, preserving index and action bytes with a single fetch. Three different-revision, cancellation and deadline sibling cases also pass. The local focused recovery run passed both Linux recovery cases. The existing cancellation-during-timeout-drain case passes with the source-loader repair already present on current main. The broader lifecycle selection passed 28 cases with one 55-second recovery timeout during a heavily delayed local run; that same recovery and its sibling passed the focused rerun without changing their deadlines. Native Windows and complete Linux proof are required from exact-head CI before landing.
The complete changed-file gate passed, including root-test types, formatting and scripts lint. The generated owner check passed. Independent Codex autoreview found no blocking findings; the final fixture-only gate is recorded before publication.
Direct dependency proof: Git checkout-index documentation and Git2.55 source establish that an output prefix prevents index refresh/write. The scoped TypeScript importer was checked in installed tsx types/source and exercised against the exact failing source closure. No new loader implementation or shutdown policy is introduced.
Runtime production delta0; CI owner net+6 lines for the separate exact-revision copy contract; generated workflow projection net+6; test/support net+141; docs net0. Historical different-revision fetch behavior is preserved. No additional runner registrations. Hosted timing will be added when the PR run completes; this change alone does not claim a five-minute workflow.
The retained-platform case addresses the latest ClawSweeper finding and rank-up requests:
checkout-index --forcereplaces an existing destination action. The pre-fix real reproduction exits 1; stale action execution was not reproduced. The canonical owner and generated workflow agree, and the corrected three-case proof passes again after rebase. The initial exact-head CI passed Linux and macOS but an existing Windows provider-import test timed out; this branch now includes the upstream provider preparation repair from #133970. The final changed-file gate and independent scoped Codex review pass; fresh exact-head CI remains required.The next hosted run exposed an unrelated incomplete provider fixture: the global-session sandbox test supplied a provider handle without its attempt model ID, forcing real plugin discovery before its assertion. The existing helper in that file and the production producer both carry the model ID. This PR completes that one fixture field. The hosted case failed at 132.9 seconds against its unchanged 120-second timeout; an isolated local A/B preserves all 12 cases and assertions while reducing wrapper wall from 70.300 to 3.674 seconds. Profiling removes the 61-second plugin-loading path. Both nearest prompt/sandbox suites pass (23 additional cases); the integrated 12-case proof and complete changed-file gate also pass. No production code, mocks, skips or deadlines change.
Run 33388473243 also lost its hosted lint runner to a shutdown signal and hit the existing prepared Anthropic timeout on Windows. The Windows timeout occurs unchanged on both the baseline and Windows optimization PR; that separate cold-registration owner is being investigated. Fresh exact-head CI remains required.