Skip to content

fix(runtime): MicroVM session execute keyed replay after stream loss - #321

Merged
ZhiXiao-Lin merged 3 commits into
mainfrom
feat/microvm-session-exec-replay
Sep 12, 2026
Merged

ZhiXiao-Lin merged 3 commits into
mainfrom
feat/microvm-session-exec-replay

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Managed MicroVM ExecutionSessionManager::execute mints managed-exec-* when request_id is omitted (parity with OCI).
  • On ambiguous guest transport loss, rebind the exec stream and retry once with the same request_id (guest replay cache).
  • Reuses should_retry_keyed_guest_exec; streaming start_process stays unkeyed.
  • Does not flip B2 harness close, fixture continuity, or hosted-KVM claims.

Test plan

  • cargo test -p a3s-box-runtime --lib microvm_exec_request_id_tests
  • cargo test -p a3s-box-runtime --lib keyed_exec_tests
  • Hosted CI green on Linux (session path is cfg(unix))
  • Confirm CHANGELOG does not claim B2 close / resize journals / pause replay

Made with Cursor

ZhiXiao-Lin and others added 3 commits September 12, 2026 07:31
Mint managed-exec-* when request_id is omitted and retry once on ambiguous
transport with the same id after rebinding the exec stream. Parity with OCI
captured exec and VmManager::exec_request; does not touch streaming
start_process or B2 harness claims.

Co-authored-by: Cursor <[email protected]>
Only session needs should_retry_keyed_guest_exec; avoid unused_imports
warnings under -D warnings CI.

Co-authored-by: Cursor <[email protected]>
Retry once on ambiguous transport when request_id is already set; keep
omit-path unkeyed for health probes. Treat R17 stop/remove NotFound as
already-absent cleanup after fast service exit.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 3b29c94 into main Sep 12, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/microvm-session-exec-replay branch September 12, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant