hub (unreleased): the end dates of the hub's own public names are read once a day; 14 days before, the operator is told (D85, R-1379)

The names are the setting HUB_OWN_NAMES; with no setting the hub makes no call. The setting is NOT in the manifest yet.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-15 15:22:49 +01:00
1 parent c616727d84
commit c72ecf52b4
8 files changed
+616 -5

No files matched your search

+12 -3
View File
@@ -644,6 +644,8 @@ var perSubjectCooldownEvents = map[string]bool{
"proxmox_trust_problem": true,
// D72/D84: one refusal per app (details `subject` = the app) — two apps refused in one window are two mails.
"offsite_ended_app_refused": true,
// R-1379 (D85): one line per NAME of the hub's own (details `subject`) — two names that end the same week are two mails.
"hub_name_cert_ends_soon": true, "hub_name_unreachable": true, "hub_name_reachable": true,
// one never-seen app is one mail (subject = the app); one window's large request is one mail (subject = the window)
"offsite_end_claim_unseen": true,
"offsite_ended_large_agreement": true,
@@ -1073,9 +1075,13 @@ var operatorOnlyEvents = map[string]bool{
// 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-1379 (D85): the hub's own public names — never a household's matter.
"hub_name_cert_ends_soon": true,
"hub_name_unreachable": true,
"hub_name_reachable": 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,
@@ -1208,6 +1214,9 @@ var operatorOnlyEvents = map[string]bool{
// Read-only: the register itself stays unexported so nothing can widen it at runtime.
func IsOperatorOnly(eventType string) bool { return operatorOnlyEvents[eventType] }
// HasPerSubjectCooldown reports whether an event type's operator cooldown is keyed per thing (details `subject`).
func HasPerSubjectCooldown(eventType string) bool { return perSubjectCooldownEvents[eventType] }
// householdFreeableStorage is the storage KINDS (the agent's reported vocabulary, `storage_type` in the event's
// details) on which a household can free space by itself: a drive it plugged in or was given (`usb`, `local-dir`) and
// its own network storage (`nfs`, `cifs`). D68 (`09` §3 decision 287, 2026-11-10).