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.
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.
- Changes I wrote (15 breaks)
- Changes by an independent author (8 breaks)
| Way of checking | Stopped before release | Found after release | Not found in 28 days | Median days to a find | Wrong metric-days, mean | Lowest to highest run |
|---|---|---|---|---|---|---|
| Dashboards only | 0 of 8 | 6 to 7 | 1 to 2 | 3 | 85 | 75 to 108 |
| Monitoring after release | 0 of 8 | 7 to 8 | 0 to 1 | 1 | 62 | 54 to 67 |
| Contract before release | 4 of 8 | 3 | 1 | 4 | 57 | 45 to 80 |
| Contract and monitoring | 4 of 8 | 3 to 4 | 0 to 1 | 4 | 51 | 45 to 60 |
| Both, plus semantic checks | 6 of 8 | 2 | 0 | 1 | 14 | 12 to 14 |
| Way of checking | Stopped before release | Found after release | Not found in 28 days | Median days to a find | Wrong metric-days, mean | Lowest to highest run |
|---|---|---|---|---|---|---|
| Dashboards only | 0 of 15 | 11 to 13 | 2 to 4 | 4 | 253 | 186 to 296 |
| Monitoring after release | 0 of 15 | 12 to 14 | 1 to 3 | 2 | 148 | 102 to 183 |
| Contract before release | 8 of 15 | 5 | 2 | 4 | 113 | 101 to 132 |
| Contract and monitoring | 8 of 15 | 5 to 6 | 1 to 2 | 4 | 58 | 50 to 73 |
| Both, plus semantic checks | 13 of 15 | 2 | 0 | 1 | 13 | 12 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.
| Change | Ships as | Breaks a metric (left alone) | Contract | Monitoring (with dashboards) | Semantic checks too |
|---|---|---|---|---|---|
| Align workout completion naming with the player API | build | yes, 30 metric-days | stopped before release | found day 1 | stopped before release |
| Express workout durations in minutes | build | no | alarm before release | alarm day 1 | alarm before release |
| Move purchase reporting onto the billing account stream | server | yes, 28 metric-days | stopped before release | found day 1 | stopped before release |
| Record purchase amounts as decimal strings | server | yes, 28 metric-days | stopped before release | found day 1 | stopped before release |
| Add an offer details screen | build | yes, 23 metric-days | stopped before release, by chance (in 50% of other script id sets) | found day 4 to 16 | stopped before release |
| Attach experiment assignments to paywall views | build | no | no alarm | no alarm | no alarm |
| Reduce session telemetry volume remotely | remote setting | yes, 91 metric-days | found day 1 | found day 1 | found day 1 |
| Preserve signup identity through the Apple auth callback | build | yes, 59 metric-days | found day 4 to 5 | found day 4 | stopped before release |
| Trim the offline analytics queue under storage pressure | build | yes, 25 metric-days | not found | found in 1 of 5 runs, day 22 | stopped before release |
| Batch client analytics to reduce radio wakeups | remote setting | no | no alarm | no alarm | no alarm |
| Report purchases after settlement | server | yes, 54 metric-days | found day 2 to 17 | found day 1 to 7 | found day 1 to 2 |
| Enable shorter starter workouts | remote setting | no | alarm day 1 to 13 | alarm day 1 to 7 | alarm day 1 to 7 |
Every change I wrote
| Change | Ships as | Breaks a metric (left alone) | Contract | Monitoring (with dashboards) | Semantic checks too |
|---|---|---|---|---|---|
| Workout finish event renamed | build | yes, 30 metric-days | stopped before release | found day 1 | stopped before release |
| Revenue sent as text | server | yes, 28 metric-days | stopped before release | found day 1 | stopped before release |
| Revenue left out of purchases | server | yes, 28 metric-days | stopped before release | found day 1 | stopped before release |
| Revenue sent in cents | server | yes, 28 metric-days | stopped before release | found day 1 | stopped before release |
| Payments server loses its retry check | server | yes, 21 metric-days | found day 1 to 20 | found day 1 to 13 | stopped before release |
| Workout completion moved to the server, keyed by billing account | build | yes, 30 metric-days | stopped before release | found day 4 | stopped before release |
| New quick start screen sends no completion | build | yes, 30 metric-days | stopped before release | found day 3 to 4 | stopped before release |
| Session events sampled at half | remote setting | yes, 91 metric-days | found day 1 | found day 1 | found day 1 |
| Event time taken from the upload | build | yes, 20 metric-days | not found | not found | stopped before release |
| A fifth of sessions keyed by a device id | build | yes, 90 metric-days | stopped before release, by chance (in 59% of other script id sets) | found day 1 to 2 | stopped before release |
| Apple signups send no signup event | build | yes, 51 metric-days | found day 9 to 25 | found day 1 to 2 | stopped before release |
| Home paywall source renamed | build | no | alarm before release | alarm day 1 | alarm before release |
| Difficulty added to workout start, plan not updated | build | no | alarm before release | no alarm | alarm before release |
| Session event also fires on return from background | build | no | alarm before release | alarm day 3 | alarm before release |
| Uploads batched up to 6 hours | remote setting | no | no alarm | no alarm | no alarm |
| New onboarding: more people start a workout | build | no | alarm day 2 to 8 | alarm day 1 to 7 | alarm day 1 to 7 |
| Price promotion: more people buy | server | no | alarm day 1 to 2 | alarm day 1 | alarm day 1 |
| Fewer reminders: fewer sessions | server | no | alarm day 1 to 5 | alarm day 1 | alarm day 1 |
| Workout duration property renamed | build | no | alarm before release | alarm day 1 | alarm before release |
| Workout duration sent as text | build | no | alarm before release | alarm day 1 | alarm before release |
| Paywall view fires twice | build | no | alarm before release | alarm day 1 | alarm before release |
| Offline queue switched off | build | yes, 29 metric-days | not found | found in 4 of 5 runs, day 4 to 5 | stopped before release |
| Android workout completions keyed by a device id | build | yes, 30 metric-days | found day 4 | found day 4 | stopped before release |
| Signup event moved to the server | server | yes, 81 metric-days | stopped before release | found in 2 of 5 runs, day 8 to 10 | stopped before release |
| Purchase time taken from settlement | server | yes, 52 metric-days | found day 1 to 9 | found day 1 to 6 | found day 1 to 2 |
| Server refactor, events unchanged | server | no | no alarm | no alarm | no alarm |
| Workout start events sampled at a tenth | remote setting | no | no alarm | alarm day 1 | alarm day 1 |
| Signup method sent as a number code | build | no | alarm before release | alarm day 1 | alarm before release |
| Workout duration sent in minutes | build | no | alarm before release | alarm day 1 | alarm before release |
| Plan id left out of purchases | server | no | alarm before release | alarm day 1 | alarm 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.
| Day after release | Paywall views | Purchases, true | Purchases landed | Conversion, true | Conversion shown | Revenue per user, true (US$) | Revenue per user shown (US$) |
|---|---|---|---|---|---|---|---|
| 0 | 388 | 32 | 34 | 8.5% | 8.5% | 0.376 | 0.415 |
| 1 | 362 | 31 | 34 | 8.8% | 8.8% | 0.395 | 0.440 |
| 2 | 372 | 28 | 31 | 7.8% | 7.8% | 0.325 | 0.342 |
| 3 | 361 | 39 | 39 | 11.2% | 11.2% | 0.570 | 0.570 |
| 4 | 369 | 28 | 28 | 7.9% | 7.9% | 0.491 | 0.491 |
| 5 | 338 | 21 | 21 | 6.4% | 6.4% | 0.387 | 0.387 |
| 6 | 300 | 30 | 33 | 10.4% | 10.4% | 0.390 | 0.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.
| Setting | Monitoring alone, mine | Contract and monitoring, mine | Monitoring alone, independent | Contract and monitoring, independent | Monitoring alarm days on 42 clean days |
|---|---|---|---|---|---|
| As declared | 148 | 58 | 62 | 51 | 5 to 8 of 42 |
| Metric check at 2 standard deviations | 84 | 52 | 54 | 43 | 11 to 16 of 42 |
| Metric check at 4 standard deviations | 193 | 75 | 65 | 53 | 4 to 8 of 42 |
| Volume band 0.8 to 1.25 | 146 | 58 | 54 | 47 | 10 to 17 of 42 |
| Volume band 0.6 to 1.6 | 164 | 75 | 66 | 52 | 2 to 6 of 42 |
| Tolerance 1% | 165 | 71 | 74 | 61 | same |
| Tolerance 5% | 63 | 38 | 44 | 35 | same |
| Builds adopted twice as fast | 148 | 58 | 63 | 51 | 5 to 8 of 42 |
| Builds adopted twice as slowly | 148 | 58 | 61 | 51 | 5 to 8 of 42 |
| App three times as large (2 runs) | 106 | 64 | 87 | 63 | 0 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
- 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).
- 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.
- 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.
- Monitoring raises an alarm on at least 2 of the 3 real behaviour changes. Held: it raised one on all 3, in every run.
- 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.
- Which of my changes break a metric. Held: 30 of 30 as predicted.
- 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
- The tracking plan has one owner. A product analyst owns it as a file in the app's repository. A change to an event or a metric's inputs is a change to that file, reviewed by the analyst and the engineer who emits the event.
- The contract runs in the build. Mobile and backend engineers own the scripted sessions and run them on every pull request, on both platforms, every signup method, a dropped network reply and an offline session. A failure blocks the merge, and the fix is either the code or the plan.
- Remote settings get the same review. A sampling or batching switch goes through the analyst before it is flipped, because no build test will see it.
- Landed checks belong to data engineering. Schema, volume and metric checks, plus duplicate transaction ids, identity links and arrival times, run each morning; an alarm names the release that preceded it.
- Bad news goes with the days it covers. When a break is found, the analyst marks the affected dashboards with the dates and the metrics, tells the people who read them that day, and backfills where the raw events allow it.
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
- Synthetic app, synthetic releases. The behaviour, the network and the releases are mine, so the counts show what each check can see, not how often real releases break or how a real team's mix of changes looks.
- The change mix is an assumption. Half of my changes break a metric by design; the independent author's changes came from the same grammar and 7 of 12 repeat one of mine. The grammar could not express 2 changes the author wanted to write (retries that reuse an event id, a flush when the network returns).
- One change at a time. Real releases bundle changes, and one break can hide another.
- A small app. About 29 purchases a day makes purchase and revenue checks noisy; a larger app tightens every band.
- Strict on noisy checks. An alarm counts as a find only when the clean build, on the same days, raises no such alarm, so a noisy check that would have fired anyway gets no credit, and the headline uses this rule, set after the results. A credited alarm is assumed to lead the team to the change the same day.
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.
README with the reproduction stepsComplete resultsThe checks (Python)Design