Skip to content

[TEL5-P4-S1] Switch relay - #14797

Merged
cv merged 2 commits into
v1from
feat/tel5-p4-s1-switch-relay
Nov 23, 2026
Merged

cv merged 2 commits into
v1from
feat/tel5-p4-s1-switch-relay

Conversation

@wscurran

@wscurran wscurran commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

A gateway that NemoClaw manages now sends OpenShell telemetry only when NemoClaw's own telemetry is on: on unless NEMOCLAW_DISABLE_TELEMETRY is set (present, not empty, and not false or 0 in any letter case, so 1, yes, and TRUE all turn it off).

Problem

Closes #14686, per the decision in #14678. Today the Kubernetes gateway's telemetry is always off, and Docker and Podman gateways never get the switch, so they follow OpenShell's default (on). NEMOCLAW_DISABLE_TELEMETRY changes neither.

Change

  • Docker and Podman gateways get OPENSHELL_TELEMETRY_ENABLED=true, or false when NEMOCLAW_DISABLE_TELEMETRY is set. Kubernetes gets the same value as server.telemetryEnabled.
  • nemoclaw_sdk::telemetry holds the one rule for the switch, is_set, so the gateway and the CLI's record ([TEL5-P3-S2] Core module #14792) can't disagree about whether telemetry is off.
  • OpenTofu now inherits NEMOCLAW_DISABLE_TELEMETRY from the CLI, so the provider sees it when it builds a Docker or Podman gateway.
  • External gateways are unchanged. The CLI's own OpenShell library stays built without telemetry.
  • tests/telemetry.rs checks each driver with the variable unset and set to 1. Its existing check now really runs: before, the child process matched no test and passed anyway.
  • The gateway fixtures and internal-docs/design/telemetry.md match the new behavior.

Existing Docker and Podman gateways are replaced on their next apply, since their environment changes. Their storage is kept.

🤖 Generated with Claude Code

A managed gateway's OpenShell telemetry now follows NemoClaw's switch:
on unless NEMOCLAW_DISABLE_TELEMETRY=1. Docker and Podman gateways get
OPENSHELL_TELEMETRY_ENABLED; Kubernetes gets server.telemetryEnabled.
OpenTofu now inherits NEMOCLAW_DISABLE_TELEMETRY so the provider sees it.

The CLI's own OpenShell test now runs its check: the child process
names the test by its full path and must report one test passed.

Closes #14686.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 23, 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 added the v1 NemoClaw v1 branch label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@wscurran

Copy link
Copy Markdown
Contributor Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Claude Code 2.1.328 (desktop app) Session metadata
Skills recorded none No skill injected or completely read to cutoff; the create-PR skill was read in part after the cutoff
Instruction files recorded user CLAUDE.md (injected); project memory index (injected) Startup injections and reads to cutoff
Tool calls recorded Bash: 46; Edit: 10; update_plan: 9; Read: 7; wrap_up: 5; Write: 4; show_pane: 2; ToolSearch: 1 Includes failed calls; the Bash wrapper hides nested calls; cutoff is the draft PR's creation
Tokens recorded input: 10325712; cached input: 10177139; output: 39654 Final usage of each of 74 API responses to cutoff; no subagents
Session window recorded 2026-11-23T20:24Z to 2026-11-23T21:11Z; 47 min First event to cutoff, including idle time
Compactions recorded 0 Complete record to cutoff
Models recorded claude-sonnet-5-5; claude-opus-5-5 Sonnet for the first turn only, which made no changes; Opus for all authoring
Reasoning levels recorded medium No effort changes recorded

@wscurran
wscurran marked this pull request as ready for review November 23, 2026 22:07
@wscurran
wscurran requested a review from cv November 23, 2026 22:07
@wscurran wscurran self-assigned this Nov 23, 2026
@wscurran wscurran added this to the Roadmap: GTC DC 2026 milestone Nov 23, 2026
@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output area: observability Logging, metrics, tracing, diagnostics, or debug output labels Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Selected hardware E2Es

Commit: 1918910859915d3c540a79f8c711fb2009334904

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

The gateway followed NEMOCLAW_DISABLE_TELEMETRY only when it was exactly
1, so =yes or =true left OpenShell's telemetry on. nemoclaw_sdk::telemetry
now holds the one rule for the switch: set means present, not empty, and
not false or 0 in any letter case. The managed gateway and the child
environment use it, and the CLI's record in #14792 is to use it too, so
the two cannot disagree.
@cv
cv enabled auto-merge (squash) November 23, 2026 22:23
@cv
cv merged commit 16c31be into v1 Nov 23, 2026
110 of 111 checks passed
@cv
cv deleted the feat/tel5-p4-s1-switch-relay branch November 23, 2026 22:42
cv added a commit that referenced this pull request Nov 23, 2026
#14797 added nemoclaw_sdk::telemetry, the one rule for whether
NEMOCLAW_DISABLE_TELEMETRY is set, which the managed gateway follows.
The record's gate now uses it for the switch and the CI variables instead
of its own copy, so the two cannot disagree. Behavior is unchanged.
cv added a commit that referenced this pull request Nov 24, 2026
…nning (#14811)

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 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.
cv added a commit that referenced this pull request Nov 25, 2026
Tells users what the v1 CLI's usage record sends and how to turn it off,
in the security guide, with one pointer from the install guide.

## Problem

The CLI now sends one usage record when `apply`, `destroy`, or a saving
`onboard` finishes (#14841), and the managed OpenShell gateway's
telemetry follows the same switch (#14797). The user docs don't mention
either.

Resolves #14107.

## Change

- `docs/security/security.md`: a Usage Telemetry entry under Retained
Data and Telemetry. It covers when a record is sent,
`NEMOCLAW_DISABLE_TELEMETRY` and CI, the fields by group, the rules for
model names, harness IDs, inference endpoints, and machine details, what
is never sent, the install ID file and how to reset it, the QA test
label, and the managed gateway's separate telemetry.
- `docs/get-started/install.md`: one line that links to it.
- The full field table, the endpoint and send behavior, every CI
variable, and the label format stay in
`internal-docs/design/telemetry.md`; the entry links to it instead of
repeating them.

## Testing

- `cargo run --locked -p nemoclaw-build -- fern check`: 0 errors.
- `git diff --check`: clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli Command line interface, flags, terminal UX, or output area: observability Logging, metrics, tracing, diagnostics, or debug output v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants