Support selectable Runtime images per Environment Template
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go
Línea de trabajo
Start by reading contracts/agents-api/sandbox-deployment.md, contracts/agents-api/environment_templates.go, and services/core/internal/sandbox/deployment.go to trace how deployment images and Template requests are represented. Then inspect the runtime deployment schema and node image readiness and pinning paths. Before implementation, resolve the open questions about image scope, pools, preloading, and retirement; done means a registered image can be selected and frozen for a Session, with unsupported or unavailable images handled distinctly.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
An installation runs every Sandbox on exactly one Runtime image. The image is pinned by digest in the single deployment specification, so all Projects share it. Administrators cannot give a Project a different toolchain, which blocks heterogeneous workloads that need different preinstalled system software.
A single installation typically serves several kinds of work whose system dependencies barely overlap:
- code review needs SCM and review CLIs, such as
gitplus a hosted-platform CLI; - web prototyping needs
pnpmand a browser toolchain; - design and rendering work needs its own native libraries and large toolchains.
Several of these are individually large. Forcing them into one image makes every Sandbox pay the full size and build surface of every unrelated toolchain, which slows preparation and pushes the image past practical limits. Because packages.system is rejected, a Project cannot add a system dependency to the image at Session time, so the only workarounds are:
- bake every toolchain into one shared image, growing it for all Projects; or
- run a separate installation per toolchain, duplicating Core, its database, its keys and its nodes.
Where the single-image assumption lives
- Contract:
contracts/agents-api/sandbox-deployment.mdstates the deployment holds "one active selection per installation" and thatprovideris "exactly one ofdocker,microsandbox,e2b".docs/getting-started/nodes.mdsays "Sandbox settings apply to the whole installation; nodes follow them." - Schema:
runtime_deploymentis a singleton table (singleton boolean PRIMARY KEY DEFAULT true CHECK (singleton)). The image identity lives in the immutablespecificationJSON, andruntime_deployment_generationsretains one specification per generation. - Image identity:
services/core/internal/sandbox/deployment.godefinesRuntimeReleaseas onesource_commit,image_id,image_manifest_digest,microsandbox_ref,runtime_sha256andfirmware_sha256; validation requires "one immutable distribution" per release. - Provider:
services/core/internal/sandbox/providers/microsandbox.gocarries a singleImage string, andservices/core/internal/sandbox/microsandbox/identity.goparses exactly onename@sha256:<digest>. - Templates:
contracts/agents-api/environment_templates.goexposesnetwork,env,files,packages,plugins,skillsandsetup_commands, but no way to select a Runtime image. - Node distribution: nodes load and pin the image named by the current deployment generation; a node's serving pin is durable across offline periods.
Proposal
Let a Runtime image be a first-class, named resource, and let an Environment Template select one.
- Introduce an installation-scoped image registry: each entry is a complete
RuntimeRelease(the six hashes already defined) plus a name, an optional description and the provider kinds it supports. Entries are immutable once referenced. runtime_deploymentkeeps the provider, resources and the default image, and gains a set of selectable images. The default image remains the fallback when a Template does not select one.EnvironmentTemplateRequestgains an optionalruntime_image_id. When omitted or null, the Session uses the deployment default, so existing Templates keep working unchanged.- At Session admission, Core resolves the Template's image and freezes its full release identity onto the placement and allocation, exactly as
deployment_generationis frozen today. Existing generation immutability rules still apply; an image reference is part of the frozen specification, never re-resolved later. - Node lifecycle: a node advertises and pins the set of images it has prepared. Core places a Session only on a node ready for the selected image. Missing images show a distinct readiness state so the administrator can see what still needs to download.
- API and Web: add image CRUD under
/core/v1/sandbox/and image selection to the Environment Template editor. Update the OpenAPI,sandbox-deployment.mdand itszhtranslation, and the@oac/agents-clientvalidators.
Constraints
- Image selection happens at Session creation from the frozen Template. A running Session, allocation or suspended Environment never changes image; restores keep their original image.
- An Environment Template may only select an image the installation has registered and the target provider supports. Unknown or unsupported images fail validation with a clear param error.
- Image absence must not silently fall back to the default image. A missing image is a placement failure with a distinct reason, never a substitution.
- The image registry is deployment-wide configuration, not a Project-owned resource, so a Project cannot introduce an image for other Projects.
- No provider-name branches: image readiness and preparation go through the registered adapter declarations.
Alternatives considered
- Bake every tool into one shared image. Works today, but every Project pays the size and the build surface of every other Project, and native toolchains that conflict at the system level cannot coexist.
- Use
setup_commandsto download tools at every Session start. It repeats per Session, has no offline guarantee, and cannot satisfy tools that a Template alone is expected to guarantee. - Run one installation per toolchain. This is supported and needs no code change, but duplicates Core, its database, its keys, its nodes and its upgrades per toolchain.
Open questions
- Should an image be selectable per Environment Template, per Project, per Harness, or several of these? This issue proposes Template-level selection as the smallest change that unblocks the use case, with the deployment default preserving current behavior.
- How does this interact with
Support multiple ordered sandbox pools per installation(#397)? Pools and images are orthogonal: a pool selects where a Sandbox runs, an image selects what runs in it. Should image readiness be a pool-level or node-level property? - Should nodes preload all registered images eagerly, or on first demand for a selected image? Eager loading guarantees placement but multiplies disk use per node.
- What bounds the number of registered images, and how are retired images garbage-collected once no retained generation references them?
- Lenguaje dominante
- Go
- Estrellas
- 182
- Forks
- 17
- Merge medio
- 1 h 15 min
- PR fusionados (30 d)
- 360
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MiniMax-AI/OpenAgentCore
-
Skip to content changes the console page to OverviewPosiblemente ocupada @dvd233 la tomó hace 6 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
MiniMax-AI/OpenAgentCore#421 ·
Los mantenedores suelen responder en 1 día
-
Allow an HTTP base_url for model providers, like OAC_PUBLIC_URL already doesPosiblemente ocupada @velrith la tomó hace 8 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
MiniMax-AI/OpenAgentCore#416 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
MiniMax-AI/OpenAgentCore#397 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
MiniMax-AI/OpenAgentCore#179 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MiniMax-AI/OpenAgentCore
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
accepted bug wg/agentic-context
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vllm-project/semantic-router#4922 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug] Extraction-mode autogen returns pod templates in random order for map-keyed CRDs, so deny and report messages change between runsPosiblemente ocupada @ManojLamani la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
kyverno/kyverno#17980 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
raised-by:reviewer
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
medici-finance/assay#2681 ·
Los mantenedores suelen responder en 1 día
-
bug triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fullsend-ai/fullsend#8353 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día