Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(backup): nightly auto-push no longer blocks on volatile telemetry

Ruben Lütkee72ea9dc19c7
diff --git a/scripts/README-auto-push.md b/scripts/README-auto-push.md
index a00e643add..4affa80350 100644
--- a/scripts/README-auto-push.md
+++ b/scripts/README-auto-push.md
@@ -109,6 +109,8 @@ Same fix as (2), but with extra care. The backup tag `safety/eod-main-*` is alre
If you still have uncommitted changes, **the script aborts** (log entry `SKIP: Working tree dirty`). This is intentional: otherwise you'd think everything was pushed, but the open changes would not be in the backup. Before going to bed, check `git status` once and commit or stash everything.
+**Exception — volatile telemetry:** files that the app rewrites on every start (currently `desktop-ttu-latest.json`) never count as dirty, otherwise the backup would skip forever on any machine that ran the app that day. The allowlist lives in the script and mirrors `DIRTY_ALLOWLIST` in `scripts/ci/check_release_completeness.py`.
+
---
## Clarification: relationship to the Jarvis-Agent DENY rule
diff --git a/scripts/auto-push-eod.ps1 b/scripts/auto-push-eod.ps1
index fd704018ac..525fe49774 100644
--- a/scripts/auto-push-eod.ps1
+++ b/scripts/auto-push-eod.ps1
@@ -104,14 +104,26 @@ if ([string]::IsNullOrWhiteSpace($headRef)) {
Write-Log "WARN" "HEAD ist detached. Aktueller Checkout wird nicht gepusht; Branch-Liste wird trotzdem verarbeitet."
}
-# Working Tree dirty?
+# Working tree dirty?
+# Volatile telemetry stamps are rewritten on EVERY desktop start; without this
+# allowlist the nightly backup would skip forever on a machine that merely ran
+# the app today. Keep it in lockstep with DIRTY_ALLOWLIST in
+# scripts/ci/check_release_completeness.py. Real uncommitted work still blocks.
+$volatileAllowlist = @('desktop-ttu-latest.json')
$dirty = git status --porcelain 2>$null
+$dirtyLines = @()
if (-not [string]::IsNullOrWhiteSpace($dirty)) {
- $dirtyLines = ($dirty -split "`n") | Where-Object { $_ -ne "" }
- Write-Log "SKIP" "Working tree dirty ($($dirtyLines.Count) Datei(en) geaendert/untracked). Bitte committen oder stashen, dann erneut."
+ $dirtyLines = @(($dirty -split "`n") | Where-Object { $_ -ne "" } | Where-Object {
+ $path = if ($_.Length -ge 4) { $_.Substring(3).Trim().Trim('"') } else { $_ }
+ if ($path -match ' -> ') { $path = ($path -split ' -> ', 2)[1].Trim('"') }
+ $volatileAllowlist -notcontains ($path -replace '\\', '/')
+ })
+}
+if ($dirtyLines.Count -gt 0) {
+ Write-Log "SKIP" "Working tree dirty ($($dirtyLines.Count) file(s) changed/untracked). Commit or stash them, then retry."
foreach ($d in $dirtyLines) { Write-Log "SKIP" " $d" }
- Write-Log "INFO" "=== Auto-Push EoD ENDE (skipped: dirty) ==="
- # Exit 0 ist hier korrekt: Skript hat sauber erkannt, dass es nichts tun darf.
+ Write-Log "INFO" "=== Auto-Push EoD END (skipped: dirty) ==="
+ # Exit 0 is correct here: the script cleanly detected it must not act.
exit 0
}