NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Support stable onboarding inputs for automation clients

Open jyaunches opened this issue 4 months ago • 2 comments

Parent epic: #6401

Problem

Automation clients, services, and graphical frontends need to supply onboarding choices without reproducing NemoClaw's internal state machine or dropping down to OpenShell or agent-runtime commands.

NemoClaw already supports a substantial public input surface through nemoclaw onboard flags and NEMOCLAW_* environment variables. The remaining task is to validate that surface against representative automation consumers and add only concrete missing inputs.

Goal

Provide a stable, documented way for automation clients to express the onboarding decisions that NemoClaw owns through the public CLI.

Start from the existing command surface. Do not introduce a universal platform profile, configuration framework, or plan/apply protocol unless a concrete integration proves that the existing CLI cannot safely express a required decision.

Delivered foundations

  • Canonical nemoclaw onboard --non-interactive supports documented flags and environment inputs.
  • nemoclaw onboard --events=jsonl provides versioned, redacted live progress through #6820.
  • The external gateway-management declaration provides a versioned, secret-free lifecycle-authority input through #7246.
  • Public status and doctor JSON commands provide read-only evidence for automation.

Candidate inputs to validate

Validate concrete consumers against the inputs they actually require:

  • sandbox name and supported runtime;
  • provider, endpoint, model, and inference API selection;
  • policy tier, presets, integrations, and tool-disclosure choices;
  • image or Dockerfile selection and supported artifact reuse;
  • GPU, observability, and control-UI choices;
  • gateway-management declaration;
  • resume, fresh, reuse, and explicit recreation behavior; and
  • non-secret credential references, with values supplied only through supported host-side secret boundaries.

This list is an inventory for qualification, not a commitment to a new configuration envelope.

Implementation policy

  1. Attempt the integration with existing documented nemoclaw commands first.
  2. For each choice that cannot be expressed or safely reconciled, record the exact missing public contract and open a focused child issue under #6401.
  3. Keep the consuming implementation fail-closed behind a linked placeholder until the public interface lands.
  4. Do not solve a missing input by importing NemoClaw internals, patching installed files, editing NemoClaw state, or invoking OpenShell or agent-runtime commands directly.
  5. Preserve ordinary interactive CLI behavior and deterministic precedence among any new flag, environment, or file inputs.

Acceptance criteria

  • [ ] At least one representative automation client can express all of its required NemoClaw-owned choices through documented public nemoclaw commands.
  • [ ] The implementation invokes no direct lower-level lifecycle commands, imports no onboarding internals, and does not modify NemoClaw's registry.
  • [ ] Existing flags and environment inputs are documented with deterministic precedence and non-interactive failure behavior.
  • [ ] Every missing input discovered during implementation is represented by a focused linked issue and a fail-closed consumer placeholder.
  • [ ] Credential values remain outside configuration, process arguments, events, logs, and diagnostics.
  • [ ] Resulting sandboxes retain canonical registry, policy, credential, readiness, recovery, update, backup, rebuild, and destroy semantics.
  • [ ] Core NemoClaw contains no consumer-specific cloud, topology, UI, model, or application logic.

Non-goals

  • Define a universal platform profile before concrete CLI gaps are demonstrated.
  • Pass an external solution's topology or domain workflow into NemoClaw.
  • Add a general planning, digest, or apply protocol as part of this issue.
  • Move frontend, tunnel, proxy, image-building, or cloud-control-plane behavior into NemoClaw.
  • Preserve an optimization by bypassing canonical onboarding.

Related work

  • #6403 tracks machine-readable observation and any proven session-control gaps.
  • #6402 tracks optional compatible prebuilt-artifact reuse.
  • #6576 / #7246 delivered the external gateway-management input.
  • #6820 delivered redacted JSONL onboarding events.
  • #7659 tracks a missing public reasoning-effort input for compatible endpoints.

jyaunches avatar Jul 07 '26 16:07 jyaunches

Complementing the design-decision proposal just posted on #6576 (gateway lifecycle authority): of this issue's candidate profile inputs, that contract consumes exactly one — "gateway service endpoint/state location when operator-managed" — and the proposal pins its shape so the two designs stay coherent:

  • The profile carries a declarative gateway-management declaration: mode: nemoclaw-managed | externally-supervised, plus (only for externally supervised) supervisor: { kind: systemd-system | systemd-user, serviceName, execPath }.
  • The profile never embeds Brev/GCP specifics in core (this issue's boundary requirement); it only declares which supported mode the image chose.
  • Absent the declaration, canonical onboarding behaves exactly as on DGX Spark today (nemoclaw-managed), so the profile stays an overlay over canonical onboarding rather than a fork — which is the epic #6401 boundary.

If the profile design lands with a different envelope (flag, file, or profile key), the #6576 contract is indifferent to the carrier as long as the declaration is explicit and versioned.

souvikDevloper avatar Jul 19 '26 03:07 souvikDevloper

Completed on the NemoClaw public-contract boundary.

The existing documented nemoclaw onboard --non-interactive flags and NEMOCLAW_* inputs were completed for automation by #6820, which added versioned redacted JSONL observation in v0.0.94, and #7246, which added the versioned external gateway-management input in v0.0.95. The downstream implementation in brevdev/nemoclaw-image#84 validated the contract with a real web/agentic consumer: its thin adapter delegated lifecycle mutations to canonical nemoclaw onboard, consumed --events=jsonl, and did not import onboarding internals, hand-write the registry, or invoke direct OpenShell lifecycle mutations. Its later release-order revert in brevdev/nemoclaw-image#90 does not reopen the completed NemoClaw input contract; restoration is tracked by brevdev/nemoclaw-image#91.

Optional compatible prebuilt-artifact reuse remains #6402. Downstream migration and image-level qualification remain #6405 and #6409.

jyaunches avatar Jul 27 '26 22:07 jyaunches