package com.correx.core.journal.model

import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test

class DecisionKindSalienceTest {
    @Test
    fun `HIGH kinds cover intent steering preempt approval failure`() {
        listOf(DecisionKind.INTENT, DecisionKind.STEERING, DecisionKind.PREEMPT,
            DecisionKind.APPROVAL, DecisionKind.FAILURE)
            .forEach { assertEquals(Salience.HIGH, it.salience(), "$it should be HIGH") }
    }

    @Test
    fun `LOW kinds cover transition retry artifact`() {
        listOf(DecisionKind.TRANSITION, DecisionKind.RETRY, DecisionKind.ARTIFACT)
            .forEach { assertEquals(Salience.LOW, it.salience(), "$it should be LOW") }
    }

    @Test
    fun `salience is exhaustive over all DecisionKind entries`() {
        DecisionKind.entries.forEach { it.salience() }
    }
}
