# Privacy, Telemetry, and Data Scope

XCLoom is operated by the XCLoom maintainers (`maintainers@xcloom.dev`). Local builds keep your source code on your Mac. This page documents what data the local CLI, this website, and optional XCLoom Cloud collect and store.

## Local CLI Telemetry (Opt-Out)

### Exact 20-field allowlist (`docs/telemetry.md`)

`schema_version`, `install_id` (random UUID v4), `event_ts`, `xcloom_version`, `os`, `os_version` (`major.minor` only), `arch`, `xcode_major` (Xcode major version only), `is_ci`, `invocation_surface` (`cli` or `mcp`), `command`, `duration_ms`, `exit_code`, `error_code` (structured code only), `engine` (`direct` or `xcodebuild`), `fallback_reason_code`, `slim_mode`, `remote_cas` (`none`, `byo`, or `cloud`), `cas_hits`, and `cas_misses`. Unknown fields are rejected and payloads are capped at `4 KiB`.

### What is not collected

Source code, file paths, working directories, hostnames, project/scheme/target names, Bundle IDs, Git URLs/SHAs, env values, certificates/Keychain items, raw `stderr`, crash symbols, or persisted client IP addresses (the ingestion server uses an ephemeral per-process salted hash in memory solely for rate limiting and writes no IP columns to disk or logs).

### Where it goes & transport

Enabled by default on local interactive runs after a first-run `stderr` notice (never sends on the first run where the notice is printed, and disabled by default when `CI=true`). Sent asynchronously via a detached `xcloom __telemetry-send` process (`150ms` connect / `300ms` total timeout, silent drop offline) to `POST https://cloud.xcloom.dev/v1/telemetry`. Zero stdout/`--json`/MCP stdio output.

### Retention

Raw telemetry rows are deleted after `90` days by an automatic server-side hourly cleanup.

### How to disable

Set `DO_NOT_TRACK=1`, set `XCLOOM_NO_TELEMETRY=1`, or run `xcloom telemetry off` (`xcloom telemetry status` is read-only and never writes `telemetry.json` or generates an `install_id` on disk).

## BYO `--remote-cas` (Your Infrastructure)

Passing `--remote-cas` with your own `s3://`, `r2://`, `file://`, or self-hosted `xcloom cas serve` URL sends compiled cache blobs strictly to the destination you configure (all free under `FSL-1.1-ALv2`). Nothing is sent to XCLoom unless you explicitly point it at XCLoom Cloud.

## XCLoom Cloud Account & Storage

Enabled only when you sign in via `xcloom login`, the web Console (GitHub, Google, email/password, Passkey, or Email OTP), or explicitly run `--remote` / `--upload` / `--persist` / Cloud CAS commands.

### Account identity, credentials & email

You can sign in with GitHub OAuth (`read:user`, `user:email`), Google OAuth (`openid`, `email`, `profile`), email and password, WebAuthn Passkeys, or email one-time codes. We store your linked OAuth provider IDs, username, display name, avatar URL, verified email address, salted `Argon2id` password hashes (never plaintext passwords), WebAuthn Passkey public keys/credential IDs/counters/labels, HMAC-hashed Passkey recovery codes and 48-hour recovery request timestamps, workspace `slot_id`, Beta batch status (`active` or `Batch #2` queue), login timestamps, SHA-256 hashed API bearer tokens (`cloud_tokens`), and an `HttpOnly` browser session cookie. Users who sign up with Google, email/password, or Passkey can link a GitHub account (`>= 30` days old, verified email) in Account Security to activate Batch #1 Hosted Mac minutes while slots remain.

### How we use your email & unsubscribe

We use your email address to deliver verification codes, password reset links, new sign-in method link alerts, 48-hour Passkey recovery start/cancel/completion alerts, Batch #2 activation alerts, `80%` and `100%` monthly hosted compute quota alerts, and advance notice before any future paid billing or plan changes. Non-essential product updates and marketing emails are optional and include a signed unsubscribe link (`/v1/email/unsubscribe`) and preference controls (`/v1/auth/preferences`). We never sell or share email addresses with third-party advertisers.

### Hosted build inputs, artifacts & retention

- Local CLI (`xcloom build --local`) keeps source code strictly on your Mac.

- When you explicitly invoke hosted remote builds (`xcloom build --remote` or the XCLoom GitHub Action), changed source blobs are uploaded to your tenant-scoped Cloudflare R2 prefix solely to execute the build inside an ephemeral single-job (`--once`) Apple Silicon Tart VM, which is destroyed immediately after the job completes.
- Compiled Direct-CAS blobs, build timing metadata, UI audit screenshots, and E2EE `.dev` preview bundles are stored per workspace (`7` to `90` days retention depending on plan). Customer Apple signing keys are not uploaded to XCLoom Cloud Macs. Request full workspace deletion anytime via `maintainers@xcloom.dev`.

## Hosting, Subprocessors & Billing

### Hosting, compute & storage

XCLoom Cloud is operated by `XCLoom maintainers` on US/global infrastructure using Cloudflare (website hosting, R2 tenant-scoped object storage, Workers & Durable Objects for `relay.xcloom.dev`, optional cookie-free Web Analytics), our control-plane & bare-metal Linux host (running self-hosted open-source BoxLite KVM micro-VMs; no third-party sandbox SaaS subprocessor), and dedicated bare-metal Apple Silicon Macs running single-job ephemeral Tart VMs.

### Authentication & email delivery

GitHub OAuth (`github.com`) and Google OAuth (`accounts.google.com`) when you sign in with those providers; Resend (`resend.com`) for transactional verification codes, security alerts, quota alerts, and Beta notifications sent from `noreply@auth.xcloom.dev`.

### Billing (once paid plans open)

Handled by Polar.sh as Merchant of Record; payment card details and tax records stay with Polar.sh and are not stored by XCLoom.

## Website Analytics

Local preview builds load zero analytics scripts. When enabled on production `xcloom.dev`, the site loads only cookie-free Cloudflare Web Analytics (no tracking cookies, cross-site identifiers, or ad pixels).

## License & Terms

Local CLI: Fair Source (`FSL-1.1-ALv2`, converting to `Apache-2.0` two years after release). Agent Skills: `Apache-2.0`. Full terms in `docs/licensing.md`.
