Repository navigation
Backlog
Labels
area:graphGraph storage, queries, and scalepriority:P1Milestone-criticaltype:epicMilestone epic with an ordered task list
Milestone
Description
Goal
The graph is the system of record at 100k nodes.
Why now
At 10k nodes the engine spends +52 MB and 17.4 s on a snapshot; at 50k it does not finish in 180 s. The graph is the load-bearing bottleneck.
Exit criteria
- p95 query < 100 ms, diff < 250 ms, snapshot < 1 s at 100k nodes.
- Ingest >= 2k/s and RSS delta < 50 MB at 100k nodes.
- No full-session loads remain in hot paths.
- Replay reconstructs state bit-for-bit.
- 10 concurrent sessions show no leakage.
Work (in order)
Delivered in ADR 0020 (issues #15–#21 closed 2026-11-29):
- Consolidate Ether graph reads, telemetry defaults, and CLI session binding #15 Consolidate Ether graph reads, telemetry defaults, and CLI session binding
- Restore graph diffs after Forensic Sealing #16 Restore graph diffs after Forensic Sealing
- Honor the configured snapshot budget across SDK, CLI, and MCP #17 Honor the configured snapshot budget across SDK, CLI, and MCP
- Consolidate CLI session binding #18 Consolidate CLI session binding
- Return a consistent Entity Graph through the SDK #19 Return a consistent Entity Graph through the SDK
- Use consistent Entity Graph reads in CLI graph and report commands #20 Use consistent Entity Graph reads in CLI graph and report commands
- Use consistent Entity Graph reads in telemetry and MCP #21 Use consistent Entity Graph reads in telemetry and MCP
- M2: Replace the O(N x budget) snapshot knapsack with top-k selection #36 M2: Replace the O(N x budget) snapshot knapsack with top-k selection
- M2: Add a projected query API and recursive CTE traversal #37 M2: Add a projected query API and recursive CTE traversal
- M2: Rewrite the 40 full-session load call sites #38 M2: Rewrite the 40 full-session load call sites
- M2: Split GraphStore into deep storage modules #61 M2: Split GraphStore into deep storage modules
- M2: Add a gate that forbids full-session loads in hot paths #39 M2: Add a gate that forbids full-session loads in hot paths
- M2: Add the graph scale benchmark to CI #40 M2: Add the graph scale benchmark to CI
- M2: Add FTS5 keyword search and sqlite-vec integration #41 M2: Add FTS5 keyword search and sqlite-vec integration
- M2: Implement event replay #42 M2: Implement event replay
- M2: Verify 10 concurrent sessions with no leakage #43 M2: Verify 10 concurrent sessions with no leakage
Metadata
Metadata
Assignees
Labels
area:graphGraph storage, queries, and scalepriority:P1Milestone-criticaltype:epicMilestone epic with an ordered task list
Activity