Repository navigation
refactor(runtime): deslop unused internal options - #164810
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 4, 2026, 3:36 AM ET / 07:36 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch removes unused private options, metrics, callbacks, and forwarding layers across runtime helpers, channel plugins, sessions, terminal output, and the Control UI, while adapting their tests. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this remains useful internal cleanup that current main does not contain. The previous conflict blocker is resolved, and no concrete introduced regression was found in the reviewed paths. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s runtime helpers connect CLI, UI, and channel requests to session storage, credentials, plugins, and execution services. This cleanup specializes those helpers to their existing production callers. flowchart LR
A[CLI and UI requests] --> C[Runtime helpers]
B[Channel events] --> C
C --> D[Existing authority and capability checks]
D --> E[Session and credential owners]
D --> F[Plugin and execution services]
E --> G[Results and diagnostics]
F --> 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: Keep one canonical owner for each retained behavior and preserve existing public contracts, settings, storage formats, and authority checks. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes behavior-preserving cleanup rather than a reported bug; no runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes: specializing private helpers to their existing callers and retaining canonical owners is a maintainable direction; no concrete competing implementation or public-contract break was identified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 920820b202b4. 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 (2 earlier review cycles)
|
05d9521 to
d2b650b
Compare
Remove invariant or unread private options, result fields, and forwarding layers across runtime owners, bundled plugins, Control UI, and private packages. Preserve configuration, CLI, SDK, persisted-data and wire contracts. Net production reduction: 1,421 lines. Validation includes 6,489 focused tests, 139 exact-head integration cases, 1,135 plugin contracts, type/lint/guard checks, and zero static/runtime import cycles. Land under the maintainer-authorized inherited-CI exception. Exact head 87d9ef3 has three inherited failed test shards. Auth/cron failures independently match main CI 37234906309; Google Meet matches scheduled main run 37235364849 and is fixed by #165133. The other executed checks passed. See the PR Evidence section for exact jobs and causal qualification. Related: #164268, #164810.
Specialize private agent, Gateway, infrastructure, and plugin flows to their actual callers. Remove unused options, fixed-value forwarding, and unread result fields while preserving public SDK, configuration, protocol, and lifecycle contracts. Preserve the new commentary-media ownership hook during conflict integration. Net production reduction: 969 lines. Independent review was clean; focused owner tests passed and both import-cycle checks reported zero. Matching inherited main failures and exact-head CI evidence are recorded in PR #165198. Related prior batches: #164268, #164810, #165124.
Remove fixed internal options, unread fields, and the forwarding layers and bookkeeping maintained only for them. Specialize Discord internals, preserve Nostr metric callbacks without unused snapshot state, simplify session patching through the canonical replacement owner, and remove private runtime, diagnostic, terminal, and UI options that callers never vary. Public SDK, configuration, CLI, persisted-data, protocol, and visible behavior contracts stay unchanged. Lifecycle, authorization, rate-limit, and cleanup guarantees remain with their existing owners. Validated with focused Linux tests, plugin contracts, both import-cycle checks, and independent review. Release-note context: internal simplification with no user-visible change.
Remove invariant or unread private options, result fields, and forwarding layers across runtime owners, bundled plugins, Control UI, and private packages. Preserve configuration, CLI, SDK, persisted-data and wire contracts. Net production reduction: 1,421 lines. Validation includes 6,489 focused tests, 139 exact-head integration cases, 1,135 plugin contracts, type/lint/guard checks, and zero static/runtime import cycles. Land under the maintainer-authorized inherited-CI exception. Exact head 87d9ef3 has three inherited failed test shards. Auth/cron failures independently match main CI 37234906309; Google Meet matches scheduled main run 37235364849 and is fixed by openclaw#165133. The other executed checks passed. See the PR Evidence section for exact jobs and causal qualification. Related: openclaw#164268, openclaw#164810.
Specialize private agent, Gateway, infrastructure, and plugin flows to their actual callers. Remove unused options, fixed-value forwarding, and unread result fields while preserving public SDK, configuration, protocol, and lifecycle contracts. Preserve the new commentary-media ownership hook during conflict integration. Net production reduction: 969 lines. Independent review was clean; focused owner tests passed and both import-cycle checks reported zero. Matching inherited main failures and exact-head CI evidence are recorded in PR openclaw#165198. Related prior batches: openclaw#164268, openclaw#164810, openclaw#165124.
What Problem This Solves
Unused internal options and result fields retain branches, forwarding layers, and state that no production caller needs. This continues the internal configuration cleanup in #164268.
User Impact
No user-visible change. Public plugin SDK signatures, configuration keys, CLI flags and output, persisted data, protocol fields, model-facing text, and visible UI behavior stay unchanged.
Why This Change Was Made
The overlap audit excludes active deslop PR files and the PR tooling closure. The shared CI inventory only loses the deleted test entry; assertion and mock baselines were regenerated shrink-only.
Evidence
61ef2a47fdc5858a38f83f3f8d03af0bb8afe2ce. Fresh review after the required conflict repair is also clean through P2.4bac1493291); neither fix is duplicated in this diff. The refreshed Doctor closure checks pass.The required rebase preserved main's new pairing-failure precedence and pending-pairing cleanup while deleting only unused timing calls. All other commits replayed unchanged. Fresh integration proof passed 1,232 tests in 51 files (98.60s), including pairing/connection behavior, auth privacy, and plugin contracts; both cycle checks are zero.
Hosted CI run 37185994301 passed on
d2b650b1c5e9690912ee8c524d531729b288ccd7, including the published-driver update contract andopenclaw/ci-gate. Squash-merged asc071d238483a2aa9debc68095433c18e28ee138e.