Repository navigation
docs(onboarding): reduce the onboarding README to what a user needs - #13778
Merged
Merged
Conversation
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
Contributor
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13739. PRs into
v1don'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:docs/provider.md's link to#target-checksstill works.unsupported_onboarding_journeys.rsfor 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.mdnow describes the README's new contents.Validation
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 --checkis clean.