Repository navigation
Description
Problem Statement
Replace NemoClaw's overlapping install and onboarding inputs with one versioned, declarative configuration file.
A user should describe one desired deployment: the agent, sandbox environment, inference runtime and model, network policy, integrations, and operational settings. NemoClaw should validate that document and converge the deployment through one onboarding engine.
Today, users express the same intent through interactive menus, CLI flags, NEMOCLAW_* variables, Express logic, and serving profiles. These paths require precedence rules, conflict checks, duplicated validation, and many input combinations. The result is difficult to understand, automate, test, and maintain.
This epic authorizes a product-surface redesign only after maintainers record an Accept decision. The redesign must reduce onboarding code and concepts. Adding a configuration file beside all existing interfaces does not satisfy this epic.
Desired Behavior
NemoClaw has one public desired-state contract:
nemoclaw onboard --config nemoclaw.yamlThe file specifies the complete non-secret deployment configuration, including:
- Agent and sandbox name.
- Host and sandbox runtime requirements.
- Inference provider or serving profile, model, endpoint, and topology.
- Network policy tier and presets.
- GPU selection and read-only host mounts.
- Messaging, web search, tools, and observability.
- Custom image inputs when supported.
The file references credentials by source. It does not contain credential values.
NemoClaw validates the schema, resolves host compatibility and catalog references, prints a redacted plan, and applies that plan through one engine. Unknown fields, conflicting selections, unsupported combinations, and missing credential references fail before host or sandbox mutation.
Interactive or graphical setup may generate this file. It must not create a separate execution path.
Lifecycle controls such as validation, planning, apply, and recovery may remain as command options because they control execution rather than desired state.
Existing configuration flags and selection environment variables become migration inputs only. They must converge into the same contract and be removed after a defined compatibility period. Credential environment variables may remain as secret sources.
Concrete example
apiVersion: nemoclaw.nvidia.com/v1
kind: Sandbox
metadata:
name: my-assistant
spec:
agent: openclaw
runtime:
sandbox: docker
gpu:
mode: auto
inference:
provider: openai
model: <supported-model>
credential:
env: OPENAI_API_KEY
network:
tier: balanced
webSearch:
provider: none
messaging: []
observability:
enabled: trueScope and Exclusions
Included
- Define one versioned schema for complete onboarding desired state.
- Separate desired state, secret resolution, detected host facts, and execution state.
- Route install and onboarding decisions through one schema, validation path, plan, and apply engine.
- Preserve supported agent, platform, provider, policy, integration, GPU, image, and recovery behavior.
- Define deterministic validation and redacted plan output.
- Define migration and removal rules for overlapping menus, flags, and configuration environment variables.
- Measure and remove duplicate parsing, prompting, precedence, conflict, validation, and test machinery.
- Keep resume checkpoints as internal execution state rather than user-authored configuration.
Excluded
- Child-issue decomposition. We will do that after this epic receives an accepted design decision.
- New agents, providers, platforms, policies, or integrations.
- Secrets stored directly in the configuration file.
- General-purpose templating, inheritance, or arbitrary scripting.
- Compatibility overrides mixed with
--config. - A second onboarding engine.
Constraints
--configmust be authoritative. NemoClaw must reject overlapping configuration overrides.- The migration must preserve fail-closed security and recovery behavior.
- The final implementation must produce a net reduction in the onboarding configuration code footprint.
- The epic must define a removal target and compatibility end state before implementation starts.
Ongoing Ownership
Proposed owner: NemoClaw CLI and onboarding maintainers.
The accepted decision must name one accountable maintainer for the schema, migration, compatibility policy, and release validation.
Placement and Support Expectations
Requested placement: core NemoClaw.
This file becomes the supported public contract for install and onboarding desired state. Maintainers own schema evolution, compatibility, security review, documentation, and validation across supported agents and platforms.
Proposed product decision: Accept.
Reason: one declarative contract preserves onboarding capability while reducing user choices, precedence rules, and duplicate implementation paths.
This issue is not accepted scope until a maintainer records the final decision and accountable owner.
Validation Plan
- Validate the schema without host mutation.
- Produce a stable, redacted resolved plan for supported configurations.
- Reject unknown fields and incompatible combinations before downloads or mutation.
- Verify that credential values never enter the config, plan, logs, events, arguments, or persisted non-secret state.
- Prove equivalent supported outcomes for representative OpenClaw, Hermes, Deep Agents, and qualified platform paths.
- Verify failure, resume, rebuild, cleanup, and uninstall behavior from persisted configuration provenance.
- Measure removed public inputs, parsing branches, precedence rules, conflict checks, and tests.
- Require a net reduction in production onboarding configuration code after migration completes.
- Update command reference, quickstarts, security guidance, and migration guidance.
- Use local tests for schema, planning, and compatibility logic. Use live E2E only for real host, runtime, GPU, or external-service boundaries.
Compatibility Requirements
Preserve the capabilities that the maintained release supports for:
- OpenClaw, Hermes, and LangChain Deep Agents Code.
- Supported Linux, macOS, WSL, DGX, and container-runtime paths.
- Hosted, compatible, local, routed, and managed inference.
- Current policy, messaging, web search, GPU, mount, observability, and custom-image choices.
The design must define schema-version handling, release compatibility, migration diagnostics, and the date or release that removes each legacy input path.
Security or Privacy Impact
The configuration file is non-secret and may be persisted or reviewed.
Credential entries name a resolver and identifier. Providers receive credentials through the existing trusted host-side boundary. Credential values must not appear in the file, process arguments, plans, logs, events, checkpoints, or status output.
Validation must preserve URL checks, SSRF controls, policy requirements, image identity checks, filesystem restrictions, and fail-closed behavior before mutation.
Implementation Idea
Use one pipeline:
versioned config + detected host facts + resolved secret references
|
v
validated redacted plan
|
v
reconciliation
Any temporary wizard or legacy adapter compiles to the versioned configuration before validation. No adapter may bypass the shared pipeline.
Related work:
- [Epic] Support canonical NemoClaw onboarding for agentic solutions #6401 established the CLI, flags, and environment variables as the current public automation contract.
- Support stable onboarding inputs for automation clients #6404 completed stable automation inputs and explicitly deferred a universal configuration framework.
- This epic proposes replacing that contract because the accumulated input surface now creates product and implementation complexity.
- [Epic] Deliver the Express Installer for DGX Spark and DGX Station #8379 established serving profiles for managed inference. Profiles should become references inside the complete configuration, not a competing onboarding interface.
Category
Feature
Checklist
- I searched existing issues and found no duplicate.
- I described the problem and desired behavior.
Activity
cv commentedon Sep 2, 2026
Clarification: preserve guided onboarding as a configuration authoring tool.
Users who do not know NemoClaw's agents, providers, models, policies, or integrations still need guided discovery. Agents acting for users also need a structured way to inspect compatible choices. The current menus should therefore become a configurator for the canonical YAML contract, not disappear.
The target flow is:
The guided configurator must:
The configurator must not own separate defaults, validation, state, or mutation behavior. It must not keep hidden answers outside the generated file. Applying generated YAML and applying equivalent hand-authored YAML must produce the same result.
This preserves a guided first-run experience while removing the parallel configuration paths that create the current complexity.
cv commentedon Sep 3, 2026
Analysis outcome: the current install and onboarding inputs divide into seven clear classes. Only deployment desired state and credential references belong in the future YAML schema.
This inventory gives each current input a starting disposition before we define exact schema fields:
Desired-state inputs
These inputs describe what NemoClaw should deploy.
Identity and agent
--nameNEMOCLAW_SANDBOX_NAMEmetadata.name--agentNEMOCLAW_AGENTspec.agent.type--agentsNEMOCLAW_EXTRA_AGENTS_JSONspec.agent.agents--tool-disclosureNEMOCLAW_TOOL_DISCLOSUREspec.agent.tools.disclosureNEMOCLAW_AGENT_HEARTBEAT_EVERYspec.agent.heartbeatNEMOCLAW_AGENT_TIMEOUTspec.agent.timeoutThe secondary-agent manifest should become part of, or a reference from, the canonical config. It should not remain an independent onboarding interface.
Inference
--profile--experimental-profileNEMOCLAW_PROVIDERNEMOCLAW_MODELNEMOCLAW_PROVIDER_MODELNEMOCLAW_ENDPOINT_URLNEMOCLAW_PREFERRED_APINEMOCLAW_REASONINGNEMOCLAW_REASONING_EFFORTNEMOCLAW_MAX_TOKENSNEMOCLAW_CONTEXT_WINDOWNEMOCLAW_SERVING_PRESETNEMOCLAW_VLLM_MODELNEMOCLAW_VLLM_EXTRA_ARGS_JSONNEMOCLAW_MANAGED_CLUSTER_PEERS--vllm-gpu-device/NEMOCLAW_VLLM_GPU_DEVICENEMOCLAW_VLLM_PORTNEMOCLAW_OLLAMA_PORTNEMOCLAW_OLLAMA_PROXY_PORTNEMOCLAW_LLAMACPP_RECIPENEMOCLAW_LOCAL_MODEL_RUNTIMENEMOCLAW_ENABLE_LOCAL_MODEL_PROFILEA catalog profile and manual provider fields should remain mutually exclusive.
or:
Policy and network access
NEMOCLAW_POLICY_MODEspec.network.modeNEMOCLAW_POLICY_TIERspec.network.tierNEMOCLAW_POLICY_PRESETSspec.network.presetsNEMOCLAW_TRUSTED_PRIVATE_HOSTSspec.network.trustedPrivateHostsNEMOCLAW_TRUSTED_PRIVATE_INFERENCE_HOSTSspec.network.trustedPrivateInferenceHostsNEMOCLAW_PROXY_HOST/NEMOCLAW_PROXY_PORTspec.network.proxyNEMOCLAW_CORPORATE_CA_BUNDLEspec.network.trust.corporateCa.bundleNEMOCLAW_CORPORATE_CA_ANCHOR_DIRSspec.network.trust.corporateCa.anchorDirectoriesNEMOCLAW_CORPORATE_CA_IMPORTspec.network.trust.corporateCa.importRuntime resources and GPU
--gpu/--no-gpu--sandbox-gpu/--no-sandbox-gpuNEMOCLAW_SANDBOX_GPU--sandbox-gpu-deviceNEMOCLAW_SANDBOX_GPU_DEVICE--vllm-gpu-deviceNEMOCLAW_VLLM_GPU_DEVICENEMOCLAW_RESOURCE_PROFILENEMOCLAW_CPUNEMOCLAW_RAMNEMOCLAW_DOCKER_GPU_PATCHNEMOCLAW_OVERLAY_SNAPSHOTTERNEMOCLAW_DISABLE_OVERLAY_FIXNEMOCLAW_OPENSHELL_GATEWAY_CONTAINER_PATCHImage and filesystem
--from/NEMOCLAW_FROM_DOCKERFILE--host-mountNEMOCLAW_SANDBOX_BASE_IMAGE_REFNEMOCLAW_HERMES_SANDBOX_BASE_IMAGE_REFNEMOCLAW_LANGCHAIN_DEEPAGENTS_CODE_SANDBOX_BASE_IMAGE_REFNEMOCLAW_SANDBOX_BASE_IMAGE_REFRESHNEMOCLAW_SANDBOX_BASE_LOCAL_BUILDGateway and user interfaces
NEMOCLAW_GATEWAY_PORTNEMOCLAW_GATEWAY_BIND_ADDRESSNEMOCLAW_GATEWAY_MANAGEMENTNEMOCLAW_DASHBOARD_PORTNEMOCLAW_DASHBOARD_BIND--control-ui-portNEMOCLAW_HERMES_DASHBOARDNEMOCLAW_HERMES_DASHBOARD_PORTNEMOCLAW_HERMES_DASHBOARD_TUINEMOCLAW_HERMES_API_PORTObservability
--observability/--no-observabilityNEMOCLAW_OBSERVABILITYNEMOCLAW_OPENCLAW_OTELNEMOCLAW_OPENCLAW_OTEL_ENDPOINTNEMOCLAW_OPENCLAW_OTEL_SAMPLE_RATENEMOCLAW_OPENCLAW_OTEL_SERVICE_NAMENEMOCLAW_MCP_TOOLS_LIST_TIMEOUT_MSNEMOCLAW_TRACE,NEMOCLAW_TRACE_DIR, andNEMOCLAW_TRACE_FILEtrace the onboarding operation. They are execution controls, not deployment desired state.Web search
NEMOCLAW_WEB_SEARCH_PROVIDERbrave,tavily, ornoneBRAVE_API_KEYTAVILY_API_KEYMessaging
TELEGRAM_ALLOWED_IDS,TELEGRAM_REQUIRE_MENTION,TELEGRAM_GROUP_POLICYTELEGRAM_BOT_TOKENSLACK_ALLOWED_USERS,SLACK_ALLOWED_CHANNELSSLACK_BOT_TOKEN,SLACK_APP_TOKENDISCORD_SERVER_ID,DISCORD_REQUIRE_MENTION,DISCORD_USER_IDDISCORD_BOT_TOKENMSTEAMS_APP_ID,MSTEAMS_TENANT_ID,TEAMS_ALLOWED_USERS,MSTEAMS_PORT,TEAMS_REQUIRE_MENTIONMSTEAMS_APP_PASSWORDGOOGLECHAT_AUDIENCE_TYPE,GOOGLECHAT_AUDIENCE,GOOGLECHAT_APP_PRINCIPAL,GOOGLECHAT_ALLOWED_USERS,GOOGLE_CHAT_PROJECT_ID,GOOGLE_CHAT_SUBSCRIPTION_NAMEGOOGLECHAT_SERVICE_ACCOUNTWECHAT_ACCOUNT_ID,WECHAT_BASE_URL,WECHAT_USER_ID,WECHAT_ALLOWED_IDSWECHAT_BOT_TOKENWHATSAPP_MODE,WHATSAPP_ALLOWED_IDSNEMOCLAW_EXTRA_PLACEHOLDER_KEYSshould become a bounded list of named credential references instead of an environment-variable naming convention.Credential sources
Credential values must not appear in the YAML file. The config should name a resolver and identifier.
Inference and model-acquisition credential inputs include:
NVIDIA_INFERENCE_API_KEY, with compatibility aliasNVIDIA_API_KEY.OPENROUTER_API_KEY.OPENAI_API_KEY.ANTHROPIC_API_KEY.COMPATIBLE_ANTHROPIC_API_KEY.GEMINI_API_KEY.COMPATIBLE_API_KEY.NOUS_API_KEY.NGC_API_KEY.NIM_NGC_API_KEY.HF_TOKEN, with compatibility aliasHUGGING_FACE_HUB_TOKEN.NEMOCLAW_PROVIDER_KEY.Target representation:
Operation and lifecycle controls
These inputs describe how to run an operation. They should not be persisted under
spec:--non-interactive/NEMOCLAW_NON_INTERACTIVE.--resume.--fresh/NEMOCLAW_FRESH.--recreate-sandbox/NEMOCLAW_RECREATE_SANDBOX.--yes,-y, andNEMOCLAW_YES.--events=jsonl.--no-ollama-autostart/NEMOCLAW_OLLAMA_NO_AUTOSTART.NEMOCLAW_NON_INTERACTIVE_SUDO_MODE.NEMOCLAW_IGNORE_RUNTIME_RESOURCES.NEMOCLAW_AUTO_FIX_FIREWALL.NEMOCLAW_SKIP_TELEGRAM_REACHABILITY.NEMOCLAW_SKIP_SLACK_AUTH_VALIDATION.NEMOCLAW_TRACE,NEMOCLAW_TRACE_DIR, andNEMOCLAW_TRACE_FILE.These controls should either remain as a small operation interface or become distinct
validate,plan, andapplyoperations.Consent and destructive authorization
The following are attestations or one-operation capabilities. Persisting them as ordinary desired state would be unsafe:
--yes-i-accept-third-party-software/NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE.NEMOCLAW_ACCEPT_EXPERIMENTAL_OPENSHELL_UPGRADE.NEMOCLAW_OPENSHELL_UPGRADE_PREPARED.NEMOCLAW_CONFIRM_LEGACY_MANAGED_RECREATE.NEMOCLAW_RECREATE_WITHOUT_BACKUP.Installer-only inputs
These govern how NemoClaw itself is acquired. They stay outside sandbox desired state.
Installer flags:
--non-interactive.--yes-i-accept-third-party-software.--defer-onboarding.--fresh.--station-deepseek.--force-station-install.--experimental-profile.--version/-v.--help/-h.Installer environment inputs:
NEMOCLAW_INSTALL_TAG.NEMOCLAW_INSTALL_REF.NEMOCLAW_DEFER_ONBOARDING.NEMOCLAW_NO_EXPRESS.NEMOCLAW_SINGLE_SESSION.NEMOCLAW_ACCEPT_EXPERIMENTAL_OPENSHELL_UPGRADE.NEMOCLAW_OPENSHELL_UPGRADE_PREPARED.NEMOCLAW_CONFIRM_LEGACY_MANAGED_RECREATE.--station-deepseekcurrently combines an installer mode with an inference choice. The inference choice belongs in YAML. Host qualification remains an install or apply concern. Express installation should become a config generator or preset resolver, not a separate configuration engine.Host context
These inputs affect detection or command execution. NemoClaw should derive them rather than copy them into user-authored desired state:
HOME,PATH,TMPDIR, andXDG_*.HTTP_PROXY,HTTPS_PROXY,ALL_PROXY, andNO_PROXY, including lowercase variants.DOCKER_HOST,DOCKER_CONTEXT, andDOCKER_CONFIG.DOCKER_TLS,DOCKER_TLS_VERIFY, andDOCKER_CERT_PATH.CONTAINERS_CONF.CI, terminal state, locale, and color settings.The config can state a requirement such as
GPU required. It should not store detected host facts.Internal and test-only inputs
These inputs must not enter the public schema:
NEMOCLAW_MESSAGING_PLAN_B64.NEMOCLAW_STARTUP_PROFILE_B64.NEMOCLAW_CORPORATE_CA_B64.NEMOCLAW_EXTRA_AGENTS_JSON_B64.NEMOCLAW_INFERENCE_INPUTS.NEMOCLAW_MINIMAL_BOOTSTRAP.NEMOCLAW_OLLAMA_PROXY_TOKEN.NEMOCLAW_MANAGED_HERMES_HASH_B64.NEMOCLAW_DOCKER_GPU_PATCH_NETWORK.NEMOCLAW_RESTORE_LATEST_BACKUP_ON_RECREATE.NEMOCLAW_E2E_*,NEMOCLAW_TEST_*, andNEMOCLAW_RUN_LIVE_E2E.--temp-managed-runtimeand--temp-managed-runtime-catalog.These are internal transports, generated secrets, fixtures, or qualification controls. The new architecture should replace applicable environment transports with typed in-process values.
Inputs that need an explicit design decision
These inputs do not yet fit a stable schema field:
--apf-interceptor: providerless sandbox with special policy provenance.--experimental-profile=portable: experimental runtime profile.NEMOCLAW_GATEWAY_MANAGEMENT: external lifecycle authority.NEMOCLAW_EXPERIMENTAL: changes which choices are exposed.NEMOCLAW_CUA_ENABLEDandNEMOCLAW_CUA_SANDBOX_IMAGE_REF: experimental NemoCUA activation.NEMOCLAW_HERMES_AUTHandNEMOCLAW_HERMES_AUTH_METHOD: desired authentication state plus credential enrollment.NEMOCLAW_OLLAMA_INSTALL_MODE: host software installation versus deployment state.Each needs one disposition: stable YAML field, supported profile, apply-time control, internal detail, or removal without replacement.
Static impact evidence
The new analyzer traced representative inputs independently to exact usages, statically related tests, and catalog-owned E2E targets.
NEMOCLAW_AGENTNEMOCLAW_PROVIDERNEMOCLAW_MODELNEMOCLAW_POLICY_TIERNEMOCLAW_SANDBOX_GPUNEMOCLAW_WEB_SEARCH_PROVIDERTELEGRAM_BOT_TOKENNEMOCLAW_NON_INTERACTIVE--profile--sandbox-gpu--vllm-gpu-deviceThe large related-test counts show broad import fan-in around current onboarding. They are deterministic static estimates, not proof of semantic dead code and not a requirement to run every listed test for each removal.
Proposed next artifact
Before fixing the exact YAML syntax, assign every current input exactly one disposition:
That table should be the input to schema design. It prevents consent, secret values, test controls, and detected host facts from leaking into the declarative contract.
cv commentedon Sep 3, 2026
The input-disposition review is complete: all 78 inventory rows and all 11 focused clarifications have an agreed decision.
Resource model
One configuration document describes one deployment and one gateway:
A second gateway uses a second deployment document. The first schema does not need cross-gateway apply, rollback, ownership, or cleanup semantics.
Agreed YAML structure
metadata.nameidentifies the deployment.spec.gatewayis singular.spec.sandboxes[]supports one or more sandboxes.runtimeand one or moreagents[].spec.inferenceProviders[]contains one or more shared, named providers.inference.routes[]that reference a named provider and select a model.agentRefs.Example:
Credentials and security
credential: { env: OPENAI_API_KEY }.NEMOCLAW_EXTRA_PLACEHOLDER_KEYShas no public replacement. Each external credential reference attaches to the integration or agent profile that consumes it.Stable capability decisions
network.interceptors: [{ type: apf }].spec.sandboxes[].agents[]. Image/profile resolution must produce a qualified compatible image.agents[].authshape. Runtime adapters own method-specific validation.Inputs that remain outside desired state
Operation controls remain outside
spec:Messaging reachability and authentication probes validate an operation. They do not change the deployed channel. Remove channel-specific skip environment variables; retain one apply-time validation policy only if a current restricted-network consumer requires it. Default validation remains fail closed.
Installer acquisition controls also remain outside sandbox desired state:
Host context is detected rather than persisted. The config states requirements instead of copying Docker, GPU, firmware, platform, terminal, or process-environment facts.
Public inputs with no replacement
--force-station-installfrom the target public surface. It bypasses only the DGX Station release-metadata allowlist. Unsupported metadata should stop with qualification guidance. An internal qualification workflow may retain equivalent authority only if maintainers prove a current consumer.NEMOCLAW_SINGLE_SESSION. The config-driven planner discovers active sessions and fails before unsafe mutation.NEMOCLAW_EXPERIMENTALas configuration. The configurator can reveal qualified choices; the file states exact intent.Internal simplification
Encoded and child-process environment transports, including messaging plans, startup profiles, corporate CA payloads, and extra-agent payloads, do not enter the public schema. Replace them with typed in-process values where process boundaries permit. Keep true child-process transport internal and derive it from the validated plan.
Durable record
This issue comment records the agreed design direction. Implementation issues and the implementation itself should record the final schema, migration sequence, validation, and removal evidence. No separate design artifact or migration ledger needs to remain in the repository.
These decisions do not authorize implementation until this epic records the required product decision as Accept, with the reason, core placement, accountable maintainer, and validation plan.
cv commentedon Sep 3, 2026
Follow-up decisions from the line-by-line review of the proposed
nemoclaw.yamlexample:Document identity
Use:
Do not use
kind: Deployment. That name implies Kubernetes Deployment semantics that this file does not provide.Do not add
metadata.namein v1. The current design has no proven consumer for a separate configuration identity. Sandbox names identify managed resources. Add configuration identity later only if ownership, selection, or reconciliation requires it.Managed inference GPU selection
Replace the singular
gpu.devicefield with a typed selector:Supported shapes should distinguish intent:
Do not mix
allwith explicit device identifiers. Validation should rejectselection: explicitwithout devices and reject devices for incompatible selection modes.Sandbox image build paths
Use an explicit build object:
Path rules:
image.buildas mutually exclusive.nullplaceholders.Network interceptors
The only current typed interceptor is APF:
Do not invent additional interceptor types without a current consumer. Preserve APF's existing safety semantics:
The normal-policy example should show
tierandpresetswithout an emptyinterceptorsfield. A separate APF example should show the interceptor and omit conflicting policy configuration.Agent inference routes and overrides
Named inference providers hold shared defaults and external-service identity. Agent routes reference those providers and may override only agent-level inference behavior:
Rules:
providerRefmust match exactly onespec.inferenceProviders[].name.providerinside an inference-provider entry identifies its implementation, such asopenai; it is not a reference.overridesuses a defined subset of the provider configuration schema, excludingname.These refinements replace the earlier example details where they differ. The issue remains the durable design record; no separate design document is required.
cv commentedon Sep 3, 2026
Follow-up adversarial review decisions for multi-sandbox v1
Multi-sandbox configuration remains a v1 requirement. The apply contract is therefore explicitly non-atomic orchestration, not an all-or-nothing transaction. The following decisions refine the resource model, collision handling, partial-apply behavior, and recovery contract.
Configuration identity and resource ownership
Restore a human-readable configuration name and add an immutable UID:
metadata.nameis the operator-facing deployment name.metadata.uidis the durable ownership identity for the gateway, managed inference providers, sandboxes, and integration state managed by this document.Each managed resource must retain at least the deployment UID, resource name, lifecycle generation, verified live-resource identity, and last-applied intent or config digest. A matching name is a lookup result, not ownership evidence.
Name collisions and adoption
Planning must classify existing resources before mutation:
Adoption is an explicit conversion operation for legacy NemoClaw or externally created sandboxes. It must verify caller authority; inspect the live runtime, agent, policy, mounts, inference routes, and integrations; reject another deployment's resource; record the adopted generation and verified live identity; explain later replacement authority; and avoid destructive replacement during adoption unless separately planned and authorized. Ordinary
applynever adopts by name alone.Omission and pruning
The v1 default is non-destructive:
Non-atomic apply outcomes
Stable top-level outcomes:
succeeded: every required effect was verified.failed-before-effects: validation or planning failed and nothing was dispatched.partially-applied: some effects were verified and others definitively failed.recovery-required: state is known, but unfinished work or failed rollback remains.inconclusive: at least one dispatched effect may have occurred, but its postcondition could not be verified.Each gateway, provider, sandbox, and integration effect reports one of:
not-starteddispatchedverifiedfailedinconclusiverollback-plannedrolled-backrollback-failedretainedA failed apply must not claim that nothing changed. A timeout or lost response after dispatch is inconclusive until live state is inspected; it is not proof that the operation did not occur.
Validation and orchestration order
Validate and observe the complete document before the first effect, including schema and semantic validation, duplicate-name rejection, exact reference resolution, supported combinations, detectable port/GPU/policy/topology conflicts, credential-reference availability, ownership collisions, paths and image inputs, and prune candidates.
Then use this deterministic order:
V1 executes sequentially unless a demonstrated requirement justifies concurrency. After the first required-effect failure, stop scheduling new effects, verify dispatched work, perform only proven-safe rollback, retain everything else with recovery evidence, and return the appropriate partial/recovery/inconclusive outcome.
Durable JSONL orchestration journal
Use a simple durable JSONL journal for the outer multi-resource apply. Persist the header before the first effect and append/fsync transitions around each dispatch and verification boundary.
The journal binds the apply ID, deployment UID, canonical config digest, plan digest and planner/build version, bounded host-facts identity, catalog/policy/image/managed-serving identities, target deployment revision, ordered effects and dependencies, prior observed state and expected postcondition, and dispatch/verification/rollback/retention outcomes.
Entries are schema-versioned, bounded, secret-free, and recoverable after a truncated final line. Compaction or a terminal summary may be added later, but the append log remains recovery evidence until the apply reaches a verified terminal state.
Shared inference providers
For v1:
Rollback proceeds in reverse dependency order only when owner, generation, live identity, and dependent state still permit it. Report rollback as planned, verified, failed, or inconclusive; do not promise universal rollback.
Resume and superseding intent
Resume binds to the exact unfinished orchestration: deployment UID, apply ID, config and plan digests, target generations, effect graph and receipts, plus revalidated host facts, catalog/image identities, paths, and credential references.
Resume first observes every incomplete or inconclusive effect. It continues or retries only after proving the prior outcome or safe idempotence; it never restarts the whole document blindly.
If YAML changes while an apply is incomplete, ordinary apply must require resolution of the existing journal or create an explicit superseding recovery plan. New intent must not silently reinterpret unfinished effects.
Partial-application status
Status combines the durable journal and registry with live observations and reports deployment name/UID, desired config digest, last apply ID and outcome, per-resource state, drift/retained/incomplete/inconclusive resources, last verification time, and the exact next recovery action.
JSONL progress events may mirror these transitions, but status authority is durable state plus live observation, not the event stream.
Required first implementation slice
After this epic records Accept, the first slice remains non-mutating but models the complete multi-sandbox contract:
metadata.name,metadata.uid, providers, andsandboxes[].The first mutating slice deliberately fails after one sandbox succeeds and proves durable journaling, truthful partial status, dependency-safe retention/rollback, and exact resume. This failure case is required acceptance evidence for multi-sandbox v1; an all-green apply alone is insufficient.
These decisions refine earlier comments where they differ, including restoring
metadata.nameand addingmetadata.uidbecause multi-resource ownership is now a proven consumer of configuration identity.config exportfor an existing sandbox #10938cv commentedon Sep 3, 2026
Product and engineering decision: Accept
Decision: Accept
Reason: Adopt one versioned, declarative
NemoClawConfigas NemoClaw's supported desired-state contract for onboarding. Guided, human-authored, and agent-authored configuration must converge through the same validation, planning, and apply architecture. This direction is accepted because it reduces overlapping public inputs, precedence rules, duplicated validation, and parallel mutation paths while preserving guided onboarding as a configuration-authoring experience.Placement: Core NemoClaw CLI and onboarding architecture.
Accountable owner: The NemoClaw team owns the schema, migration, compatibility policy, security review, documentation, and release validation.
Compatibility and removal direction: The first implementation slice, #10938, is strictly read-only
config export. It changes no existing input or mutation behavior, so it does not require a compatibility period or removal release. Before any later child issue introduces writes, changes existing behavior, or removes/reinterprets a public menu, flag, or selection environment variable, that child must define its compatibility policy, release target, migration diagnostics, and removal end state. Adding the configuration file as a permanent parallel execution path is not accepted.Validation plan:
This decision authorizes implementation of accepted child slices within these constraints. #10938 remains the first, read-only capability slice. Adoption, UID binding, apply, pruning, rollback, and multi-resource resume remain deferred until separately scoped child issues define their mutation, ownership, compatibility, and recovery contracts.
feat(config): export verified sandbox configuration (#11015)
89 remaining items
fix(config): reject unsupported Gemini config export (#12551)
cv commentedon Oct 18, 2026
Closing as not planned. This issue concerns the TypeScript product on
main, and work has moved to v1, a separate implementation. Reopen it if this still applies tomain.