The off-site copies of a removed app end 30 days after „delete backup data” — the box's half (felhom.eu R-1374 part 1; D72, D84)
gates / gates (push) Successful in 41s

Built, not released; no box has run it. felhom.eu `07-backup-architecture.md` §8.2f.
It does nothing without a hub that knows it: an older hub agrees to no id.

- The record: settings `offsite_ends` {app, removed_at, ends_at}. One writer
  (backup.StartOffsiteEnd), called by a removal only with „delete backup data”
  and by „Törlés 30 nap múlva” on the restore page. A second press changes
  nothing. No record, no deletion. Only on the hub-provisioned tier.
- The date is on the remove dialog before the press; the restore page shows
  „Törlésre kijelölve …” with „Mégis megtartom”, and one history line per
  carried-out end. An install of the same app deletes the record.
- The weekly window: after the guard has passed the policy's plan under the cap
  as before, it adds the snapshots whose app tags are ALL due records, that the
  hub agreed to and the box named in the same request; the result names them
  apart (removed_for_ended_apps). `_shares`, the box's own stacks and an
  installed app are never due.
- The report carries the pending records; the household gets one mail per
  press (offsite_end_scheduled), in both languages.

MinAgent unchanged (0.158.1). 143 parity fixtures gained the dialog's one new
script line (patched, not regenerated); one new parity case.
Tests TestD72_*, TestD84_*; 56 mutations seen red
(felhom.eu documentation/audits/build-release-4-2026-11-15/A/redproof-ctrl-*.txt).

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-15 14:09:47 +01:00
1 parent 591195fadd
commit f628cb5082
177 files changed
+3705 -164

No files matched your search

@@ -112,7 +112,17 @@
{{if .OffsiteRestoreRows}}
<div class="app-row-list">
{{range .OffsiteRestoreRows}}
{{template "app_list_row" dict "Slug" .Slug "Name" .DisplayName}}
{{template "app_list_row" dict "Slug" .Slug "Name" .DisplayName}}{{if .EndDate}}
<span class="form-hint" style="margin-right:.5rem" data-offsite-end="marked">{{.EndDate}}</span>
<form method="POST" action="/backup/offsite-end/keep" style="display:inline">{{$.CSRFField}}
<input type="hidden" name="app" value="{{.App}}">
<button type="submit" class="btn btn-xs btn-outline">{{T "offsite_end.keep_button"}}</button>
</form>{{else if .EndOffered}}
<span class="form-hint" style="margin-right:.5rem" data-offsite-end="kept">{{T "offsite_end.kept_before"}}</span>
<form method="POST" action="/backup/offsite-end/start" style="display:inline">{{$.CSRFField}}
<input type="hidden" name="app" value="{{.App}}">
<button type="submit" class="btn btn-xs btn-danger-outline">{{T "offsite_end.start_button"}}</button>
</form>{{end}}
{{if .Restorable}}
<!-- R-253: this row used to promise that the restore would reinstall the app first.
It cannot: reconstitution writes to the app's OWN data path (GetStackHDDPath),
@@ -143,7 +153,8 @@
</div>
{{else if eq .OffsiteStoreState "known"}}
<p class="form-hint">{{T "backups_restore.a_tavoli_tarolo_ures_nincs"}}</p>
{{end}}
{{end}}{{range .OffsiteEndsDone}}
<p class="form-hint" data-offsite-end="done">{{.App}}: {{.Line}}</p>{{end}}
<!-- R-7b: the shares source. Not an app row — it has no per-app toggle and no recovery unit —
so it is its own entry. The reserved `_shares` key never appears here; the label always
@@ -506,7 +506,10 @@
'<label class="modal-checkbox"><input type="checkbox" id="remove-backup-check"> {{T "layout.mentesi_adatok_torlese"}}</label>' +
'<div class="alert alert-info" style="margin-top:.5rem;font-size:.8rem">' +
'{{T "layout.az_ejszakai_restic_pillanatkepek_nem"}}' +
'</div></div>';
'</div>' +
(backupResp.data.offsite_end_date ? '<div class="alert alert-info" style="margin-top:.5rem;font-size:.8rem" data-offsite-end="dialog">' +
'{{T "offsite_end.dialog"}}'.replace('{date}', backupResp.data.offsite_end_date) + '</div>' : '') +
'</div>';
}
}
// R-800 / decision 67: the household's own folders stay on every remove — said, by name.