package claim import ( "testing" "gitea.dooplex.hu/admin/felhom-hub/internal/notify" ) // D68 (`09` §3 decision 287, 2026-11-10): the claim must not seed a type the dispatcher will never deliver — a saved // string that does nothing. And the two types the ruling names are pinned by name. // // RED-PROOF (observed 2026-11-10): put "host_disk_critical" back into defaultSeedEvents → fails naming it. func TestD68_SeedHoldsNoOperatorOnlyType(t *testing.T) { seeded := map[string]bool{} for _, et := range defaultSeedEvents { seeded[et] = true if notify.IsOperatorOnly(et) { t.Errorf("defaultSeedEvents holds %q, which is operator-only: the household would get a saved type that never mails", et) } } if seeded["host_disk_critical"] { t.Error("host_disk_critical must not be seeded: the host's system disk is the operator's (D68)") } if !seeded["storage_fill_critical"] { t.Error("storage_fill_critical must stay seeded: a household is told when a drive it can free is full (D68)") } if !seeded["disk_critical"] { t.Error("disk_critical must stay seeded: it is the household's own fill alarm") } }