@extends('admin.layouts.app') @section('title', 'Agent Run #' . $run->id . ' — ' . __('admin.brand.name')) @section('page_title', 'Agent Run #' . $run->id) @push('styles') @endpush @section('content')

Run lineage — Agent Run Status is separate from Startup Status

Agent
{{ $run->agent?->name ?? $run->agent_key }} v{{ $run->agent_version }}
Startup
{{ $run->startup?->name ?? ('#'.$run->startup_id) }}
Trigger
{{ $run->trigger_type }} @if($run->trigger_event_id){{ $run->trigger_event_id }}@endif
Correlation ID
{{ $run->correlation_id }}
Idempotency key
{{ $run->idempotency_key }}
Expected state
{{ $run->expected_group ?? '—' }} / {{ $run->expected_status ?? '—' }}
@if ($run->parent_run_id)
Retry of
#{{ $run->parent_run_id }}
@endif
Started / Completed
{{ optional($run->started_at)->format('Y-m-d H:i') }} → {{ optional($run->completed_at)->format('Y-m-d H:i') ?? '—' }}

Agent decision (immutable)

Analysis status
{{ $run->analysis_status }}
Proposed action
{{ $run->proposed_action ?? '—' }}
Proposed status
{{ $run->proposed_status_update ?? '—' }}
@if ($run->decision_payload)

decision_payload

{{ json_encode($run->decision_payload, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) }}
@endif

Execution result (Execution Layer only)

Execution status
{{ $run->execution_status }}
Activity log
{{ $run->activity_log_id ?? '—' }}
@if ($run->error_code)
Error
{{ $run->error_code }} {{ $run->error_message }}
@endif
@if ($run->execution_result)
{{ json_encode($run->execution_result, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) }}
@endif @if ($run->notification_result)

notification_result

{{ json_encode($run->notification_result, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) }}
@endif
@if ($run->approvalRequests->isNotEmpty() || $run->handoff)

Linked records

@foreach ($run->approvalRequests as $ap)
Approval
#{{ $ap->id }} — {{ ucfirst($ap->status) }}
@endforeach @if ($run->handoff)
Handoff
#{{ $run->handoff->id }} (seq {{ $run->handoff->sequence_number }}, {{ $run->handoff->schema_version }})
@endif
@endif
@endsection