Skip to content

feat(sdk): optional stable command request_id for keyed-exec retries - #306

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
feat/sdk-stable-command-request-id
Sep 11, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
feat/sdk-stable-command-request-id

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Expose optional stable request_id / requestId / RunRequestID on Rust, Python, TypeScript, and Go Sandbox command APIs so callers can retry retryable OCI Unavailable with the same process-journal identity.
  • Bridge command_run accepts request_id; default remains a minted sdk-command-* id. Validation matches OCI (non-empty, ≤512 bytes, no NUL). Distinct {id}.retry-N suffixes remain forbidden.

Test plan

  • cargo test -p a3s-box-sdk command_run_reuses_stable_request_id
  • Python SdkTests.test_sync_sandbox_uses_local_runtime_surface
  • Hosted CI Format / Test / SDK smokes green
  • Confirm no B2 / fixture / hosted-KVM claim flips

EOF

Made with Cursor

ZhiXiao-Lin and others added 2 commits September 11, 2026 09:46
Callers can reuse the same process-journal identity after retryable
Unavailable instead of minting a fresh sdk-command-* id each run.

Co-authored-by: Cursor <[email protected]>
Clippy await_holding_lock rejects drop()-then-await; use a scope block.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 95e3430 into main Sep 11, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/sdk-stable-command-request-id branch September 11, 2026 03:00
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