# OpsAegis

- **Event:** [Meta Global AI Developer Hackathon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon)
- **When:** Oct 26, 12:00 PM – Nov 4, 9:00 PM (EST)
- **Where:** Online
- **Team:** [Muchamat Riyan Khamdani](https://cerebralvalley.ai/u/riyankhamdani)
- **GitHub:** https://github.com/riyankhamdani/ops-aegis
- **Demo video:** https://youtu.be/b8Uj0Lq4VoE
- **Gallery:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/16

### Inspiration
In distributed production architectures, low-level infrastructure failures—such as cgroup Out-Of-Memory (OOM) kills, hidden memory leaks, and cascading process crash loops—frequently cause expensive operational downtime. Human Site Reliability Engineering (SRE) triage takes an average of 15 to 45 minutes per incident. OpsAegis was designed to compress this entire incident lifecycle into an autonomous, sub-10-second remediation loop without human intervention.

### What It Does
OpsAegis operates on an autonomous closed loop:
1. Sense: Ingests unstructured Linux kernel telemetry (dmesg traces, oom-killer invocations, cgroup limits).
2. Reason: Employs Meta Muse Spark Open to isolate offending rogue processes, conduct causal analysis, and synthesize container-safe remediation scripts adhering to unprivileged environments.
3. Act: Executes targeted remediations inside ephemeral, isolated serverless cloud containers using Modal Sandboxes.
4. Verify & Self-Heal: Validates system stability through exit code verification (Exit Code 0). If runtime constraints fail, stderr is routed back into Muse Spark Open to autonomously recalibrate commands until verified clean.

### How We Built It
- Cognitive Reasoning Engine: Meta Muse Spark Open deployed via Baseten Model APIs.
- Execution Environment: Modal Serverless Cloud Sandboxes running isolated Debian environments with live failure injection.
- Telemetry & UI: Streamlit real-time interactive dashboard paired with Rich CLI telemetry.
- Orchestration: Python 3.12, OpenAI SDK client, and Pydantic schema validation.

## More from Meta Global AI Developer Hackathon

- [Tesseract](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/13)
- [HDC](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/14)
- [Lilith01](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/15)
- [Afsar Masoom](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/17)
- [Deal Interrogator](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/18)
- [AiAutonomous Batik Factory](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/19)

---

Markdown version of https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/16. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
