feat(ams): page PagerDuty on miner kill-switch trips - #7701
Conversation
On ledger trip, fire Events API v2 using the same LOOPOVER_ENABLE_PAGERDUTY / PAGERDUTY_ROUTING_KEY contract as notify-pagerduty. Resumes stay silent; paging is fire-and-forget. Pure alert builder lives at the miner IO seam so engine rebuilds do not trip MCP emit drift. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-21 09:57:03 UTC
Review summary Nits — 5 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-tests (3))). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |


Summary
recordMinerKillSwitchTransitionfires PagerDuty Events API v2 (sameLOOPOVER_ENABLE_PAGERDUTY/PAGERDUTY_ROUTING_KEY/ enqueue /dedup_keycontract as ORBnotify-pagerduty). Resumes stay silent; paging is fire-and-forget so it cannot block the ledger write.buildMinerKillSwitchPagerDutyAlert) lives at the miner IO seam (not a hosted dead export). Runbook Detection documents the automated page.Closes #7666
Scope
type(scope): short summaryConventional Commit format.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #7666).Validation
git diff --checkIf any required check was skipped, explain why:
miner-governor-kill-switch+kill-switch-incident-runbook(25 tests green). Fulltest:cileft to CI.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — docs runbook text + miner alerting only; no visible UI chrome.
Notes
src/services/notify-pagerduty.tsEvents API v2 contract.notifyMinerKillSwitchPagerDutywrapper: AMS trips only run in the miner process.