feat(v3.0): cross-project unified memory#25
Open
RichardHightower wants to merge 3 commits intomainfrom
Open
Conversation
- Add registered_projects config for multi-store federation - Implement FederatedQueryHandler with fail-open semantics - Add project attribution field to query results - Wire cross-project behind opt-in flag - Add E2E tests for multi-store query and attribution
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
Implements the first v3.0 feature: federated query across multiple project stores.
What changed
proto/memory.protoall_projectsflag toRouteQueryRequest,projectattribution field toRetrievalResultmemory-types/config.rsCrossProjectConfig { registered: Vec<PathBuf> }+projectsfield inSettingsmemory-storage/db.rsStorage::open_read_only()for federationmemory-service/federated.rs(NEW)federated_query()— fans out to registered stores, merges results, project attribution, fail-openmemory-service/retrieval.rsfederated_querybehindall_projectsopt-in flage2e-tests/cross_project_test.rs(NEW).planning/STATE.md,.planning/ROADMAP.mdDesign decisions
projectfield on results usesserde(default)for backward-compatible JSON, matching the existingagentfield pattern from v2.1federated_queryso cross-project works even when BM25/vector indexes aren't built for a storeconfig.tomlunder[projects]Tests
13/13 passing:
Usage
Then query with
--all-projectsflag orall_projects: truein config.