status:"ready" with ~5% of true node count
Version: codebase-memory-mcp 0.6.0
Platform: macOS
Reproduction (intermittent but reproducible during heavy session use):
- Multiple codebase-memory-mcp processes running concurrently (e.g.,
multiple Claude Code sessions across the day)
- Rapid kill of one or more processes
- New session reconnects — MCP appears functional
- index_status reports status:"ready" with node count ~5-10% of true
value (e.g., 469 nodes for a project with 5,915 true baseline)
- index_repository(mode="full") does NOT recover — repeated calls
return same low count with status:"indexed"
- ONLY recovery: full
/mcp disconnect + reconnect at the MCP client
level, followed by index_repository(mode="full")
Why this matters: status:"ready" / status:"indexed" should not
report success when the index is catastrophically partial. Suggested
fix: validate node count against a plausibility threshold (or against
prior known-good state) before returning ready.
Diagnostic data: 38k LOC Rust codebase, 9 source files. True
baseline 5,915 nodes / 9,531 edges (verified via schema sum +
known-symbol probes across all source files). Corrupted state
returned 169-572 nodes / 165-555 edges across multiple rebuild attempts.
status:"ready" with ~5% of true node count
Version: codebase-memory-mcp 0.6.0
Platform: macOS
Reproduction (intermittent but reproducible during heavy session use):
multiple Claude Code sessions across the day)
value (e.g., 469 nodes for a project with 5,915 true baseline)
return same low count with status:"indexed"
/mcpdisconnect + reconnect at the MCP clientlevel, followed by index_repository(mode="full")
Why this matters: status:"ready" / status:"indexed" should not
report success when the index is catastrophically partial. Suggested
fix: validate node count against a plausibility threshold (or against
prior known-good state) before returning ready.
Diagnostic data: 38k LOC Rust codebase, 9 source files. True
baseline 5,915 nodes / 9,531 edges (verified via schema sum +
known-symbol probes across all source files). Corrupted state
returned 169-572 nodes / 165-555 edges across multiple rebuild attempts.