Support selectable Runtime images per Environment Template
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- go
- Domínio
- backend-api-design, infrastructure
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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?
- Linguagem predominante
- Go
- Estrelas
- 210
- Forks
- 29
- Merge médio
- 1h 12min
- PRs com merge (30d)
- 588
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de MiniMax-AI/OpenAgentCore
-
Skip to content changes the console page to OverviewTalvez já em andamento @dvd233 assumiu há 10 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
MiniMax-AI/OpenAgentCore#421 ·
Mantenedores costumam responder em até 1 dia
-
Allow an HTTP base_url for model providers, like OAC_PUBLIC_URL already doesTalvez já em andamento @velrith assumiu há 12 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
MiniMax-AI/OpenAgentCore#416 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
MiniMax-AI/OpenAgentCore#397 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
MiniMax-AI/OpenAgentCore#179 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de MiniMax-AI/OpenAgentCore
Issues semelhantes
-
documentation hacktoberfest priority: low skill: good first issue status: ready for dev
Dificuldade 2/5 Meio dia Facilidade para iniciantes 85/100
hyperledger-labs/fabric-smart-client#2142 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
numberly/vault-db-injector#107 ·
Mantenedores costumam responder em até 1 dia
-
area/import kind/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
[DOC] Wrong sg_egress_ports range in the Terraform Databricks Guide for AWS Hub & Spoke with Network FirewallTalvez já em andamento @akhil9tiet assumiu hoje. Abertadocs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
databricks/terraform-provider-databricks#6080 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
kind/documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
kubernetes-sigs/dra-driver-nvidia-gpu#1569 ·
Mantenedores costumam responder em até 1 dia