Skip to content

Preserve the existing map when Git cannot read a repository - #146

Open
rudycelekli wants to merge 1 commit into
haydenschmitty:mainfrom
rudycelekli:fix/preserve-map-when-git-scan-fails
Open

rudycelekli wants to merge 1 commit into
haydenschmitty:mainfrom
rudycelekli:fix/preserve-map-when-git-scan-fails

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Problem

I built a Floorplan map spanning two Git repositories, then made one repository's Git directory temporarily unavailable in a disposable copy. Interactive refresh returned success for a partial scan. Its reconciliation then treated the unavailable repository's files as deleted, including descriptions written for those files.

Fix

Refresh uses the existing strict scan mode for its inventory. If Git can't read a repository, refresh reports which repository needs attention and stops before changing the map, scan cache, or descriptions. A standalone interactive scan can still report partial results.

Verification

  • Added a two-repository regression for the plain and JSON CLI paths. It fails on the old code and checks byte-for-byte preservation with the fix.
  • Mapped the actual Floorplan and Agent-Reach repositories together (317 source files). Reproduced an unavailable Git directory in an isolated clone. Refresh returned exit 1 with fix_scan; the graph, scan cache, and authored description hashes were unchanged.
  • npm test on macOS, Node 26.12.1: 488 passed, 1 skipped.
  • claude plugin validate . passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant