← Back to Pull requests

[iOS] Add pixels for the Sync another device promo #7919

Open
unknown opened this pull request with 237 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 05, 2026 14:47 UTC
Author

Task/Issue URL: https://app.asana.com/1/137249556945/project/1214200115953388/task/1219942801445461?focus=true
Tech Design URL:
CC:

Description


Adds pixels to the "Sync another device" promo on Bookmarks and Passwords so its click-through and pairing conversion can be measured separately from the Sync-off promo. The promo now fires sync_promotion_displayed, sync_promotion_confirmed and sync_promotion_dismissed with source set to bookmarks_multi_device / passwords_multi_device. Sync setups started from it report promotion_bookmarks_multi_device / promotion_passwords_multi_device. These replace the promotion_*_another_device values, which haven't shipped in a release.

Testing Steps


1. With Sync on and a single device, make the Sync another device promo show on Bookmarks (flag syncPromotionSyncAnotherDevice, install older than 7 days).
2. Open Bookmarks → console shows sync_promotion_displayed with source=bookmarks_multi_device. Tap the Sync button → sync_promotion_confirmed with the same source, and the setup screen pixels report source=promotion_bookmarks_multi_device.
3. Back on Bookmarks, dismiss the promo → sync_promotion_dismissed with source=bookmarks_multi_device&reason=user_tapped.
4. Repeat 2–3 on Passwords, expecting passwords_multi_device / promotion_passwords_multi_device.
5. Regression: with Sync off, confirm and dismiss the regular Sync promo on Bookmarks and Passwords → source is still bookmarks / passwords.

Impact


Low: telemetry only, no user-facing change.

---
###### Internal references:
Definition of Done | Engineering Expectations | Tech Design Template

🤖 Generated with Claude Code

Diff: 237 lines (+177 / -60) across 2 files Reviewer: claude[bot] Review duration: 3m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.37) × (1 − Review Confidence (0.30)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 237 lines diff across 2 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 52% · Reviewer familiarity: 35%
30%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.327
Real PR Conversation Timeline
1 comments
"Review active on #7919"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 30.2% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.2% (MEDIUM) · Higher = larger blast radius
37.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 30.2% · Lower = rushed or shallow review
30.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 25.9% · Safe to merge
25.9%