Thor contract: [gandalf] title tag, machine-key read API for Thor, pre-check Thor before host/cluster tickets, dedup_key #66
Open
opened 2026-11-25 19:34:28 -05:00 by jared
·
0 comments
No Branch/Tag Specified
main
pr-64-screenshots
pr-63-screenshots
kuma-token
modem-restart
modem-extras-screenshots
modem-extras
modem-login-screenshots
modem-login
pr-47-screenshots
polish
pr-46-screenshots
wan-health
pr-45-screenshots
attention-list
port-name-report
pr-44-screenshots
readme-power-polish
pr-42-screenshots
stale-outlet-watts
pr-41-screenshots
topology-polish
pr-40-screenshots
power-map
pr-39-screenshots
topology
pr-37-screenshots
stale-alerts
pr-36-screenshots
wan-incidents
pr-35-screenshots
unused-interfaces
pr-32-screenshots
loose-gear-on-top
tinker-create-action
revert-31
stale-interface-alerts
zimaboard-and-facing
pr-30-screenshots
pr-29-screenshots
pro-max-faceplates
rack-unlinked-port-clicks
pr-27-screenshots
rack-drawn-fronts
rack-panel-label
pr-25-screenshots
rack-rear-and-settings
pr-24-screenshots
racks-shelves-export
pr-23-screenshots
rack-view
pr-22-screenshots
inventory-and-faceplate-marks
pr-21-screenshots
events-history
ticket-recovery-and-context
pr-18-screenshots
deploy-2026.11.26-827
deploy-2026.11.25-818
deploy-2026.11.25-809
deploy-2026.11.25-800
deploy-2026.11.24-791
deploy-2026.11.24-782
deploy-2026.11.24-767
deploy-2026.11.20-757
deploy-2026.11.20-748
deploy-2026.11.19-733
deploy-2026.11.19-724
deploy-2026.11.18-715
deploy-2026.11.18-706
deploy-2026.11.18-697
deploy-2026.11.16-688
deploy-2026.11.15-678
deploy-2026.11.15-669
deploy-2026.11.15-660
deploy-2026.11.15-645
deploy-2026.11.15-636
deploy-2026.11.15-627
deploy-2026.11.15-618
deploy-2026.11.14-591
deploy-2026.11.14-582
deploy-2026.11.12-573
deploy-2026.11.11-564
deploy-2026.11.11-555
deploy-2026.11.11-552
deploy-2026.11.11-519
deploy-2026.11.11-501
deploy-2026.11.11-492
deploy-2026.11.11-483
deploy-2026.11.11-462
deploy-2026.11.11-453
deploy-2026.11.11-420
deploy-2026.11.11-411
deploy-2026.11.11-402
deploy-2026.11.11-393
deploy-2026.11.11-384
deploy-2026.11.11-375
deploy-2026.11.11-366
deploy-2026.11.10-357
deploy-2026.11.10-348
deploy-2026.11.10-333
deploy-2026.11.10-324
deploy-2026.11.07-314
deploy-2026.11.05-305
deploy-2026.11.05-296
deploy-2026.11.05-287
deploy-2026.10.03-273
deploy-2026.10.03-267
deploy-2026.09.05-260
deploy-2026.05.14-235
deploy-2026.05.14-232
deploy-2026.05.14-229
deploy-2026.05.13-226
deploy-2026.05.13-223
deploy-2026.05.13-220
deploy-2026.05.13-217
deploy-2026.05.13-214
deploy-2026.05.13-211
deploy-2026.05.13-208
deploy-2026.05.13-202
deploy-2026.05.12-199
deploy-2026.05.12-196
deploy-2026.05.12-193
deploy-2026.05.12-190
deploy-2026.05.11-187
deploy-2026.05.11-184
deploy-2026.05.11-181
deploy-2026.05.11-178
deploy-2026.05.11-175
deploy-2026.05.11-172
deploy-2026.05.11-169
deploy-2026.05.11-166
deploy-2026.05.11-163
deploy-2026.05.11-160
deploy-2026.05.11-132
deploy-2026.05.11-129
deploy-2026.05.11-126
deploy-2026.05.11-123
deploy-2026.05.11-120
deploy-2026.05.11-117
deploy-2026.05.11-114
deploy-2026.05.11-111
deploy-2026.05.11-108
deploy-2026.05.11-105
deploy-2026.05.11-102
deploy-2026.05.11-99
deploy-2026.05.11-96
deploy-2026.05.11-93
deploy-2026.05.11-90
deploy-2026.05.11-87
deploy-2026.05.11-84
deploy-2026.05.07-81
deploy-2026.05.07-78
deploy-2026.05.01-74
deploy-2026.05.01-71
deploy-2026.05.01-68
deploy-2026.05.01-65
deploy-2026.05.01-62
deploy-2026.05.01-59
deploy-2026.05.01-56
deploy-2026.04.30-53
deploy-2026.04.29-50
deploy-2026.04.26-46
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/gandalf#66
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Gandalf's side of the ticket contract decided in the thor#1 planning session (2026-11-25). Full plan on LotusGuild/thor#1. Tinker side: LotusGuild/tinker_tickets#123.
Contract in one paragraph
Each app tickets only its own evidence domain. The root cause owns the ticket, whichever app found it; symptoms become "Also seen" comments. Thor is the only correlator. Thor owns corosync link loss, quorum loss, fencing and monitoring-source-down tickets unless Gandalf has an active network incident covering those hosts (switch down, UniFi firmware update, link-down on the host's port): then Gandalf's ticket owns it and Thor comments (gandalf#57's rule, mirrored). Nobody closes tickets automatically.
Changes
[source][auto][app][area] Summary [scope][environment][type].[monitor-01][auto][production][issue][network][single-node] Interface enp3s0 link-down[monitor-01][auto][gandalf][network] Interface enp3s0 link-down [single-node][production][issue]TicketHash.php: the tag and the reorder change no existing hash (first tag, env tags and the network heading slug are unaffected), so this can ship beforededup_key./api/status,/api/events,/api/attention/api/suppressions, including ended ones with start, end, who and scope. Thor decides from history: in the 2026-11-25 maintenance the only record that the window was planned was Gandalf's suppression (no Kuma window, no Grafana silence), and Cephpausehad already been cleared by the time Thor would have come back.cluster_hosts_stalledwarning (with the OOM host names) is the natural handoff to Thor; make sure it's in the API output.GET http://<thor>/api/incidents/covering?host=X(orscope=cluster,scope=source:prometheus). If covered, comment on Thor's ticket instead. If Thor is down or slow (short timeout), open the ticket as normal: fail open, never lose a ticket. The same answer says when a known condition covers it (e.g. compute-storage-02 reboots -> 693930698).scope=source:prometheus) before ticketing; if Thor is also unreachable, Gandalf opens it.dedup_keyonce tinker_tickets#123 ships, with Gandalf's own key scheme (e.g.host:<host>:iface_down:<iface>,device:<name>:offline,site:wan:down), and run the per-app backfill for open Gandalf tickets at the same time.recurrence_notedretry inTicketClient), so all three apps behave the same.Not in this issue
Test cases Thor's replays use (Gandalf's expected part)