An unopenable repository fails loudly — the standing row, the paused surface, the honest heal
Claude-Session: https://claude.ai/code/session_014PtZdPwqZuqEDLc6wZMtEy
This commit is contained in:
@@ -78,6 +78,22 @@ struct BoardGitSectionTests {
|
||||
#expect(section != .noRepository)
|
||||
}
|
||||
|
||||
/// **A board whose repository will not open keeps the git section it has** (06 ▸ Rules, the
|
||||
/// corrupt-`.git` loud failure, ruled 2026-07-31) — the *branch* section, held and explaining
|
||||
/// itself, never the mode-none posture that would imply a board with no history to have.
|
||||
///
|
||||
/// The section case is deliberately blind to readability: what changes on such a board is what
|
||||
/// the branch surface inside it says (`BoardGitBranchSurface.resolve`, whose broken presentation
|
||||
/// and own sentence `BoardGitBranchSurfaceTests` pins), not which section the popover shows. The
|
||||
/// posture matrix stays a function of the tier and the mode alone.
|
||||
@Test("An unreadable repository is still the branch section — never the no-repository posture")
|
||||
func anUnreadableRepositoryKeepsTheBranchSection() {
|
||||
let section = BoardGitSection.resolve(tier: .pro, mode: .git, hasGitDirectory: true)
|
||||
|
||||
#expect(section == .branch)
|
||||
#expect(section != .noRepository, "the board has a repository; it is unreadable, not absent")
|
||||
}
|
||||
|
||||
@Test("Every posture is reachable, and none of them is two postures")
|
||||
func theMatrixIsTotal() {
|
||||
let resolved = Set(
|
||||
|
||||
Reference in New Issue
Block a user