Skip to content

Commit 6aa27d6

Browse files
authored
refactor: retire August compat windows (embedding API, pi aliases, target parser, spawning hook, setup exports, WhatsApp inbound aliases) (#124416)
* refactor(plugin-sdk): retire embedded Pi aliases * refactor(channels): retire explicit target compatibility * refactor(plugins): retire subagent spawning hook * refactor(plugin-sdk): retire shipped channel setup exports * refactor(whatsapp): retire inbound callback aliases Proof: focused build and WhatsApp E2E green; broad WhatsApp suite 188/189 files green. extensions/whatsapp/src/monitor-inbox.policy.test.ts flakes only in the parallel batch and passes isolated (10/10). * refactor(plugin-sdk): retire memory embedding registrar Migrate every bundled provider and manifest to registerEmbeddingProvider and contracts.embeddingProviders. Preserve memory-specific batching, local-service acquisition, index identity, and auto-selection through the canonical generic registry adapter, then remove the parallel registrar, registry, diagnostics, contracts, tests, and docs. * chore(plugin-sdk): tighten retired surface budgets Pin the post-retirement public SDK surface to 144 entrypoints, 4,312 exports, 2,564 callable exports, and 1,133 deprecated exports; agent-harness-runtime now permits exactly nine deprecated exports.
1 parent a61417f commit 6aa27d6

186 files changed

Lines changed: 838 additions & 5593 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/plugins/adding-capabilities.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ can consume embeddings without depending on the memory engine. Memory search
109109
also consumes generic `embeddingProviders`.
110110

111111
The older memory-specific registration API and `memoryEmbeddingProviders`
112-
contract are deprecated. Use `registerEmbeddingProvider` and
113-
`embeddingProviders` for all new embedding providers.
112+
contract were removed after their August 2026 migration window. Use
113+
`registerEmbeddingProvider` and `embeddingProviders` for every embedding
114+
provider.
114115

115116
## Review checklist
116117

‎docs/plugins/compatibility.md‎

Lines changed: 12 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ separately tracked so supported upgrade paths can still repair old config.
7979
The remaining dated compatibility areas are:
8080

8181
- the September SDK subpath window listed in the migration guide
82-
- the `api.on("subagent_spawning", ...)` hook alias
83-
- memory-specific embedding registration and the beta.5 session-store bridge
84-
- WhatsApp inbound callback aliases described below
85-
- explicit channel target parsing and `openclaw/plugin-sdk/messaging-targets`
86-
- embedded Pi agent aliases
82+
- the beta.5 session-store bridge
8783
- the shipped agent-harness SDK aliases, whose removal is pending a new
8884
externally documented migration decision
8985
- the October 2026 SDK annotation families listed below
@@ -132,50 +128,17 @@ runtime context.
132128
The security runtime similarly exports `buildChannelMetadata`; the deprecated
133129
`buildUntrustedChannelMetadata` alias remains available on the same schedule.
134130

135-
### WhatsApp inbound callback flat aliases
136-
137-
WhatsApp runtime callbacks deliver `WebInboundMessage`: the canonical
138-
nested `event`, `payload`, `quote`, `group`, and `platform` contexts plus
139-
deprecated flat aliases for the shipped callback fields. New callback code
140-
should read the nested contexts. Code that constructs clean nested callback
141-
messages can use `WebInboundCallbackMessage`; compatibility listeners that
142-
still inject old flat test or plugin messages should use
143-
`LegacyFlatWebInboundMessage` or `WebInboundMessageInput`.
144-
145-
The flat aliases remain available until **2026-08-30**; that window applies
146-
only to flat alias access, not to the nested shape, which is the canonical
147-
runtime contract. Each flat alias's TypeScript `@deprecated` annotation
148-
names its exact nested replacement. Common examples:
149-
150-
- `id`, `timestamp`, and `isBatched` move under `event`.
151-
- `body`, `mediaPath`, `mediaType`, `mediaFileName`, `mediaUrl`, `location`,
152-
and `channelStructuredContext` move under `payload`.
153-
- `to`, `chatId`, sender/self fields, `sendComposing`, `reply(...)`, and
154-
`sendMedia(...)` move under `platform`.
155-
- `replyTo*` fields move under `quote`; group subject/participant/mention
156-
fields move under `group`.
157-
158-
`payload.channelStructuredContext` is extracted from inbound provider
159-
payloads. Plugins should inspect `label`, `source`, and `type` before
160-
treating its `payload` as authoritative.
161-
162-
### WhatsApp inbound admission fields
163-
164-
Accepted WhatsApp callback messages carry `admission`, a public-safe
165-
envelope for the access-control decision that admitted the message. New
166-
callback code should read admission facts from `msg.admission` instead of
167-
the older top-level admission fields.
168-
169-
The top-level fields remain available until **2026-08-30**. Each field's
170-
TypeScript `@deprecated` annotation names its replacement:
171-
172-
- `from` and `conversationId` move to `admission.conversation.id`.
173-
- `accountId` moves to `admission.accountId`.
174-
- `accessControlPassed` is a derived compatibility view of
175-
`admission.ingress.decision === "allow"`; on messages that already carry
176-
`admission`, writing the legacy boolean does not rewrite the ingress
177-
graph.
178-
- `chatType` moves to `admission.conversation.kind`.
131+
### WhatsApp inbound callback retirement
132+
133+
The August 2026 WhatsApp callback compatibility window is closed. Runtime
134+
callbacks now accept only `WebInboundCallbackMessage`: nested `event`,
135+
`payload`, `quote`, `group`, and `platform` contexts plus the required public
136+
`admission` envelope. Flat callback fields and top-level admission aliases are
137+
no longer accepted.
138+
139+
`payload.channelStructuredContext` is extracted from inbound provider payloads.
140+
Plugins should inspect `label`, `source`, and `type` before treating its
141+
`payload` as authoritative.
179142

180143
## Plugin inspector package
181144

‎docs/plugins/hooks.md‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ For `sessions.create` calls with `parentSessionKey` and `emitCommandHooks: true`
203203

204204
- `subagent_spawned` / `subagent_ended` - observe subagent launch and completion.
205205
- `subagent_delivery_target` - compatibility hook for completion delivery when no core session binding can project a route.
206-
- `subagent_spawning` - deprecated compatibility hook. Core now prepares `thread: true` subagent bindings through channel session-binding adapters before `subagent_spawned` fires.
207206
- `subagent_spawned` includes `resolvedModel` and `resolvedProvider` when OpenClaw has resolved the child session's native model before launch.
208207
- `subagent_ended` carries `targetSessionKey` (identity - matches `subagent_spawned.childSessionKey`), `targetKind` (`"subagent"` or `"acp"`), `reason`, optional `outcome` (`"ok"`, `"error"`, `"timeout"`, `"killed"`, `"reset"`, or `"deleted"`), optional `error`, `runId`, `endedAt`, `accountId`, and `sendFarewell`. It does **not** include `agentId` or `childSessionKey`; use `targetSessionKey` to correlate with the matching `subagent_spawned` event.
209208

@@ -1055,10 +1054,6 @@ before the next major release:
10551054
handlers. Read `BodyForAgent` and the structured user-context blocks
10561055
instead of parsing flat envelope text. See
10571056
[Plaintext channel envelopes → BodyForAgent](/plugins/sdk-migration#removal-timeline).
1058-
- **`subagent_spawning`** remains for compatibility with older plugins, but
1059-
new plugins should not return thread routing from it. Core prepares
1060-
`thread: true` subagent bindings through channel session-binding adapters
1061-
before `subagent_spawned` fires.
10621057
- **`onResolution` in `before_tool_call`** now uses the typed
10631058
`PluginApprovalResolution` union (`allow-once` / `allow-always` / `deny` /
10641059
`timeout` / `cancelled`) instead of a free-form `string`.

‎docs/plugins/manifest.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,6 @@ Use `contracts` only for static capability ownership metadata that OpenClaw can
666666
"speechProviders": ["openai"],
667667
"realtimeTranscriptionProviders": ["openai"],
668668
"realtimeVoiceProviders": ["openai"],
669-
"memoryEmbeddingProviders": ["local"],
670669
"mediaUnderstandingProviders": ["openai"],
671670
"imageGenerationProviders": ["openai"],
672671
"videoGenerationProviders": ["qwen"],
@@ -696,7 +695,6 @@ Each list is optional:
696695
| `speechProviders` | `string[]` | Speech provider ids this plugin owns. |
697696
| `realtimeTranscriptionProviders` | `string[]` | Realtime-transcription provider ids this plugin owns. |
698697
| `realtimeVoiceProviders` | `string[]` | Realtime-voice provider ids this plugin owns. |
699-
| `memoryEmbeddingProviders` | `string[]` | Deprecated memory-specific embedding provider ids this plugin owns. |
700698
| `mediaUnderstandingProviders` | `string[]` | Media-understanding provider ids this plugin owns. |
701699
| `transcriptSourceProviders` | `string[]` | Transcript source provider ids this plugin owns. |
702700
| `documentExtractors` | `string[]` | Document (for example PDF) extractor provider ids this plugin owns. |
@@ -722,7 +720,7 @@ Provider plugins that implement `resolveExternalAuthProfiles` should declare `co
722720

723721
Provider plugins that implement both `resolveUsageAuth` and `fetchUsageSnapshot` should declare each auto-discovered provider id in `contracts.usageProviders`. Usage discovery reads this contract before loading runtime code, then verifies both hooks after loading only the declared owners.
724722

725-
General embedding providers should declare `contracts.embeddingProviders` for each adapter registered with `api.registerEmbeddingProvider(...)`. Use the general contract for reusable vector generation, including providers consumed by memory search. `contracts.memoryEmbeddingProviders` is deprecated memory-specific compatibility and remains only while existing providers migrate to the generic embedding provider seam.
723+
Embedding providers must declare `contracts.embeddingProviders` for each adapter registered with `api.registerEmbeddingProvider(...)`. The same generic contract serves reusable vector generation and memory search. The retired `contracts.memoryEmbeddingProviders` key is no longer accepted.
726724

727725
Worker providers must declare each `api.registerWorkerProvider(...)` id in `contracts.workerProviders`. Core persists durable intent before calling `provision`; providers validate their settings before external allocation, and repeated calls with the same operation id must adopt the same lease. Providers whose bounded provisioning exceeds core's five-minute default may implement `resolveProvisionTimeoutMs(profile)` and include acquisition, provider-owned setup, and cleanup in the returned positive millisecond budget. Core also persists that validated settings snapshot and passes it with `leaseId` to `inspect({ leaseId, profile })` and `destroy({ leaseId, profile })`, including after the named profile is changed or removed. Destruction is idempotent, inspection returns the closed `active` / `destroyed` / `unknown` status union, and SSH private-key material is referenced only through `SecretRef`. Provisioned SSH endpoints must also include a public `hostKey` from trusted provisioning output as exactly `algorithm base64`, without a hostname or comment, so core can pin the host before connecting. They may include up to 10 ordered, unique `fallbackPorts`, excluding the primary `port`; core persists those candidates and rotates among them only for idempotent probes, content-addressed transfers, receipt/lock-guarded artifact installation, convergent managed-worktree mirroring, and tunnel reconnects. Ambiguous unguarded stateful commands fail closed and are not replayed across candidates. A lease may set `sharedHost: true` when the SSH account also owns unrelated processes; core then avoids host-wide process freezing during workspace reconciliation. Omitted or `false` means a dedicated worker host. Active inspection repeats this fact so core can reconcile provider-owned isolation for leases persisted before the field existed; tunnel startup waits for that first authoritative inspection. Optional desktop metadata may advertise up to eight unique closed apps: `browser` with an absolute `executablePath` and a CDP port from 1 through 65535, or `terminal` with an absolute `executablePath`. Core rejects unknown app ids and fields and persists the validated metadata with the existing desktop record. Providers that mint dynamic identity refs may implement authoritative `resolveSshIdentity({ leaseId, profile, keyRef })`; providers without it use core's generic secret resolver. An authoritative `unknown` orphans an active local record; after a persisted destroy request it confirms teardown.
728726

‎docs/plugins/plugin-inventory.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Each entry lists the package, distribution route, and description.
338338

339339
- **[volcengine](/plugins/reference/volcengine)** (`@openclaw/volcengine-provider`) - npm; ClawHub: `clawhub:@openclaw/volcengine-provider`. Adds Volcengine, Volcengine Plan model provider support to OpenClaw.
340340

341-
- **[voyage](/plugins/reference/voyage)** (`@openclaw/voyage-provider`) - npm; ClawHub: `clawhub:@openclaw/voyage-provider`. Adds memory embedding provider support.
341+
- **[voyage](/plugins/reference/voyage)** (`@openclaw/voyage-provider`) - npm; ClawHub: `clawhub:@openclaw/voyage-provider`. Adds embedding provider support, including memory search.
342342

343343
- **[vydra](/plugins/reference/vydra)** (`@openclaw/vydra-provider`) - npm; ClawHub: `clawhub:@openclaw/vydra-provider`. Adds Vydra model provider support to OpenClaw.
344344

‎docs/plugins/reference/amazon-bedrock.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ OpenClaw Amazon Bedrock provider plugin with model discovery, embeddings, and gu
1616

1717
## Surface
1818

19-
providers: `amazon-bedrock`; contracts: `memoryEmbeddingProviders`
19+
providers: `amazon-bedrock`; contracts: `embeddingProviders`
2020

2121
## Related docs
2222

‎docs/plugins/reference/github-copilot.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Adds GitHub Copilot model provider support to OpenClaw.
1616

1717
## Surface
1818

19-
providers: `github-copilot`; contracts: `memoryEmbeddingProviders`, `usageProviders`
19+
providers: `github-copilot`; contracts: `embeddingProviders`, `usageProviders`
2020

2121
## Related docs
2222

‎docs/plugins/reference/google.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Adds Google, Google Gemini CLI, Google Vertex model provider support to OpenClaw
1616

1717
## Surface
1818

19-
providers: `google`, `google-gemini-cli`, `google-vertex`; contracts: `imageGenerationProviders`, `mediaUnderstandingProviders`, `memoryEmbeddingProviders`, `musicGenerationProviders`, `realtimeVoiceProviders`, `speechProviders`, `videoGenerationProviders`, `webSearchProviders`
19+
providers: `google`, `google-gemini-cli`, `google-vertex`; contracts: `embeddingProviders`, `imageGenerationProviders`, `mediaUnderstandingProviders`, `musicGenerationProviders`, `realtimeVoiceProviders`, `speechProviders`, `videoGenerationProviders`, `webSearchProviders`
2020

2121
## Related docs
2222

‎docs/plugins/reference/lmstudio.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Adds LM Studio model provider support to OpenClaw.
1616

1717
## Surface
1818

19-
providers: `lmstudio`; contracts: `memoryEmbeddingProviders`
19+
providers: `lmstudio`; contracts: `embeddingProviders`
2020

2121
## Related docs
2222

‎docs/plugins/reference/mistral.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Adds Mistral model provider support to OpenClaw.
1616

1717
## Surface
1818

19-
providers: `mistral`; contracts: `mediaUnderstandingProviders`, `memoryEmbeddingProviders`, `realtimeTranscriptionProviders`
19+
providers: `mistral`; contracts: `embeddingProviders`, `mediaUnderstandingProviders`, `realtimeTranscriptionProviders`
2020

2121
## Related docs
2222

0 commit comments

Comments
 (0)