Repository navigation
[TEL5-P3-S5] Wire main - #14841
Merged
Merged
[TEL5-P3-S5] Wire main#14841
Conversation
Send one 5.0 telemetry record when apply, destroy, or a saving onboard finishes, after the command's output is written. Dispatch hands back the document it read (the apply input, the destroy intent.json, or the file onboard wrote); main takes outcome, effect, failure stage and duration from the result and the progress stage events. plan and export send nothing. Every test that runs the built CLI now starts from one helper that turns the record off; tests/telemetry.rs turns it on against a local receiver. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Will Curran <[email protected]>
Main passes outcome, effect and failure stage straight to report; dispatch fills a document slot instead of wrapping its result; drop an unused export mapping and fold overlapping tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Will Curran <[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
v1 moved examples/openclaw.yaml to examples/agents/openclaw.yaml. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
Authoring session — opening
|
The stalled-receiver test compared against a run with telemetry off, so host detection counted against the 3-second budget and a slow runner missed it by 8 ms. It now compares against a run that sends to an answering receiver, so only the stall is timed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wscurran
marked this pull request as ready for review
November 24, 2026 23:11
Contributor
Selected hardware E2EsCommit: Selected cases run automatically; results do not gate merging. Shared code or test infrastructure changed.
|
Contributor
Author
|
@cv ready for review. This makes the CLI send one telemetry record after Tested with new local-receiver tests, and by hand on a fresh Linux machine (records went to a local receiver, not production). A successful |
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.
Sends one v1 telemetry record when
apply,destroy, or a savingonboardfinishes, after the command's output is written.planandexportsend nothing.Problem
The record's parts (types, gate, install ID file, sender, host fields, configuration fields) are in
crates/nemoclaw-cli/src/telemetry/, but no command calls them.Resolves #14032.
Change
dispatch.rs:runhands back the document it read, alongside the result: theapplyinput, the document in<state-dir>/intent.jsonfordestroy, or the file a savingonboardwrote.main.rs: decides at start whether this process may send (gate::check), watches the progress stage events, and after the output is written builds and sends one record. The exit code and output do not change; the send gives up after 3 seconds.telemetry/mod.rs: turns a finished command into a record.outcome:succeeded,cancelled(exit code 130), orfailed.effect: from the OpenTofu actions of the changes, as in the design's table;teardownfordestroy,authoredforonboard,otheron failure.failureStage: the last stage event before the failure,validatebefore any.durationMs: from just after argument parsing to the end of the command.onboardthat fails or saves nothing sends no record.NEMOCLAW_DISABLE_TELEMETRY=1.tests/telemetry.rsruns the CLI against a local receiver: one record each forapplyanddestroy, none forplanandexport, and a stalled receiver ends the command within 3 seconds with the same exit code. A savingonboardneeds a terminal, so a unit test covers its record.Testing
cargo test -p nemoclaw-cli: 121 unit and 25 integration tests pass; clippy is clean.By hand on a fresh Ubuntu 24.04 x86_64 machine, with the CLI built from this branch and pointed at a local receiver:
onboard, savedsucceeded,authored,computeDriver: docker, harness OpenClaw,firstRun: trueapplyfailed,other,failureStage: validate(no API key given)destroyfailed,other,failureStage: validate,computeDriver: unknownplan,plan --destroy,exportAll records carried one install ID and
buildKind: dev. A successfulapplyordestroywas not run; unit tests cover theireffect.🤖 Generated with Claude Code