How hao-ai-lab/rsipod works
RSIPod is a live hot-reload sandbox and multi-agent GPU pool for production ML engines. The main workflow is an agent request through the control plane, dispatch to a warm engine, staged and coordinated code changes, live execution checks, and commit or rollback; recovery can restore warm state after process failures. Engine-specific adapters extend the shared lab and kernel across serving, training, and RL frameworks. The README documents pool scheduling, isolation, launch environments, and formal/conformance validation. Unsampled subsystems are included where documented, but their internal call paths are not inferred.
Main entry points: coordinator.py Atomic transaction coordinator · lab.py Engine-agnostic lab · engine.py vLLM engine services · server.py CLI and HTTP API
Components 22
Sandbox control plane
- CLI and HTTP API
core/livelab/rsipod/server.py - GPU sandbox pool
core/livelab/rsipod/pool.py - Pool autoscaler
core/livelab/rsipod/autoscaler.py - Sandbox launch
core/livelab/rsipod/launch.py - Process and container isolation
core/livelab/rsipod/gvisor.py
Live update kernel
- Engine-agnostic lab
core/livelab/rsipod/lab.py - Worker IPC
core/livelab/rsipod/ipc.py - Atomic transaction coordinator
core/livelab/kernel/coordinator.py - Code and kernel swap
core/livelab/kernel/swap.py - Checks and findings
core/livelab/kernel/findings.py - Rollback journal
core/livelab/kernel/journal.py - Execution witness
core/livelab/kernel/witness.py
Warm state and recovery
- Warm fork service
core/livelab/rsipod/services/zygote.py - Warm weight store
core/livelab/rsipod/warm/weight_store.py - Dynamo GMS snapshot
core/livelab/rsipod/warm/dynamo_gms.py - Crash recovery
core/livelab/rsipod/services/recovery_service.py
Engine integrations
- vLLM engine services
repos/vllm/livelab/services/engine.py - Live engine reconfiguration
repos/vllm/livelab/services/live_reconfig.py - Framework adapters
repos
Verification
- Sandbox conformance suite
core/livelab/conformance/lab.py - Protocol specifications and gates
core/livelab/formal/run_formal.py
Other components
- Coding agent
Connections 20
- Coding agent → CLI and HTTP API: sends edit requests
README.md - CLI and HTTP API → GPU sandbox pool: uses shared pool
README.md - CLI and HTTP API → Engine-agnostic lab: dispatches lab verbs
README.md - GPU sandbox pool → Pool autoscaler: scales capacity
README.md - Sandbox launch → Process and container isolation: runs sandbox in
README.md - Engine-agnostic lab → Atomic transaction coordinator: coordinates updates
core/livelab/rsipod/lab.py - Engine-agnostic lab → Worker IPC: communicates with workers
- Atomic transaction coordinator → Code and kernel swap: applies staged edits
core/livelab/kernel/coordinator.py - Atomic transaction coordinator → Checks and findings: evaluates checks
core/livelab/kernel/coordinator.py - Atomic transaction coordinator → Rollback journal: undoes failed commits
core/livelab/kernel/coordinator.py - Atomic transaction coordinator → Execution witness: collects execution proof
core/livelab/kernel/coordinator.py - vLLM engine services → Live engine reconfiguration: invokes reconfiguration
repos/vllm/livelab/services/engine.py - vLLM engine services → Dynamo GMS snapshot: probes warm backend
repos/vllm/livelab/services/engine.py - vLLM engine services → Warm weight store: probes cached weights
repos/vllm/livelab/services/engine.py - Warm fork service → vLLM engine services: forks warm server
repos/vllm/livelab/services/engine.py - Crash recovery → Warm weight store: checks warm state
core/livelab/rsipod/services/recovery_service.py - Crash recovery → Dynamo GMS snapshot: uses snapshot recovery
core/livelab/rsipod/services/recovery_service.py - Framework adapters → Engine-agnostic lab: integrate shared lab
README.md - Sandbox conformance suite → Engine-agnostic lab: validates sandbox behavior
README.md - Protocol specifications and gates → Atomic transaction coordinator: specifies protocol
README.md