Repository navigation
Conversation
|
Codex review: needs changes before merge. Reviewed August 21, 2026, 9:49 AM ET / 13:49 UTC. ClawSweeper reviewWhat this changesAdds stable Merge readinessKeep open: current main still lacks stable Gemini Embedding 2 support, but this PR must correct one P1 upgrade-documentation error before merge. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherOpenClaw memory search sends configured content to an embedding provider, then stores and queries vectors by model and dimension identity. The Google plugin determines Gemini capabilities, validates provider responses, and feeds vectors into the memory index. flowchart LR
A[Memory search configuration] --> B[Google embedding plugin]
B --> C[Model capability resolution]
C --> D[Gemini embedding request]
D --> E[Dimension validation]
E --> F[Memory cache and index]
G[Upgrade documentation] --> H[Operator inspection and rebuild]
H --> F
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +109, Docs +13. Total +135 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use Do we have a high-confidence way to reproduce the issue? Yes—current-main source and focused provider tests establish that stable Gemini Embedding 2 is not recognized as an Embedding 2 model, and the PR’s supplied redacted live canary exercises the corrected request path. Is this the best way to solve the issue? No, not until the upgrade documentation is corrected: the plugin-level capability and validation repair is the right owner-boundary fix, but its stated inspection command mutates the index. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9050d9b0a79e. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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 (13 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review The asynchronous batch dimension gap is corrected at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
d953c0a to
36fb217
Compare
|
Added the requested inspectable real-behavior proof on rebased exact head Exact-head provider output (credential, endpoint, vector, host, and image identities redacted): {"result":"passed","exactHead":"36fb217f86303a2e55d7f8bab480d906fb748ec1","provider":"gemini","model":"gemini-embedding-2","taskType":"RETRIEVAL_QUERY","requestedDimensions":768,"receivedDimensions":768,"maxInputTokens":8192,"finiteValues":true,"responseVectorRedacted":true,"credentialRedacted":true}Live memory-search output (result content redacted): {"memorySearch":"passed","resultCount":3,"provider":"gemini","model":"gemini-embedding-2","dimensions":768,"indexDatabaseUnchanged":true,"shadowCreated":false,"indexingStarted":false,"productionUnchanged":true}The exact-head provider bundle was hash-verified before execution. Production remained unchanged; the temporary bundle and temporary OS Admin grant were removed. The memory canary made no index write, started no indexer, created no shadow, and printed no memory content. Repository validation after rebase: 39/39 focused tests passed, including the real loopback batch lifecycle; Plugin SDK API baseline, max-lines ratchet, lint, formatting, and diff checks passed. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
CI status note: the only code-test failure is the unrelated |
|
Exact-head documentation repair evidence for
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Exact-head repair evidence for
No merge is requested by this evidence update. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thank you @fr-meyer for the original Gemini Embedding 2 implementation, thorough regression coverage, documentation, and real-provider verification. I preserved all four of your commits and explicit contributor credit in #128716, which updates the implementation for the documented stable-model task contract, safe index inspection, and current main. Closing this original PR as superseded by #128716; your work and attribution continue there. |
Summary
gemini-embedding-2identifier across Gemini memory requests, token limits, and multimodal capability validationgemini-embedding-2-previewcompatible during migrationoutputDimensionalityon direct, synchronous-batch, and asynchronous-batch pathsCloses #120662.
What problem this solves
Google released
gemini-embedding-2as GA and lists it as the replacement for the preview model. Current OpenClawmaincontains an explicit placeholder to add the GA name but only recognizes the preview identifier.Without this change, a stable-model configuration omits
outputDimensionality, loses the 8,192-token capability, and fails multimodal-provider validation. Before the review correction, asynchronous batch downloads could also bypass the new dimension invariant and cache an incompatible vector.Evidence
Exact PR-head provider code was bundled from
36fb217f86303a2e55d7f8bab480d906fb748ec1, hash-verified, and loaded temporarily against the deployed OpenClaw SDK. It made one query-only stable-model request through the isolated memory credential lane. The credential, endpoint, vector, host, and image identities were not printed.{ "result": "passed", "exactHead": "36fb217f86303a2e55d7f8bab480d906fb748ec1", "provider": "gemini", "model": "gemini-embedding-2", "taskType": "RETRIEVAL_QUERY", "requestedDimensions": 768, "receivedDimensions": 768, "maxInputTokens": 8192, "finiteValues": true, "responseVectorRedacted": true, "credentialRedacted": true }{ "exactHeadProviderCanary": "passed", "productionUnchanged": true, "temporaryArtifactsRemoved": true, "temporaryOsAdminRemoved": true }A separate live
openclaw memory searchused the deployed stable-model/768 lane against an existing index. It returned three semantic results while before/after database hash and stat checks remained identical. No result content was printed.{ "memorySearch": "passed", "resultCount": 3, "provider": "gemini", "model": "gemini-embedding-2", "dimensions": 768, "indexDatabaseUnchanged": true, "shadowCreated": false, "indexingStarted": false, "productionUnchanged": true, "temporaryOsAdminRemoved": true }Neither canary reindexed, rebuilt, mutated an index, exposed memory content, restarted a service, or changed production configuration.
Repository validation
36fb217f86303a2e55d7f8bab480d906fb748ec1.upstream/mainatb7add0b5603.git diff --checkpassed.checks-node-compact-small-5timed out after 120 seconds insrc/config/io.observe-recovery.test.ts; the other 221 files and 3,133 tests in that shard passed.8d2976d81541e2d85f141b17004d7728f64eccc2) on the PR CI merge7a656a8d290d0433b130f03d0cf74431bc4d296dand its exact main basec1217886119c16a92ad7b0f080272af24fcb0bf7. This Google/docs-only PR does not touch the config recovery path, so the timeout is recorded as unrelated rather than green; no branch edit or blind rerun was made.Compatibility
gemini-embedding-001behavior is unchangedAI assistance
AI-assisted investigation, implementation, tests, documentation, canary preparation, and PR maintenance. Live outputs above are redacted aggregates from the executed canaries.