Repository navigation
refactor(core): deslop remaining small core subsystems - #164153
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: blocked before merge. Reviewed October 3, 2026, 6:53 AM ET / 10:53 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch simplifies private core runtime, diagnostic, storage, and widget plumbing and fixes Gmail setup when the resolved Python executable path contains spaces. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful landing candidate: no actionable introduced correctness or security defect was found, and current main still lacks the Gmail executable-path repair. The related merged refactors do not supersede this work. Priority: P3 Review scores
Verification
How this fits togetherThese core subsystems turn configuration and agent requests into diagnostics, process execution, stored artifacts, and client updates. The refactor consolidates their internal plumbing while retaining the existing downstream contracts. flowchart TD
A[Configuration and agent requests] --> B[Core runtime owners]
B --> C[Diagnostics and model selection]
B --> D[Process and session execution]
B --> E[Widget and capture storage]
C --> F[Operator results]
D --> G[Client updates]
E --> G
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Retain the consolidated owners and complete Python executable path while preserving existing storage, SDK, cancellation, and client-output contracts. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main truncates a resolved Python executable path containing spaces before checking its accessibility. The changed regression exercises that trigger; it was not executed in this read-only review. Is this the best way to solve the issue? Yes. The Gmail correction removes the destructive split at its producer, and the inspected refactors reuse existing owners without introducing competing APIs or changing stored formats. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6deb68fad107. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
a62dd73 to
127ef89
Compare
Remove private forwarding layers, unused creation modes, redundant projections and dead type declarations while preserving public contracts and lifecycle ownership. Fix Gmail Python executable resolution for paths containing spaces.
Preserve sparse media projections and options snapshots while satisfying lint. Type Doctor snapshot fixtures and isolate the broker clock from module loading without weakening lifecycle assertions.
127ef89 to
428b82c
Compare
OPENCLAW_NODE_EXEC_FALLBACK was removed by #164153 without lowering the shrink-only budget.
Consolidate connection-bound query caches, worker transaction admission, and schema installation through the existing SQLite owners. Preserve schemas, pragmas, transaction boundaries, current-authority checks, retention, persisted values, and SDK exports. Remove 451 net production source lines after excluding adapters owned by #164153. The coverage log records 405 fully read production and operational files over 200 lines. Validated with focused store tests, plugin contracts, typechecks, lint, formatting, and both import-cycle checks. Hosted CI remains the merge gate.
* refactor(core): deslop remaining small core subsystems Remove private forwarding layers, unused creation modes, redundant projections and dead type declarations while preserving public contracts and lifecycle ownership. Fix Gmail Python executable resolution for paths containing spaces. * fix(core): repair deslop lint and fixture contracts Preserve sparse media projections and options snapshots while satisfying lint. Type Doctor snapshot fixtures and isolate the broker clock from module loading without weakening lifecycle assertions. * build(workboard): refresh browser asset fingerprint * chore(core): reconcile assertion ratchet with current main
OPENCLAW_NODE_EXEC_FALLBACK was removed by openclaw#164153 without lowering the shrink-only budget.
Consolidate connection-bound query caches, worker transaction admission, and schema installation through the existing SQLite owners. Preserve schemas, pragmas, transaction boundaries, current-authority checks, retention, persisted values, and SDK exports. Remove 451 net production source lines after excluding adapters owned by openclaw#164153. The coverage log records 405 fully read production and operational files over 200 lines. Validated with focused store tests, plugin contracts, typechecks, lint, formatting, and both import-cycle checks. Hosted CI remains the merge gate.
What Problem This Solves
Core subsystems retain private forwarding layers, duplicated projections, and unused branches that obscure their actual owners.
User Impact
The refactor preserves configuration, persisted data, protocol shapes, output text, and public SDK declarations. Gmail setup now also handles Python executable paths containing spaces.
Why This Change Was Made
Overlapping node configuration, exec-policy, phase-type, and installer cleanups were excluded because #164058 already landed them. Workboard's browser consumes the shared boolean module through the SDK; its generated manifest is refreshed for the resulting bundle hash.
Fixes found along the way
Gmail setup split a resolved Python executable on whitespace. Its existing regression now uses a path containing
Python Runtimeand checks the exactCLOUDSDK_PYTHONplus caching. The broker admission fixture now installs fake timers after module loading and before bootstrap, preserving every admission and zero-timer assertion. Current main's Doctor snapshot fixture repair is retained; our duplicate repair was dropped during rebase.Evidence
nice -n 15after Testbox queueing and AWS sync timeout; they are not Linux repeat evidence.The final run has one remaining failing job: UI E2E 1/9.
chat-subagent-waiting.e2e.test.ts:201uses a global text locator after navigation; it matches two cached-pane copies of “Handed off and waiting.” This test and its waiting-notice/pane rendering are unchanged by this PR; the changed UI fixture belongs to the separate real-Gateway project.Unrelated PR #164221’s current run fails the same test at line 250 with an extra
sessions.listrequest (expected 2, got 3). This corroborates instability in the new fixture but is a different assertion; exact failure-mode pre-existence is not yet proven. No admin merge has been attempted.Final production delta: −997 lines (tests and generated assets excluded). BELOW-1000 final remainder after CI corrections; the full current large-file coverage log follows.
Coverage: all 415 production files over 200 lines, sorted by current size