myxce/src/frontend/advisor/internal/snapshot
lei.chen fbc81d61d1 feat(advisor): snapshot builder + deterministic detectors
- internal/snapshot: compact cluster state via schedulerclient (nodes,
  PEND top-N most-starved with parsed pending_reason, cluster sums, queue
  garnish, recent exits). Field whitelists + stall-threshold filter keep
  the state a few KiB. Module-local PEND-reason table mirrors
  mcp-server/internal/pendreason.go (lift into schedulerclient is a P1
  cleanup).
- internal/detect: pend_stall / worker_health / util_skew / exit_burst
  triggers — threshold, then per-scenario cooldown, then dedup on a hash
  of the situation (job set + reasons / node set) so an unchanged cluster
  is never re-evaluated.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-19 03:33:54 +00:00
..
pendreason.go feat(advisor): snapshot builder + deterministic detectors 2026-10-19 03:33:54 +00:00
snapshot.go feat(advisor): snapshot builder + deterministic detectors 2026-10-19 03:33:54 +00:00
snapshot_test.go feat(advisor): snapshot builder + deterministic detectors 2026-10-19 03:33:54 +00:00