Skip to content

refactor(memory): extract write embed service#51

Merged
HugoSkylight merged 1 commit into
masterfrom
refactor/memory-write-embed-service
Apr 28, 2026
Merged

refactor(memory): extract write embed service#51
HugoSkylight merged 1 commit into
masterfrom
refactor/memory-write-embed-service

Conversation

@HugoSkylight

Copy link
Copy Markdown
Contributor

Summary

Extracts the normal memory write embedding step from MemoryWriteService.add into MemoryWriteEmbedService. The add path now keeps orchestration for ingest, derive, context assembly, dedup, and store persistence, while the new service owns embedder presence handling, executor offload, timing, ctx.vector assignment, and sparse-vector return for persistence.

Validation

  • uv run --group dev pytest tests/test_memory_write_embed_service.py -q
  • uv run --group dev pytest tests/test_memory_write_context_builder.py tests/test_memory_store_record_service.py tests/test_vectorization_expansion.py -q
  • uv run --group dev pytest tests/test_memory_write_dedup_service.py tests/test_write_dedup.py -q
  • uv run --group dev pytest tests/test_http_server.py::TestHTTPServer::test_02_store -q
  • uv run --group dev ruff format --check .
  • uv run --group dev ruff check .

Browser Pipeline

Not applicable: this branch only changes backend memory write services, tests, and the plan artifact; no browser-routable UI files changed.

@HugoSkylight
HugoSkylight merged commit 81e630d into master Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant