Skip to content

feat(cli): mint cli-update-* request_id for container-update retries - #317

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/cli-update-request-id
Sep 11, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/cli-update-request-id

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • container-update accepts optional --request-id and mints cli-update-* when omitted.
  • Managed OCI live Tier-2 updates use that seed as the durable operation_id when minting a new update; pending/completed matching updates keep their stored identity (no {id}.retry-N).
  • Legacy MicroVM live updates pass it as the guest one-shot exec request_id so the guest replay cache can reconcile lost responses; Unavailable / ambiguous transport errors annotate reuse --request-id <id>.
  • Does not flip b2_process_session_recovery_closed, fixture continuity, or hosted-KVM claims.

Test plan

  • cargo test -p a3s-box-cli --lib commands::container_update on Windows (clap + shared tests)
  • Same filter under WSL (27 tests including managed resolve/annotate + mint helpers)
  • Hosted CI Format/Clippy/Test/Sandbox green

Give live Tier-2 container-update a stable identity for Unavailable retries: optional --request-id, minted cli-update-* when omitted, reused as managed operation_id or legacy guest exec request_id. Do not invent retry-N keys or flip B2.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 99376ba into main Sep 11, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/cli-update-request-id branch September 11, 2026 13:48
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