Skip to content

fix(ci): recognize dynamic PR tooling and npm fixture entrypoints - #197250

Merged
roboclaw-bot merged 1 commit into
mainfrom
loops/l539-knip-executable-roots
Nov 11, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loops/l539-knip-executable-roots

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes three false unused-file findings in main’s dependency analysis for executable tooling and an npm test transport launched by path.

User Impact

No runtime or publication behavior change. The dependency checker now recognizes the maintained benchmark, cache-lifetime preload and isolated test transport without deleting their real consumers.

Why This Change Was Made

#196685 introduced the documented dependency-cache benchmark and the preload injected by scripts/pr through NODE_OPTIONS. #196501/#196977 supply the transport passed as a file URL by the npm CLI process fixture. These are executable roots rather than ordinary imports. Register their exact paths in the existing production/test inventories, following neighboring entries; no ignores, broad globs, export-check relaxation or test changes. This fixes the three unused-file rows only; other dependency findings remain open.

Contributor credit: Peter Steinberger and Ayaan (obviyus).

Work sessions

Linked for team reference; these sessions aren’t public.

Evidence

  • Main run 43029104606/job 130552024401 reports exactly these three unused files. Source inspection confirms the documented benchmark invocation, real preload injection and file-URL transport consumer.
  • Exact inventory check: all three paths absent on base, present on candidate, and all targets exist. This is structural registration proof, not a global Knip pass.
  • Scoped two-file lint, formatting and diff checks pass. Independent Codex review finds no actionable P0–P2 issues; full configuration/execution was unavailable to that helper.
  • Global dependency analysis and broad proof remain hosted-CI requirements; none was run on the production Team host. No benchmark or release/publication flow executed.

Register the documented dependency-cache benchmark, NODE_OPTIONS cache-lifetime preload, and file-URL npm transport child in the existing Knip entry inventories. Preserve export checks and all runtime behavior.

Co-authored-by: obviyus <[email protected]>

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 11, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR registers the dependency-cache benchmark, PR lifetime preload, and npm CLI transport fixture as Knip entrypoints.

Example: Analyze test/scripts/plugin-npm-cli-transport.test-support.mjs, which the npm fixture launches through Node --import.

  • Before: The computed file-URL launch is absent from the analyzer's explicit test roots.
  • After: The exact fixture path is registered in the full-tree test inventory.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is source-supported and has green head checks; supplied behavior evidence remains structural.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its evidence establishes structural registration, while successful CI alone does not demonstrate the changed analyzer output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers receive unused-file findings for executable tooling and a fixture that have real path-based consumers.
Reason: Exact registrations restore useful analyzer classifications at minimal maintenance cost; maintainer authorship already establishes direction.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it narrowly registers three live executable roots using the existing analyzer inventories, with no actionable code defects found.

Priority: P3
Reviewed head: 46138106b4011b0b9589d8fdb08b7cc27efd51e2

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied structural check does not show an actual before/after Knip run removing the three target findings.
Agent review details

How this fits together

Knip consumes repository source files and explicit executable-root inventories to report unused files, dependencies, and exports.

flowchart LR
  A[Documented benchmark] --> D[Repository script roots]
  B[PR preload injection] --> D
  C[Npm process fixture] --> E[Test roots]
  D --> F[Knip analysis]
  E --> F
  F --> G[Unused code reports]
Loading

Technical review

Best possible solution:

Retain these exact registrations in the existing script and test inventories without adding suppressions or runtime machinery.

Do we have a high-confidence way to reproduce the issue?

Source confirms all three executable paths and their missing explicit registrations on main; the reported analyzer output was not independently replayed.

Is this the best way to solve the issue?

The patch is the smallest complete repair: it adds real executable roots to their existing owners while preserving export checks and runtime behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a0aa49cf4b9d.

Provenance checked

  • Repository script roots keeps the original intent (fix: stop dead-code checks flagging live inputs #183216: Documented or driver-launched scripts belong in the explicit executable-root inventory.)
  • Full-tree test roots keeps the original intent (dd6c6bc: Path-launched fixtures belong in the test-aware inventory without becoming production commands.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 68d44d8 adds config/knip.config.ts:51 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 68d44d844be5; files: config/knip.config.ts)
  • Shakker: Raw commit dd6c6bc adds config/knip.all-exports.config.ts:66 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dd6c6bcbea0c; files: config/knip.all-exports.config.ts)
  • Vincent Koc: Raw commit 533878d adds config/knip.config.ts:37 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 533878dca580; files: config/knip.config.ts)

PR surface

Other +5. Total +5 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 5 0 +5
Total 2 5 0 +5

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 P3: This is a focused analyzer-inventory correction with no application runtime change.
  • 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:

  • P3: This is a focused analyzer-inventory correction with no application runtime change.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach actual before/after analyzer output showing the three target findings disappear while unrelated findings remain detectable.

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 11, 2026, 9:52 AM ET / 14:52 UTC.

@roboclaw-bot
roboclaw-bot merged commit 54bfcd8 into main Nov 11, 2026
98 checks passed
@roboclaw-bot
roboclaw-bot deleted the loops/l539-knip-executable-roots branch November 11, 2026 14:55
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…enclaw#197250)

Register the documented dependency-cache benchmark, NODE_OPTIONS cache-lifetime preload, and file-URL npm transport child in the existing Knip entry inventories. Preserve export checks and all runtime behavior.

Co-authored-by: steipete <[email protected]>
vincentkoc added a commit that referenced this pull request Nov 12, 2026
Preserve the upstream test-growth policy and dynamic dependency roots:
#196370
#197250
#197602

Remove only the superseded task-owned 128-line grant. Keep the original
157-line record, upstream Doctor allocation and retired scalar deletion.

The staged checker against 0626eb5 passed: net +157, allowance 400,
allocation credit 157. The measured workload remains frozen at
79f5aeb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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