From c0e5e572dbe5308ed6d08e663b1e0fda372acace Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 19 Jun 2026 00:07:51 +0100 Subject: [PATCH] Run swarm online aftercare audits --- state/ledgers.msgpack | Bin 284089 -> 284564 bytes tools/epiphany_local_run.ps1 | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index eba1715dc6c263361e76790ad380c01d93e5a422..325bc4fc208b844ae12f85047e5d1b1f49990bc7 100644 GIT binary patch delta 415 zcmXX?y-vbV6t>XG1QTK$j4?SzM+>E;e@wbLI6-u9J8e&;vGl^dx8TO$pbsGF>MR2$ z4#pR7@Cl4h& zENc46pge2qJG$L7z4GX_cF_9OmVHXnoMI3&? z^}V?uDXJ=`F$2z+1k7Wgdx{E4n^wON(!h91T&6;SVPx# diff --git a/tools/epiphany_local_run.ps1 b/tools/epiphany_local_run.ps1 index c629a38f..da21945c 100644 --- a/tools/epiphany_local_run.ps1 +++ b/tools/epiphany_local_run.ps1 @@ -879,13 +879,15 @@ if ($Mode -eq "swarm-online-runbook") { } $aftercareCommands = @($authorityRows | ForEach-Object { $_.operatorAftercareCommand } | Where-Object { $null -ne $_ -and $_ -ne "" -and $_ -ne "none" } | Select-Object -Unique) + $quotedRoot = ConvertTo-PowerShellLiteral $Root $runbookLines = @( "# Epiphany swarm online runbook.", "# Generated from compact CultMesh swarm action rows.", "# Run only with explicit operator authority. The individual sealed runbooks write lifecycle receipts.", - "# After execution, run the aftercare audit command(s) listed below.", + "# After execution, this runbook executes the advertised aftercare audit command(s).", "Set-StrictMode -Version Latest", '$ErrorActionPreference = "Stop"', + "Set-Location -LiteralPath $quotedRoot", "" ) foreach ($row in $authorityRows) { @@ -899,7 +901,7 @@ if ($Mode -eq "swarm-online-runbook") { } $runbookLines += "# Aftercare audit command(s):" foreach ($aftercare in $aftercareCommands) { - $runbookLines += "# $aftercare" + $runbookLines += $aftercare } Set-Content -LiteralPath $runbookPath -Value ($runbookLines -join [Environment]::NewLine) -Encoding UTF8 $runbookSha256 = Get-LocalArtifactSha256 $runbookPath