Skip to content

feat: keyed MicroVM file-upload journals + download transport retry - #346

Merged
ZhiXiao-Lin merged 4 commits into
mainfrom
feat/guest-file-upload-journals
Sep 13, 2026
Merged

ZhiXiao-Lin merged 4 commits into
mainfrom
feat/guest-file-upload-journals

Conversation

@ZhiXiao-Lin

@ZhiXiao-Lin ZhiXiao-Lin commented Sep 13, 2026 •

Copy link
Copy Markdown

Summary

  • Optional FileRequest.request_id + guest file_replay for Upload; host/session retry once when keyed.
  • SDK write mints file-<uuid>; CLI cp uploads mint cli-file-*.
  • Downloads retry once on ambiguous transport (no journal; idempotent reads, parity with Stat/ListDir) via shared should_retry_guest_file_transfer.
  • Non-claims: no B2 flip, no cutover, no Sandbox Live FS closed.

Test plan

  • cargo check / focused runtime policy tests
  • Linux CI: file upload/download retry unit tests + guest file_replay

Add optional FileRequest.request_id with guest file_replay for Upload.
Host ExecClient and LocalExecutionManager transfer_file retry once on
ambiguous transport when keyed; unkeyed uploads stay single-shot.
SDK write mints file-<uuid>; a3s-box cp uploads mint cli-file-*.
Does not flip B2 or claim Sandbox Live FS recovery closed.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin force-pushed the feat/guest-file-upload-journals branch from 62d9b41 to 7d2e048 Compare September 13, 2026 11:30
Downloads are side-effect-free: one fresh-stream / session rebind retry
on ambiguous guest-channel loss (parity with Stat/ListDir). Shared
should_retry_guest_file_transfer covers keyed upload + download.
Does not add download journals or flip B2.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin ZhiXiao-Lin changed the title feat: journal keyed MicroVM file uploads for one retry feat: keyed MicroVM file-upload journals + download transport retry Sep 13, 2026
@ZhiXiao-Lin
ZhiXiao-Lin merged commit e2d4ed6 into main Sep 13, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/guest-file-upload-journals branch September 13, 2026 12:30
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