{
 "note": "Who owns each table and check, what the pipeline does when a check fails (on_fail), what the owner intends once it is built (intended), and who may read or write each schema. Tests fail if a table or check has no owner.",
 "roles": {
  "data_platform": "data platform engineer on call: runs the orchestrator, owns retries, schedules and backfills",
  "feed_owner": "analytics engineer who owns the earthquake feed: owns the row contract and the quarantine",
  "analyst": "reads the analytics schema only"
 },
 "schemas": {
  "raw": {"write": ["data_platform"], "read": ["data_platform", "feed_owner"]},
  "quarantine": {"write": ["data_platform"], "read": ["data_platform", "feed_owner"]},
  "analytics": {"write": ["data_platform"], "read": ["data_platform", "feed_owner", "analyst"]}
 },
 "tables": {
  "analytics.events": {"owner": "feed_owner"},
  "quarantine.events": {"owner": "feed_owner"},
  "raw.extra_keys": {"owner": "feed_owner"},
  "raw.load_log": {"owner": "data_platform"}
 },
 "checks": {
  "unique_id": {"owner": "data_platform", "on_fail": "reported as a failed ERROR-severity check after the load commits; the table is not held back", "intended": "page the data platform on call (not built; in the replay it fired on no wrong table, because a doubled event sits under two different ids)"},
  "contract": {"owner": "feed_owner", "on_fail": "reported as a failed ERROR-severity check after the load commits; the table is not held back; rows that break the contract stay in quarantine", "intended": "the feed owner reviews the quarantine within one working day"},
  "no_deleted_status": {"owner": "feed_owner", "on_fail": "reported as a failed ERROR-severity check after the load commits; the table is not held back", "intended": "page the feed owner (not built; the recording saw no deletion)"},
  "alias": {"owner": "feed_owner", "on_fail": "reported as a failed ERROR-severity check after the load commits; the table is not held back", "intended": "block the publish and collapse the old key (not built; as declared this check fires on right tables too, so it stays off until a version that allows the source's own pairs is tested live)"},
  "count_reconciliation": {"owner": "data_platform", "on_fail": "reported as a failed WARN-severity check after the load commits", "intended": "block the publish of analytics.events when the count differs from the count in the same read of the source, page the data platform on call, and run a full reload after two blocked loads in a row (not built; in the replay it fired on 114 of 115 wrong reads and on no right one, and it cannot see a corrected value)"},
  "freshness": {"owner": "data_platform", "on_fail": "reported as a failed WARN-severity check after the load commits", "intended": "page the data platform on call (not built)"}
 },
 "change_rule": "A change to the row contract or to a check needs the feed owner's approval in code review."
}
