{
 "note": "Written by an independent author who never saw the checks, the arms, the thresholds or the declared changes; given only ec/grammar.md and plan/tracking-plan.json. Kept as written.",
 "changes": [
  {
   "id": "H01",
   "release": 1,
   "title": "Align workout completion naming with the player API",
   "channel": "build",
   "description": "The player refactor replaces the completion callback and updates its analytics event name to match the new API.",
   "ops": [
    {
     "op": "rename_event",
     "event": "workout_completed",
     "to": "workout_finished"
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Activation"
    ],
    "why": "Updated builds stop sending the workout_completed event used to identify activation within 72 hours."
   }
  },
  {
   "id": "H02",
   "release": 2,
   "title": "Express workout durations in minutes",
   "channel": "build",
   "description": "The workout summary now uses minutes throughout its presentation model, and the analytics adapter forwards that value under the existing property name.",
   "ops": [
    {
     "op": "scale_value",
     "event": "workout_completed",
     "property": "duration_s",
     "factor": 0.016666666666666666
    }
   ],
   "expected": {
    "breaks_metrics": false,
    "metrics": [],
    "why": "The duration property violates its contract, but none of the listed metrics uses workout duration."
   }
  },
  {
   "id": "H03",
   "release": 3,
   "title": "Move purchase reporting onto the billing account stream",
   "channel": "server",
   "description": "Payments consolidates purchase analytics in the billing pipeline, which identifies customers by billing account rather than app user.",
   "ops": [
    {
     "op": "identity",
     "event": "purchase_completed",
     "use": "account_id",
     "share": 1,
     "when": "always"
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Paywall conversion"
    ],
    "why": "Purchases carry billing account identifiers that cannot join to the app users who viewed paywalls."
   }
  },
  {
   "id": "H04",
   "release": 4,
   "title": "Record purchase amounts as decimal strings",
   "channel": "server",
   "description": "A payments serializer upgrade preserves decimal amounts as strings to avoid floating-point formatting differences across services.",
   "ops": [
    {
     "op": "change_type",
     "event": "purchase_completed",
     "property": "revenue",
     "to": "string"
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Revenue per active user"
    ],
    "why": "String amounts land as null in the typed revenue column, removing revenue from the numerator."
   }
  },
  {
   "id": "H05",
   "release": 5,
   "title": "Add an offer details screen",
   "channel": "build",
   "description": "A new offer details screen hosts the subscription offer for some users, but its standalone presenter does not call the shared paywall tracking hook.",
   "ops": [
    {
     "op": "plan_add_screen",
     "screen": "offer_details"
    },
    {
     "op": "untracked_path",
     "event": "paywall_viewed",
     "share": 0.25,
     "screen": "offer_details"
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Paywall conversion"
    ],
    "why": "Viewers who encounter only the new offer screen are missing from the measured paywall audience."
   }
  },
  {
   "id": "H06",
   "release": 6,
   "title": "Attach experiment assignments to paywall views",
   "channel": "build",
   "description": "The team adds an experiment assignment property so analysts can compare offer layouts and updates the tracking plan in the same release.",
   "ops": [
    {
     "op": "add_property",
     "event": "paywall_viewed",
     "property": "offer_experiment",
     "type": "string"
    },
    {
     "op": "plan_add_property",
     "event": "paywall_viewed",
     "property": "offer_experiment",
     "type": "string",
     "required": false
    }
   ],
   "expected": {
    "breaks_metrics": false,
    "metrics": [],
    "why": "The additional property leaves event counts, identities, timestamps and revenue unchanged."
   }
  },
  {
   "id": "H07",
   "release": 7,
   "title": "Reduce session telemetry volume remotely",
   "channel": "remote_setting",
   "description": "Operations enables device-based sampling of session events to reduce ingestion costs during a traffic increase.",
   "ops": [
    {
     "op": "sample",
     "event": "session_started",
     "rate": 0.5
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Active users",
     "Week-1 retention",
     "Revenue per active user"
    ],
    "why": "Sampling removes sessions for half the devices, understating active users and retained signups while shrinking the revenue metric's denominator."
   }
  },
  {
   "id": "H08",
   "release": 8,
   "title": "Preserve signup identity through the Apple auth callback",
   "channel": "build",
   "description": "An authentication SDK upgrade moves Apple signup tracking ahead of the account state update, so the callback forwards the anonymous identifier as its user identifier.",
   "ops": [
    {
     "op": "identity",
     "event": "signup_completed",
     "use": "anonymous_id",
     "share": 1,
     "when": "method=apple"
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Activation",
     "Paywall conversion",
     "Week-1 retention"
    ],
    "why": "Apple signups fail to link their anonymous history and signup record to the real user identifier on subsequent workouts, sessions and purchases."
   }
  },
  {
   "id": "H09",
   "release": 9,
   "title": "Trim the offline analytics queue under storage pressure",
   "channel": "build",
   "description": "The analytics SDK upgrade introduces a smaller persistent queue, causing a portion of queued offline events to be discarded before upload.",
   "ops": [
    {
     "op": "lose_offline",
     "share": 0.3
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Active users",
     "Activation",
     "Paywall conversion",
     "Week-1 retention",
     "Revenue per active user"
    ],
    "why": "Lost offline client events can remove sessions, signup links, workout completions and paywall views from the metrics while server purchase revenue remains."
   }
  },
  {
   "id": "H10",
   "release": 10,
   "title": "Batch client analytics to reduce radio wakeups",
   "channel": "remote_setting",
   "description": "The team raises the upload batching window to six hours to reduce background network work; events retain the time of the original action.",
   "ops": [
    {
     "op": "delay_upload",
     "hours": 6
    }
   ],
   "expected": {
    "breaks_metrics": false,
    "metrics": [],
    "why": "The metrics remain correctly dated by event time once batches arrive, although recent dashboard results are temporarily incomplete."
   }
  },
  {
   "id": "H11",
   "release": 11,
   "title": "Report purchases after settlement",
   "channel": "server",
   "description": "Finance moves the purchase analytics timestamp to settlement time so the event date matches its reconciliation feed.",
   "ops": [
    {
     "op": "timestamp",
     "event": "purchase_completed",
     "source": "settlement"
    }
   ],
   "expected": {
    "breaks_metrics": true,
    "metrics": [
     "Paywall conversion",
     "Revenue per active user"
    ],
    "why": "Settlement can move purchases into the following day, breaking same-day conversion matching and shifting daily revenue."
   }
  },
  {
   "id": "H12",
   "release": 12,
   "title": "Enable shorter starter workouts",
   "channel": "remote_setting",
   "description": "The team enables a shorter starter routine for new users, increasing the rate at which people complete workouts while preserving existing tracking.",
   "ops": [
    {
     "op": "behaviour",
     "param": "workout_rate",
     "factor": 1.15
    }
   ],
   "expected": {
    "breaks_metrics": false,
    "metrics": [],
    "why": "Any resulting activation increase reflects an actual product behavior change with unchanged measurement."
   }
  }
 ],
 "not_expressible": [
  {
   "title": "Reuse purchase event IDs across request retries",
   "description": "Payments makes retried purchase notifications reuse the original event_id so warehouse deduplication suppresses duplicate deliveries.",
   "why": "The grammar cannot change event_id generation or express duplicates that retain an existing event_id."
  },
  {
   "title": "Flush queued events when connectivity returns",
   "description": "The mobile SDK adds a connectivity listener that uploads persisted events immediately when the phone reconnects, even without another app session.",
   "why": "The grammar supports delaying uploads and losing offline events but cannot specify a connectivity-triggered flush or background execution policy."
  }
 ]
}
