{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pdf2html.invalid/quality/storage-lifecycle/suite.schema.json",
  "type": "array",
  "minItems": 88,
  "maxItems": 88,
  "prefixItems": [
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-001",
            "category": "object_key",
            "description": "canonical source",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "sources/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/source.pdf",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "canonicalKey": "sources/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/source.pdf"
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-002",
            "category": "object_key",
            "description": "canonical package attempt",
            "operation": "validate_object_key",
            "input": {
              "kind": "zip",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "conversionId": "44444444-4444-4444-8444-444444444444",
              "attemptNo": 1
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "canonicalKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-003",
            "category": "object_key",
            "description": "foreign owner",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "sources/22222222-2222-4222-8222-222222222222/33333333-3333-4333-8333-333333333333/source.pdf",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_OBJECT_KEY",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-004",
            "category": "object_key",
            "description": "traversal",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "sources/11111111-1111-4111-8111-111111111111/../source.pdf",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_OBJECT_KEY",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-005",
            "category": "object_key",
            "description": "absolute",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "/sources/x",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_OBJECT_KEY",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-006",
            "category": "object_key",
            "description": "encoded separator",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "sources%2F11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/source.pdf",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_OBJECT_KEY",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-007",
            "category": "object_key",
            "description": "backslash",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "sources\\11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/source.pdf",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_OBJECT_KEY",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-008",
            "category": "object_key",
            "description": "filename",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "sources/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/customer.pdf",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_OBJECT_KEY",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-009",
            "category": "object_key",
            "description": "noncanonical uuid",
            "operation": "validate_object_key",
            "input": {
              "kind": "source",
              "key": "SOURCES/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/SOURCE.PDF",
              "ownerId": "11111111-1111-4111-8111-111111111111",
              "uploadId": "33333333-3333-4333-8333-333333333333"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_OBJECT_KEY",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-010",
            "category": "ownership",
            "description": "owner present",
            "operation": "authorize_download",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "zipExpiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "authorized": true
              },
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "storage",
                  "method": "head",
                  "count": 1
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-011",
            "category": "ownership",
            "description": "foreign",
            "operation": "authorize_download",
            "input": {
              "sessionUserId": "22222222-2222-4222-8222-222222222222",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "zipExpiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "denied",
              "httpStatus": 404,
              "error": {
                "code": "NOT_FOUND",
                "message": "Not found"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-012",
            "category": "ownership",
            "description": "nonexistent",
            "operation": "authorize_download",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": false,
              "objectState": "present",
              "zipExpiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "denied",
              "httpStatus": 404,
              "error": {
                "code": "NOT_FOUND",
                "message": "Not found"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-013",
            "category": "ownership",
            "description": "unknown adapter",
            "operation": "authorize_download",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "unknown",
              "zipExpiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "STORAGE_UNAVAILABLE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-014",
            "category": "ownership",
            "description": "access denied",
            "operation": "authorize_download",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "access_denied",
              "zipExpiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "STORAGE_UNAVAILABLE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-015",
            "category": "ownership",
            "description": "expired owned",
            "operation": "authorize_download",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "zipExpiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z"
            },
            "expected": {
              "outcome": "denied",
              "httpStatus": 410,
              "error": {
                "code": "ARTIFACT_EXPIRED",
                "message": "Artifact expired"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-016",
            "category": "ownership",
            "description": "no session",
            "operation": "authorize_download",
            "input": {
              "sessionUserId": null,
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "zipExpiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "denied",
              "httpStatus": 401,
              "error": {
                "code": "AUTH_REQUIRED",
                "message": "Authentication required"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 0
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-017",
            "category": "deadline",
            "description": "source",
            "operation": "derive_deadline",
            "input": {
              "kind": "source",
              "anchorAt": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expiresAt": "2026-01-17T12:00:00.000Z"
              },
              "calls": [],
              "mutations": [
                {
                  "entity": "source",
                  "action": "persist_deadline",
                  "count": 1,
                  "value": "2026-01-17T12:00:00.000Z"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-018",
            "category": "deadline",
            "description": "zip",
            "operation": "derive_deadline",
            "input": {
              "kind": "zip",
              "anchorAt": "2028-02-28T23:30:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expiresAt": "2028-03-01T23:30:00.000Z"
              },
              "calls": [],
              "mutations": [
                {
                  "entity": "zip",
                  "action": "persist_deadline",
                  "count": 1,
                  "value": "2028-03-01T23:30:00.000Z"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-019",
            "category": "deadline",
            "description": "missing",
            "operation": "derive_deadline",
            "input": {
              "kind": "source",
              "anchorAt": null
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_TIMESTAMP",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-020",
            "category": "deadline",
            "description": "timezone missing",
            "operation": "derive_deadline",
            "input": {
              "kind": "source",
              "anchorAt": "2026-01-15T12:00:00"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_TIMESTAMP",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-021",
            "category": "deadline",
            "description": "calendar invalid",
            "operation": "derive_deadline",
            "input": {
              "kind": "source",
              "anchorAt": "2026-02-30T12:00:00.000Z"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_TIMESTAMP",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-022",
            "category": "deadline",
            "description": "wrong kind",
            "operation": "derive_deadline",
            "input": {
              "kind": "source",
              "anchorAt": 7
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_TIMESTAMP",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-023",
            "category": "deadline",
            "description": "source -1ms",
            "operation": "evaluate_expiry",
            "input": {
              "kind": "source",
              "expiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expired": false,
                "apiAllowed": true,
                "deleteDue": false
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-024",
            "category": "deadline",
            "description": "source 0ms",
            "operation": "evaluate_expiry",
            "input": {
              "kind": "source",
              "expiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expired": true,
                "apiAllowed": false,
                "deleteDue": true
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-025",
            "category": "deadline",
            "description": "source 1ms",
            "operation": "evaluate_expiry",
            "input": {
              "kind": "source",
              "expiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.001Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expired": true,
                "apiAllowed": false,
                "deleteDue": true
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-026",
            "category": "deadline",
            "description": "zip -1ms",
            "operation": "evaluate_expiry",
            "input": {
              "kind": "zip",
              "expiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T11:59:59.999Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expired": false,
                "apiAllowed": true,
                "deleteDue": false
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-027",
            "category": "deadline",
            "description": "zip 0ms",
            "operation": "evaluate_expiry",
            "input": {
              "kind": "zip",
              "expiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expired": true,
                "apiAllowed": false,
                "deleteDue": true
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-028",
            "category": "deadline",
            "description": "zip 1ms",
            "operation": "evaluate_expiry",
            "input": {
              "kind": "zip",
              "expiresAt": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.001Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expired": true,
                "apiAllowed": false,
                "deleteDue": true
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-029",
            "category": "deadline",
            "description": "zip independent of source and access",
            "operation": "derive_deadline",
            "input": {
              "kind": "zip",
              "anchorAt": "2026-01-15T12:00:00.000Z",
              "irrelevantTimes": [
                "2026-01-01T00:00:00.000Z",
                "2026-01-16T00:00:00.000Z"
              ]
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "expiresAt": "2026-01-17T12:00:00.000Z"
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-030",
            "category": "signed_url",
            "description": "configured ttl 29",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 29,
              "zipExpiresAt": "2026-01-15T13:00:00.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 500,
              "error": {
                "code": "INVALID_TTL",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-031",
            "category": "signed_url",
            "description": "configured ttl 30",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 30,
              "zipExpiresAt": "2026-01-15T13:00:00.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "effectiveExpiresAt": "2026-01-15T12:00:30.000Z",
                "binding": {
                  "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
                  "method": "GET"
                }
              },
              "calls": [
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 1
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-032",
            "category": "signed_url",
            "description": "configured ttl 300",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 300,
              "zipExpiresAt": "2026-01-15T13:00:00.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "effectiveExpiresAt": "2026-01-15T12:00:30.000Z",
                "binding": {
                  "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
                  "method": "GET"
                }
              },
              "calls": [
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 1
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-033",
            "category": "signed_url",
            "description": "configured ttl 301",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 301,
              "zipExpiresAt": "2026-01-15T13:00:00.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 500,
              "error": {
                "code": "INVALID_TTL",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-034",
            "category": "signed_url",
            "description": "4.999",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 30,
              "zipExpiresAt": "2026-01-15T12:00:04.999Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 410,
              "error": {
                "code": "ARTIFACT_EXPIRED",
                "message": "Artifact expired"
              },
              "state": {},
              "calls": [
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-035",
            "category": "signed_url",
            "description": "5.000",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 30,
              "zipExpiresAt": "2026-01-15T12:00:05.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "effectiveExpiresAt": "2026-01-15T12:00:05.000Z",
                "binding": {
                  "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
                  "method": "GET"
                }
              },
              "calls": [
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 1
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-036",
            "category": "signed_url",
            "description": "clamp",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 30,
              "zipExpiresAt": "2026-01-15T12:00:20.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "effectiveExpiresAt": "2026-01-15T12:00:20.000Z",
                "binding": {
                  "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
                  "method": "GET"
                }
              },
              "calls": [
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 1
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-037",
            "category": "signed_url",
            "description": "foreign",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "22222222-2222-4222-8222-222222222222",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": true,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 30,
              "zipExpiresAt": "2026-01-15T11:00:00.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "denied",
              "httpStatus": 404,
              "error": {
                "code": "NOT_FOUND",
                "message": "Not found"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-038",
            "category": "signed_url",
            "description": "missing",
            "operation": "issue_signed_url",
            "input": {
              "sessionUserId": "11111111-1111-4111-8111-111111111111",
              "objectOwnerId": "11111111-1111-4111-8111-111111111111",
              "conversionExists": false,
              "objectState": "present",
              "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
              "method": "GET",
              "configuredTtlSeconds": 30,
              "zipExpiresAt": "2026-01-15T11:00:00.000Z",
              "now": "2026-01-15T12:00:00.000Z"
            },
            "expected": {
              "outcome": "denied",
              "httpStatus": 404,
              "error": {
                "code": "NOT_FOUND",
                "message": "Not found"
              },
              "state": {},
              "calls": [
                {
                  "service": "database",
                  "method": "authorize",
                  "count": 1
                },
                {
                  "service": "signer",
                  "method": "signGet",
                  "count": 0
                }
              ],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-039",
            "category": "library",
            "description": "queued",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "queued",
                  "createdAt": "2026-01-15T12:00:00.000Z"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-15T12:00:01.000Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "rows": [
                  {
                    "id": "44444444-4444-4444-8444-444444444444",
                    "label": "queued",
                    "download": null
                  }
                ],
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-040",
            "category": "library",
            "description": "processing",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "processing",
                  "createdAt": "2026-01-15T12:00:00.000Z"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-15T12:00:01.000Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "rows": [
                  {
                    "id": "44444444-4444-4444-8444-444444444444",
                    "label": "processing",
                    "download": null
                  }
                ],
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-041",
            "category": "library",
            "description": "failed",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "failed",
                  "createdAt": "2026-01-15T12:00:00.000Z"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-15T12:00:01.000Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "rows": [
                  {
                    "id": "44444444-4444-4444-8444-444444444444",
                    "label": "failed",
                    "download": null
                  }
                ],
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-042",
            "category": "library",
            "description": "cancelled",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "cancelled",
                  "createdAt": "2026-01-15T12:00:00.000Z"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-15T12:00:01.000Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "rows": [
                  {
                    "id": "44444444-4444-4444-8444-444444444444",
                    "label": "cancelled",
                    "download": null
                  }
                ],
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-043",
            "category": "library",
            "description": "unexpired",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "complete",
                  "createdAt": "2026-01-15T12:00:00.000Z",
                  "zipExpiresAt": "2026-01-17T12:00:00.000Z",
                  "zipState": "present"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-17T11:59:59.999Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "rows": [
                  {
                    "id": "44444444-4444-4444-8444-444444444444",
                    "label": "complete",
                    "download": "zip"
                  }
                ],
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-044",
            "category": "library",
            "description": "equal",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "complete",
                  "createdAt": "2026-01-15T12:00:00.000Z",
                  "zipExpiresAt": "2026-01-17T12:00:00.000Z",
                  "zipState": "present"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-17T12:00:00.000Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "rows": [
                  {
                    "id": "44444444-4444-4444-8444-444444444444",
                    "label": "expired",
                    "download": null
                  }
                ],
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-045",
            "category": "library",
            "description": "plus",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "complete",
                  "createdAt": "2026-01-15T12:00:00.000Z",
                  "zipExpiresAt": "2026-01-17T12:00:00.000Z",
                  "zipState": "present"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-17T12:00:00.001Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "rows": [
                  {
                    "id": "44444444-4444-4444-8444-444444444444",
                    "label": "expired",
                    "download": null
                  }
                ],
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-046",
            "category": "library",
            "description": "owned-only stable newest-first",
            "operation": "project_library",
            "input": {
              "rows": [
                {
                  "id": "44444444-4444-4444-8444-444444444444",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "queued",
                  "createdAt": "2026-01-15T12:00:00.000Z"
                },
                {
                  "id": "33333333-3333-4333-8333-333333333333",
                  "ownerId": "11111111-1111-4111-8111-111111111111",
                  "status": "queued",
                  "createdAt": "2026-01-15T12:00:00.000Z"
                },
                {
                  "id": "22222222-2222-4222-8222-222222222222",
                  "ownerId": "22222222-2222-4222-8222-222222222222",
                  "status": "queued",
                  "createdAt": "2026-01-16T12:00:00.000Z"
                }
              ],
              "viewerId": "11111111-1111-4111-8111-111111111111",
              "now": "2026-01-16T12:00:01.000Z",
              "balance": 0
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "orderedIds": [
                  "33333333-3333-4333-8333-333333333333",
                  "44444444-4444-4444-8444-444444444444"
                ],
                "rawKeysExposed": false,
                "ledgerMutations": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-047",
            "category": "delivery",
            "description": "zip only",
            "operation": "validate_delivery",
            "input": {
              "representations": [
                {
                  "mediaType": "application/zip",
                  "kind": "zip"
                }
              ],
              "dtoContainsRawKey": false,
              "publicRoutes": [],
              "externalDependencies": []
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "delivery": "zip",
                "selfContained": true
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-048",
            "category": "delivery",
            "description": "html only",
            "operation": "validate_delivery",
            "input": {
              "representations": [
                {
                  "mediaType": "text/html",
                  "kind": "html"
                }
              ],
              "dtoContainsRawKey": false,
              "publicRoutes": [],
              "externalDependencies": []
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "ZIP_ONLY_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-049",
            "category": "delivery",
            "description": "mixed",
            "operation": "validate_delivery",
            "input": {
              "representations": [
                {
                  "mediaType": "application/zip",
                  "kind": "zip"
                },
                {
                  "mediaType": "text/html",
                  "kind": "html"
                }
              ],
              "dtoContainsRawKey": false,
              "publicRoutes": [],
              "externalDependencies": []
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "ZIP_ONLY_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-050",
            "category": "delivery",
            "description": "multiple zip",
            "operation": "validate_delivery",
            "input": {
              "representations": [
                {
                  "mediaType": "application/zip",
                  "kind": "zip"
                },
                {
                  "mediaType": "application/zip",
                  "kind": "zip"
                }
              ],
              "dtoContainsRawKey": false,
              "publicRoutes": [],
              "externalDependencies": []
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "ZIP_ONLY_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-051",
            "category": "delivery",
            "description": "empty",
            "operation": "validate_delivery",
            "input": {
              "representations": [],
              "dtoContainsRawKey": false,
              "publicRoutes": [],
              "externalDependencies": []
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "ZIP_ONLY_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-052",
            "category": "bucket",
            "description": "private",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": false,
              "anonymousListAllowed": false,
              "blockPublicAcls": true,
              "blockPublicPolicy": true,
              "crossOwnerPrefixAllowed": false,
              "lifecycleMappingsValid": true,
              "adapterState": "ready"
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "private": true
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-053",
            "category": "bucket",
            "description": "anonymous get",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": true,
              "anonymousListAllowed": false,
              "blockPublicAcls": true,
              "blockPublicPolicy": true,
              "crossOwnerPrefixAllowed": false,
              "lifecycleMappingsValid": true,
              "adapterState": "ready"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "PRIVATE_BUCKET_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-054",
            "category": "bucket",
            "description": "anonymous list",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": false,
              "anonymousListAllowed": true,
              "blockPublicAcls": true,
              "blockPublicPolicy": true,
              "crossOwnerPrefixAllowed": false,
              "lifecycleMappingsValid": true,
              "adapterState": "ready"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "PRIVATE_BUCKET_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-055",
            "category": "bucket",
            "description": "public acl",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": false,
              "anonymousListAllowed": false,
              "blockPublicAcls": false,
              "blockPublicPolicy": true,
              "crossOwnerPrefixAllowed": false,
              "lifecycleMappingsValid": true,
              "adapterState": "ready"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "PRIVATE_BUCKET_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-056",
            "category": "bucket",
            "description": "public policy",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": false,
              "anonymousListAllowed": false,
              "blockPublicAcls": true,
              "blockPublicPolicy": false,
              "crossOwnerPrefixAllowed": false,
              "lifecycleMappingsValid": true,
              "adapterState": "ready"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "PRIVATE_BUCKET_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-057",
            "category": "bucket",
            "description": "cross owner",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": false,
              "anonymousListAllowed": false,
              "blockPublicAcls": true,
              "blockPublicPolicy": true,
              "crossOwnerPrefixAllowed": true,
              "lifecycleMappingsValid": true,
              "adapterState": "ready"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "PRIVATE_BUCKET_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-058",
            "category": "bucket",
            "description": "wrong lifecycle",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": false,
              "anonymousListAllowed": false,
              "blockPublicAcls": true,
              "blockPublicPolicy": true,
              "crossOwnerPrefixAllowed": false,
              "lifecycleMappingsValid": false,
              "adapterState": "ready"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "PRIVATE_BUCKET_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-059",
            "category": "bucket",
            "description": "adapter absent",
            "operation": "validate_bucket",
            "input": {
              "anonymousGetAllowed": false,
              "anonymousListAllowed": false,
              "blockPublicAcls": true,
              "blockPublicPolicy": true,
              "crossOwnerPrefixAllowed": false,
              "lifecycleMappingsValid": true,
              "adapterState": "unknown"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "PRIVATE_BUCKET_REQUIRED",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-060",
            "category": "archive_layout",
            "description": "canonical manifest and references",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "accepted",
              "httpStatus": 200,
              "error": null,
              "state": {
                "entryCount": 3,
                "entryHtml": "index.html",
                "selfContained": true
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-061",
            "category": "archive_layout",
            "description": "wrapper",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "x/index.html",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-062",
            "category": "archive_layout",
            "description": "absolute",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "/index.html",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-063",
            "category": "archive_layout",
            "description": "traversal",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "../x",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-064",
            "category": "archive_layout",
            "description": "backslash",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets\\x",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-065",
            "category": "archive_layout",
            "description": "duplicate",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-066",
            "category": "archive_layout",
            "description": "case collision",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "ASSETS/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-067",
            "category": "archive_layout",
            "description": "symlink",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/x",
                  "type": "symlink",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-068",
            "category": "archive_layout",
            "description": "hardlink",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/x",
                  "type": "hardlink",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-069",
            "category": "archive_layout",
            "description": "fifo",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/x",
                  "type": "fifo",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-070",
            "category": "archive_layout",
            "description": "device",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/x",
                  "type": "device",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-071",
            "category": "archive_layout",
            "description": "socket",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/x",
                  "type": "socket",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-072",
            "category": "archive_layout",
            "description": "encrypted",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": true
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-073",
            "category": "archive_layout",
            "description": "ceiling exceeded",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": false,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-074",
            "category": "archive_layout",
            "description": "manifest mismatch",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": false,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-075",
            "category": "archive_layout",
            "description": "missing reference",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": false,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-076",
            "category": "archive_layout",
            "description": "external dependency",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [
                "https://example.invalid/x"
              ],
              "withinCeilings": true,
              "destinationOnly": true
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-077",
            "category": "archive_layout",
            "description": "outside destination",
            "operation": "validate_archive",
            "input": {
              "entries": [
                {
                  "path": "index.html",
                  "type": "file",
                  "encrypted": false
                },
                {
                  "path": "assets/",
                  "type": "directory",
                  "encrypted": false
                },
                {
                  "path": "assets/style.css",
                  "type": "file",
                  "encrypted": false
                }
              ],
              "manifestValid": true,
              "referencesValid": true,
              "externalDependencies": [],
              "withinCeilings": true,
              "destinationOnly": false
            },
            "expected": {
              "outcome": "rejected",
              "httpStatus": 400,
              "error": {
                "code": "INVALID_ARCHIVE",
                "message": "Request rejected"
              },
              "state": {},
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-078",
            "category": "reconciliation",
            "description": "race lifecycle_delete",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "lifecycle_delete",
                "application_reconcile"
              ],
              "dbState": "due",
              "objectState": "present",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 200,
              "error": null,
              "state": {
                "dbState": "expired",
                "objectState": "absent",
                "retry": false
              },
              "calls": [],
              "mutations": [
                {
                  "entity": "object",
                  "action": "delete",
                  "count": 1
                },
                {
                  "entity": "database",
                  "action": "mark_expired",
                  "count": 1
                }
              ]
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-079",
            "category": "reconciliation",
            "description": "race application_reconcile",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile",
                "lifecycle_delete"
              ],
              "dbState": "due",
              "objectState": "present",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 200,
              "error": null,
              "state": {
                "dbState": "expired",
                "objectState": "absent",
                "retry": false
              },
              "calls": [],
              "mutations": [
                {
                  "entity": "object",
                  "action": "delete",
                  "count": 1
                },
                {
                  "entity": "database",
                  "action": "mark_expired",
                  "count": 1
                }
              ]
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-080",
            "category": "reconciliation",
            "description": "both absent",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "expired",
              "objectState": "absent",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "noop",
              "httpStatus": 200,
              "error": null,
              "state": {
                "retry": false,
                "alert": false,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-081",
            "category": "reconciliation",
            "description": "db success object fail",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "expired",
              "objectState": "transient_failure",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 200,
              "error": null,
              "state": {
                "retry": true,
                "alert": false,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-082",
            "category": "reconciliation",
            "description": "object success db fail",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "write_failure",
              "objectState": "absent",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 200,
              "error": null,
              "state": {
                "retry": true,
                "alert": false,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-083",
            "category": "reconciliation",
            "description": "access denied",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "due",
              "objectState": "access_denied",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 503,
              "error": {
                "code": "STORAGE_UNAVAILABLE",
                "message": "Request rejected"
              },
              "state": {
                "retry": true,
                "alert": true,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-084",
            "category": "reconciliation",
            "description": "unknown",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "due",
              "objectState": "unknown",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 503,
              "error": {
                "code": "STORAGE_UNAVAILABLE",
                "message": "Request rejected"
              },
              "state": {
                "retry": true,
                "alert": true,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-085",
            "category": "reconciliation",
            "description": "source only absent",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "due",
              "objectState": "absent",
              "batchSize": 100,
              "namespacePrefix": "sources/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 200,
              "error": null,
              "state": {
                "retry": false,
                "alert": false,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-086",
            "category": "reconciliation",
            "description": "zip only absent",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:00:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "due",
              "objectState": "absent",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 200,
              "error": null,
              "state": {
                "retry": false,
                "alert": false,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-087",
            "category": "reconciliation",
            "description": "bounded pagination and count equality",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T12:16:00.000Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "due",
              "objectState": "present",
              "batchSize": 100,
              "dueCount": 101,
              "pages": [
                100,
                1
              ],
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "reconcile",
              "httpStatus": 200,
              "error": null,
              "state": {
                "listed": 101,
                "processed": 101,
                "converged": 101,
                "lagSeconds": 960,
                "sloWithinTwoHours": true,
                "outsideNamespaceDeletes": 0
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    },
    {
      "allOf": [
        {
          "$ref": "case.schema.json"
        },
        {
          "const": {
            "caseId": "SL-088",
            "category": "reconciliation",
            "description": "older than two hours blocks readiness",
            "operation": "reconcile_objects",
            "input": {
              "deadline": "2026-01-17T12:00:00.000Z",
              "now": "2026-01-17T14:00:00.001Z",
              "events": [
                "application_reconcile"
              ],
              "dbState": "due",
              "objectState": "present",
              "batchSize": 100,
              "namespacePrefix": "packages/"
            },
            "expected": {
              "outcome": "blocked",
              "httpStatus": 503,
              "error": {
                "code": "DELETION_SLO_BREACH",
                "message": "Request rejected"
              },
              "state": {
                "pageAlert": true,
                "readiness": "BLOCKED"
              },
              "calls": [],
              "mutations": []
            }
          }
        }
      ]
    }
  ],
  "items": false
}
