From 2b244d732e51bf9b030dc9e1eac75011797dc6c9 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Tue, 6 Oct 2026 18:33:19 +0000 Subject: [PATCH] Ember: a reads-only log grep playbook (the app's own tune lines, the helper log, cmd.txt) Co-Authored-By: Claude Fable 5.1 --- relay/playbooks/ember-log-grep-pc1.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 relay/playbooks/ember-log-grep-pc1.ps1 diff --git a/relay/playbooks/ember-log-grep-pc1.ps1 b/relay/playbooks/ember-log-grep-pc1.ps1 new file mode 100644 index 00000000..babe5739 --- /dev/null +++ b/relay/playbooks/ember-log-grep-pc1.ps1 @@ -0,0 +1,12 @@ +# Ember: reads only. The installed app's own tune lines (not the job echoes) from \logs, newest file: +# the engine's "tune:" requests and answers, "tune helper", TUNE start/aborted/chosen/rows, and the helper.log tail. +$ErrorActionPreference = 'Continue' +$l = Get-ChildItem (Join-Path $env:LOCALAPPDATA 'igneum\logs') -Filter 'app-*.log' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1 +if (-not $l) { Write-Output 'RESULT GREP no app log'; exit 1 } +Write-Output ('RESULT GREP log=' + $l.FullName) +Get-Content -LiteralPath $l.FullName | Where-Object { ($_ -match '\] tune|^\d+ tune|tune helper|TUNE (start|aborted|chosen|card=|helper)|refused|did not take|power cap|Power Helper') -and ($_ -notmatch 'job ember-|RESULT ') } | Select-Object -Last 80 | ForEach-Object { Write-Output ('RESULT GREP ' + $_) } +$h = Join-Path $env:LOCALAPPDATA 'igneum\app\sweep\helper.log' +if (Test-Path -LiteralPath $h) { Get-Content -LiteralPath $h | Select-Object -Last 12 | ForEach-Object { Write-Output ('RESULT GREP helper ' + $_) } } +$c = Join-Path $env:LOCALAPPDATA 'igneum\app\sweep\cmd.txt' +if (Test-Path -LiteralPath $c) { Write-Output ('RESULT GREP cmd.txt: ' + ((Get-Content -LiteralPath $c) -join ' / ')) } +exit 0