Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 8:20 AM ET / 12:20 UTC. ClawSweeper reviewWhat this changesThe PR adds a public Plugin SDK subpath that lets embedding-provider plugins type provider-owned asynchronous text batching. Merge readinessKeep open for SDK-owner product acceptance. The implementation is a narrow, type-only public facade and the supplied terminal proof directly exercises external consumption, but merging makes batch controls and ordered-vector semantics a supported Plugin SDK contract without visible owner confirmation. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherEmbedding plugins register provider adapters, whose runtime metadata is adapted for the memory-index host. The host uses an optional batch callback to submit text chunks and receives ordered vectors for indexing. flowchart LR
A[Provider plugin] --> B[Public batch contract]
B --> C[Embedding provider adapter]
C --> D[Memory provider bridge]
D --> E[Memory index host]
E --> F[Ordered embedding vectors]
Decision needed
Why: This is a new external API surface rather than a repair to an established public contract, so code review cannot determine its intended support and compatibility lifetime. Before merge
Agent review detailsSecurityNone. PR surfaceSource +33, Tests +34, Docs +3, Config +8, Other +11. Total +89 across 15 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Publish the narrow facade only after an SDK owner explicitly accepts the text-only batch scope, ordering guarantee, and compatibility commitment; otherwise retain the existing private-local seam. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a public SDK capability rather than repairing a reported runtime failure; its reviewed-head terminal proof does type-check an external consumer. Is this the best way to solve the issue? Unclear: the type-only facade is the narrowest technical shape, but only an SDK owner can decide whether this lifecycle should become a permanent public contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 03658a99a950. 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 (7 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What Problem This Solves
Third-party embedding-provider plugins could not type-safely opt into OpenClaw's documented asynchronous batching lifecycle. That blocked an OmniRoute provider plugin from owning its OpenAI-compatible
/v1/filesand/v1/batcheslifecycle for large memory-index embedding jobs.Why This Change Was Made
Add a narrow public SDK subpath,
openclaw/plugin-sdk/embedding-provider-runtime-contract, containing only the text-batch runtime contract:EmbeddingBatchChunk,EmbeddingBatchOptions, andEmbeddingProviderRuntime. The broaderembedding-providersfacade remains private-local. The memory host retains its structured-input extension, scheduling, timeouts, fallback, and circuit-breaking. This does not add a generic file-store or raw provider HTTP API.User Impact
Provider-plugin authors can implement
batchEmbedand opt into source-wide batching through the new runtime-contract import. Existing providers remain compatible.Evidence
pnpm tsgo:prodnode scripts/run-vitest.mjs run src/plugins/memory-embedding-provider-runtime.test.ts— 7 passednode scripts/run-vitest.mjs run test/release-check.test.ts— 61 passedpnpm plugin-sdk:check-exports— external package consumer compiles the new subpathpnpm plugin-sdk:api:diff --base origin/main --head HEAD— one new entrypoint with three exportspnpm build— all 147 public plugin-SDK subpaths verifiedpnpm format:checkAfter-fix terminal proof
Executed at reviewed head
04df14279d4dde96b9a7cebe803b02a8d32b76ef.pnpm buildcompleted in 4m 48.4s and reached the public SDK artifact verifier:The verifier was then run directly against that built output. It creates a temporary external consumer, imports
openclaw/plugin-sdk/embedding-provider-runtime-contract, and runs its TypeScript compiler:AI-assisted: Codex