Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Synthetic data

Product event contracts before release

On a synthetic app, three of the four tracking breaks by an independent author that a contract stopped before release were ones monitoring caught on day one anyway.

Main limitation Found in all 5 runs of the base case, on a small workout app with about 29 purchases a day, by a rule set after the results; four breaks are too few to say how often this holds, by construction the contract stops the 4 of the author's 8 breaks its schema and three scripted sessions can see, and 7 of the author's 12 changes repeat one of the study's own, the rest new settings of its operations, because both used the same change grammar. Adding the contract to monitoring cut the mean wrong metric-days, counted from 8 days before each release to 28 after by the same rule, from 62 to 51, and from 148 to 58 on the study's own 15 breaks, a self-test; with releases, thresholds and costs the study chose, the counts show what each check can and cannot see, not how often real releases break.

When a release changes how an app sends analytics events, the dashboards built on them can go wrong with no error anywhere. I simulated a subscription workout app whose true behaviour is known, shipped release changes to its tracking, and compared a contract checked before release with checks on the data after it lands. The contract stops what a schema or a scripted session can see, which is how it is built. What the simulation measures is what it lets through (retries, offline uploads, a platform the scripts skip, a remote setting, a time field set by the server), how long monitoring takes to find each, and the wrong metric-days meanwhile. Monitoring found most of them within days; it never found an event time taken from the upload, and found a share of offline events lost in 1 of 5 runs.

Key figures
Breaks the contract's schema and scripts can see, stopped before release
4 of 8
by construction, on changes an independent author wrote from my grammar; 8 of 15 in a self-test on mine. One stop in each set was a chance hit: over other script ids it stops about 3.5 and 7.6
Wrong metric-days: monitoring alone, then with the contract
62, 51
the independent author's breaks, from 8 days before each release to 28 after, by a rule set after the results; by the declared rule 54 and 46. On mine 148 and 58 (declared rule 83 and 50)
Days until monitoring found a break
median 2
changes I wrote, among the breaks it found; up to day 13, and a switch to the upload time it never found
With semantic checks added: a self-test on near repeats
6 of 8
the independent author's breaks stopped before release; the two extra stops are new settings of operations I wrote checks for (Apple signup ids, a share of offline events lost)

A second round asks the same question on a website in a real browser, where a check must look past the data layer at what leaves the page: a website's data layer and tags before release.

How many metric-days each way of checking left wrong

A metric-day is one of the five metrics a product team reads on one day, more than 2% away from the truth the generator holds. Each bar sums them over the metric-breaking changes, from 8 days before the release (signup cohorts read after it) to 28 days after, a window set after the results, as the mean of 5 runs, with a line from the lowest to the highest run. A change stopped before release leaves none. Left alone, my 15 breaks would leave 640 wrong metric-days, and the independent author's 8 would leave 339.

Wrong metric-days left by each way of checking, base case
  • Changes I wrote (15 breaks)
  • Changes by an independent author (8 breaks)
Wrong metric-days left by each way of checkingFor each way of checking, one bar for the changes I wrote and one for the changes written by an independent author: wrong metric-days summed over the metric-breaking changes, mean of the runs, with a line from the lowest to the highest run. The table under the chart lists every value.Wrong metric-days in the four weeks after release, summed over the metric-breaking changes0100200300Dashboards only, changes I wrote: 253 wrong metric-days, mean of 5 runs (186 to 296); 0 of 15 breaks stopped before release. Dashboards only, changes by an independent author: 85 wrong metric-days, mean of 5 runs (75 to 108); 0 of 8 breaks stopped before releaseDashboards only25385Monitoring after release, changes I wrote: 148 wrong metric-days, mean of 5 runs (102 to 183); 0 of 15 breaks stopped before release. Monitoring after release, changes by an independent author: 62 wrong metric-days, mean of 5 runs (54 to 67); 0 of 8 breaks stopped before releaseMonitoring after release14862Contract before release, changes I wrote: 113 wrong metric-days, mean of 5 runs (101 to 132); 8 of 15 breaks stopped before release. Contract before release, changes by an independent author: 57 wrong metric-days, mean of 5 runs (45 to 80); 4 of 8 breaks stopped before releaseContract before release11357Contract and monitoring, changes I wrote: 58 wrong metric-days, mean of 5 runs (50 to 73); 8 of 15 breaks stopped before release. Contract and monitoring, changes by an independent author: 51 wrong metric-days, mean of 5 runs (45 to 60); 4 of 8 breaks stopped before releaseContract and monitoring5851Both, plus semantic checks, changes I wrote: 13 wrong metric-days, mean of 5 runs (12 to 13); 13 of 15 breaks stopped before release; a self-test, built for these change types. Both, plus semantic checks, changes by an independent author: 14 wrong metric-days, mean of 5 runs (12 to 14); 6 of 8 breaks stopped before releaseBoth, plus semantic checks1314

Wrong metric-days left by each way of checkingFor each way of checking, one bar for the changes I wrote and one for the changes written by an independent author: wrong metric-days summed over the metric-breaking changes, mean of the runs, with a line from the lowest to the highest run. The table under the chart lists every value.Wrong metric-days, breaking changes0100200300Dashboards only, changes I wrote: 253 wrong metric-days, mean of 5 runs (186 to 296); 0 of 15 breaks stopped before release. Dashboards only, changes by an independent author: 85 wrong metric-days, mean of 5 runs (75 to 108); 0 of 8 breaks stopped before releaseDashboards only25385Monitoring after release, changes I wrote: 148 wrong metric-days, mean of 5 runs (102 to 183); 0 of 15 breaks stopped before release. Monitoring after release, changes by an independent author: 62 wrong metric-days, mean of 5 runs (54 to 67); 0 of 8 breaks stopped before releaseMonitoring after release14862Contract before release, changes I wrote: 113 wrong metric-days, mean of 5 runs (101 to 132); 8 of 15 breaks stopped before release. Contract before release, changes by an independent author: 57 wrong metric-days, mean of 5 runs (45 to 80); 4 of 8 breaks stopped before releaseContract before release11357Contract and monitoring, changes I wrote: 58 wrong metric-days, mean of 5 runs (50 to 73); 8 of 15 breaks stopped before release. Contract and monitoring, changes by an independent author: 51 wrong metric-days, mean of 5 runs (45 to 60); 4 of 8 breaks stopped before releaseContract and monitoring5851Both, plus semantic checks, changes I wrote: 13 wrong metric-days, mean of 5 runs (12 to 13); 13 of 15 breaks stopped before release; a self-test, built for these change types. Both, plus semantic checks, changes by an independent author: 14 wrong metric-days, mean of 5 runs (12 to 14); 6 of 8 breaks stopped before releaseBoth, plus semantic checks1314

Metric-breaking changes by an independent author: 8 of 12; counts per run, lowest to highest of 5 runs
Way of checkingStopped before releaseFound after releaseNot found in 28 daysMedian days to a findWrong metric-days, meanLowest to highest run
Dashboards only0 of 86 to 71 to 238575 to 108
Monitoring after release0 of 87 to 80 to 116254 to 67
Contract before release4 of 83145745 to 80
Contract and monitoring4 of 83 to 40 to 145145 to 60
Both, plus semantic checks6 of 82011412 to 14
Metric-breaking changes I wrote: 15 of 30; counts per run, lowest to highest of 5 runs
Way of checkingStopped before releaseFound after releaseNot found in 28 daysMedian days to a findWrong metric-days, meanLowest to highest run
Dashboards only0 of 1511 to 132 to 44253186 to 296
Monitoring after release0 of 1512 to 141 to 32148102 to 183
Contract before release8 of 15524113101 to 132
Contract and monitoring8 of 155 to 61 to 245850 to 73
Both, plus semantic checks13 of 152011312 to 13

Every arm keeps a dashboard reader after release, who notices a metric more than 30% away from its recent mean. Found means an alarm, on or after the release day, on something the change affected that the clean build, on the same days, does not raise: a rule set after the results; the declared rule's figures are under Method. The semantic arm was built for the change types I wrote, so on my changes it is a self-test.

What it means

The contract stops what it checks, by construction. A renamed event, a value of the wrong type, a missing property, a value out of range, the wrong id on a scripted session and a screen with no tracking plan entry all fail it, because those are exactly its assertions. That is how a contract works, not a finding. It stopped 8 of my 15 breaks and 4 of the independent author's 8. Two of those stops were chance: a change that touches only a share of events is stopped only when a scripted action falls in that share. The identity switch on a fifth of sessions was stopped in 59% of 200 other sets of script ids, and the new screen that leaves a quarter of paywall views untracked in 50%; over those sets the contract stops about 7.6 of my breaks and 3.5 of the author's.

What it lets through is what the simulation measures. The scripts run on a good network, one platform each and email signup, and a remote setting ships with no release to test. So a retry that sends a purchase twice, an offline buffer switched off, an event time taken from the upload or from payment settlement, a sampling switch and breaks on Android or Apple signup all shipped. Two of my breaks were stopped by neither the contract nor monitoring: the event time taken from the upload in every run, and the offline buffer switched off in 1 of 5 runs.

Monitoring finds loud breaks in a day or two and misses quiet ones. It found a break a median of 2 days after release on my changes. A signup event moved to the server, which loses the link between a phone's anonymous id and the account, moved no volume and no schema, and monitoring found it in only 2 of 5 runs (day 8 and day 10). Under monitoring it left 59.8 wrong metric-days (24 to 83 across runs; left alone it makes 81.2). The contract's identity assertion stops it before release, and this one break is 59.8 of the 89.2 wrong metric-days the contract saves on my changes.

On the independent author's changes the contract saved fewer days. Three of the breaks it stopped there (a renamed event, revenue as text, purchases keyed by the billing account) are ones monitoring also finds on the first day. The fourth, a new screen that leaves a quarter of paywall views untracked, it stopped only because a scripted view fell in that quarter (half of other script id sets miss it); monitoring found it from day 4, and that chance stop is 6.0 of the 10.8 wrong metric-days the contract saves on the author's changes. So adding the contract to monitoring cut the wrong metric-days from 62 to 51, against 148 to 58 on mine. These are 8 breaks, too few to say how often each happens.

The checks aimed at what a schema cannot see did most. Scripts on every platform and signup method, a retried purchase and an offline workout, plus three checks on landed data (repeated transaction ids, the share of an event's users with a session that day, and how fast events arrive), stopped 6 of the independent author's 8 breaks before release and left 14 wrong metric-days. I designed them before the independent author wrote a change, but around my own change types: 7 of that author's 12 changes repeat one of mine, and its two breaks they add are new settings of operations I wrote checks for (Apple signup ids, a share of offline events lost). So this is a self-test on near repeats. What none of the checks stops before release is a remote setting and a time field set by the server; both were found within 2 days.

What I would pick. The contract and monitoring together, with the contract's scripts run on every platform, a bad network and offline, and the three landed checks for what a schema cannot see. The plain contract alone mostly repeats what monitoring finds on the first day; most of the days it saves on my changes come from one break that only its identity rule sees.

Terms used on this page

Tracking plan
The list of analytics events the app sends, each with its required properties, types, allowed values and ranges, plus the rules for user ids and the app's screens.
Contract
The tracking plan checked by a machine, plus a test that replays scripted user sessions against a build and a staging server and asserts which events arrive, how many, with what properties, ids and times. It runs before release.
Monitoring
Daily checks on the data that has landed: schema failures, each event's volume against the same weekday, and each metric against its spread over the last four weeks.
Semantic checks
Checks for what a schema cannot see: duplicate transaction ids, ids that no longer link to a session, events that suddenly arrive the instant they are stamped, and scripts for retries, offline use, every platform and every signup method.
Metric-breaking change
A change that, left alone, makes at least 3 metric-days wrong.
Metric-day
One of the five metrics on one day: active users, activation, paywall conversion, week-1 retention and revenue per active user.
Independent author
An author who never saw the checks, their thresholds or my changes, and wrote 12 changes from the app's description, the tracking plan and the change grammar alone.
Ships as
A build reaches users over about two weeks; a server release reaches everyone at once; a remote setting is switched on the server with no release.

What each check did, change by change

Every change was scored on its own against the clean build, in 5 runs. Days are counted from the release; a cohort metric is read days after its signup day, so activation breaks show from day 4.

Every change by an independent author: what each check did (days after release; runs of 5)
ChangeShips asBreaks a metric (left alone)ContractMonitoring (with dashboards)Semantic checks too
Align workout completion naming with the player APIbuildyes, 30 metric-daysstopped before releasefound day 1stopped before release
Express workout durations in minutesbuildnoalarm before releasealarm day 1alarm before release
Move purchase reporting onto the billing account streamserveryes, 28 metric-daysstopped before releasefound day 1stopped before release
Record purchase amounts as decimal stringsserveryes, 28 metric-daysstopped before releasefound day 1stopped before release
Add an offer details screenbuildyes, 23 metric-daysstopped before release, by chance (in 50% of other script id sets)found day 4 to 16stopped before release
Attach experiment assignments to paywall viewsbuildnono alarmno alarmno alarm
Reduce session telemetry volume remotelyremote settingyes, 91 metric-daysfound day 1found day 1found day 1
Preserve signup identity through the Apple auth callbackbuildyes, 59 metric-daysfound day 4 to 5found day 4stopped before release
Trim the offline analytics queue under storage pressurebuildyes, 25 metric-daysnot foundfound in 1 of 5 runs, day 22stopped before release
Batch client analytics to reduce radio wakeupsremote settingnono alarmno alarmno alarm
Report purchases after settlementserveryes, 54 metric-daysfound day 2 to 17found day 1 to 7found day 1 to 2
Enable shorter starter workoutsremote settingnoalarm day 1 to 13alarm day 1 to 7alarm day 1 to 7
Every change I wrote
Every change I wrote: what each check did (days after release; runs of 5)
ChangeShips asBreaks a metric (left alone)ContractMonitoring (with dashboards)Semantic checks too
Workout finish event renamedbuildyes, 30 metric-daysstopped before releasefound day 1stopped before release
Revenue sent as textserveryes, 28 metric-daysstopped before releasefound day 1stopped before release
Revenue left out of purchasesserveryes, 28 metric-daysstopped before releasefound day 1stopped before release
Revenue sent in centsserveryes, 28 metric-daysstopped before releasefound day 1stopped before release
Payments server loses its retry checkserveryes, 21 metric-daysfound day 1 to 20found day 1 to 13stopped before release
Workout completion moved to the server, keyed by billing accountbuildyes, 30 metric-daysstopped before releasefound day 4stopped before release
New quick start screen sends no completionbuildyes, 30 metric-daysstopped before releasefound day 3 to 4stopped before release
Session events sampled at halfremote settingyes, 91 metric-daysfound day 1found day 1found day 1
Event time taken from the uploadbuildyes, 20 metric-daysnot foundnot foundstopped before release
A fifth of sessions keyed by a device idbuildyes, 90 metric-daysstopped before release, by chance (in 59% of other script id sets)found day 1 to 2stopped before release
Apple signups send no signup eventbuildyes, 51 metric-daysfound day 9 to 25found day 1 to 2stopped before release
Home paywall source renamedbuildnoalarm before releasealarm day 1alarm before release
Difficulty added to workout start, plan not updatedbuildnoalarm before releaseno alarmalarm before release
Session event also fires on return from backgroundbuildnoalarm before releasealarm day 3alarm before release
Uploads batched up to 6 hoursremote settingnono alarmno alarmno alarm
New onboarding: more people start a workoutbuildnoalarm day 2 to 8alarm day 1 to 7alarm day 1 to 7
Price promotion: more people buyservernoalarm day 1 to 2alarm day 1alarm day 1
Fewer reminders: fewer sessionsservernoalarm day 1 to 5alarm day 1alarm day 1
Workout duration property renamedbuildnoalarm before releasealarm day 1alarm before release
Workout duration sent as textbuildnoalarm before releasealarm day 1alarm before release
Paywall view fires twicebuildnoalarm before releasealarm day 1alarm before release
Offline queue switched offbuildyes, 29 metric-daysnot foundfound in 4 of 5 runs, day 4 to 5stopped before release
Android workout completions keyed by a device idbuildyes, 30 metric-daysfound day 4found day 4stopped before release
Signup event moved to the serverserveryes, 81 metric-daysstopped before releasefound in 2 of 5 runs, day 8 to 10stopped before release
Purchase time taken from settlementserveryes, 52 metric-daysfound day 1 to 9found day 1 to 6found day 1 to 2
Server refactor, events unchangedservernono alarmno alarmno alarm
Workout start events sampled at a tenthremote settingnono alarmalarm day 1alarm day 1
Signup method sent as a number codebuildnoalarm before releasealarm day 1alarm before release
Workout duration sent in minutesbuildnoalarm before releasealarm day 1alarm before release
Plan id left out of purchasesservernoalarm before releasealarm day 1alarm before release

One retry duplicate, from the release to the funnel

A server release loses the payments server's check for repeated requests. About 8% of purchase requests time out on the phone and are sent again, so each of those purchases now lands twice, with a new event id and the same transaction id. Over the next 28 days of this run, 800 purchases landed as 851 events, on 20 of the days.

Down the funnel: paywall views are untouched, about 357 a day. Paywall conversion counts people, so a second event for the same buyer changes nothing, and it stayed exactly right. Revenue per active user adds up purchase events, so it ran up to 23% too high and was wrong on 19 of the days.

The first week after the release, one run: the funnel, true against what the dashboard shows
Day after releasePaywall viewsPurchases, truePurchases landedConversion, trueConversion shownRevenue per user, true (US$)Revenue per user shown (US$)
038832348.5%8.5%0.3760.415
136231348.8%8.8%0.3950.440
237228317.8%7.8%0.3250.342
3361393911.2%11.2%0.5700.570
436928287.9%7.9%0.4910.491
533821216.4%6.4%0.3870.387
6300303310.4%10.4%0.3900.407

Who saw it: the contract's purchase runs on a good network, so nothing retried and nothing doubled. Monitoring found it on day 13, through the purchase volume check, when a busier day pushed the count past its band; with about 29 purchases a day, a few extra a day sit inside ordinary noise. Across runs monitoring took from day 1 to day 13. The transaction id check found it on day 1, and the contract's retried purchase script stops it before release, because one purchase must land once.

A standard landed suite would include that uniqueness test; the data quality study runs one. Here it sits in the semantic arm as declared. Scored as part of monitoring, which I did after the results, monitoring finds this break on day 1 in every run and monitoring alone leaves 144 wrong metric-days on my changes instead of 148, and 62 on the author's (no change).

Alarms on changes that broke nothing

15 of my changes broke no metric. The contract raised an alarm on 9 of them: a renamed allowed value, a property the plan does not list, properties no metric uses renamed, retyped or rescaled, and events sent twice. Each is real drift between the code and the plan, and costs an hour to fix one or the other. Monitoring raised an alarm on 12, including all three real behaviour changes I shipped (more people starting a workout, a promotion, fewer sessions): the metrics moved because people did, and a monitor cannot tell that from a broken event.

On 42 clean days with no change at all, monitoring raised an alarm on 5 to 8 days: on the purchase volume in every run, which at about 29 a day swings past its band, and on a metric in some runs. A dashboard reader noticing 30% swings would have reacted on 5 to 16 days, to conversion and revenue per user in every run. The semantic checks raised 0.

What moves the result

The thresholds, the tolerance, the speed at which a build reaches users and the app's size are my assumptions, so each was moved one at a time. Monitoring's result moves the most with its own thresholds: a tighter metric check finds breaks sooner and raises more alarms on clean days. The gap between monitoring alone and both narrows as monitoring tightens, and does not close on my changes.

The design asked whether the result is about app size rather than where the checks sit. In the app three times as large (2 runs), monitoring alone left 106 wrong metric-days on my changes against 64 with the contract, so the gap roughly halves; on the independent author's it widened, 87 against 63. The contract alone, which leaves the rest to a dashboard reader, rose from 113 to 136; my reading is that with less day-to-day noise a moderate break pushes a metric past the dashboard line less often. Left alone, my breaks make 651 wrong metric-days in the larger app against 640, and the author's 331 against 339. So size moves monitoring's share of the result, and two runs are too few to say by how much.

Wrong metric-days left, mean of runs, as each setting moves (one setting at a time)
SettingMonitoring alone, mineContract and monitoring, mineMonitoring alone, independentContract and monitoring, independentMonitoring alarm days on 42 clean days
As declared1485862515 to 8 of 42
Metric check at 2 standard deviations8452544311 to 16 of 42
Metric check at 4 standard deviations1937565534 to 8 of 42
Volume band 0.8 to 1.2514658544710 to 17 of 42
Volume band 0.6 to 1.61647566522 to 6 of 42
Tolerance 1%165717461same
Tolerance 5%63384435same
Builds adopted twice as fast1485863515 to 8 of 42
Builds adopted twice as slowly1485861515 to 8 of 42
App three times as large (2 runs)1066487630 to 3 of 42

The tolerance changes what counts as wrong, so it also changes which changes count as breaking (14 of mine at 5%).

What I predicted before the test, and what held

  1. The contract stops every change a schema, the scripts' counts, the identity rules or the screen list can see, and none of the retry, offline, platform, sampling or settlement changes. Held in part: it stopped all of the first kind and none of the second, but it also stopped the identity switch on a fifth of sessions, which I had expected only monitoring to find, because a scripted session fell in that fifth (59% of other script id sets).
  2. Monitoring finds the schema-visible breaks the day after release and misses the retry duplicate. Not held: it found the 4 schema breaks on day 1, but it also found the retry duplicate in 5 of 5 runs, from day 1 to day 13.
  3. At least 3 of my breaking changes are seen by neither the contract nor monitoring. Not held: 2 were missed by both in at least one run, though a third (the signup event on the server) was missed by monitoring in most runs.
  4. Monitoring raises an alarm on at least 2 of the 3 real behaviour changes. Held: it raised one on all 3, in every run.
  5. On the independent author's changes the contract stops a smaller share of the breaks than on mine. No difference: 50% against 53%, one change apart.
  6. Which of my changes break a metric. Held: 30 of 30 as predicted.
  7. Which arm stops or finds each of my breaks (scored after the results: a contract stop, or a monitoring find in at least 3 of the runs). Not held: 10 of 15 as predicted; monitoring found 3 of the 4 I expected nothing to find.

Some scoring rules were settled after the results; they are listed under Method, "Added later, and why".

How I would run this with a team

What it is worth, on assumptions I set after the results and label here: setting up the plan and the scripts takes about 120 engineer-hours, each release about 1 more and each contract alarm on a harmless change 1, at US$100 an hour. On my 30 changes that is US$15,900 against 89 wrong metric-days avoided beyond monitoring, so the contract pays if a wrong metric-day costs more than about US$178 (the signup event moved to the server alone gives 59.8 of those days). On the independent author's 12 it is US$13,300 against 11 days, about US$1,231 a day. These use the rule set after the results; by the declared rule the contract avoids 33 and 8 days, so it pays above about US$488 and US$1,705 a day. The money follows from the assumptions; it is not a measured saving.

Limits

Use this at your company

To decide which tracking checks to run before a release and which after, paste this into an AI assistant along with your tracking plan and a list of past tracking changes.

This method comes from Diogo Travassos's study "Product event contracts before release" (https://diogotravassos.dev/event-contracts/). If you can open links, read it first: it works the method through end to end and shows its checks. The steps below stand on their own if you can't.

Help me decide which analytics tracking checks to run before a release and which after, by replaying our own past tracking changes.

The plan:
1. Write the tracking plan as a machine-checked schema: every event, its required properties, types, allowed values and ranges, the identity rules (when user ids appear and how anonymous ids link to them) and the screens.
2. List the tracking changes from our last few months of releases, including server releases and remote settings, and mark which ones moved a metric we report.

Before release:
3. Add a contract test to the build: replay scripted user sessions against the build and a staging server, and assert the events, their counts, their properties, the ids and the event times.
4. Run each script on every platform and every signup method, once on a dropped network reply (a retried request must land once) and once offline (events must land once, with the action's time).

After release:
5. Run daily checks on the landed data: schema failures, volume against the same weekday, the metrics against their recent spread, duplicate business keys (transaction ids), the share of each event's users who also have a session, and how fast events arrive.
6. Count each check's false alarms on days with no change, and for each past change, the days until a check would have found it and the wrong metric-days meanwhile.

Report back: which past changes each check would have stopped or found and how fast, the false alarms, which changes no check sees (remote settings, server-side time fields), and the limits.

In your report, say which study you followed and link it: https://diogotravassos.dev/event-contracts/

Method and checks

Data

Synthetic, generated by the code on 5 fixed seeds. About 300 installs a day, 90 days of history before the first day scored, people active on a day with a chance that falls with the time since install, signup by email, Apple or Google, workouts (about 20% offline), paywall views and monthly or annual purchases validated by a payments server, about 8% of purchase requests retried and payment settling hours later. Every random draw is keyed by the seed and the day, so a change applied from a release day leaves every earlier day identical. The settings are in DESIGN.md.

Design, set before the test
  • 42 clean days, then 30 releases a week apart, each carrying one tracking change, scored on its own against the clean build. A build reaches 30% of users on release day, 75% after 3 days and 90% after 7; server releases and remote settings reach everyone at once.
  • The five metrics are computed the same way on the landed events and on the true actions. A metric-day is wrong when it is more than 2% (or the clean build's own 99th percentile error, if larger) away from the truth. A change is metric-breaking when it leaves at least 3 wrong metric-days, mean of the runs.
  • Monitoring thresholds: volume under 0.7 or over 1.4 times the same weekday's mean over 4 weeks; schema failures over 1%; metrics beyond 3 standard deviations of the last 28 days. The dashboard reader notices a 30% move.
  • The contract: the tracking plan as a strict schema, three scripted sessions (iOS email signup with a purchase, an iOS subscriber's workout with a return from the background, an anonymous Android paywall view), identity and time assertions, and the screen list.
  • The held-out changes and my predictions were committed before any result; the design file is DESIGN.md.
The independent author's changes

An independent author who never saw the checks, the thresholds or my changes wrote 12 changes once, from the app description, the tracking plan, the metric definitions and the change grammar only, with its own expectation for each. The changes are kept as written in changes/heldout.json. Matched mechanically on their operations, 7 repeat one of my changes; of its 8 breaks, 4 are new settings of my operations (the same operation on another event, share or signup method), and the plain contract stopped 2 of those, one by chance.

Added later, and why

The design was written before the test. These rules were settled after the results.

  • A find needs an alarm the clean build does not raise on the same check, element and day. On the clean days the dashboard reader and the purchase volume check fire on noise, which the declared rule (any alarm on an affected element) would credit as finds. Under either rule only alarms on or after the release day count. Under the declared rule, monitoring alone left 83 wrong metric-days on mine and 54 on the independent author's, and both arms together 50 and 46.
  • The world runs 20 days past the last scored day, so late offline uploads near the end are not cut off.
  • Cohorts that signed up in the 8 days before a release are read after it, so their wrong days count, and a find more than 28 days after the release counts as not found.
  • The money assumptions (setup hours, hours per release and per alarm, the hourly rate) and the mechanical match of the independent author's changes to mine.
  • Also added later: the contract replayed with 200 other sets of script ids, to show which stops were chance; the share of the days saved per change; the per-change predictions scored; the larger app read against the design's own question; and monitoring scored with the transaction id test added.