hub (unreleased): the operator is told when a box's clock is more than one minute from the hub's (R-1384, D79)
gates / gates (push) Successful in 2m11s
gates / gates (push) Successful in 2m11s
The host report's new sent_at (the box clock at the moment of sending) is compared with the hub's clock at arrival. Both directions; told once; clears within 30 s. A report that waited on the box raises nothing (reported_at is not read). A second box off in the same direction points at the hub's own clock. Operator-only. Not deployed. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
26f4f7660c
commit
88e636445a
9 files changed
+318
-2
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package notify
|
||||
|
||||
import "testing"
|
||||
|
||||
// R-1384 (D79): a box's clock against the hub's is the operator's to read; the household is never mailed about it.
|
||||
func TestBoxClockEventsAreOperatorOnly(t *testing.T) {
|
||||
for _, e := range []string{"box_clock_wrong", "box_clock_ok"} {
|
||||
if !operatorOnlyEvents[e] {
|
||||
t.Errorf("%s must be operator-only", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -844,6 +844,8 @@ var operatorOnlyEvents = map[string]bool{
|
||||
// R-1396 / R-1380 (hub v0.182.0): why a box's agent does not trust Proxmox's certificate, and its recovery — a box
|
||||
// fact only the operator can act on. Hub-origin only (minted from the host report's `proxmox_trust` stanza).
|
||||
"proxmox_trust_problem": 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.
|
||||
|
||||
Reference in new issue
Block a user