Skip to content

docs(onboarding): reduce the onboarding README to what a user needs - #13778

Merged
cv merged 1 commit into
v1from
docs/onboarding-readme
Oct 27, 2026
Merged

cv merged 1 commit into
v1from
docs/onboarding-readme

Conversation

@cv

@cv cv commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #13739. PRs into v1 don't close issues, so #13739 needs closing by hand after merge.

Failure

crates/nemoclaw-onboarding/README.md (213 lines) had become a record of TUI behavior: delegation rules, discovery timing, read timeouts, review scrolling, and where notes render. Rules were stated several times; credential handling alone appeared five times. Every onboarding UX change had to find and update these sentences, and they went stale when a change missed one.

Decision

The README (65 lines) now covers, following WRITING.md:

  • What onboarding does: writes a new YAML file; never plans or applies; keeps no credential values.
  • Running it: with and without a template, the output rule, Ctrl+D and Esc, and the standalone example.
  • Target Checks: what onboarding reads and what a conflict or an unverified read means. The heading stays, so docs/provider.md's link to #target-checks still works.
  • Afterward: review the YAML, set the referenced variables, then plan and apply.
  • Links: the authoring domain model and onboarding journeys for resolution, delegation and saving rules, and unsupported_onboarding_journeys.rs for the backlog.

The sentences describing TUI mechanics are gone; tests and the design docs cover them. In the two design docs, the passages the issue cited lose their rendering details:

  • onboarding-journeys.md: where review lists the target status.
  • authoring-domain.md: how the TUI renders the catalog-credential note. The behavior rule stays: individual model entry remains available, and the note does not bypass the bulk model check.

docs/reference/cli.md now describes the README's new contents.

Validation

  • I checked each statement against the removed text, the design docs, and the TUI's key handling (tui/terminal.rs, tui/view.rs).
  • cargo run --locked -p nemoclaw-build -- fern check: 0 errors and 1 warning; the warning is not from this change.
  • git diff --check is clean.
  • No test reads the README.

The README had become a record of TUI behavior, repeating rules the
design docs state and going stale with each UX change. It now says what
onboarding does, how to run it, what it reads, and what to do with the
saved file, and links to the design docs for resolution, delegation and
saving rules. The two design passages drop their TUI rendering details.

Refs #13739
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 0c4eb15 into v1 Oct 27, 2026
50 checks passed
@cv
cv deleted the docs/onboarding-readme branch October 27, 2026 02:21
kaofelix added a commit that referenced this pull request Oct 27, 2026
…13741)

## Failure

With NVIDIA Endpoints chosen and `NVIDIA_API_KEY` set, `nemoclaw
onboard` showed "Credential availability is missing or unverified here:
NVIDIA_API_KEY" above all 19 questions of a run without a template. That
included screens after the model catalog had already authenticated with
the key.

The resolver reported every credential reference that lacked an
`Available` observation. The TUI checked credentials only on Ctrl+D or
the final Enter on review, so for most of the run the note meant "not
checked yet", and its wording didn't say which state applied.

## Decision

- Credential availability moves out of `information()` into
`JourneyResolution::credentials()`. It has one line per checked
reference: "is set in this environment", "is not set…", or "could not be
read…". The last two add the planning guidance: interactive plan asks
for the value, so set it first for a non-interactive run. A reference
that was never checked has no line. The observation's reason is never
shown.
- The TUI shows these lines only on review. When review opens, it checks
the document's references by reading environment variables, with no
network call. The engine, model-catalog and credential reads now share
one probe, which runs only when the state or observations change.
`nemoclaw_authoring::credential_queries` builds the credential queries
for both this probe and `discovery_queries`.
- The two design docs now describe `credentials()` in place of the old
note in `information()`. The onboarding README needs no change: #13778
already removed the sentence about where credential notes appear.

The standalone example runs without discovery, so its review says
nothing about credentials. `nemoclaw onboard` always runs discovery.

## Validation

- **Authoring:** a test covers each state's line and checks that the
line omits the observation's reason and doesn't block delegation.
Another checks that a reference never checked produces no line. Both
failed before the change.
- **TUI:** tests check that no question screen shows availability, at
160×35 and 72×24, and that review shows "is set" or "is not set" for the
matching observation. Another checks that review opening triggers
exactly one credential read. The review assertions failed before the
change.
- `cargo test` passes for `nemoclaw-authoring` and
`nemoclaw-onboarding`; clippy is clean for both.
- After merging `v1`, local `cargo ci` on darwin_arm64 passed every
step: build, all tests, bundle, and the bundle lifecycle tests. Two
earlier runs, before the merge, had timed out in `nemoclaw-build` and
`nemoclaw-runtime` tests that this change doesn't touch; those tests
passed when run alone.
- **Terminal run:** a `nemoclaw onboard` run without a template,
accepting each suggestion through all 10 questions on darwin_arm64, once
without `NVIDIA_API_KEY` and once with it set. In both runs no question
screen mentioned the key. Review showed "NVIDIA_API_KEY is not set in
this environment. Interactive plan asks for it; set it first for a
non-interactive run." in the first run and "NVIDIA_API_KEY is set in
this environment." in the second.
@wscurran wscurran added v1 NemoClaw v1 branch area: docs Documentation, examples, guides, or docs build area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow chore Build, CI, dependency, or tooling maintenance labels Oct 27, 2026
@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: docs Documentation, examples, guides, or docs build area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants