Repository navigation
feat(mesh): add personal knowledge mesh - #771
Merged
Merged
Conversation
…ss stop, and globstar include matching Fixes four bugs found in PR #764's knowledge mesh implementation. _hits_from_embeddings treated an empty active_chunk_ids set the same as no filter at all (falsy check), so a freshly emptied index could still surface embeddings from the vector store. It now distinguishes None (no filter) from an empty set (filter active, nothing matches). KnowledgeMesh.reindex never removed stale vectors when a file's content changed and its chunk_id was regenerated: old rows were marked inactive in SQLite but their vectors stayed in the vector store forever. Added delete_by_metadata to VectorStore, InMemoryVectorStore, and SQLiteVecStore, plus WorldModelRAG.delete_by_metadata, and wired reindex to delete stale chunk_id vectors after ingesting the new ones. MeshDaemon.stop() only flipped a SQLite status row from a brand-new MeshDaemon instance, never reaching the asyncio.Event inside the separate process actually running `mesh start --watch`. The running watch process now records its PID and installs SIGTERM/SIGINT handlers that set its own _stop_event; stop() signals that PID via os.kill and waits briefly for the status row to confirm the watch loop exited. LocalMdLoader._matches_include's glob fallback did not implement globstar semantics, so the default include pattern docs/**/*.md never matched files directly under docs/ (e.g. docs/architecture.md) unless a co-listed bare *.md pattern happened to catch it by basename. Added a proper glob-to-regex compiler where ** matches zero or more directory segments. Co-authored-by: Dhruv Garg <[email protected]>
# Conflicts: # src/synapsekit/agents/agent_registry.py # src/synapsekit/computer_use/decorators.py
3 tasks done
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.
Merges #764 (personal knowledge mesh from @DhruvGarg111) with review fixes applied on top:
Regression tests added for all four, including a subprocess integration test for the daemon stop path. Full suite passing.
Closes #740