Repository navigation
fix(snapshot): report that restore --to is not available for a managed image - #10619
Conversation
…d image `snapshot restore --to <dst>` advertised cross-sandbox restore in `--help` and in the docs, but `rejectManagedSnapshotCloneUntilRebind` rejects the restore whenever the snapshot carries managed workload authority. The rejection named an internal "managed-profile clone rebind" mechanism, so the failure read as a configuration problem on the user's side. Name the unavailable capability instead. The flag description, the error message, and both documentation pages now state that `--to` is not available for a snapshot of a sandbox that uses a NemoClaw-managed image, and that NemoClaw stops before it changes the destination. This does not implement cross-sandbox restore. `src/lib/onboard/lifecycle-contracts.md` records that no user-visible clone support is advertised, and epic NVIDIA#7744 tracks user-visible activation. Refs NVIDIA#10462 Signed-off-by: Vishnu Rajeev <19866703+VishnuR23@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (9)
Included review availability: Your plan provides up to 12 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughCross-sandbox snapshot restores from NemoClaw-managed-image sandboxes now reject ChangesSnapshot restore behavior
Priority: ⬇️ Low — Defer this change because it only clarifies unavailable cross-sandbox snapshot restores and updates related documentation, messages, and tests without changing restore behavior. Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Cross-sandbox restores of snapshots using NemoClaw-managed images now clearly report that the operation is unavailable before changing the destination. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 7 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
✨ Thanks for the fix. This aligns the CLI help, error message, and documentation with the intended managed-image snapshot restore behavior. Related open issues: |
Resolve current documentation and live E2E conflicts. Preserve the contributor commit and its DCO sign-off. Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
PR Review Advisor finished for commit |
rsliter
left a comment
There was a problem hiding this comment.
Maintainer review: the change is scoped to the documented snapshot restore contract, preserves attribution, and has clean automated review and local validation evidence.
The cross-sandbox restore paragraph said the path is available for Docker- and VM-driver sandboxes. That reads as a grant for every sandbox on those drivers, including one that uses a NemoClaw-managed image, whose snapshot `restore --to` NemoClaw refuses. The note above the same section already states that limit, so the two statements disagreed for a stopped Docker-driver source built from a managed image. Name the managed-image limit in the sentence that grants the path, so the paragraph agrees with the note and with what the command does. Refs NVIDIA#10619 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VAoaWK8T98zLhCzNUk6RZF Signed-off-by: Vishnu Rajeev <19866703+VishnuR23@users.noreply.github.com>
Outcome
snapshot restore --to <dst>advertised cross-sandbox restore for every snapshot, thenrejected snapshots from NemoClaw-managed images with an internal clone-rebind error.
The CLI help, failure message, and owning documentation now state that
--tois notavailable for those snapshots. NemoClaw still rejects the operation before it creates,
deletes, or changes the destination.
Reason
The existing managed-workload authority guard intentionally keeps clone and rebind support
dormant. Implementing that support would add product scope. This PR instead fixes the
advertised contract and gives the user an actionable limitation without changing the
fail-closed behavior.
Related issues
Fixes #10462
Relates to #7744
Changes
--toflag description and managed-image restore error.user-visible unavailable condition.
This adds no mechanism or supported integration. The conflict resolution against current
mainalso updates the existing workload-source expectation helper and its test.Verification
npx vitest run --project cli src/lib/actions/sandbox/snapshot/managed-profile.test.ts src/lib/actions/sandbox/snapshot-managed-clone-handoff-dormancy.test.tsnpx vitest run --project e2e-support test/e2e/support/snapshot-commands-helpers.test.tsnpm run docsnpm run validate:pr323b1c301ccf8f72a5211dfc40a96bf0df4d4adf, including pre-commit,commit-message, pre-push, secret scanning, repository checks, and CLI TypeScript.
npm run review:localunusable and the second temporary OpenShell gateway refused connections. This was
classified as local review infrastructure, not a candidate failure.
snapshot-commandstarget pins the changed message and destination-absencebehavior. It was not run locally because it requires a live sandbox boundary.
Review notes
The original contributor commit and DCO sign-off are preserved. The current-main conflict
resolution is a signed merge commit, so the contributor branch was updated without a
force-push. Both commits are verified by GitHub.
Signed-off-by: Vishnu Rajeev 19866703+VishnuR23@users.noreply.github.com
Signed-off-by: Rebecca Sliter 571084+rsliter@users.noreply.github.com
Summary by CodeRabbit
Bug Fixes
--to <destination>are now clearly reported as unavailable for sandboxes using NemoClaw-managed images.Documentation
--to.