Skip to content

feat(onboarding): leave tuning and gateway defaults unasked - #13693

Merged
cv merged 3 commits into
v1from
onboarding-default-adapter-and-gateway-settings
Oct 26, 2026
Merged

cv merged 3 commits into
v1from
onboarding-default-adapter-and-gateway-settings

Conversation

@kaofelix

Copy link
Copy Markdown
Collaborator

Failure

nemoclaw onboard without a template (managed Docker gateway, OpenClaw, NVIDIA Endpoints) asked 19 questions. Nine had working defaults:

  • seven optional OpenClaw settings: agent_id, the four timeouts, openclaw_command, and port_range;
  • the managed gateway's endpoint and networkCIDR.

Two causes kept them in the journey:

  • Adapter settings: onboarding asked the whole ActiveAdapterSettings scope, and the resolver asks any absent optional adapter setting unless that scope is omitted.
  • Gateway fields: the deployment-field collector offered the SDK-filled defaults for review.

omit couldn't remove these questions because guidance rejected any omit for a supplied or required field. Many templates supply the gateway endpoint, and an external gateway requires it.

Decision

  • omit means "do not prompt".
    • A valid supplied value is kept.
    • An absent optional value stays unset, so the adapter or SDK default applies.
    • An absent required value or an invalid supplied value is still asked.
    • The same rule applies to SDK fields, adapter settings, and native settings.
  • JourneyResolution::kept lists the template values an omission kept. It reports a value only while it still equals the template's and no answer replaced it. Review shows these under From your template, so a template value that replaced a default stays visible.
  • Onboarding owns its defaults in crates/nemoclaw-onboarding/src/defaults.yaml, with the name openclaw. examples/onboarding/openclaw.yaml stays as the express example.
  • The journey omits the active adapter's settings and the gateway endpoint and CIDR.
  • Unchanged:
    • channel_config (asked through an exact ask), the engine socket, the sandbox image, and the network tier. Those are separate work items.
    • The SDK still writes its endpoint and CIDR defaults into the saved YAML.

channel_config now comes right after the inference preset. Exact ask fields are ordered before the scope-discovered API and model questions.

Validation

  • Default question list: a TUI test walks the default journey and asserts the exact questions. It failed with the 19 observed questions before the change and now passes with 10.
  • New omit behavior: authoring tests failed under the old rules and now pass. They cover:
    • a supplied value kept without asking;
    • an absent required SDK, adapter, or native field still asked;
    • an invalid supplied value still asked;
    • kept excluding a value the user answered.
  • Template review: a TUI test checks that a template's startup_timeout_seconds and networkCIDR are kept, not asked, and listed under "From your template". It also checks that the built-in defaults show no such section.
  • Local checks: cargo ci passed, including bundle and lifecycle. The documentation check reported no errors.
  • Live check: I ran nemoclaw onboard in a terminal on macOS with Docker Desktop running.
    • Without a template it asked 10 questions. The saved YAML had no OpenClaw tuning keys, plus the SDK endpoint and CIDR.
    • With a template that sets those two values, neither was asked; both were saved and shown under "From your template".

Gaps:

  • No deployment run: I didn't run plan or apply against the saved YAML. Applying the adapter defaults at runtime is Fabric's job; the express example already relies on it.
  • Empty settings object: skipping channel_config still leaves an empty harness.settings: {} in the saved YAML. That predates this change.

The no-template `nemoclaw onboard` journey asked 19 questions. Seven were
optional OpenClaw tuning settings and two were the managed gateway's
endpoint and network CIDR, all of which have working defaults.

`omit` guidance now means "do not prompt": it keeps a valid supplied value,
leaves an absent optional value unset, and still asks an absent required or
invalid value. It previously rejected supplied and required fields, so it
could not be applied to user templates. `JourneyResolution::kept` reports
the template values an omission kept, and review lists them under
"From your template".

Onboarding owns its built-in defaults in the crate instead of reusing the
express example, suggests the name `openclaw`, and omits the active
adapter's settings and the gateway endpoint and CIDR. `channel_config`,
the engine socket, the image, and the network tier are still asked.
@github-actions

Copy link
Copy Markdown
Contributor

Resolve the conflicts with #13705, which keyed sandboxes by name:
- journey_definition.rs keeps v1's sandbox_path() in place of the fixed
  HARNESS path, and this branch's removal of the refusal to omit a
  supplied setting.
- journey_resolution.rs keeps this branch's assertion that an omitted
  supplied endpoint is kept.

Follow #13703 and #13705 in this branch's additions: defaults.yaml keys
nvidia-prod and assistant, and the new tests use keyed sandbox and provider
paths.

Signed-off-by: Carlos Villela <[email protected]>
@cv
cv merged commit 4f1c8db into v1 Oct 26, 2026
52 checks passed
@cv
cv deleted the onboarding-default-adapter-and-gateway-settings branch October 26, 2026 08:33
kaofelix added a commit that referenced this pull request Oct 26, 2026
Stacked on #13693. Retarget this pull request to `v1` after that one
merges.

## Failure

When no engine answered for the chosen runtime (for example Docker is
not running), the engine socket question offered no suggestion and no
cause. The cause existed, but only in the target block at the bottom of
review.

Review itself opened at the top with the YAML and an "Enter save"
footer. The target status and at most two reasons sat below the fold, so
a user could save without seeing them.

## Decision

- **Engine question.** `JourneyQuestion::note()` carries the reason. The
resolver sets it in the pass that clears the suggestion, so the question
and the review assessment share one string. The TUI shows it in the
warning colour.
- **Review order.** Target status, every reason, credential notes, the
YAML, then "From your template". The review scrolls as one document and
shows a scrollbar when it exceeds the screen.
- **Blocked saving.** A conflict, or an unverified target the journey
requires, shows in a new error colour. Review omits the save line and
`Enter save` from the footer, and Enter does nothing. An unverified
target shows as a warning and still saves. Authoring readiness is
unchanged.
- **Footer.** The "Cannot save yet" message is removed. The review
already lists the reasons.
- **Scrolling.** It stops at the last line. Going back and returning
opens the review at the top.
- **README.** It said review reads the target on entry. The read runs
when you press Enter on the review or use Ctrl+D, so the text now says
that.
- **Copy.** Screen text is unchanged. The existing strings are reused,
including the reason on the engine question.

## Validation

I ran `nemoclaw onboard` from this branch in tmux on macOS with Docker
Desktop running, and read the colours from the terminal's escape codes.

- **Docker running.** The engine question suggests Docker Desktop's
socket and shows no reason.
- **No engine answering.** With `DOCKER_HOST` pointing at a missing
socket, the engine question shows the reason and no suggestion at 80×24.
Review at 80×24 and 140 columns opens with the unverified status and all
four reasons in the warning colour.
- **Conflict.** The real binary only reports one for Podman, so I ran a
fake rootless Podman engine on a Unix socket that does not report pasta
networking. Review showed `Target: Conflict` in the error colour with
its reasons, no save line, and no save in the footer. Enter did nothing.
- **Scroll.** The view stops at the last line with the thumb at the
bottom. After scrolling, going back and returning opened at the top.
- **Tests.** Each new behavior was written first and observed failing
for its stated reason before the change. The TUI tests render the review
at 72, 80, and 140 columns.
- **Checks.** `cargo ci` passed against #13693's branch, including
bundle and lifecycle, and the documentation check reported no errors.

Gaps:

- **Docker Desktop stopped.** I did not stop it; `DOCKER_HOST` made the
same engine question appear.
- **Colours.** I confirmed the values, not how they read in each
terminal theme.
- **Long reasons.** The real reasons are at most about 94 characters.
Wrapping of much longer text is not exercised.
- **What review shows.** Review opens with what earlier reads found. The
read on Enter then saves in the same keypress, so a user can save
without seeing what that read found, unless it finds a conflict. This
pull request documents that and does not change it.
- **Not run.** `cargo ci live-docker` and `live-kind`, because no image
or Kubernetes behavior changed.
cv pushed a commit that referenced this pull request Oct 28, 2026
…13757)

## Failure

For a Fabric schema that requires `api_key` only when `mode` is
`remote`, onboarding asked `api_key` first. After omitting it, changing
`mode` to `remote` rejected the adapter edit or left the native setting
omitted and blocked saving.

## Decision

Ask each object's conditional inputs first, including when exact `ask`
guidance lists a dependent field earlier. Carry the schema-derived
prerequisites through the final question ordering. When an answer makes
an omitted adapter, workflow, or model setting required, reopen the
question and identify that answer as the cause. Model reopening records
belong to the selected route so another route's omission stays intact.

Fixes #13694. PRs into v1 do not close issues automatically; this issue
can be closed after merge.

Prior work: #13693 changed omission guidance and exposed this gap. This
fix retains those omission rules. No bundled adapter schema currently
uses these conditionals; the regression fixtures exercise the supported
schema behavior.

## Validation

- Five conditional-settings tests cover controller order, exact
guidance, and reopening across adapter, workflow, and model settings.
The reported failures were observed before their fixes.
- `cargo test --locked -p nemoclaw-authoring -p nemoclaw-onboarding`
passed: 299 tests, with 11 existing authoring tests ignored.
Route-isolation coverage checks that reopening one model setting leaves
another route's omission intact.
- `cargo ci` passed: formatting, Clippy, workspace build, 1,660 tests,
doctests, schema checks, bundle build, and 156 lifecycle tests.
- Independent code review passed after repairing the finding about `ask`
ordering. `git diff --check` passed, and the diff contains no secrets or
credential values.

Live Docker/Kind and other platform checks have not run locally. The
change is confined to authoring; no deployment resources or adapter
schemas change.

Signed-off-by: Deepak Jain <[email protected]>

Signed-off-by: Deepak Jain <[email protected]>
@wscurran wscurran added area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow feature PR adds or expands user-visible functionality labels Oct 28, 2026
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow feature PR adds or expands user-visible functionality v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants