# Privacy and data

> What stays on your machine, what Team sync sends and how hashed sync hides even names, what the GitHub Action reports, and what usage stats contain.

Lanekeeper is built so your source code never has to leave your machine or your CI.

## On your machine

Everything Lanekeeper needs runs locally: the daemon reads your worktrees, parses them, and compares lanes. Its
state lives in `.git/lanekeeper` inside your repository (mode 700), including the [audit log](https://lanekeeper.dev/docs/audit) and
[cost estimates](https://lanekeeper.dev/docs/cost). On its own the CLI makes no network requests. It only talks to a server if you turn
on one of these: Team sync, usage stats, or the GitHub Action's dashboard report.

## What Team sync sends

Team sync (Team plan, off unless you turn it on) shares lanes between machines by sending:

- lane names, branch names and the base commit;
- symbol names and file paths, with content hashes and argument counts;
- clash records: rule, severity, confidence, lanes, files and line numbers;
- claims and their intent text;
- each machine's daily agent usage per model and agent: token counts and the estimated cost.

It never sends source code, diffs, file contents, signature text or your prompts. The one-line session intent is
shared only if you run `lk sync intents on` in your clone (your own choice; a setting in the repository's
config is ignored).

With hashed sync (`lk sync key`, which sets `sync.hashedSymbols: true`), every name leaves the machine as a keyed hash
instead. That covers symbol and parameter names, path segments, lane, branch and base-branch names, env-var,
dependency and table names, dependency versions, example-value hashes, and claim targets and intents. Session
intents aren't sent at all. The key is `.lanekeeper/sync.key`, committed with your code and never sent to the
server. The server then sees directory depth, which names are equal, content hashes, line numbers, commit ids and the
repository's display name, but no other names. The folder names `packages`, `apps`, `services` and `libs` stay
readable so routes stay scoped by package. Without the key file, Team sync stays off rather than send plain names.

The GitHub Action, given a `cloud-token`, sends each pull request's verdict to the dashboard: the summary and its
clashes (rule, severity, a one-line summary, the other pull requests). Never code.

## Usage stats

Off by default. After `lk telemetry on`, each command you run sends one anonymous event:

- the command's name (`status`, `daemon start`), never its arguments;
- how long it took and its exit code;
- the Lanekeeper version, the OS and the CPU architecture.

The event has no id, so it can't be tied to you, your machine or a repository. It never includes paths, symbol names
or code. Agent hooks never send events. `DO_NOT_TRACK=1` stops events even when telemetry is on. There is no hosted
endpoint yet, so events are sent only when `LANEKEEPER_TELEMETRY_URL` names a server (its `/v1/telemetry`, which
logs them and stores nothing else); without it nothing leaves your machine, and `lk telemetry` says so.

## The dashboard and the team service

The hosted dashboard sends an anonymous pageview to PostHog for each page you open: the page's address without its
query string, with ids and tokens in the path replaced by `:id`, and a random id that lives in that browser tab's
memory only. No cookie, no local storage, no person profile, and nothing at all when your browser sends Do Not Track
or Global Privacy Control.

When something breaks, the dashboard and the API send an error report to Sentry: the error's type, message and stack
frames, the page or API route pattern (`GET /v1/orgs/:org`), and a request id. Not your name, email, IP address,
cookies, request bodies or query strings. Each request's log line on the server has the same fields plus the status
and how long it took. A self-hosted server sends none of this unless its operator sets `SENTRY_DSN`.

## Contact

Questions about data: email [privacy@lanekeeper.dev](mailto:privacy@lanekeeper.dev). See also the [privacy policy](https://lanekeeper.dev/privacy).
