feat(memory): Phase 6 graph memory — init wizard, CLI flag, TUI commands, metrics (#1229)#1274
Merged
feat(memory): Phase 6 graph memory — init wizard, CLI flag, TUI commands, metrics (#1229)#1274
Conversation
…nds, metrics (#1229) Implements Phase 6 of the graph-based knowledge memory epic (#1222): - Add `--graph-memory` CLI flag to enable graph memory at runtime - Add graph memory question to `--init` wizard (enabled, extract_model) - Add `/graph`, `/graph entities`, `/graph facts <entity>`, `/graph communities`, `/graph backfill [--limit N]` TUI commands (all behind `#[cfg(feature = "graph-memory")]`) - Add 5 graph metrics fields to MetricsSnapshot and render them in the TUI memory widget (entities, edges, communities, extraction count/failures) - Add `sync_graph_counts()` to populate entity/edge/community totals from GraphStore at startup and after each extraction cycle - Add GraphStore methods: `find_entity_by_name`, `unprocessed_messages_for_backfill`, `unprocessed_message_count`, `mark_messages_graph_processed` - Update `docs/src/concepts/graph-memory.md` with TUI commands, CLI flag, wizard, backfill, and troubleshooting sections - Update `crates/zeph-tui/README.md` with graph command palette entries Tests: 4354 -> 4381 (+27)
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 Phase 6 of the graph-based knowledge memory epic (#1222), completing all user-facing integration points for the
graph-memoryfeature.--graph-memoryCLI flag to enable graph memory at runtime--initwizard (enabled + extract_model)/graphTUI commands:/graph(stats),/graph entities,/graph facts <entity>,/graph communities,/graph backfill [--limit N]MetricsSnapshotand TUI memory widget (entities, edges, communities, extraction count/failures)sync_graph_counts()polling entity/edge/community totals fromGraphStoreGraphStorebackfill SQL methods:unprocessed_messages_for_backfill,unprocessed_message_count,mark_messages_graph_processedfind_entity_by_nameconvenience wrapper onGraphStoredocs/src/concepts/graph-memory.mdwith TUI commands, CLI flag, wizard, backfill, and troubleshootingcrates/zeph-tui/README.mdwith graph command palette entriesTest Plan
cargo +nightly fmt --check— cleancargo clippy --workspace --features full -- -D warnings— cleancargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins— 4399 passedFollow-up Issues
tokio::spawn--limit 0silently accepted, should return error/graph factspicks first fuzzy match silently; add disambiguation hintSQLITE_MAX_VARIABLE_NUMBER=999constraint inmark_messages_graph_processedbackfill --limit 0misleading UXCloses #1229