changedInput schema / properties / spec / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "family": {
- "enum": [
- "counter",
- "credits",
- "booking",
- "invite",
- "unique_owner"
- ],
- "type": "string"
- },
- "format": {
- "const": "migration-fix-v1",
- "type": "string"
- },
- "operation": {
- "maxLength": 70,
- "type": "string"
- },
- "source_sha256": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "table": {
- "maxLength": 70,
- "type": "string"
- }
- },
- "required": [
- "format",
- "family",
- "table",
- "source_sha256"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "evidence": {
- "description": "Read-only SELECT of the relevant rows.",
- "maxLength": 8000,
- "minLength": 1,
- "type": "string"
- },
- "format": {
- "const": 1,
- "type": "integer"
- },
- "invariant": {
- "description": "One SELECT returning the boolean rule that must hold.",
- "maxLength": 8000,
- "minLength": 1,
- "type": "string"
- },
- "isolation": {
- "contains": {
- "const": "read committed"
- },
- "items": {
- "enum": [
- "read committed",
- "repeatable read",
- "serializable"
- ],
- "type": "string"
- },
- "maxItems": 3,
- "minItems": 1,
- "type": "array",
- "uniqueItems": true
- },
- "notes": {
- "maxLength": 4000,
- "type": "string"
- },
- "requests": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "claims": {
- "description": "Synthetic claims only; never credentials or signed JWTs.",
- "type": "object"
- },
- "id": {
- "pattern": "^[A-Za-z][A-Za-z0-9_]{0,15}$",
- "type": "string"
- },
- "role": {
- "enum": [
- "anon",
- "authenticated",
- "service_role",
- "postgres"
- ],
- "type": "string"
- },
- "statements": {
- "items": {
- "maxLength": 8000,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 3,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "statements"
- ],
- "type": "object"
- },
- "maxItems": 2,
- "minItems": 2,
- "type": "array"
- },
- "rule": {
- "maxLength": 300,
- "minLength": 1,
- "type": "string"
- },
- "setup": {
- "maxLength": 20000,
- "type": "string"
- },
- "uncertain": {
- "type": "boolean"
- }
- },
- "required": [
- "format",
- "rule",
- "setup",
- "requests",
- "invariant",
- "evidence"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "actors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "claims": {
- "description": "Synthetic JWT claims only, never a signed JWT or real credentials",
- "type": "object"
- },
- "id": {
- "pattern": "^[A-Za-z][A-Za-z0-9_]{0,15}$",
- "type": "string"
- },
- "role": {
- "enum": [
- "anon",
- "authenticated",
- "service_role",
- "postgres"
- ],
- "type": "string"
- },
- "steps": {
- "items": {
- "anyOf": [
- {
- "maxLength": 8000,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "rpc": {
- "additionalProperties": false,
- "properties": {
- "args": {
- "items": {},
- "maxItems": 8,
- "type": "array"
- },
- "function": {
- "pattern": "^[a-z_][a-z_0-9]*\\.[a-z_][a-z_0-9]*$",
- "type": "string"
- }
- },
- "required": [
- "function"
- ],
- "type": "object"
- }
- },
- "required": [
- "rpc"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 3,
- "minItems": 1,
- "type": "array"
- },
- "userId": {
- "description": "Optional synthetic UUID; used as claims.sub",
- "type": "string"
- }
- },
- "required": [
- "id",
- "role",
- "steps"
- ],
- "type": "object"
- },
- "maxItems": 3,
- "minItems": 2,
- "type": "array"
- },
- "assertion": {
- "description": "SELECT returning exactly one non-null boolean that must stay true",
- "maxLength": 8000,
- "minLength": 1,
- "type": "string"
- },
- "evidence": {
- "description": "Read-only SELECT of the relevant rows, preferably with ORDER BY; max 25 returned",
- "maxLength": 8000,
- "minLength": 1,
- "type": "string"
- },
- "isolation": {
- "items": {
- "enum": [
- "read committed",
- "repeatable read",
- "serializable"
- ],
- "type": "string"
- },
- "maxItems": 3,
- "minItems": 1,
- "type": "array",
- "uniqueItems": true
- },
- "rule": {
- "maxLength": 300,
- "minLength": 1,
- "type": "string"
- },
- "setup": {
- "maxLength": 20000,
- "type": "string"
- }
- },
- "required": [
- "rule",
- "actors",
- "assertion",
- "evidence"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "evidence": {
+ "description": "Read-only SELECT of the relevant rows.",
+ "maxLength": 8000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "format": {
+ "const": 1,
+ "type": "integer"
+ },
+ "invariant": {
+ "description": "One SELECT returning the boolean rule that must hold.",
+ "maxLength": 8000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "isolation": {
+ "contains": {
+ "const": "read committed"
+ },
+ "items": {
+ "enum": [
+ "read committed",
+ "repeatable read",
+ "serializable"
+ ],
+ "type": "string"
+ },
+ "maxItems": 3,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "notes": {
+ "maxLength": 4000,
+ "type": "string"
+ },
+ "requests": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "claims": {
+ "description": "Synthetic claims only; never credentials or signed JWTs.",
+ "type": "object"
+ },
+ "id": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_]{0,15}$",
+ "type": "string"
+ },
+ "role": {
+ "enum": [
+ "anon",
+ "authenticated",
+ "service_role",
+ "postgres"
+ ],
+ "type": "string"
+ },
+ "statements": {
+ "items": {
+ "maxLength": 8000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 3,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "statements"
+ ],
+ "type": "object"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "rule": {
+ "maxLength": 300,
+ "minLength": 1,
+ "type": "string"
+ },
+ "setup": {
+ "maxLength": 20000,
+ "type": "string"
+ },
+ "uncertain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "format",
+ "rule",
+ "setup",
+ "requests",
+ "invariant",
+ "evidence"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "family": {
+ "enum": [
+ "counter",
+ "credits",
+ "booking",
+ "invite",
+ "unique_owner"
+ ],
+ "type": "string"
+ },
+ "format": {
+ "const": "migration-fix-v1",
+ "type": "string"
+ },
+ "operation": {
+ "maxLength": 70,
+ "type": "string"
+ },
+ "source_sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "table": {
+ "maxLength": 70,
+ "type": "string"
+ }
+ },
+ "required": [
+ "format",
+ "family",
+ "table",
+ "source_sha256"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "actors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "claims": {
+ "description": "Synthetic JWT claims only, never a signed JWT or real credentials",
+ "type": "object"
+ },
+ "id": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_]{0,15}$",
+ "type": "string"
+ },
+ "role": {
+ "enum": [
+ "anon",
+ "authenticated",
+ "service_role",
+ "postgres"
+ ],
+ "type": "string"
+ },
+ "steps": {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 8000,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "rpc": {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "items": {},
+ "maxItems": 8,
+ "type": "array"
+ },
+ "function": {
+ "pattern": "^[a-z_][a-z_0-9]*\\.[a-z_][a-z_0-9]*$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "function"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "rpc"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 3,
+ "minItems": 1,
+ "type": "array"
+ },
+ "userId": {
+ "description": "Optional synthetic UUID; used as claims.sub",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "role",
+ "steps"
+ ],
+ "type": "object"
+ },
+ "maxItems": 3,
+ "minItems": 2,
+ "type": "array"
+ },
+ "assertion": {
+ "description": "SELECT returning exactly one non-null boolean that must stay true",
+ "maxLength": 8000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "evidence": {
+ "description": "Read-only SELECT of the relevant rows, preferably with ORDER BY; max 25 returned",
+ "maxLength": 8000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "isolation": {
+ "items": {
+ "enum": [
+ "read committed",
+ "repeatable read",
+ "serializable"
+ ],
+ "type": "string"
+ },
+ "maxItems": 3,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "rule": {
+ "maxLength": 300,
+ "minLength": 1,
+ "type": "string"
+ },
+ "setup": {
+ "maxLength": 20000,
+ "type": "string"
+ }
+ },
+ "required": [
+ "rule",
+ "actors",
+ "assertion",
+ "evidence"
+ ],
+ "type": "object"
+ }
+]