Repository navigation
fix(ci): route Knip cleanup owners to Windows - #120232
Conversation
1158197 to
e2c6dec
Compare
Dependency graph guard clearedThis PR no longer has dependency changes awaiting review. A future dependency graph change from an external contributor requires a maintainer's
|
Punchcard-Session: amber-timber-river-t1
e2c6dec to
522ac4a
Compare
|
Codex review: needs maintainer review before merge. What this changesThis PR routes both Knip cleanup scripts to Windows CI and adds their existing test suite to the Windows inventory. Example: A contributor changes scripts/deadcode-knip-runner.mts.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a current Windows CI selection gap, and no actionable patch defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCI classifies changed repository paths, combines that selection with package-owned test inventories, and emits native Windows test shards. flowchart LR
A[Changed paths] --> B[Scope classifier]
C[Package test inventories] --> B
B --> D[CI manifest]
C --> E[Windows shard planner]
D --> E
E --> F[Native Windows jobs]
Technical reviewBest possible solution: Retain this focused classifier-and-inventory repair through the existing native landing gates. Do we have a high-confidence way to reproduce the issue? Current-main source omits the two script routes and owner-test inventory entry; the PR reports causal baseline failures, but this read-only review executed no target code. Is this the best way to solve the issue? The patch uses the existing classifier, package inventory, and regression tables without introducing another owner or changing cleanup behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0177edd6c8d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +4, Config 0, Other 0. Total +4 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (14 earlier review cycles; latest 8 shown)
Reviewed November 1, 2026, 8:48 PM ET / November 2, 2026, 01:48 UTC (Revision 15). |
|
/allow-dependencies-change exact head 522ac4a: package.json only adds the existing Windows owner test to test:windows:ci; no dependency fields, package versions, workspace packages, or lockfiles change. |
|
@clawsweeper re-review Published integration is |
|
🦞👀 Re-review progress:
|
|
@steipete: source-backed CI follow-up for this PR, traced to main 8cea9e99. Exact-head CI36291017944 tested merge That main commit adds unconditional result/row copies through
Separately, The two production owner blobs remain unchanged at inspected main |
Integrate the canonical runtime-api inventory correction and retain current main Windows test consolidation. Preserve the two Knip owner routes, native manifest target, three routing cases, and native inventory assertion.
Baseline-Refresh: e54c3894a078f653d7042f6fdab99ccd016738fd
Baseline-Refresh: f874892da307cd9b614531f6344ec8d4cbaa8f10
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(ci): route Knip cleanup owners to Windows Punchcard-Session: amber-timber-river-t1 * fix(ci): route Knip cleanup owners to Windows Select Windows proof for the current MTS cleanup owners and include the existing owner suite once across the split manifests. Preserve current fast-CI and changed-target coverage. Focused remote baseline and candidate tests pass their intended outcomes; full scoped checks and hosted native Windows qualification remain pending before landing.
What Problem This Solves
Changes to the Knip cleanup wrapper, runner, or owner test can miss Windows CI selection. The current owners have moved to MTS, and the Windows test inventory is now split across two manifests.
User Impact
Maintainers get the existing owner suite selected when those paths change. This is a CI-routing repair, not a change to cleanup runtime behavior or a claim that Windows descendant-process cleanup is newly implemented.
Why This Change Was Made
Route
scripts/check-deadcode-unused-files.mtsandscripts/deadcode-knip-runner.mtsthrough the existing Windows classifier. Addtest/scripts/check-deadcode-unused-files.test.tsexactly once to Windows manifest 2; the classifier already reads both manifests before applying its production-path regex.Extend the existing routing table and required-native-coverage assertion. Current main already includes the Windows classifier suite through both fast-CI wildcard commands and the complete changed-target test family, so the old workflow and test-target edits are not reintroduced.
Current reconstruction retains four files, +6/-2, with no dependency versions or governance changes. Original signed branch ancestry and author credit are preserved without a force-push.
Evidence
Current Integration: November 2
Signed candidate
1c8d53d0d3b1185d48b0c8bf57814a6f9c25fc2f, tree72c6b03b77e9a8800d999eecd334099e20afe6ea, integrates frozen main9213d1759991fc32c7505c10ab66de76f052feedthrough native ancestry-preserving baseline refresh. The exact four-file delta remains +6/-2. Every current baseline package field and Windows target is retained; the only package change appends the Knip owner test once. Prior published branch ancestry is preserved.Current Linux regression and scoped proof passed. Testbox41372884986 executed four intended baseline failures with 47 filtered cases, then 67/67 repaired passes, zero failures or skips: package scripts21, Windows routing30, Knip9 including both POSIX cases, Windows planner7. The source capsule, exact candidate tree, baseline and frozen harness inputs were verified. Formatting, scoped script/core-test/root-test lint, the four relevant named type graphs and diff check all passed. Production source was restored and all workload children joined.
The workflow's terminal cancellation is owner cleanup, not a failed payload. Its original lifecycle receipt retains cleanup exit5 for a GitHub settlement-read deadline; a fresh terminal-run observation followed by supported same-ID native cleanup exited0. A separate reconciliation preserves the original failed receipt and completed workload evidence without retroactively changing either.
Fresh structured autoreview through P3 returned no findings on this exact candidate. Native correction review resolves both the package integration conflict and missing current Linux proof, and approves preparation/publication. No application tests, builds, formatters or linters ran on the Mac. The task-local tooling dependency mismatch was corrected without modifying a shared install.
Current native Windows proof passed. Windows41374101616 executed 65 passes and two intentional POSIX-only skips across67cases: routing30, package scripts21, planner7, Knip7passes/two skips. Actual output confirms the complete package-owned inventory runs exactly once within five budgeted jobs, resolving the historical budget finding without changing limits or dropping coverage. Artifact13110741054 verifies source and workflow at
1c8d53d0d3b1185d48b0c8bf57814a6f9c25fc2f, win32/x64, Node24.21.0, pnpm12.15.0, Vitest5.0.5, all23 dependency hashes unchanged, complete ordered tooling execution and process0. Actions owns runner teardown; descendant settlement is explicitly not attested and no persistent Testbox lease was allocated.Current CI and reviews passed. CI41373928309 completed successfully at this exact head:150 successful jobs,25 skips,no failures. Follow-on Security Review41375057371 passed for this PR/head and both required check contexts are green. ClawSweeper41374042349 completed with no actionable findings and ready state. Native completed-hosted preparation passed, preserving the same tested head and skipping an unnecessary push. Native squash admission and remote landed-source verification remain; no merge is claimed here. Older Windows/CI results below are historical only, and prior queued-lease cleanup blockers are resolved.
Historical October 19 Integration at
387d6b72The following checkpoint is retained unchanged as historical evidence, including its then-current gaps. The November 2 status above supersedes those gaps.
Signed head
387d6b72f70a9820bdf117496c171003fae1a518, treea62ccafa77eb62e515e6cccffe7710c486f79696, preserves the original PR ancestry on frozen main4a74bc62. The four-file correction is +6/-2: both MTS owner routes, the Knip test once in Windows manifest 2, three routing rows, and the required native-inventory assertion. All 161 prior Windows targets remain. Native same-PR publication and exact remote-head readback are complete.Source review verified conflict-free composition with captured main
68927060; the relevant planner, routing, tests, and Windows manifest inputs are unchanged. Canonical 174463 supplies the existing planner placement policy. This PR changes no caps, timing estimates, topology, dependencies, or coverage. The historical 428-second-policy failure below is not current proof; the unchanged current five-job planner now passes the native Windows proof below.The exact-candidate autoreview finding requesting another test-path regex was investigated and rejected: the classifier reads both package-owned test inventories before its production regex, so the added manifest entry already owns test selection. Source-only native review admits pending-proof publication, not landing.
Current native Windows proof passed. Windows39338366170 executed the four focused suites at this exact source and workflow SHA: 69 passed, two intentional POSIX-only skips. Actual output confirms Knip 11 passes/two skips, Windows routing 28 passes, package scripts 21 passes and planner nine passes. The unchanged planner validates all selected targets in five budgeted jobs. The retained evidence verifies win32/x64, Node24.21.0, pnpm12.11.1, Vitest5.0.3, all12 dependency hashes unchanged, complete tooling-project execution and process exit0. Actions owns final runner teardown; descendant settlement is explicitly not attested. No persistent Testbox lease was allocated for this run.
CI39337799994 completed successfully at this exact head on October 19 at 23:14 UTC. This establishes the hosted CI result, not independently verified execution of all four focused Linux suites. Their actual Linux coverage and the frozen four-causal-red/71-green regression proof remain unqualified. A bounded log audit found no fixture-to-job mapping; the completed-run archive transfer failed mid-stream and was not retried. Windows proof does not substitute for Linux-only cases or causal regression evidence. No application tests or checks ran on the local Mac.
The latest native Testbox attempt timed out queued without executing a payload. Provider completion is recorded; cleanup remains incomplete because the GitHub run association is missing. That exact lease's claim/key custody is preserved separately. No replacement allocation, provider switch, or unchanged retry is used. Required current-head CI, substantive review, platform proof and completed-hosted native gates remain mandatory before squash landing.
Historical Integration at
75fc99b82437Signed head
75fc99b82437b59598125b105bc863f6c865c7f3integrates frozen main55bbbf9ddcad46c7746ef8c66c73c5c71197406f, preserving both prior branch ancestry and main's consolidated Windows routing test table. Candidate tree21dfc42095e54cf0c5b53ee58411ed355ddd0d7ahas a four-file residual, +6/-2: the same two MTS owner routes, native owner test once in manifest 2, three routing rows and the required native-inventory assertion. Both current Windows manifests are retained without unrelated changes.The canonical inventory correction 160526 is verified merged as
02a95db98aa1255974804280ca3cd26e578505ddand an ancestor of this base. It removes only the retired Voice Call guard entry. The old failed run below remains failed; successor CI must qualify this integration.Fresh scoped autoreview found no actionable P0-P2 finding in the actual patch (confidence 0.96); its metadata-only chunk does not verify implementation. Source inspection confirms the exact four-path residual and scoped
git diff --checkpasses. A broad parent-relative whitespace check found an inherited release changelog EOF blank line; release-owned content is unchanged. No application tests, builds, checks or formatters ran locally. Previous executable proof remains historical because main changed the Knip implementation, owner tests and routing-test layout.Current result: CI36860624890 completed with failure. Three root jobs and the aggregate failed; the native Windows matrix was skipped. All three job logs identify checkout
040660b6ca9aa19f4eba36cbcd408fa3c0ef3ac5, independently verified as this head merged intoab1b93295ad0f0c093563585bbc76f2e6ce39686.ClawSweeper revision12 completed at 2026-10-01T12:22:47.612Z on this head with no actionable findings. That review does not override the CI budget defect. Native review now records NEEDS WORK/tests=fail and the concrete budget finding.
Native Windows follow-up: diagnostic36863286753 completed successfully on this exact head: 18 passed, two existing POSIX-only skips; Node24.19.0, Vitest5.0.1, win32/x64, one worker. Vitest reported 2.35s including startup, versus 3.79s for the project wrapper; 158ms of case execution is not the whole-file estimate. Source and 14 dependency hashes match; inputs remained unchanged. Even a rounded 2.4s replacement for the 3s fallback leaves 2140.7s above 2140s capacity. No invented discount, threshold change or coverage removal was made. This fresh single-file diagnostic does not qualify the original packed sequence or turn required CI green. Actions owns runner teardown; the harness explicitly did not attest descendant settlement and retained its temporary namespace. No persistent Testbox lease was created.
The recovered browser group contains 50 files with two workers, including the partial
chrome-mcpmock inhot-reload-profiles. Source selects Node despite thebun-compatiblepolicy label. Group order does not establish same-worker succession; that historical trigger remains unobserved. The canonical repair below removes this facade dependency without requiring a broader runner investigation.Verified Browser repair: 162692 merged at
d5e94ecc0939907f18e5980ac6d7613c140387dd. Parent verified current-main presence and the exact one-file +3/-3 landed correction: lifecycle helpers import from their process/session/tabs owners, with assertions and production unchanged. Its CI aggregate passed; focused and repeated group runs remain author-reported evidence. Matching failure evidence was handed back. This PR has not yet integrated the correction; qualify the resulting head without starting a competing browser repair or repeating completed proof.Remaining: resolve the Windows prediction conflict, integrate the verified Browser repair, obtain the upstream Crabbox fixture correction, then complete green exact-head required CI and native preparation/squash. The Crabbox owner handoff proposes an unexecuted zero-progress truncation fixture while preserving exact authorization/diagnostic/cleanup assertions and the existing progress-policy tests. No production defect is established; repository policy excludes a standalone fixture-only PR for known main CI. No blind replay, admin exception, green aggregate or merge of this PR is claimed. The historical UI3 admission hold remains untouched.
September 28 Integration
Signed head
0ff7672ebfa8e0010343ced7457a73f6f80bb233integrates frozen main1a94ee9ed7e277eb98439d5ceecc6ab2b7411fa9while preserving prior signed ancestry by a normal fast-forward push. Candidate tree is6d57bd41d49fd781eacb3fd040fe6cc8cc5871fb; the main-relative repair remains four files, +11/-2.This integration includes canonical UI repair 159394, which corrects the inherited hydration/optional-field test assumptions and publishes canonical row identities before unrelated no-op events. The two published-snapshot identity assertions remain intact. Main's removal of blanket package/lockfile Windows triggers is also preserved: only the two Knip production alternatives are added to its current regex.
Fresh scoped autoreview found no actionable findings in the actual four-file patch chunk. Its separate metadata-only chunk had insufficient implementation evidence; neither result is a runtime pass. Independent source review confirmed the existing two-manifest planner still schedules the owner test, and the Knip owners, owner test and planner remain unchanged from the prior focused proof.
Current CI result: CI36443497565 is terminal/cancelled: 15 successful jobs, 114 cancelled, 20 skipped and two failures (the test shard and aggregate gate). Node shard2 failed
plugin-sdk-runtime-api-guardrails.test.ts:345: expected40/received39 paths, with onlyextensions/voice-call/runtime-api.tsmissing. The exact job log and commit API bind checkout54e3cc9b88eb4e03a47ef5663c9dae805191a451to this head merged into main1b919d5ee2ec6abe413a4d6c148370d308a4b709. Main change160362 removed that file; the guard test blobdc68a328eabba59355f3dcde26dfdbf76870a9e7is identical in the candidate and actual CI main. This is outside the routing residual. Concurrent canonical candidate 160526 now removes only the retired14-line guard entry while preserving strict inventory equality and every other guard. Its existing writer owns the reported red/green proof and landing; no canonical merge is yet verified. The owner follow-up records this dependency. No assertion was weakened and no CI retry or competing fix was dispatched.At that checkpoint, the native review was NEEDS WORK/tests=fail, with upstream qualification, required CI, current trusted review and native prepare/squash still outstanding. The disk-failed lock was recovered after its owned supervisor/process group were confirmed absent. No local application tests, builds, checks or formatters were run; cancelled siblings are not claimed as passes.
Previous Integration Evidence
Remote proof applies to previous tree
b590a8e5ab573f5d5e2cebda2389061cbae0b109on main3a68ec05f929d85631faaf46c47dbfe2911015b8, not the new whole tree:qualified=false; actual hosted advisory policy is unchanged, with no environment override.0c27d83838e563d6989887f294e1d4444881ff574b942739267a3a1edd668cb9.Retained Historical Proof
The earlier remote run established two intended baseline failures and75 candidate passes on tree
6f1794343ef1d8878927da01cfaca438030c7415. Its original failed changed-check aggregate remains failed; the three earlier lint violations are distinct from those above.Public-head Windows shard4 passed14 Knip owner cases with2 intentional POSIX skips; all five Windows jobs passed. That CI run ended cancelled after the SDK composed-resources shard failed with
AgentDatabaseRegistryChangedError. Upstream fixture repair and the new isolated pass do not retroactively turn that failed run green.The earlier autoreview regex concern was rejected because manifest membership is checked before the production-path regex and the owner test appears exactly once in manifest2. Native Windows descendant-process termination is not claimed.
Historical test cost and retained context
Each candidate suite ran alone with one worker. Process wall: routing 1.514s, package scripts 1.446s, Windows shard planning 2.953s, Knip 1.701s. Summed case times: 52.97ms, 51.51ms, 1406.88ms, 347.40ms respectively. Baseline failure commands took 1.738s and 1.655s. The failed hosted run took 675 seconds elapsed; that is whole-run cost, not file-local runtime or a speedup claim.
The source and all 203 dependency inputs were admitted at run start and verified unchanged at completion. Baseline source restoration passed before candidate execution. The failed changed-check command took 1743.354 seconds; completed focused proof is retained without replay.
The prior branch's 95/32 test counts, native Windows run, review and session attestation remain historical evidence, not qualification of this reconstruction. The original
Punchcard-Session: amber-timber-river-t1remains in signed ancestry; no renewed receipt is claimed. The historical transcript below is preserved unchanged.Agent Transcript
Redacted implementation and review trace