mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #44] [CLOSED] fix(orchestrator): resume sandboxes after recoverable pause failures #136
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/44
Author: @morluto
Created: 7/28/2026
Status: ❌ Closed
Base:
main← Head:fix/pause-failure-recovery📝 Commits (10+)
447a4bbfix(orchestrator): recover running state after pause errors5b5556cfix(orchestrator): retain retryable pause cleanup ownership234895afix(orchestrator): serialize pause and delete recovery9a936b2fix(orchestrator): make lifecycle ownership cancellation-safe9a3bd8dfix(orchestrator): revalidate proxy routes during transitions3bb7754test(orchestrator): bound pause recovery synchronizatione5e7458fix(orchestrator): retain handles across cleanup state errors50737e2fix(orchestrator): validate proxy route generations9ea4ca0fix(orchestrator): preserve joined pause outcomese02408atest(orchestrator): isolate pause restore failure script📊 Changes
4 files changed (+2135 additions, -170 deletions)
View changed files
📝
src/orchestrator/proxy.rs(+61 -0)📝
src/orchestrator/service.rs(+585 -65)📝
src/orchestrator/tests.rs(+1487 -104)📝
src/sandbox/backend.rs(+2 -1)📄 Description
Problem
A recoverable backend pause failure can happen after Firecracker has already been paused. The orchestrator restored the sandbox handle, proxy route, and
Runningstate without first resuming the backend, so a frozen VM could be published as healthy.Changes
resume()before restoring the handle, route, andRunningstate after a recoverable pause failure.Validation
resume()was called 0 times instead of 1.pause_failure_rolls_back_to_running_and_preserves_handlepasses after the fix.pause_recovery_failure_stops_and_removes_sandboxverifies one stop call, metadata and route removal, and zero running resource metrics.cargo clippy -p agentenv --all-targets -- -D warningscargo fmt --all -- --checkCloses #41.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.