Skip to content

refactor(scripts): remove dormant tools and inert inventory - #169606

Merged
steipete merged 1 commit into
mainfrom
deslop/w08-scripts-round3-20261012
Oct 12, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/w08-scripts-round3-20261012

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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 #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.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 cfa5dbf12434053460c60a25ee88fc771c666921 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 (#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 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.

@clawsweeper

clawsweeper Bot commented Oct 12, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL labels Oct 12, 2026
@steipete
steipete marked this pull request as ready for review October 12, 2026 04:29
@clawsweeper clawsweeper Bot added 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. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

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

  • Before: The protected inventory lists it, then the existing owner-selection filter excludes it.
  • After: The redundant inventory row is absent, with the same owner-selection behavior.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, source-supported cleanup with successful exact-head validation; supplied proof is primarily inventory evaluation and tests, and one documentation correction remains.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-directed internal cleanup changes no shipped user flow; supplied inventory-equivalence evaluation and focused validation support the deletion, without constituting live product proof.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Dormant tooling and inert inventory create repository maintenance cost without serving active flows.
Reason: The maintainer-directed deletion preserves maintained implementations and established CI policy while removing obsolete code.

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
Reviewed head: 392e950df000e7dbd095fe9447392d11af7a041c

Before merge

  • Remove the deleted installer's reference from the connect docs (P3) - Deleting scripts/connect.sh leaves the published connect page claiming that a dormant installer wrapper uses the target-file handoff. Remove that obsolete sentence while retaining the surrounding target-file behavior. This is a late discovery: the same wording and deletion were present at the previously reviewed head, and the comparison shows neither changed.

Findings

  • [P3] Remove the deleted installer's reference from the connect docs — docs/cli/connect.md:209-210
Agent review details

How this fits together

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

Technical review

Best 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:

  • [P3] Remove the deleted installer's reference from the connect docs — docs/cli/connect.md:209-210
    Deleting scripts/connect.sh leaves the published connect page claiming that a dormant installer wrapper uses the target-file handoff. Remove that obsolete sentence while retaining the surrounding target-file behavior. This is a late discovery: the same wording and deletion were present at the previously reviewed head, and the comparison shows neither changed.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is correct
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Protected UI E2E inventory keeps the original intent (cfa5dbf: Indirect browser compositions are selected by owners and retained in hourly and release validation.)
  • Dormant connect installer changes intended behavior with a stated reason (feat(cli): prepare session-host onboarding #125879: Prepare an unpublished fresh-machine installer for possible later stable-release activation.)
  • Private acceptance probe changes intended behavior with a stated reason (35ebb96: Acceptance tooling accompanied native and alias-backed catalog consistency work; the PR now records that it has no active callers.)
  • JavaScript executable aliases changes intended behavior with a stated reason (refactor(scripts): migrate JavaScript tools to TypeScript #121005: The TypeScript migration retained executable shims for stable documented paths; current callers of these two tools use their maintained TypeScript entrypoints.)
  • Deleted test timing and Bash inventory entries keeps the original intent (ce8b507: Timing and platform inventories tracked then-existing tests and scripts; their entries become obsolete when those paths are deleted.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:docs
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit cfa5dbf adds scripts/lib/ci-proof-test-inventory.mts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cfa5dbf12434; files: scripts/lib/ci-proof-test-inventory.mts)

PR surface

Tests -694, Other -1133. Total -1827 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 0 694 -694
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 6 0 1133 -1133
Total 9 0 1827 -1827

Review metrics

Metric Value Why it matters
Production versus test reduction Production −1,131 LOC; tests −694 LOC Deletion removes dormant implementations, redundant aliases, filtered inventory rows, and their obsolete test surface.

Labels

Label changes:

  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P3: Internal cleanup preserves active behavior; the remaining defect is a low-impact documentation reference.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-12T04:34:56.981Z sha 392e950 :: needs maintainer review before merge. :: none

Reviewed October 12, 2026, 12:51 AM ET / 04:51 UTC (Revision 2).

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
@steipete
steipete merged commit d2ff5e5 into main Oct 12, 2026
193 checks passed
@steipete
steipete deleted the deslop/w08-scripts-round3-20261012 branch October 12, 2026 04:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…#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.
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. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant