# What the apps send, and the code that proves it (Words, Days, Story; 22 Nov 2026) The Play Data safety answers (`assets/store/play//data_safety.md`) and the App Store privacy labels (`assets/store/appstore//privacy_labels.md`) cite these by number. Every line was found in the code at 19d3b0fc01 and spot-checked by hand where it decides an answer. When the code changes, change the line here and the answers that cite it. ## The stance these answers take (for the owner and coordinator) Content after sign-in is end-to-end encrypted (E2), and both stores let truly end-to-end encrypted data go undeclared (Play: data "unreadable by you or anyone other than the sender and recipient… must not be readable by any intermediary entity, including the developer"; Apple counts as collected only what you "and/or your third-party partners" can "access"). The answers below **declare content anyway**, because Cotton's server can read some of it: - memory (Words) and project (Words, Days) are kept open on purpose (E3, the owner's 16 Nov 2026 ruling); - during a window the person allows, the server opens sealed rows in memory to answer their assistant (E13); - Google Calendar events pass through the server readable before they are sealed (E8). Declaring more than strictly needed is safe; declaring less than the reviewer can find is not. If the owner wants the narrower reading (content sealed, so not declared), the lines marked **[E2E choice]** are the ones that would come out. ## Evidence - **E1 Phone number, sign-in.** The core sends the number with the device id to `POST /v1/code` and sign-in: `crates/cotton-ffi/src/phone/personal_object.rs:157`, `:175-183`. Server: `apps/business/src/business.ts:2135-2177`. Twilio Verify receives the number to send the code: `apps/business/src/auth.ts:217-220`, check `:242-245`. The person's own database keeps the number (`apps/business/src/store.ts:158-163`); the directory keeps only an HMAC (`apps/business/src/number_key.ts:15-22`). Signing in is optional: every app works before it. - **E2 Content is sealed on the phone after sign-in.** AES-256-GCM per row, every column sealed unless the table's rule names it clear: `crates/cotton-core/src/seal/row.rs:1-16`; writes for a table whose seal is unknown are held, never sent clear: `crates/cotton-client/src/transport/object.rs:659-667`; the server refuses a clear sealed column: `apps/business/src/seal.ts:293`. Clear columns are order and sync details only (dates, status, positions, counts): `crates/cotton-core/kits/personal/tables/note.json`, `event.json`, `photo.json`, the Story tables, and the default rule `crates/cotton-core/src/seal/default.json`. - **E3 Not sealed: memory and project.** `crates/cotton-core/src/seal/default.json` `pending` names `memory` (the assistant's memory, shown in Words under Memory) and `project` (the projects an assistant files notes under, Words and Days). Readable by the server by the owner's ruling (16 Nov 2026), and said on the privacy page for memory. Guard: `crates/cotton-core/src/seal/rule_tests.rs` `memory_stays_open_by_the_owners_ruling_of_16_nov`. - **E4 Photos and files are sealed on the phone before upload** for the sealed kinds (photos among them): `crates/cotton-client/src/media/transport.rs:244-252`, `crates/cotton-client/src/media/sealed.rs:12-24`. Pictures in Words and Story are photos. Not a sealed kind: an assistant-made document's original (`crates/cotton-core/src/media/keys.rs:145-154`; Words' `document` table, `crates/cotton-core/kits/notes/kit.json:19`, HTML pages an assistant writes). - **E5 Report a problem.** Sent only when the person sends one. Android `apps/android/shell/src/main/kotlin/com/cottondb/shell/Report.kt:126`; iPhone `apps/cotton/Sources/CottonKit/Boundary+Feedback.swift:33-57`; the core's outbox `crates/cotton-ffi/src/phone/feedback_send.rs`. The server stores the sentence, screenshot, recent log, device model, OS, app build and, when signed in, the number and name, readable, in Cotton's own product database and PHOTOS bucket: `apps/business/src/feedback.ts:212-229`, `:270-276`. The sender's IP only as a salted hash for rate limits (`:199`). Kept 90 days (owner, 22 Nov 2026). Deleted with the account (`apps/business/src/account_delete.ts:36`). - **E6 Crash reports.** Android: no crash or analytics library (dependencies in `apps/android/shell/build.gradle.kts`, `apps/android/app/build.gradle.kts`; Firebase only in the Calling and Messages flavours). iPhone: sentry-cocoa is built in (`apps/cotton/project.yml:191-193`), but it starts only for a bundle whose id is `com.cottondb.cotton` or its dev twin (`apps/cotton/Sources/CottonKit/Reporting.swift:149-157`, `apps/cotton/Sources/CottonMailbox/AppFlavor.swift:42-47`), so for `com.cottondb.notes`, `com.cottondb.calendar` and `com.cottondb.story` it never sends (`Reporting.swift:238-240`). **Today none of the three sends a crash report.** If that check is fixed, an event carries the message, release, device model, OS, screen route and the last 200 log lines, no user id, database id or number (`Reporting.swift:424-436`, `Reporting+Sentry.swift:46-64`, `:96-104`), and Crash Data plus Other Diagnostic Data must then be declared from that build on. - **E7 Device identifiers.** Each install makes its own key pair; the public key is the device id sent at sign-in and on every request (`crates/cotton-client/src/identity.rs:66-70`). The device's name (`Build.MODEL` on Android, `apps/android/shell/src/main/kotlin/com/cottondb/shell/core/Session.kt:23`; `UIDevice.current.name` on iPhone, `CottonUI/Join/ThisPhone.swift:22`), platform and app version are kept in the person's open `device` table (`crates/cotton-ffi/src/phone/personal_object.rs:993-1000`). No advertising id: no AdSupport or AppTrackingTransparency on iPhone, no `play-services-ads-identifier` and no AD_ID permission in any source manifest on Android (to confirm on the merged manifest: `aapt dump permissions` on each release bundle). The iPhone's APNs token is never sent anywhere from these apps (`apps/cotton/Sources/CottonChat/ChatShell.swift:87` is its only reader; Days' alerts are local). - **E8 Google Calendar, Days only, optional, after sign-in.** Scopes `openid email calendar.events.owned` (24 Nov 2026; `calendar.events.readonly` until 22 Nov, `calendar.events` until 24 Nov; `apps/business/src/google.ts` `SCOPES`). The server keeps Google's grant sealed under its own key, which it can open (`google.ts:291-296`), fetches the events itself (`apps/business/src/google_calendar.ts:288-304`) and seals each to the person's arrival key before storing it (`google_calendar.ts:134`, `apps/business/src/arrival_seam.ts:1-33`); title, notes and place pass through the server readable while it does. The Google account's email address is kept readable (each event's `account` column, `google_calendar.ts:303`, and the account list). Attendee emails are not stored. **Changed 22 Nov 2026 (Google both ways, CONTRACT.md §15–16, `crates/cotton-ffi/src/phone/days_people.rs`, `days_google.rs`):** the scope is now `openid email https://www.googleapis.com/auth/calendar.events`; a change to an event that goes to Google (a Google event changed or deleted in Days, an own event with people invited through Google, or every own event when "Also keep my Days events in Google Calendar" is on) is sent from the phone in plain through the person's object, which hands it to Google and keeps nothing of it; and the people on an event are kept as `event_attendee` rows (email, phone, name, answer). An invitation to someone connected on Cotton is sealed to them. Declare the attendees' email addresses as collected (conservative: whether those rows are sealed is not checked here). - **E9 Speech.** On the phone only. Android: the on-device recogniser only (`apps/android/shell/src/main/kotlin/com/cottondb/shell/voice/VoiceEngines.kt`, `createOnDeviceSpeechRecognizer`; test `PlatformSpeechTest.kt` fails if any shipped file makes the other kind), or the Cotton Voice app over a binder on the phone. iPhone: `SystemSpeechRecogniser.swift:1-10`, `CottonVoice/AppleSpeechEngine.swift:1-10` (SpeechAnalyzer, on device). No audio leaves the phone in Words, Days or Story. - **E10 Permissions.** Android `apps/android/app/src/main/AndroidManifest.xml:5-15` (INTERNET, ACCESS_NETWORK_STATE, POST_NOTIFICATIONS, RECORD_AUDIO); Days adds RECEIVE_BOOT_COMPLETED (`app/src/days/AndroidManifest.xml:5-6`); Story adds FOREGROUND_SERVICE_MEDIA_PLAYBACK (`app/src/story/AndroidManifest.xml:4-5`). No camera permission (the system camera app), no contacts, calendar, location or storage permission; the photo picker (`PickVisualMedia`) and document picker (`OpenDocument`). iPhone `apps/cotton/project.yml:601-612` (Words), `:997-1011` (Story), `:1076-1084` (Days): no Contacts, Calendars or Location keys. Birthdays in Days come from Cotton's own people, not the phone's contacts (`crates/cotton-core/kits/days/kit.json`). - **E11 Deleting.** In the app: Android `apps/android/shell/src/main/kotlin/com/cottondb/shell/DeleteAccountPart.kt` (Words `notes/NotesAccount.kt:100`, Days `days/ui/Settings.kt:100`, Story `story/ink/Pages.kt:274`); iPhone `CottonUI/Chrome/DeleteAccountPart.swift`. On the web: cottondb.com/delete (`apps/business/src/delete_page.ts`). The deletion: `apps/business/src/account_delete.ts`. From the owner's change of 22 Nov 2026 (being built by lane launch): set to be deleted 30 days after asking, signing in before then keeps it. - **E12 In transit.** The core reaches only `https`, or `http` to the phone itself or a home network (`crates/cotton-client/src/transport/address.rs:48-54`). Android allows cleartext to 127.0.0.1 only (`app/src/main/res/xml/player_door.xml:5-9`); iPhone only `NSAllowsLocalNetworking` (`apps/cotton/project.yml:1501-1502`). - **E13 Assistant.** Only when the person connects one (`apps/business/src/oauth.ts:1-31`), with a standing grant or a window from the phone (`apps/business/src/agent.ts:1-44`); the server opens sealed rows in memory to answer it, and what it reads goes to that assistant's company. A transfer the person starts. - **E14 Other parties.** Twilio (codes, E1) and Cloudflare (hosting) act for Cotton. Google Play services Block Store keeps a 32-byte recovery key, backed up end-to-end encrypted by Google (`apps/android/shell/src/main/kotlin/com/cottondb/shell/core/BlockStore.kt:13-25`); iCloud Keychain on iPhone (`apps/cotton/Sources/CottonKit/PlatformKey.swift:65`). Words: an assistant-made page may load scripts and fonts from public CDNs when opened (`notes/NotesAssistant.kt:132-136`, `CottonUI/Viewer/ViewerWeb.swift:30-38`). No ads, analytics, maps or location anywhere.