hub 0.165.0 source: a household's mail list is never overwritten by a box default, a box reads it back (R-1199 reopened); host_swap_short only when swap is really short (R-1216, D28 = A); host-swap-rule gate with 4 decoys; 03/05/08 updated
gates / gates (push) Successful in 15m54s
gates / gates (push) Successful in 15m54s
This commit is contained in:
1 parent
a92837410a
commit
5ae5984cf9
18 files changed
+653
-24
No files matched your search
@@ -655,7 +655,7 @@ run as a **journaled reconcile job**; a mid-flight failure is compensating-rolle
|
||||
the just-restored guest — allowed unsigned per §4, same-transaction provenance). They diverge in
|
||||
the *archive* and the *back half*, **and in identity policy** (below).
|
||||
|
||||
**Guest swap = guest RAM, and the host's swap behind it (R-1192; agent `main`, unreleased — the release is D26).**
|
||||
**Guest swap = guest RAM, and the host's swap behind it (R-1192; agent 0.162.0, released and vouched 2026-10-22).**
|
||||
`[FACT]` 2026-10-21 (`audits/fixes-2026-10-21/P4-freeze/`): Proxmox gives an LXC a 512 MB swap cap when nothing sets
|
||||
`swap`, and the agent never set it; on the 8 GB minimum machine (guest 4096 MB) the household's first uploads filled the
|
||||
guest with its swap full, the kernel could evict only program code, and the box froze (memory „full" pressure 96 %, load
|
||||
@@ -664,9 +664,14 @@ resize (`POST /guest/memory`), and once a minute after agent start for every poo
|
||||
no restart, never lowers). Proven on a fresh box the night of 2026-10-21 (`audits/night-2026-10-21/P1-soak/`: 512 →
|
||||
4096 one minute after the fixture agent started; the 2-hour household load then answered every 10-second probe). **The
|
||||
host must have swap behind it:** our installer gives an 8 GB / 256 GB machine 7.75 GB (measured the same night); a BYO
|
||||
host may have none. The agent reports `host.host_swap_mb` and `host.guest_swap_mb` on every host report, logs one WARN
|
||||
when the first is below the second, and the hub mails the operator once (`host_swap_short`, operator-only); the
|
||||
controller's install page adds „A gépen nincs elég cserehely (swap)…" when memory is tight and the agent says so. The
|
||||
host may have none. The agent reports `host.host_swap_mb` and `host.guest_swap_mb` on every host report and logs one WARN
|
||||
when the first is below the second (its own, strict line — a log, nothing more). **The judgement is the hub's and the
|
||||
box's, by one rule (R-1216, D28 = A, operator 2026-10-22):** short = no host swap, or less than 90 % of min(the guests'
|
||||
swap allowance, 8192 MB) — 8192 MB being the most Proxmox's installer gives any machine (`Install.pm compute_swapsize`:
|
||||
the RAM, at least 4096 MB on a disk ≥ 64 GB, at most 8192 MB). The hub mails the operator once (`host_swap_short`,
|
||||
operator-only); the controller's install page adds „A gépen nincs elég cserehely (swap)…" when memory is tight and the
|
||||
rule says short. One case table in both repos, byte-identical (`scripts/host_swap_rule_gate.py`). The first rule (host
|
||||
swap < the guests' whole allowance) flagged every machine with a guest above 8 GB; the 8 GB soak used 2.7 GB. The
|
||||
agent never creates or enlarges host swap — changing a host its owner set up is a decision (register).
|
||||
|
||||
**Identity reset is scenario-specific — this is a correctness boundary, not a detail.** "Reset
|
||||
|
||||
@@ -331,7 +331,9 @@ customer instead of a single controller.
|
||||
- **DROP both** `infra_backup_versions` (current/live) **and** `infra_backups` (legacy mirror) — the DR
|
||||
recipe, tenantsync and the escrow blob replace them (R-105).
|
||||
- **KEEP** `customer_configs`, `events`, `customer_notifications`, `notification_log`,
|
||||
`app_telemetry`, `app_log_issues`.
|
||||
`app_telemetry`, `app_log_issues`. `customer_notifications.household_saved` (hub 0.165.0, R-1199 reopened) marks a
|
||||
list the household chose on a box; a box's default never overwrites it, and a box reads it back with `GET
|
||||
/api/v1/preferences` (customer-scoped like the save). The rule is in `08` (the 2026-10-22 `[DESIGN]` paragraph).
|
||||
- **Authz cleanup the cutover enables:** several endpoints today use global-or-any-customer-key auth
|
||||
rather than customer-scoped (the infra-backup GETs, `/notify`). Most retire with the infra-backup
|
||||
push; any that carry over should scope to the resolved host/guest → customer under §2.
|
||||
|
||||
@@ -504,7 +504,17 @@ may reverse).** Measured: a fresh box shows its default list ticked, but pushed
|
||||
page, so the hub kept mailing by an older stored list (Tester4: saved 2026-10-18, without disk warning, drive
|
||||
disconnected and second-drive failure — 1 household alarm of 9 on the rehearsal day). Now a box whose household never
|
||||
saved a choice pushes the default list at start (no address — the hub keeps the stored one); a saved choice is pushed
|
||||
only as before (R-922). Controller `ba22f9b`, unreleased.
|
||||
only as before (R-922). Controller `ba22f9b`, shipped in 0.338.0.
|
||||
|
||||
**`[DESIGN]` 2026-10-22 — a household's saved list is never overwritten (R-1199 reopened; the day brief).** `[FACT]`
|
||||
0.338.0's push overwrote demo-felhom's own saved list (13 events, written by an earlier box) with the 17 defaults at
|
||||
its first start, and repeated at every start. So the hub now records WHO chose a list (`customer_notifications.
|
||||
household_saved`, set only by a push the box declares `source: household` — the settings page, or the re-push of a
|
||||
list saved on the box — and never cleared) and refuses any other push over a household's list (`{"status":"kept"}`;
|
||||
an older controller's push with neither address nor clear counts as not the household's). A box with no list of its
|
||||
own READS the hub's first (`GET /api/v1/preferences`, self-scoped): a household's list is adopted and shown, nothing
|
||||
pushed; only when no household ever saved one does the box push its default, once, and save it. Hub 0.165.0,
|
||||
controller 0.339.0. Existing rows were marked once: written after creation = a box wrote it (`household_prefs.go`).
|
||||
|
||||
**What the operator still gets:** everything, unchanged — the operator channel never reads the household's switches
|
||||
(`processOperator` is independent of `enabled_events`).
|
||||
|
||||
Reference in new issue
Block a user