hub (unreleased): two end dates warn the operator 14 days before — an operator token and a box's web certificate (R-1379, D77); the other sixteen as a design table

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-14 18:14:23 +01:00
1 parent 68292e40f6
commit 86bb912a4b
11 files changed
+527 -5

No files matched your search

@@ -10,3 +10,12 @@ func TestBoxClockEventsAreOperatorOnly(t *testing.T) {
}
}
}
// R-1379 (D77): the two end-date warnings are the operator's.
func TestEndDateEventsAreOperatorOnly(t *testing.T) {
for _, e := range []string{"operator_token_ends_soon", "web_cert_ends_soon"} {
if !operatorOnlyEvents[e] {
t.Errorf("%s must be operator-only", e)
}
}
}
+6 -3
View File
@@ -860,9 +860,12 @@ var operatorOnlyEvents = map[string]bool{
"operator_mail_lost": true,
"guest_power_gave_up": true,
"guest_power_ok": true,
"box_clock_wrong": true, // R-1384: a box's clock against the hub's — the operator's to read
"box_clock_ok": true,
"proxmox_trust_ok": true,
// R-1379 (D77): an end date 14 days away — the operator's to act on.
"operator_token_ends_soon": true,
"web_cert_ends_soon": true,
"box_clock_wrong": true, // R-1384: a box's clock against the hub's — the operator's to read
"box_clock_ok": true,
"proxmox_trust_ok": true,
// R-836 (hub v0.143.0): the kernel lane's step results and the day-before notice's own record — operator facts. The
// household's word is the day-before mail itself (SendKernelNotice), never these events.
"os_kernel_step": true,