Repository navigation
Description
Parent: #10904. Implementation target: main.
Problem and outcome
The exporter understands a read-only secondary agent and the attached-Ollama/managed-proxy topology separately, but sharesPrimaryHostedRoute rejects any read-only roster whose provider has a serving object. Allow their supported combination.
Source baseline: f5c05a0e6a59bd5133c50e31becbff25af274c33.
Before / after
Before
At the recorded source revision, ollama-roster has primary OpenClaw plus a read-only researcher, both using the verified qwen3.5:9b route through the attached daemon and managed proxy.
nemoclaw config export ollama-roster --output ollama-roster.yamlThe hosted-only read-only-roster rule prevents successful export of this combination. A single-agent Ollama deployment and a hosted-inference read-only pair are supported separately.
After
The same command succeeds. Its agents share the same exported Ollama provider and model:
# spec.sandboxes[0].agents
- name: primary
type: openclaw
inference:
routes:
- name: primary
providerRef: local-ollama
overrides:
model: qwen3.5:9b
- name: researcher
type: openclaw
tools:
allow: [read]
inference:
routes:
- name: primary
providerRef: local-ollama
overrides:
model: qwen3.5:9bThis is a roster/route excerpt; any supported retained tuning is included identically on both routes in the full output. The provider retains the verified daemon/proxy ports, external-daemon ownership, managed-proxy ownership and selected model digest.
The full export must preserve every admitted secondary after #11854. Different secondary routes/models, unsupported tools/settings, missing roster authority and daemon/proxy/model drift still refuse publication. The regression exercises this combination without changing either agent or the inference resources. Broader Ollama model support remains #11857.
Scope
Native Linux, Docker, primary OpenClaw plus read-only secondary agents, all sharing the same single verified attached-Ollama route. Build on #11854; retain existing daemon/proxy/model ownership and authentication semantics.
Acceptance
- Export primary plus researcher on the currently supported Ollama model with matching routes and
tools.allow: [read]. - Also accept a larger roster once 1..* export support lands, without introducing another special agent-count limit.
- Validate Ollama backend, proxy, model digest and live route through the existing observer before publication.
- Reject any secondary with a different route/model, unsupported tools, duplicate identity or unsupported per-agent execution settings.
- Keep hosted-roster and single-agent Ollama outputs unchanged; exercise the complete action and an existing Ollama qualification scenario.
This slice does not broaden models, daemon management, platforms or per-agent inference selection.
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: Partial. 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.
N/A — equivalent same-sandbox v0 roster format. Current v1 allows exactly one spec.sandboxes[].agent; it has no agents array, primary-agent marker, roster order, delegation or shared-workspace contract.
Existing YAML can declare multiple sandboxes with one agent each. Named spec.inferences and spec.harnesses can share configuration, but each sandbox runs its own runtime. That layout does not establish equivalent v0 roster behavior.
Do not silently split a source roster or discard secondary agents. #12133 must record an accepted migration disposition before this issue's roster output can target current v1.
Available — per-agent read-only tools. At spec.sandboxes[].agent.tools:
allow: [read]This is supported for one OpenClaw agent. It excludes tools.disclosure and attached web search; it does not enforce OS filesystem permissions.
The attached Ollama (kind: ollamaProxy) service uses spec.services and provider serviceRef; #12012 owns that mapping. Execution, interfaces and observability belong to the sandbox harness. A valid single-agent fragment does not satisfy this issue's multi-agent requirement.
Acceptance for this mapping: Resolve #12133 before publishing roster output. Preserve each admitted agent identity, read-only restriction, shared model and verified local-serving dependency without silently changing sandbox boundaries.
Sources: agent_inference.rs, types.rs, registry.rs.
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
sandl99 commentedon Sep 16, 2026
Product and engineering decision: Accept
Decision: Accept, as explicitly approved by San Dang in the implementation session.
Reason: Export supported read-only OpenClaw rosters sharing an attached Ollama route without losing agents, settings, or verified model identity.
Placement: Core NemoClaw CLI configuration export. Extend the existing observation, verification, document builder, schema, and publication pipeline. Reuse roster support from #11854 / #11900 and selected-model support from #11857 / #11891.
Accountable maintainer: San Dang (@sandl99).
Scope and compatibility: Native Linux, Docker, primary OpenClaw plus every admitted read-only secondary agent sharing one verified attached-Ollama route. Preserve names, order,
tools.allow: [read], selected model, and supported shared route tuning. Preserve external daemon ownership, NemoClaw-managed proxy ownership, listener ports, authentication semantics, and independently verified model digest. Shared execution, interfaces, authentication, and observability remain primary-owned. Existing hosted-roster and single-agent Ollama behavior remains supported.Lifecycle and security: Export remains read-only and emits credential references only. It must not pull or delete models, reconfigure the proxy, or change running agents. Reject divergent routes or models, unsupported tools or secondary settings, duplicate identities, missing authority, backend or model drift, and unstable observations without publishing partial YAML.
Validation plan: Start with a failing behavioral regression. Prove complete-command export for primary plus researcher, and primary plus researcher and reviewer. Cover larger admitted rosters without another count limit. Run focused pipeline and schema tests, applicable repository checks, and schema generation if needed. Extend the existing Ollama installed-CLI qualification scenario. Follow repository E2E authorization rules and distinguish fixture evidence from live evidence.
Exclusions: New model support, daemon management, additional platforms, independent agent routes, apply, adoption, and v0-to-v1 migration.
Implementation targets main. While #11900 remains unmerged, use an isolated stacked branch and retain that dependency explicitly.
fix(config): export read-only agents sharing attached Ollama (#11918)
sandl99 commentedon Sep 21, 2026
Closing as not planned for v1, per San Dang's scope decision.
We are excluding migration of v0 same-sandbox multi-agent rosters from v1 for two reasons:
This disposition applies to #11858, #11859, and #12133 and supersedes earlier acceptance of further roster-export work targeting v1. Existing v0 support and already merged changes remain unaffected.
Unsupported rosters must be rejected without publishing partial YAML. The exporter must not discard secondary agents or silently split them into separate sandboxes. Splitting changes shared runtime, filesystem, and lifecycle boundaries and may break configured delegation.
Single-agent Ollama and managed-vLLM export remains in scope under #12012. Multi-agent teams can be considered through a separate future design decision; this closure makes no v2 commitment.