"""
Explainable findings produced by Sentinel Brain.
"""

from dataclasses import dataclass


@dataclass(frozen=True)
class Finding:
    """
    One explainable technical observation.

    Attributes:
        code: Stable machine-readable identifier.
        severity: INFO, LOW, MEDIUM, HIGH, or CRITICAL.
        confidence: Confidence percentage from 0 to 100.
        explanation: Human-readable explanation.
        metric: Related technical metric.
        value: Calculated metric value.
        unit: Metric unit.
    """

    code: str
    severity: str
    confidence: float
    explanation: str
    metric: str
    value: float
    unit: str