mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-07 08:43:35 +08:00
An aborted incremental run preserves the previous index by design, but the response said generic 'error — check repo_path exists', sending people to debug a path that was fine. The abort and persist-failure codes move to the public pipeline header (the contract always said callers may distinguish them) and index_repository now answers with what actually happened: aborted_previous_preserved (retry; the old index still serves) vs persist_failed (disk/permissions) vs the generic failure. The incremental test helper goes fail-closed on error responses, surfacing the real cause once at the source — a transient abort used to slip past the non-NULL assert and cascade into dozens of mysterious count failures downstream (the 99-test Windows pile-up). Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>