Skip to content

Support config export for managed Hermes sandboxes with hosted inference #11286

Description

@kaofelix

Parent: #10904

Problem Statement

nemoclaw config export supports one managed OpenClaw sandbox with hosted external inference. A managed Hermes sandbox cannot produce the same canonical, secret-free NemoClawConfig, even when it uses the same supported gateway, image, inference, and policy boundaries.

This leaves Hermes operators without the read-only configuration export that #10938 established for OpenClaw. The export architecture in #11065 provides shared observation, verification, document construction, validation, and publication boundaries, but its schema and source verifier still require OpenClaw.

Implementation depends on #11065. Do not start implementation until that PR merges and this issue records an Accept decision.

Desired Behavior

Export one supported NemoClaw-managed Hermes sandbox:

nemohermes config export <sandbox> --output <path|->

The equivalent nemoclaw config export invocation must use the same command, verifier, and export pipeline. It must not introduce a Hermes-specific implementation or document format.

The command emits the aggregate nemoclaw.nvidia.com/v1 NemoClawConfig. The document contains one Hermes agent and its hosted inference route. It contains credential references, never credential values.

The command must use the shared configuration type and export pipeline from #11065. It must verify Hermes-specific startup state without applying OpenClaw defaults or accepting OpenClaw provenance.

Scope and Exclusions

Included

  • One primary Hermes agent.
  • The default workspace.
  • A NemoClaw-managed gateway.
  • An immutable NemoClaw-managed Hermes image.
  • Hosted external inference with a supported API family.
  • A verified, losslessly representable effective policy.
  • The existing file, standard-output, JSON-result, redaction, stability, and atomic-publication contracts.
  • Specific diagnostics for missing, ambiguous, unsupported, drifted, or unstable Hermes evidence.
  • The canonical hosted-inference Hermes startup state: web search disabled, no messaging, no enabled Hermes tool gateways, progressive tool disclosure, and the dashboard state produced by noninteractive managed onboarding.

Excluded

  • OpenClaw and Deep Agents Code behavior changes.
  • Local or managed inference, including vLLM, Ollama, llama.cpp, and NIM.
  • Secondary agents, added plugins, messaging, enabled web search, enabled Hermes tool gateways or other managed tools, non-progressive tool disclosure, mounts, direct sandbox GPU, observability, and custom images.
  • Non-default Hermes dashboard or API configuration unless the accepted design proves exact representation and live evidence.
  • Multi-sandbox export, apply, UID binding, adoption, pruning, rollback, and resume.

This issue expands only the successful export profile. Existing fail-closed behavior remains unchanged for excluded or unverified configurations.

Ongoing Ownership

Proposed owner: NemoClaw CLI, Hermes, and onboarding maintainers.

The accepted decision must name one accountable implementation owner.

Placement and Support Expectations

Requested placement: core NemoClaw CLI.

After merge, the supported export contract includes the bounded Hermes profile in this issue. Other Hermes configurations remain unsupported unless a later accepted issue adds them.

Proposed product decision: Accept.

Reason: Hermes is a maintained NemoClaw agent. Extending the existing read-only export pipeline to one canonical Hermes profile provides configuration portability without adding mutation behavior or a second export engine.

Validation Plan

  • Derive the static and runtime schema from the shared configuration model.
  • Verify that a canonical managed Hermes fixture exports schema-valid YAML.
  • Verify Hermes image, gateway, lifecycle, startup-profile, inference-route, endpoint, credential-reference, and policy agreement.
  • Reject OpenClaw startup provenance for a Hermes sandbox.
  • Reject non-canonical or incomplete Hermes startup state with a specific fidelity diagnostic.
  • Verify that credential values never enter YAML, JSON, diagnostics, arguments, or temporary files.
  • Preserve the existing stable-observation retry and zero-mutation guarantees.
  • Preserve OpenClaw export behavior and its existing tests.
  • Prefer extending security-posture-hermes, currently the nearest existing managed-Hermes and NVIDIA-hosted-inference target, after confirming that its owning paths cover configuration export. Do not add a duplicate live target.
  • Verify that nemoclaw config export and its nemohermes alias use the same verifier and produce semantically identical documents.
  • In live evidence, export a managed Hermes sandbox, validate its agent, image, endpoint, and explicit policy, then change recorded identity and require a drift failure with no output file.

Compatibility Requirements

  • Hermes managed images and hosted external inference supported by the maintained release.
  • The OpenShell SDK and gateway version pinned by NemoClaw after refactor(config): make export contracts explicit #11065 merges.
  • Linux file output. Standard-output behavior follows the existing supported-host contract.
  • Existing OpenClaw exports remain compatible.
  • The schema change must be additive within nemoclaw.nvidia.com/v1. If Hermes cannot be represented additively, stop for a schema-version decision.
  • After refactor(config): make export contracts explicit #11065 merges, confirm that its merged schema and verifier still support this additive extension. If they do not, return this issue for design review before implementation.

Security or Privacy Impact

The export remains read-only and secret-free.

Credential entries may contain an approved environment-variable name. The command must not read, test, hash, log, or serialize the credential value.

Hermes state, conversations, caches, learned data, environment values, and untracked in-sandbox changes must not enter the document. Name agreement does not establish ownership. Export requires matching registry, live sandbox, gateway, lifecycle, image, inference, and policy identity.

Missing or inconsistent evidence must stop before output publication. A failure must not mutate the sandbox, gateway, provider, policy, registry, checkpoint, session, or ownership state.

Implementation Idea

  • Extend the shared agent schema with a Hermes variant. Do not create a Hermes-only document type.
  • Add Hermes-specific startup-profile reconstruction behind the existing verified export-source boundary.
  • Reuse shared provider, sandbox, configuration, inference, policy, serialization, and publication adapters where their contracts suffice.
  • Keep agent-specific comparison in the domain verifier. Keep the command adapter thin.
  • Report unsupported Hermes fields instead of omitting them or applying OpenClaw defaults.

Category

Feature

Checklist

  • I searched existing issues and found no duplicate.
  • I described the problem and desired behavior.

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.

  • Select spec.sandboxes[].harness.kind: hermes and one sandbox.agent.
  • Declare hosted inference using inferenceProviders[] with provider: openai, api: openai-completions, HTTPS endpoint, and the observed credential.env.
  • The agent route references that provider and preserves overrides.model. Hermes currently accepts one route.
  • Hermes native authentication, when selected, is agent.auth.method: api-key; its credential comes from the routed provider.
  • Place dashboard/API settings under harness.interfaces, not the agent. Hermes tuning beyond the admitted fields remains N/A; see Export remaining Hermes authentication, tool and tuning intent #12139.

Acceptance for this mapping: Validate raw exporter output with the revision-matched v1 Document::parse; do not rewrite fields before validation. Preserve verified source behavior and secret references.

Sources: fabric-hermes.yaml, hermes-auth.yaml, agent_inference.rs, validation.rs.

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
    needs: triage
    area: cli
    area: sandbox
    area: onboarding
    on Sep 9, 2026
  2. cv commented on Sep 9, 2026

    @cv
    Collaborator

    @kaofelix let's do this! :)

  3. added
    integration: hermes
    needs: design
    and removed
    needs: triage
    on Sep 9, 2026
  4. kaofelix commented on Sep 9, 2026

    @kaofelix
    CollaboratorAuthor

    Design readiness after #11065

    PR #11065 has merged. I compared its configuration-export contracts with this issue’s Hermes scope.

    The merged architecture supports an additive Hermes extension:

    • Widen spec.sandboxes[].agents[].type from the openclaw literal to the openclaw | hermes union within nemoclaw.nvidia.com/v1.
    • Carry the verified agent discriminator through the shared VerifiedExportSource and document builder. Do not add a Hermes-specific export pipeline or document type.
    • Reconstruct the expected Hermes startup profile with the existing managed-startup profile builder. Accept only the default noninteractive managed profile described in this issue: hosted inference, progressive tool disclosure, disabled web search, no messaging, no enabled Hermes tool gateways, and the default disabled dashboard.
    • Include the existing Hermes registry fields needed to reject non-default dashboard, API, authentication, tool-gateway, and other unsupported state.
    • Keep the nemoclaw and nemohermes entry points on the same command, verifier, builder, validation, and publication path.
    • Preserve the existing two-snapshot stability check, secret-free credential-reference handling, zero-mutation behavior, and atomic publication.

    Focused tests can extend the existing schema, verifier, builder, observation, command, and alias coverage. Live validation can extend security-posture-hermes; no additional E2E target is needed.

    No schema-version change or separate Hermes abstraction is required. Stop implementation if the actual Hermes evidence cannot distinguish the accepted canonical profile from an excluded profile.

    Maintainer decision requested: Please record Accept or another decision, name the accountable implementation owner, confirm core CLI placement and the validation plan, and update the needs: design label accordingly.

  5. removed
    needs: design
    on Sep 9, 2026
  6. kaofelix commented on Sep 9, 2026

    @kaofelix
    CollaboratorAuthor

    Product and engineering decision: Accept

    Decision: Accept.

    Reason: Extend the existing read-only configuration-export pipeline to the maintained Hermes agent. This adds configuration portability without mutation behavior, a second export engine, or a new document format.

    Placement: Core NemoClaw CLI and the shared configuration-export domain.

    Accountable owner: @kaofelix.

    Accepted scope: Add the canonical noninteractive managed-Hermes profile described in this issue to nemoclaw.nvidia.com/v1. Carry the verified agent type through the shared verifier and document builder. Both nemoclaw and nemohermes must use the same command and pipeline.

    Compatibility and security: The schema change must remain additive. Existing OpenClaw export behavior must remain compatible. Export must remain read-only and secret-free. Unsupported or unverifiable Hermes state must fail before output publication.

    Validation plan: Extend the existing schema, verifier, builder, observation, command, alias, redaction, drift, and publication tests. Extend security-posture-hermes for live validation. Do not create another E2E target.

    Dashboard-enabled Hermes, messaging, web search, tool gateways, direct disclosure, local or managed inference, custom images, mounts, GPU, observability, and multi-sandbox behavior remain deferred.

  7. added a commit that references this issue on Sep 10, 2026
    ea68ea4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: cliarea: onboardingarea: sandboxintegration: hermes

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions