# Privacy

musterd on your own machine sends nothing unless you sign in to an account or say yes to the install count. `musterd init` asks once, and the answer defaults to no.

The self-hosted product is a local daemon and a SQLite file on the machine that runs it; installing or running the CLI against your own daemon does not open a connection to us unless you signed in to a musterd account (a signed-in team checks in with musterd.io for its sign-in keys) or turned on the [install ping](#the-install-ping-is-off-until-you-say-yes), and there are no usage analytics in the product. **musterd Cloud** (`MUSTERD_MODE=cloud`, [ADR 475](./docs/decisions/475-cloud-hosted-teams-postgres.md)) is a separate, hosted posture — see [Hosted teams (musterd Cloud)](#hosted-teams-musterd-cloud) below for what a hosted team server stores and exports. The public website is also a separate surface and is measured — see [The website counts visits](#the-website-counts-visits).

## Hosted teams (musterd Cloud)

When a team runs on **musterd Cloud** (`*.musterd.dev` / `app.musterd.io`), the team server and account console are operated by us:

- **What the hosted team server stores:** your team's coordination state (roster, Presence, Inbox, Lanes, Acts, and structural trace events) in a tenant-isolated Postgres database, plus — only when the team owner enables `trace.content: on` AND the individual human member (or agent sponsor) explicitly opts in ([ADR 445](./docs/decisions/445-agent-traces-captured-local-first.md), Cloud spec §4.8) — credential-scrubbed trace content in a separate trace database with a 30-day default retention (7–365 days configurable by the owner, 7-day encrypted backup retention, and immediate deletion on consent withdrawal).
- **Operator telemetry and error tracking ([ADR 678](./docs/decisions/678-cloud-6-observability-otel-exporter-and-privacy-disclosure.md)):** in Cloud mode (`MUSTERD_MODE=cloud`), when `MUSTERD_OTLP_ENDPOINT` is configured by the operator, the hosted team server exports OpenTelemetry request/envelope traces, metrics, and 5xx/unhandled exception events over standard OTLP/HTTP (`@opentelemetry/exporter-trace-otlp-http` / `@opentelemetry/exporter-metrics-otlp-http`, vendor-neutral — e.g. Grafana Cloud / Honeycomb) so we can detect outages and server errors. **Message bodies, Act text, tool-call arguments, secrets, and seat names are never exported in HTTP request spans or error events** — HTTP request spans carry only structural attributes (`http.request.method`, `url.path` with credentials and seat/member path segments redacted as `[seat]`, `http.response.status_code`, `musterd.mode`, and `musterd.team`). Self-hosted daemons never enable this path unless you set an OTLP endpoint yourself.
- **Status emails ([ADR 905](./docs/decisions/905-status-subscriptions.md)):** if you subscribe on `status.musterd.io`, we store your email address in the status page's own database (Cloudflare D1, outside musterd Cloud) only to send you two kinds of message: Cloud is down, and Cloud is back. An address that is never confirmed is deleted after 24 hours; unsubscribing, from the link in any message or your mail client's unsubscribe button, deletes it at once. Mail is sent through Cloudflare Email Sending. We store no IP address: the form's rate limit counts a keyed hash of it, kept for an hour.

## Telemetry is off until you point it

OpenTelemetry is built in and **off by default**. The SDK starts only when you set a standard OTLP env var (`OTEL_EXPORTER_OTLP_ENDPOINT`, or the traces/metrics variants) and never when `OTEL_SDK_DISABLED=true`. `musterd service install` does not write an endpoint unless you pass `--otlp-endpoint`.

When it is on, spans and metrics go **only** to the endpoint you configured. There is no musterd-operated collector in the product path. Message **bodies are never telemetry** — not Act text, not tool-arg bodies, not secrets. Identity on a span is a Team, a Member id, and an Act name.

Apart from signing in to an account, the one thing the CLI can send us is the install ping below, and only after you say yes ([ADR 909](./docs/decisions/909-opt-in-install-ping.md)). It is not product-usage analytics: it carries no record of what you do. If product-usage analytics are ever wanted, that is a separate, explicit, opt-in decision with its own ADR — and this file changes in the same commit. Visits to the website are not product-usage analytics and are covered below; nothing the daemon does is measured by them.

## The install ping is off until you say yes

We cannot see who installs musterd, and we would like to count it. So `musterd init` asks one question, once per machine, and the answer defaults to no:

> Count this install? If yes, musterd sends one ping now and one a week while you use it: the CLI version, your OS family and a random id. No team, names, paths or content. Change it any time with `musterd ping off`. Details: musterd.io/docs/privacy

- **Off by default.** Nothing is sent until you answer yes or run `musterd ping on`. A run with no terminal (CI, a script) is never asked and never opts in. `DO_NOT_TRACK=1` forces it off and refuses `musterd ping on`.
- **What a ping carries, and nothing else:** its kind (`installed`, sent once, or `still-here`, sent at most once per calendar week), the CLI version, the OS family (`darwin`, `linux`, `win32` or `other`), and a random id. The id is 32 random hex characters made when you say yes. It is not derived from your machine, user, team or seat, and it is stored only in `~/.musterd/ping.json`.
- **Where it goes:** `https://ping.musterd.io/v1/ping`, a Cloudflare Worker we operate (`workers/install-ping/` in this repository). It reads the four fields and nothing else from the request. It stores no IP address and no header, and its request logging is switched off. A body with any other field is refused.
- **What we keep:** one record per id, holding the day it was installed and the days it was seen (days, never times), with the last version and OS family. A record is deleted 90 days after its last ping. We read counts from it: how many installs, and how many were seen a week or more after installing.
- **Turning it off:** `musterd ping off` deletes the id from your machine and nothing more is sent. `musterd ping status` shows whether it is on and the id.

## The website counts visits

**musterd.io runs Cloudflare Web Analytics.** It is cookieless and stores nothing on your device: no cookie, no `localStorage`, no identifier that follows you between visits or to any other site. What Cloudflare records for us is a page load — the URL, the referring site, a country, a device class, and a timing — aggregated. We get counts, not people. We build no picture of an individual reader: one visit is never joined to another, and there is no way for us to look a reader up.

It is on the website only. The pages the daemon serves — `/live`, `/board`, `/audit`, `/approvals`, `/broadcast` — carry no third-party script at all, because the beacon is added when the public site is staged for deploy and never enters the bundle the daemon ships ([ADR 132](./docs/decisions/132-live-viewer-on-daemon-origin.md), [ADR 302](./docs/decisions/302-musterd-io-public-site.md)). Your own daemon does not report your use of it to anyone, which is the promise at the top of this file and is unchanged.

Why we measure it at all: we write the site for strangers, and without counts we cannot tell whether anything we publish is read. That is a question about our own pages, and we answer it with the least data that answers it.

## What stays on your machine

Team state (roster, Presence, Inbox, Lanes, Acts) lives in local SQLite. Config, credentials (`mskey_` / `msgr_` / `mscr_`), and logs live under `~/.musterd` with credentials chmod-600. Nothing in that tree is uploaded by the product. The one exception is the random id in `~/.musterd/ping.json`, sent only if you turned on the install ping.

## Optional rails you deploy

A Team may opt into a **seeds relay**: a Cloudflare Worker *you* deploy, with seeds landing in *your* KV, pulled by *your* daemon. That is capture you chose, not a musterd backend. Slack or Twilio see what you send them on those channels. The `*.workers.dev` URL in `workers/seeds-relay/` is Sandrise dogfood, not a product default.

`service refresh` updates the daemon from the git checkout you already pointed it at. That is your origin, not ours.

Package registries (npm, Homebrew) see a download when you install. That is those registries, not musterd telemetry.

## Dogfood is not the product default

The daemons **we** operate may export OTLP to a collector on localhost so our own sessions are measurable. That is [ADR 082](./docs/decisions/082-instrument-by-default-telemetry.md), scoped to dogfood, documented in [`docs/dogfood-telemetry.md`](./docs/dogfood-telemetry.md). The product default stays off.

## Research artifacts

A coordination-traces dataset may be published later. v1 is structural-only ([ADR 184](./docs/decisions/184-dataset-consent-and-redaction.md)): no Act prose, no seat names in the release files. An export is not a publication; a HuggingFace upload needs a fresh human authorization per release. Writing a dataset card grants nothing.

## Spec

[ADR 015](./docs/decisions/015-otel-layer1-server.md) · [ADR 909](./docs/decisions/909-opt-in-install-ping.md) · [ADR 082](./docs/decisions/082-instrument-by-default-telemetry.md) · [ADR 089](./docs/decisions/089-telemetry-l2-client-sdk.md) · [`docs/design/observability.md`](./docs/design/observability.md) §config
