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:
@@ -441,6 +441,50 @@ struct BoardAnnouncerSpeechTests {
|
||||
)
|
||||
}
|
||||
|
||||
/// **The corrupt-`.git` loud failure, spoken** (06-history-undo.md ▸ Rules, ruled 2026-07-31:
|
||||
/// "announced per 10-accessibility.md"). It ranks last of the raised conditions, matching the
|
||||
/// strip's own precedence: the two above it describe the board's files, this one the history
|
||||
/// over them.
|
||||
@Test("The unreadable repository announces on arrival, under the conditions about the files")
|
||||
func raisedRepositoryUnreadable() {
|
||||
var facts = BoardAnnouncer.ReloadFacts()
|
||||
facts.repositoryUnreadableAfter = true
|
||||
|
||||
#expect(
|
||||
BoardAnnouncer.speech(for: facts)
|
||||
== AccessibilityPhrases.bannerLabel(
|
||||
tone: .error,
|
||||
headline: BannerCenter.repositoryUnreadableMessage
|
||||
)
|
||||
)
|
||||
|
||||
// A breakage standing beside it leads: the board on screen not being the board on disk is
|
||||
// the more consequential of the two.
|
||||
facts.breakageAfter = breakage()
|
||||
#expect(
|
||||
BoardAnnouncer.speech(for: facts)
|
||||
== AccessibilityPhrases.bannerLabel(tone: .error, headline: BannerCenter.headline(for: breakage()))
|
||||
)
|
||||
}
|
||||
|
||||
@Test("A repository that heals is announced too, as the regained capability")
|
||||
func clearedRepositoryUnreadable() {
|
||||
var facts = BoardAnnouncer.ReloadFacts()
|
||||
facts.repositoryUnreadableBefore = true
|
||||
facts.repositoryUnreadableAfter = false
|
||||
|
||||
#expect(BoardAnnouncer.speech(for: facts) == "History is recording again")
|
||||
}
|
||||
|
||||
@Test("A standing unreadable repository is not repeated on every re-read")
|
||||
func standingRepositoryUnreadableIsNotRepeated() {
|
||||
var facts = BoardAnnouncer.ReloadFacts()
|
||||
facts.repositoryUnreadableBefore = true
|
||||
facts.repositoryUnreadableAfter = true
|
||||
|
||||
#expect(BoardAnnouncer.speech(for: facts) == nil, "the 15 s re-read confirms; it does not narrate")
|
||||
}
|
||||
|
||||
@Test("A cleared lock is announced — the banner speaks when it clears, not only when it appears")
|
||||
func clearedLock() {
|
||||
var facts = BoardAnnouncer.ReloadFacts()
|
||||
|
||||
Reference in New Issue
Block a user