Skip to content

feat(sdk): expose child sandbox parent on create and list in all SDKs #6247

Backlog

Description

@pimlock

User Story

As an SDK user, I want to create and list child sandboxes (parent) from the Rust, Python, TypeScript and Go SDKs, so that I can drive sub-agent sandboxes without shelling out to the CLI or hand-writing MCP calls.

Problem Statement

PR #5641 adds experimental child sandboxes (RFC 0021): CreateSandboxRequest.parent, ListSandboxesRequest.parent, and read-only Sandbox.parent and Sandbox.created_on_behalf_of. Only the CLI (sandbox create|list --parent) and the gateway /mcp endpoint expose them. The Rust SDK (crates/openshell-sdk/src/client.rs) sets parent: String::new() on every create and list request, and the Python, TypeScript and Go SDKs (now in their own repositories) have no way to set it either.

Impact / Why This Matters

SDK users cannot create or list children. The current workaround is the CLI or raw gRPC against the generated proto types, which bypasses the curated SDK surface. That is not enough for programmatic orchestration, which is the main audience for child sandboxes. The gap also widens as the feature leaves experimental status.

Proposed Design

Expose an optional parent on sandbox create and list in each SDK, and surface parent and created_on_behalf_of on the sandbox type. Keep the same semantics as the CLI: only a root can be a parent, and listing by an unknown parent returns not found. Mark the API experimental in each SDK until the gateway setting stabilizes. Track one checklist item per SDK: Rust (crates/openshell-sdk), Python, TypeScript, Go.

Alternatives Considered

  • Document children as CLI and MCP only while experimental. This is cheaper, but SDK users stay blocked.
  • Wait for RFC 0021 to be accepted. This avoids churn, but leaves the SDKs behind the gateway API.

Acceptance Criteria

  • Rust SDK create and list accept an optional parent; unit tests cover both
  • Python SDK equivalent
  • TypeScript SDK equivalent
  • Go SDK equivalent
  • Each SDK exposes parent and created_on_behalf_of on its sandbox type
  • Docs mention the experimental status

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions