Skip to content

feat(sdk): support writable storage limits - #43

Draft
WenYuLuo wants to merge 1 commit into
inclusionAI:mainfrom
WenYuLuo:lwy/storage-limit-mb
Draft

feat(sdk): support writable storage limits#43
WenYuLuo wants to merge 1 commit into
inclusionAI:mainfrom
WenYuLuo:lwy/storage-limit-mb

Conversation

@WenYuLuo

@WenYuLuo WenYuLuo commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • expose storage_limit_mb: int | None = None on Sandbox and
    SandboxInfo
  • keep storage_mb as the scheduler request and use storage_limit_mb as
    the writable root filesystem hard limit
  • translate storage limits through both supported openYuanRong backends,
    including scheduler reservation for limit-only requests
  • update SDK documentation, examples, and the pressure benchmark

API behavior

storage_mb storage_limit_mb Behavior
None None Use the selected runtime's configured writable-layer limit
request None Reserve and enforce the request value
None limit Reserve and enforce the limit value
request limit Reserve the request and enforce the limit

When both values are provided, storage_limit_mb must be greater than or
equal to storage_mb. The bundled deployment keeps its configured 10 GiB
writable-layer limit when neither value is specified.

Validation

  • 260 Python SDK unit tests passed
  • Ruff checks passed
  • mypy checks passed
  • verified the public AKernel default is None and the native backend
    default sentinel is 0

Expose storage_limit_mb alongside storage_mb in the public Sandbox API
and report both requested values through SandboxInfo.

Translate the hard limit through both supported openYuanRong backends
while preserving scheduler reservations for limit-only requests.
Document the request-versus-limit semantics and cover validation and
wire conversion.

Signed-off-by: robbluo <luo1442@gmail.com>
@WenYuLuo
WenYuLuo force-pushed the lwy/storage-limit-mb branch from d6f3fd8 to e49e4a7 Compare September 1, 2026 13:25
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