Skip to content

fix(runtime): retry read-only filesystem ops on ambiguous transport - #326

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/filesystem-readonly-ambiguous-retry
Sep 12, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/filesystem-readonly-ambiguous-retry

Conversation

@ZhiXiao-Lin

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

Copy link
Copy Markdown

Summary

  • ExecClient::filesystem retries once on a fresh stream for Stat / ListDir when transport is ambiguous.
  • Mutating ops (MakeDir, Move, Remove) stay single-shot — guest MakeDir returns directory already exists, so blind retry would overfit.

Honesty

  • Does not invent FakeRuntime / guest FS journals.
  • Does not flip b2_process_session_recovery_closed.
  • Does not claim fixture continuity or hosted-KVM Live.

Test plan

  • Local cargo check -p a3s-box-runtime --features vm
  • WSL filesystem_* filter: 18 passed (includes Stat retry + MakeDir no-retry)
  • Hosted CI green (prefer rerun on R17 flake; do not weaken schemas)

Stat and ListDir are naturally idempotent, so one fresh-stream retry is safe
when the guest reply is lost. MakeDir/Move/Remove stay single-shot until guest
journals exist (MakeDir is not idempotent). No B2 flip.
@ZhiXiao-Lin
ZhiXiao-Lin merged commit b526bf1 into main Sep 12, 2026
25 of 26 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/filesystem-readonly-ambiguous-retry branch September 12, 2026 10:49
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