You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(sdk): accept a sandbox policy in the Rust SDK's SandboxSpec #5410
I write testkit tests that create a sandbox with a policy. I want the Rust SDK's SandboxSpec to accept a policy, so testkit uses the SDK's own create request instead of rebuilding it, and a policy works together with a GPU or service exposures.
Description
openshell_sdk::SandboxSpec has no policy field. To create a sandbox with a policy, testkit's SandboxBuilder::create (tests/testkit/testkit/src/context.rs, policy_create_request) builds the CreateSandboxRequest itself, mirroring the SDK's create_sandbox_request (crates/openshell-sdk/src/client.rs). It destructures SandboxSpec without .., so a new SDK field fails to compile there instead of being dropped, but the mapping is still duplicated. It doesn't map gpu or service_exposures, so create rejects a sandbox that combines them with a policy.
Open question: the curated SandboxSpec avoids generated wire types and points callers to openshell_sdk::raw for the full proto surface. The field could take the proto SandboxPolicy, policy YAML, or a curated policy type.
Activity