Skip to content

fix(memory): partition Mistral and DeepInfra embedding caches - #129669

Merged
steipete merged 1 commit into
mainfrom
codex/mistral-deepinfra-embedding-cache-identity
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/mistral-deepinfra-embedding-cache-identity

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Fix silent embedding-index collisions when Mistral or DeepInfra operators use different custom endpoints, tenant headers, or deployment headers with the same model.
  • Preserve the exact existing cache identity for ordinary/default configurations, including equivalent default URLs; ignore rotating authorization, api-key, and x-api-key credentials while retaining semantic routing headers and the unchanged outbound requests.
  • Repair both affected plugin owners together using the existing SDK destination/header canonicalization, remove redundant Mistral/DeepInfra wrappers and duplicate client typing, and preserve DeepInfra's existing direct query/document/batch behavior. Combined production delta: -1 line.

Existing users with explicitly configured custom embedding endpoints or semantic custom headers will rebuild their affected index once because those previously colliding destinations now have distinct identities. If rebuilding manually, run openclaw memory index --force --agent <id>. Ordinary/default configurations retain their historical identities byte-for-byte and do not rebuild.

Validation

  • Captured real owner regressions on the previous code: two failing endpoint/tenant cases per provider; all four pass after the owner fixes.
  • Focused provider, sibling, and index-state regression suite: 120 tests across 10 files passed.
  • Post-format owner rerun: 15 Mistral/DeepInfra tests passed.
  • Direct synthetic real-adapter proof for both providers verifies destination partitioning, tenant partitioning, credential rotation stability, byte-exact default identity, normalized equivalent default identity, absence of credentials in identity, and unchanged outbound routing/authentication.
  • Focused lint clean for all six changed files; full typed lint clean for the five owner adapter/test files. The DeepInfra provider has two identical pre-existing unresolved-facade type-lint diagnostics on clean main; the change introduces no new diagnostics or rule suppressions.
  • Scoped formatting checks pass; no external requests or live credentials are used.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 25, 2026 23:22
@steipete
steipete merged commit a846297 into main Aug 25, 2026
165 checks passed
@steipete
steipete deleted the codex/mistral-deepinfra-embedding-cache-identity branch August 25, 2026 23:44
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant