[
 {
  "id": "H01",
  "description": "The billing provider's webhook relay re-delivers 30% of payment events with fresh event ids after a queue migration.",
  "expectation": "Each failed payment is counted twice, so payment scores drop to 0 and health scores fall below 50, which creates at-risk tasks. Dedup by event id cannot catch it, so a typical pipeline would likely miss it.",
  "operations": [
   {
    "op": "duplicate_rows",
    "source": "billing",
    "table": "payment_events",
    "share": 0.3,
    "new_ids": true,
    "from_hour": 28,
    "to_hour": 40
   }
  ]
 },
 {
  "id": "H02",
  "description": "The billing API version bump renames the event type payment_succeeded to charge.succeeded.",
  "expectation": "No invoice gets a successful payment, so new invoices go past_due and collections emails go to paying customers. A pipeline without accepted-values tests would not notice.",
  "operations": [
   {
    "op": "map_value",
    "source": "billing",
    "table": "payment_events",
    "column": "event_type",
    "from": "payment_succeeded",
    "to": "charge.succeeded",
    "from_hour": 30,
    "to_hour": 45
   }
  ]
 },
 {
  "id": "H03",
  "description": "A CRM data-cleanup script blanks billing_customer_id on 10% of account versions it touches.",
  "expectation": "Those accounts flip to no_billing_record and get win-back emails while still paying. This is probably not noticed unless someone tests the relationship.",
  "operations": [
   {
    "op": "null_values",
    "source": "crm",
    "table": "accounts",
    "column": "billing_customer_id",
    "share": 0.1,
    "from_hour": 25,
    "to_hour": 36
   }
  ]
 },
 {
  "id": "H04",
  "description": "The product export starts writing local time as if it were UTC, so booking timestamps arrive 7 hours early.",
  "expectation": "Bookings fall outside the expected windows and recent usage is undercounted, so health scores are slightly wrong. This is hard to notice.",
  "operations": [
   {
    "op": "shift_time",
    "source": "product",
    "table": "bookings",
    "columns": [
     "starts_at",
     "updated_at"
    ],
    "hours": -7,
    "from_hour": 24,
    "to_hour": 47
   }
  ]
 },
 {
  "id": "H05",
  "description": "The product database replica lags, and the bookings extract is skipped for eight business hours.",
  "expectation": "Usage looks low for the day, so health scores dip below 50 and at-risk tasks fire, then the scores recover when the extract catches up. Freshness checks might catch it.",
  "operations": [
   {
    "op": "delay_load",
    "source": "product",
    "table": "bookings",
    "from_hour": 26,
    "to_hour": 33
   }
  ]
 },
 {
  "id": "H06",
  "description": "The scheduler is down for five hours, and afterwards an engineer backfills the sync for the missed hours.",
  "expectation": "The backfill re-sends older computed values over newer ones, flipping fields back and re-firing automations. Likely unnoticed.",
  "operations": [
   {
    "op": "skip_runs",
    "from_hour": 30,
    "to_hour": 34
   },
   {
    "op": "backfill_sync",
    "at_hour": 36,
    "from_hour": 24,
    "to_hour": 29
   }
  ]
 },
 {
  "id": "H07",
  "description": "The CRM's bulk API queues 20% of write requests and applies them 3 hours late.",
  "expectation": "Stale values overwrite newer ones and the CRM disagrees with the warehouse. The sync believes it already wrote them, so it does not send them again. Not noticed.",
  "operations": [
   {
    "op": "delay_writes",
    "share": 0.2,
    "hours": 3,
    "from_hour": 27,
    "to_hour": 45
   }
  ]
 },
 {
  "id": "H08",
  "description": "A billing system restore makes the extract resend the warm-up hours' subscription rows with their old values.",
  "expectation": "Subscriptions canceled since the warm-up may come back as active if staging picks the latest row by load time, so billing_status flips from canceled to current. Subtle.",
  "operations": [
   {
    "op": "replay_rows",
    "source": "billing",
    "table": "subscriptions",
    "replay_from_hour": 0,
    "replay_to_hour": 23,
    "from_hour": 32,
    "to_hour": 32
   }
  ]
 },
 {
  "id": "H09",
  "description": "The product team renames bookings.status to booking_status.",
  "expectation": "New bookings arrive with a NULL status, completed counts fall to zero, and health scores collapse across all accounts, which creates mass at-risk tasks. A schema test might catch it.",
  "operations": [
   {
    "op": "rename_column",
    "source": "product",
    "table": "bookings",
    "column": "status",
    "to": "booking_status",
    "from_hour": 29
   }
  ]
 },
 {
  "id": "H10",
  "description": "The CRM applies only the first half of each write request but reports success for every row.",
  "expectation": "Half the changed accounts never update in the CRM and the sync never retries them. A typical pipeline would not notice.",
  "operations": [
   {
    "op": "partial_apply",
    "row_share": 0.5,
    "report": "success",
    "from_hour": 31,
    "to_hour": 40
   }
  ]
 },
 {
  "id": "H11",
  "description": "A CRM admin locks billing_status, and writes to it are silently ignored but reported as success. A late extract run also runs a second time.",
  "expectation": "billing_status in the CRM goes stale, so no collections or win-back emails are sent while it is locked. Invisible to the pipeline.",
  "operations": [
   {
    "op": "drop_field_writes",
    "field": "billing_status",
    "from_hour": 34,
    "to_hour": 50
   },
   {
    "op": "rerun",
    "at_hour": 35
   }
  ]
 },
 {
  "id": "H12",
  "description": "The webhook endpoint drops successful-payment events on retry attempts.",
  "expectation": "Invoices whose retry succeeded stay past_due and get collections emails. Probably unnoticed.",
  "not_expressible": "drop_rows cannot filter by event_type, so it drops a share of all payment events instead of only successes.",
  "operations": [
   {
    "op": "drop_rows",
    "source": "billing",
    "table": "payment_events",
    "share": 0.1,
    "from_hour": 24,
    "to_hour": 40
   },
   {
    "op": "person_edits",
    "field": "health_score",
    "share": 0.01,
    "value": "random",
    "from_hour": 24,
    "to_hour": 40
   }
  ]
 }
]
