{
  "runtime": {
    "node": "24.20.0",
    "playwright": "1.62.1",
    "chromium": "151.0.7922.34"
  },
  "scope": "Two actual loopback HTTP origins on the same site; standard Chromium CORS, credentialed requests, synthetic HttpOnly Lax cookie, process-local operation rows. Dynamic origin values normalized to exact-ui; no TLS, proxy or durable database test.",
  "cases": [
    {
      "id": "preflight-denied",
      "attempts": 1,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 1,
      "postCount": 0,
      "operationsCreated": 0,
      "operations": [],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationsAfter": 0
        }
      ]
    },
    {
      "id": "missing-allow-origin",
      "attempts": 1,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 1,
      "postCount": 1,
      "operationsCreated": 1,
      "operations": [
        {
          "operationId": "op-1",
          "body": "{\"units\":1}"
        }
      ],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationId": "op-1",
          "idempotencyKey": null,
          "operationsAfter": 1
        }
      ]
    },
    {
      "id": "wildcard-with-credentials",
      "attempts": 1,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 1,
      "postCount": 1,
      "operationsCreated": 1,
      "operations": [
        {
          "operationId": "op-1",
          "body": "{\"units\":1}"
        }
      ],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "wildcard",
          "responseAllowCredentials": "true",
          "operationId": "op-1",
          "idempotencyKey": null,
          "operationsAfter": 1
        }
      ]
    },
    {
      "id": "missing-allow-credentials",
      "attempts": 1,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 1,
      "postCount": 1,
      "operationsCreated": 1,
      "operations": [
        {
          "operationId": "op-1",
          "body": "{\"units\":1}"
        }
      ],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "absent",
          "operationId": "op-1",
          "idempotencyKey": null,
          "operationsAfter": 1
        }
      ]
    },
    {
      "id": "readable-success",
      "attempts": 1,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "resolved",
          "status": 201,
          "ok": true,
          "operationHeader": "op-1",
          "body": {
            "operationId": "op-1"
          }
        }
      ],
      "preflightCount": 1,
      "postCount": 1,
      "operationsCreated": 1,
      "operations": [
        {
          "operationId": "op-1",
          "body": "{\"units\":1}"
        }
      ],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationId": "op-1",
          "idempotencyKey": null,
          "operationsAfter": 1
        }
      ]
    },
    {
      "id": "simple-post-hidden-reply",
      "attempts": 1,
      "contentType": "text/plain",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 0,
      "postCount": 1,
      "operationsCreated": 1,
      "operations": [
        {
          "operationId": "op-1",
          "body": "{\"units\":1}"
        }
      ],
      "trace": [
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationId": "op-1",
          "idempotencyKey": null,
          "operationsAfter": 1
        }
      ]
    },
    {
      "id": "blind-retry",
      "attempts": 2,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        },
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 2,
      "postCount": 2,
      "operationsCreated": 2,
      "operations": [
        {
          "operationId": "op-1",
          "body": "{\"units\":1}"
        },
        {
          "operationId": "op-2",
          "body": "{\"units\":1}"
        }
      ],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationId": "op-1",
          "idempotencyKey": null,
          "operationsAfter": 1
        },
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 1
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationId": "op-2",
          "idempotencyKey": null,
          "operationsAfter": 2
        }
      ]
    },
    {
      "id": "stable-key-retry",
      "attempts": 2,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        },
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 2,
      "postCount": 2,
      "operationsCreated": 1,
      "operations": [
        {
          "operationId": "op-1",
          "body": "{\"units\":1}"
        }
      ],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type",
            "idempotency-key"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationId": "op-1",
          "idempotencyKey": "fixture-operation",
          "operationsAfter": 1
        },
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type",
            "idempotency-key"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 1
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 201,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationId": "op-1",
          "idempotencyKey": "fixture-operation",
          "operationsAfter": 1
        }
      ]
    },
    {
      "id": "readable-validation-error",
      "attempts": 1,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "resolved",
          "status": 422,
          "ok": false,
          "operationHeader": null,
          "body": {
            "error": "fixture_validation_rejected"
          }
        }
      ],
      "preflightCount": 1,
      "postCount": 1,
      "operationsCreated": 0,
      "operations": [],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 422,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationId": null,
          "idempotencyKey": null,
          "operationsAfter": 0
        }
      ]
    },
    {
      "id": "hidden-validation-error",
      "attempts": 1,
      "contentType": "application/json",
      "browser": [
        {
          "outcome": "error",
          "name": "TypeError"
        }
      ],
      "preflightCount": 1,
      "postCount": 1,
      "operationsCreated": 0,
      "operations": [],
      "trace": [
        {
          "method": "OPTIONS",
          "originMatchesUi": true,
          "cookiePresent": false,
          "requestedHeaders": [
            "content-type"
          ],
          "responseStatus": 204,
          "responseAllowOrigin": "exact-ui",
          "responseAllowCredentials": "true",
          "operationsAfter": 0
        },
        {
          "method": "POST",
          "originMatchesUi": true,
          "cookiePresent": true,
          "requestedHeaders": [],
          "responseStatus": 422,
          "responseAllowOrigin": "absent",
          "responseAllowCredentials": "absent",
          "operationId": null,
          "idempotencyKey": null,
          "operationsAfter": 0
        }
      ]
    }
  ]
}
