{
  "example": "Illustrative server-to-datasource routing contract",
  "routes": [
    {
      "release": "R1",
      "loanPath": "existing-customer",
      "pool": "p1",
      "dbService": "offers_r1",
      "expectedEdition": "OFFERS_V1",
      "mapper": "offer-v1"
    },
    {
      "release": "R2",
      "loanPath": "existing-customer",
      "pool": "p2",
      "dbService": "offers_r2",
      "expectedEdition": "OFFERS_V2",
      "mapper": "offer-v2"
    }
  ],
  "promotionRequires": [
    "Verified service and session edition on fresh and reused pool connections",
    "Known-row mapper checks for each supported loan path and background worker",
    "Mixed-version writes remain readable by R1 and R2",
    "Room for both pool generations under the DB session ceiling"
  ],
  "rollback": {
    "precondition": "R1 code, pool, edition and write contract remain usable",
    "steps": [
      "Route new work to the validated previous generation",
      "Track and drain outstanding R2 work",
      "Reconcile effects and persistent messages across the change"
    ]
  },
  "cleanupRequires": [
    "All candidate and rollback readers released",
    "No remaining pool sessions or queued work require the old contract",
    "Database owner authorizes edition retirement"
  ]
}
