|
| 1 | +# Telemetry |
| 2 | + |
| 3 | +Executor's local products (the CLI, the desktop app) and self-hosted |
| 4 | +deployments send a small set of anonymous usage events. This document is the |
| 5 | +complete account of what is sent, what is deliberately not sent, why the |
| 6 | +feature exists, and how to turn it off. |
| 7 | + |
| 8 | +The hosted cloud product has its own browser-side analytics, disclosed |
| 9 | +separately in its terms; this document covers the software that runs on your |
| 10 | +machines. |
| 11 | + |
| 12 | +## Why |
| 13 | + |
| 14 | +Executor is used mostly outside our infrastructure. Without some signal from |
| 15 | +local and self-hosted installs, every product decision about them is a guess: |
| 16 | +we cannot tell whether a feature ships broken, whether anyone uses toolkits, |
| 17 | +whether executions fail at unusual rates after a release, or whether the |
| 18 | +product is growing anywhere except cloud. |
| 19 | + |
| 20 | +The events exist to answer exactly one kind of question: **how are product |
| 21 | +features being used?** They are metadata about the product, not about you. |
| 22 | +Anything that would answer "what is this user doing" — which APIs you call, |
| 23 | +what your tools are named, what your code does — is out of scope by design, |
| 24 | +not by omission. |
| 25 | + |
| 26 | +## What is sent |
| 27 | + |
| 28 | +Each event carries its named properties plus, on every event: a random |
| 29 | +per-install id, the product surface (`cli`, `desktop`, or `selfhost`), the |
| 30 | +release channel, and the app version. |
| 31 | + |
| 32 | +| Event | Properties | Meaning | |
| 33 | +| --------------------- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| 34 | +| `execution_completed` | `ok`, `plane` (`mcp`/`api`), `toolkit` (boolean) | A code execution finished, split by whether an agent (MCP) or a human-facing API triggered it, and whether a toolkit-scoped endpoint served it. | |
| 35 | +| `integration_added` | `plugin_key` | An integration was added, by kind (`openapi`, `mcp`, `graphql`, ...). | |
| 36 | +| `integration_removed` | `plugin_key` | An integration was removed, by kind. | |
| 37 | +| `artifact_created` | `via` (`agent`/`ui`) | A generative-UI artifact was saved. | |
| 38 | +| `artifact_viewed` | `via` | An artifact was opened for its content. | |
| 39 | +| `artifact_updated` | `via` | An artifact was overwritten or renamed. | |
| 40 | +| `artifact_deleted` | `via` | An artifact was deleted. | |
| 41 | + |
| 42 | +That table is exhaustive. The typed catalog the code compiles against is |
| 43 | +[`packages/core/analytics/src/events.ts`](packages/core/analytics/src/events.ts); |
| 44 | +an event that is not in that file cannot be sent. |
| 45 | + |
| 46 | +## What is never sent |
| 47 | + |
| 48 | +- No code, tool arguments, tool results, or error messages. |
| 49 | +- No secrets, tokens, or credentials. |
| 50 | +- No names you typed: no integration slugs, connection names, toolkit slugs, |
| 51 | + tool names, or artifact titles. The **kind** of integration (`openapi`, |
| 52 | + `mcp`, ...) is a product question; **which** service you connected it to is |
| 53 | + your business. |
| 54 | +- No identity: no emails, usernames, hostnames, IP-derived location, or org |
| 55 | + names. Events are marked so the analytics backend builds no person profile. |
| 56 | + |
| 57 | +## The anonymous id |
| 58 | + |
| 59 | +A random UUID is minted the first time the daemon or server starts and stored |
| 60 | +as `analytics-id` in the data directory (`~/.executor` for local installs, the |
| 61 | +configured data dir for self-host). It exists so that ten events from one |
| 62 | +install count as one install, not ten. It is not derived from your machine, |
| 63 | +account, or network, and deleting the file resets it. When telemetry is |
| 64 | +disabled the file is never created. |
| 65 | + |
| 66 | +## Opting out |
| 67 | + |
| 68 | +Set either environment variable to `1`, `true`, or `yes`: |
| 69 | + |
| 70 | +- `DO_NOT_TRACK` — the [cross-tool convention](https://consoledonottrack.com), |
| 71 | + which Executor also honors for its other outbound calls (crash reporting, |
| 72 | + the integrations.sh catalog fetch). |
| 73 | +- `EXECUTOR_DISABLE_ANALYTICS` — telemetry only, if you want the catalog |
| 74 | + fetch and crash reporting to keep working. |
| 75 | + |
| 76 | +Opting out is total: the analytics service becomes a no-op, nothing is |
| 77 | +buffered, nothing is sent, and no id file is written. The CLI's managed |
| 78 | +service (launchd/systemd) forwards both variables into the supervised |
| 79 | +daemon's environment, so an opted-out install stays opted out. |
| 80 | + |
| 81 | +## Delivery mechanics |
| 82 | + |
| 83 | +Events buffer in memory (bounded) and flush in batches on a fixed cadence, |
| 84 | +plus once at shutdown. Delivery is best-effort: a failed flush re-queues and |
| 85 | +retries later, failures are swallowed, and no user-facing operation ever |
| 86 | +waits on — or can be failed by — analytics. The ingest endpoint is PostHog |
| 87 | +(`us.i.posthog.com`); the project key in the source identifies the project |
| 88 | +and grants no read access. |
| 89 | + |
| 90 | +## Where the line is enforced |
| 91 | + |
| 92 | +Structurally, not by convention: |
| 93 | + |
| 94 | +- The event catalog is a closed, typed interface — adding a property means |
| 95 | + editing [`events.ts`](packages/core/analytics/src/events.ts) in a reviewed |
| 96 | + change, next to the property rules at the top of that file. |
| 97 | +- Attribution (`plane`, `via`) is bound where each serving surface is |
| 98 | + composed, so events cannot carry request-controlled labels. |
| 99 | +- Observers hang off neutral seams (an engine wrapper, post-commit hooks); the |
| 100 | + core SDK carries no analytics vocabulary and hosts that do not opt in — like |
| 101 | + every test — compose with no analytics at all. |
0 commit comments