Repository navigation
Description
Parent
Spec #1929. Native parent: #1934.
What to build
A Human can enable or disable this phone's anonymous statistics before pairing or while offline. With statistics enabled, pairing a Host, loading its live Roster and completing the first native chat produces a small, sanitized PostHog sequence. Maintainers can see pairing and connection failures without receiving links, credentials or chat content.
Deliver one complete native product path, including the minimal telemetry owner, sender, privacy controls, named events and QA analysis. No standalone SDK installation or plumbing-only completion.
Acceptance criteria
- First-use and Settings surfaces offer the supported-language notice and explicit opt-in. Ignoring/declining remains fully usable and makes zero vendor requests, including SDK bootstrap. No pre-consent backfill. The phone setting is clearly separate from existing Host telemetry settings.
- One application-defined typed telemetry owner wraps the SDK or minimal batch adapter. Qualify the adapter against the actual Expo SDK and first-party proxy; review all serialized SDK-added properties. Keep automatic screen/touch/lifecycle/exception/replay/flag/survey collection off. No credential-bearing HostCarrier requests are reused for analytics.
- Random Mobile Install ID, event ID, foreground-session ID and operation attempt IDs satisfy Spec: Expo mobile PostHog analytics — pairing, activation and notification outcomes #1929. No Host/site identity stitching, domain IDs or hashes of domain IDs. Opt-out clears queued data and identity, persists locally and prevents future sends; opt-in starts a fresh identity. App reinstall/restore behavior is tested and documented.
- Emit
mobile_app_opened,mobile_pairing_started,mobile_pairing_result,mobile_connection_resultand the threemobile_activation_stepvalues exactly at their specified semantic boundaries. Common source/platform/build/environment/schema properties are present. Preserve the original event ID on transport retry. - Pairing success requires both offer redemption and local saved-Host persistence. Cover QR/paste/deep-link, invalid/expired link and offer, unavailable route, storage failure and explicit retry. Repeated scanner callbacks and route fallback do not multiply attempts.
- Connection ready requires authenticated usable live Roster data; cached data/socket open does not suffice. Include open/resume/switch/recovery/manual-retry triggers, deadline/refusal/cancellation, bounded retry counts, background cancellation and later recovery without changing product reconnection behavior. Multi-Host switching never creates another installation or first-use activation.
- First send activation uses Host acceptance or reconciliation of that same outgoing message after an ambiguous failure. No optimistic-bubble success, old-history activation, per-message event stream or token events. First committed Bot-message observation follows a successful mobile send in that foreground conversation, and is explicitly described as observation, not causal reply latency or task success.
- Implement Spec: Expo mobile PostHog analytics — pairing, activation and notification outcomes #1929's sanitized bounded queue: 100 events / 256 KiB / 24-hour TTL, oldest-first eviction, bounded backoff, 8-second send timeout, no waits in product operations. Test offline retry, overflow/expiry and opt-out while a batch is pending. Telemetry failure cannot fail or delay chat, pairing or approval behavior.
- Unconfigured development/test/Simulator and web-preview builds send nothing. Deliberate QA mode is tagged and excluded from production analysis. A new native dependency/configuration requires new development builds; do not claim Metro-only verification.
- Record the mobile extension to Host-only telemetry in an ADR and integrate glossary/living architecture, first-use notice and public privacy descriptions in supported languages. Coordinate with the existing website owner for a required privacy-page update. Verify the effective project IP-discard setting before production enablement; do not claim the proxy carries no IP.
- Reuse Host-client and Conversation test seams with injected time, identity store and sender. Assert ordered sequences for failures, retries, remounts and stream replay. Sentinel secrets in route, QR, credential, message, filename and raw error inputs never reach serialized payloads, persisted queue or diagnostics.
- Through the shared-device QA process, prove this path separately on physical iOS and Android with an isolated real Host. Read back tagged events in the existing PostHog project; record expected/observed sequence, delay, loss and deduplication limits. Inspect opt-out behavior on device. Record missing gates as unrun.
- Deliver a focused activation/connection analysis definition and tagged QA readback. Use source=mobile, correct platform/build/environment and project timezone. Count opted-in anonymous installations; distinguish new pairing from returning paired installs. No union of Host and mobile message totals, no estimates for non-consenting Humans.
- Record Human QA acceptance of the first working slice before releasing dependent work. Keep automated, native-device, PostHog and Human evidence separate; green CI/merge alone does not satisfy this gate.
Blocked by
None — can start immediately after the ticket is approved/published and an implementation agent follows the normal claim protocol. Broad mobile specs and the Beta rollout hub are references, not closure prerequisites.
Not included
Push-specific and permission-result events belong to slices 2/3. P1 chat summaries, page/feature events, raw exceptions, release automation and public rollout are excluded. Existing camera permissions continue to function; their telemetry is added in #1936.
Activity
DoodleBears commentedon Oct 15, 2026
Agent work claim
codex/local/01a14109-8490-7dc2-a32e-2fbb0a39d4c8(not a DSH Session)codex/1935-mobile-telemetryDoodleBears commentedon Oct 15, 2026
Agent work continuation
codex/local/01a14132-1883-78f2-8887-c2dabf6d8c38(not a DSH Session)codex/local/01a14109-8490-7dc2-a32e-2fbb0a39d4c8at the Human's explicit request to continue that interrupted chat. The prior chat failed on an unsupported-capability error; its committed work is preserved.codex/1935-mobile-telemetrye2da4aaf3b31606740ac452f96459697f0a5169ffeat(mobile): default statistics on and simplify settings
docs(mobile): refresh statistics settings review images
DoodleBears commentedon Oct 15, 2026
Agent work outcome
codex/local/01a14132-1883-78f2-8887-c2dabf6d8c38; supersedes the interrupted prior task claim.codex/1935-mobile-telemetry; exact heade3a9798a0d8c3e5ac5b72d9fa63216ae6142b8a9.DoodleBears commentedon Oct 15, 2026
Agent work resumed
Task
codex/local/01a14132-1883-78f2-8887-c2dabf6d8c38resumes #1935 on the Human's instruction to reference the Web client. Verified Web behavior is default-on telemetry with a once-per-client informational notice, privacy/source/settings links and a “Got it” dismissal; it is not a pre-collection terms acceptance gate. Implement the corresponding mobile notice and correct the earlier assumption in review documents. Preserve the bottom Settings switch and collapsed details. Branchcodex/1935-mobile-telemetry, starting headbd6cc7c66fff03a50888ee9bb45f30270d534e35. No production enablement, merge, release or dependent slice work.feat(mobile): follow Web first-use statistics notice
feat(mobile): add default-on anonymous statistics with optional contr…
DoodleBears commentedon Oct 16, 2026
Agent work resumed — native statistics switch follow-up
codex/local/01a14132-1883-78f2-8887-c2dabf6d8c38(not a DSH Session)codex/1935-statistics-toggle-sync, based on refreshed main.DoodleBears commentedon Oct 16, 2026
Batch 9 native results — English acceptance passed, no merge
Task:
codex/local/01a14132-1883-78f2-8887-c2dabf6d8c38; Mobile telemetry 1: opt in, pair a Host and observe first native chat activation #1935 continuation after merged feat(mobile): add default-on anonymous statistics with optional controls #1944.Follow-up PR fix(mobile): synchronize statistics switch changes #2022 is OPEN, branch
codex/1935-statistics-toggle-sync. Source20a1b2e66ec6cda0eccc434a7cb9dc7559c112a7; current headbac629b4b629728bd50aaa40da70130da8c60563adds only seven actual PNG screenshots.Batch 9 combined source
d933829822260c24cf6d892733d818853cfa0d63, with feat(mobile): add Activity triage and floating query controls #1966/fix(mobile): follow live system text size across the app #2007 typography work and a compatible SDK 57 native binary. Immediate ON/OFF, three consecutive toggles and cold restart persistence PASS; large-text wrapping, disclosure scrolling and notice-to-Settings navigation PASS in that combination. Old switch logic reproduced the stale visual state in the same layout.Chinese rendering FAILS: independent UIKit/CoreText also cannot render the Chinese sample. Targeted font-service restart, public font-asset matching and the system Fonts page did not recover it. The Human explicitly accepted English passing as sufficient on 2026-10-17; this known Chinese environment failure is non-blocking for this round and is not claimed fixed.
455 mobile tests passed / 8 skipped on the source fix. Current-head CI passes all planned checks; docs/shards/real-model scenarios skipped by plan. Seven before/after/failure images are embedded in fix(mobile): synchronize statistics switch changes #2022 and verified loaded on GitHub.
No Android/physical-iPhone/VoiceOver/PostHog ingestion or Human QA claim. No PR merged; The shared device lane has been released; Chinese runtime repair is outside this acceptance gate.
Final Batch 9 runner report and native results.
docs(mobile): record Batch 9 native statistics evidence