feat: v0.4.0 — 10 enhancement features with 100% coverage#2
Merged
Conversation
Replace ad-hoc column-existence checks with a proper MIGRATIONS array and run_migrations() helper. Fresh databases get the full schema at LATEST_VERSION (6); existing databases run only the migrations needed to catch up. The v5->v6 migration is a no-op that establishes the framework for future schema changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… weights to query API Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds an optional `vec-sqlite` feature that uses the sqlite-vec extension for hardware-accelerated KNN vector search via a vec0 virtual table, replacing brute-force cosine scan for episode embeddings at scale. - New `vec_search` module with init, create_table, upsert, knn_search, delete - Automatic upsert into vec0 table when storing episode embeddings - Graceful fallback to brute-force when vec table is not initialised - 5 feature-gated unit tests covering CRUD and similarity correctness Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tembed Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a new `visualize` tool to the MCP server that generates Mermaid graph diagrams showing episodes, semantic nodes, categories, preferences, and their link connections. Supports configurable max_nodes and min_weight parameters for controlling diagram complexity. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Benchmarks: store_episode, query_bm25 (100/500/1000), consolidate, transform, cosine_similarity (384d), and forget operations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a Corroboration variant to ConflictStrategy that resolves conflicts by picking the node with the higher corroboration_count, falling back to recency on ties. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Required by the memory_bench benchmark harness. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10-task plan covering schema migration, richer queries, export, consolidation, vec-sqlite, local-embeddings, hooks, MCP viz, benchmarks, and conflict resolution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add targeted tests for all 59 previously uncovered lines: - export.rs: full roundtrip with categories, links, and skip paths - schema.rs: migration upgrade from older DB version (v4→v6) - reconciliation.rs: corroboration tie with node_a newer - mcp/mod.rs: visualize tool dispatch - hooks.rs: consolidate_batch and auto_consolidate_batch hooks - coverage_gaps.rs: admin export/import wrapper methods Coverage: 2780/2780 lines (100.00%) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PRAGMA user_versionwith sequential upgrade supportINSERT OR IGNOREconsolidate_batch()with configurable window sizevec-sqlitefeature) — KNN search via sqlite-vec virtual tableslocal-embeddingsfeature) — offline embeddings via fastembed/ONNXMemoryHookstrait with 5 lifecycle event callbacksCorroborationstrategy resolving by corroboration countTest plan
cargo check --benches)🤖 Generated with Claude Code