agentleFS
AWSKnown publisherawslabs/awsome-distributed-ai/architectures/sagemaker-hyperpod-slurm/tools/devops-agent/skills/hyperpod-devops-agent-solution/SKILL.md

hyperpod-devops-agent-solution

Skill484 starsChanged 3 months agoMIT-0View on GitHub

How this Agent Space monitors SageMaker HyperPod — the design and intent of the HyperPod x DevOps Agent solution (event-driven webhook bridge, Lambda-gated periodic audit, triage/RCA skills, email notifications). Read this to understand WHY a HyperPod investigation was created and what the monitoring pipeline does. For the concrete resource/topology map (ARNs, IDs, log groups), see the understanding-agent-space skill instead.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Implication for investigations: if you are investigating a "HyperPod periodic audit" task, the audit Lambda already detected a concrete …

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

HyperPod x DevOps Agent — how this solution monitors the cluster

This Agent Space is wired to monitor one or more SageMaker HyperPod clusters. This document explains the design and intent of that monitoring so investigations reason correctly and operators (via chat) can understand how their cluster is watched.

Scope: this is the how it works doc. For the concrete resource map (what exists, ARNs, instance IDs, log groups, VPC/subnet/SG IDs), use the understanding-agent-space skill.

Two independent detection paths

HyperPod problems reach DevOps Agent through two paths, by design:

  1. Event-driven webhook bridge (all HyperPod control-plane faults). A Lambda subscribes to aws.sagemaker HyperPod EventBridge events (Cluster State Change, Node Health, Cluster Event), drops routine Info-level noise, and HMAC-POSTs the rest to the DevOps Agent generic webhook — which creates an investigation. This is how node health faults, capacity errors, lifecycle-script failures, and cluster state changes are detected, on both EKS and Slurm (Slurm requires Continuous Provisioning for the correct event shape).
  2. Periodic-audit Lambda (Kubernetes state only). Some conditions are NOT in the HyperPod event stream — notably Kubernetes CrashLoopBackOff pods and NotReady nodes. A scheduled Lambda inspects those via the EKS API and only invokes an investigation when a real issue is present (thresholds are configurable). On a healthy cluster it posts nothing. On Slurm there is no Kubernetes to inspect, so this path does nothing except the heartbeat below.

Implication for investigations: if you are investigating a "HyperPod periodic audit" task, the audit Lambda already detected a concrete issue (or a control-plane fault arrived via the bridge). Treat the reported issue as real and confirm + explain it — don't assume it was a routine poll. The Lambda inlines what it found into the task description string (one - [tag] type on resource: detail line per issue) — the DevOps Agent platform preserves the top-level description verbatim but flattens nested payload sub-objects, so the description text, not a data.metadata.* field, is where the skill reads the findings.

Daily heartbeat (liveness)

Once per day the audit Lambda fires a heartbeat. Its purpose is pipeline liveness — letting operators confirm the solution itself is alive and reaching the console — not incident detection (the 15-minute audit and the event-driven bridge do that). Do not treat a heartbeat as an incident.

The heartbeat run still inspects cluster state:

  • Healthy cluster (the usual case): an "all clear, no open issues" heartbeat — a silent liveness signal, visible in the console but never emailed. Triage skips it (nothing to investigate); the skipped task is itself the liveness signal.
  • A real issue exists at heartbeat time: the Lambda builds an issues payload instead, which is triaged and root-caused like any detection and can email.

Triage → RCA → notification

  • Triage (hyperpod-incident-triage, INCIDENT_TRIAGE) decides LINK / SKIP / PROCEED. It keeps different fault types on the same instance group as separate investigations (the default correlator would merge them) and skips concurrent periodic audits.
  • RCA (hyperpod-incident-rca, INCIDENT_RCA) runs on PROCEED: reconstructs the timeline from list-cluster-events, cluster/node state, and HMA CloudWatch streams; classifies as Suppress / Monitor / Escalate / Resolved; and writes a verdict with a plain-English Summary (what happened → likely cause → recommended action).
  • Email notifier sends one SES email per completed investigation (scoped to this Agent Space). It suppresses Suppress verdicts, no-finding investigations, and heartbeats, and leads the subject with the Summary's first sentence.

What this solution does NOT do

  • It does not poll for HyperPod control-plane faults — those are event-driven via the bridge. The audit only covers Kubernetes state.
  • The DevOps Agent runtime cannot open SSM sessions to nodes (a fixed permission guardrail), so on-node signals (dmesg Xid lines, DCGM counters, EFA fabric errors, slurmctld logs) are reached only indirectly via HMA CloudWatch streams / K8s labels / control-plane events — not by shelling into the node.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.