On-Device Privacy: What Actually Stays Local

On-Device Privacy: What Actually Stays Local

"Runs on your device" is a claim that adjacent engineering can quietly erode. Here is the inventory and the documentation discipline that keeps it true.

On-device inference is a genuine property — the content being processed need not leave the browser — but "runs on your device" as shipped is a default that adjacent engineering can quietly erode until the product page's claim and the network tab disagree. The engineer who owns the feature owns making those two things agree, and that starts with a documented, honest inventory of everything that still leaves the device.

The property and the claim are different things

The genuine property is straightforward: when inference runs on-device, the content being processed — a draft, a note, an audio stream — does not need to leave the browser to produce a result. That removes an entire class of data-handling exposure the moment it holds true.

The gap this article exists to close is that "on-device" as shipped is a default, and defaults can erode. A fallback gets added here for capability reasons. A telemetry event gets added there for product-analytics reasons. Neither change touches the feature's happy path, and neither feels, in the moment, like a privacy decision. Much later, the product page can still say the feature runs entirely on the user's device while the network tab tells a different story.

The engineering stance this article takes is that a privacy claim is a testable statement about data flows, not a marketing adjective. The individual contributor who owns the feature is the person who owns making the network tab agree with what the product page says — and has standing to push back when it does not.

This position is easy to end up in. Product copy can be written before downstream engineering decisions are finalized, while the feature keeps changing after launch with new fallback conditions, new telemetry events, or a new device tier added for cost reasons. The claim on the page and the code's actual behavior start out aligned and then drift apart independently, on their own separate schedules, unless something in the process forces them to stay in sync. That something is the discipline this article describes.

What still leaves the device

An honest inventory, covering everything that touches the network regardless of whether the "on-device" claim is technically still true for the main inference path:

The model download itself. Fetching a specific model file is, on its own, a signal that this user uses this feature — a small but real disclosure that happens before any inference runs at all.

Runtime and CDN fetches. The inference runtime and any supporting assets it needs come from somewhere, and that somewhere is a network request like any other.

Telemetry and analytics events. These may carry inputs or outputs directly, or carry enough contextual detail (which document, which session) to reconstruct them indirectly.

Error reports with prompt fragments. A stack trace or error report that captures surrounding context can carry a fragment of the exact content the feature was supposed to keep local, entirely by accident.

The server fallback path, by design. When the routing logic this topic's hybrid-inference coverage describes falls back to a remote model, the fallback carries full content to a server on purpose — that is what a fallback is for.

There is a subtlety worth naming even in flows that never send raw content anywhere: aggregation. Content-free signals — which feature fired, how long it took, which model version handled it — still profile usage over time. Deciding which of those signals to emit is a real decision with real trade-offs, not hygiene work to wave through unexamined.

Derived data deserves explicit naming too. Embeddings and classifications computed from private content are content-derived data, and shipping them off-device is not made innocent by the fact that they are numbers rather than text. A vector representation of a sensitive note is still, in a meaningful sense, that note.

The silent fallback deserves particular attention: sending full content to a server is what it is for. It can convert the entire privacy property to false without a single line of code touching the feature's happy path — which is exactly why the disclosed-fallback rule from this topic's hybrid-inference coverage is load-bearing here rather than optional.

It is worth being specific about why a fallback needs different treatment from the other items on this inventory. A telemetry event or an error report leaks whatever its payload was built, or misconfigured, to carry — which can range from a content-free signal to the input itself. A fallback, by contrast, is the entire feature switching from a design where content stays local to one where it does not, silently, on a condition (device capability, network state, load) the user has no visibility into and no reason to suspect. How much the other items leak depends on what a particular payload carries; a fallback sends full content whenever it triggers, by design rather than by accident — which is exactly why it needs its own explicit disclosure rule rather than being treated as just another line in the inventory.

The data-path document

The artifact this article asks every feature owner to maintain is a per-feature, reviewed statement of every data flow: what is processed locally, what leaves the device, where it goes, what it contains, and under which conditions — covering every rung of the capability ladder and the fallback path explicitly, not just the ideal case. For an illustrative feature, it might look like this:

FlowStays local?Leaves under what condition
Primary inference (happy path)YesNever, on a capable device
Model / runtime downloadNoOn first use, and again whenever the browser evicts the cached copy
Telemetry (feature usage, latency)NoAlways — designed to be content-free
Error reportsDependsOnly if context capture is misconfigured
Server fallbackNoWhen the device fails the capability check

Keeping this document honest works the same way other living instruction files stay honest: when a change adds a new flow — a new telemetry event, a new fallback condition — the document changes in the same pull request as the code. A stale data-path document is worse than having none at all, because it produces false confidence rather than an honest gap.

Verification is itself an engineering task, not a documentation exercise. Watching the network tab under each capability-ladder rung is the cheap version of this audit. Where the claim is product-critical — where marketing or legal is relying on it — a continuous-integration assertion that no requests reach inference endpoints while the local path is active turns the audit into something that runs on every change rather than once before launch.

What the document ultimately makes possible is defensible claim language. A precise, conditional sentence — "drafts are processed on your device; if your device cannot run the model, drafting uses our servers, and we tell you when that happens" — survives scrutiny in a way an absolute sentence like "your data never leaves your device" does not, because the absolute version is falsified by the very first edge case the feature owner already knows exists.

What on-device genuinely unlocks

None of this honesty is a reason to undersell what on-device processing actually enables. Certain feature shapes only work honestly this way at all: assistance over content a user would never willingly send to a server — private notes, unsent drafts, local files on the user's machine, health and financial text, and ambient microphone or camera streams captured before the user has decided anything in them matters.

In enterprise contexts, this becomes a procurement-relevant framing rather than a compliance promise: on-device processing can turn a feature that would otherwise be prohibited — because content would leave a security boundary — into one that is permissible, because it demonstrably does not. That framing works because it is a verifiable engineering property, not because someone asserted it in a sales deck.

Three honest limits keep this framing from overreaching. On-device processing does not sanitize the model's behavior — a local model can still produce harmful or wrong output regardless of where it ran. It does not anonymize derived data — an embedding computed locally is still content-derived. And it does not exempt a product from the rules of whatever jurisdiction it operates in — legal obligations, consent regimes, and regulatory interpretation belong to dedicated privacy-compliance literature, not to this engineering-focused article.

The discipline that ties all of this together is claim review: privacy-forward feature marketing gets checked against the data-path document before it publishes, not after. The engineer's standing to veto the word "private" when the document does not actually support it is a legitimate part of owning the feature — not an act of obstruction.

Project Inquiry