Repository navigation
fix(ci): recognize live plugin prerelease planner consumers - #199948
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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR teaches Knip's existing workflow compiler to recognize the plugin prerelease planner's computed import and actual member uses. Example: The plugin prerelease workflow uses resolvePluginPrereleaseExtensionRuntimes.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review This PR repairs a real analyzer omission still present on main without weakening unused-export checks; no actionable patch defect was found, though the required CI gate remains red on unchanged files. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Knip configuration translates workflow source into analyzable JavaScript dependency edges used by repository export checks. flowchart LR
A[Plugin prerelease workflow] --> B[Workflow compiler]
B --> C[Projected JavaScript]
C --> D[Knip export analysis]
E[Planner module] --> D
D --> F[Dependency check result]
Technical reviewBest possible solution: Keep the source-derived planner projection in the existing compiler while preserving strict reporting of genuinely unused exports. Do we have a high-confidence way to reproduce the issue? The workflow's computed import and live resolver use are absent from main's compiler output by inspection; the PR reports a matching baseline scan failure, but this review ran no target code. Is this the best way to solve the issue? The patch restores the missing dependency edge at its existing owner and retains consumer-sensitive removal behavior without ignoring the export. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5dc807193185. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +25, Other +16. Total +41 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 Reviewed November 15, 2026, 11:30 PM ET / November 16, 2026, 04:30 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Fixes dependency checks rejecting a live plugin-prerelease workflow helper after the runtime expansion added in #198278.
User Impact
No user-visible behavior changes. Dependency analysis recognizes the workflow's existing planner consumers while continuing to report genuinely unused exports.
Why This Change Was Made
The workflow loads its planner through
targetPlanPath, which the existing Knip workflow compiler did not model. Project the real planner load and member uses through that compiler, resolving the path from the workflow itself. Removing a consumer or its load also removes the projected dependency; no export exemptions or ignored findings are added.The change adds 19 tooling lines and 25 regression-test lines, with zero product runtime LOC. The tooling growth represents a missing computed import at its existing owner; the live planner export and release behavior stay intact.
Evidence
44522c44d695d04a64afc9d89e12de273b2a801cadded the live plural runtime resolver and its workflow caller without a discoverable analyzer edge.8acfe9878ded8d8b0b7a4d1ba9f1ed9ee6883df6: canonical script-export scan reproduces the one missing-consumer finding. The new regression fails on the original compiler because the planner import is absent.pnpm check:changed --base 8acfe9878ded8d8b0b7a4d1ba9f1ed9ee6883df6passes, including all three export scopes, selected type checks, lint and guards (216.39 seconds).Exact-head CI 43803069012 completed with one substantive failure:
check-lint-core-2, reportingunicorn(prefer-structured-clone)at unchangedsrc/agents/tool-search-prepared-catalog.ts:118:48. The canonical focused lint command reproduces the identical error on CI’s exact main parentcc25b45309916e2c0e1400355534d79f6ce19564; #199909 /f4d2e45592438dbaae12975e1c4223a991285b7aintroduced it. All seven failed source/config/tooling inputs match the parent, tested merge and PR head. This is a separate main regression tracked by #199939, not a passing CI gate. All other executed jobs pass, including security. Final-head ClawSweeper review has zero findings and zero open items. Landing uses the authorized, pinned inherited-failure exception with the failed result retained.