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

+40
View File
@@ -1,3 +1,43 @@
## Unreleased (2026-11-15) — the off-site copies of a removed app end 30 days after „delete backup data” (felhom.eu R-1374 part 1; D72, D84)
**MinAgent: 0.158.1** (unchanged — nothing here asks the agent for anything)
- **The off-site copies of a removed app end 30 days after „delete backup data” — the box's half (R-1374 part 1; D72
and D84, `09` §3 decisions 292 and 309; felhom.eu `07-backup-architecture.md` §8.2f). Built, NOT released; no box
has run it. It does nothing without a hub that knows it (felhom.eu `hub/CHANGELOG.md`, Unreleased): an older hub
agrees to no id, and then nothing of a removed app is deleted.**
(1) **The record.** `settings.OffsiteEnd` (`settings.json` → `offsite_ends`): `{app, removed_at, ends_at}`. One
writer, `backup.StartOffsiteEnd`, called by the removal ONLY when „delete backup data” was pressed
(`api.removeStack`) and by „Törlés 30 nap múlva” on the restore page. A second press changes nothing. **No record,
no deletion.** Only on a box with the hub-provisioned (pinned) off-site tier; the household's own NAS target is
unchanged.
(2) **The date before the press, and the way back.** `GET /api/stacks/{name}/backup-data` carries
`offsite_end_date`; the remove dialog shows the sentence with it. The restore page's off-site list shows a marked
app with „Mégis megtartom” (`POST /backup/offsite-end/keep`), a removed app with kept copies with „Törlés 30 nap
múlva” (`POST /backup/offsite-end/start`), and one history line per carried-out end. An install of the same app
deletes the record (`stacks.DeployStack`, at its first write).
(3) **The window.** `backup/offbox_ended.go`: after the fake-snapshot guard has passed the policy's own plan under
the cap exactly as before, the window adds the ids of snapshots whose app tags are ALL due records, that the hub
sent back (`OffsiteWindow.EndedAllowed`) and that the box named in the same request. `_shares`, the box's own
stacks and an installed app are never due (`SetOffsiteEndLiving`, wired in `main.go`; not wired → nothing is due).
The result names them apart (`removed_for_ended_apps`). `OffsiteWindowClient.Open` takes the claims; the request's
`ended` key is absent when there is none.
(4) **The hub report** carries the pending records (`offsite.ended_apps`) so the hub can start its own clock.
(5) **The mail (D84).** `Notifier.NotifyOffsiteEndScheduled` → `offsite_end_scheduled` (info), once per record
written, in both languages with each language's date form; details `subject` = app + the record's time.
**Household-facing texts, new, Hungarian and English — the operator reads them before the release:**
`offsite_end.dialog`, `offsite_end.marked`, `offsite_end.keep_button`, `offsite_end.kept_before`,
`offsite_end.start_button`, `offsite_end.done`, `flash.offsite_end.kept`, `flash.offsite_end.nothing_to_keep`,
`flash.offsite_end.not_possible`, `flash.offsite_end.failed`, `event.offsite_end_scheduled` (the full list with both
languages is in `07` §8.2f).
143 parity fixtures gained the dialog's one new script line (patched, not regenerated); one new parity case
(`backups_restore_offsite_end`).
Tests `TestD72_*`, `TestD84_*` (settings, backup, stacks, notify, api, web, offsiteapply); 56 mutations seen red,
none redone (felhom.eu `documentation/audits/build-release-4-2026-11-15/A/redproof-ctrl-{record,window,press,page}.txt`).
**A seam, named:** `api.removeStack`'s success path needs Docker, so its hook is pinned by reading the handler's
source (`TestD72_RemovalWritesTheEndRecordOnlyWithDeleteBackupData`); what the hook then does runs on the real code.
restic is the package's fake runner, as in the window's other tests — no real repository.
## v0.353.0 (2026-11-15) — a clock step is not a new boot (felhom.eu R-1395); HSTS one year (R-1050, decision 249); the web certificate's end date in the report (R-1379) — RELEASED (image `sha256:61cf2a8b…`, from `ae07ed4`, CI run id 2681; rc.1 on scratch guest 9202); per-box floors 10:08 UTC, global floor 2026-11-15 10:26:53 UTC (MinAgent 0.158.1)
**MinAgent: 0.158.1** (unchanged — the agent's boot key is optional: with an agent before 0.175.0 the controller behaves as before, so a clock step still recreates the drive-backed apps once on such a box; the fix needs agent 0.175.0 or newer on the same box. rc.1 on scratch guest 9202, 2026-11-15.)