Repository navigation
Description
Parent: #10904
Planning priority: P1, next batch. This slice is independent of Hermes and Ollama export.
Problem Statement
The runtime accepts a managed extra-agent manifest, but configuration export admits only the canonical primary-agent configuration. A useful two-agent sandbox therefore cannot preserve its agent identity, tool restrictions, and inference binding through export.
Desired Behavior
Export a managed OpenClaw sandbox containing the preserved primary/default agent and one secondary agent named researcher. The secondary agent has tools.allow = [read] and inherits the verified primary hosted inference route.
This covers one meaningful NEMOCLAW_EXTRA_AGENTS_JSON value. Preserve both agents in spec.sandboxes[].agents[]. Use a typed tool allowlist; do not copy arbitrary JSON or encoded transport into the document.
The runtime primary identity is main; the existing public export names the primary agent primary. Define this mapping explicitly. The researcher entry must never become the default agent. Omitted runtime workspace paths resolve through the existing canonical per-agent layout.
Scope and Exclusions
Include exactly one primary and one secondary OpenClaw agent, an immutable managed image, hosted inference, canonical workspace layout, and a nonempty read-only tool allowlist.
Exclude a different secondary provider/model, multiple secondary agents, subagent model overrides, arbitrary tools or plugin configuration, primary/main overrides, global defaults changes, caller-chosen filesystem paths, Hermes, messaging, and config apply.
Accept only the bounded manifest shapes that the existing generator normalizes to this supported state. Preserve current input parsing and precedence.
Ongoing Ownership
Proposed maintainers: NemoClaw CLI, OpenClaw configuration generation, and onboarding maintainers.
Placement and Support Expectations
The epic's Accept decision establishes the shared architecture. This child is a proposed bounded export extension; a child-specific Accept decision is still required before implementation.
Proposed placement: core NemoClaw CLI and the shared configuration-export domain. Proposed accountable maintainer: the NemoClaw team, including the component maintainers named below. Implementation assignee: unassigned.
The accepting decision must confirm the reason, placement, accountable maintainer, bounded supported configuration, and validation plan. Publishing this issue does not assert implementation approval or completed qualification.
Reason for the proposal: export a currently supported two-agent runtime configuration without requiring general multi-provider or arbitrary manifest support.
Before acceptance, settle primary/runtime identity mapping, reserved-name handling, inherited-route representation, and the narrow public tool-allowlist shape.
Validation Plan
| Case | Required result | Shortest stable evidence |
|---|---|---|
| Allowed | Primary/default agent and researcher survive export with tools.allow = [read] and the same verified route | Actual manifest validator/generator plus profile-to-document/action tests |
| Runtime meaning | Generated runtime configuration keeps main as default and researcher in canonical workspace/agent directories | Existing generator behavior tests |
| Denied | Duplicate/reserved IDs, primary collision, default=true on researcher, unsupported fields, or missing required tool restrictions reject | Generator-boundary and export-verifier tests |
| Path safety | Traversal, absolute custom paths, and alternate workspace/agentDir values do not enter the supported document | Existing path validator plus complete-action rejection tests |
| Route fidelity | Distinct provider/model or unexpected route override remains rejected | Verifier and schema semantic tests |
| Ambiguous | Missing/malformed managed manifest or disagreement with retained workload identity produces no partial agent list | Receipt, observation, and action tests |
| Changing source | Manifest, workload identity, or primary route changes between observations; export rejects publication | Shared stability/action tests |
| Secrets/failure | Credential-shaped nested fields and synthetic secrets remain absent; read/output failure preserves destination | Strict validation, redaction, and publication tests |
Prefer test/generation/generate-openclaw-config-agents-manifest.test.ts for actual runtime-generator semantics. Reuse the existing validator rather than copying its allowlists into a new export-only authority.
Run focused manifest/generation, profile, schema, verifier, document, and action tests, then required PR validation. Verify canonical single-agent export remains unchanged.
The missing runtime dimension is agreement between retained two-agent intent and the generated runtime's identity/default/tool behavior. If source/generator tests fully establish that contract, do not add a live target merely to count an input. Use an existing agent/session target on GitHub runners only for a remaining real startup or filesystem behavior, and document that dimension.
Compatibility Requirements
This is an additive, read-only extension of nemoclaw.nvidia.com/v1. Existing valid documents and canonical default exports retain their meaning and serialization. No existing environment input, flag, onboarding behavior, credential resolver, or lifecycle operation changes.
Use the maintained managed images and repository-pinned OpenShell version. The first qualification is native Linux with a NemoClaw-managed gateway and Docker runtime. Other platforms and runtimes need separate evidence. This slice does not establish config apply support.
Include implementation, schema generation, behavioral tests, and owning repository guidance in one PR. User documentation follows the repository's post-merge catch-up workflow where permitted.
The schema's narrower public name grammar may exclude runtime IDs containing unsupported characters. Reject those IDs explicitly; do not silently rename them or change current runtime ID rules.
Security or Privacy Impact
The secondary agent references the existing verified provider. Credential values stay in existing provider/OpenShell custody for their existing lifetime. Export reads only permitted reference/binding metadata and creates no new credentials or cleanup responsibility.
Do not read workspace contents, conversations, full runtime environments, or arbitrary live agent configuration. The contract is verified retained managed intent, not reconstruction of untracked in-sandbox edits.
Use two stable observations containing every new authority field. Reject unsupported, missing, foreign, stale, contradictory, or changing evidence before publication. Substitute only validated supported profile leaves, then retain the complete residual-profile comparison.
A read failure is an infrastructure failure: stop without output. Inconclusive identity or ownership is not success: stop with a redacted diagnostic. On publication failure, preserve the prior destination and remove only exporter-owned temporary output. Export never repairs, starts, stops, enrolls, adopts, or deletes a runtime resource. No new retry policy is introduced.
Preserve URL/SSRF restrictions, effective policy, immutable workload identity, strict unknown-field rejection, and private atomic file publication. Add no dependency, broad environment reader, arbitrary settings dictionary, second export engine, or custom cryptography.
Implementation Idea
Current behavior owners:
Sibling paths checked: legacy array and object manifests, explicit primary/default handling, canonical workspace paths, tool restrictions, and cross-provider model rejection. Only the same bounded normalized result is admitted.
Extend the existing configuration model/schema, export evidence, verifier, document builder, and complete export action. Add a narrow adapter observation only where the capability requires new evidence. Regenerate the public JSON schema from its source.
Coordinate edits to src/lib/config/model.ts, src/lib/config/schema.ts, src/lib/domain/config/export-evidence.ts, src/lib/domain/config/verify-export-source.ts, and src/lib/domain/config/export-document.ts. Keep one owner for each behavior and reuse existing validators and fixtures. Do not hand-merge generated schema output.
Stop if public/runtime identity mapping is unresolved, a supplied setting cannot be represented, or the implementation needs a second manifest validator. Keep unsupported manifests rejected as a whole.
Category
Feature
Checklist
- Searched the epic's sub-issues and related export issues; no duplicate of this bounded capability was found.
- Described the problem, desired behavior, scope, and acceptance evidence.
- Record the child-specific Accept decision before implementation.
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.
- 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
cv commentedon Sep 10, 2026
Implementation design is ready for a child-specific decision. Proposed disposition: Accept; not yet recorded as accepted scope.
Reason: preserve an existing two-agent OpenClaw deployment through the shared exporter. Placement: core CLI configuration/export and the existing packaged manifest validator. Proposed accountable maintainer: Carlos Villela (
cv).The bounded contract is:
mainremains the sole default and exports asprimary. One secondary keeps its ID. Permit names accepted by both existing grammars exceptmainandprimary; useresearcherfor qualification.tools.allow: [read]and the same verified hosted inference route as the primary. An omitted secondary model or one equal to the retained primary model is allowed. Other tools, models, providers, and secondary agents remain outside this slice.Move the generator's nested manifest normalization into the existing
src/lib/extra-agents-validation.ts, which both image surfaces already package. Delete the old copies and keep environment decoding in its existing owner. The exporter uses that validator against the retained startup receipt, adds typed secondary-agent evidence, and appends the secondary in the existing document builder. No new validator, directory, inheritance mechanism, or export engine is needed.Validation will exercise the actual generator, retained profile, shared schema, verifier, and complete export action. Evidence must show default identity, route/tool fidelity, canonical paths, rejection without publication, source stability, redaction, and unchanged prior document shapes. Existing GitHub PR and image workflows will provide broad checks and packaged-module loading evidence; local checks stay focused.
This is an additive, read-only v1 extension. Initial qualification is native Linux with a managed gateway and Docker. It changes no input precedence, live agent-apply behavior, or credential lifecycle. Implementation remains pending the recorded child decision and coordination with the in-flight export PRs.
cv commentedon Sep 10, 2026
Product and engineering decision: Accept
Decision: Accept. Carlos Villela approved implementation of this reviewed design on September 10, 2026.
Reason: Preserve the supported two-agent configuration with one existing shared manifest validator, the primary's verified hosted route, and read-only secondary tools.
Placement: Core NemoClaw CLI configuration and shared export domain, with changes to the existing behavior owners described in the reviewed design.
Accountable maintainer and implementation owner: Carlos Villela (
cv).Accepted scope: One secondary OpenClaw agent. The linked design establishes the supported configuration, ownership, compatibility, exclusions, and implementation boundaries. This is an additive read-only v1 export extension; existing input precedence, authentication and credential lifecycle, and config-apply behavior remain unchanged.
Validation plan: Actual generator/profile/schema/verifier/complete-export evidence for default identity, shared route, tool restriction, canonical paths, denial without publication, stability and unchanged prior document shapes; existing GitHub PR and image-loading qualification. GitHub workflows own broad and runtime validation; local checks remain focused. Include owning repository guidance and retain existing security and publication controls.
cv commentedon Sep 10, 2026
The accepted secondary-agent export is implemented and independently reviewed. The final signed candidate is
87e502092bc063c1a5faee0006939927eb873348; draft publication remains pending the recorded canonical-validation decision.The exporter preserves runtime
mainas publicprimary, plus one read-only secondary on the same verified hosted route. Generation and export share the existing packaged manifest validator. Existing v1 documents retain their previous behavior.The feature selection covers 656 passing cases after building the missing catalog prerequisite. Final fixture checks pass all 197 verifier cases, and the test-table repair passes all 137 schema cases plus the unchanged conditional-growth guard. Every existing assertion is preserved. The shared validator also has four narrowly scoped lint rules.
Canonical validation uses an isolated environment without contributor credentials. Both builds passed before the final test-only repair; the final run reuses 6,565 hash-verified outputs with identical production inputs and refreshes commit identity. Commitlint, pre-push typing and all other applicable hooks pass; the remaining failure is the inherited, untouched test's 4359 lines against main's 4358-line budget. The applicable broad check stops at that failure, leaving manual coverage unrun. GitHub CI, automated reviews and existing image/package qualification still need the published draft.
This can proceed as a separate draft atop unchanged direct-tools #11430; the parent's Advisor service failure remains its own review decision. Complete installed export also depends on the separate #11421 SDK loading fix. No successful live qualification, ready-for-human-review status, or merge is claimed.
cv commentedon Sep 10, 2026
Draft #11478 is published at
8312d841d6197ec128570fadab7275ab2d718ed0, synchronized with main9e07bcfa2bd944c84582ed787a7c1d15a5d6e4b7and direct-tools PR #11430.The accepted slice exports one read-only secondary OpenClaw agent sharing the primary hosted inference route. It reuses the shared manifest validator and export pipeline. Primary authentication and telemetry remain primary-owned; secondary tests cover the exact supported fields, refusal cases and stable output. The complete secondary suite now has a focused, co-located owner without reducing coverage.
Independent review is complete. All383 focused integration cases, scoped lint/typing, fresh CLI/plugin builds and all canonical routine publication checks pass. GitHub verifies all12 outgoing commits. Broader GitHub coverage/evaluation is pending, so the PR remains draft. Installed export still depends on SDK repair #11472.
feat(config): export one read-only secondary OpenClaw agent (#11478)
fix(config): export the verified selected Ollama model (#11891)
fix(config): retain managed vLLM execution and model tuning (#11889)