Skip to content

refactor: remove unused reactive and incognito adapters - #169368

Merged
steipete merged 1 commit into
mainfrom
deslop/w13-dead-exports-20261011
Oct 11, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/w13-dead-exports-20261011

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes dormant migration scaffolding that adds maintenance surface without serving a production caller.

User Impact

No user-visible behavior change. Active UI state owners and projections, native incognito expiry, public SDK/package exports, security checks, storage, and configuration remain intact.

Why This Change Was Made

Delete unadopted Solid projections and their event/lease infrastructure rather than retaining a parallel adapter layer for hypothetical future consumers. The introducing projection PR explicitly describes an internal foundation with no rendered UI change.

Delete the inactive actor-specific incognito expiry sidecars and their exclusive tests. Their introducing work (single-actor, topology composition) explicitly leaves production on the native sidecar. Its existing real deletion/shutdown tests stay unchanged.

Net production reduction: 1,262 lines (13 added, 1,275 deleted; tests, test support, docs, fixtures and generated code excluded). Every removed module/export was checked against repository-wide references, dynamic loaders, manifests and package exports. The active projectSource implementation is unchanged apart from making its unused exported input type private. Remove the stale whole-directory Knip entry exemption now that every retained reactive module has a production caller. Also drop four zero-caller Solid presentation helpers from the preparatory #168576 layer; their live Lit counterparts and all gallery-used helpers remain.

Best-effort tradeoffs accepted

Evidence

  • Independent P0–P2 review: scoped clean; no accepted/actionable findings.
  • Retained reactive scope plus application-context lifecycle: 27 tests passed in 10 files.
  • Retained Solid component scope: 49 tests passed in 10 files, 83.22 s command wall time.
  • Changed-file cost run with --maxWorkers=1: 20 tests passed in 7 files, 74.43 s command wall time; individual file test windows were 2–325 ms. No new tests, timers, retries, skips, or suppressions.
  • Real native incognito sidecar/deletion/shutdown suite: 9 tests passed, unchanged.
  • Lint-suppression guard: 3 tests passed; no new suppressions.
  • Production Knip: passed on the source-capsule-verified Testbox candidate.
  • Full-tree Knip: no unused files/exports reported; the broader pass reports pre-existing dependency/binary/path metadata outside this diff. Canonical export-only pass is clean.
  • Change-check proof: all 28 core/test type graphs plus production/UI types, ratchets, formatting, script lint, storage/loader/auth guards passed. The initial run caught README formatting and one unused test import; both are fixed. Completed results were reused while the corrected lint stripe and remaining commands were run through the same changed-scope owner. Final component-only UI types, lint, and style checks passed.
  • Runtime import cycles: 0. Madge cycles: 0. Final production and full-tree export scans both passed on the source-capsule-verified Testbox run.
  • Exact-head CI passed on 6b35e73d5f9be9cf79ccc4692f0109ce7d2915b3, including openclaw/ci-gate; no failed checks or CI reruns. Workflow wall time was 454 s. The three UI check jobs took 264/304/288 s wall time (including setup), and the UI E2E jobs passed.

No live Gateway or real OpenClaw state was used. Every executable proof used isolated HOME, OpenClaw state/config and XDG directories.

Drop unadopted Solid projections, event/lease infrastructure, and inactive
actor-expiry sidecars. Keep the real state owners, native expiry path, and
their behavior tests. Remove the stale reactive-directory Knip exemption.

The deleted implementations had only test callers, not public consumers.
Future integrations should use the existing owners instead of retaining
speculative replacement, subscription, and retirement machinery.
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XL labels Oct 11, 2026
@steipete
steipete marked this pull request as ready for review October 11, 2026 21:14
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR removes unused Solid adapters, presentation helpers, and inactive actor-based incognito expiry code.

Example: Build the Control UI with the newly merged dashboards page.

  • Before: DashboardsPage imports projectSessionList to observe managed session lists.
  • After: This PR removes that export, leaving the current-main caller unresolved.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful simplification with supporting harness evidence, but a concrete current-main integration defect blocks merge.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal cleanup is outside the ordinary contributor proof gate; supplied tests support retained owners, while inspected screenshots belong to the earlier presentation migration.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Dormant migration infrastructure adds maintenance cost without serving users.
Reason: The maintainer-authored direction deliberately removes speculative machinery while preserving existing owners; newly adopted adapters need to remain.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the cleanup is useful, but current main now consumes three projections it deletes, creating a concrete integration failure.

Priority: P2
Reviewed head: 6b35e73d5f9be9cf79ccc4692f0109ce7d2915b3

Before merge

  • Retain the projections adopted by the merged board port (P1) - Current main commit 939f740, from refactor(ui): port board and system pages to Solid 2 #168871, adds production consumers of three adapters removed here: board-document.tsx and control-ui-dashboard.tsx import projectBoardProvider, control-ui-session-summary.tsx imports projectProgressCard, and dashboards-page.tsx imports projectSessionList. Combining these deletions with that merged port leaves two missing modules and one missing export, breaking UI type checking/building. The pinned synthetic merge predates that port. Preserve these three adapters, their required helpers/types, and focused coverage while pruning the unused siblings.

Findings

  • [P1] Retain the projections adopted by the merged board port — ui/src/lib/reactive/domain-board.ts:49-55
Agent review details

How this fits together

Control UI projections adapt authoritative state owners for Solid consumers; the Gateway expiry sidecar schedules incognito deletion through the existing session deletion owner.

flowchart LR
  A[Gateway state owners] --> B[Solid projections]
  B --> C[Dashboard and plugin views]
  D[Incognito session publications] --> E[Native expiry sidecar]
  E --> F[Session deletion owner]
Loading

Technical review

Best possible solution:

Retain the three projections adopted by current main and their focused coverage while removing the remaining unused scaffolding.

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

Static imports on current main directly reference the deleted modules and export; this establishes the integration failure without executing target code.

Is this the best way to solve the issue?

Removing unused adapters is sound, but the removal set must exclude the three projections that gained production consumers after the PR's base.

Full review comments:

  • [P1] Retain the projections adopted by the merged board port — ui/src/lib/reactive/domain-board.ts:49-55
    Current main commit 939f740, from refactor(ui): port board and system pages to Solid 2 #168871, adds production consumers of three adapters removed here: board-document.tsx and control-ui-dashboard.tsx import projectBoardProvider, control-ui-session-summary.tsx imports projectProgressCard, and dashboards-page.tsx imports projectSessionList. Combining these deletions with that merged port leaves two missing modules and one missing export, breaking UI type checking/building. The pinned synthetic merge predates that port. Preserve these three adapters, their required helpers/types, and focused coverage while pruning the unused siblings.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Solid projections and event infrastructure changes intended behavior with a stated reason (e09de50: Provide an internal reactive foundation for future Solid consumers while retaining existing state owners.)
  • Actor-specific incognito expiry changes intended behavior with a stated reason (af57555: Prepare retained actor lifetimes for later atomic activation while production remains on native routes.)
  • Actor topology expiry composition changes intended behavior with a stated reason (7855489: Prepare existing-only topology composition and accepted cleanup before production activation.)
  • Solid presentation helpers changes intended behavior with a stated reason (eca633a: Supply presentation primitives during the Lit-to-Solid migration.)
  • Reactive-directory Knip entry exemption keeps the original intent (61621f7: Register dormant foundation files until production importers arrive, explicitly requiring removal of the exemption with adoption.)
  • Solid state-ownership guidance keeps the original intent (52adcc9: Centralize Solid ownership and migration guidance.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm tsgo:ui
  • pnpm ui:build
  • pnpm test ui/src/components/board/board-document.test.ts ui/src/plugins/control-ui-dashboard.test.ts ui/src/plugins/control-ui-session-summary.test.ts ui/src/pages/dashboards/dashboards-page.test.tsx --maxWorkers=1
  • pnpm test ui/src/lib/reactive/domain-board.test.ts ui/src/lib/reactive/domain-keyed.test.ts ui/src/lib/reactive/domain-capabilities.test.ts --maxWorkers=1
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e09de50 adds ui/src/lib/reactive/projection.ts:13 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e09de50421ef; files: ui/src/lib/reactive/projection.ts)

PR surface

Source -1262, Tests -2107, Docs -9, Other -4. Total -3382 across 34 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 16 13 1275 -1262
Tests 15 14 2121 -2107
Docs 2 11 20 -9
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 5 -4
Total 34 39 3421 -3382

Labels

Label changes:

  • add P2: Useful internal cleanup requires a focused integration repair before merge.
  • add merge-risk: 🚨 compatibility: Current-main UI consumers import three adapters removed by this PR, so the combined source cannot resolve those imports.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Useful internal cleanup requires a focused integration repair before merge.
  • merge-risk: 🚨 compatibility: Current-main UI consumers import three adapters removed by this PR, so the combined source cannot resolve those imports.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • 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.

Reviewed October 11, 2026, 5:20 PM ET / 21:20 UTC.

@steipete
steipete merged commit ef6d4c9 into main Oct 11, 2026
219 of 220 checks passed
@steipete
steipete deleted the deslop/w13-dead-exports-20261011 branch October 11, 2026 21:34
steipete added a commit that referenced this pull request Oct 11, 2026
#169368 removed projections it found unused on its base, but the board
and dashboards port (#168871) and the debug port (#168805) landed first
and import them. Main's UI typecheck and build failed on the missing
modules and exports.

Restore only the four thin projections those callers use
(projectBoardProvider, projectProgressCard, projectSessionList,
projectGatewayEventLog); the event-projection and lease machinery stays
removed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
)

## What Problem This Solves

Removes dormant migration scaffolding that adds maintenance surface without serving a production caller.

## User Impact

No user-visible behavior change. Active UI state owners and projections, native incognito expiry, public SDK/package exports, security checks, storage, and configuration remain intact.

## Why This Change Was Made

Delete unadopted Solid projections and their event/lease infrastructure rather than retaining a parallel adapter layer for hypothetical future consumers. The introducing [projection PR](openclaw#168405) explicitly describes an internal foundation with no rendered UI change.

Delete the inactive actor-specific incognito expiry sidecars and their exclusive tests. Their introducing work ([single-actor](openclaw#165454), [topology composition](openclaw#165901)) explicitly leaves production on the native sidecar. Its existing real deletion/shutdown tests stay unchanged.

Net production reduction: **1,262 lines** (13 added, 1,275 deleted; tests, test support, docs, fixtures and generated code excluded). Every removed module/export was checked against repository-wide references, dynamic loaders, manifests and package exports. The active `projectSource` implementation is unchanged apart from making its unused exported input type private. Remove the stale whole-directory Knip entry exemption now that every retained reactive module has a production caller. Also drop four zero-caller Solid presentation helpers from the preparatory openclaw#168576 layer; their live Lit counterparts and all gallery-used helpers remain.

## Best-effort tradeoffs accepted

- Unused event-projection replacement/disposal generations, duplicate-listener bookkeeping and async settlement: these only served the unadopted openclaw#168405 adapters and synthetic tests, not a human-reported runtime incident. Future event consumers subscribe to the existing owners and retain their ordering/completion contracts.
- Unused board/provider lease counting and temporary palette subscriptions: openclaw#168405 introduced them for future migration consumers that never arrived. Existing provider/preference owners remain authoritative; a future port must add only the adapter it actually needs.
- Unused generic locale-catalog replacement/listener bookkeeping: the wrapper had only its own test as a caller. Actual locale subscriptions and lazy English registration remain; a future replacement API must be integrated with the translation owner rather than kept as a test-only parallel path.
- Inactive actor topology capture, incarnation fences, acquisition/retirement reconciliation and actor-only settling checks: openclaw#165454/openclaw#165901 label this prerequisite inactive, and production still calls the native sidecar. Future activation must implement its actual integration; no live deletion loses authority or shutdown checks.

## Evidence

- Independent P0–P2 review: scoped clean; no accepted/actionable findings.
- Retained reactive scope plus application-context lifecycle: **27 tests passed in 10 files**.
- Retained Solid component scope: **49 tests passed in 10 files**, 83.22 s command wall time.
- Changed-file cost run with `--maxWorkers=1`: **20 tests passed in 7 files**, 74.43 s command wall time; individual file test windows were 2–325 ms. No new tests, timers, retries, skips, or suppressions.
- Real native incognito sidecar/deletion/shutdown suite: **9 tests passed**, unchanged.
- Lint-suppression guard: **3 tests passed**; no new suppressions.
- Production Knip: **passed** on the source-capsule-verified Testbox candidate.
- Full-tree Knip: no unused files/exports reported; the broader pass reports pre-existing dependency/binary/path metadata outside this diff. Canonical export-only pass is clean.
- Change-check proof: all 28 core/test type graphs plus production/UI types, ratchets, formatting, script lint, storage/loader/auth guards passed. The initial run caught README formatting and one unused test import; both are fixed. Completed results were reused while the corrected lint stripe and remaining commands were run through the same changed-scope owner. Final component-only UI types, lint, and style checks passed.
- Runtime import cycles: **0**. Madge cycles: **0**. Final production and full-tree export scans both passed on the source-capsule-verified [Testbox run](https://github.com/openclaw/openclaw/actions/runs/38171748378).
- [Exact-head CI](https://github.com/openclaw/openclaw/actions/runs/38175521266) passed on `6b35e73d5f9be9cf79ccc4692f0109ce7d2915b3`, including `openclaw/ci-gate`; no failed checks or CI reruns. Workflow wall time was 454 s. The three UI check jobs took 264/304/288 s wall time (including setup), and the UI E2E jobs passed.

No live Gateway or real OpenClaw state was used. Every executable proof used isolated HOME, OpenClaw state/config and XDG directories.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
openclaw#169368 removed projections it found unused on its base, but the board
and dashboards port (openclaw#168871) and the debug port (openclaw#168805) landed first
and import them. Main's UI typecheck and build failed on the missing
modules and exports.

Restore only the four thin projections those callers use
(projectBoardProvider, projectProgressCard, projectSessionList,
projectGatewayEventLog); the event-projection and lease machinery stays
removed.
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 gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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