Skip to content

fix(kubernetes): name a kubeconfig context that doesn't exist - #14133

Merged
cv merged 1 commit into
v1from
fix/14129-kubeconfig-context
Nov 4, 2026
Merged

cv merged 1 commit into
v1from
fix/14129-kubeconfig-context

Conversation

@cuongdangn

Copy link
Copy Markdown

Failure

When gateway.kubernetes.context names a context the kubeconfig doesn't have, plan and apply refuse with observation authentication failed (#14129). Nothing changes, but the message points at credentials. connect in crates/nemoclaw-sdk/src/kubernetes/mod.rs mapped every error from kube::Config::from_custom_kubeconfig to ObservationError::Authentication.

Decision

  • Map kube's KubeconfigError::LoadContext, the error from_custom_kubeconfig returns when the named context is absent, to a new ObservationError::MissingContext that names the configured context: "the kubeconfig has no context named NAME". The name passes through ObservationError::sanitized_detail; the error never holds the kubeconfig's contents.
  • Other kubeconfig errors keep the authentication category; this change doesn't reclassify them.
  • The provider reports ObservationError's text in its diagnostics, so plan and apply show the new message where they showed the old one.

Refs #14129; it stays open until this merges.

Validation

  • kubernetes_connection::an_unknown_context_is_named_without_falling_back (strengthened from an_unknown_context_fails_without_falling_back) requires the new message; it failed before the change with left: "observation authentication failed", and passes after it.
  • cargo ci on darwin_arm64: every selected step passed (fmt, clippy, build, test, schema, bundle, lifecycle), 678 s.
  • Not run: cargo ci live-docker and live-kind, which need Linux; the change touches no image or chart.

When gateway.kubernetes.context names a context the kubeconfig lacks,
plan failed with "observation authentication failed", which points at
credentials: connect() mapped every kube configuration error to
ObservationError::Authentication (#14129).

Map kube's KubeconfigError::LoadContext to a new
ObservationError::MissingContext that names the configured context,
bounded and redacted like other diagnostics; it never holds the
kubeconfig's contents. Other kubeconfig errors keep the authentication
category.

The connection test for an unknown context now requires the message
"the kubeconfig has no context named missing"; before the change it
failed with "observation authentication failed".

Validation: cargo ci passed every selected step on darwin_arm64 (fmt,
clippy, build, test, schema, bundle, lifecycle).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cuongdangn cuongdangn added area: observability Logging, metrics, tracing, diagnostics, or debug output platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch area: kubernetes labels Nov 3, 2026
@cuongdangn

Copy link
Copy Markdown
Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Claude Code 2.1.312, then 2.1.314 Version fields of the session record
Skills recorded nemoclaw-contributor-create-pr (injected) Skill invocations in the session record to the cutoff; no other skill was invoked
Instruction files recorded CLAUDE.md (injected at start and after a compaction); AGENTS.md (complete read); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read); user memory index (injected) Injections and reads in the session record to the cutoff
Tool calls partial Whole session: 1111 (Bash: 597; Edit: 272; Read: 46; Write: 41; TaskUpdate: 33; TaskCreate: 21; ToolSearch: 12; WebFetch: 12; WebSearch: 11; TaskStop: 10; Monitor: 5; Agent: 1; Skill: 1; TaskList: 1; MCP tools: 48). Interval for this and two other pull requests: 157 (Bash: 88; Edit: 46; Read: 11; TaskCreate: 6; TaskUpdate: 4; Agent: 1; Skill: 1). Nested: 71 by a documentation reviewer for another pull request Main-thread tool calls in the session record, including failures; the interval isn't split by pull request; nested calls come from the reviewer's completion notice, and other nested calls are unobserved
Session window recorded 2026-10-30T05:52Z to 2026-11-03T08:47Z; about 4 days 3 hours. Interval for this and two other pull requests: 2026-11-03T08:16Z to 08:47Z; 31 min First record to the cutoff, including idle time; the session's earlier work was an OpenShift test run that found the failure
Compactions recorded 2 Compaction boundaries in the session record to the cutoff
Models recorded claude-opus-5-5 Assistant records to the cutoff; one synthetic placeholder record has no model
Reasoning levels partial max effort, adaptive thinking Every request record from 2026-10-30T10:45Z to the cutoff; earlier requests left no request record

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@wscurran wscurran added the bug-fix PR fixes a bug or regression label Nov 3, 2026
@cv
cv merged commit 761583b into v1 Nov 4, 2026
56 checks passed
@cv
cv deleted the fix/14129-kubeconfig-context branch November 4, 2026 08:05
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 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: kubernetes area: observability Logging, metrics, tracing, diagnostics, or debug output bug-fix PR fixes a bug or regression platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants