## Spec 178 — Operations Lifecycle Alignment & Cross-Surface Truth Consistency Härtet die Run-Lifecycle-Wahrheit und Cross-Surface-Konsistenz über alle zentralen Operator-Flächen hinweg. ### Kern-Änderungen **Lifecycle Truth Alignment** - Einheitliche stale/stuck-Semantik zwischen Tenant-, Workspace-, Admin- und System-Surfaces - `OperationRunFreshnessState` wird konsistent über alle Widgets und Seiten propagiert - Gemeinsame Problem-Klassen-Trennung: `terminal_follow_up` vs. `active_stale_attention` **BulkOperationProgress Freshness** - Overlay zeigt nur noch `healthyActive()` Runs statt alle aktiven Runs - Likely-stale Runs halten das Polling nicht mehr künstlich aktiv - Terminal Runs verschwinden zeitnah aus dem Progress-Overlay **Decision Zone im Run Detail** - Stale/reconciled Attention in der primären Decision-Hierarchie - Klare Antworten: aktiv? stale? reconciled? nächster Schritt? - Artifact-reiche Runs behalten Lifecycle-Truth vor Deep-Diagnostics **Cross-Surface Link-Continuity** - Dashboard → Operations Hub → Run Detail erzählen dieselbe Geschichte - Notifications referenzieren korrekte Problem-Klasse - Workspace/Tenant-Attention verlinken problemklassengerecht **System-Plane Fixes** - `/system/ops/failures` 500-Error behoben (panel-sichere Artifact-URLs) - System-Stuck/Failures zeigen reconciled stale lineage ### Weitere Fixes - Inventory auth guard bereinigt (Gate statt ad-hoc Facades) - Browser-Smoke-Tests stabilisiert (DOM-Assertions statt fragile Klicks) - Test-Assertion-Drift für Verification/Lifecycle-Texte korrigiert ### Test-Ergebnis Full Suite: **3269 passed**, 8 skipped, 0 failed ### Spec-Artefakte - `specs/178-ops-truth-alignment/spec.md` - `specs/178-ops-truth-alignment/plan.md` - `specs/178-ops-truth-alignment/tasks.md` - `specs/178-ops-truth-alignment/research.md` - `specs/178-ops-truth-alignment/data-model.md` - `specs/178-ops-truth-alignment/quickstart.md` - `specs/178-ops-truth-alignment/contracts/operations-truth-alignment.openapi.yaml` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #209
60 lines
2.4 KiB
PHP
60 lines
2.4 KiB
PHP
<x-filament-panels::page>
|
|
@php($lifecycleSummary = $this->lifecycleVisibilitySummary())
|
|
@php($staleAttentionTab = \App\Models\OperationRun::PROBLEM_CLASS_ACTIVE_STALE_ATTENTION)
|
|
@php($terminalFollowUpTab = \App\Models\OperationRun::PROBLEM_CLASS_TERMINAL_FOLLOW_UP)
|
|
|
|
<x-filament::tabs label="Operations tabs">
|
|
<x-filament::tabs.item
|
|
:active="$this->activeTab === 'all'"
|
|
wire:click="$set('activeTab', 'all')"
|
|
>
|
|
All
|
|
</x-filament::tabs.item>
|
|
<x-filament::tabs.item
|
|
:active="$this->activeTab === 'active'"
|
|
wire:click="$set('activeTab', 'active')"
|
|
>
|
|
Active
|
|
</x-filament::tabs.item>
|
|
<x-filament::tabs.item
|
|
:active="$this->activeTab === $staleAttentionTab"
|
|
wire:click="$set('activeTab', '{{ $staleAttentionTab }}')"
|
|
>
|
|
Likely stale
|
|
</x-filament::tabs.item>
|
|
<x-filament::tabs.item
|
|
:active="$this->activeTab === $terminalFollowUpTab"
|
|
wire:click="$set('activeTab', '{{ $terminalFollowUpTab }}')"
|
|
>
|
|
Terminal follow-up
|
|
</x-filament::tabs.item>
|
|
<x-filament::tabs.item
|
|
:active="$this->activeTab === 'succeeded'"
|
|
wire:click="$set('activeTab', 'succeeded')"
|
|
>
|
|
Succeeded
|
|
</x-filament::tabs.item>
|
|
<x-filament::tabs.item
|
|
:active="$this->activeTab === 'partial'"
|
|
wire:click="$set('activeTab', 'partial')"
|
|
>
|
|
Partial
|
|
</x-filament::tabs.item>
|
|
<x-filament::tabs.item
|
|
:active="$this->activeTab === 'failed'"
|
|
wire:click="$set('activeTab', 'failed')"
|
|
>
|
|
Failed
|
|
</x-filament::tabs.item>
|
|
</x-filament::tabs>
|
|
|
|
@if (($lifecycleSummary['likely_stale'] ?? 0) > 0 || ($lifecycleSummary['reconciled'] ?? 0) > 0)
|
|
<div class="mb-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-900 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-100">
|
|
{{ ($lifecycleSummary['likely_stale'] ?? 0) }} active operation(s) are beyond their lifecycle window and belong in the stale-attention view.
|
|
{{ ($lifecycleSummary['reconciled'] ?? 0) }} operation(s) already carry reconciled stale lineage and belong in terminal follow-up.
|
|
</div>
|
|
@endif
|
|
|
|
{{ $this->table }}
|
|
</x-filament-panels::page>
|