@php /** @var \App\Models\OperationRun $run */ $run = $this->run; $statusSpec = \App\Support\Badges\BadgeRenderer::spec( \App\Support\Badges\BadgeDomain::OperationRunStatus, [ 'status' => (string) $run->status, 'freshness_state' => $run->freshnessState()->value, ], ); $outcomeSpec = \App\Support\Badges\BadgeRenderer::spec( \App\Support\Badges\BadgeDomain::OperationRunOutcome, [ 'outcome' => (string) $run->outcome, 'status' => (string) $run->status, 'freshness_state' => $run->freshnessState()->value, ], ); $summaryCounts = is_array($run->summary_counts) ? $run->summary_counts : []; $hasSummary = count($summaryCounts) > 0; $integrityNote = \App\Support\RedactionIntegrity::noteForRun($run); $guidance = \App\Support\OpsUx\OperationUxPresenter::surfaceGuidance($run); $decisionTruth = \App\Support\OpsUx\OperationUxPresenter::decisionZoneTruth($run); @endphp
Operation #{{ (int) $run->getKey() }} {{ \App\Support\OperationCatalog::label((string) $run->type) }}
{{ $statusSpec->label }} @if ($outcomeSpec) {{ $outcomeSpec->label }} @endif
Workspace
{{ $run->workspace?->name ?? 'Unknown workspace' }}
Tenant
{{ $run->tenant?->name ?? 'Tenantless' }}
Started
{{ $run->started_at?->toDayDateTimeString() ?? '—' }}
Completed
{{ $run->completed_at?->toDayDateTimeString() ?? '—' }}
Initiator
{{ (string) ($run->initiator_name ?? '—') }}
Navigation
Show all operations Go to runbooks
Current lifecycle truth
Still active
{{ ($decisionTruth['isCurrentlyActive'] ?? false) ? 'Yes' : 'No' }}
Automatic reconciliation
{{ ($decisionTruth['isReconciled'] ?? false) ? 'Yes' : 'No' }}
Problem class
{{ $decisionTruth['problemClassLabel'] ?? 'None' }}
@if (filled($decisionTruth['attentionNote'] ?? null))
{{ $decisionTruth['attentionNote'] }}
@endif @if (filled($decisionTruth['staleLineageNote'] ?? null))
{{ $decisionTruth['staleLineageNote'] }}
@endif
@if ($integrityNote)
{{ $integrityNote }}
@endif @if ($guidance) Next step
{{ $guidance }}
@endif @if ($hasSummary) Summary counts
@foreach ($summaryCounts as $key => $value)

{{ \App\Support\OpsUx\SummaryCountsNormalizer::label((string) $key) }}

{{ is_numeric($value) ? number_format((int) $value) : $value }}

@endforeach
@endif @if (! empty($run->failure_summary))
Failures
@include('filament.partials.json-viewer', ['value' => $run->failure_summary])
@endif