From d1fb4e69ff79f312b20e7a4e8025e1526462e971 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 18 Jun 2026 23:57:18 +0100 Subject: [PATCH] Show elevated service runbook command --- epiphany-core/src/bin/epiphany-verse-query.rs | 10 +++++++++- state/ledgers.msgpack | Bin 283267 -> 283728 bytes tools/epiphany_local_run.ps1 | 6 +++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 0e27cb29..fe53f2c4 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -2707,6 +2707,12 @@ fn main() -> Result<()> { "present", ) )) + && row.contains(&format!( + "exec={}", + elevated_powershell_runbook_command( + &service_smoke_runbook_path.display().to_string(), + ) + )) && row.contains("audit=cluster-service-execution-audit") && row.contains("aftercare=tools/epiphany_local_run.ps1 -Mode cluster-service-execution-audit") }) @@ -2718,6 +2724,7 @@ fn main() -> Result<()> { && row.contains("failedChecks=6") && row.contains("missingChecks=6") && row.contains("artifact=present") + && row.contains("exec=Start-Process PowerShell") && row.contains("audit=service-execution-audit") && row.contains("aftercare=tools/epiphany_local_run.ps1 -Mode service-execution-audit") }) @@ -3965,7 +3972,7 @@ fn swarm_action_rows( fn swarm_action_tui_row(row: &SwarmActionRow) -> String { format!( - "{:03} | {} | {} | {} | {} | service={} | route={} | command={} | mutates={} | elevated={} | failedChecks={} | missingChecks={} | artifact={} | sha256={} | audit={} | aftercare={}", + "{:03} | {} | {} | {} | {} | service={} | route={} | command={} | mutates={} | elevated={} | failedChecks={} | missingChecks={} | artifact={} | sha256={} | exec={} | audit={} | aftercare={}", row.priority, row.family, row.status, @@ -3980,6 +3987,7 @@ fn swarm_action_tui_row(row: &SwarmActionRow) -> String { row.service_execution_missing_check_count, row.operator_artifact_status, row.operator_artifact_sha256, + row.operator_artifact_execution_command, row.completion_audit_wrapper_mode, row.operator_aftercare_command ) diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index b9f4e24c50f680dd280d41ef16acd004b1fcfb7e..95cc225481acfd2768dc3773474958eb64ffddba 100644 GIT binary patch delta 337 zcmXYsAx{HA5QVvR0|Z4$NI;NGKv2=U99N*Ep^9KI2vE4~-jv<6ciZmn^@^@QVz`_l zC=w(Ig762>U_hZ!@Eh1Ah2fy4|n~oz0)Xa@3hL%m$x>5b2u4Fjd3~nuC6bN6qrnglo`-D zRY~zln%i0e4sc8j#-LG+1w)@^hD#;P1t^(oNM#P1TQM8~CzO@9`(*P-WocK+zWbTb zG=?r}5hGA#M9*b#s(Awvp|wcQ4>+>E?t~3+R@yVD7**Dt#lnA4f&h9_L01}Hegp*S{|Fj#VTm(ieYUTSbBC@IXk#__1u|=Q-T(jq delta 48 zcmcbxLa=$M;08%XE@LYbp0DQg= AXaE2J diff --git a/tools/epiphany_local_run.ps1 b/tools/epiphany_local_run.ps1 index ab1327c6..28de5513 100644 --- a/tools/epiphany_local_run.ps1 +++ b/tools/epiphany_local_run.ps1 @@ -1916,6 +1916,10 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { if ($null -eq $command -or $command -eq "") { $command = "none" } + $executionCommand = $_.operatorArtifactExecutionCommand + if ($null -eq $executionCommand -or $executionCommand -eq "") { + $executionCommand = "none" + } $failedChecks = $_.serviceExecutionFailedCheckCount if ($null -eq $failedChecks) { $failedChecks = 0 @@ -1932,7 +1936,7 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { if ($null -eq $serviceRoute -or $serviceRoute -eq "") { $serviceRoute = "none" } - "$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):service=${serviceId}:route=${serviceRoute}:command=${command}:mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):failedChecks=${failedChecks}:missingChecks=${missingChecks}:artifactStatus=${artifactStatus}:sha256=${artifactSha256}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact" + "$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):service=${serviceId}:route=${serviceRoute}:command=${command}:mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):failedChecks=${failedChecks}:missingChecks=${missingChecks}:artifactStatus=${artifactStatus}:sha256=${artifactSha256}:exec=${executionCommand}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact" }) -join "; ") } $serviceExecutionFailedChecks = Format-ServiceExecutionFailedChecks $result.serviceExecutionFailedCheckRows