Repository navigation
feat(memory): add semantic backend registry - #627
Conversation
Introduce a Coding Agent semantic backend factory registry and route semantic memory backend validation/construction through it.\n\nVerification:\n- UV_PYTHON=3.12 uv run pytest tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.py tests/coding_agent/test_semantic_tape_index.py tests/coding_agent/test_semantic_recall.py tests/coding_agent/test_semantic_sync.py -q\n- uv run ruff check src/coding_agent/core/app.py src/coding_agent/topics/semantic_backends tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.py\n- uv run ruff format --check src/coding_agent/core/app.py src/coding_agent/topics/semantic_backends tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.py\n- git diff --check -- src/coding_agent/core/app.py src/coding_agent/topics/semantic_backends/__init__.py src/coding_agent/topics/semantic_backends/base.py src/coding_agent/topics/semantic_backends/registry.py tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.py
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughSemantic memory setup now uses a registry to list available backends, validate configured backend names, and create the selected backend instance. The package exports the registry helpers, and tests cover registry behavior plus app-level wiring. ChangesSemantic backend registry wiring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Verification
UV_PYTHON=3.12 uv run pytest tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.py tests/coding_agent/test_semantic_tape_index.py tests/coding_agent/test_semantic_recall.py tests/coding_agent/test_semantic_sync.py -quv run ruff check src/coding_agent/core/app.py src/coding_agent/topics/semantic_backends tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.pyuv run ruff format --check src/coding_agent/core/app.py src/coding_agent/topics/semantic_backends tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.pygit diff --check -- src/coding_agent/core/app.py src/coding_agent/topics/semantic_backends/__init__.py src/coding_agent/topics/semantic_backends/base.py src/coding_agent/topics/semantic_backends/registry.py tests/coding_agent/test_memory_index_backend_contract.py tests/coding_agent/test_memory_switch.pyReview
registry.pywas addressed before commit; the file is included in this PR.Summary by CodeRabbit
New Features
Bug Fixes
Refactor