Putting Resilient, Self-Recovering Agents in Production
summary
Builds an ML research agent on Union/flight (pure Python) that runs tiny GPT‑style experiments, measures bits‑per‑byte validation, and automatically recovers from infrastructure failures by detecting out‑of‑memory errors at the task level, invoking a call‑handler loop that LLM‑mediates a JSON resource right‑sizing spec and reprovisions compute, then reruns only failed steps. Uses a sandboxed code‑editing workflow, reusable containers and fast image streaming, and demonstrates a batched run with 47 runs on a leaderboard that recovers and continues.
AI-written summary · about
chapters (11)
- 0:00Introduction to self-healing agents
- 3:00Infrastructure vs semantic failures
- 7:23Agent harness architecture overview
- 12:10Flight agent and task environment
- 15:25Hyperparameter optimization agent
- 17:11Code editing agent with sandbox
- 18:58Scaling with batched experiments
- 22:29Live demo of out-of-memory recovery
- 24:39Scaled-out research agent example
- 26:46Key takeaways and platform design
- 28:36Q&A on hallucinations and technical debt
