Repository navigation
refactor(scripts): remove dormant tools and inert inventory - #169606
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: needs changes before merge. What this changesThis PR removes dormant scripts, unused executable aliases, their dedicated tests, and inventory rows already excluded by CI. Example: CI considers ui/src/e2e/approval-flow.e2e.test.ts.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR provides useful, maintainer-directed cleanup without changing active CI selection; one stale documentation reference needs removal. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherRepository scripts provide development and release tooling, while the CI inventory feeds changed-owner test selection; maintained TypeScript entrypoints and selection predicates remain unchanged. flowchart TD
A[Changed repository paths] --> B[CI test planner]
C[Protected test inventory] --> D[Existing UI E2E filter]
D --> B
E[Owner and exempt discovery] --> B
B --> F[Selected CI tests]
Technical reviewBest possible solution: Complete the cleanup by removing the obsolete installer sentence while preserving the documented target-file contract. Do we have a high-confidence way to reproduce the issue? Source inspection directly confirms that the connect page describes an installer wrapper deleted by this PR. Is this the best way to solve the issue? Removing entire dormant paths and already-filtered rows is proportionate; the remaining documentation sentence should be removed in the same cutover. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5f925029e080. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -694, Other -1133. Total -1827 across 9 files. Added test files: 0. View PR surface stats
Review metrics
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 (1 earlier review cycle)
Reviewed October 12, 2026, 12:51 AM ET / 04:51 UTC (Revision 2). |
…#169606) ## What Problem This Solves The script tree retains dormant one-off tools and CI inventory rows that its current selector already discards. ## User Impact No user-facing OpenClaw feature or active test selection changes. The maintained `.mts` entrypoints, runtime security checks, and existing CI filter remain in place. ## Why This Change Was Made Delete the 642-line private acceptance probe and 214-line dormant connect installer with their dedicated tests and obsolete test inventory/timing entries. The full reference graph separates package/workflow/docs/skill/config callers from test-only references. The probe has only its dedicated test/timing reference and was last changed September 13 in openclaw#146807. The connect wrapper describes itself as dormant and unactivated, has only its dedicated test/Bash inventory references, and was last changed September 27 in openclaw#159199. Neither was active this week. Delete 265 literal rows from `ci-proof-test-inventory.mts` that the existing `isOwnerSelectedUiE2eTest` filter already excludes. This is not a change to selection policy: the filter is unchanged and its ordered effective inventory remains 4,098 entries, byte-for-byte identical. The relevant selection policy was established in `4544bdc0121b1d8fdc917d456015078338775fac` on October 1. Two obsolete five-line `.mjs` aliases are also removed: `check-memory-fd-repro` and `resolve-openclaw-package-candidate`. All current package, workflow, and test callers already use the maintained `.mts` entrypoints; these aliases had no inbound references and no changes since August 9 (openclaw#121005). The same reference audit deliberately retained active orphan-looking tools and the iOS sidebar fixture consumed through `OPENCLAW_IOS_ATTENTION_FIXTURE_URL`. No protected PR-tooling closure file changed. Net production reduction: **1,131 lines**, excluding tests and timing data. ## Best-effort tradeoffs accepted None in live behavior. This removes entire uncalled, dormant tools, not their security checks from a maintained path; the CI change removes only rows already filtered out. ## Evidence - Fresh-main reference graph covered 54,316 tracked files, 1,783 scripts and 25,095 edges, including package scripts, workflows/actions, docs, skills, test/runner configs and dynamic resource roots. Independent audit found no live caller or current-week activity for the four deleted tools; all five script targets are outside the 261-file executable PR-tooling closure. - Before/after evaluation of the actual applied commit: all 265 removed rows match the unchanged filter. Ordered effective array SHA-256 stays `048bb0503adb374dbe431844df8c0acc65e0cb42cd44b24c2badea55c3b89ba9`; all three predicates match on 10,279 inputs. Ordered exports and live exempt enumeration also match. - Focused proof: 253 tests passed, including both inventory cases, 140 macOS script cases, 33 maintained memory-FD cases, 61 maintained package-candidate/security cases, lint suppressions and the protected wrapper inventory. Three additional wrapper-extraction cases failed because the existing local install has `mdast-util-from-markdown` 2.0.3 while current main requires 2.1.0. The dependency manifest, lockfile, materializer and failing test are unchanged by this PR. Total wrapper wall time: 443.45 seconds; Vitest reported 397.90 seconds. No timeout, assertion, retry or skip was changed. - Runtime and static cycle checks passed with zero cycles. Independent P0/P1 autoreview was scoped-clean; the applied commit has the identical stable patch ID to that reviewed cut. - Changed-file verification passed all preceding guards, formatting, script types and all four root-test type shards. Script Knip passed with zero entries. The production/full-tree Knip scans both hit their unchanged 600-second deadlines, so the overall command is incomplete at that stage, not green. Its default remote backend did not authenticate or run checks; these are local-fallback results. Full script lint and changed-test lint passed separately. Exact-head hosted CI remains the landing gate. - Hosted CI [run 38204018042](https://github.com/openclaw/openclaw/actions/runs/38204018042) passed at `392e950df000e7dbd095fe9447392d11af7a041c`. Final exact-head census: 177 terminal checks, 79 successful, 97 intentionally skipped, one neutral, no failures or cancellations; dependency/security review and combined CI statuses are successful. No CI reruns or green-only pushes.
What Problem This Solves
The script tree retains dormant one-off tools and CI inventory rows that its current selector already discards.
User Impact
No user-facing OpenClaw feature or active test selection changes. The maintained
.mtsentrypoints, runtime security checks, and existing CI filter remain in place.Why This Change Was Made
Delete the 642-line private acceptance probe and 214-line dormant connect installer with their dedicated tests and obsolete test inventory/timing entries. The full reference graph separates package/workflow/docs/skill/config callers from test-only references. The probe has only its dedicated test/timing reference and was last changed September 13 in #146807. The connect wrapper describes itself as dormant and unactivated, has only its dedicated test/Bash inventory references, and was last changed September 27 in #159199. Neither was active this week.
Delete 265 literal rows from
ci-proof-test-inventory.mtsthat the existingisOwnerSelectedUiE2eTestfilter already excludes. This is not a change to selection policy: the filter is unchanged and its ordered effective inventory remains 4,098 entries, byte-for-byte identical. The relevant selection policy was established incfa5dbf12434053460c60a25ee88fc771c666921on October 1.Two obsolete five-line
.mjsaliases are also removed:check-memory-fd-reproandresolve-openclaw-package-candidate. All current package, workflow, and test callers already use the maintained.mtsentrypoints; these aliases had no inbound references and no changes since August 9 (#121005).The same reference audit deliberately retained active orphan-looking tools and the iOS sidebar fixture consumed through
OPENCLAW_IOS_ATTENTION_FIXTURE_URL. No protected PR-tooling closure file changed.Net production reduction: 1,131 lines, excluding tests and timing data.
Best-effort tradeoffs accepted
None in live behavior. This removes entire uncalled, dormant tools, not their security checks from a maintained path; the CI change removes only rows already filtered out.
Evidence
048bb0503adb374dbe431844df8c0acc65e0cb42cd44b24c2badea55c3b89ba9; all three predicates match on 10,279 inputs. Ordered exports and live exempt enumeration also match.mdast-util-from-markdown2.0.3 while current main requires 2.1.0. The dependency manifest, lockfile, materializer and failing test are unchanged by this PR. Total wrapper wall time: 443.45 seconds; Vitest reported 397.90 seconds. No timeout, assertion, retry or skip was changed.392e950df000e7dbd095fe9447392d11af7a041c. Final exact-head census: 177 terminal checks, 79 successful, 97 intentionally skipped, one neutral, no failures or cancellations; dependency/security review and combined CI statuses are successful. No CI reruns or green-only pushes.