Skip to content

fix: remove unused exports after owner cutovers - #173991

Merged
steipete merged 1 commit into
mainfrom
ci/fix9-deadcode-20261016c
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix9-deadcode-20261016c

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes six uncovered unused exports that fail the deadcode checks after recent owner refactors, first reported in hourly 38863277510.

User Impact

No user-visible behavior change. The affected checks stop reporting these six exports; the separate palette factory remains covered by active PR #173919.

Why This Change Was Made

Keep the Auto Review schema, theme initial state, and two Slack assertion helpers private. Remove the retired queue preparation API by inlining its sole immediate caller, preserving selection, lane identity, rejection, and survivor order. Register the chat bridge without its unused component alias and exercise the existing registered host in both affected tests. No assertions, test cases, ignores, or timeout changes were removed or added to suppress failures. Production shrinks by nine lines.

History and PR bodies were checked, including #173455, #173688, and #173833. Fresh main history and open-PR diffs contain no competing fix for these six findings. The palette owner is intentionally untouched.

Evidence

All three deadcode scripts ran before and after: production unused exports fall from five to only the peer-covered palette factory; full-tree exports fall from four to zero; script exports and unused-file scans report zero. The dependency/export checks therefore still exit nonzero for that single covered palette item; this is not a claim that all of main is green.

All 205 focused cases pass, including the entire 90-case sole importer of the changed Slack test helper. Core, UI, and extension production types plus owning test-type lanes pass. Targeted lint, boundary lint, format, assertion safety, and isolated P2 review pass. Three unrelated global max-lines ratchet findings remain; their files and baseline are byte-identical to the proof base. No full Vitest configurations, full check-changed, architecture run, or full runtime/UI build were run.

Changed-test commands used pnpm test <file> --maxWorkers=1: chat-page 21.00s; snapshot custody 30.78s; abort 58.02s; queue cancellation, including the new selective-clear case, 4.69s. Slack's sole helper importer passes in 75.86s. The two mechanical rebases preserved all nine changed files byte-for-byte; completed proof was retained.

Published as a ready PR after two direct-main pushes lost races with concurrent main commits. No CI reruns or dispatches were requested.

Hourly 38863277510 found exports left behind by recent owner refactors.
Fresh main also exposes a retired queue preparation API and two Slack
assertion helpers. Remove six uncovered exports at their owners:

- Keep the Auto Review parameter schema and theme initial state private.
- Register the chat bridge without exporting its unused component alias;
  exercise its existing registered host in both affected tests.
- Inline the queue-clear preparation into its sole immediate caller,
  preserving selection, lane identity, rejection, and survivor ordering.
  Remove the stale abort mock and cover selective clearing through the API.
- Keep two Slack assertion helpers private, retaining all their assertions.

No Knip ignores, policy changes, retries, timeout changes, or removed test
cases. Production exports fall from five to the one palette factory covered
by active PR #173919; full-tree and script exports are clean. References:
#173455, #173688, #173833. Production shrinks by nine lines.

Proof: all three deadcode scripts, focused owner tests with --maxWorkers=1,
core/UI/extension production types and owning test types, targeted lint,
boundary lint, format, assertion safety, and isolated P2 review. Shared
Slack helper proof runs its sole importer in full. New selective-clear
case passes inside its seven-case file in 4.69s. The three unchanged global
max-lines suppression findings are inherited, with base blobs verified.

Changed-test wall times: chat-page 21.00s, snapshot custody 30.78s,
abort 58.02s, queue cancellation 4.69s. The sole Slack helper importer
passes all 90 tests in 75.86s. Total focused coverage: 205 cases.
@clawsweeper

clawsweeper Bot commented Oct 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 Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T08:01:08.590060Z 6b00013 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.

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack app: web-ui App: web-ui extensions: autoreview AutoReview plugin and integration size: S labels Oct 16, 2026
@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. labels Oct 16, 2026
@steipete
steipete merged commit 7a43e12 into main Oct 16, 2026
134 of 136 checks passed
@steipete
steipete deleted the ci/fix9-deadcode-20261016c branch October 16, 2026 08:10
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
Hourly 38863277510 found exports left behind by recent owner refactors.
Fresh main also exposes a retired queue preparation API and two Slack
assertion helpers. Remove six uncovered exports at their owners:

- Keep the Auto Review parameter schema and theme initial state private.
- Register the chat bridge without exporting its unused component alias;
  exercise its existing registered host in both affected tests.
- Inline the queue-clear preparation into its sole immediate caller,
  preserving selection, lane identity, rejection, and survivor ordering.
  Remove the stale abort mock and cover selective clearing through the API.
- Keep two Slack assertion helpers private, retaining all their assertions.

No Knip ignores, policy changes, retries, timeout changes, or removed test
cases. Production exports fall from five to the one palette factory covered
by active PR openclaw#173919; full-tree and script exports are clean. References:
openclaw#173455, openclaw#173688, openclaw#173833. Production shrinks by nine lines.

Proof: all three deadcode scripts, focused owner tests with --maxWorkers=1,
core/UI/extension production types and owning test types, targeted lint,
boundary lint, format, assertion safety, and isolated P2 review. Shared
Slack helper proof runs its sole importer in full. New selective-clear
case passes inside its seven-case file in 4.69s. The three unchanged global
max-lines suppression findings are inherited, with base blobs verified.

Changed-test wall times: chat-page 21.00s, snapshot custody 30.78s,
abort 58.02s, queue cancellation 4.69s. The sole Slack helper importer
passes all 90 tests in 75.86s. Total focused coverage: 205 cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: slack Channel integration: slack clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. extensions: autoreview AutoReview plugin and integration size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant