Compatibility registry
Plugin compatibility contracts are tracked in the core registry atsrc/plugins/compat/registry.ts. Each record has:
- a stable compatibility code
- status:
active,deprecated,removal-pending, orremoved - owner:
sdk,config,setup,channel,provider,plugin-execution,agent-runtime, orcore - introduction and deprecation dates when applicable
- an exact removal date once the owning maintainer approves it; an omitted
removeAfterkeeps a deprecated surface ineligible for removal - replacement guidance
- docs, diagnostics, and tests that cover the old and new behavior
src/commands/doctor/shared/deprecation-compat.ts. Those records cover old
config shapes, install-ledger layouts, and repair shims that may need to
stay available after the runtime compatibility path is removed.
Release sweeps should check both registries. Do not delete a doctor
migration just because the matching runtime or config compatibility record
expired; first verify there is no supported upgrade path that still needs
the repair. Revalidate each replacement annotation during release planning
too, since plugin ownership and config footprint can change as providers
and channels move out of core.
Deprecation policy
OpenClaw should not remove a documented plugin contract in the same release that introduces its replacement. Migration sequence:- Add the new contract.
- Keep the old behavior wired through a named compatibility adapter.
- Emit diagnostics or warnings when plugin authors can act.
- Document the replacement and timeline.
- Test both old and new paths.
- Wait through the announced migration window.
- Remove only with explicit breaking-release approval.
active instead.
Current compatibility areas
The July 2026 sweep removed the expired root SDK, manifest, provider, runtime, registry-flag, and plugin-owned web-config aliases. Doctor migrations remain separately tracked so supported upgrade paths can still repair old config. The remaining dated compatibility areas are:- the August and September SDK subpath windows listed in the migration guide
api.on("deactivate", ...)andapi.on("subagent_spawning", ...)hook aliases- memory-specific embedding registration and the beta.5 session-store bridge
- WhatsApp inbound callback aliases described below
- explicit channel target parsing and
openclaw/plugin-sdk/messaging-targets - embedded Pi agent aliases
- the shipped agent-harness SDK aliases, whose removal is pending a new externally documented migration decision
- the October 2026 SDK annotation families listed below
removeAfter date is an earliest review date, not permission to remove a
surface while its stated reader or migration condition remains unmet.
pnpm plugins:boundary-report reports removal-pending records separately
from deprecated records. A due removal-pending record remains blocked until
its reported migration condition is satisfied and its reader references are
cleared; the existing --fail-on-eligible-compat gate continues to apply only
to dated deprecated records. Reader references are surface-token matches for
triage; use the published-artifact sweep before authorizing removal.
Channel prompt-context identifier aliases
New channel plugins should useMsgContext.ChannelPromptContext,
MsgContext.ChannelStructuredContext, ChannelStructuredContextEntry, and
SupplementalContextFacts.channelStructuredContext. The older
UntrustedContext, UntrustedStructuredContext,
UntrustedStructuredContextEntry, and supplemental untrustedContext names
remain as deprecated SDK aliases until 2026-09-08 (registry record
sdk-untrusted-context-identifier-aliases). Inbound finalization folds those
deprecated fields into the channel-named fields and removes the old keys from
runtime context.
The security runtime similarly exports buildChannelMetadata; the deprecated
buildUntrustedChannelMetadata alias remains available on the same schedule.
WhatsApp inbound callback flat aliases
WhatsApp runtime callbacks deliverWebInboundMessage: the canonical
nested event, payload, quote, group, and platform contexts plus
deprecated flat aliases for the shipped callback fields. New callback code
should read the nested contexts. Code that constructs clean nested callback
messages can use WebInboundCallbackMessage; compatibility listeners that
still inject old flat test or plugin messages should use
LegacyFlatWebInboundMessage or WebInboundMessageInput.
The flat aliases remain available until 2026-08-30; that window applies
only to flat alias access, not to the nested shape, which is the canonical
runtime contract. Each flat alias’s TypeScript @deprecated annotation
names its exact nested replacement. Common examples:
id,timestamp, andisBatchedmove underevent.body,mediaPath,mediaType,mediaFileName,mediaUrl,location, andchannelStructuredContextmove underpayload.to,chatId, sender/self fields,sendComposing,reply(...), andsendMedia(...)move underplatform.replyTo*fields move underquote; group subject/participant/mention fields move undergroup.
payload.channelStructuredContext is extracted from inbound provider
payloads. Plugins should inspect label, source, and type before
treating its payload as authoritative.
WhatsApp inbound admission fields
Accepted WhatsApp callback messages carryadmission, a public-safe
envelope for the access-control decision that admitted the message. New
callback code should read admission facts from msg.admission instead of
the older top-level admission fields.
The top-level fields remain available until 2026-08-30. Each field’s
TypeScript @deprecated annotation names its replacement:
fromandconversationIdmove toadmission.conversation.id.accountIdmoves toadmission.accountId.accessControlPassedis a derived compatibility view ofadmission.ingress.decision === "allow"; on messages that already carryadmission, writing the legacy boolean does not rewrite the ingress graph.chatTypemoves toadmission.conversation.kind.
Plugin inspector package
The plugin inspector should live outside the core OpenClaw repo as a separate package/repository backed by the versioned compatibility and manifest contracts. The day-one CLI should be:--json for stable
machine-readable output in CI annotations. OpenClaw core should expose
contracts and fixtures the inspector can consume, but should not publish the
inspector binary from the main openclaw package.
Maintainer acceptance lane
Use Crabbox-backed Blacksmith Testbox for the installable-package acceptance lane when validating the external inspector against OpenClaw plugin packages. Run it from a clean OpenClaw checkout after the package is built:Release notes
Release notes should include upcoming plugin deprecations with target dates and links to migration docs, before a compatibility path moves toremoval-pending or removed.