Repository navigation
Description
Parent: #10904. Implementation target: main.
Problem and outcome
Main exports model tuning for hosted inference but its managed-vLLM evidence branch has no tuning overrides and requires the canonical startup profile. Export already-supported agent-side tuning without changing the catalog-owned serving recipe.
At f5c05a0e6a59bd5133c50e31becbff25af274c33, see managed export evidence, profile verification and projection, and fixed context emission.
Before / after
Before
At the recorded source revision, vllm-tuning uses the existing fixed Nemotron service and has retained agent-side tuning of maxTokens: 8192, reasoning: true and reasoningEffort: high.
nemoclaw config export vllm-tuning --output vllm-tuning.yamlThe managed branch requires the canonical startup profile and cannot carry these tuning overrides. Export exits nonzero without publishing a document.
After
The same supported source exports successfully. Its primary route is:
# spec.sandboxes[0].agents[0].inference
routes:
- name: primary
providerRef: managed-vllm
overrides:
model: nvidia-nemotron-3.5-lightning-30b-a3b-nvfp4
contextWindow: 65536
maxTokens: 8192
reasoning: true
reasoningEffort: highThese values come from the retained agent settings and verified serving identity. The inference provider still contains the same catalog/profile/recipe digests, model revision and runtime image. The server's fixed context length, GPU allocation and launch arguments remain unchanged.
The default managed export keeps its existing semantics; false/default reasoning must not be inferred as enabled merely because this model supports reasoning. A conflicting context/model, invalid tuning, inconsistent workload authority or serving drift still refuses export. The regression compares the complete route and provider and also covers composition with execution settings from #11855.
Scope
Preserve supported retained maxTokens, reasoning, and reasoningEffort under the primary route of the existing fixed Nemotron profile. Keep its required contextWindow: 65536 and immutable catalog/profile/recipe/model identities. Share setting-projection code with the execution follow-up instead of adding another profile builder.
Acceptance
- A supported non-default maximum output-token value and reasoning effort survive the full export action exactly.
- Preserve effective false/default reasoning semantics; emit non-default values rather than inventing intent from the model name.
- Retain the fixed context window and reject conflicting route or serving identity.
- Live provider/route evidence and retained workload settings must still agree; unrelated startup-profile changes remain rejected.
- Existing hosted, Ollama and canonical managed-vLLM exports retain their behavior, including composition with supported execution settings.
This slice does not export arbitrary vLLM arguments or change server context length, GPU allocation, recipe selection or inference authentication.
Delivery boundary
Extend the existing observation → verification → document builder → schema → publication pipeline. Export remains read-only and emits credential references only. Preserve successful existing exports and refusals for unrelated unsupported state. Regenerate the checked-in schema when its source changes.
Use a failing behavioral test before implementation, focused schema/action tests, and an existing installed-CLI scenario for the real boundary. Reuse coverage work in #11485; branch-to-branch translation and deployment parity remain with #11810. This issue does not add config-driven apply, resource adoption, or change existing onboarding inputs.
YAML requirements — v1 scan (2026-09-21)
Target: v1 at 88c6600c06b0. The document version is nemoclaw.nvidia.com/v1alpha1, with kind: NemoClawConfig.
Format: Available. YAML availability does not establish exporter completion or live compatibility.
This is the current target reference. Earlier examples describe their original revision; this update does not change issue status.
At spec.sandboxes[].agent.inference.routes[].overrides (illustrative token value; preserve verified source settings):
model: nvidia-nemotron-3.5-lightning-30b-a3b-nvfp4
contextWindow: 65536
maxTokens: 8192
reasoning: false
reasoningEffort: defaultcontextWindow: 1–4,194,304. Preserve this fixed-profile source's verified 65536 context.maxTokens: 1–1,000,000,000.reasoningis boolean; do not infer it from the model name.reasoningEffort:default,low,mediumorhigh. Non-default effort is allowed only on the initial default route.- Keep agent token limits distinct from
service.serving.contextTokens. The route model must equal the service's resolved served name. - Current service output follows Restore managed local inference config export in v1alpha1 #12012; v0 profile provenance remains N/A as described there.
Acceptance for this mapping: Preserve effective false/default reasoning and observed limits through the complete export. Validate composition with #11855 and current service references.
Sources: agent_inference.rs, config.rs, inference-tuning.yaml.
Exporter acceptance scope
Apply these requirements to the feature or regression covered by this issue and its accepted scope.
- Define v1-compatible YAML. Document the required fields and an example using
apiVersion: nemoclaw.nvidia.com/v1alpha1andkind: NemoClawConfig. Record the targetv1revision and verify compatibility with its parser. If a required format does not exist, mark it N/A and link the schema dependency. N/A does not satisfy this requirement. - Export the target feature. The real configuration exporter must export the feature from a representative, admitted v0 deployment. Preserve the issue's required settings in the generated YAML. The raw output must pass the target v1 parser without manual field rewriting or a compatibility translator.
- Provide manual or E2E proof with the real exporter. Attach a manual reproduction or an E2E run using the installed or built exporter CLI against a real source deployment. Record the source feature setup, exporter version/commit, target v1 commit, command, output artifact or run link, and result. Show that export succeeds, the required feature settings are preserved, and the raw YAML passes target validation. A handwritten example or mocked builder test alone does not satisfy this requirement.
For E2E proof, identify the owning feature or migration scenario and reuse it where possible. Deterministic mapping tests remain responsible for field and refusal cases; the live proof covers the real source-to-exporter boundary.
This section defines acceptance requirements; it does not assert that the evidence is already complete.
Activity
chore(install): revert OpenShell SDK provisioning
fix(config): retain managed vLLM execution and model tuning (#11889)