Repository navigation
Description
Decision requested
@apurvvkumaria: please review the investigation and questions below and record the design decision, accepted scope, accountable maintainer, and validation expectations.
Parent: #10904. Interface dependency: #11340 / #11366.
Decision: pending. This issue requests design direction; it does not authorize implementation. Lifecycle-hook alignment, delivery of #11366, and APF/ATGW runtime qualification are handled separately.
Problem Statement
The declarative configuration work needs to preserve a deployment's requirement for a registered external component. APF/ATGW is the motivating consumer.
The exporter can represent a verified effective policy, but that policy does not identify the external component required by the deployment. Copying the current host registration would also be insufficient: a component installed today might not have participated in an older sandbox's creation.
We need to define what configuration promises, which evidence establishes that promise, and how the contract preserves the ownership boundaries accepted in #11340 and #10514.
Investigation findings
Source inspection used main 3e6fabc8fc1bcec0b58867c23733d9ca8c44a508 and the unmerged #11366 candidate cfcc60b17a36cd2ae62144359c0e3a1ab5bbcd1e. These are code-based findings, not a reproduced APF/ATGW export failure. A particular integration might already be rejected by another unsupported-setting check.
- The exporter has no external-component observation or representation. Its gateway schema contains management, name, and port. The snapshot reader observes registry, gateway binding, sandbox identity, inference, and policy; it does not read component registration or activation state. The builder emits the effective policy as
network.policy.explicit. Schema, snapshot reader, builder. - The lifecycle candidate clears activation evidence after success. Failed or ambiguous activation remains in the onboarding session. Successful activation clears that operation-local evidence. Its gateway identity hashes the component ID and interceptor socket path, which does not establish that a particular sandbox completed activation. Finalization, gateway identity.
- The epic's earlier APF selector describes a different operation. The proposed sandbox-level
network.interceptors: [{ type: apf }]describes providerless, policyless creation. Add lifecycle hooks for external components around managed OpenShell onboarding #11340 configures a gateway-level component with post-create activation. The candidate rejects combining registered-component onboarding with the existing APF selection. These paths must not be treated as interchangeable. Epic design, candidate behavior. - A component ID does not identify its full service configuration. The accepted registration contains only
schemaVersion,componentId,interceptorSocketPath, andactivationSocketPath. It has no APF bundle or ATGW catalog version. The same ID on another host can refer to a differently configured service. Accepted declaration.
Questions for decision
The recommendations below are proposals, not accepted requirements.
1. What should the exported configuration promise?
Should it preserve only the requirement for an operator-registered component, or reproduce a particular APF/ATGW configuration?
Recommendation: Start with the component requirement. Keep service configuration with its existing owner. If reproducibility requires an immutable component profile or bundle identity, define that component-owned contract separately.
2. Where should component selection live?
Does one optional reference under spec.gateway match the gateway-wide interceptor and the accepted zero-or-one component limit? How should this coexist with the earlier sandbox-level APF selector?
Recommendation: Use a gateway-level reference and keep the existing providerless APF operation distinct. Match the existing declaration's componentId; do not introduce another registry.
Illustrative fragment only; the field name and syntax are undecided:
spec:
gateway:
management: nemoclaw
name: nemoclaw
port: 8080
externalComponentRef: policy-governance3. Which evidence is authoritative for export?
What proves that the source sandbox requires this component after successful activation evidence is cleared? Which existing owner should retain or expose that fact?
Recommendation: Consider minimal non-secret component-selection provenance bound to the existing sandbox identity, lifecycle generation, and gateway. Verify it against current gateway configuration. Preserve the requirement to remove operation-local activation evidence; do not retain a policy-ownership receipt or add a status endpoint merely to infer past activation.
Decide how to handle older sandboxes, late registration, removed or replaced components, and failed or ambiguous activation. Current registration alone must not be used to claim historical participation.
4. What does the exported policy mean with a component?
Should network.policy.explicit remain a verified snapshot? Before future apply support, will it mean initial policy, required entries, or some other bounded intent?
Recommendation: Preserve current OpenShell policy authority. A policy snapshot must not claim APF provenance or become a durable NemoClaw policy shadow. Legitimate live policy changes must not be rejected using an old locally retained hash.
5. What are reference, omission, and compatibility semantics?
When future config-driven onboarding names a component, must the protected registration match exactly? If the document omits a component while one is registered or active, what happens?
Recommendation: An explicit reference resolves through the existing protected registration. Omission selects no component. An incompatible active gateway causes a refusal before mutation; it must not be silently rewritten or disabled. Ambient registration must not override YAML intent.
Define compatibility behavior for ordinary onboarding, schema/protocol version handling, release target, migration diagnostics, and removal of any overlapping selection behavior before implementing the mutating slice.
6. What is the smallest supported export case?
Is one completed Linux/OpenClaw sandbox with supported hosted inference and one registered component a sufficient first case? Which agent, MCP, trust, or workload settings does the motivating integration additionally require?
Recommendation: Keep all existing export fidelity checks. A component reference must not make unrelated unsupported settings exportable or establish full ATGW recipe coverage. Identify any additional capability gaps explicitly.
Desired Behavior
Subject to the design decision, an operator can export one supported completed sandbox without losing its verified external-component requirement.
For example, a sandbox whose retained selection and current gateway configuration agree on policy-governance exports that dependency alongside its existing supported settings. If the dependency cannot be established or represented, export refuses with a bounded diagnostic instead of guessing or silently omitting known required behavior.
A possible later slice honors the same reference through #10904's shared apply engine and #11340's lifecycle implementation.
Scope and Exclusions
Included in this design decision:
- The public meaning and placement of the component requirement.
- The evidence required to export it accurately.
- Ownership of host registration, component configuration, and retained selection state.
- Failure, compatibility, policy, and validation expectations.
- The smallest complete export capability and its later apply dependency.
Excluded:
- Resolving the integration README's lifecycle-hook mismatch.
- Delivering or qualifying feat(onboard): add external component lifecycle #11366.
- Installing, configuring, or supervising APF/ATGW services.
- New CA handoffs, credential resolvers, generic shell hooks, or provider-attachment APIs.
- Automatic activation retries or recovery; Add identity-verified recovery for incomplete external-component activation #11391 owns recovery design.
- Multiple components, broader topology support, or full enterprise configuration reproduction without separate acceptance.
Ongoing Ownership
Proposed accountable maintainer for the configuration work: cv, subject to the decision requested above. No implementation owner is assigned by this issue.
NemoClaw configuration and onboarding maintainers own the schema, exporter, gateway writer, and shared engine. External-component maintainers own registration endpoints, service configuration, credentials, and activation behavior. OpenShell remains the authority for sandbox identity and effective policy.
Placement and Support Expectations
Requested placement: core NemoClaw, as a child of #10904 consuming the generic interface in #11340.
The first proposed capability preserves a dependency on a registered component. It does not make the external services a NemoClaw-managed product surface or assert current component health.
#10904's Accept decision and #11340 establish the surrounding architecture. This child needs its own accepted scope before implementation.
Validation Plan
Use the existing schema, snapshot reader, stable-observation, verifier, builder, export-action, and publication tests. Add a lifecycle/state test only where the accepted provenance decision requires one. Regenerate the public schema from its source and retain its package contract.
| Source or operation | Proposed acceptance result |
|---|---|
| Completed supported sandbox, matching provenance and gateway component | Export one component reference with the supported configuration. |
| Ordinary OpenClaw or Hermes source without a component | Preserve existing canonical output. |
| Registration installed after the source sandbox was created | Do not infer component participation from registration alone. |
| Known dependency with missing provenance or wrong registration | Refuse without YAML or a success result. |
| Component removed/replaced or sandbox identity/generation changed | Report missing provenance or drift; do not guess. |
| Registration or gateway changes between observations | Apply the existing bounded read-observation policy; refuse if still unstable. |
| Failed or ambiguous activation | Preserve incomplete state; do not activate, retry, recover, or export a completed deployment. |
| Legitimate live policy change after activation | Read current OpenShell policy; do not consult an obsolete local policy receipt. |
| Unsupported MCP, trust, or workload settings | Preserve existing refusal until their separate capability is accepted. |
| Output failure | Preserve existing destination and temporary-file cleanup semantics. |
| Future apply with missing/wrong registration or conflicting gateway | Stop before gateway effects; do not silently select or disable a component. |
Use a generic component and synthetic credentials for deterministic evidence. Keep credentials out of YAML, diagnostics, events, arguments, and result JSON. Runtime qualification is separately owned; do not add a duplicate live matrix.
Compatibility Requirements
Proposed initial boundary: one supported completed managed OpenClaw sandbox on Linux, supported hosted inference, and one component admitted through the accepted lifecycle contract. Confirm this boundary in question 6.
Keep ordinary OpenClaw/Hermes exports unchanged. File and stdout output use the same source-verification rules. Do not imply new resume, rebuild, recreation, multi-sandbox activation, or externally supervised gateway support.
Security or Privacy Impact
The design must preserve protected-file validation, effective-user authorization, immutable sandbox identity, bounded diagnostics, and source stability.
Component credentials and CA/listener private keys remain in component-owned protected storage. Only the component accesses them; the component owns their lifetime, rotation, and removal. Export must not read or remove them. Public trust certificates are distinct from private keys.
Any retained selection provenance must not include policy ownership, policy contents, old policy hashes, activation bodies, or credentials. No new downloads, cryptography, arbitrary commands, or component mutations are proposed.
Implementation Idea
After acceptance, deliver one complete export slice: representation, authoritative evidence, verification, serialization, refusal, tests, and owning guidance.
Reuse the existing export pipeline and lifecycle/state owners. A schema field without a successful exporter does not count as coverage.
If successful export cannot yet establish provenance, a separately bounded preliminary fix may refuse sources with detected component involvement. Such a refusal must state its detection limits and must not count as successful export coverage.
Later config-driven onboarding must consume the same representation and lifecycle engine after its compatibility and mutation contracts are accepted.
Related Work
- [Epic] Replace onboarding inputs with one declarative configuration #10904 — parent configuration epic.
- Add lifecycle hooks for external components around managed OpenShell onboarding #11340 / feat(onboard): add external component lifecycle #11366 — external-component lifecycle interface and implementation.
- Make OpenShell the sole durable policy source of truth #10514 — OpenShell policy authority.
- Add identity-verified recovery for incomplete external-component activation #11391 — incomplete-activation recovery.
- Document the external-component lifecycle contract #11375 — lifecycle-interface documentation.
Category
Feature
Checklist
- Searched related issues, PRs, and the epic's sub-issues; no existing component-export design issue was found.
- Recorded the investigation, proposed outcome, evidence, and unresolved questions.
- Record the child-specific design 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 — external-component requirement/participation format. The current document has no typed external-component selection, component receipt, or lifecycle-participation field.
spec.gateway.management: external plus endpoint describes a gateway connection. It does not capture a component's identity, listener/trust contract, policy participation or lifecycle ownership. Likewise, spec.services currently admits only Ollama, Ollama proxy and vLLM packages.
Keep the accepted component design and evidence requirements in this issue. Do not invent components, componentRef, arbitrary commands or credential-bearing fields. Fill in the YAML mapping after the owning contract lands.
Acceptance for this mapping: Require the accepted component representation and authoritative source evidence before successful export. Until then, identify the unsupported dependency without mutating it or exposing its protected state.
Sources: types.rs, registry.rs, configuration.md.
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
Darshan3690 commentedon Sep 10, 2026
Hi @apurvvkumaria and @cv sir , I went through the investigation and the related design points.
I’d like to contribute to this issue. Based on the current findings, I think the first implementation slice should focus only on exporting the external-component requirement, without trying to reproduce or manage the APF/ATGW service configuration.
My proposed approach would be:
componentIdrather than introducing a new registry.I would keep the implementation limited to the export slice described in the issue and avoid touching lifecycle recovery, APF/ATGW installation/configuration, or future apply behavior.
If this direction is accepted, I’d be happy to work on the implementation and submit a PR. Please let me know if there is a preferred ownership/state location for the component provenance before I start.
cv commentedon Sep 10, 2026
@Darshan3690 Thanks, but this work needs some internal context and decisions from @apurvvkumaria.
apurvvkumaria commentedon Sep 11, 2026
Design decision: Accept — bounded external-component export
@cv, I approve the export-only direction, with the following decisions.
Accountable maintainer: @cv for the configuration work. Implementation assignment remains separate.
Accepted decisions
Exported promise: Preserve the requirement for one operator-registered external component. Do not promise reproduction of its service configuration, credentials, or exact deployment. The same component ID on another host does not establish equivalent service configuration.
Placement: Put the reference under
spec.gatewayand resolve it through the existing declaration'scomponentId. Do not add another registry. Keep component selection distinct from providerless, interceptor-supplied-policy creation.Authoritative evidence: Use the existing sandbox lifecycle/state owner to retain minimal, non-secret component-selection provenance, bound to immutable sandbox identity, lifecycle generation, and gateway. Record completed participation only after successful activation and post-response verification. Continue to clear operation-local activation evidence. Do not retain activation bodies, credentials, policy content, policy hashes, or a policy-ownership receipt.
During export, verify that provenance against current registration and gateway configuration. Current registration alone cannot establish historical participation. Do not backfill older sandboxes from ambient registration or silently treat unknown participation as no dependency. Refuse with a bounded diagnostic when a required dependency cannot be established accurately.
Policy meaning: Export the currently verified OpenShell policy as a snapshot, not a claim of component provenance or a durable NemoClaw policy shadow. Legitimate live policy changes remain valid under Make OpenShell the sole durable policy source of truth #10514. Future policy-apply semantics need their own accepted scope.
Future configuration intent: An explicit reference must match the protected registration. Omission means no component; ambient registration must not override the document. An incompatible active gateway must cause refusal before mutation, not silent rewriting or disabling. These are design constraints for a later mutating slice, not authorization to implement apply or change existing ordinary onboarding now.
Initial support: One completed, supported Linux/OpenClaw sandbox with NemoClaw-managed OpenShell, supported hosted inference, and one component admitted through the lifecycle contract. Preserve existing ordinary OpenClaw/Hermes exports and all unsupported-setting checks. Component-enabled Hermes export and additional MCP, trust, or workload coverage require separately identified gaps and accepted scope.
Scope and validation
Deliver one complete capability: representation, the minimal lifecycle selection record, source verification, serialization, refusal behavior, tests, and owning documentation. The export command remains read-only. Reuse the existing owners and test infrastructure.
Validate successful export, missing/wrong registration, late registration, component removal/replacement, identity or generation changes, unstable observations, failed/ambiguous activation, legitimate live policy updates, output failures, and unchanged ordinary exports. Keep unsupported configurations rejected.
Exclude service installation or supervision, credential/transport redesign, lifecycle recovery, automatic retries, multiple components, new lifecycle machinery, and declarative apply. If a correct export cannot fit this boundary, stop and request the smallest additional scope decision rather than expanding it silently.
#11366 is now merged. This export work should not block #11486 or separately owned runtime adapters and qualification. Coordinate any shared lifecycle-state changes without folding those workstreams into this issue.
feat(onboard): support providerless component onboarding (#11508)
jyaunches commentedon Oct 7, 2026
This issue is being rescoped into new epics as part of the NemoClaw V1 planning review. The rescoped work will return in a few days.
Closing this issue for replanning, not because the work is complete.