Repository navigation
Conversation
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-10-telemetry
branch
from
October 22, 2026 12:26
6709a97 to
110a0b5
Compare
nwparker
marked this pull request as ready for review
October 22, 2026 12:27
…R43) Co-Authored-By: Claude <[email protected]>
…own run, and only real transport errors as unreachable Co-Authored-By: Claude <[email protected]>
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-10-telemetry
branch
from
October 22, 2026 12:33
110a0b5 to
5770de8
Compare
8 of 9 tasks
Contributor
Author
|
Contained in the dark landing PR #34059 (its head commit is an ancestor of the landing branch). Closing in favour of it; branch kept. |
7 of 9 tasks
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.
ELI5
When the WSL move starts reaching real users, through internal dogfood and then a staged rollout, we need to know how moves end:
This adds one anonymous event for that. It contains no names, no paths, and no error text.
What Changed
wsl_move(src/shared/telemetry-wsl-move-event-schemas.ts), registered like the other main-owned events intelemetry-event-registry.tsandMAIN_OWNED_TELEMETRY_EVENTS. Every field is a fixed enum:outcome:started,finished,reset,refusedorwaiting_for_host.refusal: the refusal code without itswsl_move_prefix.phase: the last journal phase reached.reset_reason: for examplestaged_claim_conflict,repository_path_conflict,distro_unregistered,host_unreachable,terminals_startedorcommit_rejected.duration_bucket: reuses the SSH runtime buckets.bytes_bucket: what the move sent.runTrackedWslMove(src/main/telemetry/wsl-move-telemetry.ts) wraps thewslMove:starthandler.started, watches the move's existing progress stream for the phase and the byte total, and maps the result onto the enums.other.Why
track()pipeline (consent, opt-out, strict schema validation), and enum-only fields, likessh_host_server_conversion.outcomefield rather than five events: the mover's outcomes share every other field, so one schema keeps them comparable.Linked Issue
N/A (internal stack: D1b-10 of the WSL mover; risk row R43)
Visual Proof
N/A: no UI change.
Testing
wsl-move-telemetry.test.tscovers each outcome. Every emitted payload is parsed with the registered strict schema, and the test asserts that a distro name, a path and a migration id never appear.wsl-move-driver-handlers.test.tschecks that the start handler reportsstartedand thenfinished.pnpm tc:nodeandcheck:code-quality:changedare clean.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Before opening, an adversarial reviewer went over this. It found no HIGH issues. Its MEDIUM finding is fixed in 6709a97b40af: a pause refusal after a reset lost its reason. In the same commit I also fixed three LOWs:
reset;host_unreachablematches only real transport codes;startedis documented as counting attempts.Left as LOWs:
pickanddurationBucketduplicate the SSH telemetry helpers;Agent skill upstream boundary
Notes
wslMove:start, which refuses whileORCA_INTERNAL_WSL_HOSTSis off. Nothing fires for users today.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)