Skip to content

Export 1..* OpenClaw agents sharing one hosted inference route #11854

Description

@cv

Parent: #10904. Implementation target: main.

Problem and outcome

#11434 added one read-only secondary. Main still rejects an otherwise supported Docker/OpenClaw sandbox containing primary plus two read-only agents. Export the complete roster without an artificial two-agent limit.

At f5c05a0e6a59bd5133c50e31becbff25af274c33, export verification requires manifest.agents.length === 1; export evidence caps additional agents at one, and semantic validation requires a primary/secondary pair.

Before / after

Before

At the recorded source revision, a Docker/OpenClaw sandbox roster-demo with native primary main plus researcher and reviewer cannot be exported, even when both secondary agents have only the read tool and share the verified hosted inference route.

nemoclaw config export roster-demo --output roster-demo.yaml

The export-specific two-agent limit rejects the source. The command exits nonzero without publishing a document; it must not export only the first two agents.

After

The same command succeeds and writes a complete configuration containing all three agents. The roster excerpt is:

# spec.sandboxes[0].agents — identical inference blocks omitted here
- name: primary
  type: openclaw
- name: researcher
  type: openclaw
  tools:
    allow: [read]
- name: reviewer
  type: openclaw
  tools:
    allow: [read]

The full output includes the same verified inference.routes block on every agent, maps native main to primary, and preserves secondary names and order. Primary-only and the existing two-agent case keep working. Larger admitted rosters use the same rules within existing document/runtime limits.

Duplicate or reserved names, a divergent model/route, unsupported tool grants or unsupported manifest settings still refuse the whole export. The regression checks exact roster membership and restrictions through the full action, with no changes to the running agents.

Scope

Support a primary OpenClaw agent plus zero or more uniquely named read-only agents sharing its single verified hosted route. Preserve the native main → exported primary mapping and reuse the existing manifest validator. Retain current document-size and runtime admission limits; remove the export-specific 1..2 restriction.

Acceptance

  • Export primary alone, the existing two-agent case, and primary plus researcher and reviewer, both with tools.allow: [read].
  • Preserve every agent's name, tool restriction and shared route in deterministic order; never truncate the roster.
  • Reject duplicate/reserved names, divergent models/routes, and unsupported manifest settings with no published document.
  • Keep shared execution, interfaces and observability on primary; a secondary must not acquire independent unsupported settings.
  • Prove schema validation and the full export action agree for the three-agent case.

Managed-inference combinations are separate follow-ups. Arbitrary tool lists, subagent delegation policy, per-agent models and Podman qualification remain outside this slice.

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: N/A. 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.

Acceptance for this mapping: Record the roster disposition and its source-to-target semantics. Until then, reject unrepresentable rosters without publishing partial YAML.

Sources: types.rs, validation.rs, multiple-sandboxes.yaml.

Exporter acceptance scope

Apply these requirements to the feature or regression covered by this issue and its accepted scope.

  1. Define v1-compatible YAML. Document the required fields and an example using apiVersion: nemoclaw.nvidia.com/v1alpha1 and kind: NemoClawConfig. Record the target v1 revision 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.
  2. 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.
  3. 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

  1. added
    enhancement
    area: cli
    on Sep 15, 2026
  2. kaofelix commented on Sep 16, 2026

    @kaofelix
    Collaborator

    Product and engineering decision: Accept

    Decision: Accept.

    Reason: Preserve supported OpenClaw deployments containing the primary agent and one or more read-only secondary agents through the existing configuration-export pipeline. The current one-secondary restriction is an export limitation rather than a runtime or desired-state requirement, and silently truncating a roster is not acceptable.

    Placement: Core NemoClaw CLI configuration model and shared export domain. Extend the existing manifest validator, evidence, verifier, document builder, semantic validation, and installed-CLI E2E owner; do not add a second roster representation or export engine.

    Accountable maintainer and implementation owner: Kao Félix (kaofelix).

    Accepted scope: Native Linux, Docker, OpenClaw, one primary plus one or more uniquely named read-only secondary agents, all sharing the primary verified hosted inference route. Preserve runtime main as exported primary, every secondary name and order, tools.allow: [read], and existing document and runtime bounds. Execution, interfaces, authentication, and observability remain primary-owned. Duplicate or reserved names, divergent routes or models, unsupported tools or settings, missing authority, identity drift, and unstable observations must refuse the entire export without publishing a partial document.

    Managed inference combinations, Ollama combinations, independently routed agents, arbitrary tool policies, subagent delegation policy, per-agent models, Podman qualification, configuration apply, and resource adoption remain outside this slice.

    Validation plan: Exercise the shared runtime manifest validator and generator, public schema semantics, export evidence and verifier, document builder, complete export action, and live SDK adapter. Prove a primary plus researcher and reviewer round trip with exact order, tools, and route; retain primary-only and two-agent behavior; cover duplicate and reserved names, divergent routes and models, unsupported settings, source instability, redaction, and no-publication failure behavior. Reuse an existing installed-CLI hosted-inference E2E scenario, keep private export cleanup and credential scanning, and preserve the E2E assertion budget. Run focused CLI tests, schema checks, E2E-support checks, changed tests, CLI typechecking, and applicable GitHub validation.

    Coordinate overlapping verifier and evidence edits with #11889 before publication. This acceptance authorizes implementation of #11854 only within the boundaries above.

  3. self-assigned this
    on Sep 16, 2026
  4. added a commit that references this issue on Sep 17, 2026
    e1f4860
  5. added
    area: integrations
    integration: openclaw
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: cliarea: integrationsenhancementintegration: openclaw

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions