Skip to content

fix(gateway): record a managed gateway's OpenShell telemetry when planning - #14811

Merged
cv merged 2 commits into
v1from
fix/gateway-telemetry-drift
Nov 24, 2026
Merged

cv merged 2 commits into
v1from
fix/gateway-telemetry-drift

Conversation

@cv

@cv cv commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

A managed gateway's OpenShell telemetry setting is now decided when NemoClaw plans the deployment and recorded with the gateway, so changing NEMOCLAW_DISABLE_TELEMETRY no longer makes a Podman gateway look drifted.

Problem

Since #14797, the provider computed a Docker or Podman gateway's OPENSHELL_TELEMETRY_ENABLED from its own environment every time it ran. When it observed an existing Podman gateway, it compared the container's environment with that freshly computed value, so a plan or apply run with the switch set differently from the run that created the gateway failed with managed runtime environment drifted. v0.1.0-rc.4 includes the bug.

Resolves #14810.

Change

  • The SDK decides the setting when it compiles the deployment (managed::Spec::telemetry) and records it as an openshell_telemetry input: an attribute of the openshell_podman_gateway resource, and an input of the openshell_docker_gateway_runtime data source. The provider derives the container's environment from it and no longer inherits NEMOCLAW_DISABLE_TELEMETRY.
  • A changed setting changes the gateway's specification, so the next plan replaces the gateway and keeps its storage, as for other gateway settings. Kubernetes already decided server.telemetryEnabled at compile time and is unchanged.
  • A gateway recorded before this change has no setting. Observing it ignores OPENSHELL_TELEMETRY_ENABLED in either direction, because v0.1.0-rc.4 created such gateways with either value, and the next plan records one and replaces the gateway once.
  • Gateway storage doesn't carry the setting, so its identity, and the volume holding the gateway's data, don't change with it.
  • The telemetry design doc and the release notes describe the recorded setting.

Making the gateway also follow the CI variables, as the CLI's own record does, is a separate follow-up now that the decision happens at compile time.

cv added 2 commits November 23, 2026 20:06
…nning

The provider computed a Docker or Podman gateway's OPENSHELL_TELEMETRY_ENABLED
from its own environment each time it ran. For a Podman gateway, a plan run
with NEMOCLAW_DISABLE_TELEMETRY different from the run that created it failed
with "managed runtime environment drifted" instead of changing the gateway.

The SDK now decides the setting when it compiles the deployment and records
it: the Podman gateway resource and the Docker launch data source take an
openshell_telemetry input, and the provider no longer inherits the switch.
A changed value replaces the gateway and keeps its storage. A gateway
recorded before this keeps whatever setting its container has, so observing
it reports no drift and the next plan records one.
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 24, 2026
@cv cv added the v1 NemoClaw v1 branch label Nov 24, 2026
@cv

cv commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi 1.6.0 with the pit TypeScript tool Version from the Pi install path; the session record names format version 3, not the harness release.
Skills recorded test-driven-development; safe-refactoring; nemoclaw-contributor-create-pr Each SKILL.md was read in full during the session.
Instruction files recorded AGENTS.md; WRITING.md; .github/PULL_REQUEST_TEMPLATE.md; .github/SESSION_REPORT_TEMPLATE.md AGENTS.md was loaded as project context; the others were read in full.
Tool calls partial 332 typescript calls Counted from the session record's tool-call entries; calls made inside each TypeScript program are not separately recorded. The session also reviewed and merged other pull requests.
Tokens partial input: 114281728; cached input: 109311540; output: 286915 Summed from the session record's usage counters; the provider reported no cache writes, which may mean it doesn't report them.
Session window recorded 2026-11-23T19:00:44Z to 2026-11-24T03:14:38Z First and last timestamps in the session record, which covers more than this change.
Compactions recorded 0 No compaction entries in the session record; tool results were elided in place.
Models recorded nvidia-internal/aws/anthropic/bedrock-claude-opus-5-5 One model change entry at session start.
Reasoning levels recorded high One thinking-level entry at session start.

@cv
cv enabled auto-merge (squash) November 24, 2026 03:15
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Selected hardware E2Es

Commit: db59d2a6ab1164be4f7fc96013aab6422c579c97

Selected cases run automatically; results do not gate merging.

Shared code or test infrastructure changed.

  • dgx-station-openclaw-nemotron
  • docker-openclaw-hermes-ollama
  • docker-openclaw-llama-cpp
  • docker-openclaw-vllm
  • docker-openclaw-vllm-shared

@cv
cv merged commit aa7955c into v1 Nov 24, 2026
107 of 108 checks passed
@cv
cv deleted the fix/gateway-telemetry-drift branch November 24, 2026 03:34
cv added a commit that referenced this pull request Nov 24, 2026
A gateway NemoClaw manages now sends no OpenShell telemetry when a CI
variable such as `CI=true` is set, as NemoClaw's own telemetry record
already doesn't.

## Problem

The CLI's record sends nothing when one of `CI`, `GITHUB_ACTIONS`,
`TF_BUILD`, `BUILD_ID`, `TEAMCITY_VERSION`, or `CODEBUILD_BUILD_ID` is
set. A managed gateway's OpenShell telemetry, added in #14797, followed
only `NEMOCLAW_DISABLE_TELEMETRY`, so CI runs, including this
repository's end-to-end jobs, sent gateway telemetry.

## Change

- `nemoclaw_sdk::telemetry` holds the CI variables next to the off
switch and adds `suppressed()`: the off switch or any CI variable set,
by the existing `is_set` rule.
- The gateway's setting, which #14811 records when the deployment is
planned, follows `suppressed()`. Because the setting is recorded, a plan
from CI after one from a workstation replaces a Docker or Podman gateway
instead of reporting drift, and upgrades a Kubernetes gateway's release.
- The CLI's gate reads the same list from the SDK instead of its own
copy.
- The SDK telemetry tests remove the runner's CI variables from each
child they start, so the on cases hold in CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant