package com.example.aiapp import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue class AuthenticationPromptTest { @Test fun an_authentication_failure_stays_actionable_through_its_terminal_status() { val required = authenticationPromptAfter( false, SessionEvent.AuthenticationRequired("sign in again"), ) assertTrue(authenticationPromptAfter(required, SessionEvent.Status("idle"))) } @Test fun a_later_provider_response_makes_an_old_failure_stale() { assertFalse( authenticationPromptAfter( true, SessionEvent.AssistantText("Working again."), ) ) } }