feat(ns-mem): graph layer — semantic walk, belief versioning, PageRank #4
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jairo/Luma!4
Loading…
Reference in a new issue
No description provided.
Delete branch "ns-mem"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
coseno × edge_factor × (1 + PageRank).memory_edges: tabla SQLite con aristas tipadas (supports,contradicts,supersedes,triggered_by,related_to). Se crean automáticamente en consolidación (TriggeredBy) y enupsert_factsobre fact existente (Supersedes).memory_history: tabla append-only que versiona cada belief antes de ser sobreescrita.[0,1], almacenado enmemory_records.centrality_score.Archivos clave
src/memory/graph.rsGraphService: edge CRUD,semantic_walk,compute_centrality, belief historysrc/memory/graph_api.rsMemoryServicesrc/sqlite/memory_schema.rscentrality_scoresrc/memory/retrieval.rsrecall()reemplazado con semantic walk 3-stepsrc/memory/ingest.rsupsert_factversiona beliefs antes de overwritesrc/memory/consolidator.rsTriggeredByedge en cada consolidaciónsrc/config.rsmemory_walk_*,memory_centrality_*)tests/ns_mem_graph.rsEndpoints nuevos
Test plan
cargo fmt --all -- --check— limpiocargo clippy --all-targets --all-features -- -D warnings— 0 errorescargo test— 99/99 passingtest_edge_crud— crear/leer/eliminar aristas via APItest_triggered_by_on_consolidation— arista auto-creada en consolidacióntest_supersedes_on_upsert— arista Supersedes al sobreescribir facttest_belief_history_endpoint— historial de versionestest_centrality_hub_nodes— nodos hub reciben mayor scoretest_semantic_walk_expands— BFS expande más allá de seeds inicialestest_semantic_walk_skips_archived— records Archived excluidos🤖 Generated with Claude Code