Skip to content

fix(sandboxes): sync runtime billing API contract - #392

Merged
shawnwu-kong merged 2 commits into
mainfrom
codex/sandbox-surface-sync
Oct 14, 2026
Merged

shawnwu-kong merged 2 commits into
mainfrom
codex/sandbox-surface-sync

Conversation

@shawnwu-kong

Copy link
Copy Markdown
Contributor

Refresh the private generated clients from the current Hosting public OpenAPI bundle and document confirmed Sandbox runtime billing. Running usage consumes account allowance and paid overage; suspended/uncertain usage and snapshots are not separately billed.

The complete contract sync also carries existing Issues, Autofix, variable-environment, and custom-domain schema changes. These remain behind the handwritten facades; no new public facade methods or package versions are introduced.

Validation: generation determinism, Ruff lint/format, mypy, basedpyright, all 2,676 unit tests, wheel build, and isolated package smoke test passed.

No package publication or live cloud acceptance was performed. Coordinated with the Sandbox MCP change in Kong/volcano-hosting.

@shawnwu-kong
shawnwu-kong marked this pull request as ready for review October 14, 2026 18:32
@shawnwu-kong
shawnwu-kong requested a review from a team as a code owner October 14, 2026 18:32
swkeever
swkeever previously approved these changes Oct 14, 2026

@swkeever swkeever left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the contract sync and handwritten transport boundaries. The snapshot matches Hosting #1891, with no public facade or package-version changes. Required CI, regeneration checks and native tests pass. No live-cloud testing was performed for this review. Land this snapshot before Hosting's automatic consumer sync.

@tkkhq tkkhq left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contract refresh leaves two pre-existing public-facade failures unresolved:

  • An unlimited local session returns expires_at: null, which the refreshed generated model accepts. src/volcano_sdk/sandbox_session.py:89 still calls the non-null timestamp decoder, so creation fails after a successful server response. Update the public expiry type and session decoding paths; cover a null-expiry response through the facade.
  • Supplying idle_timeout_seconds makes src/volcano_sdk/sandboxes.py:68 include it in the create body. The refreshed CreateSandboxSessionRequest forbids this removed field, so the server returns HTTP 400. Align the public option and request builder with the accepted contract.

The producer contract is Hosting #1891, api/components/common/schemas.yaml:7652 and :7667. These are facade gaps, not regressions introduced by regeneration.

@shawnwu-kong
shawnwu-kong added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 8a91a03 Oct 14, 2026
156 of 159 checks passed
@shawnwu-kong
shawnwu-kong deleted the codex/sandbox-surface-sync branch October 14, 2026 20:23
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.

3 participants