Fix backup discovery for watchdog checks

This commit is contained in:
Meta Vens 2026-06-04 13:24:36 +01:00
commit 104eeeffbd
3 changed files with 5 additions and 2 deletions

View file

@ -373,7 +373,8 @@ function Get-LatestCompleteBackupDirectory {
)
$directories = @(Get-ChildItem -LiteralPath $BackupRoot -Directory -ErrorAction SilentlyContinue |
Sort-Object Name -Descending)
Where-Object { $_.Name -match '^\d{8}-\d{6}(?:-.+)?$' } |
Sort-Object LastWriteTimeUtc -Descending)
$latestDirectory = $directories | Select-Object -First 1
$latestCompleteDirectory = $directories |

View file

@ -87,7 +87,8 @@ function Get-LatestBackupDirectory {
)
$latest = Get-ChildItem -LiteralPath $BackupRoot -Directory -ErrorAction SilentlyContinue |
Sort-Object Name -Descending |
Where-Object { $_.Name -match '^\d{8}-\d{6}(?:-.+)?$' } |
Sort-Object LastWriteTimeUtc -Descending |
Select-Object -First 1
if ($null -eq $latest) {

View file

@ -330,3 +330,4 @@
{"ts":"2026-06-03T01:53:24Z","type":"verification","status":"ok","note":"Follow-up operator report was traced to pre-repair Discord messages; post-repair Mimir logs showed Interpreter-owned public text, and the repo Face mouth was hardened further so inline Markdown code spans normalize to quoted text before Bifrost posting."}
{"ts":"2026-06-03T02:14:18Z","type":"documentation","status":"ok","note":"Documented VoidBot Verse service contract: VoidBot owns Discord cognition/archive/source/typed self-state/repo Face compatibility; Huginn owns Persona/.cc runtime inspection stewardship; Bifrost owns governed work transport; Odin discovers provider-owned CultMesh surfaces; Eve/CultUI is the presentation contract. Current provider is cultmesh://voidbot.local/eve/providers/voidbot.swarm with .cc witness at .voidbot/status/cultmesh/voidbot-swarm-state.cc."}
{"ts":"2026-06-04T10:51:11Z","type":"implementation","status":"ok","note":"Fixed repo Face active-stack fault: worker now claims one runnable job per poll, and heartbeat reconciliation treats running jobs as active while approved jobs only block duplicate queueing. Reset eight over-claimed running jobs to approved and restarted worker PID 36736; visible active count dropped to one."}
{"ts":"2026-06-04T12:24:21Z","type":"implementation","status":"ok","note":"Watchdog backup discovery now ignores non-timestamped restorepoint directories when choosing latest local backups, so ad hoc Face-state restorepoints under .voidbot/backups no longer masquerade as incomplete scheduled backups. The 2026-06-04 ops smoke still fails only on Raven/192.168.1.84 reachability for remote Ollama and offsite SSH."}