狀態列舉值
以下字串值取自 src/schemas/enums.py(除另註明)。前端渲染或條件判斷時,以這些精確字面值為準。
執行 SandboxRunState
queued、starting、running、cancel_requested、completed、customer_failed、platform_failed、cancelled
建置嘗試 SandboxBuildAttemptState
validation_queued、validating、build_queued、building、verifying、completed、customer_failed、platform_failed、cancel_requested、cancelling、cancelled
環境版本 SandboxEnvironmentVersionState
draft、build_queued、building、quarantined、verifying、verified、regional_provisioning、ready、retryable_failed、rejected、abandoned、blocked、superseded、archived、provisioning_blocked
任務版本 SandboxTaskVersionState
draft、published、archived(另有 content_state;menu/可執行要求 content_state == "active")
終態類別 SandboxTerminalClass / SandboxBuildTerminalClass
completed、customer_failed、platform_failed、cancelled
資源規格 SandboxResourceProfile
standard、performance、large、xlarge
建置規格 SandboxBuildProfile
standard、fast、large
Scope 類 SandboxOwnerScope / SandboxShareTargetKind / SandboxConsumerScope
chatroom、department、company
環境擁有者 SandboxEnvironmentOwnerKind
system_curated、company
Principal SandboxPrincipalType / 認證 SandboxAuthMethod
user、social_media_client / jwt、api_key
生命週期篩選 SandboxLifecycleFilter
active、retired、all(列表查詢參數;多數預設 active,list_task_shares 預設 all)
Agent 提案 SandboxProposalState
prepared、committing、committed、superseded、cancelled、expired、failed
Secret 操作 SandboxSecretOperationState
prepared、applying、reconciling、applied、revoking、terminal
通知事件 SandboxNotificationEvent
build_ready、build_failed、build_cancelled、run_terminal、security_finding_discovered、security_finding_resolved、security_finding_reappeared、security_finding_blocked、security_exception_granted、security_exception_revoked、security_exception_expired
內部物件狀態(間接出現在回應)
取自 src/components/sandbox/storage.py。前端最常見的是產出物 deletion_state 與 run content state。
- object_kind:
context、input、output、log、artifact_bundle、report - Owned Object
deletion_state:active、delete_pending、deleted、tombstoned(非active的產出物 download → 404) - 上傳模式:
single_part、multipart(控制面) - Session 狀態:
initiating、uploading、completing、completed、abort_pending、aborted(控制面) - Lease 狀態:
uploading、queued、active_transferred、release_pending、released(控制面;佔槽狀態uploading/queued)
數值上限(src/components/sandbox/constants.py)
MAX_PAGE_SIZE=100、DEFAULT_PAGE_SIZE=20;輸入/腳本 JSON ≤1 MiB;MAX_JSON_DEPTH=64、MAX_JSON_NODES=100000;env ≤100 名稱、每項 ≤64 KiB;DEFAULT_WORK_TIMEOUT_SECONDS=1800、最大 work 逾時 ≈7 天;MAX_STATUS_WAIT_SECONDS=60;MAX_ARTIFACT_FILES=1000;內容保留 1..365 天、映像保留 1..90 天。