Preserve discovery failures for damaged checkouts

This commit is contained in:
2026-11-01 21:53:40 +00:00
parent 5d5653bfc3
commit 66f5884ab4
5 changed files with 176 additions and 12 deletions

View File

@@ -132,7 +132,15 @@ following findings require follow-up; the other planned corrections are present.
### 1. Damaged checkout metadata can silently select standalone preparation
**Priority:** medium. **Status:** open.
**Priority:** medium. **Status:** complete.
**Completion evidence:** `TestPrepareBuildDependenciesRejectsDamagedCheckout`
verifies healthy root selection, preservation of the damaged checkout's Git
failure with no Go invocation, and genuine standalone preparation. Git discovery
regressions cover ceiling directories, physical and literal aliases, and the
filesystem boundary. Focused preparation and discovery checks pass offline with
the race detector. The implementation plan now requires marker inspection before
accepting the recognized no-repository diagnostic.
**Code:** `DiscoverRepositoryRoot` in
[internal/git/source.go](../../internal/git/source.go), particularly the