Follow one ownership sequence
- Enter
AsyncComputerSandbox.create()once. - Wait for desktop readiness.
- Call
owner.session_handle()once. - Send the handle to one deployed Function.
- Enter
handle.borrow_async()once inside that Function. - Run the complete model trajectory.
- Release the lease.
- Let the owner terminate the desktop.
Require verifiable placement
Set the same supported selector on the owner configuration and Function decorator. Pass that selector toborrow_async(function_region=...). Public narrow selectors such as us-west can
resolve to provider-native values such as us-west-2, us-west1, or westus3. A granted
granular selector such as us-west-2 must match the observed runtime region exactly.
Missing, broad, mismatched, malformed, or unverifiable placement fails before mutation. Broad
selectors such as us and eu are invalid for handoff. The caller must establish the placed
Function topology explicitly.

