Skip to content

feat(openshell-provider): read gateway prerequisites with openshell_gateway_prerequisites - #13191

Merged
cv merged 6 commits into
v1from
feat/gateway-prerequisites
Oct 14, 2026
Merged

cv merged 6 commits into
v1from
feat/gateway-prerequisites

Conversation

@cv

@cv cv commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Closes #13146. Part of #13131.

Follows #13187, which moved the gateway installation types into the openshell provider.

Failure

nemoclaw_engine_capabilities did two jobs. It reported the engine's facts (version, platform, CPUs, memory), which other discovery reads. It also judged whether the engine could host a managed OpenShell gateway with a compute driver: the Podman driver needs a Podman engine socket, and rootless Podman needs pasta networking. That judgement is the OpenShell provider's: since #13187, its gateway installation types already enforce the same check when they plan and apply.

Decision

  • New data "openshell_gateway_prerequisites" (engine, compute_driver) reports whether the engine can host the gateway: status, available, and observation_json with the reason. The openshell provider serves it with the other installation types.
  • nemoclaw_engine_capabilities takes only engine and reports facts. That is the shape host provider, runtime-image split, and model catalog in the SDK #13148 needs for host_engine.
  • For a managed gateway, the discovery graph reads both. The postcondition "The selected engine does not meet gateway prerequisites" moves to the prerequisite read, so an unmet prerequisite still stops planning early.
  • Plan reports fold the two reads into the existing engine observation; its status is the less available of the two. Onboarding and authoring see the same observation as before, and keep reporting an unmet prerequisite before anything is installed. Until the prerequisite read completes, the engine is reported as unresolved.
  • In-process discovery (nemoclaw-discovery) gains observe_engine_facts and observe_gateway_prerequisites. observe_engine keeps its combined behavior.

Validation

  • cargo ci --full passes locally (unit tests, plus 139 contract and system tests). The later merge of v1 left the tree unchanged.
  • New tests, each observed failing first:
    • Discovery library: the facts read touches only /info; prerequisites reject a non-Podman engine and rootless Podman without pasta.
    • Reporting: unmet prerequisites make the engine unavailable, and an unread prerequisite leaves it unresolved.
    • Compile: the graph emits both reads, with the postcondition on the prerequisite read.
    • Contract, through pinned OpenTofu: a Docker engine is available for the Docker driver and unavailable for the Podman driver, with the reason.
  • The pinned discovery graph snapshots change exactly as intended: compute_driver and the postcondition move from the engine read to the prerequisite read, and the discovery output gains gateway_prerequisites.
  • The schema snapshots show compute_driver leaving nemoclaw_engine_capabilities and the new data source in openshell.

cv added 5 commits October 14, 2026 10:28
…-provider

The gateway installation code used openshell-provider only for
observe_with_wait and a re-export of EnvironmentSecrets. Move
observe_with_wait into nemoclaw-openshell and use nemoclaw-backend's
EnvironmentSecrets, so the openshell provider can serve the gateway
installation types without a dependency cycle. Tests that compare rules
across providers keep openshell-provider as a dev-dependency.
The nemoclaw provider served the types that install an OpenShell
gateway while the openshell provider reached it. The openshell provider
now serves them as openshell_podman_gateway, openshell_gateway_storage,
openshell_kubernetes_{storage,auth,gateway}, and the
openshell_docker_gateway_{readiness,runtime} data sources, with
unchanged schemas.

nemoclaw-provider keeps the implementation, shared with the Ollama and
vLLM containers, and exposes it as GatewayInstallation; the openshell
binary serves it behind a default installation feature that the fabric
provider turns off. The Kubernetes platform stage keeps the openshell
provider, contract tests move with the types, and state from before the
rename is rejected with a recovery message.
…ateway_prerequisites

nemoclaw_engine_capabilities both reported the engine's facts and judged
whether it could host a managed gateway with a compute driver. That
judgement belongs to the openshell provider, whose installation types
already enforce it during plan and apply.

data.openshell_gateway_prerequisites now reports it, and
nemoclaw_engine_capabilities takes only the engine and reports facts.
Discovery graphs for a managed gateway read both, with the prerequisite
postcondition on the new read, and plan reports fold them into one
engine observation, the less available status winning, so onboarding
still learns of an unmet prerequisite before installation.
v1's tree equals this branch's base (49555c0), so the merge keeps this
branch's tree.
@github-actions

Copy link
Copy Markdown
Contributor

# Conflicts:
#	crates/nemoclaw-sdk/tests/discovery_graph.rs
#	crates/nemoclaw-sdk/tests/fixtures/discovery_graph/openclaw.json
#	crates/nemoclaw-sdk/tests/fixtures/discovery_graph/spark.json
#	docs/provider.md
@cv
cv enabled auto-merge (squash) October 14, 2026 19:03
@cv
cv merged commit 340398b into v1 Oct 14, 2026
@cv
cv deleted the feat/gateway-prerequisites branch October 14, 2026 19:17
@wscurran wscurran added area: architecture Architecture, design debt, major refactors, or maintainability area: install Install, setup, prerequisites, or uninstall flow platform: container Affects Docker, containerd, Podman, or images refactor PR restructures code without intended behavior change v1 NemoClaw v1 branch labels Oct 22, 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: architecture Architecture, design debt, major refactors, or maintainability area: install Install, setup, prerequisites, or uninstall flow platform: container Affects Docker, containerd, Podman, or images refactor PR restructures code without intended behavior change v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants