Skip to content

feat: journal keyed guest filesystem mutations for one retry - #344

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/guest-filesystem-mutation-journals
Sep 13, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/guest-filesystem-mutation-journals

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Optional FilesystemRequest.request_id + guest filesystem_replay journal for mutating ops (MakeDir/Move/Remove).
  • MicroVM ExecClient::filesystem retries once on ambiguous transport when keyed; unkeyed stays single-shot (existing test kept).
  • Rust SDK mutate helpers mint fs-<uuid> so product mutations get at-most-once replay.
  • Non-claims: no B2 flip, no MicroVM cutover, no Sandbox Live FS recovery closed.

Test plan

  • cargo test -p a3s-box-core --lib filesystem_session
  • cargo check core/sdk/runtime/cli
  • Linux CI: grpc::exec unix tests filesystem_mkdir_does_not_retry_* + filesystem_keyed_mkdir_retries_*
  • Linux CI: guest-init filesystem_replay unit tests

Add optional FilesystemRequest.request_id with guest replay cache for
MakeDir/Move/Remove. Host ExecClient retries once on ambiguous transport
when keyed; unkeyed mutating ops stay single-shot. SDK mutate helpers mint
fs-<uuid>. Closes the MicroVM guest gap after OCI journals without B2 or
cutover claims.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 5ad5658 into main Sep 13, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/guest-filesystem-mutation-journals branch September 13, 2026 10:38
ZhiXiao-Lin added a commit that referenced this pull request Sep 13, 2026
LocalExecutionManager::filesystem now rebinds once through
should_retry_guest_filesystem (same policy as ExecClient), so SDK-minted
fs-* journals from #344 reach product callers. Add policy + delivery
honesty tests. Does not add upload journals or flip B2.

Co-authored-by: Cursor <[email protected]>
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