mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-28 07:03:20 +08:00
Restore the upstream query-only leak workflow and timeout budgets so multi-hour jobs are neither dormant nor truncated. Preserve mixed-workload behavior while adding a dedicated read-only mode across Linux, macOS, and Windows. Run every soak in an isolated project/cache/FIFO root, clean owned servers and diagnostics on normal or abnormal exit, and convert MSYS paths before placing them in JSON or environment variables. Validate initialize and tool responses, retain failure state across crash recovery, inject the crash before waiting for an index response, and require a checked post-restart reindex. Record cache, database, and WAL sizes alongside RSS and FD metrics. Use post-index peak/final ratios and long-run slope as the portable default memory gates; keep an explicit CBM_SOAK_RSS_MAX_MB override for measured platform budgets instead of the obsolete universal 200 MB ceiling. Validation: - bash -n scripts/soak-test.sh - shellcheck -x scripts/soak-test.sh - actionlint on soak workflows - source-safety and diff hygiene - zero-minute product lifecycle smoke: passed - asynchronous crash/restart/reindex smoke: passed - one-minute query-leak run: 106 RPCs, zero failures - invalid config and failed-server cleanup paths: rejected and cleaned Signed-off-by: Andrew Hundt <ATHundt@gmail.com>