Repository navigation
[TEL5-P4-S1] Switch relay - #14797
Merged
Merged
Conversation
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]>
|
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. |
Contributor
Contributor
Author
Authoring session — opening
|
wscurran
marked this pull request as ready for review
November 23, 2026 22:07
Contributor
Selected hardware E2EsCommit: Selected cases run automatically; results do not gate merging. Shared code or test infrastructure changed.
|
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
enabled auto-merge (squash)
November 23, 2026 22:23
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.
This was referenced Nov 24, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A gateway that NemoClaw manages now sends OpenShell telemetry only when NemoClaw's own telemetry is on: on unless
NEMOCLAW_DISABLE_TELEMETRYis set (present, not empty, and notfalseor0in any letter case, so1,yes, andTRUEall 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_TELEMETRYchanges neither.Change
OPENSHELL_TELEMETRY_ENABLED=true, orfalsewhenNEMOCLAW_DISABLE_TELEMETRYis set. Kubernetes gets the same value asserver.telemetryEnabled.nemoclaw_sdk::telemetryholds 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.NEMOCLAW_DISABLE_TELEMETRYfrom the CLI, so the provider sees it when it builds a Docker or Podman gateway.tests/telemetry.rschecks each driver with the variable unset and set to1. Its existing check now really runs: before, the child process matched no test and passed anyway.internal-docs/design/telemetry.mdmatch 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