{
  "kind": "litmiq-migration-signoff-file",
  "version": 1,
  "sha256": "cb4ecf8f50c2ca9cdfa9f872da2ece671ffa8dae0d37e1d9f510508b85ee76ff",
  "record": {
    "kind": "litmiq-migration-signoff",
    "version": 1,
    "created_at": "2026-11-25T13:04:12.000Z",
    "from_model": "model-a (current)",
    "to_model": "model-b (candidate)",
    "judge_model": "judge-model",
    "run_timestamp": "2026-11-25T12:51:37.000Z",
    "system_prompt": "You triage customer support tickets for an online store. Reply with JSON only: {\"category\": one of billing|shipping|returns|account|other, \"priority\": low|normal|urgent, \"summary\": one sentence}. Never invent order numbers.",
    "scoring_criteria": "Valid JSON only, no prose or code fences. Category and priority are correct. Summary is one accurate sentence. No invented facts.",
    "summary": {
      "from": {
        "n": 6,
        "scored": 6,
        "avg": 7.917,
        "pass_n": 5,
        "pass_rate": 0.833
      },
      "to": {
        "n": 6,
        "scored": 6,
        "avg": 8.167,
        "pass_n": 5,
        "pass_rate": 0.833
      },
      "delta_avg": 0.25,
      "cases_dropped": 1,
      "cases_improved": 1
    },
    "cases": [
      {
        "idx": 1,
        "input": "I was charged twice for order 4471, please fix this today.",
        "expected": "billing, urgent, mentions the double charge",
        "from": {
          "output": "{\"category\":\"billing\",\"priority\":\"urgent\",\"summary\":\"Customer was charged twice for order 4471.\"}",
          "score": 9,
          "reasoning": "Correct category and priority; accurate summary.",
          "error": null
        },
        "to": {
          "output": "{\"category\":\"billing\",\"priority\":\"urgent\",\"summary\":\"Customer reports a duplicate charge on order 4471.\"}",
          "score": 9,
          "reasoning": "Correct category and priority; accurate summary.",
          "error": null
        },
        "delta": 0
      },
      {
        "idx": 2,
        "input": "Where is my parcel? Tracking has not moved in 6 days.",
        "expected": "shipping, normal",
        "from": {
          "output": "{\"category\":\"shipping\",\"priority\":\"normal\",\"summary\":\"Tracking has not updated for six days.\"}",
          "score": 8.5,
          "reasoning": "Correct; summary slightly terse.",
          "error": null
        },
        "to": {
          "output": "{\"category\":\"shipping\",\"priority\":\"normal\",\"summary\":\"Customer asks why tracking has not moved in six days.\"}",
          "score": 9,
          "reasoning": "Correct and clear.",
          "error": null
        },
        "delta": 0.5
      },
      {
        "idx": 3,
        "input": "Can I return shoes I wore once? They hurt.",
        "expected": "returns, low; JSON only",
        "from": {
          "output": "{\"category\":\"returns\",\"priority\":\"low\",\"summary\":\"Customer wants to return lightly worn shoes.\"}",
          "score": 9,
          "reasoning": "Correct; valid JSON only.",
          "error": null
        },
        "to": {
          "output": "```json\n{\"category\":\"returns\",\"priority\":\"low\",\"summary\":\"Customer wants to return shoes worn once.\"}\n```",
          "score": 4,
          "reasoning": "Content is correct but the output is wrapped in a markdown code fence, which breaks the JSON-only rule and a strict parser.",
          "error": null
        },
        "delta": -5
      },
      {
        "idx": 4,
        "input": "I forgot my password and the reset email never arrives.",
        "expected": "account, normal",
        "from": {
          "output": "{\"category\":\"account\",\"priority\":\"normal\",\"summary\":\"Password reset email is not arriving.\"}",
          "score": 9,
          "reasoning": "Correct.",
          "error": null
        },
        "to": {
          "output": "{\"category\":\"account\",\"priority\":\"normal\",\"summary\":\"Customer is not receiving the password reset email.\"}",
          "score": 9,
          "reasoning": "Correct.",
          "error": null
        },
        "delta": 0
      },
      {
        "idx": 5,
        "input": "Someone used my card on your site without permission!!",
        "expected": "billing, urgent; no invented order number",
        "from": {
          "output": "{\"category\":\"billing\",\"priority\":\"normal\",\"summary\":\"Customer reports an unauthorized charge on order 0000.\"}",
          "score": 3,
          "reasoning": "Priority should be urgent for suspected fraud, and the summary invents an order number.",
          "error": null
        },
        "to": {
          "output": "{\"category\":\"billing\",\"priority\":\"urgent\",\"summary\":\"Customer reports an unauthorized card payment.\"}",
          "score": 9,
          "reasoning": "Correct priority; no invented facts.",
          "error": null
        },
        "delta": 6
      },
      {
        "idx": 6,
        "input": "Do you sell gift cards?",
        "expected": "other, low",
        "from": {
          "output": "{\"category\":\"other\",\"priority\":\"low\",\"summary\":\"Customer asks whether gift cards are sold.\"}",
          "score": 9,
          "reasoning": "Correct.",
          "error": null
        },
        "to": {
          "output": "{\"category\":\"other\",\"priority\":\"low\",\"summary\":\"Customer asks if the store sells gift cards.\"}",
          "score": 9,
          "reasoning": "Correct.",
          "error": null
        },
        "delta": 0
      }
    ],
    "approval": {
      "reviewer": "Sample Reviewer (QA lead)",
      "decision": "needs_work",
      "notes": "Do not ship yet. Case 3 dropped below the pass mark: model-b wraps JSON in a code fence. Add 'no code fences' to the system prompt, re-run, and approve if no case drops.",
      "approved_at": "2026-11-25T13:04:00.000Z"
    }
  }
}
