Sync Protocol (UUIDs), HiRAG Foundation & CI Fixes#29
Conversation
- **Sync & Privacy**:
- Added `cryptography` package for AES-GCM encryption.
- Implemented `SyncManager` with `exportEncryptedSnapshot` and `importEncryptedSnapshot`.
- Updated `MemoryNode` and `MemoryEdge` schemas to include:
- `uuid` (Globally Unique Identifier, indexed).
- `modifiedAt` (Last modification timestamp for LWW).
- `version`, `deviceId`, `isDeleted`.
- Fixed critical sync flaw by using `uuid` for matching records across devices instead of local `id`.
- Added `EncryptionService` unit tests and `SyncManager` integration tests.
- **HiRAG (Hierarchical RAG)**:
- Added `layer` field to `MemoryNode` to support hierarchical knowledge.
- Created `HierarchicalMemoryGraph` extension with `createSummaryNode` and `getNodesByLayer`.
- **Build & Dependencies**:
- Resolved complex dependency conflicts between `isar_generator`, `objectbox_generator`, and `json_serializable` by using a two-phase build process and manual `source_gen` overrides where necessary.
- Fixed `isar_agent_memory_tests` CI configuration by adding missing `isar_flutter_libs` dependency.
- **Documentation**:
- Updated README with "Sync & Privacy (Beta)" guide and HiRAG roadmap status.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
This PR implements the "Sync & Privacy" feature requested in the roadmap and fixes CI issues.
Key Changes
Sync Protocol (LWW + UUIDs):
SyncManagerthat handles exporting/importing encrypted snapshots.package:cryptography.modifiedAttimestamps.uuidtoMemoryNodeandMemoryEdgeto ensure correct merging across devices (fixing the potential data corruption issue of using local IDs).HiRAG Foundation:
layerproperty to nodes.HierarchicalMemoryGraphextension to allow creating summary nodes (Child -> Summary relation).Dependency Hell Resolution:
isar_generator(requires oldsource_gen) and modernobjectbox_generator/json_serializable.CI & Testing:
isar_agent_memory_testsfailing to findisar.dllby ensuringisar_flutter_libsis present.Verification
dart testpassed for encryption service.flutter testpassed for sync integration (export -> clear -> import -> verify).isarandobjectboxgenerated files are present and correct.PR created automatically by Jules for task 6694733581578485995 started by @iberi22