[
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "accepted",
      "httpStatus": 200,
      "error": null,
      "state": {
        "canonicalKey": "sources/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/source.pdf"
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "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,
      "uploadId": null
    },
    "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": []
    }
  },
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "storage",
          "method": "head",
          "count": 1,
          "args": {
            "objectState": "present"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "22222222-2222-4222-8222-222222222222",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": false
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": null,
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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"
        }
      ]
    }
  },
  {
    "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"
        }
      ]
    }
  },
  {
    "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": []
    }
  },
  {
    "caseId": "SL-020",
    "category": "deadline",
    "description": "duplicate derivation remains deterministic",
    "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"
        }
      ]
    }
  },
  {
    "caseId": "SL-021",
    "category": "deadline",
    "description": "month boundary",
    "operation": "derive_deadline",
    "input": {
      "kind": "source",
      "anchorAt": "2026-02-28T12:00:00.000Z"
    },
    "expected": {
      "outcome": "accepted",
      "httpStatus": 200,
      "error": null,
      "state": {
        "expiresAt": "2026-03-02T12:00:00.000Z"
      },
      "calls": [],
      "mutations": [
        {
          "entity": "source",
          "action": "persist_deadline",
          "count": 1,
          "value": "2026-03-02T12:00:00.000Z"
        }
      ]
    }
  },
  {
    "caseId": "SL-022",
    "category": "deadline",
    "description": "canonical UTC instant",
    "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"
        }
      ]
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": [
        {
          "entity": "zip",
          "action": "persist_deadline",
          "count": 1,
          "value": "2026-01-17T12:00:00.000Z"
        }
      ]
    }
  },
  {
    "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": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 1,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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:05:00.000Z",
        "binding": {
          "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
          "method": "GET"
        }
      },
      "calls": [
        {
          "service": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 1,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 1,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 1,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "22222222-2222-4222-8222-222222222222",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": false
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "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": []
    }
  },
  {
    "caseId": "SL-047",
    "category": "delivery",
    "description": "zip only",
    "operation": "validate_delivery",
    "input": {
      "representations": [
        {
          "mediaType": "application/zip",
          "kind": "zip"
        }
      ],
      "probes": [
        {
          "kind": "raw_key_concealment",
          "target": "library_dto",
          "observed": true
        },
        {
          "kind": "public_route_absence",
          "target": "object_key",
          "observed": true
        },
        {
          "kind": "self_containment",
          "target": "package",
          "observed": true
        }
      ]
    },
    "expected": {
      "outcome": "accepted",
      "httpStatus": 200,
      "error": null,
      "state": {
        "delivery": "zip",
        "selfContained": true
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-048",
    "category": "delivery",
    "description": "html only",
    "operation": "validate_delivery",
    "input": {
      "representations": [
        {
          "mediaType": "text/html",
          "kind": "html"
        }
      ],
      "probes": [
        {
          "kind": "raw_key_concealment",
          "target": "library_dto",
          "observed": true
        },
        {
          "kind": "public_route_absence",
          "target": "object_key",
          "observed": true
        },
        {
          "kind": "self_containment",
          "target": "package",
          "observed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "ZIP_ONLY_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-049",
    "category": "delivery",
    "description": "mixed",
    "operation": "validate_delivery",
    "input": {
      "representations": [
        {
          "mediaType": "application/zip",
          "kind": "zip"
        },
        {
          "mediaType": "text/html",
          "kind": "html"
        }
      ],
      "probes": [
        {
          "kind": "raw_key_concealment",
          "target": "library_dto",
          "observed": true
        },
        {
          "kind": "public_route_absence",
          "target": "object_key",
          "observed": true
        },
        {
          "kind": "self_containment",
          "target": "package",
          "observed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "ZIP_ONLY_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-050",
    "category": "delivery",
    "description": "multiple zip",
    "operation": "validate_delivery",
    "input": {
      "representations": [
        {
          "mediaType": "application/zip",
          "kind": "zip"
        },
        {
          "mediaType": "application/zip",
          "kind": "zip"
        }
      ],
      "probes": [
        {
          "kind": "raw_key_concealment",
          "target": "library_dto",
          "observed": true
        },
        {
          "kind": "public_route_absence",
          "target": "object_key",
          "observed": true
        },
        {
          "kind": "self_containment",
          "target": "package",
          "observed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "ZIP_ONLY_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-051",
    "category": "delivery",
    "description": "empty",
    "operation": "validate_delivery",
    "input": {
      "representations": [],
      "probes": [
        {
          "kind": "raw_key_concealment",
          "target": "library_dto",
          "observed": true
        },
        {
          "kind": "public_route_absence",
          "target": "object_key",
          "observed": true
        },
        {
          "kind": "self_containment",
          "target": "package",
          "observed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "ZIP_ONLY_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-052",
    "category": "bucket",
    "description": "private",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": false,
      "anonymousListAllowed": false,
      "blockPublicAcls": true,
      "blockPublicPolicy": true,
      "crossOwnerPrefixAllowed": false,
      "adapterState": "ready",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "sources/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "accepted",
      "httpStatus": 200,
      "error": null,
      "state": {
        "private": true
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-053",
    "category": "bucket",
    "description": "anonymous get",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": true,
      "anonymousListAllowed": false,
      "blockPublicAcls": true,
      "blockPublicPolicy": true,
      "crossOwnerPrefixAllowed": false,
      "adapterState": "ready",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "sources/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "PRIVATE_BUCKET_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-054",
    "category": "bucket",
    "description": "anonymous list",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": false,
      "anonymousListAllowed": true,
      "blockPublicAcls": true,
      "blockPublicPolicy": true,
      "crossOwnerPrefixAllowed": false,
      "adapterState": "ready",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "sources/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "PRIVATE_BUCKET_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-055",
    "category": "bucket",
    "description": "public acl",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": false,
      "anonymousListAllowed": false,
      "blockPublicAcls": false,
      "blockPublicPolicy": true,
      "crossOwnerPrefixAllowed": false,
      "adapterState": "ready",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "sources/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "PRIVATE_BUCKET_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-056",
    "category": "bucket",
    "description": "public policy",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": false,
      "anonymousListAllowed": false,
      "blockPublicAcls": true,
      "blockPublicPolicy": false,
      "crossOwnerPrefixAllowed": false,
      "adapterState": "ready",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "sources/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "PRIVATE_BUCKET_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-057",
    "category": "bucket",
    "description": "cross owner",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": false,
      "anonymousListAllowed": false,
      "blockPublicAcls": true,
      "blockPublicPolicy": true,
      "crossOwnerPrefixAllowed": true,
      "adapterState": "ready",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "sources/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "PRIVATE_BUCKET_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-058",
    "category": "bucket",
    "description": "wrong lifecycle",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": false,
      "anonymousListAllowed": false,
      "blockPublicAcls": true,
      "blockPublicPolicy": true,
      "crossOwnerPrefixAllowed": false,
      "adapterState": "ready",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "wrong/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "PRIVATE_BUCKET_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-059",
    "category": "bucket",
    "description": "adapter absent",
    "operation": "validate_bucket",
    "input": {
      "anonymousGetAllowed": false,
      "anonymousListAllowed": false,
      "blockPublicAcls": true,
      "blockPublicPolicy": true,
      "crossOwnerPrefixAllowed": false,
      "adapterState": "unknown",
      "lifecycleRules": [
        {
          "objectKind": "source",
          "prefix": "sources/",
          "deadlineAnchor": "uploadCompletedAt",
          "retentionSeconds": 86400,
          "configuredPrefix": "sources/"
        },
        {
          "objectKind": "zip",
          "prefix": "packages/",
          "deadlineAnchor": "conversionCompletedAt",
          "retentionSeconds": 172800,
          "configuredPrefix": "packages/"
        }
      ]
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "PRIVATE_BUCKET_REQUIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 3,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "accepted",
      "httpStatus": 200,
      "error": null,
      "state": {
        "entryCount": 3,
        "entryHtml": "index.html",
        "selfContained": true
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-061",
    "category": "archive_layout",
    "description": "wrapper",
    "operation": "validate_archive",
    "input": {
      "entries": [
        {
          "path": "x/index.html",
          "type": "file",
          "encrypted": false
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "x/index.html"
        ],
        "actualMembers": [
          "x/index.html"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 1,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "x/index.html",
          "normalizedPath": "x/index.html",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-062",
    "category": "archive_layout",
    "description": "absolute",
    "operation": "validate_archive",
    "input": {
      "entries": [
        {
          "path": "/index.html",
          "type": "file",
          "encrypted": false
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "/index.html"
        ],
        "actualMembers": [
          "/index.html"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 1,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "/index.html",
          "normalizedPath": "/index.html",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "../x"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "../x"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "../x",
          "normalizedPath": "../x",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets\\x"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets\\x"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "assets\\x",
          "normalizedPath": "assets/x",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/style.css"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "ASSETS/style.css"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "ASSETS/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "ASSETS/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "assets/x",
          "normalizedPath": "assets/x",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": false
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "assets/x",
          "normalizedPath": "assets/x",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": false
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "assets/x",
          "normalizedPath": "assets/x",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": false
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "assets/x",
          "normalizedPath": "assets/x",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": false
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css",
          "assets/x"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 4,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        },
        {
          "entryPath": "assets/x",
          "normalizedPath": "assets/x",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": false
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-072",
    "category": "archive_layout",
    "description": "encrypted",
    "operation": "validate_archive",
    "input": {
      "entries": [
        {
          "path": "index.html",
          "type": "file",
          "encrypted": true
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html"
        ],
        "actualMembers": [
          "index.html"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 1,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 10001,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 536870913,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 101.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 3,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/missing.css",
            "resolves": false
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 3,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [
        "https://example.invalid/x"
      ],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 3,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": true
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": true
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": true
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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
        }
      ],
      "externalDependencies": [],
      "manifest": {
        "declaredMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "actualMembers": [
          "index.html",
          "assets/",
          "assets/style.css"
        ],
        "references": [
          {
            "from": "index.html",
            "to": "assets/style.css",
            "resolves": true
          }
        ]
      },
      "ceilings": [
        {
          "metric": "entry_count",
          "actual": 3,
          "maximum": 10000
        },
        {
          "metric": "uncompressed_bytes",
          "actual": 4096,
          "maximum": 536870912
        },
        {
          "metric": "compression_ratio",
          "actual": 2.0,
          "maximum": 100.0
        }
      ],
      "destinations": [
        {
          "entryPath": "index.html",
          "normalizedPath": "index.html",
          "withinRoot": false
        },
        {
          "entryPath": "assets/",
          "normalizedPath": "assets/",
          "withinRoot": false
        },
        {
          "entryPath": "assets/style.css",
          "normalizedPath": "assets/style.css",
          "withinRoot": false
        }
      ],
      "defenses": [
        {
          "kind": "symlink",
          "passed": true
        },
        {
          "kind": "hardlink",
          "passed": true
        },
        {
          "kind": "device",
          "passed": true
        },
        {
          "kind": "fifo",
          "passed": true
        },
        {
          "kind": "socket",
          "passed": true
        }
      ]
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_ARCHIVE",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "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
        }
      ]
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "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
        }
      ]
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "absent"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "noop",
      "httpStatus": 200,
      "error": null,
      "state": {
        "retry": false,
        "alert": false,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "transient_failure"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "transient_failure"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "retry": true,
        "alert": false,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "absent"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "retry": true,
        "alert": false,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "access_denied"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "access_denied"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 503,
      "error": {
        "code": "STORAGE_UNAVAILABLE",
        "message": "Request rejected"
      },
      "state": {
        "retry": true,
        "alert": true,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "unknown"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "unknown"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 503,
      "error": {
        "code": "STORAGE_UNAVAILABLE",
        "message": "Request rejected"
      },
      "state": {
        "retry": true,
        "alert": true,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "absent"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "source",
      "uploadId": "33333333-3333-4333-8333-333333333333",
      "objectKey": "sources/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/source.pdf"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "retry": false,
        "alert": false,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "absent"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "retry": false,
        "alert": false,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-087",
    "category": "reconciliation",
    "description": "two-hour readiness SLO below boundary",
    "operation": "reconcile_objects",
    "input": {
      "deadline": "2026-01-17T12:00:00.000Z",
      "now": "2026-01-17T13:59:59.999Z",
      "events": [
        "application_reconcile"
      ],
      "dbState": "due",
      "objectState": "present",
      "batchSize": 100,
      "namespacePrefix": "packages/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "lagMilliseconds": 7199999,
        "sloWithinTwoHours": true,
        "pageAlert": false,
        "readiness": "READY"
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-088",
    "category": "reconciliation",
    "description": "two-hour readiness SLO equality",
    "operation": "reconcile_objects",
    "input": {
      "deadline": "2026-01-17T12:00:00.000Z",
      "now": "2026-01-17T14:00:00.000Z",
      "events": [
        "application_reconcile"
      ],
      "dbState": "due",
      "objectState": "present",
      "batchSize": 100,
      "namespacePrefix": "packages/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "lagMilliseconds": 7200000,
        "sloWithinTwoHours": true,
        "pageAlert": false,
        "readiness": "READY"
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-089",
    "category": "reconciliation",
    "description": "two-hour readiness SLO plus 1ms 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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "blocked",
      "httpStatus": 503,
      "error": {
        "code": "DELETION_SLO_BREACH",
        "message": "Request rejected"
      },
      "state": {
        "pageAlert": true,
        "readiness": "BLOCKED"
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-090",
    "category": "signed_url",
    "description": "foreign nonexistent",
    "operation": "issue_signed_url",
    "input": {
      "sessionUserId": "22222222-2222-4222-8222-222222222222",
      "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-15T12:10:00.000Z",
      "now": "2026-01-15T12:00:00.000Z"
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 404,
      "error": {
        "code": "NOT_FOUND",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [
        {
          "service": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "22222222-2222-4222-8222-222222222222",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": false
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "caseId": "SL-091",
    "category": "signed_url",
    "description": "foreign expired",
    "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:59:59.999Z",
      "now": "2026-01-15T12:00:00.000Z"
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 404,
      "error": {
        "code": "NOT_FOUND",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [
        {
          "service": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "22222222-2222-4222-8222-222222222222",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "caseId": "SL-092",
    "category": "signed_url",
    "description": "owner nonexistent",
    "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-15T12:10:00.000Z",
      "now": "2026-01-15T12:00:00.000Z"
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 404,
      "error": {
        "code": "NOT_FOUND",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [
        {
          "service": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": false
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "caseId": "SL-093",
    "category": "signed_url",
    "description": "owner expired",
    "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-15T11:59:59.999Z",
      "now": "2026-01-15T12:00:00.000Z"
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 410,
      "error": {
        "code": "ARTIFACT_EXPIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [
        {
          "service": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "caseId": "SL-094",
    "category": "signed_url",
    "description": "foreign object absent",
    "operation": "issue_signed_url",
    "input": {
      "sessionUserId": "22222222-2222-4222-8222-222222222222",
      "objectOwnerId": "11111111-1111-4111-8111-111111111111",
      "conversionExists": true,
      "objectState": "absent",
      "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
      "method": "GET",
      "configuredTtlSeconds": 30,
      "zipExpiresAt": "2026-01-15T12:10:00.000Z",
      "now": "2026-01-15T12:00:00.000Z"
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 404,
      "error": {
        "code": "NOT_FOUND",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [
        {
          "service": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "22222222-2222-4222-8222-222222222222",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "caseId": "SL-095",
    "category": "signed_url",
    "description": "owner object absent",
    "operation": "issue_signed_url",
    "input": {
      "sessionUserId": "11111111-1111-4111-8111-111111111111",
      "objectOwnerId": "11111111-1111-4111-8111-111111111111",
      "conversionExists": true,
      "objectState": "absent",
      "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
      "method": "GET",
      "configuredTtlSeconds": 30,
      "zipExpiresAt": "2026-01-15T12:10:00.000Z",
      "now": "2026-01-15T12:00:00.000Z"
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 410,
      "error": {
        "code": "ARTIFACT_EXPIRED",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [
        {
          "service": "database",
          "method": "authorize",
          "count": 1,
          "args": {
            "sessionUserId": "11111111-1111-4111-8111-111111111111",
            "objectOwnerId": "11111111-1111-4111-8111-111111111111",
            "conversionExists": true
          }
        },
        {
          "service": "signer",
          "method": "signGet",
          "count": 0,
          "args": {
            "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
            "method": "GET"
          }
        }
      ],
      "mutations": []
    }
  },
  {
    "caseId": "SL-096",
    "category": "object_key",
    "description": "source rejects mismatched typed uploadId",
    "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": "55555555-5555-4555-8555-555555555555",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-097",
    "category": "object_key",
    "description": "source rejects mismatched typed ownerId",
    "operation": "validate_object_key",
    "input": {
      "kind": "source",
      "key": "sources/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/source.pdf",
      "ownerId": "22222222-2222-4222-8222-222222222222",
      "uploadId": "33333333-3333-4333-8333-333333333333",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-098",
    "category": "object_key",
    "description": "package rejects mismatched typed conversionId",
    "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": "66666666-6666-4666-8666-666666666666",
      "attemptNo": 1,
      "uploadId": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-099",
    "category": "object_key",
    "description": "package rejects mismatched typed ownerId",
    "operation": "validate_object_key",
    "input": {
      "kind": "zip",
      "key": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip",
      "ownerId": "22222222-2222-4222-8222-222222222222",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "uploadId": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-100",
    "category": "object_key",
    "description": "source rejects key containing conversion identity",
    "operation": "validate_object_key",
    "input": {
      "kind": "source",
      "key": "sources/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/source.pdf",
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "uploadId": "33333333-3333-4333-8333-333333333333",
      "conversionId": null,
      "attemptNo": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-101",
    "category": "object_key",
    "description": "package rejects key containing upload identity",
    "operation": "validate_object_key",
    "input": {
      "kind": "zip",
      "key": "packages/11111111-1111-4111-8111-111111111111/33333333-3333-4333-8333-333333333333/attempt-1/output.zip",
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "uploadId": null
    },
    "expected": {
      "outcome": "rejected",
      "httpStatus": 400,
      "error": {
        "code": "INVALID_OBJECT_KEY",
        "message": "Request rejected"
      },
      "state": {},
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-102",
    "category": "reconciliation",
    "description": "fifteen-minute orphan boundary minus 1ms",
    "operation": "reconcile_objects",
    "input": {
      "deadline": "2026-01-15T12:00:00.000Z",
      "now": "2026-01-15T12:14:59.999Z",
      "events": [
        "application_reconcile"
      ],
      "dbState": "due",
      "objectState": "present",
      "batchSize": 100,
      "namespacePrefix": "packages/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "lagMilliseconds": 899999,
        "orphanEligible": false,
        "sloWithinTwoHours": true,
        "pageAlert": false,
        "readiness": "READY"
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-103",
    "category": "reconciliation",
    "description": "fifteen-minute orphan boundary equality",
    "operation": "reconcile_objects",
    "input": {
      "deadline": "2026-01-15T12:00:00.000Z",
      "now": "2026-01-15T12:15:00.000Z",
      "events": [
        "application_reconcile"
      ],
      "dbState": "due",
      "objectState": "present",
      "batchSize": 100,
      "namespacePrefix": "packages/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "lagMilliseconds": 900000,
        "orphanEligible": true,
        "sloWithinTwoHours": true,
        "pageAlert": false,
        "readiness": "READY"
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-104",
    "category": "reconciliation",
    "description": "fifteen-minute orphan boundary plus 1ms",
    "operation": "reconcile_objects",
    "input": {
      "deadline": "2026-01-15T12:00:00.000Z",
      "now": "2026-01-15T12:15:00.001Z",
      "events": [
        "application_reconcile"
      ],
      "dbState": "due",
      "objectState": "present",
      "batchSize": 100,
      "namespacePrefix": "packages/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "present"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "deleted"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": null,
        "dueCount": 1,
        "processedCount": 1,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "reconcile",
      "httpStatus": 200,
      "error": null,
      "state": {
        "lagMilliseconds": 900001,
        "orphanEligible": true,
        "sloWithinTwoHours": true,
        "pageAlert": false,
        "readiness": "READY"
      },
      "calls": [],
      "mutations": []
    }
  },
  {
    "caseId": "SL-105",
    "category": "reconciliation",
    "description": "bounded page emits non-null continuation cursor",
    "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/",
      "eventTrace": [
        {
          "sequence": 1,
          "action": "HEAD",
          "result": "absent"
        },
        {
          "sequence": 2,
          "action": "DELETE",
          "result": "skipped"
        },
        {
          "sequence": 3,
          "action": "VERIFY_ABSENCE",
          "result": "absent"
        }
      ],
      "pagination": {
        "cursorStart": null,
        "cursorEnd": "cursor:100",
        "dueCount": 101,
        "processedCount": 100,
        "batchSize": 100
      },
      "ownerId": "11111111-1111-4111-8111-111111111111",
      "objectKind": "zip",
      "conversionId": "44444444-4444-4444-8444-444444444444",
      "attemptNo": 1,
      "objectKey": "packages/11111111-1111-4111-8111-111111111111/44444444-4444-4444-8444-444444444444/attempt-1/output.zip"
    },
    "expected": {
      "outcome": "noop",
      "httpStatus": 200,
      "error": null,
      "state": {
        "retry": false,
        "alert": false,
        "outsideNamespaceDeletes": 0
      },
      "calls": [],
      "mutations": []
    }
  }
]
