Repository navigation
refactor: simplify runtime adapters and remove obsolete code - #152277
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 September 18, 2026, 9:34 PM ET / September 19, 2026, 01:34 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch consolidates runtime adapters and shared types, removes unused native helpers and UI styles, moves Reef memory stores into test support, and updates affected tests. Warning SQLite table change This PR modifies persisted SQLite tables in Merge readiness⛔ Blocked before merge - 2 items remain Keep open as useful, maintainer-requested cleanup. No actionable introduced defect was found, and the source and compatibility response resolve the previous review’s blocker. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s runtime adapters connect agent commands and plugin requests to existing execution and storage owners. This cleanup simplifies those connections while retaining their configuration, authorization, and output contracts. flowchart LR
A[Agent commands] --> C[Lazy runtime adapters]
B[Plugin requests] --> C
C --> D[Existing runtime owners]
D --> E[Channel delivery]
D --> F[Session and preference storage]
F --> G[Native apps and Control UI]
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: Keep runtime and storage decisions with their existing owners and remove only redundant adapters, unused branches, and retired presentation code. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving cleanup, and source review found no concrete introduced failure to reproduce. Is this the best way to solve the issue? Yes. Reusing existing lazy loaders, storage helpers, and leaf types reduces duplication without introducing a competing owner or changing the inspected public contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9c831c7551c0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Compatibility checklist confirmed for Configuration defaults and active preference-write owners are retained. The removed native browser setting value was explicitly ignored, and browser configuration remains owned by the existing CLI worker. Existing-database migration, lease, board, progress-card, and preference tests passed. No migration or backfill is required. The PR body now records this compatibility confirmation. |
|
Merged via squash.
|
…w#152277) * refactor: consolidate runtime adapters and retire obsolete code * style(plugins): remove redundant filename headers * refactor(sessions): keep shared mutation contracts in a leaf module * test: remove startup timing and source sentinel coupling * test(memory): target queued-sync publication failures
Memory sync could time out after SQLite contention prevented cleanup of a completed local task's workspace lock: the 60-second stale threshold exceeded the next caller's 10-second wait. Record bounded settled-grant facts in Memory Core's existing lock owner so the next caller can reclaim that exact grant through the existing atomic comparison. Unique owner IDs prevent grant reuse; contention identifies its holder and unavailable storage retains the original SQLite cause without replacing task failures. Wait bounds, foreign-owner protection, and the persisted lock schema remain unchanged. Validation: exact-head CI passed; campaign proof reports 1,964 passing Memory Core tests and all four published/candidate lock-reader combinations. Independent review found no actionable P0/P1 issue. Related: #152277
…w#152430) Memory sync could time out after SQLite contention prevented cleanup of a completed local task's workspace lock: the 60-second stale threshold exceeded the next caller's 10-second wait. Record bounded settled-grant facts in Memory Core's existing lock owner so the next caller can reclaim that exact grant through the existing atomic comparison. Unique owner IDs prevent grant reuse; contention identifies its holder and unavailable storage retains the original SQLite cause without replacing task failures. Wait bounds, foreign-owner protection, and the persisted lock schema remain unchanged. Validation: exact-head CI passed; campaign proof reports 1,964 passing Memory Core tests and all four published/candidate lock-reader combinations. Independent review found no actionable P0/P1 issue. Related: openclaw#152277
What Problem This Solves
Removes duplicate runtime adapters, retired paths, and generated filename narration left after earlier ownership migrations. Follow-up to #151973, requested as a broader maintainer cleanup.
User Impact
Internal cleanup with no intended changes to CLI output, public SDK contracts, session storage, permissions, or UI appearance. No migration or operator action is required.
Storage/config compatibility is confirmed: canonical SQL, agent/state schema versions (21/17), configuration defaults, and migration logic remain unchanged. The real preference-write owners remain active; the removed optional upsert branch had no callers. Existing-database migration, lease, board, progress-card, and preference tests passed.
Why This Change Was Made
The runtime cleanup reuses existing lazy loaders, canonical session/TTS types, SQLite schema extraction, and Workboard registration helpers. It also removes obsolete native configuration plumbing, retired styles, and unused preference-writing code, and moves Reef's test-only memory stores out of production.
A separate comment-only commit removes only filename-restating plugin headers. Meaningful ownership, lifecycle, and contract comments remain.
The net production-file reduction is 2,128 lines excluding formatting-only deletions: 1,025 code/type/style lines and 1,103 comment headers. The code count includes 135 lines moved into test support, rather than deleted behavior. Two leading blank-line deletions are excluded. This is a maintainability and unnecessary-work cleanup; no end-to-end latency improvement is claimed.
Evidence