{
 "status": "Frozen protocol for the data governance round, declared before any check or schedule code exists. The inventory it applies to is data/governance-inventory.json; effort and hours are in data/governance-assumptions.json.",
 "scope": "Every check applies to published tables only. Staging tables are out of scope in year one and must pass untouched.",
 "classes": ["public", "internal", "confidential", "restricted"],
 "class_rules": {
  "public": "Anyone, inside or outside the company.",
  "internal": "Any role at the company, including the grant to everyone.",
  "confidential": "Only the roles the table's domain allows for confidential data; masked for every other reader.",
  "restricted": "Only the roles the table's domain allows for restricted data; masked for every other reader, including the leadership team unless the domain names it."
 },
 "tag_minimum": {
  "contact": "confidential",
  "network_id": "confidential",
  "free_text": "confidential",
  "account_revenue": "confidential",
  "company_financial": "confidential",
  "pay_aggregate": "confidential",
  "pay": "restricted",
  "home_address": "restricted"
 },
 "untagged_minimum": "internal",
 "everyone_role": "all_staff",
 "standards": [
  {"id": "owned", "label": "Owned", "unit": "table",
   "rule": "The table has a domain, and its owner and steward resolve (table field first, then the domain's) to people marked active."},
  {"id": "classified", "label": "Classified", "unit": "table and column",
   "rule": "The table and every column carry a class; a tagged column is at least its tag's minimum, an untagged one at least internal; the table is at least its highest column."},
  {"id": "protected", "label": "Protected", "unit": "column and reader role",
   "rule": "Each column whose effective class (the higher of its declared class and its tag's minimum) is confidential or restricted is masked for every reader role the table's domain does not allow for that class. A table with no domain allows no role."},
  {"id": "fresh", "label": "Fresh by promise", "unit": "table",
   "rule": "The table has a freshness promise in hours and a test that enforces it."},
  {"id": "certified", "label": "One certified number", "unit": "dashboard tile",
   "rule": "Each tile reads a metric definition that is certified, defined in a model, the only certified definition with its name, and stored in the table the tile reads. A failing tile fails the table it reads."},
  {"id": "cataloged", "label": "Cataloged", "unit": "table and column",
   "rule": "The table has a non-empty description, every column is described, and its lineage lists at least one upstream table or source system."},
  {"id": "chartered", "label": "Chartered", "unit": "data product",
   "rule": "The product's charter has a purpose, at least one consumer, a contract with a schema version, a freshness promise and at least one test, and a retirement rule; every consumer role can read every table in the product (directly or through the grant to everyone). A failing charter fails every table in the product."}
 ],
 "dependencies": {"owned": [], "classified": ["owned"], "protected": ["classified"], "fresh": [], "certified": ["owned"], "cataloged": ["owned"], "chartered": ["owned"]},
 "setup": "Before any standard counts as complete, the checks are written (data team) and wired into the build pipeline (engineering), so a change that fails a check does not ship.",
 "orders": {
  "risk_first": ["owned", "classified", "protected", "certified", "fresh", "cataloged", "chartered"],
  "most_failures_first": "Standards in descending order of failing published tables on day one; ties keep the order of the standards list. Dependencies still hold: a standard waits for its prerequisites."
 },
 "certify_priority": "Within the certification work, metric names on the board pack come first, in tile order, then every other name in order of first appearance across the dashboards.",
 "remediation": {
  "domain_assignments": {"prod.accounts": "customers", "prod.users": "product"},
  "stewards": {"customers": "sales_ops_manager", "product": "product_manager", "support": "support_ops_lead", "marketing": "marketing_ops_manager", "people": "people_ops_partner"},
  "owner_replacements": {"former_revops": "vp_sales"},
  "classification": "Every column gets the higher of its declared class and its minimum; the table gets the higher of its declared class and its highest column.",
  "protection": "Every reader the domain does not allow is added to the column's masks.",
  "freshness": "A missing promise becomes 24 hours; a missing test is added.",
  "certify": {"MRR": "mrr", "Net revenue retention": "nrr", "Churn rate": "churn_rate", "Pipeline": "pipeline", "Tickets open": "tickets_open", "Feature adoption": "feature_adoption", "Daily events": "daily_events", "Payroll cost": "payroll_cost"},
  "new_definitions": [
   {"id": "win_rate", "name": "Win rate", "table": "mart.pipeline_weekly"},
   {"id": "active_accounts", "name": "Active accounts", "table": "mart.customers"},
   {"id": "weekly_active_users", "name": "Weekly active users", "table": "mart.product_usage_daily"}],
  "retire": "Every other definition sharing a name with a certified one stays in the registry, uncertified and marked retired; every tile moves to its name's certified definition and that definition's table.",
  "catalog": "Missing descriptions are written; missing lineage is listed.",
  "charters": {"customer_360": {"retirement_rule": "Retired when no consumer has queried it for 90 days, after notice to its consumers."},
               "product_usage": {"tests": ["one row per account and day", "active users never exceed the account's seats"]}}
 },
 "framework": {
  "name": "DAMA-DMBOK (the Data Management Body of Knowledge, second edition, by DAMA International)",
  "knowledge_areas": ["Data Governance", "Data Architecture", "Data Modeling and Design", "Data Storage and Operations", "Data Security",
                      "Data Integration and Interoperability", "Document and Content Management", "Reference and Master Data",
                      "Data Warehousing and Business Intelligence", "Metadata Management", "Data Quality"],
  "mapping": {
   "owned": {"primary": "Data Governance", "secondary": null},
   "classified": {"primary": "Data Security", "secondary": "Metadata Management"},
   "protected": {"primary": "Data Security", "secondary": null},
   "fresh": {"primary": "Data Quality", "secondary": "Data Integration and Interoperability"},
   "certified": {"primary": "Data Warehousing and Business Intelligence", "secondary": "Metadata Management"},
   "cataloged": {"primary": "Metadata Management", "secondary": null},
   "chartered": {"primary": "Data Governance", "secondary": "Data Quality"}
  }
 },
 "scorecard": {
  "owned": {"measure": "Published tables whose owner and steward are active people", "target": "every table, every month", "owner": "Head of Data"},
  "classified": {"measure": "Published columns with a class at or above their minimum", "target": "every column; a new column without a class does not ship", "owner": "the domain's steward"},
  "protected": {"measure": "Confidential and restricted columns readable unmasked outside their allowed roles, from the grants themselves", "target": "zero, checked on every grant change and reviewed each quarter", "owner": "Engineering lead with the Head of Data"},
  "fresh": {"measure": "Published tables with a promise and a test, and the share of days each promise was kept", "target": "every table; misses reported to the owner the same day", "owner": "the table's steward"},
  "certified": {"measure": "Dashboard tiles reading one certified definition", "target": "every tile; the board pack first", "owner": "the metric's owner, Finance for revenue"},
  "cataloged": {"measure": "Published tables and columns described, with lineage", "target": "every table; an undocumented column does not ship", "owner": "the domain's steward"},
  "chartered": {"measure": "Data products with a complete charter that their consumers can read", "target": "every product, reviewed each quarter with its consumers", "owner": "Head of Data"}
 },
 "hand_count": {
  "note": "Written by reading the inventory before any check code existed. The code's result is compared cell by cell.",
  "owned": ["prod.accounts", "prod.users", "crm.opportunities", "crm.contacts", "mart.product_usage_daily", "events.page_views", "mart.feature_adoption", "support.tickets", "mart.support_sla", "marketing.campaigns", "marketing.leads", "mart.attribution", "hr.employees", "mart.headcount_monthly"],
  "classified": ["prod.accounts", "prod.users", "events.page_views", "support.tickets", "mart.headcount_monthly"],
  "protected": ["billing.subscriptions", "prod.accounts", "prod.users", "mart.customers", "crm.contacts", "events.page_views", "support.tickets", "hr.employees"],
  "fresh": ["billing.invoices", "prod.accounts", "prod.users", "crm.opportunities", "mart.pipeline_weekly", "events.page_views", "marketing.campaigns", "marketing.leads", "mart.headcount_monthly"],
  "certified": ["mart.mrr_monthly", "billing.subscriptions", "prod.accounts", "prod.users", "crm.opportunities", "mart.pipeline_weekly", "mart.product_usage_daily", "mart.feature_adoption", "mart.support_sla", "mart.headcount_monthly", "mart.churn_monthly", "mart.board_kpis"],
  "cataloged": ["mart.mrr_monthly", "billing.invoices", "prod.accounts", "prod.users", "crm.opportunities", "crm.contacts", "mart.product_usage_daily", "events.page_views", "marketing.campaigns", "marketing.leads", "hr.employees", "finance.gl_entries", "mart.churn_monthly"],
  "chartered": ["mart.customers", "mart.product_usage_daily", "mart.feature_adoption"],
  "any_count": 22,
  "exposed_pairs": 23
 },
 "planted_faults": {
  "note": "Applied one at a time to the year-one target state, to every unit each fits. The fault's own check must fail; any other failing check must be listed in knock_on.",
  "types": [
   {"id": "no_domain", "standard": "owned", "fits": "published table", "does": "domain, owner and steward set to none", "knock_on": ["protected"]},
   {"id": "inactive_owner", "standard": "owned", "fits": "published table", "does": "owner set to a person who has left", "knock_on": []},
   {"id": "inactive_steward", "standard": "owned", "fits": "published table", "does": "steward set to a person who has left", "knock_on": []},
   {"id": "column_class_missing", "standard": "classified", "fits": "column of a published table", "does": "the column's class removed", "knock_on": []},
   {"id": "below_minimum", "standard": "classified", "fits": "tagged column of a published table", "does": "the column's class set to internal", "knock_on": []},
   {"id": "table_below_column", "standard": "classified", "fits": "published table with a column above internal", "does": "the table's class set to internal", "knock_on": []},
   {"id": "unmask", "standard": "protected", "fits": "mask on a confidential or restricted column", "does": "one reader removed from the column's masks", "knock_on": []},
   {"id": "grant_everyone", "standard": "protected", "fits": "published table with a confidential or restricted column and no grant to everyone", "does": "the grant to everyone added", "knock_on": []},
   {"id": "no_promise", "standard": "fresh", "fits": "published table", "does": "freshness promise removed", "knock_on": []},
   {"id": "no_test", "standard": "fresh", "fits": "published table", "does": "freshness test removed", "knock_on": []},
   {"id": "uncertify", "standard": "certified", "fits": "certified definition a tile reads", "does": "certification removed", "knock_on": []},
   {"id": "tile_to_bi_field", "standard": "certified", "fits": "dashboard tile", "does": "the tile pointed at a new BI-field definition with the same name, in the same table", "knock_on": []},
   {"id": "second_certified", "standard": "certified", "fits": "metric name a tile shows", "does": "a second certified model definition with the same name added in another published table", "knock_on": []},
   {"id": "tile_wrong_table", "standard": "certified", "fits": "dashboard tile", "does": "the tile reads a different published table from its definition's", "knock_on": []},
   {"id": "no_description", "standard": "cataloged", "fits": "published table", "does": "description emptied", "knock_on": []},
   {"id": "column_undescribed", "standard": "cataloged", "fits": "column of a published table", "does": "the column's description removed", "knock_on": []},
   {"id": "no_lineage", "standard": "cataloged", "fits": "published table", "does": "lineage emptied", "knock_on": []},
   {"id": "charter_field_missing", "standard": "chartered", "fits": "data product and each of its six charter fields", "does": "the field removed", "knock_on": []},
   {"id": "consumer_cannot_read", "standard": "chartered", "fits": "consumer of a product reading one of its tables directly, with no grant to everyone", "does": "the consumer's grant on that table removed", "knock_on": []}
  ]
 },
 "predictions": [
  {"id": 1, "text": "Risk first masks every exposed column by the end of month 4 in the base case."},
  {"id": 2, "text": "Risk first gets all seven checks passing on every published table by the end of month 12 in the base case."},
  {"id": 3, "text": "With every effort at its high value, at least one standard is not complete by the end of month 12 under risk first."},
  {"id": 4, "text": "Certifying definitions takes more fix hours than any other standard."},
  {"id": 5, "text": "Most failures first leaves exposed columns unmasked at least 3 months longer than risk first, in the base case."},
  {"id": 6, "text": "Year-two upkeep of all seven standards is under 10% of the data team's time in the base case."}
 ]
}
