Files
jaredandClaude Opus 5.5 31207f9533 Thor contract, part 2: ask Thor before host tickets, and send dedup keys
gandalf#66 items 3, 4 and 5.

- thor.py: ThorClient.covering() calls Thor's /api/incidents/covering with
  a 4 s timeout. No config, any error, a timeout or a shadow-only answer
  all mean "not covered" (fail open).
- No metrics from host, planned reboot didn't come back and ping host
  unreachable ask Thor by host, only when every switch port of the host
  is up. A port down is Gandalf's network evidence, so it keeps the ticket.
- No Prometheus data asks with scope=source:prometheus.
- Interface and cluster network tickets never ask: they are network
  evidence, so they are Gandalf's under the contract.
- When Thor names a ticket, Gandalf posts its report there as an
  "Also seen by Gandalf" comment and tracks that ticket for the alert.
- Every ticket sends a dedup_key (ticket_text.dedup_key, scheme in the
  README). scripts/dedup_key_map.py prints the keys for Gandalf's open
  tickets, for Tinker's backfill_dedup_keys.php.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-28 17:45:55 -05:00
..