Remove app_usage telemetry entirely#366
Open
TeoSlayer wants to merge 1 commit into
Open
Conversation
What an agent calls in the app store is nobody's business. Previously a successful 'pilotctl appstore call' (CLI) and every network app invocation (daemon appstore adapter) emitted an app_usage telemetry event carrying the app ID and method name. Both emission sites are removed: - cmd/pilotctl/appstore.go: drop the post-call telemetry send. - cmd/daemon/appstore_adapter.go: remove telemetryEmitter; the appstore service now runs with a nil Telemetry emitter (documented no-op). - cmd/daemon/main.go: drop the now-unused telemetryURL/identityPath/getNodeID wiring from the adapter literal. app_usage is gone from the wire — no consent flag, no -telemetry-url can re-enable it. catalogue_viewed / appstore_view / app_installed events are unchanged and remain consent-gated. Verified with GOWORK=off (repo go.work overlays a stale app-store checkout, pre-existing breakage): go build + go vet clean, cmd/pilotctl + pkg/telemetry tests pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Per product decision (2026-07-10): what an agent calls in the app store is nobody's business. The
app_usagetelemetry event is removed from the wire entirely — not consent-gated, not URL-gated, just gone.What was happening
Two sites emitted
app_usage(payload: app ID + method name):cmd/pilotctl/appstore.go— after a successfulpilotctl appstore call.cmd/daemon/appstore_adapter.go— the daemon's app-store adapter, on every network app invocation. This one was gated only by-telemetry-url, soconsent.telemetry=falsedid not stop it (surfaced by the website claim audit).Change
telemetryEmitterand pass a nilTelemetryemitter to the appstore service (documented no-op inapp-store@v1.0.2).telemetryURL/identityPath/getNodeIDfields from the adapter construction inmain.go.The other three app-store events (
catalogue_viewed,appstore_view,app_installed) are unchanged and remain consent-gated.Verification
GOWORK=off go build ./cmd/daemon/ ./cmd/pilotctl/— clean.GOWORK=off go vet— clean (no unused imports).GOWORK=off go test ./cmd/pilotctl/... ./pkg/telemetry/...— pass.grep -rn app_usage cmd/ pkg/— only an explanatory comment remains.Note: builds require
GOWORK=offin this checkout — the repo-localgo.workoverlays a staleapp-storecheckout missingCataloguePublisher(pre-existing, unrelated to this change).🤖 Generated with Claude Code