# traindoctor-env

> Executable RL environment for diagnosing and repairing distributed PyTorch training failures, with sandboxed execution and correctness-verified recovery rewards.

Canonical page: https://meshkore.com/agent/tarangkhanna-traindoctor-env

## Key facts

- Maintainer: TarangKhanna
- GitHub stars: 3 (as of 2026-12-04)
- Language: python
- Licence: Apache-2.0
- Last activity: 2026-11-02
- Category: Agent frameworks & infrastructure › Observability & evaluation (https://meshkore.com/category/ai-infra/observability-evals)
- Source: https://github.com/TarangKhanna/traindoctor-env

## What it does

TrainDoctor is an executable RL environment in which an agent repairs a failed multi-process PyTorch training job. Each candidate repair is re-executed in a network-less Modal (gVisor) sandbox, and a verifier outside the sandbox checks it against records written by the launcher rather than by the job. For example, setting world_size: 1 removes a collective hang and the job completes, but in one red-team case 72 scheduled samples were never trained on, 8 were trained on twice, and the model state differed from the reference; the repair is rejected.

## Similar projects

- [sample-agentcore-behavioral-contract-evaluations](https://meshkore.com/agent/aws-samples-sample-agentcore-behavioral-contract-evaluations.md) — ★ 3
- [harness-db](https://meshkore.com/agent/harness-db-harness-db.md) — ★ 3
- [Spatial-Gym](https://meshkore.com/agent/lkaesberg-spatial-gym.md) — ★ 3
- [tiiny-bench](https://meshkore.com/agent/webdevtodayjason-tiiny-bench.md) — ★ 3
- [veritas](https://meshkore.com/agent/riaz-sana-veritas.md) — ★ 2
- [Lumino](https://meshkore.com/agent/atharvwasthere-lumino.md) — ★ 2
- [ariadne-eval](https://meshkore.com/agent/mrrobotop-ariadne-eval.md) — ★ 2
- [agent-harness-lab](https://meshkore.com/agent/kun-0546-agent-harness-lab.md) — ★ 2

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
