{
  "model": "Qwen/Qwen2.5-0.5B-Instruct",
  "revision": "7ae557604adf67be50417f59c2c2f167def9a775",
  "seed": 42,
  "gpu": "Tesla T4",
  "versions": {
    "torch": "2.14.1+cu130",
    "transformers": "4.51.3",
    "peft": "0.15.2",
    "accelerate": "1.6.0"
  },
  "tool_turn_limit": 3,
  "generated_tokens_per_turn": 96,
  "train_tools": [
    "lookup_invoice",
    "match_amount",
    "match_purchase_order"
  ],
  "held_tools": [
    "match_tax",
    "match_currency"
  ],
  "training_case_audit": [
    {
      "case": "SF-832989",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-280550",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-327852",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-637261",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-676878",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-868812",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-231789",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-974560",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-231446",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-629378",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-265594",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-246857",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-531542",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-960816",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-781895",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-955599",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-337591",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-604836",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-474746",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-294075",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-800980",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-425310",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-569228",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-645757",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-366204",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-537040",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-719829",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-995414",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-471428",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-616570",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-374017",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-825649",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-585083",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-350233",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-240856",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-269638",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-212224",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-583218",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-240903",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-630820",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-135390",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-851512",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-291811",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-365741",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-475319",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-676348",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-649982",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-416095",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-322124",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-852757",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-406272",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-814870",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-847838",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-810251",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-159877",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-278819",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-872584",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-652885",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-184577",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-273171",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-289746",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-540371",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-894377",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-309658",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-308989",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-625099",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-122389",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-577519",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-630607",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-617742",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-754076",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-260556",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-574810",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-642941",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-428921",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-773278",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-122213",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-620359",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-609797",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-523401",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-500930",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-698951",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-589807",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-382917",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-496183",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-769358",
      "kind": "lookup",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      }
    },
    {
      "case": "SF-239765",
      "kind": "amount",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-912644",
      "kind": "purchase order",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    },
    {
      "case": "SF-906769",
      "kind": "clarification",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    },
    {
      "case": "SF-849389",
      "kind": "no call",
      "raw": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      "verified": {
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      }
    }
  ],
  "teacher_audit_by_kind": {
    "lookup": {
      "count": 18,
      "raw_execution_ok": 18,
      "raw_success": 12,
      "verified_success": 18
    },
    "amount": {
      "count": 18,
      "raw_execution_ok": 18,
      "raw_success": 12,
      "verified_success": 18
    },
    "purchase order": {
      "count": 18,
      "raw_execution_ok": 18,
      "raw_success": 12,
      "verified_success": 18
    },
    "clarification": {
      "count": 18,
      "raw_execution_ok": 18,
      "raw_success": 12,
      "verified_success": 18
    },
    "no call": {
      "count": 18,
      "raw_execution_ok": 18,
      "raw_success": 12,
      "verified_success": 18
    }
  },
  "coverage_by_kind": {
    "train": {
      "lookup": 18,
      "amount": 18,
      "purchase order": 18,
      "clarification": 18,
      "no call": 18
    },
    "held": {
      "lookup": 6,
      "amount": 6,
      "purchase order": 6,
      "clarification": 6,
      "no call": 6,
      "tax": 12,
      "currency": 12
    }
  },
  "t4_profile": {
    "arm": "raw",
    "sequences": 2,
    "max_sequence_tokens": 515,
    "peak_reserved_gib": 4.17578125,
    "attempted_updates": 1,
    "updates": 1,
    "supervised_response_tokens": 174,
    "unpadded_input_tokens": 1022,
    "seconds": 2.8962537520001206,
    "supervised_tokens_per_second": 60.07760883515042,
    "peak_gib": 3.839597702026367,
    "losses": [
      0.2790513336658478
    ],
    "trainable_parameters": 540672
  },
  "opening_replays": {
    "request": "Check that SF-429916 has a printed total of 234976 minor units in GBP. The notes also mention SF-862527. That is a different invoice.",
    "expected": {
      "actions": [
        {
          "call": "lookup_invoice",
          "args": {
            "invoice_id": "SF-429916"
          }
        },
        {
          "call": "match_amount",
          "args": {
            "invoice_id": "SF-429916",
            "expected_minor": 234976,
            "currency": "GBP"
          }
        }
      ],
      "observations": [
        {
          "ok": true,
          "invoice_id": "SF-429916",
          "retrieved": true
        },
        {
          "ok": true,
          "invoice_id": "SF-429916",
          "match": true,
          "value": 234976
        }
      ],
      "final": {
        "final": "match",
        "invoice_id": "SF-429916",
        "value": 234976
      },
      "malformed": false
    },
    "decoy": {
      "actions": [
        {
          "call": "lookup_invoice",
          "args": {
            "invoice_id": "SF-862527"
          }
        },
        {
          "call": "match_amount",
          "args": {
            "invoice_id": "SF-862527",
            "expected_minor": 234976,
            "currency": "GBP"
          }
        }
      ],
      "observations": [
        {
          "ok": true,
          "invoice_id": "SF-862527",
          "retrieved": true
        },
        {
          "ok": true,
          "invoice_id": "SF-862527",
          "match": false,
          "value": 2023
        }
      ],
      "final": {
        "final": "mismatch",
        "invoice_id": "SF-862527",
        "value": 2023
      },
      "malformed": false
    }
  },
  "training": {
    "raw": {
      "attempted_updates": 45,
      "updates": 45,
      "supervised_response_tokens": 4441,
      "unpadded_input_tokens": 37319,
      "seconds": 8.64879933299926,
      "supervised_tokens_per_second": 513.481678671337,
      "peak_gib": 3.8477578163146973,
      "losses": [
        0.3045572340488434,
        0.13344620168209076,
        0.13704460859298706,
        0.15164242684841156,
        0.38493454456329346,
        0.0697140172123909,
        0.1423255056142807,
        0.09072370082139969,
        0.0613475926220417,
        0.05822138488292694,
        0.055323075503110886,
        0.05277572199702263,
        0.0799323171377182,
        0.049148689955472946,
        0.037443190813064575,
        0.028569571673870087,
        0.036174219101667404,
        0.06208004802465439,
        0.015358874574303627,
        0.025328749790787697,
        0.037483371794223785,
        0.01473039761185646,
        0.07491021603345871,
        0.010187915526330471,
        0.15972360968589783,
        0.03353606164455414,
        0.0075897895731031895,
        0.0324094258248806,
        0.012372545897960663,
        0.029314395040273666,
        0.018604621291160583,
        0.019544312730431557,
        0.008377373218536377,
        0.013838682323694229,
        0.14387930929660797,
        0.00461723143234849,
        0.046142060309648514,
        0.041142597794532776,
        0.007854253984987736,
        0.02763945236802101,
        0.019145449623465538,
        0.013994951732456684,
        0.06592225283384323,
        0.01139751449227333,
        0.022851841524243355
      ],
      "trainable_parameters": 540672
    },
    "verified": {
      "attempted_updates": 45,
      "updates": 45,
      "supervised_response_tokens": 4440,
      "unpadded_input_tokens": 37320,
      "seconds": 8.733896330000789,
      "supervised_tokens_per_second": 508.3641747324929,
      "peak_gib": 3.8477578163146973,
      "losses": [
        0.28742536902427673,
        0.16173794865608215,
        0.135063037276268,
        0.11572305113077164,
        0.14408893883228302,
        0.06561578065156937,
        0.06110265478491783,
        0.04539436474442482,
        0.06075293570756912,
        0.044560469686985016,
        0.030350886285305023,
        0.03396248444914818,
        0.016733443364501,
        0.030798817053437233,
        0.02096712402999401,
        0.016771430149674416,
        0.007785368245095015,
        0.019502393901348114,
        0.008541833609342575,
        0.0027464781887829304,
        0.009244970045983791,
        0.005448515526950359,
        0.0040571498684585094,
        0.007169120013713837,
        0.0007526921108365059,
        0.0034033881966024637,
        0.002230132231488824,
        0.002996269380673766,
        0.0013068285770714283,
        0.000504544354043901,
        0.0010072430595755577,
        0.0011001445818692446,
        0.0005010188324376941,
        0.0015248339623212814,
        0.0004356520948931575,
        0.000568288960494101,
        0.00042558152927085757,
        0.0003451989614404738,
        0.0005547654000110924,
        0.00039838103111833334,
        0.0005466616130433977,
        0.0003158216131851077,
        0.00029715782147832215,
        0.00030736441840417683,
        0.0003419034765101969
      ],
      "trainable_parameters": 540672
    }
  },
  "metrics": {
    "local_rules": {
      "seen_operations": {
        "n": 18,
        "count": {
          "structured": 18,
          "tool_selection": 18,
          "arguments_exact": 18,
          "execution_ok": 18,
          "terminal_exact": 18,
          "success": 18
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      },
      "unseen_tax_operation": {
        "n": 12,
        "count": {
          "structured": 12,
          "tool_selection": 12,
          "arguments_exact": 12,
          "execution_ok": 12,
          "terminal_exact": 12,
          "success": 12
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      },
      "unseen_currency_operation": {
        "n": 12,
        "count": {
          "structured": 12,
          "tool_selection": 12,
          "arguments_exact": 12,
          "execution_ok": 12,
          "terminal_exact": 12,
          "success": 12
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      },
      "clarification": {
        "n": 6,
        "count": {
          "structured": 6,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 6,
          "success": 6
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      },
      "no_call": {
        "n": 6,
        "count": {
          "structured": 6,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 6,
          "success": 6
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      }
    },
    "prompted": {
      "seen_operations": {
        "n": 18,
        "count": {
          "structured": 18,
          "tool_selection": 0,
          "arguments_exact": 0,
          "execution_ok": 0,
          "terminal_exact": 4,
          "success": 0
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 0.0,
          "arguments_exact": 0.0,
          "execution_ok": 0.0,
          "terminal_exact": 0.2222222222222222,
          "success": 0.0
        }
      },
      "unseen_tax_operation": {
        "n": 12,
        "count": {
          "structured": 12,
          "tool_selection": 0,
          "arguments_exact": 0,
          "execution_ok": 0,
          "terminal_exact": 0,
          "success": 0
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 0.0,
          "arguments_exact": 0.0,
          "execution_ok": 0.0,
          "terminal_exact": 0.0,
          "success": 0.0
        }
      },
      "unseen_currency_operation": {
        "n": 12,
        "count": {
          "structured": 12,
          "tool_selection": 0,
          "arguments_exact": 0,
          "execution_ok": 0,
          "terminal_exact": 0,
          "success": 0
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 0.0,
          "arguments_exact": 0.0,
          "execution_ok": 0.0,
          "terminal_exact": 0.0,
          "success": 0.0
        }
      },
      "clarification": {
        "n": 6,
        "count": {
          "structured": 6,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 0,
          "success": 0
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 0.0,
          "success": 0.0
        }
      },
      "no_call": {
        "n": 6,
        "count": {
          "structured": 0,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 0,
          "success": 0
        },
        "fraction": {
          "structured": 0.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 0.0,
          "success": 0.0
        }
      }
    },
    "raw": {
      "seen_operations": {
        "n": 18,
        "count": {
          "structured": 18,
          "tool_selection": 13,
          "arguments_exact": 1,
          "execution_ok": 18,
          "terminal_exact": 1,
          "success": 1
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 0.7222222222222222,
          "arguments_exact": 0.05555555555555555,
          "execution_ok": 1.0,
          "terminal_exact": 0.05555555555555555,
          "success": 0.05555555555555555
        }
      },
      "unseen_tax_operation": {
        "n": 12,
        "count": {
          "structured": 12,
          "tool_selection": 0,
          "arguments_exact": 0,
          "execution_ok": 0,
          "terminal_exact": 0,
          "success": 0
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 0.0,
          "arguments_exact": 0.0,
          "execution_ok": 0.0,
          "terminal_exact": 0.0,
          "success": 0.0
        }
      },
      "unseen_currency_operation": {
        "n": 12,
        "count": {
          "structured": 8,
          "tool_selection": 0,
          "arguments_exact": 0,
          "execution_ok": 12,
          "terminal_exact": 0,
          "success": 0
        },
        "fraction": {
          "structured": 0.6666666666666666,
          "tool_selection": 0.0,
          "arguments_exact": 0.0,
          "execution_ok": 1.0,
          "terminal_exact": 0.0,
          "success": 0.0
        }
      },
      "clarification": {
        "n": 6,
        "count": {
          "structured": 6,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 6,
          "success": 6
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      },
      "no_call": {
        "n": 6,
        "count": {
          "structured": 6,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 6,
          "success": 6
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      }
    },
    "verified": {
      "seen_operations": {
        "n": 18,
        "count": {
          "structured": 18,
          "tool_selection": 14,
          "arguments_exact": 14,
          "execution_ok": 14,
          "terminal_exact": 14,
          "success": 14
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 0.7777777777777778,
          "arguments_exact": 0.7777777777777778,
          "execution_ok": 0.7777777777777778,
          "terminal_exact": 0.7777777777777778,
          "success": 0.7777777777777778
        }
      },
      "unseen_tax_operation": {
        "n": 12,
        "count": {
          "structured": 10,
          "tool_selection": 0,
          "arguments_exact": 0,
          "execution_ok": 0,
          "terminal_exact": 0,
          "success": 0
        },
        "fraction": {
          "structured": 0.8333333333333334,
          "tool_selection": 0.0,
          "arguments_exact": 0.0,
          "execution_ok": 0.0,
          "terminal_exact": 0.0,
          "success": 0.0
        }
      },
      "unseen_currency_operation": {
        "n": 12,
        "count": {
          "structured": 12,
          "tool_selection": 12,
          "arguments_exact": 12,
          "execution_ok": 12,
          "terminal_exact": 12,
          "success": 12
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      },
      "clarification": {
        "n": 6,
        "count": {
          "structured": 6,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 6,
          "success": 6
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      },
      "no_call": {
        "n": 6,
        "count": {
          "structured": 6,
          "tool_selection": 6,
          "arguments_exact": 6,
          "execution_ok": 6,
          "terminal_exact": 6,
          "success": 6
        },
        "fraction": {
          "structured": 1.0,
          "tool_selection": 1.0,
          "arguments_exact": 1.0,
          "execution_ok": 1.0,
          "terminal_exact": 1.0,
          "success": 1.0
        }
      }
    }
  },
  "paired_raw_to_verified": {
    "lookup": {
      "n": 6,
      "gain": 0.8333333333333334,
      "paired_family_interval": [
        0.5,
        1.0
      ]
    },
    "amount": {
      "n": 6,
      "gain": 1.0,
      "paired_family_interval": [
        1.0,
        1.0
      ]
    },
    "purchase order": {
      "n": 6,
      "gain": 0.3333333333333333,
      "paired_family_interval": [
        0.0,
        0.6666666666666666
      ]
    },
    "tax": {
      "n": 12,
      "gain": 0.0,
      "paired_family_interval": [
        0.0,
        0.0
      ]
    },
    "currency": {
      "n": 12,
      "gain": 1.0,
      "paired_family_interval": [
        1.0,
        1.0
      ]
    },
    "clarification": {
      "n": 6,
      "gain": 0.0,
      "paired_family_interval": [
        0.0,
        0.0
      ]
    },
    "no call": {
      "n": 6,
      "gain": 0.0,
      "paired_family_interval": [
        0.0,
        0.0
      ]
    }
  },
  "episodes": {
    "local_rules": [
      {
        "case": "SF-228794",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-228794. The notes also mention SF-429916. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-228794"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-228794",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-228794",
          "value": null
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-228794"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-228794",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-429916",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "amount",
        "request": "Check that SF-429916 has a printed total of 234976 minor units in GBP. The notes also mention SF-862527. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-429916"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-429916",
              "expected_minor": 234976,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-429916",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-429916",
            "match": true,
            "value": 234976
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-429916",
          "value": 234976
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-429916"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-429916",
              "expected_minor": 234976,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-429916",
          "value": 234976
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-862527",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "purchase order",
        "request": "Verify whether SF-862527 belongs to PO-B3AD1B171. The notes also mention SF-112096. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862527"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-862527",
              "purchase_order": "PO-B3AD1B171"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-862527",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-862527",
            "match": true,
            "value": "PO-B3AD1B171"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-862527",
          "value": "PO-B3AD1B171"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862527"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-862527",
              "purchase_order": "PO-B3AD1B171"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-862527",
          "value": "PO-B3AD1B171"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-112096",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-482832",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-915589",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-915589 against 10424 minor units. The notes also mention SF-439970. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-915589"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-915589",
              "expected_tax_minor": 10424
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-915589",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-915589",
            "match": true,
            "value": 10424
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-915589",
          "value": 10424
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-915589"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-915589",
              "expected_tax_minor": 10424
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-915589",
          "value": 10424
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-439970",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "currency",
        "request": "Check whether SF-439970 is denominated in GBP. The notes also mention SF-535315. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-439970"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-439970",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-439970",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-439970",
            "match": true,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-439970",
          "value": "GBP"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-439970"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-439970",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-439970",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-535315",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-535315 against 17029 minor units. The notes also mention SF-159804. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-535315"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-535315",
              "expected_tax_minor": 17029
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-535315",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-535315",
            "match": true,
            "value": 17029
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-535315",
          "value": 17029
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-535315"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-535315",
              "expected_tax_minor": 17029
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-535315",
          "value": 17029
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-159804",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "currency",
        "request": "Check whether SF-159804 is denominated in USD. The notes also mention SF-576379. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-159804"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-159804",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-159804",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-159804",
            "match": true,
            "value": "USD"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-159804",
          "value": "USD"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-159804"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-159804",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-159804",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-576379",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-576379. The notes also mention SF-121864. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-576379",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-121864",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "amount",
        "request": "Check that SF-121864 has a printed total of 305283 minor units in EUR. The notes also mention SF-173476. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-121864"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-121864",
              "expected_minor": 305283,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-121864",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-121864",
            "match": false,
            "value": 305182
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-121864",
          "value": 305182
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-121864"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-121864",
              "expected_minor": 305283,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-121864",
          "value": 305182
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-173476",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "purchase order",
        "request": "Verify whether SF-173476 belongs to PO-17D908503. The notes also mention SF-405682. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-173476"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-173476",
              "purchase_order": "PO-17D908503"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-173476",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-173476",
            "match": false,
            "value": "PO-2D7A4734E"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-173476",
          "value": "PO-2D7A4734E"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-173476"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-173476",
              "purchase_order": "PO-17D908503"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-173476",
          "value": "PO-2D7A4734E"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-405682",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-356438",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-130995",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-130995 against 5688 minor units. The notes also mention SF-181336. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-130995"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-130995",
              "expected_tax_minor": 5688
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-130995",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-130995",
            "match": false,
            "value": 5678
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-130995",
          "value": 5678
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-130995"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-130995",
              "expected_tax_minor": 5688
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-130995",
          "value": 5678
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-181336",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "currency",
        "request": "Check whether SF-181336 is denominated in GBP. The notes also mention SF-221570. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-181336"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-181336",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-181336",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-181336",
            "match": false,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-181336",
          "value": "EUR"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-181336"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-181336",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-181336",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-221570",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-221570 against 6251 minor units. The notes also mention SF-115343. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-221570"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-221570",
              "expected_tax_minor": 6251
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-221570",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-221570",
            "match": false,
            "value": 6241
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-221570",
          "value": 6241
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-221570"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-221570",
              "expected_tax_minor": 6251
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-221570",
          "value": 6241
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-115343",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "currency",
        "request": "Check whether SF-115343 is denominated in USD. The notes also mention SF-228794. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-115343"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-115343",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-115343",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-115343",
            "match": false,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-115343",
          "value": "GBP"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-115343"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-115343",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-115343",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-177277",
        "split": "novel",
        "family": "novel-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-177277. The notes also mention SF-781239. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-177277"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-177277",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-177277",
          "value": null
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-177277"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-177277",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-781239",
        "split": "novel",
        "family": "novel-01",
        "kind": "amount",
        "request": "Check that SF-781239 has a printed total of 72851 minor units in GBP. The notes also mention SF-357240. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-781239"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-781239",
              "expected_minor": 72851,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-781239",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-781239",
            "match": true,
            "value": 72851
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-781239",
          "value": 72851
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-781239"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-781239",
              "expected_minor": 72851,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-781239",
          "value": 72851
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-357240",
        "split": "novel",
        "family": "novel-02",
        "kind": "purchase order",
        "request": "Verify whether SF-357240 belongs to PO-AD9A2BC3D. The notes also mention SF-820102. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-357240"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-357240",
              "purchase_order": "PO-AD9A2BC3D"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-357240",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-357240",
            "match": true,
            "value": "PO-AD9A2BC3D"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-357240",
          "value": "PO-AD9A2BC3D"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-357240"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-357240",
              "purchase_order": "PO-AD9A2BC3D"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-357240",
          "value": "PO-AD9A2BC3D"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-820102",
        "split": "novel",
        "family": "novel-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-388963",
        "split": "novel",
        "family": "novel-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-254979",
        "split": "novel",
        "family": "novel-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-254979 against 804 minor units. The notes also mention SF-526862. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-254979"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-254979",
              "expected_tax_minor": 804
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-254979",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-254979",
            "match": true,
            "value": 804
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-254979",
          "value": 804
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-254979"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-254979",
              "expected_tax_minor": 804
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-254979",
          "value": 804
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-526862",
        "split": "novel",
        "family": "novel-06",
        "kind": "currency",
        "request": "Check whether SF-526862 is denominated in GBP. The notes also mention SF-474019. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-526862",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-526862",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-526862",
            "match": true,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-526862",
          "value": "GBP"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-526862",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-526862",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-474019",
        "split": "novel",
        "family": "novel-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-474019 against 22636 minor units. The notes also mention SF-265176. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-474019"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-474019",
              "expected_tax_minor": 22636
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-474019",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-474019",
            "match": true,
            "value": 22636
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-474019",
          "value": 22636
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-474019"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-474019",
              "expected_tax_minor": 22636
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-474019",
          "value": 22636
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-265176",
        "split": "novel",
        "family": "novel-00",
        "kind": "currency",
        "request": "Check whether SF-265176 is denominated in USD. The notes also mention SF-548824. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-265176"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-265176",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-265176",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-265176",
            "match": true,
            "value": "USD"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-265176",
          "value": "USD"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-265176"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-265176",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-265176",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-548824",
        "split": "novel",
        "family": "novel-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-548824. The notes also mention SF-587791. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-548824"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-548824",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-548824",
          "value": null
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-548824"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-548824",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-587791",
        "split": "novel",
        "family": "novel-02",
        "kind": "amount",
        "request": "Check that SF-587791 has a printed total of 54368 minor units in EUR. The notes also mention SF-931161. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-587791"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-587791",
              "expected_minor": 54368,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-587791",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-587791",
            "match": false,
            "value": 54267
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-587791",
          "value": 54267
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-587791"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-587791",
              "expected_minor": 54368,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-587791",
          "value": 54267
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-931161",
        "split": "novel",
        "family": "novel-03",
        "kind": "purchase order",
        "request": "Verify whether SF-931161 belongs to PO-0D25E1CA9. The notes also mention SF-652364. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-931161"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-931161",
              "purchase_order": "PO-0D25E1CA9"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-931161",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-931161",
            "match": false,
            "value": "PO-78ED29857"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-931161",
          "value": "PO-78ED29857"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-931161"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-931161",
              "purchase_order": "PO-0D25E1CA9"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-931161",
          "value": "PO-78ED29857"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-652364",
        "split": "novel",
        "family": "novel-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-551781",
        "split": "novel",
        "family": "novel-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-852562",
        "split": "novel",
        "family": "novel-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-852562 against 14672 minor units. The notes also mention SF-374305. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-852562"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-852562",
              "expected_tax_minor": 14672
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-852562",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-852562",
            "match": false,
            "value": 14662
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-852562",
          "value": 14662
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-852562"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-852562",
              "expected_tax_minor": 14672
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-852562",
          "value": 14662
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-374305",
        "split": "novel",
        "family": "novel-07",
        "kind": "currency",
        "request": "Check whether SF-374305 is denominated in GBP. The notes also mention SF-797533. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-374305"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-374305",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-374305",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-374305",
            "match": false,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-374305",
          "value": "EUR"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-374305"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-374305",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-374305",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-797533",
        "split": "novel",
        "family": "novel-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-797533 against 12291 minor units. The notes also mention SF-840609. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-797533"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-797533",
              "expected_tax_minor": 12291
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-797533",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-797533",
            "match": false,
            "value": 12281
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-797533",
          "value": 12281
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-797533"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-797533",
              "expected_tax_minor": 12291
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-797533",
          "value": 12281
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-840609",
        "split": "novel",
        "family": "novel-01",
        "kind": "currency",
        "request": "Check whether SF-840609 is denominated in USD. The notes also mention SF-177277. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-840609",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-840609",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-840609",
            "match": false,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-840609",
          "value": "GBP"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-840609",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-840609",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-375561",
        "split": "independent",
        "family": "independent-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-375561. The notes also mention SF-334284. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-375561"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-375561",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-375561",
          "value": null
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-375561"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-375561",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-334284",
        "split": "independent",
        "family": "independent-01",
        "kind": "amount",
        "request": "Check that SF-334284 has a printed total of 25147 minor units in GBP. The notes also mention SF-704341. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-334284"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-334284",
              "expected_minor": 25147,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-334284",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-334284",
            "match": true,
            "value": 25147
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-334284",
          "value": 25147
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-334284"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-334284",
              "expected_minor": 25147,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-334284",
          "value": 25147
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-704341",
        "split": "independent",
        "family": "independent-02",
        "kind": "purchase order",
        "request": "Verify whether SF-704341 belongs to PO-F8E02AFDB. The notes also mention SF-604934. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-704341"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-704341",
              "purchase_order": "PO-F8E02AFDB"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-704341",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-704341",
            "match": true,
            "value": "PO-F8E02AFDB"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-704341",
          "value": "PO-F8E02AFDB"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-704341"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-704341",
              "purchase_order": "PO-F8E02AFDB"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-704341",
          "value": "PO-F8E02AFDB"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-604934",
        "split": "independent",
        "family": "independent-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-467138",
        "split": "independent",
        "family": "independent-00",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-826464",
        "split": "independent",
        "family": "independent-01",
        "kind": "tax",
        "request": "Check the printed tax on SF-826464 against 10976 minor units. The notes also mention SF-707944. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-826464"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-826464",
              "expected_tax_minor": 10976
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-826464",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-826464",
            "match": true,
            "value": 10976
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-826464",
          "value": 10976
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-826464"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-826464",
              "expected_tax_minor": 10976
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-826464",
          "value": 10976
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-707944",
        "split": "independent",
        "family": "independent-02",
        "kind": "currency",
        "request": "Check whether SF-707944 is denominated in EUR. The notes also mention SF-967042. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-707944"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-707944",
              "expected_currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-707944",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-707944",
            "match": true,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-707944",
          "value": "EUR"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-707944"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-707944",
              "expected_currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-707944",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-967042",
        "split": "independent",
        "family": "independent-03",
        "kind": "tax",
        "request": "Check the printed tax on SF-967042 against 27981 minor units. The notes also mention SF-426781. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-967042"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-967042",
              "expected_tax_minor": 27981
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-967042",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-967042",
            "match": true,
            "value": 27981
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-967042",
          "value": 27981
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-967042"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-967042",
              "expected_tax_minor": 27981
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-967042",
          "value": 27981
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-426781",
        "split": "independent",
        "family": "independent-00",
        "kind": "currency",
        "request": "Check whether SF-426781 is denominated in USD. The notes also mention SF-776084. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-426781"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-426781",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-426781",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-426781",
            "match": true,
            "value": "USD"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-426781",
          "value": "USD"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-426781"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-426781",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-426781",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-776084",
        "split": "independent",
        "family": "independent-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-776084. The notes also mention SF-887948. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-776084"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-776084",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-776084",
          "value": null
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-776084"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-776084",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-887948",
        "split": "independent",
        "family": "independent-02",
        "kind": "amount",
        "request": "Check that SF-887948 has a printed total of 33483 minor units in EUR. The notes also mention SF-685565. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-887948"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-887948",
              "expected_minor": 33483,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-887948",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-887948",
            "match": false,
            "value": 33382
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-887948",
          "value": 33382
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-887948"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-887948",
              "expected_minor": 33483,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-887948",
          "value": 33382
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-685565",
        "split": "independent",
        "family": "independent-03",
        "kind": "purchase order",
        "request": "Verify whether SF-685565 belongs to PO-777F82FBF. The notes also mention SF-718383. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-685565"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-685565",
              "purchase_order": "PO-777F82FBF"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-685565",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-685565",
            "match": false,
            "value": "PO-E4B2F210D"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-685565",
          "value": "PO-E4B2F210D"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-685565"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-685565",
              "purchase_order": "PO-777F82FBF"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-685565",
          "value": "PO-E4B2F210D"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-718383",
        "split": "independent",
        "family": "independent-00",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-809353",
        "split": "independent",
        "family": "independent-01",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-904644",
        "split": "independent",
        "family": "independent-02",
        "kind": "tax",
        "request": "Check the printed tax on SF-904644 against 9193 minor units. The notes also mention SF-510228. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-904644"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-904644",
              "expected_tax_minor": 9193
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-904644",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-904644",
            "match": false,
            "value": 9183
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-904644",
          "value": 9183
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-904644"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-904644",
              "expected_tax_minor": 9193
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-904644",
          "value": 9183
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-510228",
        "split": "independent",
        "family": "independent-03",
        "kind": "currency",
        "request": "Check whether SF-510228 is denominated in GBP. The notes also mention SF-747871. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-510228"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-510228",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-510228",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-510228",
            "match": false,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-510228",
          "value": "EUR"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-510228"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-510228",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-510228",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-747871",
        "split": "independent",
        "family": "independent-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-747871 against 120 minor units. The notes also mention SF-862316. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-747871"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-747871",
              "expected_tax_minor": 120
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-747871",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-747871",
            "match": false,
            "value": null
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-747871",
          "value": null
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-747871"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-747871",
              "expected_tax_minor": 120
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-747871",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-862316",
        "split": "independent",
        "family": "independent-01",
        "kind": "currency",
        "request": "Check whether SF-862316 is denominated in USD. The notes also mention SF-375561. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-862316",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-862316",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-862316",
            "match": false,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-862316",
          "value": "GBP"
        },
        "completions": [],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-862316",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-862316",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    ],
    "prompted": [
      {
        "case": "SF-228794",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-228794. The notes also mention SF-429916. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-228794",
          "value": "SF-429916"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-228794\",\"value\":\"SF-429916\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-228794"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-228794",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-429916",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "amount",
        "request": "Check that SF-429916 has a printed total of 234976 minor units in GBP. The notes also mention SF-862527. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-429916",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-429916\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-429916"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-429916",
              "expected_minor": 234976,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-429916",
          "value": 234976
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-862527",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "purchase order",
        "request": "Verify whether SF-862527 belongs to PO-B3AD1B171. The notes also mention SF-112096. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "PO-B3AD1B171",
          "value": "SF-862527"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"PO-B3AD1B171\",\"value\":\"SF-862527\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862527"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-862527",
              "purchase_order": "PO-B3AD1B171"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-862527",
          "value": "PO-B3AD1B171"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-112096",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-482832",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "In general, an invoice identifier refers to a unique identifier assigned to each invoice that can be used to identify it in the system. This identifier helps in tracking and managing multiple invoices efficiently. It serves as a reference point for various operations such as retrieving invoices, matching them against other records, and performing comparisons. Without an invoice identifier, it would be challenging to perform these tasks effectively."
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": false,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-915589",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-915589 against 10424 minor units. The notes also mention SF-439970. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-915589",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-915589\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-915589"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-915589",
              "expected_tax_minor": 10424
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-915589",
          "value": 10424
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-439970",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "currency",
        "request": "Check whether SF-439970 is denominated in GBP. The notes also mention SF-535315. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-439970",
          "value": "GBP"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-439970\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-439970"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-439970",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-439970",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-535315",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-535315 against 17029 minor units. The notes also mention SF-159804. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-535315",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-535315\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-535315"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-535315",
              "expected_tax_minor": 17029
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-535315",
          "value": 17029
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-159804",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "currency",
        "request": "Check whether SF-159804 is denominated in USD. The notes also mention SF-576379. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-159804",
          "value": "USD"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-159804\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-159804"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-159804",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-159804",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-576379",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-576379. The notes also mention SF-121864. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-576379\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-121864",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "amount",
        "request": "Check that SF-121864 has a printed total of 305283 minor units in EUR. The notes also mention SF-173476. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-121864",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-121864\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-121864"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-121864",
              "expected_minor": 305283,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-121864",
          "value": 305182
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-173476",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "purchase order",
        "request": "Verify whether SF-173476 belongs to PO-17D908503. The notes also mention SF-405682. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "PO-17D908503",
          "value": "SF-173476"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"PO-17D908503\",\"value\":\"SF-173476\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-173476"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-173476",
              "purchase_order": "PO-17D908503"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-173476",
          "value": "PO-2D7A4734E"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-405682",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-356438",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "In general, an invoice identifier refers to a unique identifier assigned to each invoice that can be used to identify it in the system. This identifier helps in tracking and managing multiple invoices efficiently. It serves as a reference point for various operations such as retrieving invoices, matching them against other records, and performing comparisons. Without an invoice identifier, it would be challenging to perform these tasks effectively."
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": false,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-130995",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-130995 against 5688 minor units. The notes also mention SF-181336. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-130995",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-130995\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-130995"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-130995",
              "expected_tax_minor": 5688
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-130995",
          "value": 5678
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-181336",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "currency",
        "request": "Check whether SF-181336 is denominated in GBP. The notes also mention SF-221570. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-181336",
          "value": "GBP"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-181336\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-181336"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-181336",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-181336",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-221570",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-221570 against 6251 minor units. The notes also mention SF-115343. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-221570",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-221570\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-221570"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-221570",
              "expected_tax_minor": 6251
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-221570",
          "value": 6241
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-115343",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "currency",
        "request": "Check whether SF-115343 is denominated in USD. The notes also mention SF-228794. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-115343",
          "value": "USD"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-115343\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-115343"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-115343",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-115343",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-177277",
        "split": "novel",
        "family": "novel-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-177277. The notes also mention SF-781239. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-177277",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-177277\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-177277"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-177277",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-781239",
        "split": "novel",
        "family": "novel-01",
        "kind": "amount",
        "request": "Check that SF-781239 has a printed total of 72851 minor units in GBP. The notes also mention SF-357240. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-781239",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-781239\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-781239"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-781239",
              "expected_minor": 72851,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-781239",
          "value": 72851
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-357240",
        "split": "novel",
        "family": "novel-02",
        "kind": "purchase order",
        "request": "Verify whether SF-357240 belongs to PO-AD9A2BC3D. The notes also mention SF-820102. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "PO-AD9A2BC3D",
          "value": "SF-357240"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"PO-AD9A2BC3D\",\"value\":\"SF-357240\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-357240"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-357240",
              "purchase_order": "PO-AD9A2BC3D"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-357240",
          "value": "PO-AD9A2BC3D"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-820102",
        "split": "novel",
        "family": "novel-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-388963",
        "split": "novel",
        "family": "novel-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "In general, an invoice identifier refers to a unique identifier assigned to each invoice that can be used to identify it in the system. This identifier helps in tracking and managing multiple invoices efficiently. It serves as a reference point for various operations such as retrieving invoices, matching them against other records, and performing comparisons. Without an invoice identifier, it would be challenging to perform these tasks effectively."
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": false,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-254979",
        "split": "novel",
        "family": "novel-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-254979 against 804 minor units. The notes also mention SF-526862. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-254979",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-254979\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-254979"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-254979",
              "expected_tax_minor": 804
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-254979",
          "value": 804
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-526862",
        "split": "novel",
        "family": "novel-06",
        "kind": "currency",
        "request": "Check whether SF-526862 is denominated in GBP. The notes also mention SF-474019. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-526862",
          "value": "GBP"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-526862\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-526862",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-526862",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-474019",
        "split": "novel",
        "family": "novel-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-474019 against 22636 minor units. The notes also mention SF-265176. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-474019",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-474019\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-474019"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-474019",
              "expected_tax_minor": 22636
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-474019",
          "value": 22636
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-265176",
        "split": "novel",
        "family": "novel-00",
        "kind": "currency",
        "request": "Check whether SF-265176 is denominated in USD. The notes also mention SF-548824. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-265176",
          "value": "USD"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-265176\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-265176"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-265176",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-265176",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-548824",
        "split": "novel",
        "family": "novel-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-548824. The notes also mention SF-587791. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-548824",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-548824\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-548824"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-548824",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-587791",
        "split": "novel",
        "family": "novel-02",
        "kind": "amount",
        "request": "Check that SF-587791 has a printed total of 54368 minor units in EUR. The notes also mention SF-931161. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-587791",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-587791\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-587791"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-587791",
              "expected_minor": 54368,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-587791",
          "value": 54267
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-931161",
        "split": "novel",
        "family": "novel-03",
        "kind": "purchase order",
        "request": "Verify whether SF-931161 belongs to PO-0D25E1CA9. The notes also mention SF-652364. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-931161",
          "value": "PO-0D25E1CA9"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-931161\",\"value\":\"PO-0D25E1CA9\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-931161"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-931161",
              "purchase_order": "PO-0D25E1CA9"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-931161",
          "value": "PO-78ED29857"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-652364",
        "split": "novel",
        "family": "novel-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-551781",
        "split": "novel",
        "family": "novel-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "In general, an invoice identifier refers to a unique identifier assigned to each invoice that can be used to identify it in the system. This identifier helps in tracking and managing multiple invoices efficiently. It serves as a reference point for various operations such as retrieving invoices, matching them against other records, and performing comparisons. Without an invoice identifier, it would be challenging to perform these tasks effectively."
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": false,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-852562",
        "split": "novel",
        "family": "novel-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-852562 against 14672 minor units. The notes also mention SF-374305. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-852562",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-852562\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-852562"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-852562",
              "expected_tax_minor": 14672
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-852562",
          "value": 14662
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-374305",
        "split": "novel",
        "family": "novel-07",
        "kind": "currency",
        "request": "Check whether SF-374305 is denominated in GBP. The notes also mention SF-797533. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-374305",
          "value": "GBP"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-374305\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-374305"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-374305",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-374305",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-797533",
        "split": "novel",
        "family": "novel-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-797533 against 12291 minor units. The notes also mention SF-840609. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-797533",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-797533\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-797533"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-797533",
              "expected_tax_minor": 12291
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-797533",
          "value": 12281
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-840609",
        "split": "novel",
        "family": "novel-01",
        "kind": "currency",
        "request": "Check whether SF-840609 is denominated in USD. The notes also mention SF-177277. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-840609",
          "value": "USD"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-840609\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-840609",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-840609",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-375561",
        "split": "independent",
        "family": "independent-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-375561. The notes also mention SF-334284. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-375561",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-375561\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-375561"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-375561",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-334284",
        "split": "independent",
        "family": "independent-01",
        "kind": "amount",
        "request": "Check that SF-334284 has a printed total of 25147 minor units in GBP. The notes also mention SF-704341. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-334284",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-334284\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-334284"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-334284",
              "expected_minor": 25147,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-334284",
          "value": 25147
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-704341",
        "split": "independent",
        "family": "independent-02",
        "kind": "purchase order",
        "request": "Verify whether SF-704341 belongs to PO-F8E02AFDB. The notes also mention SF-604934. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-704341",
          "value": "PO-F8E02AFDB"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-704341\",\"value\":\"PO-F8E02AFDB\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-704341"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-704341",
              "purchase_order": "PO-F8E02AFDB"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-704341",
          "value": "PO-F8E02AFDB"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-604934",
        "split": "independent",
        "family": "independent-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-467138",
        "split": "independent",
        "family": "independent-00",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "In general, an invoice identifier refers to a unique identifier assigned to each invoice that can be used to identify it in the system. This identifier helps in tracking and managing multiple invoices efficiently. It serves as a reference point for various operations such as retrieving invoices, matching them against other records, and performing comparisons. Without an invoice identifier, it would be challenging to perform these tasks effectively."
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": false,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-826464",
        "split": "independent",
        "family": "independent-01",
        "kind": "tax",
        "request": "Check the printed tax on SF-826464 against 10976 minor units. The notes also mention SF-707944. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-826464",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-826464\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-826464"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-826464",
              "expected_tax_minor": 10976
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-826464",
          "value": 10976
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-707944",
        "split": "independent",
        "family": "independent-02",
        "kind": "currency",
        "request": "Check whether SF-707944 is denominated in EUR. The notes also mention SF-967042. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-707944",
          "value": "EUR"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-707944\",\"value\":\"EUR\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-707944"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-707944",
              "expected_currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-707944",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-967042",
        "split": "independent",
        "family": "independent-03",
        "kind": "tax",
        "request": "Check the printed tax on SF-967042 against 27981 minor units. The notes also mention SF-426781. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-967042",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-967042\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-967042"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-967042",
              "expected_tax_minor": 27981
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-967042",
          "value": 27981
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-426781",
        "split": "independent",
        "family": "independent-00",
        "kind": "currency",
        "request": "Check whether SF-426781 is denominated in USD. The notes also mention SF-776084. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-426781",
          "value": "USD"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-426781\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-426781"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-426781",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-426781",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-776084",
        "split": "independent",
        "family": "independent-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-776084. The notes also mention SF-887948. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-776084",
          "value": "SF-887948"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-776084\",\"value\":\"SF-887948\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-776084"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-776084",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-887948",
        "split": "independent",
        "family": "independent-02",
        "kind": "amount",
        "request": "Check that SF-887948 has a printed total of 33483 minor units in EUR. The notes also mention SF-685565. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-887948",
          "value": null
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-887948\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-887948"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-887948",
              "expected_minor": 33483,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-887948",
          "value": 33382
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-685565",
        "split": "independent",
        "family": "independent-03",
        "kind": "purchase order",
        "request": "Verify whether SF-685565 belongs to PO-777F82FBF. The notes also mention SF-718383. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "PO-777F82FBF",
          "value": "SF-685565"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"PO-777F82FBF\",\"value\":\"SF-685565\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-685565"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-685565",
              "purchase_order": "PO-777F82FBF"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-685565",
          "value": "PO-E4B2F210D"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-718383",
        "split": "independent",
        "family": "independent-00",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-809353",
        "split": "independent",
        "family": "independent-01",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "In general, an invoice identifier refers to a unique identifier assigned to each invoice that can be used to identify it in the system. This identifier helps in tracking and managing multiple invoices efficiently. It serves as a reference point for various operations such as retrieving invoices, matching them against other records, and performing comparisons. Without an invoice identifier, it would be challenging to perform these tasks effectively."
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": false,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": false,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-904644",
        "split": "independent",
        "family": "independent-02",
        "kind": "tax",
        "request": "Check the printed tax on SF-904644 against 9193 minor units. The notes also mention SF-510228. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-904644",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-904644\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-904644"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-904644",
              "expected_tax_minor": 9193
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-904644",
          "value": 9183
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-510228",
        "split": "independent",
        "family": "independent-03",
        "kind": "currency",
        "request": "Check whether SF-510228 is denominated in GBP. The notes also mention SF-747871. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-510228",
          "value": "GBP"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-510228\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-510228"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-510228",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-510228",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-747871",
        "split": "independent",
        "family": "independent-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-747871 against 120 minor units. The notes also mention SF-862316. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "match",
          "invoice_id": "SF-747871",
          "value": null
        },
        "completions": [
          "{\"final\":\"match\",\"invoice_id\":\"SF-747871\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-747871"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-747871",
              "expected_tax_minor": 120
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-747871",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-862316",
        "split": "independent",
        "family": "independent-01",
        "kind": "currency",
        "request": "Check whether SF-862316 is denominated in USD. The notes also mention SF-375561. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "found",
          "invoice_id": "SF-862316",
          "value": "USD"
        },
        "completions": [
          "{\"final\":\"found\",\"invoice_id\":\"SF-862316\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-862316",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-862316",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      }
    ],
    "raw": [
      {
        "case": "SF-228794",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-228794. The notes also mention SF-429916. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-429916"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-429916",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-429916",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-429916\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-429916\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-228794"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-228794",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-429916",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "amount",
        "request": "Check that SF-429916 has a printed total of 234976 minor units in GBP. The notes also mention SF-862527. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862527"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-862527",
              "expected_minor": 234976,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-862527",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-862527",
            "match": false,
            "value": 2023
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-862527",
          "value": 2023
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-862527\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-862527\",\"expected_minor\":234976,\"currency\":\"GBP\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-862527\",\"value\":2023}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-429916"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-429916",
              "expected_minor": 234976,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-429916",
          "value": 234976
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-862527",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "purchase order",
        "request": "Verify whether SF-862527 belongs to PO-B3AD1B171. The notes also mention SF-112096. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-112096"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-112096",
              "expected_minor": 42,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-112096",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-112096",
            "match": false,
            "value": 122667
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-112096",
          "value": 122667
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-112096\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-112096\",\"expected_minor\":42,\"currency\":\"USD\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-112096\",\"value\":122667}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862527"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-862527",
              "purchase_order": "PO-B3AD1B171"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-862527",
          "value": "PO-B3AD1B171"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-112096",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-482832",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-915589",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-915589 against 10424 minor units. The notes also mention SF-439970. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-439970",
              "expected_tax_minor": 10424
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-439970"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-439970",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-439970",
          "value": 10424
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-439970\",\"expected_tax_minor\":10424}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-439970\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-439970\",\"value\":10424}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-915589"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-915589",
              "expected_tax_minor": 10424
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-915589",
          "value": 10424
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-439970",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "currency",
        "request": "Check whether SF-439970 is denominated in GBP. The notes also mention SF-535315. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-535315"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-535315",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-535315",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-535315\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-535315\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-439970"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-439970",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-439970",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-535315",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-535315 against 17029 minor units. The notes also mention SF-159804. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-159804",
              "expected_tax_minor": 17029
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-159804"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-159804",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-159804",
          "value": 17029
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-159804\",\"expected_tax_minor\":17029}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-159804\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-159804\",\"value\":17029}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-535315"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-535315",
              "expected_tax_minor": 17029
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-535315",
          "value": 17029
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-159804",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "currency",
        "request": "Check whether SF-159804 is denominated in USD. The notes also mention SF-576379. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-576379",
            "retrieved": true
          }
        ],
        "final": null,
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-576379\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-576379\",\"value\":true}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-159804"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-159804",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-159804",
          "value": "USD"
        },
        "structured": false,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-576379",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-576379. The notes also mention SF-121864. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-576379",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-576379\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-576379\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-121864",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "amount",
        "request": "Check that SF-121864 has a printed total of 305283 minor units in EUR. The notes also mention SF-173476. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-173476"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-173476",
              "expected_minor": 305283,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-173476",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-173476",
            "match": false,
            "value": 223898
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-173476",
          "value": 223898
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-173476\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-173476\",\"expected_minor\":305283,\"currency\":\"EUR\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-173476\",\"value\":223898}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-121864"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-121864",
              "expected_minor": 305283,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-121864",
          "value": 305182
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-173476",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "purchase order",
        "request": "Verify whether SF-173476 belongs to PO-17D908503. The notes also mention SF-405682. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-405682"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-405682",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-405682",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-405682\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-405682\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-173476"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-173476",
              "purchase_order": "PO-17D908503"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-173476",
          "value": "PO-2D7A4734E"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-405682",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-356438",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-130995",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-130995 against 5688 minor units. The notes also mention SF-181336. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-181336",
              "expected_tax_minor": 5688
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-181336"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-181336",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-181336",
          "value": 5688
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-181336\",\"expected_tax_minor\":5688}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-181336\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-181336\",\"value\":5688}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-130995"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-130995",
              "expected_tax_minor": 5688
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-130995",
          "value": 5678
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-181336",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "currency",
        "request": "Check whether SF-181336 is denominated in GBP. The notes also mention SF-221570. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-221570"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-221570",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-221570",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-221570\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-221570\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-181336"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-181336",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-181336",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-221570",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-221570 against 6251 minor units. The notes also mention SF-115343. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-115343",
              "expected_tax_minor": 6251
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-115343"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-115343",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-115343",
          "value": 6251
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-115343\",\"expected_tax_minor\":6251}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-115343\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-115343\",\"value\":6251}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-221570"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-221570",
              "expected_tax_minor": 6251
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-221570",
          "value": 6241
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-115343",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "currency",
        "request": "Check whether SF-115343 is denominated in USD. The notes also mention SF-228794. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-228794"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-228794",
            "retrieved": true
          }
        ],
        "final": null,
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-228794\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-228794\",\"value\":true}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-115343"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-115343",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-115343",
          "value": "GBP"
        },
        "structured": false,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-177277",
        "split": "novel",
        "family": "novel-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-177277. The notes also mention SF-781239. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-781239"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-781239",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-781239",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-781239\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-781239\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-177277"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-177277",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-781239",
        "split": "novel",
        "family": "novel-01",
        "kind": "amount",
        "request": "Check that SF-781239 has a printed total of 72851 minor units in GBP. The notes also mention SF-357240. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-357240"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-357240",
              "expected_minor": 72851,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-357240",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-357240",
            "match": false,
            "value": 13284
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-357240",
          "value": 13284
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-357240\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-357240\",\"expected_minor\":72851,\"currency\":\"GBP\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-357240\",\"value\":13284}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-781239"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-781239",
              "expected_minor": 72851,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-781239",
          "value": 72851
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-357240",
        "split": "novel",
        "family": "novel-02",
        "kind": "purchase order",
        "request": "Verify whether SF-357240 belongs to PO-AD9A2BC3D. The notes also mention SF-820102. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-820102"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-820102",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-820102",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-820102\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-820102\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-357240"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-357240",
              "purchase_order": "PO-AD9A2BC3D"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-357240",
          "value": "PO-AD9A2BC3D"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-820102",
        "split": "novel",
        "family": "novel-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-388963",
        "split": "novel",
        "family": "novel-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-254979",
        "split": "novel",
        "family": "novel-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-254979 against 804 minor units. The notes also mention SF-526862. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-526862",
              "expected_tax_minor": 804
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-526862",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-526862",
          "value": 804
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-526862\",\"expected_tax_minor\":804}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-526862\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-526862\",\"value\":804}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-254979"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-254979",
              "expected_tax_minor": 804
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-254979",
          "value": 804
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-526862",
        "split": "novel",
        "family": "novel-06",
        "kind": "currency",
        "request": "Check whether SF-526862 is denominated in GBP. The notes also mention SF-474019. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-526862",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-526862",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-526862\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-526862\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-526862",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-526862",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-474019",
        "split": "novel",
        "family": "novel-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-474019 against 22636 minor units. The notes also mention SF-265176. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-265176",
              "expected_tax_minor": 22636
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-265176"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-265176",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-265176",
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-265176\",\"expected_tax_minor\":22636}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-265176\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-265176\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-474019"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-474019",
              "expected_tax_minor": 22636
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-474019",
          "value": 22636
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-265176",
        "split": "novel",
        "family": "novel-00",
        "kind": "currency",
        "request": "Check whether SF-265176 is denominated in USD. The notes also mention SF-548824. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-548824"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-548824",
            "retrieved": true
          }
        ],
        "final": null,
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-548824\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-548824\",\"value\":true}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-265176"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-265176",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-265176",
          "value": "USD"
        },
        "structured": false,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-548824",
        "split": "novel",
        "family": "novel-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-548824. The notes also mention SF-587791. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-587791"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-587791",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-587791",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-587791\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-587791\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-548824"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-548824",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-587791",
        "split": "novel",
        "family": "novel-02",
        "kind": "amount",
        "request": "Check that SF-587791 has a printed total of 54368 minor units in EUR. The notes also mention SF-931161. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-931161"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-931161",
              "expected_minor": 54368,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-931161",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-931161",
            "match": false,
            "value": 93395
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-931161",
          "value": 93395
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-931161\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-931161\",\"expected_minor\":54368,\"currency\":\"EUR\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-931161\",\"value\":93395}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-587791"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-587791",
              "expected_minor": 54368,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-587791",
          "value": 54267
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-931161",
        "split": "novel",
        "family": "novel-03",
        "kind": "purchase order",
        "request": "Verify whether SF-931161 belongs to PO-0D25E1CA9. The notes also mention SF-652364. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-652364"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-652364",
              "purchase_order": "PO-0D25E1CA9"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-652364",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-652364",
            "match": true,
            "value": "PO-0D25E1CA9"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-652364",
          "value": "PO-0D25E1CA9"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-652364\"}}",
          "{\"call\":\"match_purchase_order\",\"args\":{\"invoice_id\":\"SF-652364\",\"purchase_order\":\"PO-0D25E1CA9\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-652364\",\"value\":\"PO-0D25E1CA9\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-931161"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-931161",
              "purchase_order": "PO-0D25E1CA9"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-931161",
          "value": "PO-78ED29857"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-652364",
        "split": "novel",
        "family": "novel-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-551781",
        "split": "novel",
        "family": "novel-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-852562",
        "split": "novel",
        "family": "novel-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-852562 against 14672 minor units. The notes also mention SF-374305. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-852562",
              "expected_tax_minor": 14672,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-852562\",\"expected_tax_minor\":14672,\"currency\":\"EUR\"}}",
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-852562"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-852562",
              "expected_tax_minor": 14672
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-852562",
          "value": 14662
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-374305",
        "split": "novel",
        "family": "novel-07",
        "kind": "currency",
        "request": "Check whether SF-374305 is denominated in GBP. The notes also mention SF-797533. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-797533"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-797533",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-797533",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-797533\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-797533\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-374305"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-374305",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-374305",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-797533",
        "split": "novel",
        "family": "novel-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-797533 against 12291 minor units. The notes also mention SF-840609. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-840609",
              "expected_tax_minor": 12291
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-840609",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-840609",
          "value": 12291
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-840609\",\"expected_tax_minor\":12291}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-840609\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-840609\",\"value\":12291}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-797533"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-797533",
              "expected_tax_minor": 12291
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-797533",
          "value": 12281
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-840609",
        "split": "novel",
        "family": "novel-01",
        "kind": "currency",
        "request": "Check whether SF-840609 is denominated in USD. The notes also mention SF-177277. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-840609",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-840609",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-840609\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-840609\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-840609",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-840609",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-375561",
        "split": "independent",
        "family": "independent-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-375561. The notes also mention SF-334284. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-334284"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-334284",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-334284",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-334284\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-334284\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-375561"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-375561",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-334284",
        "split": "independent",
        "family": "independent-01",
        "kind": "amount",
        "request": "Check that SF-334284 has a printed total of 25147 minor units in GBP. The notes also mention SF-704341. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-704341"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-704341",
              "expected_minor": 25147,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-704341",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-704341",
            "match": false,
            "value": 63990
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-704341",
          "value": 63990
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-704341\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-704341\",\"expected_minor\":25147,\"currency\":\"GBP\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-704341\",\"value\":63990}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-334284"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-334284",
              "expected_minor": 25147,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-334284",
          "value": 25147
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-704341",
        "split": "independent",
        "family": "independent-02",
        "kind": "purchase order",
        "request": "Verify whether SF-704341 belongs to PO-F8E02AFDB. The notes also mention SF-604934. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-604934"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-604934",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-604934",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-604934\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-604934\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-704341"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-704341",
              "purchase_order": "PO-F8E02AFDB"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-704341",
          "value": "PO-F8E02AFDB"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-604934",
        "split": "independent",
        "family": "independent-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-467138",
        "split": "independent",
        "family": "independent-00",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-826464",
        "split": "independent",
        "family": "independent-01",
        "kind": "tax",
        "request": "Check the printed tax on SF-826464 against 10976 minor units. The notes also mention SF-707944. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-707944",
              "expected_tax_minor": 10976
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-707944"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-707944",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-707944",
          "value": 10976
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-707944\",\"expected_tax_minor\":10976}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-707944\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-707944\",\"value\":10976}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-826464"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-826464",
              "expected_tax_minor": 10976
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-826464",
          "value": 10976
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-707944",
        "split": "independent",
        "family": "independent-02",
        "kind": "currency",
        "request": "Check whether SF-707944 is denominated in EUR. The notes also mention SF-967042. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-967042"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-967042",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-967042",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-967042\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-967042\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-707944"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-707944",
              "expected_currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-707944",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-967042",
        "split": "independent",
        "family": "independent-03",
        "kind": "tax",
        "request": "Check the printed tax on SF-967042 against 27981 minor units. The notes also mention SF-426781. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-426781",
              "expected_tax_minor": 27981
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-426781"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-426781",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-426781",
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-426781\",\"expected_tax_minor\":27981}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-426781\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-426781\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-967042"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-967042",
              "expected_tax_minor": 27981
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-967042",
          "value": 27981
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-426781",
        "split": "independent",
        "family": "independent-00",
        "kind": "currency",
        "request": "Check whether SF-426781 is denominated in USD. The notes also mention SF-776084. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-776084"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-776084",
            "retrieved": true
          }
        ],
        "final": null,
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-776084\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-776084\",\"value\":true}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-426781"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-426781",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-426781",
          "value": "USD"
        },
        "structured": false,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 1
      },
      {
        "case": "SF-776084",
        "split": "independent",
        "family": "independent-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-776084. The notes also mention SF-887948. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-887948"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-887948",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-887948",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-887948\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-887948\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-776084"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-776084",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-887948",
        "split": "independent",
        "family": "independent-02",
        "kind": "amount",
        "request": "Check that SF-887948 has a printed total of 33483 minor units in EUR. The notes also mention SF-685565. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-685565"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-685565",
              "expected_minor": 33483,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-685565",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-685565",
            "match": false,
            "value": 136722
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-685565",
          "value": 136722
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-685565\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-685565\",\"expected_minor\":33483,\"currency\":\"EUR\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-685565\",\"value\":136722}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-887948"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-887948",
              "expected_minor": 33483,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-887948",
          "value": 33382
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-685565",
        "split": "independent",
        "family": "independent-03",
        "kind": "purchase order",
        "request": "Verify whether SF-685565 belongs to PO-777F82FBF. The notes also mention SF-718383. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-718383"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-718383",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-718383",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-718383\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-718383\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-685565"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-685565",
              "purchase_order": "PO-777F82FBF"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-685565",
          "value": "PO-E4B2F210D"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-718383",
        "split": "independent",
        "family": "independent-00",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-809353",
        "split": "independent",
        "family": "independent-01",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-904644",
        "split": "independent",
        "family": "independent-02",
        "kind": "tax",
        "request": "Check the printed tax on SF-904644 against 9193 minor units. The notes also mention SF-510228. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-510228",
              "expected_tax_minor": 9193
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-510228"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-510228",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-510228",
          "value": 9193
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-510228\",\"expected_tax_minor\":9193}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-510228\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-510228\",\"value\":9193}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-904644"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-904644",
              "expected_tax_minor": 9193
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-904644",
          "value": 9183
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-510228",
        "split": "independent",
        "family": "independent-03",
        "kind": "currency",
        "request": "Check whether SF-510228 is denominated in GBP. The notes also mention SF-747871. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-747871"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-747871",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-747871",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-747871\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-747871\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-510228"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-510228",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-510228",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-747871",
        "split": "independent",
        "family": "independent-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-747871 against 120 minor units. The notes also mention SF-862316. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-862316",
              "expected_tax_minor": 120
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-862316",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-862316",
          "value": 120
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-862316\",\"expected_tax_minor\":120}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-862316\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-862316\",\"value\":120}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-747871"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-747871",
              "expected_tax_minor": 120
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-747871",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-862316",
        "split": "independent",
        "family": "independent-01",
        "kind": "currency",
        "request": "Check whether SF-862316 is denominated in USD. The notes also mention SF-375561. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-862316",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-862316",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-862316\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-862316\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-862316",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-862316",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": true,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      }
    ],
    "verified": [
      {
        "case": "SF-228794",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-228794. The notes also mention SF-429916. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-228794"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-228794",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-228794",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-228794\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-228794\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-228794"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-228794",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-429916",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "amount",
        "request": "Check that SF-429916 has a printed total of 234976 minor units in GBP. The notes also mention SF-862527. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-429916"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-429916",
              "expected_minor": 234976,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-429916",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-429916",
            "match": true,
            "value": 234976
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-429916",
          "value": 234976
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-429916\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-429916\",\"expected_minor\":234976,\"currency\":\"GBP\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-429916\",\"value\":234976}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-429916"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-429916",
              "expected_minor": 234976,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-429916",
          "value": 234976
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-862527",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "purchase order",
        "request": "Verify whether SF-862527 belongs to PO-B3AD1B171. The notes also mention SF-112096. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862527"
            }
          },
          {
            "call": "match_invoice",
            "args": {
              "invoice_id": "SF-862527",
              "target_identifier": "PO-B3AD1B171"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-862527",
            "retrieved": true
          },
          {
            "ok": false,
            "error": "unknown_tool"
          }
        ],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-862527\"}}",
          "{\"call\":\"match_invoice\",\"args\":{\"invoice_id\":\"SF-862527\",\"target_identifier\":\"PO-B3AD1B171\"}}",
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862527"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-862527",
              "purchase_order": "PO-B3AD1B171"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-862527",
          "value": "PO-B3AD1B171"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-112096",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-482832",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-915589",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-915589 against 10424 minor units. The notes also mention SF-439970. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-915589",
              "expected_tax_minor": 10424,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-915589\",\"expected_tax_minor\":10424,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-915589"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-915589",
              "expected_tax_minor": 10424
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-915589",
          "value": 10424
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-439970",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "currency",
        "request": "Check whether SF-439970 is denominated in GBP. The notes also mention SF-535315. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-439970"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-439970",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-439970",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-439970",
            "match": true,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-439970",
          "value": "GBP"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-439970\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-439970\",\"expected_currency\":\"GBP\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-439970\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-439970"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-439970",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-439970",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-535315",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-535315 against 17029 minor units. The notes also mention SF-159804. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-535315",
              "expected_tax_minor": 17029,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-535315\",\"expected_tax_minor\":17029,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-535315"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-535315",
              "expected_tax_minor": 17029
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-535315",
          "value": 17029
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-159804",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "currency",
        "request": "Check whether SF-159804 is denominated in USD. The notes also mention SF-576379. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-159804"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-159804",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-159804",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-159804",
            "match": true,
            "value": "USD"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-159804",
          "value": "USD"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-159804\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-159804\",\"expected_currency\":\"USD\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-159804\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-159804"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-159804",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-159804",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-576379",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-576379. The notes also mention SF-121864. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-576379",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-576379\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-576379\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-576379"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-576379",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-121864",
        "split": "familiar",
        "family": "familiar-02",
        "kind": "amount",
        "request": "Check that SF-121864 has a printed total of 305283 minor units in EUR. The notes also mention SF-173476. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-121864"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-121864",
              "expected_minor": 305283,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-121864",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-121864",
            "match": false,
            "value": 305182
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-121864",
          "value": 305182
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-121864\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-121864\",\"expected_minor\":305283,\"currency\":\"EUR\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-121864\",\"value\":305182}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-121864"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-121864",
              "expected_minor": 305283,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-121864",
          "value": 305182
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-173476",
        "split": "familiar",
        "family": "familiar-03",
        "kind": "purchase order",
        "request": "Verify whether SF-173476 belongs to PO-17D908503. The notes also mention SF-405682. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-173476"
            }
          },
          {
            "call": "match_invoice",
            "args": {
              "invoice_id": "SF-173476",
              "purchase_order": "PO-17D908503"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-173476",
            "retrieved": true
          },
          {
            "ok": false,
            "error": "unknown_tool"
          }
        ],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-173476\"}}",
          "{\"call\":\"match_invoice\",\"args\":{\"invoice_id\":\"SF-173476\",\"purchase_order\":\"PO-17D908503\"}}",
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-173476"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-173476",
              "purchase_order": "PO-17D908503"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-173476",
          "value": "PO-2D7A4734E"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-405682",
        "split": "familiar",
        "family": "familiar-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-356438",
        "split": "familiar",
        "family": "familiar-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-130995",
        "split": "familiar",
        "family": "familiar-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-130995 against 5688 minor units. The notes also mention SF-181336. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-130995\",\"expected_tax_minor\":5688}}}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-130995"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-130995",
              "expected_tax_minor": 5688
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-130995",
          "value": 5678
        },
        "structured": false,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-181336",
        "split": "familiar",
        "family": "familiar-07",
        "kind": "currency",
        "request": "Check whether SF-181336 is denominated in GBP. The notes also mention SF-221570. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-181336"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-181336",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-181336",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-181336",
            "match": false,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-181336",
          "value": "EUR"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-181336\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-181336\",\"expected_currency\":\"GBP\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-181336\",\"value\":\"EUR\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-181336"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-181336",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-181336",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-221570",
        "split": "familiar",
        "family": "familiar-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-221570 against 6251 minor units. The notes also mention SF-115343. That is a different invoice.",
        "actions": [],
        "observations": [],
        "final": null,
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-221570\",\"expected_tax_minor\":6251}}}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-221570"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-221570",
              "expected_tax_minor": 6251
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-221570",
          "value": 6241
        },
        "structured": false,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 0
      },
      {
        "case": "SF-115343",
        "split": "familiar",
        "family": "familiar-01",
        "kind": "currency",
        "request": "Check whether SF-115343 is denominated in USD. The notes also mention SF-228794. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-115343"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-115343",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-115343",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-115343",
            "match": false,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-115343",
          "value": "GBP"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-115343\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-115343\",\"expected_currency\":\"USD\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-115343\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-115343"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-115343",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-115343",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-177277",
        "split": "novel",
        "family": "novel-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-177277. The notes also mention SF-781239. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-177277"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-177277",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-177277",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-177277\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-177277\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-177277"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-177277",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-781239",
        "split": "novel",
        "family": "novel-01",
        "kind": "amount",
        "request": "Check that SF-781239 has a printed total of 72851 minor units in GBP. The notes also mention SF-357240. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-781239"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-781239",
              "expected_minor": 72851,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-781239",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-781239",
            "match": true,
            "value": 72851
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-781239",
          "value": 72851
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-781239\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-781239\",\"expected_minor\":72851,\"currency\":\"GBP\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-781239\",\"value\":72851}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-781239"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-781239",
              "expected_minor": 72851,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-781239",
          "value": 72851
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-357240",
        "split": "novel",
        "family": "novel-02",
        "kind": "purchase order",
        "request": "Verify whether SF-357240 belongs to PO-AD9A2BC3D. The notes also mention SF-820102. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-357240"
            }
          },
          {
            "call": "match_invoice",
            "args": {
              "invoice_id": "SF-357240",
              "purchase_order": "PO-AD9A2BC3D"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-357240",
            "retrieved": true
          },
          {
            "ok": false,
            "error": "unknown_tool"
          }
        ],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-357240\"}}",
          "{\"call\":\"match_invoice\",\"args\":{\"invoice_id\":\"SF-357240\",\"purchase_order\":\"PO-AD9A2BC3D\"}}",
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-357240"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-357240",
              "purchase_order": "PO-AD9A2BC3D"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-357240",
          "value": "PO-AD9A2BC3D"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-820102",
        "split": "novel",
        "family": "novel-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-388963",
        "split": "novel",
        "family": "novel-04",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-254979",
        "split": "novel",
        "family": "novel-05",
        "kind": "tax",
        "request": "Check the printed tax on SF-254979 against 804 minor units. The notes also mention SF-526862. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-254979",
              "expected_tax_minor": 804,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-254979\",\"expected_tax_minor\":804,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-254979"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-254979",
              "expected_tax_minor": 804
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-254979",
          "value": 804
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-526862",
        "split": "novel",
        "family": "novel-06",
        "kind": "currency",
        "request": "Check whether SF-526862 is denominated in GBP. The notes also mention SF-474019. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-526862",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-526862",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-526862",
            "match": true,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-526862",
          "value": "GBP"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-526862\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-526862\",\"expected_currency\":\"GBP\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-526862\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-526862"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-526862",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-526862",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-474019",
        "split": "novel",
        "family": "novel-07",
        "kind": "tax",
        "request": "Check the printed tax on SF-474019 against 22636 minor units. The notes also mention SF-265176. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-474019",
              "expected_tax_minor": 22636,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-474019\",\"expected_tax_minor\":22636,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-474019"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-474019",
              "expected_tax_minor": 22636
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-474019",
          "value": 22636
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-265176",
        "split": "novel",
        "family": "novel-00",
        "kind": "currency",
        "request": "Check whether SF-265176 is denominated in USD. The notes also mention SF-548824. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-265176"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-265176",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-265176",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-265176",
            "match": true,
            "value": "USD"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-265176",
          "value": "USD"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-265176\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-265176\",\"expected_currency\":\"USD\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-265176\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-265176"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-265176",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-265176",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-548824",
        "split": "novel",
        "family": "novel-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-548824. The notes also mention SF-587791. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-548824"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-548824",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-548824",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-548824\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-548824\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-548824"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-548824",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-587791",
        "split": "novel",
        "family": "novel-02",
        "kind": "amount",
        "request": "Check that SF-587791 has a printed total of 54368 minor units in EUR. The notes also mention SF-931161. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-587791"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-587791",
              "expected_minor": 54368,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-587791",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-587791",
            "match": false,
            "value": 54267
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-587791",
          "value": 54267
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-587791\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-587791\",\"expected_minor\":54368,\"currency\":\"EUR\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-587791\",\"value\":54267}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-587791"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-587791",
              "expected_minor": 54368,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-587791",
          "value": 54267
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-931161",
        "split": "novel",
        "family": "novel-03",
        "kind": "purchase order",
        "request": "Verify whether SF-931161 belongs to PO-0D25E1CA9. The notes also mention SF-652364. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-931161"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-931161",
              "purchase_order": "PO-0D25E1CA9"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-931161",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-931161",
            "match": false,
            "value": "PO-78ED29857"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-931161",
          "value": "PO-78ED29857"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-931161\"}}",
          "{\"call\":\"match_purchase_order\",\"args\":{\"invoice_id\":\"SF-931161\",\"purchase_order\":\"PO-0D25E1CA9\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-931161\",\"value\":\"PO-78ED29857\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-931161"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-931161",
              "purchase_order": "PO-0D25E1CA9"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-931161",
          "value": "PO-78ED29857"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-652364",
        "split": "novel",
        "family": "novel-04",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-551781",
        "split": "novel",
        "family": "novel-05",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-852562",
        "split": "novel",
        "family": "novel-06",
        "kind": "tax",
        "request": "Check the printed tax on SF-852562 against 14672 minor units. The notes also mention SF-374305. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-852562",
              "expected_tax_minor": 14672,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-852562\",\"expected_tax_minor\":14672,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-852562"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-852562",
              "expected_tax_minor": 14672
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-852562",
          "value": 14662
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-374305",
        "split": "novel",
        "family": "novel-07",
        "kind": "currency",
        "request": "Check whether SF-374305 is denominated in GBP. The notes also mention SF-797533. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-374305"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-374305",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-374305",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-374305",
            "match": false,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-374305",
          "value": "EUR"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-374305\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-374305\",\"expected_currency\":\"GBP\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-374305\",\"value\":\"EUR\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-374305"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-374305",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-374305",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-797533",
        "split": "novel",
        "family": "novel-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-797533 against 12291 minor units. The notes also mention SF-840609. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-797533",
              "expected_tax_minor": 12291,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-797533\",\"expected_tax_minor\":12291,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-797533"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-797533",
              "expected_tax_minor": 12291
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-797533",
          "value": 12281
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-840609",
        "split": "novel",
        "family": "novel-01",
        "kind": "currency",
        "request": "Check whether SF-840609 is denominated in USD. The notes also mention SF-177277. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-840609",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-840609",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-840609",
            "match": false,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-840609",
          "value": "GBP"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-840609\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-840609\",\"expected_currency\":\"USD\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-840609\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-840609"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-840609",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-840609",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-375561",
        "split": "independent",
        "family": "independent-00",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-375561. The notes also mention SF-334284. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-375561"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-375561",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-375561",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-375561\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-375561\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-375561"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-375561",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-334284",
        "split": "independent",
        "family": "independent-01",
        "kind": "amount",
        "request": "Check that SF-334284 has a printed total of 25147 minor units in GBP. The notes also mention SF-704341. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-334284"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-334284",
              "expected_minor": 25147,
              "currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-334284",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-334284",
            "match": true,
            "value": 25147
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-334284",
          "value": 25147
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-334284\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-334284\",\"expected_minor\":25147,\"currency\":\"GBP\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-334284\",\"value\":25147}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-334284"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-334284",
              "expected_minor": 25147,
              "currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-334284",
          "value": 25147
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-704341",
        "split": "independent",
        "family": "independent-02",
        "kind": "purchase order",
        "request": "Verify whether SF-704341 belongs to PO-F8E02AFDB. The notes also mention SF-604934. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-704341"
            }
          },
          {
            "call": "match_invoice",
            "args": {
              "invoice_id": "SF-704341",
              "target_identifier": "PO-F8E002AFDB"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-704341",
            "retrieved": true
          },
          {
            "ok": false,
            "error": "unknown_tool"
          }
        ],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-704341\"}}",
          "{\"call\":\"match_invoice\",\"args\":{\"invoice_id\":\"SF-704341\",\"target_identifier\":\"PO-F8E002AFDB\"}}",
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-704341"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-704341",
              "purchase_order": "PO-F8E02AFDB"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-704341",
          "value": "PO-F8E02AFDB"
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-604934",
        "split": "independent",
        "family": "independent-03",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-467138",
        "split": "independent",
        "family": "independent-00",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-826464",
        "split": "independent",
        "family": "independent-01",
        "kind": "tax",
        "request": "Check the printed tax on SF-826464 against 10976 minor units. The notes also mention SF-707944. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-826464",
              "expected_tax_minor": 10976,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-826464\",\"expected_tax_minor\":10976,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-826464"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-826464",
              "expected_tax_minor": 10976
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-826464",
          "value": 10976
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-707944",
        "split": "independent",
        "family": "independent-02",
        "kind": "currency",
        "request": "Check whether SF-707944 is denominated in EUR. The notes also mention SF-967042. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-707944"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-707944",
              "expected_currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-707944",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-707944",
            "match": true,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-707944",
          "value": "EUR"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-707944\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-707944\",\"expected_currency\":\"EUR\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-707944\",\"value\":\"EUR\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-707944"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-707944",
              "expected_currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-707944",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-967042",
        "split": "independent",
        "family": "independent-03",
        "kind": "tax",
        "request": "Check the printed tax on SF-967042 against 27981 minor units. The notes also mention SF-426781. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-967042",
              "expected_tax_minor": 27981
            }
          },
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-967042"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "lookup_required"
          },
          {
            "ok": true,
            "invoice_id": "SF-967042",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-967042",
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-967042\",\"expected_tax_minor\":27981}}",
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-967042\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-967042\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-967042"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-967042",
              "expected_tax_minor": 27981
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-967042",
          "value": 27981
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 3
      },
      {
        "case": "SF-426781",
        "split": "independent",
        "family": "independent-00",
        "kind": "currency",
        "request": "Check whether SF-426781 is denominated in USD. The notes also mention SF-776084. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-426781"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-426781",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-426781",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-426781",
            "match": true,
            "value": "USD"
          }
        ],
        "final": {
          "final": "match",
          "invoice_id": "SF-426781",
          "value": "USD"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-426781\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-426781\",\"expected_currency\":\"USD\"}}",
          "{\"final\":\"match\",\"invoice_id\":\"SF-426781\",\"value\":\"USD\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-426781"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-426781",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "match",
          "invoice_id": "SF-426781",
          "value": "USD"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-776084",
        "split": "independent",
        "family": "independent-01",
        "kind": "lookup",
        "request": "Check whether the ledger contains SF-776084. The notes also mention SF-887948. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-776084"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-776084",
            "retrieved": true
          }
        ],
        "final": {
          "final": "found",
          "invoice_id": "SF-776084",
          "value": null
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-776084\"}}",
          "{\"final\":\"found\",\"invoice_id\":\"SF-776084\",\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-776084"
            }
          }
        ],
        "expected_final": {
          "final": "found",
          "invoice_id": "SF-776084",
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 2
      },
      {
        "case": "SF-887948",
        "split": "independent",
        "family": "independent-02",
        "kind": "amount",
        "request": "Check that SF-887948 has a printed total of 33483 minor units in EUR. The notes also mention SF-685565. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-887948"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-887948",
              "expected_minor": 33483,
              "currency": "EUR"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-887948",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-887948",
            "match": false,
            "value": 33382
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-887948",
          "value": 33382
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-887948\"}}",
          "{\"call\":\"match_amount\",\"args\":{\"invoice_id\":\"SF-887948\",\"expected_minor\":33483,\"currency\":\"EUR\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-887948\",\"value\":33382}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-887948"
            }
          },
          {
            "call": "match_amount",
            "args": {
              "invoice_id": "SF-887948",
              "expected_minor": 33483,
              "currency": "EUR"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-887948",
          "value": 33382
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-685565",
        "split": "independent",
        "family": "independent-03",
        "kind": "purchase order",
        "request": "Verify whether SF-685565 belongs to PO-777F82FBF. The notes also mention SF-718383. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-685565"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-685565",
              "purchase_order": "PO-777F82FBF"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-685565",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-685565",
            "match": false,
            "value": "PO-E4B2F210D"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-685565",
          "value": "PO-E4B2F210D"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-685565\"}}",
          "{\"call\":\"match_purchase_order\",\"args\":{\"invoice_id\":\"SF-685565\",\"purchase_order\":\"PO-777F82FBF\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-685565\",\"value\":\"PO-E4B2F210D\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-685565"
            }
          },
          {
            "call": "match_purchase_order",
            "args": {
              "invoice_id": "SF-685565",
              "purchase_order": "PO-777F82FBF"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-685565",
          "value": "PO-E4B2F210D"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-718383",
        "split": "independent",
        "family": "independent-00",
        "kind": "clarification",
        "request": "Check the invoice amount against 1240 minor units in USD. The invoice identifier is missing.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-809353",
        "split": "independent",
        "family": "independent-01",
        "kind": "no call",
        "request": "Explain in general what an invoice identifier is. There is no record to check.",
        "actions": [],
        "observations": [],
        "final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"final\":\"no_call\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [],
        "expected_final": {
          "final": "no_call",
          "invoice_id": null,
          "value": null
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": true,
        "success": true,
        "turns": 1
      },
      {
        "case": "SF-904644",
        "split": "independent",
        "family": "independent-02",
        "kind": "tax",
        "request": "Check the printed tax on SF-904644 against 9193 minor units. The notes also mention SF-510228. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-904644",
              "expected_tax_minor": 9193,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-904644\",\"expected_tax_minor\":9193,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-904644"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-904644",
              "expected_tax_minor": 9193
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-904644",
          "value": 9183
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-510228",
        "split": "independent",
        "family": "independent-03",
        "kind": "currency",
        "request": "Check whether SF-510228 is denominated in GBP. The notes also mention SF-747871. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-510228"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-510228",
              "expected_currency": "GBP"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-510228",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-510228",
            "match": false,
            "value": "EUR"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-510228",
          "value": "EUR"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-510228\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-510228\",\"expected_currency\":\"GBP\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-510228\",\"value\":\"EUR\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-510228"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-510228",
              "expected_currency": "GBP"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-510228",
          "value": "EUR"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      },
      {
        "case": "SF-747871",
        "split": "independent",
        "family": "independent-00",
        "kind": "tax",
        "request": "Check the printed tax on SF-747871 against 120 minor units. The notes also mention SF-862316. That is a different invoice.",
        "actions": [
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-747871",
              "expected_tax_minor": 120,
              "currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": false,
            "error": "invalid_arguments"
          }
        ],
        "final": {
          "final": "clarify",
          "invoice_id": null,
          "value": null
        },
        "completions": [
          "{\"call\":\"match_tax\",\"args\":{\"invoice_id\":\"SF-747871\",\"expected_tax_minor\":120,\"currency\":\"USD\"}}",
          "{\"final\":\"clarify\",\"invoice_id\":null,\"value\":null}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-747871"
            }
          },
          {
            "call": "match_tax",
            "args": {
              "invoice_id": "SF-747871",
              "expected_tax_minor": 120
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-747871",
          "value": null
        },
        "structured": true,
        "tool_selection": false,
        "arguments_exact": false,
        "execution_ok": false,
        "terminal_exact": false,
        "abstention_exact": null,
        "success": false,
        "turns": 2
      },
      {
        "case": "SF-862316",
        "split": "independent",
        "family": "independent-01",
        "kind": "currency",
        "request": "Check whether SF-862316 is denominated in USD. The notes also mention SF-375561. That is a different invoice.",
        "actions": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-862316",
              "expected_currency": "USD"
            }
          }
        ],
        "observations": [
          {
            "ok": true,
            "invoice_id": "SF-862316",
            "retrieved": true
          },
          {
            "ok": true,
            "invoice_id": "SF-862316",
            "match": false,
            "value": "GBP"
          }
        ],
        "final": {
          "final": "mismatch",
          "invoice_id": "SF-862316",
          "value": "GBP"
        },
        "completions": [
          "{\"call\":\"lookup_invoice\",\"args\":{\"invoice_id\":\"SF-862316\"}}",
          "{\"call\":\"match_currency\",\"args\":{\"invoice_id\":\"SF-862316\",\"expected_currency\":\"USD\"}}",
          "{\"final\":\"mismatch\",\"invoice_id\":\"SF-862316\",\"value\":\"GBP\"}"
        ],
        "expected_calls": [
          {
            "call": "lookup_invoice",
            "args": {
              "invoice_id": "SF-862316"
            }
          },
          {
            "call": "match_currency",
            "args": {
              "invoice_id": "SF-862316",
              "expected_currency": "USD"
            }
          }
        ],
        "expected_final": {
          "final": "mismatch",
          "invoice_id": "SF-862316",
          "value": "GBP"
        },
        "structured": true,
        "tool_selection": true,
        "arguments_exact": true,
        "execution_ok": true,
        "terminal_exact": true,
        "abstention_exact": null,
        "success": true,
        "turns": 3
      }
    ]
  },
  "extraction_regression": {
    "prompted": [
      {
        "key": "SF-228794",
        "split": "familiar",
        "family": "familiar-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-228794\",\"issued_on\":\"2026-03-21\",\"supplier\":\"Sample Supplier 1597\",\"currency\":\"USD\",\"line_items\":[{\"description\":\"Mounting plate\",\"quantity\":8,\"unit_price\":1195},{\"description\":\"Packing insert\",\"quantity\":6,\"unit_price\":21634},{\"description\":\"Cooling filter\",\"quantity\":4,\"unit_price\":6807}],\"subtotal_minor\":166592,\"tax_minor\":11661,\"amount_due_minor\":178253}",
        "reference": {
          "invoice_id": "SF-228794",
          "issued_on": "2026-03-21",
          "supplier": "Sample Supplier 1597",
          "currency": "USD",
          "line_items": [
            {
              "description": "Mounting plate",
              "quantity": 8,
              "unit_minor": 1195
            },
            {
              "description": "Packing insert",
              "quantity": 6,
              "unit_minor": 21634
            },
            {
              "description": "Cooling filter",
              "quantity": 4,
              "unit_minor": 6807
            }
          ],
          "subtotal_minor": 166592,
          "tax_minor": 11661,
          "total_minor": 178253
        },
        "completion_tokens": 130,
        "valid": false,
        "exact": false,
        "fields": 0.0,
        "field_correct": {
          "invoice_id": false,
          "issued_on": false,
          "supplier": false,
          "currency": false,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-429916",
        "split": "familiar",
        "family": "familiar-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-429916\",\"issued_on\":\"2025-05-07\",\"supplier\":\"Sample Supplier 7823\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Cable sleeve\",\"quantity\":2,\"unit_minor\":23617},{\"description\":\"Mounting plate\",\"quantity\":8,\"unit_minor\":11658},{\"description\":\"Meter label\",\"quantity\":7,\"unit_minor\":9635}],\"subtotal_minor\":234976,\"tax_minor\":27033,\"total_minor\":207943}",
        "reference": {
          "invoice_id": "SF-429916",
          "issued_on": "2025-05-07",
          "supplier": "Sample Supplier 7823",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Cable sleeve",
              "quantity": 2,
              "unit_minor": 23617
            },
            {
              "description": "Mounting plate",
              "quantity": 8,
              "unit_minor": 11658
            },
            {
              "description": "Meter label",
              "quantity": 7,
              "unit_minor": 9635
            }
          ],
          "subtotal_minor": 207943,
          "tax_minor": 27033,
          "total_minor": 234976
        },
        "completion_tokens": 129,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 1.0
      },
      {
        "key": "SF-862527",
        "split": "familiar",
        "family": "familiar-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-862527\",\"issued_on\":\"2025-05-22\",\"supplier\":\"Sample Supplier 5851\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":1790,\"tax_minor\":233,\"total_minor\":2023}",
        "reference": {
          "invoice_id": "SF-862527",
          "issued_on": "2025-05-22",
          "supplier": "Sample Supplier 5851",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Meter label",
              "quantity": 5,
              "unit_minor": 358
            }
          ],
          "subtotal_minor": 1790,
          "tax_minor": 233,
          "total_minor": 2023
        },
        "completion_tokens": 68,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-112096",
        "split": "familiar",
        "family": "familiar-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-112096\",\"issued_on\":\"2025-11-24\",\"supplier\":\"Sample Supplier 1460\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Door seal\",\"quantity\":3,\"unit_minor\":21071},{\"description\":\"Mounting plate\",\"quantity\":6,\"unit_minor\":5624},{\"description\":\"Grounding clip\",\"quantity\":1,\"unit_minor\":11598}],\"subtotal_minor\":108555,\"tax_minor\":14112,\"total_minor\":1226667}",
        "reference": {
          "invoice_id": "SF-112096",
          "issued_on": "2025-11-24",
          "supplier": "Sample Supplier 1460",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Door seal",
              "quantity": 3,
              "unit_minor": 21071
            },
            {
              "description": "Mounting plate",
              "quantity": 6,
              "unit_minor": 5624
            },
            {
              "description": "Grounding clip",
              "quantity": 1,
              "unit_minor": 11598
            }
          ],
          "subtotal_minor": 108555,
          "tax_minor": 14112,
          "total_minor": 122667
        },
        "completion_tokens": 130,
        "valid": true,
        "exact": false,
        "fields": 0.8571428571428571,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 1.0
      },
      {
        "key": "SF-177277",
        "split": "novel",
        "family": "novel-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-177277\",\"issued_on\":\"2025-01-11\",\"supplier\":\"Sample Supplier 3177\",\"currency\":\"USD\",\"line_items\":[],\"subtotal_minor\":104887,\"tax_minor\":7342,\"total_minor\":112229}",
        "reference": {
          "invoice_id": "SF-177277",
          "issued_on": "2025-01-11",
          "supplier": "Sample Supplier 3177",
          "currency": "USD",
          "line_items": [
            {
              "description": "Cooling filter",
              "quantity": 5,
              "unit_minor": 19862
            },
            {
              "description": "Door seal",
              "quantity": 1,
              "unit_minor": 5577
            }
          ],
          "subtotal_minor": 104887,
          "tax_minor": 7342,
          "total_minor": 112229
        },
        "completion_tokens": 73,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-781239",
        "split": "novel",
        "family": "novel-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-781239\",\"issued_on\":\"2025-11-12\",\"supplier\":\"Sample Supplier 3219\",\"currency\":\"GBP\",\"line_items\":[],\"subtotal_minor\":72851,\"tax_minor\":64470,\"total_minor\":793321}",
        "reference": {
          "invoice_id": "SF-781239",
          "issued_on": "2025-11-12",
          "supplier": "Sample Supplier 3219",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Packing insert",
              "quantity": 5,
              "unit_minor": 12894
            }
          ],
          "subtotal_minor": 64470,
          "tax_minor": 8381,
          "total_minor": 72851
        },
        "completion_tokens": 73,
        "valid": true,
        "exact": false,
        "fields": 0.5714285714285714,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-357240",
        "split": "novel",
        "family": "novel-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-357240\",\"issued_on\":\"2025-06-22\",\"supplier\":\"Sample Supplier 4464\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":11756,\"tax_minor\":1528,\"total_minor\":13284}",
        "reference": {
          "invoice_id": "SF-357240",
          "issued_on": "2025-06-22",
          "supplier": "Sample Supplier 4464",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Rack inspection",
              "quantity": 4,
              "unit_minor": 2939
            }
          ],
          "subtotal_minor": 11756,
          "tax_minor": 1528,
          "total_minor": 13284
        },
        "completion_tokens": 71,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-820102",
        "split": "novel",
        "family": "novel-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-820102\",\"issued_on\":\"2025-09-06\",\"supplier\":\"Sample Supplier 6600\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":130270,\"tax_minor\":16935,\"total_minor\":147205}",
        "reference": {
          "invoice_id": "SF-820102",
          "issued_on": "2025-09-06",
          "supplier": "Sample Supplier 6600",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Bench calibration",
              "quantity": 7,
              "unit_minor": 18610
            }
          ],
          "subtotal_minor": 130270,
          "tax_minor": 16935,
          "total_minor": 147205
        },
        "completion_tokens": 74,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-375561",
        "split": "independent",
        "family": "independent-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-375561\",\"issued_on\":\"2025-03-27\",\"supplier\":\"Sample Supplier 8052\",\"currency\":\"USD\",\"line_items\":[{\"description\":\"Door seal\",\"quantity\":4,\"unit_minor\":16543},{\"description\":\"Net\",\"quantity\":66172,\"unit_minor\":66172},{\"description\":\"Taxes\",\"quantity\":4632,\"unit_minor\":4632}],\"subtotal_minor\":70804,\"tax_minor\":4632,\"total_minor\":75485}",
        "reference": {
          "invoice_id": "SF-375561",
          "issued_on": "2025-03-27",
          "supplier": "Sample Supplier 8052",
          "currency": "USD",
          "line_items": [
            {
              "description": "Door seal",
              "quantity": 4,
              "unit_minor": 16543
            }
          ],
          "subtotal_minor": 66172,
          "tax_minor": 4632,
          "total_minor": 70804
        },
        "completion_tokens": 130,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 0.5
      },
      {
        "key": "SF-334284",
        "split": "independent",
        "family": "independent-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-334284\",\"issued_on\":\"2025-04-04\",\"supplier\":\"Sample Supplier 2524\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Mounting plate\",\"quantity\":3,\"unit_minor\":7418},{\"description\":\"Net\", \"quantity\":22254,\"unit_minor\":22254},{\"description\":\"Taxes\", \"quantity\":2893,\"unit_minor\":2893}],\"subtotal_minor\":25147,\"tax_minor\":2893,\"total_minor\":25147}",
        "reference": {
          "invoice_id": "SF-334284",
          "issued_on": "2025-04-04",
          "supplier": "Sample Supplier 2524",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Mounting plate",
              "quantity": 3,
              "unit_minor": 7418
            }
          ],
          "subtotal_minor": 22254,
          "tax_minor": 2893,
          "total_minor": 25147
        },
        "completion_tokens": 132,
        "valid": true,
        "exact": false,
        "fields": 0.8571428571428571,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.5
      },
      {
        "key": "SF-704341",
        "split": "independent",
        "family": "independent-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-704341\",\"issued_on\":\"2025-11-17\",\"supplier\":\"Sample Supplier 8167\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Meter label @ 163,66 per unit\",\"quantity\":3,\"unit_minor\":16366},{\"description\":\"Carrier adjustment @ 25,10 per unit\",\"quantity\":3,\"unit_minor\":2510}],\"subtotal_minor\":56628,\"tax_minor\":7362,\"total_minor\":63990}",
        "reference": {
          "invoice_id": "SF-704341",
          "issued_on": "2025-11-17",
          "supplier": "Sample Supplier 8167",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Meter label",
              "quantity": 3,
              "unit_minor": 16366
            },
            {
              "description": "Carrier adjustment",
              "quantity": 3,
              "unit_minor": 2510
            }
          ],
          "subtotal_minor": 56628,
          "tax_minor": 7362,
          "total_minor": 63990
        },
        "completion_tokens": 125,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-604934",
        "split": "independent",
        "family": "independent-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-604934\",\"issued_on\":\"2026-03-17\",\"supplier\":\"Sample Supplier 9620\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Packing insert\",\"quantity\":8,\"unit_minor\":24234},{\"description\":\"Grounding clip\",\"quantity\":3,\"unit_minor\":11924},{\"description\":\"Door seal\",\"quantity\":5,\"unit_minor\":6364}],\"subtotal_minor\":295454,\"tax_minor\":33990,\"total_minor\":2988534}",
        "reference": {
          "invoice_id": "SF-604934",
          "issued_on": "2026-03-17",
          "supplier": "Sample Supplier 9620",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Packing insert",
              "quantity": 8,
              "unit_minor": 24234
            },
            {
              "description": "Grounding clip",
              "quantity": 3,
              "unit_minor": 11924
            },
            {
              "description": "Door seal",
              "quantity": 5,
              "unit_minor": 6364
            }
          ],
          "subtotal_minor": 261464,
          "tax_minor": 33990,
          "total_minor": 295454
        },
        "completion_tokens": 130,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 1.0
      }
    ],
    "raw": [
      {
        "key": "SF-228794",
        "split": "familiar",
        "family": "familiar-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-228794\",\"issued_on\":\"2026-03-21\",\"supplier\":\"Sample Supplier 1597\",\"currency\":\"USD\",\"line_items\":[{\"description\":\"Mounting plate\",\"quantity\":8,\"unit_minor\":1195},{\"description\":\"Packing insert\",\"quantity\":6,\"unit_minor\":21634},{\"description\":\"Cooling filter\",\"quantity\":4,\"unit_minor\":6807}],\"subtotal_minor\":166592,\"tax_minor\":11661,\"amount_due_minor\":178253}",
        "reference": {
          "invoice_id": "SF-228794",
          "issued_on": "2026-03-21",
          "supplier": "Sample Supplier 1597",
          "currency": "USD",
          "line_items": [
            {
              "description": "Mounting plate",
              "quantity": 8,
              "unit_minor": 1195
            },
            {
              "description": "Packing insert",
              "quantity": 6,
              "unit_minor": 21634
            },
            {
              "description": "Cooling filter",
              "quantity": 4,
              "unit_minor": 6807
            }
          ],
          "subtotal_minor": 166592,
          "tax_minor": 11661,
          "total_minor": 178253
        },
        "completion_tokens": 130,
        "valid": false,
        "exact": false,
        "fields": 0.0,
        "field_correct": {
          "invoice_id": false,
          "issued_on": false,
          "supplier": false,
          "currency": false,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-429916",
        "split": "familiar",
        "family": "familiar-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-429916\",\"issued_on\":\"2025-05-07\",\"supplier\":\"Sample Supplier 7823\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Cable sleeve\",\"quantity\":2,\"unit_minor\":23617},{\"description\":\"Mounting plate\",\"quantity\":8,\"unit_minor\":11658},{\"description\":\"Meter label\",\"quantity\":7,\"unit_minor\":9635}],\"subtotal_minor\":234976,\"tax_minor\":27033,\"total_minor\":207943}",
        "reference": {
          "invoice_id": "SF-429916",
          "issued_on": "2025-05-07",
          "supplier": "Sample Supplier 7823",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Cable sleeve",
              "quantity": 2,
              "unit_minor": 23617
            },
            {
              "description": "Mounting plate",
              "quantity": 8,
              "unit_minor": 11658
            },
            {
              "description": "Meter label",
              "quantity": 7,
              "unit_minor": 9635
            }
          ],
          "subtotal_minor": 207943,
          "tax_minor": 27033,
          "total_minor": 234976
        },
        "completion_tokens": 129,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 1.0
      },
      {
        "key": "SF-862527",
        "split": "familiar",
        "family": "familiar-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-862527\",\"issued_on\":\"2025-05-22\",\"supplier\":\"Sample Supplier 5851\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":null,\"tax_minor\":null,\"total_minor\":null}",
        "reference": {
          "invoice_id": "SF-862527",
          "issued_on": "2025-05-22",
          "supplier": "Sample Supplier 5851",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Meter label",
              "quantity": 5,
              "unit_minor": 358
            }
          ],
          "subtotal_minor": 1790,
          "tax_minor": 233,
          "total_minor": 2023
        },
        "completion_tokens": 60,
        "valid": true,
        "exact": false,
        "fields": 0.5714285714285714,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-112096",
        "split": "familiar",
        "family": "familiar-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-112096\",\"issued_on\":\"2025-11-24\",\"supplier\":\"Sample Supplier 1460\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Door seal\",\"quantity\":3,\"unit_minor\":21071},{\"description\":\"Mounting plate\",\"quantity\":6,\"unit_minor\":5624}],\"subtotal_minor\":108555,\"tax_minor\":14112,\"total_minor\":122666}",
        "reference": {
          "invoice_id": "SF-112096",
          "issued_on": "2025-11-24",
          "supplier": "Sample Supplier 1460",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Door seal",
              "quantity": 3,
              "unit_minor": 21071
            },
            {
              "description": "Mounting plate",
              "quantity": 6,
              "unit_minor": 5624
            },
            {
              "description": "Grounding clip",
              "quantity": 1,
              "unit_minor": 11598
            }
          ],
          "subtotal_minor": 108555,
          "tax_minor": 14112,
          "total_minor": 122667
        },
        "completion_tokens": 110,
        "valid": true,
        "exact": false,
        "fields": 0.8571428571428571,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 0.8
      },
      {
        "key": "SF-177277",
        "split": "novel",
        "family": "novel-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-177277\",\"issued_on\":\"2025-01-11\",\"supplier\":\"Sample Supplier 3177\",\"currency\":\"USD\",\"line_items\":[],\"subtotal_minor\":104887,\"tax_minor\":7342,\"total_minor\":112229}",
        "reference": {
          "invoice_id": "SF-177277",
          "issued_on": "2025-01-11",
          "supplier": "Sample Supplier 3177",
          "currency": "USD",
          "line_items": [
            {
              "description": "Cooling filter",
              "quantity": 5,
              "unit_minor": 19862
            },
            {
              "description": "Door seal",
              "quantity": 1,
              "unit_minor": 5577
            }
          ],
          "subtotal_minor": 104887,
          "tax_minor": 7342,
          "total_minor": 112229
        },
        "completion_tokens": 73,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-781239",
        "split": "novel",
        "family": "novel-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-781239\",\"issued_on\":\"2025-11-12\",\"supplier\":\"Sample Supplier 3219\",\"currency\":\"GBP\",\"line_items\":[],\"subtotal_minor\":72851,\"tax_minor\":64470,\"total_minor\":793321}",
        "reference": {
          "invoice_id": "SF-781239",
          "issued_on": "2025-11-12",
          "supplier": "Sample Supplier 3219",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Packing insert",
              "quantity": 5,
              "unit_minor": 12894
            }
          ],
          "subtotal_minor": 64470,
          "tax_minor": 8381,
          "total_minor": 72851
        },
        "completion_tokens": 73,
        "valid": true,
        "exact": false,
        "fields": 0.5714285714285714,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-357240",
        "split": "novel",
        "family": "novel-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-357240\",\"issued_on\":\"2025-06-22\",\"supplier\":\"Sample Supplier 4464\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":11756,\"tax_minor\":1528,\"total_minor\":13284}",
        "reference": {
          "invoice_id": "SF-357240",
          "issued_on": "2025-06-22",
          "supplier": "Sample Supplier 4464",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Rack inspection",
              "quantity": 4,
              "unit_minor": 2939
            }
          ],
          "subtotal_minor": 11756,
          "tax_minor": 1528,
          "total_minor": 13284
        },
        "completion_tokens": 71,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-820102",
        "split": "novel",
        "family": "novel-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-820102\",\"issued_on\":\"2025-09-06\",\"supplier\":\"Sample Supplier 6600\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":130270,\"tax_minor\":16935,\"total_minor\":147205}",
        "reference": {
          "invoice_id": "SF-820102",
          "issued_on": "2025-09-06",
          "supplier": "Sample Supplier 6600",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Bench calibration",
              "quantity": 7,
              "unit_minor": 18610
            }
          ],
          "subtotal_minor": 130270,
          "tax_minor": 16935,
          "total_minor": 147205
        },
        "completion_tokens": 74,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-375561",
        "split": "independent",
        "family": "independent-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-375561\",\"issued_on\":\"2025-03-27\",\"supplier\":\"Sample Supplier 8052\",\"currency\":\"USD\",\"line_items\":[{\"description\":\"Door seal\",\"quantity\":4,\"unit_minor\":16543},{\"description\":\"Net\",\"quantity\":66172,\"unit_minor\":66172},{\"description\":\"Taxes\",\"quantity\":4632,\"unit_minor\":4632}],\"subtotal_minor\":70804,\"tax_minor\":4632,\"total_minor\":75495}",
        "reference": {
          "invoice_id": "SF-375561",
          "issued_on": "2025-03-27",
          "supplier": "Sample Supplier 8052",
          "currency": "USD",
          "line_items": [
            {
              "description": "Door seal",
              "quantity": 4,
              "unit_minor": 16543
            }
          ],
          "subtotal_minor": 66172,
          "tax_minor": 4632,
          "total_minor": 70804
        },
        "completion_tokens": 130,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 0.5
      },
      {
        "key": "SF-334284",
        "split": "independent",
        "family": "independent-01",
        "completed": false,
        "answer": "{\"invoice_id\":\"SF-334284\",\"issued_on\":\"2025-04-04\",\"supplier\":\"Sample Supplier 2524\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Mounting plate @ 74.18 per unit\",\"quantity\":3,\"unit_minor\":7418},{\"description\":\"Net\",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null",
        "reference": {
          "invoice_id": "SF-334284",
          "issued_on": "2025-04-04",
          "supplier": "Sample Supplier 2524",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Mounting plate",
              "quantity": 3,
              "unit_minor": 7418
            }
          ],
          "subtotal_minor": 22254,
          "tax_minor": 2893,
          "total_minor": 25147
        },
        "completion_tokens": 384,
        "valid": false,
        "exact": false,
        "fields": 0.0,
        "field_correct": {
          "invoice_id": false,
          "issued_on": false,
          "supplier": false,
          "currency": false,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-704341",
        "split": "independent",
        "family": "independent-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-704341\",\"issued_on\":\"2025-11-17\",\"supplier\":\"Sample Supplier 8167\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Meter label @ 163,66 per unit\",\"quantity\":3,\"unit_minor\":16366},{\"description\":\"Carrier adjustment @ 25,10 per unit\",\"quantity\":3,\"unit_minor\":2510}],\"subtotal_minor\":56628,\"tax_minor\":7362,\"total_minor\":63990}",
        "reference": {
          "invoice_id": "SF-704341",
          "issued_on": "2025-11-17",
          "supplier": "Sample Supplier 8167",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Meter label",
              "quantity": 3,
              "unit_minor": 16366
            },
            {
              "description": "Carrier adjustment",
              "quantity": 3,
              "unit_minor": 2510
            }
          ],
          "subtotal_minor": 56628,
          "tax_minor": 7362,
          "total_minor": 63990
        },
        "completion_tokens": 125,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-604934",
        "split": "independent",
        "family": "independent-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-604934\",\"issued_on\":\"2026-03-17\",\"supplier\":\"Sample Supplier 9620\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Packing insert\",\"quantity\":8,\"unit_minor\":24234},{\"description\":\"Grounding clip\",\"quantity\":3,\"unit_minor\":11924},{\"description\":\"Door seal\",\"quantity\":5,\"unit_minor\":6364}],\"subtotal_minor\":295454,\"tax_minor\":33990,\"total_minor\":2988534}",
        "reference": {
          "invoice_id": "SF-604934",
          "issued_on": "2026-03-17",
          "supplier": "Sample Supplier 9620",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Packing insert",
              "quantity": 8,
              "unit_minor": 24234
            },
            {
              "description": "Grounding clip",
              "quantity": 3,
              "unit_minor": 11924
            },
            {
              "description": "Door seal",
              "quantity": 5,
              "unit_minor": 6364
            }
          ],
          "subtotal_minor": 261464,
          "tax_minor": 33990,
          "total_minor": 295454
        },
        "completion_tokens": 130,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 1.0
      }
    ],
    "verified": [
      {
        "key": "SF-228794",
        "split": "familiar",
        "family": "familiar-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-228794\",\"issued_on\":\"2026-03-21\",\"supplier\":\"Sample Supplier 1597\",\"currency\":\"USD\",\"description\":\"Mounting plate\",\"quantity\":8,\"unit_price\":11.95,\"subtotal_minor\":166592,\"tax_minor\":11661,\"total_minor\":178253}",
        "reference": {
          "invoice_id": "SF-228794",
          "issued_on": "2026-03-21",
          "supplier": "Sample Supplier 1597",
          "currency": "USD",
          "line_items": [
            {
              "description": "Mounting plate",
              "quantity": 8,
              "unit_minor": 1195
            },
            {
              "description": "Packing insert",
              "quantity": 6,
              "unit_minor": 21634
            },
            {
              "description": "Cooling filter",
              "quantity": 4,
              "unit_minor": 6807
            }
          ],
          "subtotal_minor": 166592,
          "tax_minor": 11661,
          "total_minor": 178253
        },
        "completion_tokens": 89,
        "valid": false,
        "exact": false,
        "fields": 0.0,
        "field_correct": {
          "invoice_id": false,
          "issued_on": false,
          "supplier": false,
          "currency": false,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-429916",
        "split": "familiar",
        "family": "familiar-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-429916\",\"issued_on\":\"2025-05-07\",\"supplier\":\"Sample Supplier 7823\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Cable sleeve\",\"quantity\":2,\"unit_minor\":23617},{\"description\":\"Mounting plate\",\"quantity\":8,\"unit_minor\":11658},{\"description\":\"Meter label\",\"quantity\":7,\"unit_minor\":9635}],\"subtotal_minor\":234976,\"tax_minor\":27033,\"total_minor\":207943}",
        "reference": {
          "invoice_id": "SF-429916",
          "issued_on": "2025-05-07",
          "supplier": "Sample Supplier 7823",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Cable sleeve",
              "quantity": 2,
              "unit_minor": 23617
            },
            {
              "description": "Mounting plate",
              "quantity": 8,
              "unit_minor": 11658
            },
            {
              "description": "Meter label",
              "quantity": 7,
              "unit_minor": 9635
            }
          ],
          "subtotal_minor": 207943,
          "tax_minor": 27033,
          "total_minor": 234976
        },
        "completion_tokens": 129,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 1.0
      },
      {
        "key": "SF-862527",
        "split": "familiar",
        "family": "familiar-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-862527\",\"issued_on\":\"2025-05-22\",\"supplier\":\"Sample Supplier 5851\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":null,\"tax_minor\":null,\"total_minor\":null}",
        "reference": {
          "invoice_id": "SF-862527",
          "issued_on": "2025-05-22",
          "supplier": "Sample Supplier 5851",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Meter label",
              "quantity": 5,
              "unit_minor": 358
            }
          ],
          "subtotal_minor": 1790,
          "tax_minor": 233,
          "total_minor": 2023
        },
        "completion_tokens": 60,
        "valid": true,
        "exact": false,
        "fields": 0.5714285714285714,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-112096",
        "split": "familiar",
        "family": "familiar-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-112096\",\"issued_on\":\"2025-11-24\",\"supplier\":\"Sample Supplier 1460\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Door seal\",\"quantity\":3,\"unit_minor\":21071},{\"description\":\"Mounting plate\",\"quantity\":6,\"unit_minor\":5624}],\"subtotal_minor\":108555,\"tax_minor\":14112,\"total_minor\":122667}",
        "reference": {
          "invoice_id": "SF-112096",
          "issued_on": "2025-11-24",
          "supplier": "Sample Supplier 1460",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Door seal",
              "quantity": 3,
              "unit_minor": 21071
            },
            {
              "description": "Mounting plate",
              "quantity": 6,
              "unit_minor": 5624
            },
            {
              "description": "Grounding clip",
              "quantity": 1,
              "unit_minor": 11598
            }
          ],
          "subtotal_minor": 108555,
          "tax_minor": 14112,
          "total_minor": 122667
        },
        "completion_tokens": 110,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.8
      },
      {
        "key": "SF-177277",
        "split": "novel",
        "family": "novel-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-177277\",\"issued_on\":\"2025-01-11\",\"supplier\":\"Sample Supplier 3177\",\"currency\":\"USD\",\"line_items\":[],\"subtotal_minor\":104887,\"tax_minor\":7342,\"total_minor\":112229}",
        "reference": {
          "invoice_id": "SF-177277",
          "issued_on": "2025-01-11",
          "supplier": "Sample Supplier 3177",
          "currency": "USD",
          "line_items": [
            {
              "description": "Cooling filter",
              "quantity": 5,
              "unit_minor": 19862
            },
            {
              "description": "Door seal",
              "quantity": 1,
              "unit_minor": 5577
            }
          ],
          "subtotal_minor": 104887,
          "tax_minor": 7342,
          "total_minor": 112229
        },
        "completion_tokens": 73,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-781239",
        "split": "novel",
        "family": "novel-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-781239\",\"issued_on\":\"2025-11-12\",\"supplier\":\"Sample Supplier 3219\",\"currency\":\"GBP\",\"line_items\":[],\"subtotal_minor\":72851,\"tax_minor\":64470,\"total_minor\":793321}",
        "reference": {
          "invoice_id": "SF-781239",
          "issued_on": "2025-11-12",
          "supplier": "Sample Supplier 3219",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Packing insert",
              "quantity": 5,
              "unit_minor": 12894
            }
          ],
          "subtotal_minor": 64470,
          "tax_minor": 8381,
          "total_minor": 72851
        },
        "completion_tokens": 73,
        "valid": true,
        "exact": false,
        "fields": 0.5714285714285714,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-357240",
        "split": "novel",
        "family": "novel-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-357240\",\"issued_on\":\"2025-06-22\",\"supplier\":\"Sample Supplier 4464\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":11756,\"tax_minor\":1528,\"total_minor\":13284}",
        "reference": {
          "invoice_id": "SF-357240",
          "issued_on": "2025-06-22",
          "supplier": "Sample Supplier 4464",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Rack inspection",
              "quantity": 4,
              "unit_minor": 2939
            }
          ],
          "subtotal_minor": 11756,
          "tax_minor": 1528,
          "total_minor": 13284
        },
        "completion_tokens": 71,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-820102",
        "split": "novel",
        "family": "novel-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-820102\",\"issued_on\":\"2025-09-06\",\"supplier\":\"Sample Supplier 6600\",\"currency\":\"EUR\",\"line_items\":[],\"subtotal_minor\":130270,\"tax_minor\":16935,\"total_minor\":147205}",
        "reference": {
          "invoice_id": "SF-820102",
          "issued_on": "2025-09-06",
          "supplier": "Sample Supplier 6600",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Bench calibration",
              "quantity": 7,
              "unit_minor": 18610
            }
          ],
          "subtotal_minor": 130270,
          "tax_minor": 16935,
          "total_minor": 147205
        },
        "completion_tokens": 74,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-375561",
        "split": "independent",
        "family": "independent-00",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-375561\",\"issued_on\":\"2025-03-27\",\"supplier\":\"Sample Supplier 8052\",\"currency\":\"USD\",\"line_items\":[{\"description\":\"Door seal\",\"quantity\":4,\"unit_minor\":16543},{\"description\":\"Net\",\"quantity\":66172,\"unit_minor\":66172},{\"description\":\"Taxes\",\"quantity\":4632,\"unit_minor\":4632}],\"subtotal_minor\":70804,\"tax_minor\":4632,\"total_minor\":754363}",
        "reference": {
          "invoice_id": "SF-375561",
          "issued_on": "2025-03-27",
          "supplier": "Sample Supplier 8052",
          "currency": "USD",
          "line_items": [
            {
              "description": "Door seal",
              "quantity": 4,
              "unit_minor": 16543
            }
          ],
          "subtotal_minor": 66172,
          "tax_minor": 4632,
          "total_minor": 70804
        },
        "completion_tokens": 131,
        "valid": true,
        "exact": false,
        "fields": 0.7142857142857143,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": false
        },
        "row_f1": 0.5
      },
      {
        "key": "SF-334284",
        "split": "independent",
        "family": "independent-01",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-334284\",\"issued_on\":\"2025-04-04\",\"supplier\":\"Sample Supplier 2524\",\"currency\":\"GBP\",\"line_items\":[{\"description\":\"Mounting plate\",\"quantity\":3,\"unit_minor\":7418},{\"description\":\"Net\",\"quantity\":22254,\"unit_minor\":22254},{\"description\":\"Taxes\",\"quantity\":2893,\"unit_minor\":2893}],\"subtotal_minor\":25147,\"tax_minor\":2893,\"total_minor\":25147}",
        "reference": {
          "invoice_id": "SF-334284",
          "issued_on": "2025-04-04",
          "supplier": "Sample Supplier 2524",
          "currency": "GBP",
          "line_items": [
            {
              "description": "Mounting plate",
              "quantity": 3,
              "unit_minor": 7418
            }
          ],
          "subtotal_minor": 22254,
          "tax_minor": 2893,
          "total_minor": 25147
        },
        "completion_tokens": 130,
        "valid": true,
        "exact": false,
        "fields": 0.8571428571428571,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": false,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.5
      },
      {
        "key": "SF-704341",
        "split": "independent",
        "family": "independent-02",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-704341\",\"issued_on\":\"2025-11-17\",\"supplier\":\"Sample Supplier 8167\",\"currency\":\"EUR\",\"line_items\":[{\"description\":\"Meter label @ 163,66 per unit\",\"quantity\":3,\"unit_minor\":16366},{\"description\":\"Carrier adjustment @ 25,10 per unit\",\"quantity\":3,\"unit_minor\":2510}],\"subtotal_minor\":56628,\"tax_minor\":7362,\"total_minor\":63990}",
        "reference": {
          "invoice_id": "SF-704341",
          "issued_on": "2025-11-17",
          "supplier": "Sample Supplier 8167",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Meter label",
              "quantity": 3,
              "unit_minor": 16366
            },
            {
              "description": "Carrier adjustment",
              "quantity": 3,
              "unit_minor": 2510
            }
          ],
          "subtotal_minor": 56628,
          "tax_minor": 7362,
          "total_minor": 63990
        },
        "completion_tokens": 125,
        "valid": true,
        "exact": false,
        "fields": 1.0,
        "field_correct": {
          "invoice_id": true,
          "issued_on": true,
          "supplier": true,
          "currency": true,
          "subtotal_minor": true,
          "tax_minor": true,
          "total_minor": true
        },
        "row_f1": 0.0
      },
      {
        "key": "SF-604934",
        "split": "independent",
        "family": "independent-03",
        "completed": true,
        "answer": "{\"invoice_id\":\"SF-604934\",\"issued_on\":\"2026-03-17\",\"supplier\":\"Sample Supplier 9620\",\"currency\":\"EUR\",\"line_items\":[[{\"description\":\"Packing insert\",\"quantity\":8,\"unit_minor\":24234}],[{\"description\":\"Grounding clip\",\"quantity\":3,\"unit_minor\":11924}],[{\"description\":\"Door seal\",\"quantity\":5,\"unit_minor\":6364}]],\"subtotal_minor\":295454,\"tax_minor\":33990,\"total_minor\":261464+33990}",
        "reference": {
          "invoice_id": "SF-604934",
          "issued_on": "2026-03-17",
          "supplier": "Sample Supplier 9620",
          "currency": "EUR",
          "line_items": [
            {
              "description": "Packing insert",
              "quantity": 8,
              "unit_minor": 24234
            },
            {
              "description": "Grounding clip",
              "quantity": 3,
              "unit_minor": 11924
            },
            {
              "description": "Door seal",
              "quantity": 5,
              "unit_minor": 6364
            }
          ],
          "subtotal_minor": 261464,
          "tax_minor": 33990,
          "total_minor": 295454
        },
        "completion_tokens": 142,
        "valid": false,
        "exact": false,
        "fields": 0.0,
        "field_correct": {
          "invoice_id": false,
          "issued_on": false,
          "supplier": false,
          "currency": false,
          "subtotal_minor": false,
          "tax_minor": false,
          "total_minor": false
        },
        "row_f1": 0.0
      }
    ]
  }
}