Skip to content

refactor: retire due compat-ledger surfaces (context-engine host params, deactivate alias, logging internals) - #121845

Merged
steipete merged 16 commits into
mainfrom
steipete/compat-ledger-retire-aug15
Aug 12, 2026
Merged

steipete merged 16 commits into
mainfrom
steipete/compat-ledger-retire-aug15

Conversation

@steipete

@steipete steipete commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

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 the deactivate alias (removeAfter 2026-08-16) retire 3-4 days ahead of window after months of deprecation warnings. inbound-reply-dispatch stays 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_stop is 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 full text-runtime surface.
  • refactor(plugin-sdk): retire due compatibility subpaths — all removeAfter-2026-08-15 subpaths, reworked to preserve the rebuilt inbound-reply-dispatch facade.
  • refactor(logging): internalize file transport controls + test(logging): isolate logger test controls — file-transport test controls move out of the production logger into logger.test-support.ts.
  • refactor(logging): delete dead config-read guard — shouldSkipMutatingLoggingConfigRead had 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 to gateway_stop. Plugins importing the retired August 15 subpaths must use their focused replacements; zod is imported directly. inbound-reply-dispatch remains available until the next Plugin SDK major.

Evidence

  • Rebased exact head bd3f4644d652a9bbb81e0a554a81c9121fddf0a8 passes pnpm check:changed, including typecheck, lint, API-baseline, package-export, surface-budget, dead-export, boundary, and import-cycle gates.
  • Rebase-focused Vitest: src/commands/channels.add.test.ts and test/scripts/plugin-sdk-surface-report.test.ts passed (2 files / 42 tests).
  • Earlier loader/hook proof: 49 files / 572 tests passed, including wired-hook E2E and a clean full TypeScript build.
  • Earlier focused Plugin SDK/package/security proof: 10 files / 225 tests passed across six shards.
  • SDK surface pins: public entrypoints 144, exports 4308, callable exports 2572, deprecated exports 1142, wildcard re-exports 50.
  • Codex autoreview (P0): clean on the full rebased branch, no accepted/actionable findings.
  • LOC vs 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).
  • Includes one main-owned red-CI repair required by the landing gate: channel setup tests load checked-in declarations instead of stale ignored dist metadata; blamed commit 99d662473cb4 (Peter Steinberger).
  • Native locale drift was split out and landed first in chore(i18n): refresh native locales #122688 (d17264f5fd84eeeb9e301448c6b218203ed39a78); this head contains no native locale regeneration.

@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 11, 2026 03:52
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L maintainer Maintainer-authored PR labels Aug 11, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 3:21 PM ET / 19:21 UTC.

ClawSweeper review

What this changes

The PR retires eight dated Plugin SDK subpaths and the deprecated deactivate hook alias, and internalizes logger test controls.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No 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
Reviewed head: bd3f4644d652a9bbb81e0a554a81c9121fddf0a8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The owner-approved deletion-led cleanup is coherent in the inspected surfaces, with final confidence gated on exact-head checks.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored cleanup has focused validation evidence in the PR body; the external-contributor real-behavior-proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored cleanup has focused validation evidence in the PR body; the external-contributor real-behavior-proof gate does not apply.
Evidence reviewed 6 items Current public contract: Current main still exports the dated subpaths, proving this branch intentionally changes a published plugin contract rather than deleting dead internal-only files.
Migration windows and replacements: The compatibility ledger schedules the eight subpaths for 2026-08-15, while the hook alias remains scheduled through 2026-08-16; the docs name replacement surfaces and preserve inbound-reply-dispatch until the next Plugin SDK major.
Owner-approved early retirement: The supplied PR discussion records SDK-owner @steipete approval to retire the August 15/16 surfaces early and explicitly excludes inbound-reply-dispatch; this satisfies the scoped SDK policy for shortening a compatibility window.
Findings None None.
Security None None.

How this fits together

Plugin 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
Loading

Before merge

  • Resolve merge risk (P1) - External plugins that still import a retired subpath or register deactivate will fail after upgrading; the documented focused replacements and recorded owner approval mitigate this, but exact-head export and package checks must finish before merge.
  • Resolve merge risk (P1) - The local review could not read the full PR head or final remote checks because the checkout’s promisor fetch and GitHub DNS access failed.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Published compatibility removals 8 SDK subpaths and 1 typed-hook alias removed These are intentional public Plugin SDK contract removals, so upgrade behavior matters beyond in-repository callers.
Production versus test delta production +263/-742 (net -479); tests/test support +223/-593 (net -370) The PR evidence describes a deletion-led cleanup with limited supporting test consolidation.

Stored data model

Persistent data-model change detected: migration/backfill/repair: docs/plugins/compatibility.md, migration/backfill/repair: src/plugins/compat/registry-records.ts, migration/backfill/repair: src/plugins/compat/registry.test.ts, persistent cache schema: src/plugin-sdk/text-runtime.ts, unknown-truncated-pull-files. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head compatibility checks (recommended)
    Merge only after the current head passes package-export, API-baseline, plugin-boundary, and required CI checks under the recorded SDK-owner approval.

Technical review

Best 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.

Labels

Label justifications:

  • P2: The planned SDK cleanup has bounded but real impact on external plugin upgrades.
  • merge-risk: 🚨 compatibility: Merging removes published Plugin SDK imports and a deprecated hook alias that existing plugins may still use.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored cleanup has focused validation evidence in the PR body; the external-contributor real-behavior-proof gate does not apply.

Evidence

What I checked:

  • Current public contract: Current main still exports the dated subpaths, proving this branch intentionally changes a published plugin contract rather than deleting dead internal-only files. (package.json:454, a1615cdfcf4d)
  • Migration windows and replacements: The compatibility ledger schedules the eight subpaths for 2026-08-15, while the hook alias remains scheduled through 2026-08-16; the docs name replacement surfaces and preserve inbound-reply-dispatch until the next Plugin SDK major. (src/plugins/compat/plugin-sdk-subpath-records.ts:7, a1615cdfcf4d)
  • Owner-approved early retirement: The supplied PR discussion records SDK-owner @steipete approval to retire the August 15/16 surfaces early and explicitly excludes inbound-reply-dispatch; this satisfies the scoped SDK policy for shortening a compatibility window. (bd3f4644d652)
  • Replacement seams exist: Current main exposes the cited replacement primitives through focused SDK surfaces: channel config schema, run-command, and inbound/outbound logging exports. (src/plugin-sdk/channel-config-schema.ts:17, a1615cdfcf4d)
  • Logger cleanup is behavior-neutral on main: shouldSkipMutatingLoggingConfigRead has no production caller beyond the logger’s test-only export, and the file transport remains the runtime queue owner. (src/logging/logger.ts:770, a1615cdfcf4d)
  • Exact-head inspection limitation: The local checkout does not contain the PR head object; promisor fetches and live GitHub reads failed because DNS could not resolve GitHub, so omitted branch files and final check state could not be independently read. (bd3f4644d652)

Likely related people:

  • steipete: Authored this branch, recorded the SDK-owner early-retirement decision, and authored the related merged host-parameter retirement. (role: SDK compatibility owner and recent area contributor; confidence: high; commits: bd3f4644d652, 7ecad45a7dde; files: src/plugins/compat/plugin-sdk-subpath-records.ts, src/plugins/hook-types.ts, docs/plugins/sdk-migration.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Allow the exact-head package/export and required CI checks to complete before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-12T07:07:29.930Z sha f5ac068 :: found issues before merge. :: [P1] Keep logSuccess until text-runtime can retire
  • reviewed 2026-08-12T08:11:34.478Z sha 0517161425970484c135ec7ea58d93eea064eea0 :: needs changes before merge. :: [P1] Keep testApi through text-runtime retirement | [P1] Retain redaction type exports until the facade retires | [P1] Keep the scoped cache type exported through the facade window
  • reviewed 2026-08-12T10:10:26.015Z sha b4e1d11 :: needs changes before merge. :: [P1] Keep logger test exports through text-runtime retirement | [P1] Keep redaction types through text-runtime retirement | [P1] Keep the scoped cache type exported through retirement
  • reviewed 2026-08-12T10:17:44.679Z sha b4e1d11 :: found issues before merge. :: [P1] Preserve logger test exports through facade retirement | [P1] Retain redaction types through facade retirement | [P1] Keep the scoped cache type exported through the facade window
  • reviewed 2026-08-12T14:01:19.679Z sha b4e1d11 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T16:59:49.742Z sha cd393de :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T17:04:57.831Z sha cd393de :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T18:00:22.681Z sha 9bd80bc :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/compat-ledger-retire-aug15 branch 2 times, most recently from 51fbf11 to 5de93c6 Compare August 11, 2026 04:33
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 11, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Aug 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 11, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Aug 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 11, 2026
@steipete steipete self-assigned this Aug 12, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 12, 2026
@steipete
steipete force-pushed the steipete/compat-ledger-retire-aug15 branch from 2955145 to 367ea69 Compare August 12, 2026 04:29
@steipete

Copy link
Copy Markdown
Contributor Author

Heads-up: the context-engine-legacy-host-param-default retirement in this sweep landed on main via #122434 as 7ecad45 (it was the only record already past its removeAfter date and was failing plugin-boundary-report --fail-on-eligible-compat repo-wide).

The remaining scope here — the 2026-08-15 records (deactivate alias, logging internals, channel subpaths) — is not yet date-eligible. A rebase onto current main will drop the host-param portion; the rest can land when its window closes.

@steipete
steipete force-pushed the steipete/compat-ledger-retire-aug15 branch from 367ea69 to 21ff899 Compare August 12, 2026 05:05
@clawsweeper clawsweeper Bot added the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Aug 12, 2026
@steipete
steipete force-pushed the steipete/compat-ledger-retire-aug15 branch from aa3e3c4 to 6b52286 Compare August 12, 2026 17:24
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: macos App: macos labels Aug 12, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head bd3f4644d652a9bbb81e0a554a81c9121fddf0a8:

@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation extensions: xai maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant