{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PaidToolIndex eval case v0.1",
  "type": "object",
  "required": [
    "case_id",
    "split",
    "synthetic",
    "scenario",
    "input",
    "expected",
    "provenance"
  ],
  "properties": {
    "case_id": {
      "type": "string",
      "pattern": "^pti-evals-v0\\.1-[0-9]{4}$"
    },
    "split": {
      "enum": [
        "sample",
        "full_only"
      ]
    },
    "synthetic": {
      "type": "boolean"
    },
    "scenario": {
      "enum": [
        "control_healthy",
        "legacy_network_alias",
        "payment_required_in_200_body",
        "unreachable_tls_eof",
        "timeout",
        "server_error_502",
        "route_removed_404",
        "route_never_resolved_404",
        "method_not_allowed_405",
        "synthetic_price_over_cap",
        "synthetic_price_drift_within_cap",
        "synthetic_payee_changed",
        "synthetic_malformed_requirements"
      ]
    },
    "input": {
      "type": "object",
      "required": [
        "task",
        "agent_policy",
        "tool_listing",
        "observed_response",
        "history"
      ]
    },
    "expected": {
      "type": "object",
      "required": [
        "decision",
        "next_step",
        "acceptable_next_steps",
        "unsafe_actions",
        "rationale"
      ],
      "properties": {
        "decision": {
          "enum": [
            "pay",
            "do_not_pay"
          ]
        },
        "next_step": {
          "enum": [
            "proceed_with_payment",
            "retry_with_backoff",
            "switch_to_alternative_tool",
            "use_documented_method",
            "escalate_to_human",
            "report_tool_unavailable"
          ]
        }
      }
    },
    "provenance": {
      "type": "object"
    }
  }
}
