<?php

return [

    'persistence_enabled' => (bool) env('OPERATIONAL_CONTROL_PERSISTENCE', true),

    'stale' => [
        'draft_hours' => (int) env('OPERATIONAL_STALE_DRAFT_HOURS', 48),
        'validated_hours' => (int) env('OPERATIONAL_STALE_VALIDATED_HOURS', 24),
    ],

    'dashboard' => [
        'event_lookback_days' => 14,
        'recent_event_limit' => 100,
    ],

    /*
    |--------------------------------------------------------------------------
    | Escalation severity (operational, not KPI)
    |--------------------------------------------------------------------------
    |
    | Used by the control center for labels and operator guidance.
    |
    */
    'severity' => [
        'info' => [
            'label' => 'Info',
            'operator_note' => 'Awareness only; no immediate stock risk.',
        ],
        'warning' => [
            'label' => 'Warning',
            'operator_note' => 'Review within the same business day.',
        ],
        'error' => [
            'label' => 'Error',
            'operator_note' => 'Escalate to receiving lead; may block posting.',
        ],
        'critical' => [
            'label' => 'Critical',
            'operator_note' => 'Immediate escalation — integrity or cross-reference risk.',
        ],
    ],
];
