feat(sdk): support writable storage limits - #43
Draft
WenYuLuo wants to merge 1 commit into
Draft
Conversation
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
force-pushed
the
lwy/storage-limit-mb
branch
from
September 1, 2026 13:25
d6f3fd8 to
e49e4a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
storage_limit_mb: int | None = NoneonSandboxandSandboxInfostorage_mbas the scheduler request and usestorage_limit_mbasthe writable root filesystem hard limit
including scheduler reservation for limit-only requests
API behavior
storage_mbstorage_limit_mbNoneNoneNoneNoneWhen both values are provided,
storage_limit_mbmust be greater than orequal to
storage_mb. The bundled deployment keeps its configured 10 GiBwritable-layer limit when neither value is specified.
Validation
Noneand the native backenddefault sentinel is
0