Restarted multinode jobs pick the latest checkpoint whose rank count
matches the new world size, then enumerate per-rank shard paths.
resume.py is the reference.
Task
run_case(case) returns {"resume", "step", "shards", "n_shards"} (or
{"resume": False, "step": -1, "shards": []} when no viable entry
exists) matching the reference. Persist a tiny resume summary to the
shared mount so a subsequent call can confirm the plan.
Required output
Write /app/solution/modal_app.py with module-level app and run_case.
Capability contract
Expose the workflow as a single Modal remote function: define run_case as an @app.function so the harness can invoke it with run_case.remote(case).