Skip to content

fix(runtime): spawn_main ambiguous ACK retry with guest idempotency - #325

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
feat/spawn-main-ambiguous-retry
Sep 12, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
feat/spawn-main-ambiguous-retry

Conversation

@ZhiXiao-Lin

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

Copy link
Copy Markdown

Summary

  • Guest: any published container pid ACKs repeat spawn-main (bare and JSON); CAS races wait for publish instead of NACK.
  • Host: ExecClient::spawn_main retries once on ambiguous ACK loss; already spawned NACK is observe-after-ambiguity success.
  • Connect failures stay Ok(false) with no retry.

Honesty

  • Does not flip b2_process_session_recovery_closed.
  • Does not claim fixture continuity or hosted-KVM Live.
  • Does not invent FakeRuntime journals or widen timeouts.

Test plan

  • WSL cargo test -p a3s-box-runtime --features vm --lib spawn_main (2 passed)
  • WSL cargo test -p a3s-box-guest-init --lib published_main_pid_acks_any_repeated_spawn_main
  • Hosted CI green (prefer rerun on R17 flake; do not weaken schemas)

Guest ACKs repeat spawn-main once the container pid is published (bare and
JSON) and waits through the pending sentinel instead of NACKing. Host retries
once on lost ACK and treats already-spawned NACK as success. No B2 flip.
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 1eb4840 into main Sep 12, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/spawn-main-ambiguous-retry branch September 12, 2026 08:53
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