Repository navigation
refactor: retire due compat-ledger surfaces (context-engine host params, deactivate alias, logging internals) - #121845
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 3:21 PM ET / 19:21 UTC. ClawSweeper reviewWhat this changesThe PR retires eight dated Plugin SDK subpaths and the deprecated Merge readinessNo blocking patch defect was established. This maintainer-approved PR intentionally removes published Plugin SDK compatibility paths, so it should remain open until exact-head package and CI checks complete. Priority: P2 Review scores
Verification
How this fits togetherPlugin SDK exports are the public boundary used by external plugins, while the plugin registry maps typed lifecycle hooks into Gateway runtime events. The logging changes separate test controls from production logger exports without changing the file transport’s runtime owner. flowchart LR
A[External plugins] --> B[Plugin SDK subpaths]
B --> C[Plugin registry]
C --> D[Gateway lifecycle hooks]
D --> E[Plugin shutdown]
F[Core logger] --> G[File transport]
H[Test-only controls] --> G
Before merge
Agent review detailsSecurityNone. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Ship one coherent, owner-approved retirement only after exact-head package-export, API-baseline, boundary, and CI validation confirms every removed facade and replacement remains aligned. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR retires documented compatibility surfaces rather than repairing a reported runtime failure. Is this the best way to solve the issue? Yes, subject to exact-head validation: removal at the public SDK and hook-registration owners is cleaner than retaining internal aliases, and focused replacement seams already exist. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a1615cdfcf4d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
51fbf11 to
5de93c6
Compare
2955145 to
367ea69
Compare
|
Heads-up: the The remaining scope here — the 2026-08-15 records (deactivate alias, logging internals, channel subpaths) — is not yet date-eligible. A rebase onto current |
367ea69 to
21ff899
Compare
aa3e3c4 to
6b52286
Compare
shouldSkipMutatingLoggingConfigRead had no production caller even on main; it survived the dead-export scan only via logger's testApi re-export. The test-isolation commit removed that mask, exposing the fossil. Delete the guard, its test-only re-export, its mock entry, and its dedicated test file.
Repair the main-owned regression from 99d6624 (Peter Steinberger): the new env-contract test could consume stale ignored dist metadata instead of the checked-in plugin declaration.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Land-ready proof for exact head
|
|
Merged via squash.
|
What Problem This Solves
The LOC-reduction campaign's compat ledger scheduled several deprecated surfaces for retirement in mid-August. This PR retires the ones owned by this branch and deletes dead code the retirement exposed, per Repair Doctrine (one canonical path, no steady-state compat shims).
Window note: landed early by explicit SDK-owner approval (see the override comment):
text-runtime+ due subpaths (removeAfter 2026-08-15) and thedeactivatealias (removeAfter 2026-08-16) retire 3-4 days ahead of window after months of deprecation warnings.inbound-reply-dispatchstays until the next Plugin SDK major (#121308). This PR is the consolidated window-day retirement, accelerated.Why This Change Was Made
refactor(plugins): retire deactivate hook alias—api.on("deactivate", ...)alias removed;gateway_stopis canonical.refactor(plugin-sdk): prune retired facade exports+test(plugin-sdk): preserve retired facade coverage— removes the retired facade exports and their obsolete regression coverage, including the fulltext-runtimesurface.refactor(plugin-sdk): retire due compatibility subpaths— all removeAfter-2026-08-15 subpaths, reworked to preserve the rebuiltinbound-reply-dispatchfacade.refactor(logging): internalize file transport controls+test(logging): isolate logger test controls— file-transport test controls move out of the production logger intologger.test-support.ts.refactor(logging): delete dead config-read guard—shouldSkipMutatingLoggingConfigReadhad no production caller even on main; it survived the dead-export scan only via logger's testApi re-export. The test isolation removed that mask and the scan caught the fossil.test(auto-reply): remove stale diagnostic imports— test-only cleanup.Deliberately excluded:
openclaw/plugin-sdk/inbound-reply-dispatch. #121308 rebuilt that compatibility facade for named external consumers and gates its retirement on the next Plugin SDK major; the recorded early-window override explicitly does not cover it.User Impact
Plugin authors still on
api.on("deactivate")must migrate cleanup togateway_stop. Plugins importing the retired August 15 subpaths must use their focused replacements;zodis imported directly.inbound-reply-dispatchremains available until the next Plugin SDK major.Evidence
bd3f4644d652a9bbb81e0a554a81c9121fddf0a8passespnpm check:changed, including typecheck, lint, API-baseline, package-export, surface-budget, dead-export, boundary, and import-cycle gates.src/commands/channels.add.test.tsandtest/scripts/plugin-sdk-surface-report.test.tspassed (2 files / 42 tests).origin/main: production +263/-742 (net -479), tests/test support +223/-593 (net -370), tooling +15/-148 (net -133), generated SDK contract +27/-35 (net -8), docs +34/-39 (net -5); total +562/-1557 (net -995).distmetadata; blamed commit99d662473cb4(Peter Steinberger).d17264f5fd84eeeb9e301448c6b218203ed39a78); this head contains no native locale regeneration.