{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pdf2html.invalid/quality/storage-lifecycle/case.schema.json",
  "title": "Storage lifecycle operation oracle",
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "ownership"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "authorize_download"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "conversionExists": {
              "type": "boolean"
            },
            "now": {
              "type": "string",
              "format": "date-time"
            },
            "objectOwnerId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "objectState": {
              "type": "string",
              "enum": [
                "access_denied",
                "present",
                "unknown"
              ]
            },
            "sessionUserId": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "string",
                  "format": "uuid"
                }
              ]
            },
            "zipExpiresAt": {
              "type": "string",
              "format": "date-time"
            }
          },
          "required": [
            "conversionExists",
            "now",
            "objectOwnerId",
            "objectState",
            "sessionUserId",
            "zipExpiresAt"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "service": {
                        "const": "database"
                      },
                      "method": {
                        "const": "authorize"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "args": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "sessionUserId": {
                            "oneOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                              }
                            ]
                          },
                          "objectOwnerId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                          },
                          "conversionExists": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "sessionUserId",
                          "objectOwnerId",
                          "conversionExists"
                        ]
                      }
                    },
                    "required": [
                      "service",
                      "method",
                      "count",
                      "args"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "service": {
                        "const": "storage"
                      },
                      "method": {
                        "const": "head"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "args": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "objectState": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "objectState"
                        ]
                      }
                    },
                    "required": [
                      "service",
                      "method",
                      "count",
                      "args"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "service": {
                        "const": "signer"
                      },
                      "method": {
                        "const": "signGet"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "args": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "method": {
                            "const": "GET"
                          }
                        },
                        "required": [
                          "method"
                        ]
                      }
                    },
                    "required": [
                      "service",
                      "method",
                      "count",
                      "args"
                    ]
                  }
                ]
              }
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "ARTIFACT_EXPIRED",
                        "AUTH_REQUIRED",
                        "NOT_FOUND",
                        "STORAGE_UNAVAILABLE"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Artifact expired",
                        "Authentication required",
                        "Not found",
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted",
                "blocked",
                "denied"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "authorized": {
                  "type": "boolean"
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "deadline"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "derive_deadline"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "anchorAt": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "string",
                  "format": "date-time"
                }
              ]
            },
            "irrelevantTimes": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "2026-01-01T00:00:00.000Z",
                  "2026-01-16T00:00:00.000Z"
                ]
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "source",
                "zip"
              ]
            }
          },
          "required": [
            "anchorAt",
            "kind"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INVALID_TIMESTAMP"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "entity": {
                    "enum": [
                      "source",
                      "zip"
                    ]
                  },
                  "action": {
                    "const": "persist_deadline"
                  },
                  "count": {
                    "const": 1
                  },
                  "value": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "entity",
                  "action",
                  "count",
                  "value"
                ]
              }
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted",
                "rejected"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "expiresAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "deadline"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "evaluate_expiry"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "expiresAt": {
              "type": "string",
              "format": "date-time"
            },
            "kind": {
              "type": "string",
              "enum": [
                "source",
                "zip"
              ]
            },
            "now": {
              "type": "string",
              "format": "date-time"
            }
          },
          "required": [
            "expiresAt",
            "kind",
            "now"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "type": "null"
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "apiAllowed": {
                  "type": "boolean"
                },
                "deleteDue": {
                  "type": "boolean"
                },
                "expired": {
                  "type": "boolean"
                }
              },
              "required": [
                "apiAllowed",
                "deleteDue",
                "expired"
              ]
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "signed_url"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "issue_signed_url"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "configuredTtlSeconds": {
              "type": "integer",
              "minimum": 0
            },
            "conversionExists": {
              "type": "boolean"
            },
            "key": {
              "type": "string",
              "minLength": 1
            },
            "method": {
              "type": "string",
              "enum": [
                "GET"
              ]
            },
            "now": {
              "type": "string",
              "format": "date-time"
            },
            "objectOwnerId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "objectState": {
              "type": "string",
              "enum": [
                "present",
                "absent"
              ]
            },
            "sessionUserId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "zipExpiresAt": {
              "type": "string",
              "format": "date-time"
            }
          },
          "required": [
            "configuredTtlSeconds",
            "conversionExists",
            "key",
            "method",
            "now",
            "objectOwnerId",
            "objectState",
            "sessionUserId",
            "zipExpiresAt"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "service": {
                        "const": "database"
                      },
                      "method": {
                        "const": "authorize"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "args": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "sessionUserId": {
                            "oneOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                              }
                            ]
                          },
                          "objectOwnerId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                          },
                          "conversionExists": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "sessionUserId",
                          "objectOwnerId",
                          "conversionExists"
                        ]
                      }
                    },
                    "required": [
                      "service",
                      "method",
                      "count",
                      "args"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "service": {
                        "const": "signer"
                      },
                      "method": {
                        "const": "signGet"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "args": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1
                          },
                          "method": {
                            "const": "GET"
                          }
                        },
                        "required": [
                          "key",
                          "method"
                        ]
                      }
                    },
                    "required": [
                      "service",
                      "method",
                      "count",
                      "args"
                    ]
                  }
                ]
              }
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "ARTIFACT_EXPIRED",
                        "INVALID_TTL",
                        "NOT_FOUND"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Artifact expired",
                        "Not found",
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted",
                "denied",
                "rejected"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "binding": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "key": {
                      "type": "string",
                      "minLength": 1
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "GET"
                      ]
                    }
                  },
                  "required": [
                    "key",
                    "method"
                  ]
                },
                "effectiveExpiresAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "library"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "project_library"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "balance": {
              "type": "integer",
              "minimum": 0
            },
            "now": {
              "type": "string",
              "format": "date-time"
            },
            "rows": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                  },
                  "ownerId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "cancelled",
                      "complete",
                      "failed",
                      "processing",
                      "queued"
                    ]
                  },
                  "zipExpiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "zipState": {
                    "type": "string",
                    "enum": [
                      "present"
                    ]
                  }
                },
                "required": [
                  "createdAt",
                  "id",
                  "ownerId",
                  "status"
                ]
              }
            },
            "viewerId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            }
          },
          "required": [
            "balance",
            "now",
            "rows",
            "viewerId"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "type": "null"
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "ledgerMutations": {
                  "type": "integer",
                  "minimum": 0
                },
                "orderedIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "33333333-3333-4333-8333-333333333333",
                      "44444444-4444-4444-8444-444444444444"
                    ]
                  }
                },
                "rawKeysExposed": {
                  "type": "boolean"
                },
                "rows": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "download": {
                        "oneOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "zip"
                            ]
                          }
                        ]
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                      },
                      "label": {
                        "type": "string",
                        "enum": [
                          "cancelled",
                          "complete",
                          "expired",
                          "failed",
                          "processing",
                          "queued"
                        ]
                      }
                    },
                    "required": [
                      "download",
                      "id",
                      "label"
                    ]
                  }
                }
              },
              "required": [
                "ledgerMutations"
              ]
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "reconciliation"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "reconcile_objects"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "batchSize": {
              "type": "integer",
              "minimum": 0
            },
            "dbState": {
              "type": "string",
              "enum": [
                "due",
                "expired",
                "write_failure"
              ]
            },
            "deadline": {
              "type": "string",
              "format": "date-time"
            },
            "eventTrace": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "DELETE",
                      "HEAD",
                      "VERIFY_ABSENCE"
                    ]
                  },
                  "result": {
                    "type": "string",
                    "enum": [
                      "absent",
                      "access_denied",
                      "deleted",
                      "present",
                      "skipped",
                      "transient_failure",
                      "unknown"
                    ]
                  },
                  "sequence": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "action",
                  "result",
                  "sequence"
                ]
              }
            },
            "events": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "application_reconcile",
                  "lifecycle_delete"
                ]
              }
            },
            "namespacePrefix": {
              "type": "string",
              "enum": [
                "packages/",
                "sources/"
              ]
            },
            "now": {
              "type": "string",
              "format": "date-time"
            },
            "objectState": {
              "type": "string",
              "enum": [
                "absent",
                "access_denied",
                "present",
                "transient_failure",
                "unknown"
              ]
            },
            "pagination": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "batchSize": {
                  "type": "integer",
                  "minimum": 0
                },
                "cursorEnd": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cursorStart": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "dueCount": {
                  "type": "integer",
                  "minimum": 0
                },
                "processedCount": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "batchSize",
                "cursorEnd",
                "cursorStart",
                "dueCount",
                "processedCount"
              ]
            },
            "ownerId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "objectKind": {
              "enum": [
                "source",
                "zip"
              ]
            },
            "uploadId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "conversionId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "attemptNo": {
              "type": "integer",
              "minimum": 1
            },
            "objectKey": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "batchSize",
            "dbState",
            "deadline",
            "eventTrace",
            "events",
            "namespacePrefix",
            "now",
            "objectState",
            "pagination",
            "ownerId",
            "objectKind",
            "objectKey"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "DELETION_SLO_BREACH",
                        "STORAGE_UNAVAILABLE"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "entity": {
                    "type": "string",
                    "minLength": 1
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "delete",
                      "mark_expired",
                      "persist_state"
                    ]
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": [
                  "entity",
                  "action",
                  "count"
                ]
              }
            },
            "outcome": {
              "type": "string",
              "enum": [
                "blocked",
                "noop",
                "reconcile"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "alert": {
                  "type": "boolean"
                },
                "dbState": {
                  "type": "string",
                  "enum": [
                    "expired"
                  ]
                },
                "lagMilliseconds": {
                  "type": "integer",
                  "minimum": 0
                },
                "objectState": {
                  "type": "string",
                  "enum": [
                    "absent"
                  ]
                },
                "outsideNamespaceDeletes": {
                  "type": "integer",
                  "minimum": 0
                },
                "pageAlert": {
                  "type": "boolean"
                },
                "readiness": {
                  "type": "string",
                  "enum": [
                    "BLOCKED",
                    "READY"
                  ]
                },
                "retry": {
                  "type": "boolean"
                },
                "sloWithinTwoHours": {
                  "type": "boolean"
                },
                "orphanEligible": {
                  "type": "boolean"
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "archive_layout"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "validate_archive"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "ceilings": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "actual": {
                    "type": "number",
                    "minimum": 0
                  },
                  "maximum": {
                    "type": "number",
                    "minimum": 0
                  },
                  "metric": {
                    "type": "string",
                    "enum": [
                      "compression_ratio",
                      "entry_count",
                      "uncompressed_bytes"
                    ]
                  }
                },
                "required": [
                  "actual",
                  "maximum",
                  "metric"
                ]
              }
            },
            "defenses": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "device",
                      "fifo",
                      "hardlink",
                      "socket",
                      "symlink"
                    ]
                  },
                  "passed": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "kind",
                  "passed"
                ]
              }
            },
            "destinations": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "entryPath": {
                    "type": "string",
                    "enum": [
                      "../x",
                      "/index.html",
                      "ASSETS/style.css",
                      "assets/",
                      "assets/style.css",
                      "assets/x",
                      "assets\\x",
                      "index.html",
                      "x/index.html"
                    ]
                  },
                  "normalizedPath": {
                    "type": "string",
                    "enum": [
                      "../x",
                      "/index.html",
                      "assets/",
                      "assets/style.css",
                      "assets/x",
                      "index.html",
                      "x/index.html"
                    ]
                  },
                  "withinRoot": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "entryPath",
                  "normalizedPath",
                  "withinRoot"
                ]
              }
            },
            "entries": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "encrypted": {
                    "type": "boolean"
                  },
                  "path": {
                    "type": "string",
                    "enum": [
                      "../x",
                      "/index.html",
                      "ASSETS/style.css",
                      "assets/",
                      "assets/style.css",
                      "assets/x",
                      "assets\\x",
                      "index.html",
                      "x/index.html"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "device",
                      "directory",
                      "fifo",
                      "file",
                      "hardlink",
                      "socket",
                      "symlink"
                    ]
                  }
                },
                "required": [
                  "encrypted",
                  "path",
                  "type"
                ]
              }
            },
            "externalDependencies": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "https://example.invalid/x"
                ]
              }
            },
            "manifest": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "actualMembers": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "../x",
                      "/index.html",
                      "ASSETS/style.css",
                      "assets/",
                      "assets/style.css",
                      "assets/x",
                      "assets\\x",
                      "index.html",
                      "x/index.html"
                    ]
                  }
                },
                "declaredMembers": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "../x",
                      "/index.html",
                      "ASSETS/style.css",
                      "assets/",
                      "assets/style.css",
                      "assets/x",
                      "assets\\x",
                      "index.html",
                      "x/index.html"
                    ]
                  }
                },
                "references": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "from": {
                        "type": "string",
                        "enum": [
                          "index.html"
                        ]
                      },
                      "resolves": {
                        "type": "boolean"
                      },
                      "to": {
                        "type": "string",
                        "enum": [
                          "assets/missing.css",
                          "assets/style.css"
                        ]
                      }
                    },
                    "required": [
                      "from",
                      "resolves",
                      "to"
                    ]
                  }
                }
              },
              "required": [
                "actualMembers",
                "declaredMembers",
                "references"
              ]
            }
          },
          "required": [
            "ceilings",
            "defenses",
            "destinations",
            "entries",
            "externalDependencies",
            "manifest"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INVALID_ARCHIVE"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted",
                "rejected"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "entryCount": {
                  "type": "integer",
                  "minimum": 0
                },
                "entryHtml": {
                  "type": "string",
                  "enum": [
                    "index.html"
                  ]
                },
                "selfContained": {
                  "type": "boolean"
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "bucket"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "validate_bucket"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "adapterState": {
              "type": "string",
              "enum": [
                "ready",
                "unknown"
              ]
            },
            "anonymousGetAllowed": {
              "type": "boolean"
            },
            "anonymousListAllowed": {
              "type": "boolean"
            },
            "blockPublicAcls": {
              "type": "boolean"
            },
            "blockPublicPolicy": {
              "type": "boolean"
            },
            "crossOwnerPrefixAllowed": {
              "type": "boolean"
            },
            "lifecycleRules": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "configuredPrefix": {
                    "type": "string",
                    "enum": [
                      "packages/",
                      "sources/",
                      "wrong/"
                    ]
                  },
                  "deadlineAnchor": {
                    "type": "string",
                    "enum": [
                      "conversionCompletedAt",
                      "uploadCompletedAt"
                    ]
                  },
                  "objectKind": {
                    "type": "string",
                    "enum": [
                      "source",
                      "zip"
                    ]
                  },
                  "prefix": {
                    "type": "string",
                    "enum": [
                      "packages/",
                      "sources/"
                    ]
                  },
                  "retentionSeconds": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "configuredPrefix",
                  "deadlineAnchor",
                  "objectKind",
                  "prefix",
                  "retentionSeconds"
                ]
              }
            }
          },
          "required": [
            "adapterState",
            "anonymousGetAllowed",
            "anonymousListAllowed",
            "blockPublicAcls",
            "blockPublicPolicy",
            "crossOwnerPrefixAllowed",
            "lifecycleRules"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "PRIVATE_BUCKET_REQUIRED"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted",
                "blocked"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "private": {
                  "type": "boolean"
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "delivery"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "validate_delivery"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "probes": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "public_route_absence",
                      "raw_key_concealment",
                      "self_containment"
                    ]
                  },
                  "observed": {
                    "type": "boolean"
                  },
                  "target": {
                    "type": "string",
                    "enum": [
                      "library_dto",
                      "object_key",
                      "package"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "observed",
                  "target"
                ]
              }
            },
            "representations": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "html",
                      "zip"
                    ]
                  },
                  "mediaType": {
                    "type": "string",
                    "enum": [
                      "application/zip",
                      "text/html"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "mediaType"
                ]
              }
            }
          },
          "required": [
            "probes",
            "representations"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "ZIP_ONLY_REQUIRED"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted",
                "rejected"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "delivery": {
                  "type": "string",
                  "enum": [
                    "zip"
                  ]
                },
                "selfContained": {
                  "type": "boolean"
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "caseId",
        "category",
        "description",
        "operation",
        "input",
        "expected"
      ],
      "properties": {
        "caseId": {
          "enum": [
            "SL-001",
            "SL-002",
            "SL-003",
            "SL-004",
            "SL-005",
            "SL-006",
            "SL-007",
            "SL-008",
            "SL-009",
            "SL-010",
            "SL-011",
            "SL-012",
            "SL-013",
            "SL-014",
            "SL-015",
            "SL-016",
            "SL-017",
            "SL-018",
            "SL-019",
            "SL-020",
            "SL-021",
            "SL-022",
            "SL-023",
            "SL-024",
            "SL-025",
            "SL-026",
            "SL-027",
            "SL-028",
            "SL-029",
            "SL-030",
            "SL-031",
            "SL-032",
            "SL-033",
            "SL-034",
            "SL-035",
            "SL-036",
            "SL-037",
            "SL-038",
            "SL-039",
            "SL-040",
            "SL-041",
            "SL-042",
            "SL-043",
            "SL-044",
            "SL-045",
            "SL-046",
            "SL-047",
            "SL-048",
            "SL-049",
            "SL-050",
            "SL-051",
            "SL-052",
            "SL-053",
            "SL-054",
            "SL-055",
            "SL-056",
            "SL-057",
            "SL-058",
            "SL-059",
            "SL-060",
            "SL-061",
            "SL-062",
            "SL-063",
            "SL-064",
            "SL-065",
            "SL-066",
            "SL-067",
            "SL-068",
            "SL-069",
            "SL-070",
            "SL-071",
            "SL-072",
            "SL-073",
            "SL-074",
            "SL-075",
            "SL-076",
            "SL-077",
            "SL-078",
            "SL-079",
            "SL-080",
            "SL-081",
            "SL-082",
            "SL-083",
            "SL-084",
            "SL-085",
            "SL-086",
            "SL-087",
            "SL-088",
            "SL-089",
            "SL-090",
            "SL-091",
            "SL-092",
            "SL-093",
            "SL-094",
            "SL-095",
            "SL-096",
            "SL-097",
            "SL-098",
            "SL-099",
            "SL-100",
            "SL-101",
            "SL-102",
            "SL-103",
            "SL-104",
            "SL-105"
          ]
        },
        "category": {
          "enum": [
            "object_key"
          ]
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "operation": {
          "const": "validate_object_key"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "attemptNo": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "integer",
                  "minimum": 1
                }
              ],
              "minimum": 1
            },
            "conversionId": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                }
              ]
            },
            "key": {
              "type": "string",
              "minLength": 1
            },
            "kind": {
              "type": "string",
              "enum": [
                "source",
                "zip"
              ]
            },
            "ownerId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "uploadId": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                }
              ]
            }
          },
          "required": [
            "key",
            "kind",
            "ownerId",
            "uploadId",
            "conversionId",
            "attemptNo"
          ]
        },
        "expected": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "calls": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "error": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INVALID_OBJECT_KEY"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "Request rejected"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              ]
            },
            "httpStatus": {
              "type": "integer",
              "minimum": 0
            },
            "mutations": {
              "type": "array",
              "items": false,
              "maxItems": 0
            },
            "outcome": {
              "type": "string",
              "enum": [
                "accepted",
                "rejected"
              ]
            },
            "state": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "canonicalKey": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": []
            }
          },
          "required": [
            "calls",
            "error",
            "httpStatus",
            "mutations",
            "outcome",
            "state"
          ]
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "input": {
                "properties": {
                  "kind": {
                    "const": "source"
                  }
                }
              }
            }
          },
          "then": {
            "properties": {
              "input": {
                "required": [
                  "key",
                  "kind",
                  "ownerId",
                  "uploadId"
                ]
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "input": {
                "properties": {
                  "kind": {
                    "const": "zip"
                  }
                }
              }
            }
          },
          "then": {
            "properties": {
              "input": {
                "required": [
                  "key",
                  "kind",
                  "ownerId",
                  "conversionId",
                  "attemptNo"
                ]
              }
            }
          }
        }
      ]
    }
  ],
  "$defs": {
    "registeredServiceMethods": {
      "enum": [
        "database.authorize",
        "signer.signGet",
        "storage.head"
      ]
    }
  }
}
