You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🔗 Feature: Relationship graph layer between memories #246
A Room (#278) is a collaboration context (e.g., a Discord thread). Memories stored in a room have an implicit contains relationship from the room to the memory. This gives us:
Room-scoped graph traversal: Follow edges only within a room's memory set
Cross-room discovery: Find related memories across rooms via shared edges
The --related flag could optionally filter to same-room edges: recall --related --room discord:xxx
When implementing, contains type should be added to relationship types acceptance criteria
SurrealDB Inspiration
SurrealDB's Namespace > Database > Scope hierarchy isolates data at multiple levels. Room is conceptually similar to SurrealDB's Scope — a context boundary that groups related data without full isolation (rooms can overlap; memories can exist in multiple rooms or none).
Priority Impact
No change to current scope. This is a design note for implementation phase — when building the graph layer, room-container edges should be considered alongside the existing relationship types.
Related:#278 (Room feature), #247 (importance with room factor)
#286 (Room) should be implemented BEFORE this issue. Graph layer will enhance room with traversal capabilities, but room tables must exist first. Recommended order: #249 → #286 → THIS (#246) → #248 → #247 → #181
Activity
ajianaz commentedon Jun 11, 2026
Room as Container Relationship (from SurrealDB Research — Jun 2026)
After deep-diving SurrealDB's architecture, one pattern worth considering: Room as a
containscontainer type in the relationship graph.Current Design
Issue describes memory-to-memory edges:
supersedes,contradicts,part_of,references.Proposed Addition:
roomas ContainerA Room (#278) is a collaboration context (e.g., a Discord thread). Memories stored in a room have an implicit
containsrelationship from the room to the memory. This gives us:How It Fits
--meta "room:discord:xxx"or dedicatedroomcolumn (see feat(#134): file permissions and ONNX model checksum verification #278)--relatedflag could optionally filter to same-room edges:recall --related --room discord:xxxcontainstype should be added to relationship types acceptance criteriaSurrealDB Inspiration
SurrealDB's
Namespace > Database > Scopehierarchy isolates data at multiple levels. Room is conceptually similar to SurrealDB'sScope— a context boundary that groups related data without full isolation (rooms can overlap; memories can exist in multiple rooms or none).Priority Impact
No change to current scope. This is a design note for implementation phase — when building the graph layer, room-container edges should be considered alongside the existing relationship types.
Related: #278 (Room feature), #247 (importance with room factor)
ajianaz commentedon Jun 11, 2026
🔗 Update: Room Integration (from SurrealDB analysis, #286)
Room as Graph Node Hub
With the new Room feature (#286), the graph layer should treat rooms as first-class nodes:
Enhanced Graph Traversal with Rooms
Updated Acceptance Criteria (add to existing)
part_ofedges from memories to rooms--room --depth N)connectivity_scorein importance formula (⭐ Feature: Smart memory decay and importance scoring #247)Dependency Note
#286 (Room) should be implemented BEFORE this issue. Graph layer will enhance room with traversal capabilities, but room tables must exist first. Recommended order: #249 → #286 → THIS (#246) → #248 → #247 → #181
feat(#246): relationship graph layer via metadata edges (#302)
feat(#246): relationship graph layer via metadata edges (#302)