Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 11:25 PM ET / September 23, 2026, 03:25 UTC (Revision 8). ClawSweeper reviewWhat this changesExtends Memory Core’s existing batch-error matcher to recognize Zhipu’s Chinese item-count limit and adds a regression case. Merge readiness✅ Ready for maintainer review Keep open: the Chinese Zhipu rejection remains unhandled on current main and the latest release. The narrow fix has sufficient transport-boundary recovery evidence and no actionable findings; the overlapping Chinese-payload PR closed unmerged. Priority: P2 Review scores
Verification
How this fits togetherMemory Core turns document chunks into embeddings for searchable memory. Its retry policy classifies provider errors and splits oversized batches before returning ordered embeddings to the indexer. flowchart TD
A[Document chunks] --> B[Memory embedding batch]
B --> C[Embedding provider]
C --> D{Recognized item limit?}
D -->|Yes| E[Split into smaller batches]
E --> C
D -->|No| F[Surface terminal error]
C -->|Success| G[Ordered embeddings for indexing]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +3. Total +3 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the precise Chinese item-count classification in the existing split owner without adding provider caps, configuration, or a parallel retry mechanism. Do we have a high-confidence way to reproduce the issue? Yes, from source: the reported Chinese HTTP 400 payload fails current main’s classifier, so the production splitter rethrows it. This review did not execute a current-main reproduction. Is this the best way to solve the issue? Yes. Extending the existing precise matcher repairs the reported failure while preserving the canonical retry mechanism and unrelated error handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff2736533bed. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
8409d8e to
fda625f
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
fda625f to
7e3d920
Compare
|
@obviyus This PR was rebased onto the latest What happened: Net change vs Verified: oxfmt ✅ · oxlint ✅ · vitest 17/17 ✅ · no lockfile changes. Head is |
7e3d920 to
2afefe0
Compare
|
Hi @obviyus — following up on #136868 (rebased clean on main, CI green, ClawSweeper 4/6, proof sufficient, no findings). Quick context on why I'm nudging: the remaining Chinese zhipu payload ( There's also #136870 from another contributor targeting the exact same gap. Rather than have both sit open indefinitely, could you pick one to merge (or close as duplicate)? Happy to defer if #136870 is preferred — just want the underlying issue resolved. The fix is a 1-line regex branch on the existing split classifier, no new mechanism. |
The splittable batch-error regex only matched OpenAI-style item-limit
wording, so zhipu (Chinese "input数组最大不得超过64条") and DashScope/
bailian ("batch size is invalid, it should not be larger than 20")
rejections were not recognized as splittable. The binary-split retry
never fired and the whole memory index failed once a batch exceeded the
provider cap.
Extend the regex to recognize both payloads, mirroring the explicit
numeric-cap requirement of the existing OpenAI branches.
Fixes openclaw#136261
2afefe0 to
5b6a904
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Landed in 00c09b7. Zhipu’s Chinese input-array limit now triggers the existing batch splitter. Verified through the built memory index --force CLI: the base failed on 100 inputs; the fix split them into 50 + 50 and indexed all 100 chunks. An unrelated HTTP 400 remained terminal, and all 45 focused policy tests passed. Thanks @SunnyShu0925 for the fix and @vanecook for the detailed report and exact error payload! |
…enclaw#136868) Closes openclaw#136261 ## What Problem This Solves `openclaw memory index --force` aborts when Zhipu embedding-3 rejects an oversized input array with `input数组最大不得超过64条`. The existing recursive batch splitter does not recognize that Chinese item-limit message. ## What Changed Add the explicit Chinese input-array count-limit shape to the existing embedding error classifier, with a regression case in the existing policy suite. Bailian's English item-limit message and Zhipu's English message are already handled by the base code. Retry budgets, splitting logic, configuration, defaults, and unrelated error handling are unchanged. ## User Impact Memory indexing can recover from the reported Zhipu 64-item cap by halving oversized requests rather than aborting. No new provider limits or configuration options are introduced. ## Evidence Ran the built CLI through `pnpm openclaw --profile <isolated-profile> memory index --force --verbose`, using a configured `zhipu` provider, model `embedding-3`, and the supported `memory.search.remote.baseUrl` override pointed at a local OpenAI-compatible HTTP server. The fixture contains 100 independent entries in `MEMORY.md`; the server returns HTTP 400 with code `1214` and the reporter's literal Chinese message for arrays larger than 64. - Base `8165e993a59`: exit 1; one rejected 100-item request; zero indexed chunks. - Candidate `5b6a90498c75d81807a49c6ead2d0a7770e66b78`: exit 0; requests `[100, 50, 50]`; CLI reports one file indexed; `memory status --json` reports 100 chunks, a complete vector index, and valid index identity. - Negative control on the candidate: HTTP 400/code `1214` with `input array must contain strings` exits 1 after one 100-item request, without splitting. - Focused `manager-embedding-policy.test.ts`: 45 tests passed. Each CLI used an explicit isolated profile and task-owned home, config, and state directories. Config and database paths were printed before indexing; no live state was used. The proof replays the reported provider response locally, not a live funded Zhipu account. No overlap with Pash/Sarah changes: checked the changed files' history on `origin/main` for `pash-openai`/`[email protected]` and `sjf-oa`/`[email protected]`; no matching commits. Thanks @SunnyShu0925 for the fix and @vanecook for the report and exact error payload. ## AI Assistance AI-assisted implementation review and isolated CLI verification. The contributor's commits and existing focused fix are preserved. Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #136261
What Problem This Solves
openclaw memory index --forceaborts when Zhipu embedding-3 rejects an oversized input array withinput数组最大不得超过64条. The existing recursive batch splitter does not recognize that Chinese item-limit message.What Changed
Add the explicit Chinese input-array count-limit shape to the existing embedding error classifier, with a regression case in the existing policy suite. Bailian's English item-limit message and Zhipu's English message are already handled by the base code. Retry budgets, splitting logic, configuration, defaults, and unrelated error handling are unchanged.
User Impact
Memory indexing can recover from the reported Zhipu 64-item cap by halving oversized requests rather than aborting. No new provider limits or configuration options are introduced.
Evidence
Ran the built CLI through
pnpm openclaw --profile <isolated-profile> memory index --force --verbose, using a configuredzhipuprovider, modelembedding-3, and the supportedmemory.search.remote.baseUrloverride pointed at a local OpenAI-compatible HTTP server. The fixture contains 100 independent entries inMEMORY.md; the server returns HTTP 400 with code1214and the reporter's literal Chinese message for arrays larger than 64.0e6c5a8d891: exit 1; one rejected 100-item request; zero indexed chunks.5b6a90498c75d81807a49c6ead2d0a7770e66b78: exit 0; requests[100, 50, 50]; CLI reports one file indexed;memory status --jsonreports 100 chunks, a complete vector index, and valid index identity.1214withinput array must contain stringsexits 1 after one 100-item request, without splitting.manager-embedding-policy.test.ts: 45 tests passed.Each CLI used an explicit isolated profile and task-owned home, config, and state directories. Config and database paths were printed before indexing; no live state was used. The proof replays the reported provider response locally, not a live funded Zhipu account.
No overlap with Pash/Sarah changes: checked the changed files' history on
origin/mainforpash-openai/[email protected]andsjf-oa/[email protected]; no matching commits.Thanks @SunnyShu0925 for the fix and @vanecook for the report and exact error payload.
AI Assistance
AI-assisted implementation review and isolated CLI verification. The contributor's commits and existing focused fix are preserved.