Repository navigation
Closed
Labels
Milestone
Description
Problem
Only 22 tests exist for a data-integrity-critical memory system. This is approximately 10-12% coverage.
Untested Modules
| Module | LOC | Test Coverage | Risk |
|---|---|---|---|
lib.rs (Uteke struct) |
783 | ~0% | 🔴 All 18+ public methods untested |
store.rs |
880 | ~5% (store/delete only) | 🔴 Tag ops, aging, search, namespace — untested |
engine.rs |
162 | 0% | 🔴 Embedding pipeline — zero tests |
vector.rs |
386 | 0% | 🔴 Index CRUD, search, save/load — untested |
config.rs |
510 | 0% | 🟡 Config loading, merge, resolution — untested |
main.rs |
1028 | 0% | 🟡 CLI arg parsing — untested (clap handles most) |
types.rs |
145 | ~30% | 🟢 Basic serialization tested |
Critical Test Gaps
- Tag operations — add, remove, rename, delete, filter (after 🔧 [P0] Refactor tag storage: JSON-in-TEXT → junction table #120 refactor)
- Vector index — insert, remove, search, save/load, consistency
- Import/export — data integrity roundtrip
- Aging — tier classification, cleanup behavior
- Contradiction detection — threshold behavior, edge cases
- Consolidation — dedup accuracy, merge logic
- Namespace isolation — cross-namespace data leakage
- Config layering — CLI > project > global > defaults
Also: open_with_embedder() exists but is never used in tests
Proposed Approach
- Unit tests first — store.rs and vector.rs have the highest risk
- Integration tests — end-to-end remember → recall → search → forget
- Property-based tests — (optional) use
proptestfor embedding similarity
Acceptance Criteria
- store.rs: 60%+ branch coverage (tag ops, search, aging, namespace)
- vector.rs: 50%+ coverage (CRUD, search, save/load, consistency)
- lib.rs: 40%+ coverage (core API methods)
- engine.rs: basic smoke test (model load, embed, dimension check)
- config.rs: 30%+ coverage (load, merge, resolution)
- CI enforces minimum coverage (via
cargo llvm-covor similar) - All tests pass on all 4 platform targets
Effort: ~3-5 days
Activity
feat: v0.0.7 — core stability (#157)
ajianaz commentedon Jun 2, 2026
Fixed in #157 — 34 → 94 tests
release: initial sync — main catches up to develop (#171)
feat: v0.0.7 — core stability (#157)