PRIVACY.md does not match the code: push content, analytics linkability, and the missing account-deletion path
Three documentation-versus-code gaps, verified against 383c9f8b. Filing as one issue because the decision is the same in each case: change the behaviour, or change the text.
1. Push notification content. PRIVACY.md:62-66 states that push notifications "are sent directly from your devices to each other, not from our backend", that "we never see the content of your notifications", and that "only device-to-device communication occurs for notification content".
The code sends session-derived plaintext through the relay. getSessionTitle builds the notification body from metadata.summary.text — the agent-generated conversation summary — falling back to the working-directory basename (packages/happy-cli/src/api/pushNotifications.ts:19, :28). That title and body are POSTed unencrypted to POST /v1/sessions/:id/push-event, forwarded to Expo's HTTP API, and additionally rebroadcast by the relay as an unencrypted ephemeral socket event. We captured the outbound request body: the summary appears twice in cleartext, plus data.tool.
2. Analytics linkability. PRIVACY.md:24 and :31 state that analytics use an anonymized ID and that "we cannot match this back to any user or account". The session_switched event carries the relay's own session_id and three exact server-side session timestamps (packages/happy-app/sources/track/index.ts:41), which re-identify the profile against the relay's Session table (schema.prisma:98). The distinct id being unlinkable does not help when the properties are server-owned keys.
To be fair to the implementation: no message content is sent, which matches the "No Content Tracking" claim, and the opt-out works.
3. No account deletion exists. PRIVACY.md asserts a right to "delete all your data through the app" and that deleted data is removed within 30 days. Enumerating every app.delete route under packages/happy-server/sources/app/api/routes/ gives push tokens, artifacts, machines, session avatars, GitHub and vendor connections, project avatars, projects and sessions — and no account deletion. accountRoutes.ts has only GET /v1/account/profile and GET/POST /v1/account/settings. No "delete account" handler exists in the app either. The Account row, its public key, profile, GitHub link, encrypted settings, usage reports and feed items cannot be purged through any code path we found.
Separately, session deletion detaches its blob cleanup with no await, retry, tombstone or reconciler, so a storage error or restart leaves deleted ciphertext in place — which interacts with the 30-day claim.
Suggested fix
- Make the push body a constant, content-free string and drop
sessionTitleanddata.tool; if rich notifications matter, generate them on-device from already-decrypted state. - Remove
session_idand the raw timestamps fromsession_switched, or substitute a client-generated id the relay cannot compute. - Add an account-deletion endpoint, or amend the policy to describe what is actually offered.
Source: slopus/happy