NVIDIA-NeMo / NVIDIA-NeMo/Gym

[checkpoint] Restore litmus_agent code sandboxes

Open
#3,281 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:sandbox feature
Dominant language
Python
Stars
1.2k
Forks
349
Avg merge
1d 21h
Merged PRs (30d)
318

Description

Parent

Child of #3222 and #3024. Depends on #3275.

Runtime state

resources_servers/litmus_agent/app.py owns a live sandbox, successful code-cell history, per-session lock, and verifier-visible filesystem.

Adapter requirements

Persist the logical execution-to-runtime mapping, provider/version and physical generation, sandbox snapshot/reference, image/spec and mount fingerprints, agent or verifier cursor, and result-manifest identity. Rebind a replacement runtime atomically and fence the old handle. Never claim that a filesystem-only copy restores unsupported live process state.

Acceptance criteria

  • Provider snapshot is preferred; replay fallback rejects non-replay-safe filesystem, subprocess, environment, network, or nondeterministic effects.
  • Mutate runtime state, commit, replace both application and runtime process where supported, restore, and compare the next operation/result.
  • Stale handles and delayed old-runtime results are rejected.
  • Partial restore activates no execution mapping.
  • Duplicate retirement and failed-provider cleanup release the restored runtime exactly once.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading resources_servers/litmus_agent/app.py to understand the live sandbox, session lock, code-cell history, and verifier-visible filesystem. Trace the existing runtime lifecycle before designing restoration. Done means supported snapshots restore atomically, replay rejects unsafe effects, stale or delayed results are fenced, partial restores activate nothing, and cleanup releases the runtime exactly once.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.