Skip to content

fix(ci): recognize live plugin prerelease planner consumers - #199948

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-workflow-planner-consumers-20261116
Nov 16, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-workflow-planner-consumers-20261116

Conversation

@steipete

@steipete steipete commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Root cause: refactor(ci): centralize independent Node/Bun runtime planning #198278 / 44522c44d695d04a64afc9d89e12de273b2a801c added the live plural runtime resolver and its workflow caller without a discoverable analyzer edge.
  • Independent Codex review is scoped-clean through P2.
  • Clean main parent 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.
  • Repaired compiler: all 32 existing/new cases pass under explicit Node and pinned Bun, including member-removal and load-removal controls.
  • Canonical script and full-tree export scans both pass with zero findings. Script scan: 15.91 seconds / 16.89 seconds CPU before; 12.92 seconds / 16.62 seconds CPU after. These are CI verification timings, not a performance claim; peak RSS was 1.826 GB and 1.993 GB respectively.
  • Required pnpm check:changed --base 8acfe9878ded8d8b0b7a4d1ba9f1ed9ee6883df6 passes, 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, reporting unicorn(prefer-structured-clone) at unchanged src/agents/tool-search-prepared-catalog.ts:118:48. The canonical focused lint command reproduces the identical error on CI’s exact main parent cc25b45309916e2c0e1400355534d79f6ce19564; #199909 / f4d2e45592438dbaae12975e1c4223a991285b7a introduced 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.

@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T04:18:06.757751Z dcb7779 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Dependency analysis cannot see that workflow consumer and reports the live export as unused.
  • After: The compiler projects the real import and member uses, dropping the corresponding edge when the consumer disappears.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused regression and reported canonical scans support the repair; directly inspected proof is limited to source, check results, and lint annotations.
Proof confidence 🦐 gold shrimp (3/6) This tooling-only change has no user-visible runtime behavior requiring shipped-product proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Repository dependency checks reject an export that the plugin prerelease workflow actually consumes.
Reason: The maintainer-authored direction preserves working release behavior and the existing strict analyzer contract with a narrow repair.

Regression provenance

Regression provenance — verified: source commit 44522c44d695 by Dallin Romney; canonical PR #198278 (blame-to-merge-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
Reviewed head: dcb77797df1e5dd049a7dd1f698696309115508b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Workflow consumer projection keeps the original intent (8bd724e: Expose real workflow and generated-config imports to Knip while preserving strict entry-export auditing; later compiler extensions retained this approach.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

  • Focused introduced change: The pinned introduction extends the existing compiler and adds a regression with member-removal and load-removal controls; it adds no export exemption. (config/knip.config.ts:641, dcb77797df1e)
  • Current main retains the omission: The fetched main compiler models exclusion-helper consumers but does not project the planner import, while the workflow contains the computed planner load and plural runtime resolver use. (config/knip.config.ts:641, 5dc807193185)
  • Existing compiler intent: The original compiler change preserved strict entry-export auditing by exposing real inline and generated imports; this PR follows that design. (config/knip.config.ts:618, 8bd724e8a93d)
  • Related runtime-planning change: refactor(ci): centralize independent Node/Bun runtime planning #198278 added both the plural runtime resolver and its workflow consumer, establishing why the export must remain reachable. (.github/workflows/plugin-prerelease.yml:329, 44522c44d695)
  • CI failure attribution: The failed lint job reports file-length violations in nine source/test files with identical contents before and after this PR; the aggregate gate also fails. This does not establish a diff-caused failure. (dcb77797df1e)
  • Validation evidence and inspection limits: The body reports baseline failure, repaired Node/Bun regressions, clean canonical export scans, and passing changed checks; hosted changed-test and type checks pass. Downloading detailed job logs was blocked by the artifact host allowlist. One historical blob was unavailable locally; REST commit evidence and scoped blame supplied the relevant history. No tests or target code were executed, and the checkout remains clean. (test/scripts/check-deadcode-exports.test.ts:279, dcb77797df1e)

Likely related people:

  • Peter Steinberger: Raw commit 8bd724e adds config/knip.config.ts:249 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8bd724e8a93d; files: config/knip.config.ts)
  • Dallin Romney: Raw commit 44522c4 adds scripts/lib/plugin-prerelease-test-plan.mts:157 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 44522c44d695; files: scripts/lib/plugin-prerelease-test-plan.mts)

PR surface

Tests +25, Other +16. Total +41 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 25 0 +25
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 19 3 +16
Total 2 44 3 +41

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A focused dependency-analysis bug rejects a live workflow helper without affecting product runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A focused dependency-analysis bug rejects a live workflow helper without affecting product runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 15, 2026, 11:30 PM ET / November 16, 2026, 04:30 UTC.

@steipete
steipete merged commit 2ad689a into main Nov 16, 2026
112 of 115 checks passed
@steipete
steipete deleted the steipete/fix-workflow-planner-consumers-20261116 branch November 16, 2026 04:46
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant