Telemetry
Memtrace CLI telemetry and the separate, default-off MemCode product measurements: what is shared, account association, controls and retention.
The installed Memtrace CLI ships telemetry to help fix bugs and understand usage patterns, and every stream is built around one rule: content never leaves your machine. What ships is shape, category, and counters — never source code, search text, or file paths. All four streams are opt-out, and one env var turns off that CLI pipeline. MemCode has a separate, default-off product measurement option described below.
The four streams#
Everything is queued locally first and shipped in batches to https://www.memtrace.io/api/telemetry/ingest, authenticated with the same bearer session token your license already uses. There are four independent streams:
| Stream | What it carries | Fires |
|---|---|---|
| Usage events | Structured signals like start and mcp_call — event name, ok/error status, duration, result count, never arguments or results. | On lifecycle moments and every MCP tool call |
| Sanitised WARN/ERROR lines | Log lines from the tracing subscriber, run through a sanitiser first, then fingerprint-deduplicated so a noisy repeating warning increments a counter instead of flooding rows. | Any WARN or ERROR event, from any target |
| Crash reports | Panic message, sanitised backtrace (capped at 16 KB), and source location. | On a panic, queued locally and shipped on the next run |
| Rail shadow buckets | Category-only fields: mode, query shape, hit/miss, score bucket — never the search text or matched files. | Async, off the critical path, while Rail is in observe mode |
The sanitiser runs before anything touches disk, on every WARN/ERROR line:
- Absolute paths under your home directory collapse to
~/… - Token- and API-key-shaped strings are stubbed to
<redacted-token> - Email addresses are stubbed to
<redacted-email>
Recurring errors are aggregated by fingerprint into a single row with an occurrences counter, rather than one row per occurrence — a noisy warning doesn't turn into a flood of near-identical records.
Rail's shadow telemetry exists to answer one question — can Memtrace be trusted to route code discovery instead of raw grep/find? — without ever transmitting what you searched for. Every field it ships is a locally-derived category or bucket (query shape, hit-or-miss, a coarse score bucket), computed on-device; the query text and matched files are inspected locally and discarded, never serialized.
What never leaves your machine#
This is an explicit list, not a "we try to avoid" list. None of the following are ever put on the wire by any telemetry stream:
| Never collected | Why it matters |
|---|---|
| Source code | File contents are never read into a telemetry payload. |
| Search text | What you searched for, in Rail or anywhere else. |
| Matched files/symbols | Result identities stay local — only categories ship. |
| Embeddings | Vector data never leaves the embedding cache. |
| Repo names/paths/URLs | Not in usage events, error lines, or crash reports. |
| Branch/commit data | Never included in any payload. |
| Env values | Environment variable contents are never captured. |
| IP addresses | Not logged by the client-side telemetry pipeline. |
Turning it off#
There is one telemetry kill switch, read at startup:
| Variable | Default | Description |
|---|---|---|
MEMTRACE_TELEMETRY | on | Set to off, 0, false, disabled, or no(case-insensitive) to disable the whole pipeline: the tracing capture layer becomes a no-op, event recording short-circuits, and the background flusher never sends anything. |
$ MEMTRACE_TELEMETRY=off memtrace start # disables usage events, error capture, and crash shipping for this run
Even with MEMTRACE_TELEMETRY=off, the panic hook still installs and appends a crash breadcrumb to the local queue file on a crash — it just never ships. This is local-only diagnostic data that stays on disk for your own troubleshooting; nothing from it reaches memtrace.io while telemetry is disabled. Every other stream — usage events, error capture, and shadow measurements — is fully gated by the switch above and produces nothing at all.
The local queue is yours to inspect#
Every stream writes through the same local queue before anything ships, one JSON record per line:
$ cat ~/.memtrace/telemetry/queue.jsonl # one JSON object per line — inspect it any time
A background task drains the queue every 60 seconds. If a flush fails — no network, ingest endpoint down — the queue simply stays on disk and is retried on the next tick, and nothing blocks the work you're actually doing. The queue file is capped at 4 MB, though: if it grows past that (a prolonged outage, or a burst of WARN/ERROR volume) the oldest half of the queued records is dropped to bound disk usage, so a short blip loses nothing but a sustained one can. Because the file is plain JSONL, you can read exactly what would be sent before it ships, or delete it to discard anything queued.
Optional MemCode product measurements#
MemCode product telemetry is off by default. A signed-in developer can enable it in MemCode Settings to share content-free observations that help us understand routing and delivery. This is account-associated, not anonymous: the server authenticates the current Memtrace account with a separate, short-lived telemetry grant. It does not reuse engine access or Team identity tokens as telemetry credentials.
| Category | Allowed measurements |
|---|---|
| Routing at attempt start | Known harness/model identifiers (custom names become “other”), effort, automatic/manual assignment, identified routing policy, app version, cognitive/cyclomatic complexity, nesting and affected-symbol/process/file/module counts. Missing, partial, lower-bound and alignment states remain explicit. |
| Process result | Exit outcome/code and duration. Harness-reported public model identifiers, source labels and model lists remain separate from requested model families. Native input/output/cache-read/cache-write/reasoning counters retain whole-run or main-loop coverage; unknown fields stay unknown. Explicit MemCode check-runner counts and exit status retain their separate source. |
| Human decisions | Explicit accepted/reopened signals linked by random local references where available. Comment text is not included; unlinked decisions stay unlinked. |
| Planning | Reported local-origin project/story/epic/cycle lifecycle actions and numeric snapshots of each device’s local workspace. A shared project may appear in multiple replicas; these are not unique Team totals. |
| Linking and delivery | Random local references are hashed in an account/device/workspace namespace on the server. Platform, architecture and restricted app-release versions identify the reporting software. Event app version stays frozen across a later app upgrade. |
Payloads have a strict, versioned allowlist. They contain no task titles or descriptions, prompts, source or document contents, symbol/file identities, paths, repository URLs, branches, terminal commands, raw errors, custom model labels or shared Team identifiers. Unknown fields and invalid values are rejected rather than saved as an arbitrary JSON payload.
Process completion, a zero exit code, a human acceptance and a reopen are different signals. Reported check counts do not prove code quality. These observational samples have selection bias because routing already chooses models by the work; they do not automatically change routing policy or establish a winning model.
Observations queue locally before upload to https://www.memtrace.io/api/memcode/telemetry. The unsent queue is limited to 1,000 events, 512 KB and 30 days. Older or overflowing observations are discarded; a network or telemetry failure does not block workers. Turning the option off discards pending observations and stops future uploads. Switching accounts also clears the queue and requires a fresh opt-in for the new account.
Uploaded raw product observations become eligible for deletion 90 days after server receipt. Scheduled daily cleanup removes them in bounded batches; a backlog can require successive passes and is reported operationally. Account deletion cascades these observations. Turning telemetry off does not retroactively remove already-uploaded rows before that retention cleanup. Test-channel observations are excluded from production model and delivery charts. Administrators can select a separate QA coding runs view to inspect test measurements without mixing the two channels.
Basic beta sign-in, access refresh and authenticated download-start records remain separate service records. Team sharing and coding-model traffic follow their own settings and provider agreements; enabling product telemetry does not publish code or a project board.