{
  "_comment": "Rules for the fictional Acme Analytics worked example. Copy assets/rules-template.json for real work.",
  "version": "acme-2026-11",
  "b2b": true,
  "internal_domains": ["example.com"],
  "unique_keys": {"contacts": "Product User ID", "companies": "Billing Account ID"},
  "required": {
    "contacts": [{"field": "country", "population": "marketing", "critical": false}],
    "companies": [
      {"field": "domain", "population": "all", "critical": false},
      {"field": "industry", "population": "all", "critical": false}
    ],
    "deals": [
      {"field": "close_date", "population": "open", "critical": true},
      {"field": "amount", "population": "open", "critical": false}
    ]
  },
  "allowed_values": {
    "contacts.lead_status": ["New", "Open", "In Progress", "Open Deal", "Unqualified", "Attempted to Contact", "Connected", "Bad Timing"]
  },
  "pipelines": {
    "Sales Pipeline": ["Appointment Scheduled", "Qualified To Buy", "Presentation Scheduled", "Decision Maker Bought-In", "Contract Sent", "Closed Won", "Closed Lost"]
  },
  "closed_won_stages": ["Closed Won"],
  "closed_lost_stages": ["Closed Lost"],
  "lost_reason_required": true
}
