<?php

declare(strict_types=1);

namespace App\Support\Baselines;

enum BaselineCompareReasonCode: string
{
    case NoSubjectsInScope = 'no_subjects_in_scope';
    case CoverageUnproven = 'coverage_unproven';
    case EvidenceCaptureIncomplete = 'evidence_capture_incomplete';
    case RolloutDisabled = 'rollout_disabled';
    case NoDriftDetected = 'no_drift_detected';

    public function message(): string
    {
        return match ($this) {
            self::NoSubjectsInScope => 'No subjects were in scope for this comparison.',
            self::CoverageUnproven => 'Coverage proof was missing or incomplete, so some findings were suppressed for safety.',
            self::EvidenceCaptureIncomplete => 'Evidence capture was incomplete, so some drift evaluation may have been suppressed.',
            self::RolloutDisabled => 'Full-content baseline compare is currently disabled by rollout configuration.',
            self::NoDriftDetected => 'No drift was detected for in-scope subjects.',
        };
    }
}
