Repository navigation
refactor: remove unused reactive and incognito adapters - #169368
Conversation
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.
|
🦞👀 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 unused Solid adapters, presentation helpers, and inactive actor-based incognito expiry code. Example: Build the Control UI with the newly merged dashboards page.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Agent review detailsHow this fits togetherControl 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 939f740219d9. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -1262, Tests -2107, Docs -9, Other -4. Total -3382 across 34 files. Added test files: 0. View PR surface stats
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 Reviewed October 11, 2026, 5:20 PM ET / 21:20 UTC. |
#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.
) ## 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.
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.
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
projectSourceimplementation 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
--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.6b35e73d5f9be9cf79ccc4692f0109ce7d2915b3, includingopenclaw/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.