Skip to content

feat(pool): mint cli-pool-* request_id for lease exec retries - #318

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/pool-lease-exec-request-id
Sep 11, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/pool-lease-exec-request-id

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Warm-pool lease exec accepts optional request_id and mints cli-pool-* when omitted so retries on the same lease VM can hit the guest replay cache.
  • Ambiguous transport errors annotate reuse request_id <id> on the same lease.
  • One-shot pool run deliberately keeps request_id: None (VM destroyed after response — keyed replay cannot span client retries).
  • Does not flip b2_process_session_recovery_closed, fixture continuity, or hosted-KVM claims.

Test plan

  • WSL: mint/validate/annotate unit tests + test_request_envelope_tagging
  • Runtime pool::client tests still pass
  • Hosted CI Format/Clippy/Test/Sandbox green

Lease exec keeps the same guest VM, so keyed one-shot request_id enables guest replay after ambiguous transport loss. Mint cli-pool-* when omitted; leave one-shot pool run unkeyed because the VM is destroyed after the response. Do not flip B2.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit effd7e6 into main Sep 11, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/pool-lease-exec-request-id branch September 11, 2026 14:40
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