{
  "pair_id": "page-mapping-fix-v1",
  "fix_date": "2026-07-12",
  "campaign_id": "120230799572200590",
  "wrong_page_id": "408865435647368",
  "correct_page_id": "102601625742282",
  "screenshots": [
    {
      "name": "01_inbox_after_fix.png",
      "url": "https://adsfb.namnan.co.th/app.html#/chats",
      "captures": "5 page chips including เฮียหนวด โซล่าเซลล์ (3 conv / 2 unread)"
    },
    {
      "name": "02_campaign_chats_after_fix.png",
      "url": "https://adsfb.namnan.co.th/campaign.html?id=120230799572200590",
      "captures": "Header shows correct page name + page_id=102601625742282"
    }
  ],
  "api_evidence": [
    {
      "endpoint": "GET /v19.0/120230799572200590/adsets",
      "expected": "promoted_object.page_id = 102601625742282",
      "actual": "102601625742282",
      "file": "api/api-campaign-page.json"
    },
    {
      "endpoint": "GET /v19.0/102601625742282",
      "expected": "name = เฮียหนวด โซล่าเซลล์...",
      "actual": "เฮียหนวด โซล่าเซลล์ ไฟตุ้มโซล่าเซลล์ โคมไฟโซล่าเซลล์ สว่างยันเช้า",
      "file": "api/api-real-page.json"
    },
    {
      "endpoint": "GET /public/chat-inbox",
      "expected": "solar page present, 5 chips total",
      "actual": "10 conversations, 5 chips",
      "file": "api/api-inbox-after.json"
    }
  ],
  "db_evidence": [
    {
      "name": "before fix",
      "file": "db-before-fix.txt",
      "wrong_state": "5 rows with page_id=408865435647368, page_name=เฮียหนวด การเกษตร"
    },
    {
      "name": "after fix",
      "file": "db-after-fix.txt",
      "correct_state": "5 rows with page_id=102601625742282, page_name=เฮียหนวด โซล่าเซลล์..."
    }
  ],
  "consistency_checks": [
    {
      "check": "Ads API promoted_object.page_id == correct_page_id",
      "pass": true
    },
    {
      "check": "DB after fix page_id == correct_page_id",
      "pass": true
    },
    {
      "check": "API chat-inbox pageName matches Meta API",
      "pass": true
    },
    {
      "check": "UI inbox page chip count == API pageSummary count",
      "pass": true
    },
    {
      "check": "UI campaign page header pageName == DB page_name",
      "pass": true
    }
  ],
  "verdict": "PASS",
  "completeness": "100%",
  "consistency": "100%"
}
