{
  "schema": "sml.x402.synthetic-quote-fixtures.v1",
  "created_at": "2026-10-26",
  "publisher": "Script Master Labs LLC (SCRIPTMASTERLABS)",
  "canonical": "https://scriptmasterlabs.com/evidence/x402-quote-safety-fixtures-v1.json",
  "purpose": "Public offline test vectors for deterministic x402 v1/v2 payment-challenge field inspection.",
  "truth_boundary": "All challenges are synthetic fixtures, not live provider responses, signed payments, verified settlement, customer usage, search rankings or third-party evaluations.",
  "network_scope": "Base mainnet USDC only",
  "other_protocols": "Unsupported intentionally; the inspector is not a general x402 wallet.",
  "license_status": "No separate license is granted by this manifest; check source repository terms and obtain reuse permission if needed.",
  "method": "Each challenge is passed as JSON.stringify into inspectChallenge(input, policy). Expected outcomes are inspected for exact match without any network call.",
  "code": "https://scriptmasterlabs.com/x402-quote-inspector.mjs",
  "test_source": "https://gitlab.com/timothy.walton45/sml-portfolio/-/blob/main/tests/x402-quote-fixture-pack.test.mjs",
  "references": [
    "https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v1.md",
    "https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md"
  ],
  "case_count": 20,
  "cases": [
    {
      "id": "v2-exact-base-usdc",
      "about": "Canonical v2 exact USDC quote fields",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {
        "maxUsdc": "0.001",
        "expectedPayTo": "0x1111111111111111111111111111111111111111"
      },
      "expectedOutcome": "QUOTE_FIELDS_MATCH"
    },
    {
      "id": "v1-exact-base-usdc",
      "about": "Legacy v1 Base exact quote fields",
      "challenge": {
        "x402Version": 1,
        "error": "Payment required (synthetic)",
        "accepts": [
          {
            "scheme": "exact",
            "network": "base",
            "maxAmountRequired": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {
        "maxUsdc": "0.001",
        "expectedPayTo": "0x1111111111111111111111111111111111111111"
      },
      "expectedOutcome": "QUOTE_FIELDS_MATCH"
    },
    {
      "id": "v2-below-max-budget",
      "about": "Valid quote below a ceiling",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {
        "maxUsdc": "0.01"
      },
      "expectedOutcome": "QUOTE_FIELDS_MATCH"
    },
    {
      "id": "v2-over-budget",
      "about": "Quote exceeds configured budget",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {
        "maxUsdc": "0.000999"
      },
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-wrong-payee",
      "about": "Quote recipient differs from independent expected payee",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {
        "expectedPayTo": "0x0000000000000000000000000000000000000000"
      },
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-wrong-chain",
      "about": "Mainnet Ethereum is not Base mainnet",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:1",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-legacy-chain-alias",
      "about": "Base alias is not CAIP-2 in v2",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "base",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-wrong-token",
      "about": "Token address differs from canonical Base USDC",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x0000000000000000000000000000000000000000",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-zero-amount",
      "about": "Zero atomic amount is invalid",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "0",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-decimal-atomic",
      "about": "Fractional atomic units are invalid",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1.5",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-unsupported-scheme",
      "about": "Only exact is recognized",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "unknown",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-missing-amount",
      "about": "Do not fall back to a legacy amount field",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300,
            "maxAmountRequired": "1000"
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v2-dual-amount-fields",
      "about": "Two fields might disagree; require unambiguous v2 format",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300,
            "maxAmountRequired": "999"
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v1-wrong-network-field",
      "about": "Reject CAIP-2 formatted network on legacy v1",
      "challenge": {
        "x402Version": 1,
        "error": "Payment required (synthetic)",
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "maxAmountRequired": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "v1-wrong-amount-field",
      "about": "Reject new amount field in v1",
      "challenge": {
        "x402Version": 1,
        "error": "Payment required (synthetic)",
        "accepts": [
          {
            "scheme": "exact",
            "network": "base",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300,
            "amount": "1000"
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "unknown-version",
      "about": "Unknown protocol format must fail closed",
      "challenge": {
        "x402Version": 3,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "mixed-valid-and-invalid-offers",
      "about": "One malicious offer makes the whole inspected envelope unsafe",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          },
          {
            "scheme": "exact",
            "network": "eip155:1",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {},
      "expectedOutcome": "BLOCK"
    },
    {
      "id": "empty-payment-offers",
      "about": "No payable methods",
      "challenge": {
        "x402Version": 2,
        "accepts": []
      },
      "policy": {},
      "expectedOutcome": "INVALID_INPUT"
    },
    {
      "id": "invalid-expected-payee",
      "about": "User-supplied expected payee must be an EVM address",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {
        "expectedPayTo": "not-an-address"
      },
      "expectedOutcome": "INVALID_INPUT"
    },
    {
      "id": "invalid-budget-precision",
      "about": "USDC budgets support at most 6 decimal places",
      "challenge": {
        "x402Version": 2,
        "resource": {
          "url": "https://example.invalid/research",
          "description": "Fictional test resource only",
          "mimeType": "application/json"
        },
        "accepts": [
          {
            "scheme": "exact",
            "network": "eip155:8453",
            "amount": "1000",
            "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "payTo": "0x1111111111111111111111111111111111111111",
            "maxTimeoutSeconds": 300
          }
        ]
      },
      "policy": {
        "maxUsdc": "0.0000001"
      },
      "expectedOutcome": "INVALID_INPUT"
    }
  ]
}
